From 462c4e01cbe92d4952990d1bad6284eb87b7f83f Mon Sep 17 00:00:00 2001 From: David Garske Date: Thu, 19 Sep 2024 11:54:09 -0700 Subject: [PATCH] Move PTHREAD definition from options.h to config.h. Avoids possible redeclaration issue. --- configure.ac | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index 74825c73..fa69fc50 100644 --- a/configure.ac +++ b/configure.ac @@ -80,11 +80,12 @@ AS_IF([test "x$ax_enable_debug" != "xno"], AX_PTHREAD([ + AC_DEFINE([HAVE_PTHREAD], [1], [Define if you have POSIX threads libraries and header files.]) # If AX_PTHREAD is adding -Qunused-arguments, need to prepend with # -Xcompiler libtool will use it. Newer versions of clang don't need # the -Q flag when using pthreads. AS_CASE([$PTHREAD_CFLAGS],[-Qunused-arguments*],[PTHREAD_CFLAGS="-Xcompiler $PTHREAD_CFLAGS"]) - AM_CFLAGS="$AM_CFLAGS $PTHREAD_CFLAGS -DHAVE_PTHREAD"]) + AM_CFLAGS="$AM_CFLAGS $PTHREAD_CFLAGS"]) # Checks for typedefs, structures, and compiler characteristics.