diff options
author | Sascha Schumann <sas@php.net> | 1999-12-27 09:54:12 +0000 |
---|---|---|
committer | Sascha Schumann <sas@php.net> | 1999-12-27 09:54:12 +0000 |
commit | 4e1baf3a4ec67d89adfd83639162224cadb57dbe (patch) | |
tree | d692a4a79ab384265fc9d2f7df4eb8405d69d38f /TSRM/tsrm.m4 | |
parent | a770520bff7a46025e832c9a7a91c884abf964be (diff) | |
download | php-git-4e1baf3a4ec67d89adfd83639162224cadb57dbe.tar.gz |
Save a few lines while checking for -pthread[s]?
Diffstat (limited to 'TSRM/tsrm.m4')
-rw-r--r-- | TSRM/tsrm.m4 | 18 |
1 files changed, 6 insertions, 12 deletions
diff --git a/TSRM/tsrm.m4 b/TSRM/tsrm.m4 index 28443530a0..0eea9be2fa 100644 --- a/TSRM/tsrm.m4 +++ b/TSRM/tsrm.m4 @@ -46,19 +46,13 @@ AC_DEFUN(TSRM_CHECK_PTHREADS,[ old_CFLAGS="$CFLAGS" if test -n "$GCC"; then - dnl FreeBSD/Linux - TSRM_CHECK_GCC_ARG(-pthread, gcc_pthread) - - if test "$gcc_pthread" = "yes"; then - CFLAGS="$CFLAGS -pthread" - else - dnl gcc on Solaris - TSRM_CHECK_GCC_ARG(-pthreads, gcc_pthreads) - if test "$gcc_pthreads" = "yes"; then - CFLAGS="$CFLAGS -pthreads" + for i in -pthread -pthreads; do + TSRM_CHECK_GCC_ARG($i, gcc_opt) + if test "$gcc_opt" = "yes"; then + CFLAGS="$CFLAGS $i" + break fi - fi - + done AC_CHECK_FUNCS(pthread_kill) fi |