Skip to content

Commit

Permalink
Merge pull request #381 from dgarske/pthread
Browse files Browse the repository at this point in the history
Move PTHREAD definition from options.h to config.h
  • Loading branch information
JacobBarthelmeh authored Sep 23, 2024
2 parents 48e1401 + 462c4e0 commit fd20b38
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit fd20b38

Please sign in to comment.