From c6992fc56cd1b2f502258e1db520c465ab2094bb Mon Sep 17 00:00:00 2001 From: Brian Cameron Date: Wed, 15 Jul 2009 17:35:38 -0400 Subject: Bug 22788 - Fix detection of getpwnam_r on Solaris Define POSIX_PTHREAD_SEMANTICS earlier so more things use it. Signed-off-by: Colin Walters --- configure.in | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/configure.in b/configure.in index 5a92efd3..2e6422c1 100644 --- a/configure.in +++ b/configure.in @@ -458,6 +458,13 @@ AC_CHECK_HEADERS(errno.h) AC_CHECK_HEADERS(unistd.h) +# Add -D_POSIX_PTHREAD_SEMANTICS if on Solaris +# +case $host_os in + solaris*) + CFLAGS="$CFLAGS -D_POSIX_PTHREAD_SEMANTICS" ;; +esac + # checking for a posix version of getpwnam_r # if we are cross compiling and can not run the test # assume getpwnam_r is the posix version @@ -1151,13 +1158,6 @@ AC_SUBST(SECTION_FLAGS) AC_SUBST(SECTION_LDFLAGS) AC_MSG_RESULT($ac_gcsections) -# Add -D_POSIX_PTHREAD_SEMANTICS if on Solaris -# -case $host_os in - solaris*) - CFLAGS="$CFLAGS -D_POSIX_PTHREAD_SEMANTICS" ;; -esac - changequote(,)dnl # compress spaces in flags CFLAGS=`echo "$CFLAGS" | sed -e 's/ +/ /g'` -- cgit