diff options
author | Alan Coopersmith <alan.coopersmith@oracle.com> | 2022-12-06 17:42:04 -0800 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@oracle.com> | 2023-01-01 14:34:57 -0800 |
commit | 40bcc8c3303a858c786f1d6d04ae5bbdec6b04ff (patch) | |
tree | 1d6ad569496120004426e60a8c6d40b7584700d6 /configure.ac | |
parent | 47f2e64d865568d4f00cb97e42ad5cfc47e9c161 (diff) |
Use reallocarray() on systems that provide it
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac index 0ecfd7f..6cf0e3a 100644 --- a/configure.ac +++ b/configure.ac @@ -7,6 +7,10 @@ AC_INIT([makedepend], [1.0.8], [https://gitlab.freedesktop.org/xorg/util/makedepend/-/issues]) AC_CONFIG_SRCDIR([Makefile.am]) AC_CONFIG_HEADERS([makedepend-config.h]) +# Set common system defines for POSIX extensions, such as _GNU_SOURCE +# Must be called before any macros that run the compiler (like AC_PROG_LIBTOOL) +# to avoid autoconf errors. +AC_USE_SYSTEM_EXTENSIONS # Initialize Automake AM_INIT_AUTOMAKE([foreign dist-xz]) @@ -21,7 +25,7 @@ XORG_DEFAULT_OPTIONS XORG_WITH_LINT dnl Checks for functions -AC_CHECK_FUNCS([rename fchmod]) +AC_CHECK_FUNCS([rename fchmod reallocarray]) dnl Use 64-bit file operations on 32-bit systems that support them AC_SYS_LARGEFILE |