gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] r32872 - libmicrohttpd


From: gnunet
Subject: [GNUnet-SVN] r32872 - libmicrohttpd
Date: Tue, 1 Apr 2014 11:14:51 +0200

Author: Karlson2k
Date: 2014-04-01 11:14:50 +0200 (Tue, 01 Apr 2014)
New Revision: 32872

Modified:
   libmicrohttpd/configure.ac
Log:
fix configure detection for pthread_setname_np()

Modified: libmicrohttpd/configure.ac
===================================================================
--- libmicrohttpd/configure.ac  2014-04-01 07:23:33 UTC (rev 32871)
+++ libmicrohttpd/configure.ac  2014-04-01 09:14:50 UTC (rev 32872)
@@ -212,6 +212,10 @@
   fi
 fi
 
+SAVE_LIBS="$LIBS"
+SAVE_CFLAGS="$CFLAGS"
+LIBS="$PTHREAD_LIBS $LIBS"
+CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
 # Check for pthread_setname_np()
 AC_MSG_CHECKING([[for pthread_setname_np]])
 AC_LINK_IFELSE(
@@ -219,6 +223,8 @@
   [AC_DEFINE([[HAVE_PTHREAD_SETNAME_NP]], [[1]], [Define if you have 
pthread_setname_np function.])
    AC_MSG_RESULT([[yes]])],
   [AC_MSG_RESULT([[no]])] )
+LIBS="$SAVE_LIBS"
+CFLAGS="$SAVE_CFLAGS"
 
 # Check for headers that are ALWAYS required
 AC_CHECK_HEADERS([fcntl.h math.h errno.h limits.h stdio.h locale.h sys/stat.h 
sys/types.h pthread.h],,AC_MSG_ERROR([Compiling libmicrohttpd requires standard 
UNIX headers files]))




reply via email to

[Prev in Thread] Current Thread [Next in Thread]