summaryrefslogtreecommitdiff
path: root/acinclude.m4
diff options
context:
space:
mode:
authorMike Gerdts <gerdts@php.net>1999-08-03 20:56:13 +0000
committerMike Gerdts <gerdts@php.net>1999-08-03 20:56:13 +0000
commit1570c5b30e02ddec9ade660df3198b3cf5d28554 (patch)
tree3801a6b3b0fd2ff8f8909611ea6e50e366b47eb5 /acinclude.m4
parentf2fe56ff696a5bba94ffe84cdf3a0b77a7f2f326 (diff)
downloadphp-git-1570c5b30e02ddec9ade660df3198b3cf5d28554.tar.gz
Fix bug #1949: -rdynamic not handled properly with Sun's C compiler
Diffstat (limited to 'acinclude.m4')
-rw-r--r--acinclude.m413
1 files changed, 9 insertions, 4 deletions
diff --git a/acinclude.m4 b/acinclude.m4
index c14cddbb39..d0c260eacb 100644
--- a/acinclude.m4
+++ b/acinclude.m4
@@ -89,13 +89,18 @@ AC_DEFUN(AC_CHECK_CC_OPTION,[
opt="$1"
var=`echo $ac_n "$opt$ac_c"|tr -c a-zA-Z0-9 _`
AC_MSG_CHECKING([if compiler supports -$1 really])
- ac_php_compile="${CC-cc} -$opt -c $CFLAGS $CPPFLAGS conftest.$ac_ext 2>&1"
- if eval $ac_php_compile | egrep "$opt" > /dev/null 2>&1 ; then
+ ac_php_compile="${CC-cc} -$opt -o conftest $CFLAGS $CPPFLAGS conftest.$ac_ext 2>&1"
+ if eval $ac_php_compile 2>&1 | egrep "$opt" > /dev/null 2>&1 ; then
eval php_cc_$var=no
AC_MSG_RESULT(no)
else
- eval php_cc_$var=yes
- AC_MSG_RESULT(yes)
+ if eval ./conftest 2>/dev/null ; then
+ eval php_cc_$var=yes
+ AC_MSG_RESULT(yes)
+ else
+ eval php_cc_$var=no
+ AC_MSG_RESULT(no)
+ fi
fi
])