diff options
author | Sean Bright <sean@malleable.com> | 2010-01-21 15:27:42 +0000 |
---|---|---|
committer | Sean Bright <sean@malleable.com> | 2010-01-21 15:27:42 +0000 |
commit | ce7b0a51f1eae12e0f4b8d206d1c4f06d4348786 (patch) | |
tree | ba5d6686df47bfe4666206d18fd55b53fabb219c /configure.ac | |
parent | 04aa8b114906cc3abc26a29f296004e9c5ab2d8c (diff) |
Merged revisions 241932 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4
........
r241932 | seanbright | 2010-01-21 10:25:46 -0500 (Thu, 21 Jan 2010) | 5 lines
Fix configure check for PTHREAD_ONCE_INIT when manually adding -Wall to CFLAGS.
(closes issue #16666)
Reported by: romain_proformatique
........
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@241938 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/configure.ac b/configure.ac index e25f26d7c..15d777dbd 100644 --- a/configure.ac +++ b/configure.ac @@ -533,8 +533,9 @@ saved_CFLAGS="${CFLAGS}" CFLAGS="${CFLAGS} -Werror -Wmissing-braces" AC_COMPILE_IFELSE( [AC_LANG_PROGRAM( - [#include <pthread.h>], - [pthread_once_t once = PTHREAD_ONCE_INIT;]) + [#include <pthread.h> + void empty(){}], + [pthread_once_t once = PTHREAD_ONCE_INIT; pthread_once(&once, empty);]) ],[ AC_MSG_RESULT(no) ac_cv_pthread_once_needsbraces="no" |