diff options
author | Mariusz Bialonczyk <manio@skyboo.net> | 2011-05-09 14:56:03 +0200 |
---|---|---|
committer | Jim Carroll <thecarrolls@jiminger.com> | 2011-05-26 06:50:43 -0400 |
commit | 2b32c079efe85f0247d7b9318d21e93c21f029d8 (patch) | |
tree | 79119b160772bd12bf4d5b3fe3288c39f9848645 /lib/cpluff | |
parent | d1265ed0ffe8044082ca296ee03eda3d586ff0fe (diff) |
Fix autoconf warnings on newer versions:
warning: AC_LANG_CONFTEST: no AC_LANG_SOURCE call detected in body
reference: http://www.flameeyes.eu/autotools-mythbuster/forwardporting/autoconf.html
Diffstat (limited to 'lib/cpluff')
-rw-r--r-- | lib/cpluff/configure.ac | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/cpluff/configure.ac b/lib/cpluff/configure.ac index 9846a4cb43..854c0ca214 100644 --- a/lib/cpluff/configure.ac +++ b/lib/cpluff/configure.ac @@ -106,7 +106,7 @@ if test "$enable_threads" != no; then ( test -z "$enable_threads" || test "$enable_threads" = Posix ); then AC_MSG_CHECKING([for Posix threads]) AC_LINK_IFELSE( -[#include <pthread.h> +[AC_LANG_SOURCE([#include <pthread.h> int main(int argc, char *argv[]) { pthread_mutex_t mutex; @@ -114,7 +114,7 @@ int main(int argc, char *argv[]) { pthread_mutex_init(&mutex, NULL); return 0; } -], [AC_MSG_RESULT([yes]) +])], [AC_MSG_RESULT([yes]) cp_threads=Posix], AC_MSG_RESULT([no])) fi @@ -123,13 +123,13 @@ cp_threads=Posix], AC_MSG_RESULT([no])) ( test -z "$enable_threads" || test "$enable_threads" = Windows ); then AC_MSG_CHECKING([for Windows threads]) AC_LINK_IFELSE( -[#include <windows.h> +[AC_LANG_SOURCE([#include <windows.h> int main(int argc, char *argv[]) { CreateMutex(NULL, FALSE, NULL); return 0; } -], [AC_MSG_RESULT([yes]) +])], [AC_MSG_RESULT([yes]) cp_threads=Windows], AC_MSG_RESULT([no])) fi |