configure
来自「监控软件rrdtools」· 代码 · 共 2,400 行 · 第 1/5 页
TXT
2,400 行
else ac_cv_prog_gcc=nofifiecho "$ac_t""$ac_cv_prog_gcc" 1>&6if test $ac_cv_prog_gcc = yes; then GCC=yeselse GCC=fiac_test_CFLAGS="${CFLAGS+set}"ac_save_CFLAGS="$CFLAGS"CFLAGS=echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6echo "configure:979: checking whether ${CC-cc} accepts -g" >&5if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6else echo 'void f(){}' > conftest.cif test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then ac_cv_prog_cc_g=yeselse ac_cv_prog_cc_g=nofirm -f conftest*fiecho "$ac_t""$ac_cv_prog_cc_g" 1>&6if test "$ac_test_CFLAGS" = set; then CFLAGS="$ac_save_CFLAGS"elif test $ac_cv_prog_cc_g = yes; then if test "$GCC" = yes; then CFLAGS="-g -O2" else CFLAGS="-g" fielse if test "$GCC" = yes; then CFLAGS="-O2" else CFLAGS= fifiif test "x$CC" != xcc; then echo $ac_n "checking whether $CC and cc understand -c and -o together""... $ac_c" 1>&6echo "configure:1012: checking whether $CC and cc understand -c and -o together" >&5else echo $ac_n "checking whether cc understands -c and -o together""... $ac_c" 1>&6echo "configure:1015: checking whether cc understands -c and -o together" >&5fiset dummy $CC; ac_cc="`echo $2 | sed -e 's/[^a-zA-Z0-9_]/_/g' -e 's/^[0-9]/_/'`"if eval "test \"`echo '$''{'ac_cv_prog_cc_${ac_cc}_c_o'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6else echo 'foo(){}' > conftest.c# Make sure it works both with $CC and with simple cc.# We do the test twice because some compilers refuse to overwrite an# existing .o file with -o, though they will create one.ac_try='${CC-cc} -c conftest.c -o conftest.o 1>&5'if { (eval echo configure:1027: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } && test -f conftest.o && { (eval echo configure:1028: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; };then eval ac_cv_prog_cc_${ac_cc}_c_o=yes if test "x$CC" != xcc; then # Test first that cc exists at all. if { ac_try='cc -c conftest.c 1>&5'; { (eval echo configure:1033: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then ac_try='cc -c conftest.c -o conftest.o 1>&5' if { (eval echo configure:1035: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } && test -f conftest.o && { (eval echo configure:1036: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; then # cc works too. : else # cc exists but doesn't like -o. eval ac_cv_prog_cc_${ac_cc}_c_o=no fi fi fielse eval ac_cv_prog_cc_${ac_cc}_c_o=nofirm -f conftest*fiif eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then echo "$ac_t""yes" 1>&6else echo "$ac_t""no" 1>&6 cat >> confdefs.h <<\EOF#define NO_MINUS_C_MINUS_O 1EOFfiecho $ac_n "checking if compiler supports -R""... $ac_c" 1>&6echo "configure:1065: checking if compiler supports -R" >&5if eval "test \"`echo '$''{'php_cv_cc_dashr'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6else SAVE_LIBS=$LIBS LIBS="-R /usr/lib $LIBS" cat > conftest.$ac_ext <<EOF#line 1073 "configure"#include "confdefs.h"int main() {; return 0; }EOFif { (eval echo configure:1080: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* php_cv_cc_dashr=yeselse echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* php_cv_cc_dashr=nofirm -f conftest* LIBS=$SAVE_LIBSfiecho "$ac_t""$php_cv_cc_dashr" 1>&6if test $php_cv_cc_dashr = "yes"; then ld_runpath_switch=-Relse echo $ac_n "checking if compiler supports -Wl,-rpath,""... $ac_c" 1>&6echo "configure:1098: checking if compiler supports -Wl,-rpath," >&5 if eval "test \"`echo '$''{'php_cv_cc_rpath'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6else SAVE_LIBS=$LIBS LIBS="-Wl,-rpath,/usr/lib $LIBS" cat > conftest.$ac_ext <<EOF#line 1106 "configure"#include "confdefs.h"int main() {; return 0; }EOFif { (eval echo configure:1113: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* php_cv_cc_rpath=yeselse echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* php_cv_cc_rpath=nofirm -f conftest* LIBS=$SAVE_LIBSfi echo "$ac_t""$php_cv_cc_rpath" 1>&6 if test $php_cv_cc_rpath = "yes"; then ld_runpath_switch=-Wl,-rpath, else ld_runpath_switch=-L fifi PHP_VAR_SUBST="$PHP_VAR_SUBST SHLIB_SUFFIX_NAME" SHLIB_SUFFIX_NAME=so case $host_alias in *hpux*) SHLIB_SUFFIX_NAME=sl ;; *darwin*) SHLIB_SUFFIX_NAME=dylib ;; esac # Check whether --with-php-config or --without-php-config was given.if test "${with_php_config+set}" = set; then withval="$with_php_config" PHP_CONFIG=$withvalelse PHP_CONFIG=php-configfi prefix=`$PHP_CONFIG --prefix 2>/dev/null` INCLUDES=`$PHP_CONFIG --includes 2>/dev/null` EXTENSION_DIR=`$PHP_CONFIG --extension-dir` if test -z "$prefix"; then { echo "configure: error: Cannot find php-config. Please use --with-php-config=PATH" 1>&2; exit 1; } fi echo $ac_n "checking for PHP prefix""... $ac_c" 1>&6echo "configure:1170: checking for PHP prefix" >&5 echo "$ac_t""$prefix" 1>&6 echo $ac_n "checking for PHP includes""... $ac_c" 1>&6echo "configure:1173: checking for PHP includes" >&5 echo "$ac_t""$INCLUDES" 1>&6 echo $ac_n "checking for PHP extension directory""... $ac_c" 1>&6echo "configure:1176: checking for PHP extension directory" >&5 echo "$ac_t""$EXTENSION_DIR" 1>&6 OVERALL_TARGET=php php_c_pre='$(CC)' php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)' php_c_post=' && echo > $@' php_cxx_pre='$(CXX)' php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)' php_cxx_post=' && echo > $@' php_lo=o shared_c_pre='$(LIBTOOL) --mode=compile $(CC)' shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -prefer-pic' shared_c_post= shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)' shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) -prefer-pic' shared_cxx_post= shared_lo=lo php_build_target=program OVERALL_TARGET=libphp4.la php_build_target=shared php_c_pre=$shared_c_pre php_c_meta=$shared_c_meta php_c_post=$shared_c_post php_cxx_pre=$shared_cxx_pre php_cxx_meta=$shared_cxx_meta php_cxx_post=$shared_cxx_post php_lo=$shared_loecho $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6echo "configure:1216: checking how to run the C preprocessor" >&5# On Suns, sometimes $CPP names a directory.if test -n "$CPP" && test -d "$CPP"; then CPP=fiif test -z "$CPP"; thenif eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6else # This must be in double quotes, not single quotes, because CPP may get # substituted into the Makefile and "${CC-cc}" will confuse make. CPP="${CC-cc} -E" # On the NeXT, cc -E runs the code through the compiler's parser, # not just through cpp. cat > conftest.$ac_ext <<EOF#line 1231 "configure"#include "confdefs.h"#include <assert.h>Syntax ErrorEOFac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"{ (eval echo configure:1237: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`if test -z "$ac_err"; then :else echo "$ac_err" >&5 echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* CPP="${CC-cc} -E -traditional-cpp" cat > conftest.$ac_ext <<EOF#line 1248 "configure"#include "confdefs.h"#include <assert.h>Syntax ErrorEOFac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"{ (eval echo configure:1254: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`if test -z "$ac_err"; then :else echo "$ac_err" >&5 echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* CPP="${CC-cc} -nologo -E" cat > conftest.$ac_ext <<EOF#line 1265 "configure"#include "confdefs.h"#include <assert.h>Syntax ErrorEOFac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"{ (eval echo configure:1271: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`if test -z "$ac_err"; then :else echo "$ac_err" >&5 echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* CPP=/lib/cppfirm -f conftest*firm -f conftest*firm -f conftest* ac_cv_prog_CPP="$CPP"fi CPP="$ac_cv_prog_CPP"else ac_cv_prog_CPP="$CPP"fiecho "$ac_t""$CPP" 1>&6# Check whether --with-openssl or --without-openssl was given.if test "${with_openssl+set}" = set; then withval="$with_openssl" if test "$withval" != "no"; then ext_output="yes, shared"ext_shared=yescase $withval inshared,*) withval=`echo "$withval"|sed 's/^shared,//'` ;;shared) withval=yes ;;no) ext_output=no ext_shared=no ;;*) ext_output=yes ext_shared=no ;;esac ext_output="yes, shared" ext_shared=yes test "$withval" = "no" && withval=yes shared=$ext_shared unset ext_shared ext_output PHP_OPENSSL=$withval ext_openssl_shared=yes ext_shared=yes if test "$PHP_OPENSSL" = "yes"; then PHP_OPENSSL="/usr/local/ssl /usr/local /usr /usr/local/openssl" fi for i in $PHP_OPENSSL; do if test -r $i/include/openssl/evp.h; then OPENSSL_INCDIR=$i/include fi if test -r $i/lib/libssl.a -o -r $i/lib/libssl.$SHLIB_SUFFIX_NAME; then OPENSSL_LIBDIR=$i/lib fi done if test -z "$OPENSSL_INCDIR"; then { echo "configure: error: Cannot find OpenSSL's <evp.h>" 1>&2; exit 1; } fi if test -z "$OPENSSL_LIBDIR"; then { echo "configure: error: Cannot find OpenSSL's libraries" 1>&2; exit 1; } fi old_CPPFLAGS=$CPPFLAGS CPPFLAGS=-I$OPENSSL_INCDIR echo $ac_n "checking for OpenSSL version""... $ac_c" 1>&6echo "configure:1358: checking for OpenSSL version" >&5 cat > conftest.$ac_ext <<EOF#line 1360 "configure"#include "confdefs.h"#include <openssl/opensslv.h>#if OPENSSL_VERSION_NUMBER >= 0x0090600fL yes#endif EOFif (eval "$ac_cpp conftest.$ac_ext") 2>&5 | egrep "yes" >/dev/null 2>&1; then rm -rf conftest* echo "$ac_t"">= 0.9.6" 1>&6 else rm -rf conftest* { echo "configure: error: OpenSSL version 0.9.6 or greater required." 1>&2; exit 1; } firm -f conftest* CPPFLAGS=$old_CPPFLAGS if test "$OPENSSL_INCDIR" != "/usr/include"; then if test -z "$OPENSSL_INCDIR" || echo "$OPENSSL_INCDIR" | grep '^/' >/dev/null ; then ai_p=$OPENSSL_INCDIR else ep_dir="`echo $OPENSSL_INCDIR|sed 's%/*[^/][^/]*/*$%%'`" ep_realdir="`(cd \"$ep_dir\" && pwd)`" ai_p="$ep_realdir/`basename \"$OPENSSL_INCDIR\"`" fi unique=`echo $ai_p|sed 's/[^a-zA-Z0-9]/_/g'` cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\"" if test -n "$unique" && test "`eval $cmd`" = "" ; then eval "INCLUDEPATH$unique=set" if test ""; then INCLUDES="-I$ai_p $INCLUDES" else INCLUDES="$INCLUDES -I$ai_p" fi fi fi if test "$OPENSSL_LIBDIR" != "/usr/lib"; then if test -z "$OPENSSL_LIBDIR" || echo "$OPENSSL_LIBDIR" | grep '^/' >/dev/null ; then ai_p=$OPENSSL_LIBDIR else ep_dir="`echo $OPENSSL_LIBDIR|sed 's%/*[^/][^/]*/*$%%'`" ep_realdir="`(cd \"$ep_dir\" && pwd)`" ai_p="$ep_realdir/`basename \"$OPENSSL_LIBDIR\"`" fi unique=`echo $ai_p|sed 's/[^a-zA-Z0-9]/_/g'` cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\"" if test -n "$unique" && test "`eval $cmd`" = "" ; then eval "LIBPATH$unique=set" test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" LDFLAGS="$LDFLAGS -L$ai_p" PHP_RPATHS="$PHP_RPATHS $ai_p"
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?