summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@oracle.com>2022-07-17 13:00:37 -0700
committerAlan Coopersmith <alan.coopersmith@oracle.com>2022-07-17 13:00:37 -0700
commitc6eded76e212419518bd955cad58c96b8653840e (patch)
tree5701a6899ba1f98415f15fee916b178dd5bb8c58
parent178b95c486a1abcf2395157600dc1a2da7e67441 (diff)
downloadxorg-lib-libXext-c6eded76e212419518bd955cad58c96b8653840e.tar.gz
configure: Use AC_USE_SYSTEM_EXTENSIONS to set GNU_SOURCE & other defines
Fixes: #4 Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
-rw-r--r--configure.ac5
1 files changed, 5 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index cffefcf..eff477b 100644
--- a/configure.ac
+++ b/configure.ac
@@ -7,6 +7,11 @@ AC_CONFIG_SRCDIR([Makefile.am])
AC_CONFIG_HEADERS([config.h])
AC_CONFIG_MACRO_DIR([m4])
+# 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])