diff -u php5-5.4.4/debian/control php5-5.4.4/debian/control --- php5-5.4.4/debian/control +++ php5-5.4.4/debian/control @@ -63,7 +63,9 @@ re2c, unixodbc-dev, zlib1g-dev, - tzdata + tzdata, + gcc-4.8, + g++-4.8 Build-Conflicts: bind-dev Standards-Version: 3.9.3 Vcs-Git: git://git.debian.org/pkg-php/php.git diff -u php5-5.4.4/debian/changelog php5-5.4.4/debian/changelog --- php5-5.4.4/debian/changelog +++ php5-5.4.4/debian/changelog @@ -1,3 +1,19 @@ +php5 (5.4.4-15.1+rpi2) jessie-staging; urgency=low + + * Comment out union definition in ext/gd/libgd/gd_compat.h which clashes with + one in /usr/include/gd.h + * Extend clean target to prevent unreprepsentable changes to source error. + + -- Peter Michael Green Wed, 10 Jul 2013 15:12:23 +0000 + +php5 (5.4.4-15.1+rpi1) jessie-staging; urgency=low + + * Build with gcc/g++ 4.8 to avoid internal compiler error. + * Apply patch from https://mail.gnome.org/archives/xml/2012-August/msg00028.html + to fix build with newer libxml. + + -- Peter Michael Green Wed, 03 Jul 2013 07:36:31 +0000 + php5 (5.4.4-15.1) jessie; urgency=low * Non-maintainer upload. diff -u php5-5.4.4/debian/rules php5-5.4.4/debian/rules --- php5-5.4.4/debian/rules +++ php5-5.4.4/debian/rules @@ -9,6 +9,9 @@ # Uncomment this to turn on verbose mode. #export DH_VERBOSE=1 +export CC=gcc-4.8 +export CXX=g++-4.8 + # This has to be exported to make some magic below work. export DH_OPTIONS @@ -487,6 +490,11 @@ rm -f debian/$${sapi}.$${cruft}; \ done; \ done + rm -rf tests/security/test + rm -rf ext/*/tests/*.log + rm -rf ext/*/tests/*.out + rm -rf ext/*/tests/*.diff + PCNTL_FUNCTIONS := $(shell < ext/pcntl/php_pcntl.h sed -ne "/^PHP_FUNCTION/ s/PHP_FUNCTION(\(.*\));/\1/;t end;d;:end p" | tr '\n' ',') diff -u php5-5.4.4/debian/patches/series php5-5.4.4/debian/patches/series --- php5-5.4.4/debian/patches/series +++ php5-5.4.4/debian/patches/series @@ -81,0 +82 @@ +fix-new-libxml.patch only in patch2: unchanged: --- php5-5.4.4.orig/bug53649.data +++ php5-5.4.4/bug53649.data @@ -0,0 +1,3 @@ +1 +2 +3 only in patch2: unchanged: --- php5-5.4.4.orig/configure +++ php5-5.4.4/configure @@ -1,11 +1,9 @@ #! /bin/sh # Guess values for system-dependent variables and create Makefiles. -# Generated by GNU Autoconf 2.65. +# Generated by GNU Autoconf 2.69. # # -# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, -# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation, -# Inc. +# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. # # # This configure script is free software; the Free Software Foundation @@ -89,6 +87,7 @@ IFS=" "" $as_nl" # Find who we are. Look in the path if we contain no directory separator. +as_myself= case $0 in #(( *[\\/]* ) as_myself=$0 ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR @@ -133,6 +132,31 @@ # CDPATH. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH +# Use a proper internal environment variable to ensure we don't fall + # into an infinite loop, continuously re-executing ourselves. + if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then + _as_can_reexec=no; export _as_can_reexec; + # We cannot yet assume a decent shell, so we have to provide a +# neutralization value for shells without unset; and this also +# works around shells that cannot unset nonexistent variables. +# Preserve -v and -x to the replacement shell. +BASH_ENV=/dev/null +ENV=/dev/null +(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV +case $- in # (((( + *v*x* | *x*v* ) as_opts=-vx ;; + *v* ) as_opts=-v ;; + *x* ) as_opts=-x ;; + * ) as_opts= ;; +esac +exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} +# Admittedly, this is quite paranoid, since all the known shells bail +# out after a failed `exec'. +$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 +as_fn_exit 255 + fi + # We don't want this to propagate to other subprocesses. + { _as_can_reexec=; unset _as_can_reexec;} if test "x$CONFIG_SHELL" = x; then as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : emulate sh @@ -166,12 +190,21 @@ else exitcode=1; echo positional parameters were not saved. fi -test x\$exitcode = x0 || exit 1" +test x\$exitcode = x0 || exit 1 +test -x / || exit 1" as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 -test \$(( 1 + 1 )) = 2 || exit 1" +test \$(( 1 + 1 )) = 2 || exit 1 + + test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( + ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' + ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO + ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO + PATH=/empty FPATH=/empty; export PATH FPATH + test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ + || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1" if (eval "$as_required") 2>/dev/null; then : as_have_required=yes else @@ -211,14 +244,25 @@ if test "x$CONFIG_SHELL" != x; then : - # We cannot yet assume a decent shell, so we have to provide a - # neutralization value for shells without unset; and this also - # works around shells that cannot unset nonexistent variables. - BASH_ENV=/dev/null - ENV=/dev/null - (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV - export CONFIG_SHELL - exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} + export CONFIG_SHELL + # We cannot yet assume a decent shell, so we have to provide a +# neutralization value for shells without unset; and this also +# works around shells that cannot unset nonexistent variables. +# Preserve -v and -x to the replacement shell. +BASH_ENV=/dev/null +ENV=/dev/null +(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV +case $- in # (((( + *v*x* | *x*v* ) as_opts=-vx ;; + *v* ) as_opts=-v ;; + *x* ) as_opts=-x ;; + * ) as_opts= ;; +esac +exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} +# Admittedly, this is quite paranoid, since all the known shells bail +# out after a failed `exec'. +$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 +exit 255 fi if test x$as_have_required = xno; then : @@ -316,10 +360,18 @@ test -d "$as_dir" && break done test -z "$as_dirs" || eval "mkdir $as_dirs" - } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir" + } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" } # as_fn_mkdir_p + +# as_fn_executable_p FILE +# ----------------------- +# Test if FILE is an executable regular file. +as_fn_executable_p () +{ + test -f "$1" && test -x "$1" +} # as_fn_executable_p # as_fn_append VAR VALUE # ---------------------- # Append the text in VALUE to the end of the definition contained in VAR. Take @@ -356,19 +408,19 @@ fi # as_fn_arith -# as_fn_error ERROR [LINENO LOG_FD] -# --------------------------------- +# as_fn_error STATUS ERROR [LINENO LOG_FD] +# ---------------------------------------- # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are # provided, also output the error to LOG_FD, referencing LINENO. Then exit the -# script with status $?, using 1 if that was 0. +# script with STATUS, using 1 if that was 0. as_fn_error () { - as_status=$?; test $as_status -eq 0 && as_status=1 - if test "$3"; then - as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack - $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3 + as_status=$1; test $as_status -eq 0 && as_status=1 + if test "$4"; then + as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack + $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 fi - $as_echo "$as_me: error: $1" >&2 + $as_echo "$as_me: error: $2" >&2 as_fn_exit $as_status } # as_fn_error @@ -441,6 +493,10 @@ chmod +x "$as_me.lineno" || { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } + # If we had to re-execute with $CONFIG_SHELL, we're ensured to have + # already done that, so ensure we don't try to do so again and fall + # in an infinite loop. This has already happened in practice. + _as_can_reexec=no; export _as_can_reexec # Don't try to exec as it changes $[0], causing all sort of problems # (the dirname of $[0] is not the place where we might find the # original and so on. Autoconf is especially sensitive to this). @@ -475,16 +531,16 @@ # ... but there are two gotchas: # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. - # In both cases, we have to default to `cp -p'. + # In both cases, we have to default to `cp -pR'. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || - as_ln_s='cp -p' + as_ln_s='cp -pR' elif ln conf$$.file conf$$ 2>/dev/null; then as_ln_s=ln else - as_ln_s='cp -p' + as_ln_s='cp -pR' fi else - as_ln_s='cp -p' + as_ln_s='cp -pR' fi rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file rmdir conf$$.dir 2>/dev/null @@ -496,28 +552,8 @@ as_mkdir_p=false fi -if test -x / >/dev/null 2>&1; then - as_test_x='test -x' -else - if ls -dL / >/dev/null 2>&1; then - as_ls_L_option=L - else - as_ls_L_option= - fi - as_test_x=' - eval sh -c '\'' - if test -d "$1"; then - test -d "$1/."; - else - case $1 in #( - -*)set "./$1";; - esac; - case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( - ???[sx]*):;;*)false;;esac;fi - '\'' sh - ' -fi -as_executable_p=$as_test_x +as_test_x='test -x' +as_executable_p=as_fn_executable_p # Sed expression to map a string onto a valid CPP name. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" @@ -525,164 +561,14 @@ # Sed expression to map a string onto a valid variable name. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" - - -# Check that we are running under the correct shell. SHELL=${CONFIG_SHELL-/bin/sh} -case X$ECHO in -X*--fallback-echo) - # Remove one level of quotation (which was required for Make). - ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','` - ;; -esac - -echo=${ECHO-echo} -if test "X$1" = X--no-reexec; then - # Discard the --no-reexec flag, and continue. - shift -elif test "X$1" = X--fallback-echo; then - # Avoid inline document here, it may be left over - : -elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then - # Yippee, $echo works! - : -else - # Restart under the correct shell. - exec $SHELL "$0" --no-reexec ${1+"$@"} -fi - -if test "X$1" = X--fallback-echo; then - # used as fallback echo - shift - cat </dev/null 2>&1 && unset CDPATH - -if test -z "$ECHO"; then -if test "X${echo_test_string+set}" != Xset; then -# find a string as large as possible, as long as the shell can cope with it - for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do - # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... - if (echo_test_string=`eval $cmd`) 2>/dev/null && - echo_test_string=`eval $cmd` && - (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null - then - break - fi - done -fi - -if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && - echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && - test "X$echo_testing_string" = "X$echo_test_string"; then - : -else - # The Solaris, AIX, and Digital Unix default echo programs unquote - # backslashes. This makes it impossible to quote backslashes using - # echo "$something" | sed 's/\\/\\\\/g' - # - # So, first we look for a working echo in the user's PATH. - - lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR - for dir in $PATH /usr/ucb; do - IFS="$lt_save_ifs" - if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && - test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && - echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && - test "X$echo_testing_string" = "X$echo_test_string"; then - echo="$dir/echo" - break - fi - done - IFS="$lt_save_ifs" - - if test "X$echo" = Xecho; then - # We didn't find a better echo, so look for alternatives. - if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' && - echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` && - test "X$echo_testing_string" = "X$echo_test_string"; then - # This shell has a builtin print -r that does the trick. - echo='print -r' - elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) && - test "X$CONFIG_SHELL" != X/bin/ksh; then - # If we have ksh, try running configure again with it. - ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} - export ORIGINAL_CONFIG_SHELL - CONFIG_SHELL=/bin/ksh - export CONFIG_SHELL - exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"} - else - # Try using printf. - echo='printf %s\n' - if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && - echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && - test "X$echo_testing_string" = "X$echo_test_string"; then - # Cool, printf works - : - elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && - test "X$echo_testing_string" = 'X\t' && - echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && - test "X$echo_testing_string" = "X$echo_test_string"; then - CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL - export CONFIG_SHELL - SHELL="$CONFIG_SHELL" - export SHELL - echo="$CONFIG_SHELL $0 --fallback-echo" - elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && - test "X$echo_testing_string" = 'X\t' && - echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && - test "X$echo_testing_string" = "X$echo_test_string"; then - echo="$CONFIG_SHELL $0 --fallback-echo" - else - # maybe with a smaller string... - prev=: - - for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do - if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null - then - break - fi - prev="$cmd" - done - - if test "$prev" != 'sed 50q "$0"'; then - echo_test_string=`eval $prev` - export echo_test_string - exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"} - else - # Oops. We lost completely, so just stick with echo. - echo=echo - fi - fi - fi - fi -fi -fi - -# Copy echo and quote the copy suitably for passing to libtool from -# the Makefile, instead of quoting the original, which is used later. -ECHO=$echo -if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then - ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo" -fi - - - - -tagnames=${tagnames+${tagnames},}CXX test -n "$DJDIR" || exec 7<&0 &1 # Name of the host. -# hostname on some systems (SVR3.2, Linux) returns a bogus exit status, +# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, # so uname gets run too. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` @@ -745,12 +631,23 @@ ac_header_list= ac_subst_vars='LTLIBOBJS -LIBTOOL +OTOOL64 +OTOOL +LIPO NMEDIT DSYMUTIL +MANIFEST_TOOL STRIP +ac_ct_AR AR -ECHO +DLLTOOL +OBJDUMP +NM +ac_ct_DUMPBIN +DUMPBIN +LD +FGREP +LIBTOOL PHP_VERSION_ID PHP_VERSION PHP_LIBS @@ -765,6 +662,7 @@ EXTRA_LDFLAGS_PROGRAM EXTRA_LDFLAGS EXTENSION_DIR +DEBIAN_PHP_API DEBUG_CFLAGS program_suffix program_prefix @@ -937,6 +835,7 @@ enable_dtrace enable_fd_setsize enable_all +with_system_tzdata with_regex enable_libxml with_libxml_dir @@ -1070,11 +969,11 @@ with_tsrm_pthreads enable_shared enable_static +with_pic enable_fast_install with_gnu_ld +with_sysroot enable_libtool_lock -with_pic -with_tags ' ac_precious_vars='build_alias host_alias @@ -1153,8 +1052,9 @@ fi case $ac_option in - *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; - *) ac_optarg=yes ;; + *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; + *=) ac_optarg= ;; + *) ac_optarg=yes ;; esac # Accept the important Cygnus configure options, so we can diagnose typos. @@ -1199,7 +1099,7 @@ ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` # Reject names that are not valid shell variable names. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && - as_fn_error "invalid feature name: $ac_useropt" + as_fn_error $? "invalid feature name: $ac_useropt" ac_useropt_orig=$ac_useropt ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` case $ac_user_opts in @@ -1225,7 +1125,7 @@ ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` # Reject names that are not valid shell variable names. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && - as_fn_error "invalid feature name: $ac_useropt" + as_fn_error $? "invalid feature name: $ac_useropt" ac_useropt_orig=$ac_useropt ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` case $ac_user_opts in @@ -1429,7 +1329,7 @@ ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` # Reject names that are not valid shell variable names. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && - as_fn_error "invalid package name: $ac_useropt" + as_fn_error $? "invalid package name: $ac_useropt" ac_useropt_orig=$ac_useropt ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` case $ac_user_opts in @@ -1445,7 +1345,7 @@ ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` # Reject names that are not valid shell variable names. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && - as_fn_error "invalid package name: $ac_useropt" + as_fn_error $? "invalid package name: $ac_useropt" ac_useropt_orig=$ac_useropt ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` case $ac_user_opts in @@ -1475,8 +1375,8 @@ | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) x_libraries=$ac_optarg ;; - -*) as_fn_error "unrecognized option: \`$ac_option' -Try \`$0 --help' for more information." + -*) as_fn_error $? "unrecognized option: \`$ac_option' +Try \`$0 --help' for more information" ;; *=*) @@ -1484,7 +1384,7 @@ # Reject names that are not valid shell variable names. case $ac_envvar in #( '' | [0-9]* | *[!_$as_cr_alnum]* ) - as_fn_error "invalid variable name: \`$ac_envvar'" ;; + as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; esac eval $ac_envvar=\$ac_optarg export $ac_envvar ;; @@ -1494,7 +1394,7 @@ $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 - : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} + : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" ;; esac @@ -1502,13 +1402,13 @@ if test -n "$ac_prev"; then ac_option=--`echo $ac_prev | sed 's/_/-/g'` - as_fn_error "missing argument to $ac_option" + as_fn_error $? "missing argument to $ac_option" fi if test -n "$ac_unrecognized_opts"; then case $enable_option_checking in no) ;; - fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;; + fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; esac fi @@ -1531,7 +1431,7 @@ [\\/$]* | ?:[\\/]* ) continue;; NONE | '' ) case $ac_var in *prefix ) continue;; esac;; esac - as_fn_error "expected an absolute directory name for --$ac_var: $ac_val" + as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" done # There might be people who depend on the old broken behavior: `$host' @@ -1545,8 +1445,6 @@ if test "x$host_alias" != x; then if test "x$build_alias" = x; then cross_compiling=maybe - $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. - If a cross compiler is detected then cross compile mode will be used." >&2 elif test "x$build_alias" != "x$host_alias"; then cross_compiling=yes fi @@ -1561,9 +1459,9 @@ ac_pwd=`pwd` && test -n "$ac_pwd" && ac_ls_di=`ls -di .` && ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || - as_fn_error "working directory cannot be determined" + as_fn_error $? "working directory cannot be determined" test "X$ac_ls_di" = "X$ac_pwd_ls_di" || - as_fn_error "pwd does not report name of working directory" + as_fn_error $? "pwd does not report name of working directory" # Find the source files, if location was not specified. @@ -1602,11 +1500,11 @@ fi if test ! -r "$srcdir/$ac_unique_file"; then test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." - as_fn_error "cannot find sources ($ac_unique_file) in $srcdir" + as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" fi ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" ac_abs_confdir=`( - cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg" + cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" pwd)` # When building in place, set srcdir=. if test "$ac_abs_confdir" = "$ac_pwd"; then @@ -1646,7 +1544,7 @@ --help=short display options specific to this package --help=recursive display the short help of all the included packages -V, --version display version information and exit - -q, --quiet, --silent do not print \`checking...' messages + -q, --quiet, --silent do not print \`checking ...' messages --cache-file=FILE cache test results in FILE [disabled] -C, --config-cache alias for \`--cache-file=config.cache' -n, --no-create do not create output files @@ -1789,6 +1687,7 @@ --disable-all Disable all extensions which are enabled by default + --with-system-tzdata=DIR to specify use of system timezone data --with-regex=TYPE regex library type: system, php. TYPE=php WARNING: Do NOT use unless you know what you are doing! --disable-libxml Disable LIBXML support @@ -1997,7 +1896,7 @@ PEAR: - --with-pear=DIR Install PEAR in DIR [PREFIX/lib/php] + --with-pear=DIR Install PEAR in DIR [PREFIX/lib/php5] --without-pear Do not install PEAR Zend: @@ -2018,14 +1917,16 @@ Libtool: - --enable-shared=PKGS build shared libraries default=yes - --enable-static=PKGS build static libraries default=yes - --enable-fast-install=PKGS optimize for fast installation default=yes - --with-gnu-ld assume the C compiler uses GNU ld default=no + --enable-shared[=PKGS] build shared libraries [default=yes] + --enable-static[=PKGS] build static libraries [default=yes] + --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use + both] + --enable-fast-install[=PKGS] + optimize for fast installation [default=yes] + --with-gnu-ld assume the C compiler uses GNU ld [default=no] + --with-sysroot=DIR Search for dependent libraries within DIR + (or the compiler's sysroot if not specified). --disable-libtool-lock avoid locking (might break parallel builds) - --with-pic try to use only PIC/non-PIC objects default=use both - --with-tags=TAGS include additional configurations automatic - Some influential environment variables: CC C compiler command @@ -2036,8 +1937,9 @@ CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I if you have headers in a nonstandard directory CPP C preprocessor - YACC The `Yet Another C Compiler' implementation to use. Defaults to - the first program found out of: `bison -y', `byacc', `yacc'. + YACC The `Yet Another Compiler Compiler' implementation to use. + Defaults to the first program found out of: `bison -y', `byacc', + `yacc'. YFLAGS The list of arguments that will be passed by default to $YACC. This script will default YFLAGS to the empty string to avoid a default value of `-d' given by some make applications. @@ -2112,9 +2014,9 @@ if $ac_init_version; then cat <<\_ACEOF configure -generated by GNU Autoconf 2.65 +generated by GNU Autoconf 2.69 -Copyright (C) 2009 Free Software Foundation, Inc. +Copyright (C) 2012 Free Software Foundation, Inc. This configure script is free software; the Free Software Foundation gives unlimited permission to copy, distribute and modify it. _ACEOF @@ -2158,7 +2060,7 @@ ac_retval=1 fi - eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} + eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno as_fn_set_status $ac_retval } # ac_fn_c_try_compile @@ -2184,7 +2086,7 @@ mv -f conftest.er1 conftest.err fi $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 - test $ac_status = 0; } >/dev/null && { + test $ac_status = 0; } > conftest.i && { test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || test ! -s conftest.err }; then : @@ -2195,7 +2097,7 @@ ac_retval=1 fi - eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} + eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno as_fn_set_status $ac_retval } # ac_fn_c_try_cpp @@ -2208,10 +2110,10 @@ ac_fn_c_check_header_mongrel () { as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack - if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : + if eval \${$3+:} false; then : { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 $as_echo_n "checking for $2... " >&6; } -if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : +if eval \${$3+:} false; then : $as_echo_n "(cached) " >&6 fi eval ac_res=\$$3 @@ -2247,7 +2149,7 @@ else ac_header_preproc=no fi -rm -f conftest.err conftest.$ac_ext +rm -f conftest.err conftest.i conftest.$ac_ext { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 $as_echo "$ac_header_preproc" >&6; } @@ -2274,7 +2176,7 @@ esac { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 $as_echo_n "checking for $2... " >&6; } -if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : +if eval \${$3+:} false; then : $as_echo_n "(cached) " >&6 else eval "$3=\$ac_header_compiler" @@ -2283,7 +2185,7 @@ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 $as_echo "$ac_res" >&6; } fi - eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} + eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno } # ac_fn_c_check_header_mongrel @@ -2324,7 +2226,7 @@ ac_retval=$ac_status fi rm -rf conftest.dSYM conftest_ipa8_conftest.oo - eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} + eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno as_fn_set_status $ac_retval } # ac_fn_c_try_run @@ -2338,7 +2240,7 @@ as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 $as_echo_n "checking for $2... " >&6; } -if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : +if eval \${$3+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -2356,7 +2258,7 @@ eval ac_res=\$$3 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 $as_echo "$ac_res" >&6; } - eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} + eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno } # ac_fn_c_check_header_compile @@ -2387,7 +2289,7 @@ test ! -s conftest.err } && test -s conftest$ac_exeext && { test "$cross_compiling" = yes || - $as_test_x conftest$ac_exeext + test -x conftest$ac_exeext }; then : ac_retval=0 else @@ -2401,7 +2303,7 @@ # interfere with the next link command; also delete a directory that is # left behind by Apple's compiler. We do this before executing the actions. rm -rf conftest.dSYM conftest_ipa8_conftest.oo - eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} + eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno as_fn_set_status $ac_retval } # ac_fn_c_try_link @@ -2414,7 +2316,7 @@ as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 $as_echo_n "checking for $2... " >&6; } -if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : +if eval \${$3+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -2469,7 +2371,7 @@ eval ac_res=\$$3 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 $as_echo "$ac_res" >&6; } - eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} + eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno } # ac_fn_c_check_func @@ -2482,7 +2384,7 @@ as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5 $as_echo_n "checking for $2.$3... " >&6; } -if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then : +if eval \${$4+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -2526,19 +2428,22 @@ eval ac_res=\$$4 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 $as_echo "$ac_res" >&6; } - eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} + eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno } # ac_fn_c_check_member -# ac_fn_c_check_decl LINENO SYMBOL VAR -# ------------------------------------ -# Tests whether SYMBOL is declared, setting cache variable VAR accordingly. +# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES +# --------------------------------------------- +# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR +# accordingly. ac_fn_c_check_decl () { as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5 -$as_echo_n "checking whether $2 is declared... " >&6; } -if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : + as_decl_name=`echo $2|sed 's/ *(.*//'` + as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 +$as_echo_n "checking whether $as_decl_name is declared... " >&6; } +if eval \${$3+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -2547,8 +2452,12 @@ int main () { -#ifndef $2 - (void) $2; +#ifndef $as_decl_name +#ifdef __cplusplus + (void) $as_decl_use; +#else + (void) $as_decl_name; +#endif #endif ; @@ -2565,7 +2474,7 @@ eval ac_res=\$$3 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 $as_echo "$ac_res" >&6; } - eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} + eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno } # ac_fn_c_check_decl @@ -2586,7 +2495,8 @@ main () { static int test_array [1 - 2 * !(($2) >= 0)]; -test_array [0] = 0 +test_array [0] = 0; +return test_array [0]; ; return 0; @@ -2602,7 +2512,8 @@ main () { static int test_array [1 - 2 * !(($2) <= $ac_mid)]; -test_array [0] = 0 +test_array [0] = 0; +return test_array [0]; ; return 0; @@ -2628,7 +2539,8 @@ main () { static int test_array [1 - 2 * !(($2) < 0)]; -test_array [0] = 0 +test_array [0] = 0; +return test_array [0]; ; return 0; @@ -2644,7 +2556,8 @@ main () { static int test_array [1 - 2 * !(($2) >= $ac_mid)]; -test_array [0] = 0 +test_array [0] = 0; +return test_array [0]; ; return 0; @@ -2678,7 +2591,8 @@ main () { static int test_array [1 - 2 * !(($2) <= $ac_mid)]; -test_array [0] = 0 +test_array [0] = 0; +return test_array [0]; ; return 0; @@ -2742,7 +2656,7 @@ rm -f conftest.val fi - eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} + eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno as_fn_set_status $ac_retval } # ac_fn_c_compute_int @@ -2756,7 +2670,7 @@ as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 $as_echo_n "checking for $2... " >&6; } -if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : +if eval \${$3+:} false; then : $as_echo_n "(cached) " >&6 else eval "$3=no" @@ -2797,7 +2711,7 @@ eval ac_res=\$$3 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 $as_echo "$ac_res" >&6; } - eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} + eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno } # ac_fn_c_check_type @@ -2834,7 +2748,7 @@ ac_retval=1 fi - eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} + eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno as_fn_set_status $ac_retval } # ac_fn_cxx_try_compile @@ -2860,7 +2774,7 @@ mv -f conftest.er1 conftest.err fi $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 - test $ac_status = 0; } >/dev/null && { + test $ac_status = 0; } > conftest.i && { test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || test ! -s conftest.err }; then : @@ -2871,16 +2785,62 @@ ac_retval=1 fi - eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} + eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno as_fn_set_status $ac_retval } # ac_fn_cxx_try_cpp + +# ac_fn_cxx_try_link LINENO +# ------------------------- +# Try to link conftest.$ac_ext, and return whether this succeeded. +ac_fn_cxx_try_link () +{ + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack + rm -f conftest.$ac_objext conftest$ac_exeext + if { { ac_try="$ac_link" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_link") 2>conftest.err + ac_status=$? + if test -s conftest.err; then + grep -v '^ *+' conftest.err >conftest.er1 + cat conftest.er1 >&5 + mv -f conftest.er1 conftest.err + fi + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } && { + test -z "$ac_cxx_werror_flag" || + test ! -s conftest.err + } && test -s conftest$ac_exeext && { + test "$cross_compiling" = yes || + test -x conftest$ac_exeext + }; then : + ac_retval=0 +else + $as_echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + ac_retval=1 +fi + # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information + # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would + # interfere with the next link command; also delete a directory that is + # left behind by Apple's compiler. We do this before executing the actions. + rm -rf conftest.dSYM conftest_ipa8_conftest.oo + eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno + as_fn_set_status $ac_retval + +} # ac_fn_cxx_try_link cat >config.log <<_ACEOF This file contains any messages produced by compilers while running configure, to aid debugging if configure makes a mistake. It was created by $as_me, which was -generated by GNU Autoconf 2.65. Invocation command line was +generated by GNU Autoconf 2.69. Invocation command line was $ $0 $@ @@ -2990,11 +2950,9 @@ { echo - cat <<\_ASBOX -## ---------------- ## + $as_echo "## ---------------- ## ## Cache variables. ## -## ---------------- ## -_ASBOX +## ---------------- ##" echo # The following way of writing the cache mishandles newlines in values, ( @@ -3028,11 +2986,9 @@ ) echo - cat <<\_ASBOX -## ----------------- ## + $as_echo "## ----------------- ## ## Output variables. ## -## ----------------- ## -_ASBOX +## ----------------- ##" echo for ac_var in $ac_subst_vars do @@ -3045,11 +3001,9 @@ echo if test -n "$ac_subst_files"; then - cat <<\_ASBOX -## ------------------- ## + $as_echo "## ------------------- ## ## File substitutions. ## -## ------------------- ## -_ASBOX +## ------------------- ##" echo for ac_var in $ac_subst_files do @@ -3063,11 +3017,9 @@ fi if test -s confdefs.h; then - cat <<\_ASBOX -## ----------- ## + $as_echo "## ----------- ## ## confdefs.h. ## -## ----------- ## -_ASBOX +## ----------- ##" echo cat confdefs.h echo @@ -3122,7 +3074,12 @@ ac_site_file1=NONE ac_site_file2=NONE if test -n "$CONFIG_SITE"; then - ac_site_file1=$CONFIG_SITE + # We do not want a PATH search for config.site. + case $CONFIG_SITE in #(( + -*) ac_site_file1=./$CONFIG_SITE;; + */*) ac_site_file1=$CONFIG_SITE;; + *) ac_site_file1=./$CONFIG_SITE;; + esac elif test "x$prefix" != xNONE; then ac_site_file1=$prefix/share/config.site ac_site_file2=$prefix/etc/config.site @@ -3137,7 +3094,11 @@ { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 $as_echo "$as_me: loading site script $ac_site_file" >&6;} sed 's/^/| /' "$ac_site_file" >&5 - . "$ac_site_file" + . "$ac_site_file" \ + || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error $? "failed to load site script $ac_site_file +See \`config.log' for more details" "$LINENO" 5; } fi done @@ -3214,7 +3175,7 @@ $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} - as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 + as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 fi ## -------------------- ## ## Main body of script. ## @@ -3233,7 +3194,7 @@ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 $as_echo_n "checking for grep that handles long lines and -e... " >&6; } -if test "${ac_cv_path_GREP+set}" = set; then : +if ${ac_cv_path_GREP+:} false; then : $as_echo_n "(cached) " >&6 else if test -z "$GREP"; then @@ -3247,7 +3208,7 @@ for ac_prog in grep ggrep; do for ac_exec_ext in '' $ac_executable_extensions; do ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" - { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue + as_fn_executable_p "$ac_path_GREP" || continue # Check for GNU ac_path_GREP and select it if it is found. # Check for GNU $ac_path_GREP case `"$ac_path_GREP" --version 2>&1` in @@ -3282,7 +3243,7 @@ done IFS=$as_save_IFS if test -z "$ac_cv_path_GREP"; then - as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 + as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 fi else ac_cv_path_GREP=$GREP @@ -3296,7 +3257,7 @@ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 $as_echo_n "checking for egrep... " >&6; } -if test "${ac_cv_path_EGREP+set}" = set; then : +if ${ac_cv_path_EGREP+:} false; then : $as_echo_n "(cached) " >&6 else if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 @@ -3313,7 +3274,7 @@ for ac_prog in egrep; do for ac_exec_ext in '' $ac_executable_extensions; do ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" - { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue + as_fn_executable_p "$ac_path_EGREP" || continue # Check for GNU ac_path_EGREP and select it if it is found. # Check for GNU $ac_path_EGREP case `"$ac_path_EGREP" --version 2>&1` in @@ -3348,7 +3309,7 @@ done IFS=$as_save_IFS if test -z "$ac_cv_path_EGREP"; then - as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 + as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 fi else ac_cv_path_EGREP=$EGREP @@ -3363,60 +3324,72 @@ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 $as_echo_n "checking for a sed that does not truncate output... " >&6; } -if test "${lt_cv_path_SED+set}" = set; then : +if ${ac_cv_path_SED+:} false; then : $as_echo_n "(cached) " >&6 else - # Loop through the user's path and test for sed and gsed. -# Then use that list of sed's as ones to test for truncation. -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR + ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ + for ac_i in 1 2 3 4 5 6 7; do + ac_script="$ac_script$as_nl$ac_script" + done + echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed + { ac_script=; unset ac_script;} + if test -z "$SED"; then + ac_path_SED_found=false + # Loop through the user's path and test for each of PROGNAME-LIST + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. - for lt_ac_prog in sed gsed; do + for ac_prog in sed gsed; do for ac_exec_ext in '' $ac_executable_extensions; do - if test -f "$as_dir/$lt_ac_prog$ac_exec_ext"; then - lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext" - fi - done - done -done -lt_ac_max=0 -lt_ac_count=0 -# Add /usr/xpg4/bin/sed as it is typically found on Solaris -# along with /bin/sed that truncates output. -for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do - test ! -f $lt_ac_sed && continue - cat /dev/null > conftest.in - lt_ac_count=0 - echo $ECHO_N "0123456789$ECHO_C" >conftest.in - # Check for GNU sed and select it if it is found. - if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then - lt_cv_path_SED=$lt_ac_sed - break - fi - while true; do - cat conftest.in conftest.in >conftest.tmp - mv conftest.tmp conftest.in - cp conftest.in conftest.nl - echo >>conftest.nl - $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break - cmp -s conftest.out conftest.nl || break - # 10000 chars as input seems more than enough - test $lt_ac_count -gt 10 && break - lt_ac_count=`expr $lt_ac_count + 1` - if test $lt_ac_count -gt $lt_ac_max; then - lt_ac_max=$lt_ac_count - lt_cv_path_SED=$lt_ac_sed + ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" + as_fn_executable_p "$ac_path_SED" || continue +# Check for GNU ac_path_SED and select it if it is found. + # Check for GNU $ac_path_SED +case `"$ac_path_SED" --version 2>&1` in +*GNU*) + ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; +*) + ac_count=0 + $as_echo_n 0123456789 >"conftest.in" + while : + do + cat "conftest.in" "conftest.in" >"conftest.tmp" + mv "conftest.tmp" "conftest.in" + cp "conftest.in" "conftest.nl" + $as_echo '' >> "conftest.nl" + "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break + diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break + as_fn_arith $ac_count + 1 && ac_count=$as_val + if test $ac_count -gt ${ac_path_SED_max-0}; then + # Best one so far, save it but keep looking for a better one + ac_cv_path_SED="$ac_path_SED" + ac_path_SED_max=$ac_count fi + # 10*(2^10) chars as input seems more than enough + test $ac_count -gt 10 && break done -done + rm -f conftest.in conftest.tmp conftest.nl conftest.out;; +esac + $ac_path_SED_found && break 3 + done + done + done +IFS=$as_save_IFS + if test -z "$ac_cv_path_SED"; then + as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 + fi +else + ac_cv_path_SED=$SED fi -SED=$lt_cv_path_SED -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5 -$as_echo "$SED" >&6; } +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 +$as_echo "$ac_cv_path_SED" >&6; } + SED="$ac_cv_path_SED" + rm -f conftest.sed @@ -3489,16 +3462,22 @@ ac_aux_dir= for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do - for ac_t in install-sh install.sh shtool; do - if test -f "$ac_dir/$ac_t"; then - ac_aux_dir=$ac_dir - ac_install_sh="$ac_aux_dir/$ac_t -c" - break 2 - fi - done + if test -f "$ac_dir/install-sh"; then + ac_aux_dir=$ac_dir + ac_install_sh="$ac_aux_dir/install-sh -c" + break + elif test -f "$ac_dir/install.sh"; then + ac_aux_dir=$ac_dir + ac_install_sh="$ac_aux_dir/install.sh -c" + break + elif test -f "$ac_dir/shtool"; then + ac_aux_dir=$ac_dir + ac_install_sh="$ac_aux_dir/shtool install -c" + break + fi done if test -z "$ac_aux_dir"; then - as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 + as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 fi # These three variables are undocumented and unsupported, @@ -3512,27 +3491,27 @@ # Make sure we can run config.sub. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || - as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 + as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 $as_echo_n "checking build system type... " >&6; } -if test "${ac_cv_build+set}" = set; then : +if ${ac_cv_build+:} false; then : $as_echo_n "(cached) " >&6 else ac_build_alias=$build_alias test "x$ac_build_alias" = x && ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` test "x$ac_build_alias" = x && - as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5 + as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || - as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 + as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 $as_echo "$ac_cv_build" >&6; } case $ac_cv_build in *-*-*) ;; -*) as_fn_error "invalid value of canonical build" "$LINENO" 5;; +*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; esac build=$ac_cv_build ac_save_IFS=$IFS; IFS='-' @@ -3550,14 +3529,14 @@ { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 $as_echo_n "checking host system type... " >&6; } -if test "${ac_cv_host+set}" = set; then : +if ${ac_cv_host+:} false; then : $as_echo_n "(cached) " >&6 else if test "x$host_alias" = x; then ac_cv_host=$ac_cv_build else ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || - as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 + as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 fi fi @@ -3565,7 +3544,7 @@ $as_echo "$ac_cv_host" >&6; } case $ac_cv_host in *-*-*) ;; -*) as_fn_error "invalid value of canonical host" "$LINENO" 5;; +*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; esac host=$ac_cv_host ac_save_IFS=$IFS; IFS='-' @@ -3583,14 +3562,14 @@ { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5 $as_echo_n "checking target system type... " >&6; } -if test "${ac_cv_target+set}" = set; then : +if ${ac_cv_target+:} false; then : $as_echo_n "(cached) " >&6 else if test "x$target_alias" = x; then ac_cv_target=$ac_cv_host else ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || - as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5 + as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5 fi fi @@ -3598,7 +3577,7 @@ $as_echo "$ac_cv_target" >&6; } case $ac_cv_target in *-*-*) ;; -*) as_fn_error "invalid value of canonical target" "$LINENO" 5;; +*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;; esac target=$ac_cv_target ac_save_IFS=$IFS; IFS='-' @@ -3625,7 +3604,7 @@ host_alias=$host fi if test -z "$host_alias"; then - as_fn_error "host_alias is not set!" "$LINENO" 5 + as_fn_error $? "host_alias is not set!" "$LINENO" 5 fi @@ -3637,7 +3616,7 @@ PHP_MAJOR_VERSION=5 PHP_MINOR_VERSION=4 PHP_RELEASE_VERSION=4 -PHP_EXTRA_VERSION="" +PHP_EXTRA_VERSION="-15.1+rpi1" PHP_VERSION="$PHP_MAJOR_VERSION.$PHP_MINOR_VERSION.$PHP_RELEASE_VERSION$PHP_EXTRA_VERSION" PHP_VERSION_ID=`expr $PHP_MAJOR_VERSION \* 10000 + $PHP_MINOR_VERSION \* 100 + $PHP_RELEASE_VERSION` @@ -3656,6 +3635,10 @@ +$as_echo "#define _GNU_SOURCE 1" >>confdefs.h + + + echo "/* automatically generated by configure */" > php_version.h.new echo "/* edit configure.in to change version number */" >> php_version.h.new echo "#define PHP_MAJOR_VERSION $PHP_MAJOR_VERSION" >> php_version.h.new @@ -3675,15 +3658,15 @@ if test "$with_shared_apache" != "no" && test -n "$with_shared_apache" ; then - as_fn_error "--with-shared-apache is not supported. Please refer to the documentation for using APXS" "$LINENO" 5 + as_fn_error $? "--with-shared-apache is not supported. Please refer to the documentation for using APXS" "$LINENO" 5 fi if test -n "$with_apache" && test -n "$with_apxs"; then - as_fn_error "--with-apache and --with-apxs cannot be used together" "$LINENO" 5 + as_fn_error $? "--with-apache and --with-apxs cannot be used together" "$LINENO" 5 fi if test -n "$with_apxs2filter" && test -n "$with_apxs2"; then - as_fn_error "--with-apxs2filter and --with-apxs2 cannot be used together" "$LINENO" 5 + as_fn_error $? "--with-apxs2filter and --with-apxs2 cannot be used together" "$LINENO" 5 fi @@ -3727,7 +3710,7 @@ set dummy $ac_tool_prefix$ac_prog; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } -if test "${ac_cv_prog_CC+set}" = set; then : +if ${ac_cv_prog_CC+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$CC"; then @@ -3739,7 +3722,7 @@ IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_CC="$ac_tool_prefix$ac_prog" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 @@ -3771,7 +3754,7 @@ set dummy $ac_prog; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } -if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : +if ${ac_cv_prog_ac_ct_CC+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$ac_ct_CC"; then @@ -3783,7 +3766,7 @@ IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_CC="$ac_prog" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 @@ -3823,8 +3806,8 @@ test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} -as_fn_error "no acceptable C compiler found in \$PATH -See \`config.log' for more details." "$LINENO" 5; } +as_fn_error $? "no acceptable C compiler found in \$PATH +See \`config.log' for more details" "$LINENO" 5; } # Provide some information about the compiler. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 @@ -3938,9 +3921,8 @@ { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} -{ as_fn_set_status 77 -as_fn_error "C compiler cannot create executables -See \`config.log' for more details." "$LINENO" 5; }; } +as_fn_error 77 "C compiler cannot create executables +See \`config.log' for more details" "$LINENO" 5; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } @@ -3982,8 +3964,8 @@ else { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} -as_fn_error "cannot compute suffix of executables: cannot compile and link -See \`config.log' for more details." "$LINENO" 5; } +as_fn_error $? "cannot compute suffix of executables: cannot compile and link +See \`config.log' for more details" "$LINENO" 5; } fi rm -f conftest conftest$ac_cv_exeext { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 @@ -4040,9 +4022,9 @@ else { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} -as_fn_error "cannot run C compiled programs. +as_fn_error $? "cannot run C compiled programs. If you meant to cross compile, use \`--host'. -See \`config.log' for more details." "$LINENO" 5; } +See \`config.log' for more details" "$LINENO" 5; } fi fi fi @@ -4053,7 +4035,7 @@ ac_clean_files=$ac_clean_files_save { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 $as_echo_n "checking for suffix of object files... " >&6; } -if test "${ac_cv_objext+set}" = set; then : +if ${ac_cv_objext+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -4093,8 +4075,8 @@ { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} -as_fn_error "cannot compute suffix of object files: cannot compile -See \`config.log' for more details." "$LINENO" 5; } +as_fn_error $? "cannot compute suffix of object files: cannot compile +See \`config.log' for more details" "$LINENO" 5; } fi rm -f conftest.$ac_cv_objext conftest.$ac_ext fi @@ -4104,7 +4086,7 @@ ac_objext=$OBJEXT { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } -if test "${ac_cv_c_compiler_gnu+set}" = set; then : +if ${ac_cv_c_compiler_gnu+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -4141,7 +4123,7 @@ ac_save_CFLAGS=$CFLAGS { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 $as_echo_n "checking whether $CC accepts -g... " >&6; } -if test "${ac_cv_prog_cc_g+set}" = set; then : +if ${ac_cv_prog_cc_g+:} false; then : $as_echo_n "(cached) " >&6 else ac_save_c_werror_flag=$ac_c_werror_flag @@ -4219,7 +4201,7 @@ fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } -if test "${ac_cv_prog_cc_c89+set}" = set; then : +if ${ac_cv_prog_cc_c89+:} false; then : $as_echo_n "(cached) " >&6 else ac_cv_prog_cc_c89=no @@ -4228,8 +4210,7 @@ /* end confdefs.h. */ #include #include -#include -#include +struct stat; /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ struct buf { int x; }; FILE * (*rcsopen) (struct buf *, struct stat *, int); @@ -4327,7 +4308,7 @@ CPP= fi if test -z "$CPP"; then - if test "${ac_cv_prog_CPP+set}" = set; then : + if ${ac_cv_prog_CPP+:} false; then : $as_echo_n "(cached) " >&6 else # Double quotes because CPP needs to be expanded @@ -4357,7 +4338,7 @@ # Broken: fails on valid input. continue fi -rm -f conftest.err conftest.$ac_ext +rm -f conftest.err conftest.i conftest.$ac_ext # OK, works on sane cases. Now check whether nonexistent headers # can be detected and how. @@ -4373,11 +4354,11 @@ ac_preproc_ok=: break fi -rm -f conftest.err conftest.$ac_ext +rm -f conftest.err conftest.i conftest.$ac_ext done # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. -rm -f conftest.err conftest.$ac_ext +rm -f conftest.i conftest.err conftest.$ac_ext if $ac_preproc_ok; then : break fi @@ -4416,7 +4397,7 @@ # Broken: fails on valid input. continue fi -rm -f conftest.err conftest.$ac_ext +rm -f conftest.err conftest.i conftest.$ac_ext # OK, works on sane cases. Now check whether nonexistent headers # can be detected and how. @@ -4432,18 +4413,18 @@ ac_preproc_ok=: break fi -rm -f conftest.err conftest.$ac_ext +rm -f conftest.err conftest.i conftest.$ac_ext done # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. -rm -f conftest.err conftest.$ac_ext +rm -f conftest.i conftest.err conftest.$ac_ext if $ac_preproc_ok; then : else { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} -as_fn_error "C preprocessor \"$CPP\" fails sanity check -See \`config.log' for more details." "$LINENO" 5; } +as_fn_error $? "C preprocessor \"$CPP\" fails sanity check +See \`config.log' for more details" "$LINENO" 5; } fi ac_ext=c @@ -4510,7 +4491,7 @@ fi set dummy $CC; ac_cc=`$as_echo "$2" | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'` -if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then : +if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -4624,7 +4605,7 @@ CPP= fi if test -z "$CPP"; then - if test "${ac_cv_prog_CPP+set}" = set; then : + if ${ac_cv_prog_CPP+:} false; then : $as_echo_n "(cached) " >&6 else # Double quotes because CPP needs to be expanded @@ -4654,7 +4635,7 @@ # Broken: fails on valid input. continue fi -rm -f conftest.err conftest.$ac_ext +rm -f conftest.err conftest.i conftest.$ac_ext # OK, works on sane cases. Now check whether nonexistent headers # can be detected and how. @@ -4670,11 +4651,11 @@ ac_preproc_ok=: break fi -rm -f conftest.err conftest.$ac_ext +rm -f conftest.err conftest.i conftest.$ac_ext done # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. -rm -f conftest.err conftest.$ac_ext +rm -f conftest.i conftest.err conftest.$ac_ext if $ac_preproc_ok; then : break fi @@ -4713,7 +4694,7 @@ # Broken: fails on valid input. continue fi -rm -f conftest.err conftest.$ac_ext +rm -f conftest.err conftest.i conftest.$ac_ext # OK, works on sane cases. Now check whether nonexistent headers # can be detected and how. @@ -4729,18 +4710,18 @@ ac_preproc_ok=: break fi -rm -f conftest.err conftest.$ac_ext +rm -f conftest.err conftest.i conftest.$ac_ext done # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. -rm -f conftest.err conftest.$ac_ext +rm -f conftest.i conftest.err conftest.$ac_ext if $ac_preproc_ok; then : else { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} -as_fn_error "C preprocessor \"$CPP\" fails sanity check -See \`config.log' for more details." "$LINENO" 5; } +as_fn_error $? "C preprocessor \"$CPP\" fails sanity check +See \`config.log' for more details" "$LINENO" 5; } fi ac_ext=c @@ -4751,7 +4732,7 @@ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 $as_echo_n "checking for ANSI C header files... " >&6; } -if test "${ac_cv_header_stdc+set}" = set; then : +if ${ac_cv_header_stdc+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -4868,8 +4849,7 @@ as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default " -eval as_val=\$$as_ac_Header - if test "x$as_val" = x""yes; then : +if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : cat >>confdefs.h <<_ACEOF #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 _ACEOF @@ -4881,7 +4861,7 @@ ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default" -if test "x$ac_cv_header_minix_config_h" = x""yes; then : +if test "x$ac_cv_header_minix_config_h" = xyes; then : MINIX=yes else MINIX= @@ -4903,14 +4883,14 @@ { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; } -if test "${ac_cv_safe_to_define___extensions__+set}" = set; then : +if ${ac_cv_safe_to_define___extensions__+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ -# define __EXTENSIONS__ 1 - $ac_includes_default +# define __EXTENSIONS__ 1 + $ac_includes_default int main () { @@ -5003,7 +4983,7 @@ { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -R" >&5 $as_echo_n "checking if compiler supports -R... " >&6; } -if test "${php_cv_cc_dashr+set}" = set; then : +if ${php_cv_cc_dashr+:} false; then : $as_echo_n "(cached) " >&6 else @@ -5037,7 +5017,7 @@ else { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Wl,-rpath," >&5 $as_echo_n "checking if compiler supports -Wl,-rpath,... " >&6; } - if test "${php_cv_cc_rpath+set}" = set; then : + if ${php_cv_cc_rpath+:} false; then : $as_echo_n "(cached) " >&6 else @@ -5084,7 +5064,7 @@ set dummy $ac_prog; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } -if test "${ac_cv_prog_AWK+set}" = set; then : +if ${ac_cv_prog_AWK+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$AWK"; then @@ -5097,7 +5077,7 @@ IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_AWK="$ac_prog" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 @@ -5130,7 +5110,7 @@ *gawk) ;; bork) - as_fn_error "Could not find awk; Install GNU awk" "$LINENO" 5 + as_fn_error $? "Could not find awk; Install GNU awk" "$LINENO" 5 ;; *) { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $AWK is broken" >&5 @@ -5138,7 +5118,7 @@ if ! $AWK 'function foo() {}' >/dev/null 2>&1 ; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } - as_fn_error "You should install GNU awk" "$LINENO" 5 + as_fn_error $? "You should install GNU awk" "$LINENO" 5 else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } @@ -5156,7 +5136,7 @@ set dummy $ac_prog; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } -if test "${ac_cv_prog_YACC+set}" = set; then : +if ${ac_cv_prog_YACC+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$YACC"; then @@ -5168,7 +5148,7 @@ IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_YACC="$ac_prog" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 @@ -5204,7 +5184,7 @@ if test "$YACC"; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bison version" >&5 $as_echo_n "checking for bison version... " >&6; } -if test "${php_cv_bison_version+set}" = set; then : +if ${php_cv_bison_version+:} false; then : $as_echo_n "(cached) " >&6 else @@ -5243,7 +5223,7 @@ set dummy re2c; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } -if test "${ac_cv_prog_RE2C+set}" = set; then : +if ${ac_cv_prog_RE2C+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$RE2C"; then @@ -5255,7 +5235,7 @@ IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_RE2C="re2c" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 @@ -5279,7 +5259,7 @@ if test -n "$RE2C"; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking for re2c version" >&5 $as_echo_n "checking for re2c version... " >&6; } -if test "${php_cv_re2c_version+set}" = set; then : +if ${php_cv_re2c_version+:} false; then : $as_echo_n "(cached) " >&6 else @@ -5309,7 +5289,7 @@ case $php_cv_bison_version in ""|invalid) if ! test -f "$abs_srcdir/Zend/zend_language_parser.h" || ! test -f "$abs_srcdir/Zend/zend_language_parser.c" ; then - as_fn_error "bison is required to build PHP/Zend when building a GIT checkout!" "$LINENO" 5 + as_fn_error $? "bison is required to build PHP/Zend when building a GIT checkout!" "$LINENO" 5 fi ;; esac @@ -5429,7 +5409,7 @@ gcc_arg_name=ac_cv_gcc_arg_no_cpp_precomp { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -no-cpp-precomp" >&5 $as_echo_n "checking whether $CC supports -no-cpp-precomp... " >&6; } -if test "${ac_cv_gcc_arg_no_cpp_precomp+set}" = set; then : +if ${ac_cv_gcc_arg_no_cpp_precomp+:} false; then : $as_echo_n "(cached) " >&6 else @@ -5767,7 +5747,7 @@ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthreads_cflags" >&5 $as_echo_n "checking for pthreads_cflags... " >&6; } -if test "${ac_cv_pthreads_cflags+set}" = set; then : +if ${ac_cv_pthreads_cflags+:} false; then : $as_echo_n "(cached) " >&6 else @@ -5833,7 +5813,7 @@ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthreads_lib" >&5 $as_echo_n "checking for pthreads_lib... " >&6; } -if test "${ac_cv_pthreads_lib+set}" = set; then : +if ${ac_cv_pthreads_lib+:} false; then : $as_echo_n "(cached) " >&6 else @@ -6004,15 +5984,15 @@ PHP_AOLSERVER_SRC=$PHP_AOLSERVER fi if test -z "$PHP_AOLSERVER_SRC" || test ! -d $PHP_AOLSERVER_SRC/include; then - as_fn_error "Please specify the path to the source distribution of AOLserver using --with-aolserver-src=DIR" "$LINENO" 5 + as_fn_error $? "Please specify the path to the source distribution of AOLserver using --with-aolserver-src=DIR" "$LINENO" 5 fi if test ! -d $PHP_AOLSERVER/bin ; then - as_fn_error "Please specify the path to the root of AOLserver using --with-aolserver=DIR" "$LINENO" 5 + as_fn_error $? "Please specify the path to the root of AOLserver using --with-aolserver=DIR" "$LINENO" 5 fi enable_maintainer_zts=yes if test "$pthreads_working" != "yes"; then - as_fn_error "ZTS currently requires working POSIX threads. We were unable to verify that your system supports Pthreads." "$LINENO" 5 + as_fn_error $? "ZTS currently requires working POSIX threads. We were unable to verify that your system supports Pthreads." "$LINENO" 5 fi @@ -6053,7 +6033,7 @@ if test "shared" = "program"; then PHP_BINARIES="$PHP_BINARIES aolserver" elif test "$PHP_SAPI" != "none"; then - as_fn_error " + as_fn_error $? " +--------------------------------------------------------------------+ | *** ATTENTION *** | | | @@ -6282,7 +6262,7 @@ { $as_echo "$as_me:${as_lineno-$LINENO}: result: The output of $APXS follows" >&5 $as_echo "The output of $APXS follows" >&6; } $APXS -q CFLAGS - as_fn_error "Aborting" "$LINENO" 5 + as_fn_error $? "Aborting" "$LINENO" 5 fi APXS_LDFLAGS="@SYBASE_LFLAGS@ @SYBASE_LIBS@ @SYBASE_CT_LFLAGS@ @SYBASE_CT_LIBS@" @@ -6291,20 +6271,6 @@ APXS_HTTPD=`$APXS -q SBINDIR`/`$APXS -q TARGET` APACHE_INCLUDE=-I$APXS_INCLUDEDIR - # Test that we're trying to configure with apache 1.x - - ac_output=`$APXS_HTTPD -v 2>&1 | grep version | $SED -e 's/Oracle-HTTP-//'` - ac_IFS=$IFS -IFS="- /. -" - set $ac_output - IFS=$ac_IFS - - APACHE_VERSION=`expr $4 \* 1000000 + $5 \* 1000 + $6` - - if test "$APACHE_VERSION" -ge 2000000; then - as_fn_error "You have enabled Apache 1.3 support while your server is Apache 2. Please use the appropiate switch --with-apxs2" "$LINENO" 5 - fi for flag in $APXS_CFLAGS; do case $flag in @@ -6336,7 +6302,7 @@ if test "$build_type" = "program"; then PHP_BINARIES="$PHP_BINARIES apache" elif test "$PHP_SAPI" != "none"; then - as_fn_error " + as_fn_error $? " +--------------------------------------------------------------------+ | *** ATTENTION *** | | | @@ -6590,7 +6556,7 @@ if test "static" = "program"; then PHP_BINARIES="$PHP_BINARIES apache" elif test "$PHP_SAPI" != "none"; then - as_fn_error " + as_fn_error $? " +--------------------------------------------------------------------+ | *** ATTENTION *** | | | @@ -6757,7 +6723,7 @@ fi # For Apache 2.0.x elif test -f $PHP_APACHE/include/httpd.h && test -f $PHP_APACHE/srclib/apr/include/apr_general.h ; then - as_fn_error "Use --with-apxs2 with Apache 2.x!" "$LINENO" 5 + as_fn_error $? "Use --with-apxs2 with Apache 2.x!" "$LINENO" 5 # For Apache 1.3.x elif test -f $PHP_APACHE/src/main/httpd.h; then APACHE_HAS_REGEX=1 @@ -6770,7 +6736,7 @@ if test "static" = "program"; then PHP_BINARIES="$PHP_BINARIES apache" elif test "$PHP_SAPI" != "none"; then - as_fn_error " + as_fn_error $? " +--------------------------------------------------------------------+ | *** ATTENTION *** | | | @@ -6940,7 +6906,7 @@ $as_echo "#define HAVE_AP_COMPAT_H 1" >>confdefs.h if test ! -f $PHP_APACHE/src/include/ap_config_auto.h; then - as_fn_error "Please run Apache\'s configure or src/Configure program once and try again" "$LINENO" 5 + as_fn_error $? "Please run Apache\'s configure or src/Configure program once and try again" "$LINENO" 5 fi elif test -f $PHP_APACHE/src/include/compat.h; then @@ -6959,7 +6925,7 @@ if test "static" = "program"; then PHP_BINARIES="$PHP_BINARIES apache" elif test "$PHP_SAPI" != "none"; then - as_fn_error " + as_fn_error $? " +--------------------------------------------------------------------+ | *** ATTENTION *** | | | @@ -7129,7 +7095,7 @@ $as_echo "#define HAVE_AP_COMPAT_H 1" >>confdefs.h if test ! -f $PHP_APACHE/src/include/ap_config_auto.h; then - as_fn_error "Please run Apache\'s configure or src/Configure program once and try again" "$LINENO" 5 + as_fn_error $? "Please run Apache\'s configure or src/Configure program once and try again" "$LINENO" 5 fi elif test -f $PHP_APACHE/src/include/compat.h; then @@ -7144,7 +7110,7 @@ if test "static" = "program"; then PHP_BINARIES="$PHP_BINARIES apache" elif test "$PHP_SAPI" != "none"; then - as_fn_error " + as_fn_error $? " +--------------------------------------------------------------------+ | *** ATTENTION *** | | | @@ -7314,7 +7280,7 @@ $as_echo "#define HAVE_AP_COMPAT_H 1" >>confdefs.h if test ! -f $PHP_APACHE/src/include/ap_config_auto.h; then - as_fn_error "Please run Apache\'s configure or src/Configure program once and try again" "$LINENO" 5 + as_fn_error $? "Please run Apache\'s configure or src/Configure program once and try again" "$LINENO" 5 fi elif test -f $PHP_APACHE/src/compat.h; then @@ -7324,7 +7290,7 @@ else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } - as_fn_error "Invalid Apache directory - unable to find httpd.h under $PHP_APACHE" "$LINENO" 5 + as_fn_error $? "Invalid Apache directory - unable to find httpd.h under $PHP_APACHE" "$LINENO" 5 fi else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 @@ -7372,7 +7338,7 @@ gcc_arg_name=ac_cv_gcc_arg_rdynamic { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -rdynamic" >&5 $as_echo_n "checking whether $CC supports -rdynamic... " >&6; } -if test "${ac_cv_gcc_arg_rdynamic+set}" = set; then : +if ${ac_cv_gcc_arg_rdynamic+:} false; then : $as_echo_n "(cached) " >&6 else @@ -7415,7 +7381,7 @@ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for member fd in BUFF *" >&5 $as_echo_n "checking for member fd in BUFF *... " >&6; } -if test "${ac_cv_php_fd_in_buff+set}" = set; then : +if ${ac_cv_php_fd_in_buff+:} false; then : $as_echo_n "(cached) " >&6 else @@ -7548,7 +7514,7 @@ { $as_echo "$as_me:${as_lineno-$LINENO}: result: The output of $APXS follows:" >&5 $as_echo "The output of $APXS follows:" >&6; } $APXS -q CFLAGS - as_fn_error "Aborting" "$LINENO" 5 + as_fn_error $? "Aborting" "$LINENO" 5 fi APXS_INCLUDEDIR=`$APXS -q INCLUDEDIR` @@ -7575,22 +7541,6 @@ APACHE_CFLAGS="$APACHE_CPPFLAGS -I$APXS_INCLUDEDIR $APR_CFLAGS $APU_CFLAGS" - # Test that we're trying to configure with apache 2.x - - ac_output=`$APXS_HTTPD -v 2>&1 | grep version | $SED -e 's/Oracle-HTTP-//'` - ac_IFS=$IFS -IFS="- /. -" - set $ac_output - IFS=$ac_IFS - - APACHE_VERSION=`expr $4 \* 1000000 + $5 \* 1000 + $6` - - if test "$APACHE_VERSION" -le 2000000; then - as_fn_error "You have enabled Apache 2 support while your server is Apache 1.3. Please use the appropiate switch --with-apxs (without the 2)" "$LINENO" 5 - elif test "$APACHE_VERSION" -lt 2000040; then - as_fn_error "Please note that Apache version >= 2.0.40 is required" "$LINENO" 5 - fi APXS_LIBEXECDIR='$(INSTALL_ROOT)'`$APXS -q LIBEXECDIR` if test -z `$APXS -q SYSCONFDIR`; then @@ -7613,7 +7563,7 @@ if test "shared" = "program"; then PHP_BINARIES="$PHP_BINARIES apache2filter" elif test "$PHP_SAPI" != "none"; then - as_fn_error " + as_fn_error $? " +--------------------------------------------------------------------+ | *** ATTENTION *** | | | @@ -7785,7 +7735,7 @@ if test "bundle" = "program"; then PHP_BINARIES="$PHP_BINARIES apache2filter" elif test "$PHP_SAPI" != "none"; then - as_fn_error " + as_fn_error $? " +--------------------------------------------------------------------+ | *** ATTENTION *** | | | @@ -7951,7 +7901,7 @@ if test "shared" = "program"; then PHP_BINARIES="$PHP_BINARIES apache2filter" elif test "$PHP_SAPI" != "none"; then - as_fn_error " + as_fn_error $? " +--------------------------------------------------------------------+ | *** ATTENTION *** | | | @@ -8113,7 +8063,7 @@ if test "shared" = "program"; then PHP_BINARIES="$PHP_BINARIES apache2filter" elif test "$PHP_SAPI" != "none"; then - as_fn_error " + as_fn_error $? " +--------------------------------------------------------------------+ | *** ATTENTION *** | | | @@ -8278,7 +8228,7 @@ enable_maintainer_zts=yes if test "$pthreads_working" != "yes"; then - as_fn_error "ZTS currently requires working POSIX threads. We were unable to verify that your system supports Pthreads." "$LINENO" 5 + as_fn_error $? "ZTS currently requires working POSIX threads. We were unable to verify that your system supports Pthreads." "$LINENO" 5 fi fi @@ -8288,7 +8238,7 @@ enable_maintainer_zts=yes if test "$pthreads_working" != "yes"; then - as_fn_error "ZTS currently requires working POSIX threads. We were unable to verify that your system supports Pthreads." "$LINENO" 5 + as_fn_error $? "ZTS currently requires working POSIX threads. We were unable to verify that your system supports Pthreads." "$LINENO" 5 fi fi @@ -8372,7 +8322,7 @@ { $as_echo "$as_me:${as_lineno-$LINENO}: result: The output of $APXS follows:" >&5 $as_echo "The output of $APXS follows:" >&6; } $APXS -q CFLAGS - as_fn_error "Aborting" "$LINENO" 5 + as_fn_error $? "Aborting" "$LINENO" 5 fi APXS_INCLUDEDIR=`$APXS -q INCLUDEDIR` @@ -8399,22 +8349,6 @@ APACHE_CFLAGS="$APACHE_CPPFLAGS -I$APXS_INCLUDEDIR $APR_CFLAGS $APU_CFLAGS" - # Test that we're trying to configure with apache 2.x - - ac_output=`$APXS_HTTPD -v 2>&1 | grep version | $SED -e 's/Oracle-HTTP-//'` - ac_IFS=$IFS -IFS="- /. -" - set $ac_output - IFS=$ac_IFS - - APACHE_VERSION=`expr $4 \* 1000000 + $5 \* 1000 + $6` - - if test "$APACHE_VERSION" -le 2000000; then - as_fn_error "You have enabled Apache 2 support while your server is Apache 1.3. Please use the appropiate switch --with-apxs (without the 2)" "$LINENO" 5 - elif test "$APACHE_VERSION" -lt 2000044; then - as_fn_error "Please note that Apache version >= 2.0.44 is required" "$LINENO" 5 - fi APXS_LIBEXECDIR='$(INSTALL_ROOT)'`$APXS -q LIBEXECDIR` if test -z `$APXS -q SYSCONFDIR`; then @@ -8437,7 +8371,7 @@ if test "shared" = "program"; then PHP_BINARIES="$PHP_BINARIES apache2handler" elif test "$PHP_SAPI" != "none"; then - as_fn_error " + as_fn_error $? " +--------------------------------------------------------------------+ | *** ATTENTION *** | | | @@ -8609,7 +8543,7 @@ if test "bundle" = "program"; then PHP_BINARIES="$PHP_BINARIES apache2handler" elif test "$PHP_SAPI" != "none"; then - as_fn_error " + as_fn_error $? " +--------------------------------------------------------------------+ | *** ATTENTION *** | | | @@ -8775,7 +8709,7 @@ if test "shared" = "program"; then PHP_BINARIES="$PHP_BINARIES apache2handler" elif test "$PHP_SAPI" != "none"; then - as_fn_error " + as_fn_error $? " +--------------------------------------------------------------------+ | *** ATTENTION *** | | | @@ -8937,7 +8871,7 @@ if test "shared" = "program"; then PHP_BINARIES="$PHP_BINARIES apache2handler" elif test "$PHP_SAPI" != "none"; then - as_fn_error " + as_fn_error $? " +--------------------------------------------------------------------+ | *** ATTENTION *** | | | @@ -9102,7 +9036,7 @@ enable_maintainer_zts=yes if test "$pthreads_working" != "yes"; then - as_fn_error "ZTS currently requires working POSIX threads. We were unable to verify that your system supports Pthreads." "$LINENO" 5 + as_fn_error $? "ZTS currently requires working POSIX threads. We were unable to verify that your system supports Pthreads." "$LINENO" 5 fi fi @@ -9112,7 +9046,7 @@ enable_maintainer_zts=yes if test "$pthreads_working" != "yes"; then - as_fn_error "ZTS currently requires working POSIX threads. We were unable to verify that your system supports Pthreads." "$LINENO" 5 + as_fn_error $? "ZTS currently requires working POSIX threads. We were unable to verify that your system supports Pthreads." "$LINENO" 5 fi fi @@ -9195,7 +9129,7 @@ { $as_echo "$as_me:${as_lineno-$LINENO}: result: The output of $APXS follows" >&5 $as_echo "The output of $APXS follows" >&6; } $APXS -q CFLAGS - as_fn_error "Aborting" "$LINENO" 5 + as_fn_error $? "Aborting" "$LINENO" 5 fi APXS_LDFLAGS="@SYBASE_LFLAGS@ @SYBASE_LIBS@ @SYBASE_CT_LFLAGS@ @SYBASE_CT_LIBS@" @@ -9204,20 +9138,6 @@ APXS_HTTPD=`$APXS -q SBINDIR`/`$APXS -q TARGET` APACHE_INCLUDE=-I$APXS_INCLUDEDIR - # Test that we're trying to configure with apache 1.x - - ac_output=`$APXS_HTTPD -v 2>&1 | grep version | $SED -e 's/Oracle-HTTP-//'` - ac_IFS=$IFS -IFS="- /. -" - set $ac_output - IFS=$ac_IFS - - APACHE_VERSION=`expr $4 \* 1000000 + $5 \* 1000 + $6` - - if test "$APACHE_VERSION" -ge 2000000; then - as_fn_error "You have enabled Apache 1.3 support while your server is Apache 2. Please use the appropiate switch --with-apxs2" "$LINENO" 5 - fi for flag in $APXS_CFLAGS; do case $flag in @@ -9249,7 +9169,7 @@ if test "$build_type" = "program"; then PHP_BINARIES="$PHP_BINARIES apache_hooks" elif test "$PHP_SAPI" != "none"; then - as_fn_error " + as_fn_error $? " +--------------------------------------------------------------------+ | *** ATTENTION *** | | | @@ -9503,7 +9423,7 @@ if test "static" = "program"; then PHP_BINARIES="$PHP_BINARIES apache_hooks" elif test "$PHP_SAPI" != "none"; then - as_fn_error " + as_fn_error $? " +--------------------------------------------------------------------+ | *** ATTENTION *** | | | @@ -9670,7 +9590,7 @@ fi # For Apache 2.0.x elif test -f $PHP_APACHE_HOOKS_STATIC/include/httpd.h && test -f $PHP_APACHE_HOOKS_STATIC/srclib/apr/include/apr_general.h ; then - as_fn_error "Use --with-apxs2 with Apache 2.x!" "$LINENO" 5 + as_fn_error $? "Use --with-apxs2 with Apache 2.x!" "$LINENO" 5 # For Apache 1.3.x elif test -f $PHP_APACHE_HOOKS_STATIC/src/main/httpd.h; then APACHE_HAS_REGEX=1 @@ -9683,7 +9603,7 @@ if test "static" = "program"; then PHP_BINARIES="$PHP_BINARIES apache_hooks" elif test "$PHP_SAPI" != "none"; then - as_fn_error " + as_fn_error $? " +--------------------------------------------------------------------+ | *** ATTENTION *** | | | @@ -9853,7 +9773,7 @@ $as_echo "#define HAVE_AP_COMPAT_H 1" >>confdefs.h if test ! -f $PHP_APACHE_HOOKS_STATIC/src/include/ap_config_auto.h; then - as_fn_error "Please run Apache\'s configure or src/Configure program once and try again" "$LINENO" 5 + as_fn_error $? "Please run Apache\'s configure or src/Configure program once and try again" "$LINENO" 5 fi elif test -f $PHP_APACHE_HOOKS_STATIC/src/include/compat.h; then @@ -9872,7 +9792,7 @@ if test "static" = "program"; then PHP_BINARIES="$PHP_BINARIES apache_hooks" elif test "$PHP_SAPI" != "none"; then - as_fn_error " + as_fn_error $? " +--------------------------------------------------------------------+ | *** ATTENTION *** | | | @@ -10042,7 +9962,7 @@ $as_echo "#define HAVE_AP_COMPAT_H 1" >>confdefs.h if test ! -f $PHP_APACHE_HOOKS_STATIC/src/include/ap_config_auto.h; then - as_fn_error "Please run Apache\'s configure or src/Configure program once and try again" "$LINENO" 5 + as_fn_error $? "Please run Apache\'s configure or src/Configure program once and try again" "$LINENO" 5 fi elif test -f $PHP_APACHE_HOOKS_STATIC/src/include/compat.h; then @@ -10057,7 +9977,7 @@ if test "static" = "program"; then PHP_BINARIES="$PHP_BINARIES apache_hooks" elif test "$PHP_SAPI" != "none"; then - as_fn_error " + as_fn_error $? " +--------------------------------------------------------------------+ | *** ATTENTION *** | | | @@ -10227,7 +10147,7 @@ $as_echo "#define HAVE_AP_COMPAT_H 1" >>confdefs.h if test ! -f $PHP_APACHE_HOOKS_STATIC/src/include/ap_config_auto.h; then - as_fn_error "Please run Apache\'s configure or src/Configure program once and try again" "$LINENO" 5 + as_fn_error $? "Please run Apache\'s configure or src/Configure program once and try again" "$LINENO" 5 fi elif test -f $PHP_APACHE_HOOKS_STATIC/src/compat.h; then @@ -10237,7 +10157,7 @@ else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } - as_fn_error "Invalid Apache directory - unable to find httpd.h under $PHP_APACHE_HOOKS_STATIC" "$LINENO" 5 + as_fn_error $? "Invalid Apache directory - unable to find httpd.h under $PHP_APACHE_HOOKS_STATIC" "$LINENO" 5 fi else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 @@ -10285,7 +10205,7 @@ gcc_arg_name=ac_cv_gcc_arg_rdynamic { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -rdynamic" >&5 $as_echo_n "checking whether $CC supports -rdynamic... " >&6; } -if test "${ac_cv_gcc_arg_rdynamic+set}" = set; then : +if ${ac_cv_gcc_arg_rdynamic+:} false; then : $as_echo_n "(cached) " >&6 else @@ -10328,7 +10248,7 @@ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for member fd in BUFF *" >&5 $as_echo_n "checking for member fd in BUFF *... " >&6; } -if test "${ac_cv_php_fd_in_buff+set}" = set; then : +if ${ac_cv_php_fd_in_buff+:} false; then : $as_echo_n "(cached) " >&6 else @@ -10434,13 +10354,13 @@ elif test -f $PHP_CAUDIUM/bin/pike; then PIKE=$PHP_CAUDIUM/bin/pike else - as_fn_error "Could not find a pike in $PHP_CAUDIUM/bin/" "$LINENO" 5 + as_fn_error $? "Could not find a pike in $PHP_CAUDIUM/bin/" "$LINENO" 5 fi if $PIKE -e 'float v; int rel;sscanf(version(), "Pike v%f release %d", v, rel);v += rel/10000.0; if(v < 7.0268) exit(1); exit(0);'; then - PIKE_MODULE_DIR=`$PIKE --show-paths 2>&1| grep '^Module' | sed -e 's/.*: //'` - PIKE_INCLUDE_DIR=`echo $PIKE_MODULE_DIR | sed -e 's,lib/pike/modules,include/pike,' -e 's,lib/modules,include/pike,' ` + PIKE_MODULE_DIR=`$PIKE --show-paths 2>&1| grep '^Master file' | sed -e 's/.*: //' -e 's/master.pike/modules/'` + PIKE_INCLUDE_DIR=`echo $PIKE_MODULE_DIR | sed -e 's,lib/modules,,' -e 's,modules,include,' ` if test -z "$PIKE_INCLUDE_DIR" || test -z "$PIKE_MODULE_DIR"; then - as_fn_error "Failed to figure out Pike module and include directories" "$LINENO" 5 + as_fn_error $? "Failed to figure out Pike module and include directories" "$LINENO" 5 fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } @@ -10555,7 +10475,7 @@ $as_echo "not found" >&6; } fi else - as_fn_error "Caudium PHP5 requires Pike 7.0 or newer" "$LINENO" 5 + as_fn_error $? "Caudium PHP5 requires Pike 7.0 or newer" "$LINENO" 5 fi PIKE_VERSION=`$PIKE -e 'string v; int rel;sscanf(version(), "Pike v%s release %d", v, rel); write(v+"."+rel);'` @@ -10565,7 +10485,7 @@ if test "shared" = "program"; then PHP_BINARIES="$PHP_BINARIES caudium" elif test "$PHP_SAPI" != "none"; then - as_fn_error " + as_fn_error $? " +--------------------------------------------------------------------+ | *** ATTENTION *** | | | @@ -10720,14 +10640,14 @@ - INSTALL_IT="\$(INSTALL) -m 0755 $SAPI_SHARED $PHP_CAUDIUM/lib/$PIKE_VERSION/PHP5.so" + INSTALL_IT="\$(mkinstalldirs) \$(INSTALL_ROOT)$PHP_CAUDIUM/lib/$PIKE_VERSION/ && \$(INSTALL) -m 0755 .$SAPI_SHARED \$(INSTALL_ROOT)$PHP_CAUDIUM/lib/$PIKE_VERSION/PHP5.so" RESULT=" *** Pike binary used: $PIKE *** Pike include dir(s) used: $PIKE_INCLUDE_DIR *** Pike version: $PIKE_VERSION" enable_maintainer_zts=yes if test "$pthreads_working" != "yes"; then - as_fn_error "ZTS currently requires working POSIX threads. We were unable to verify that your system supports Pthreads." "$LINENO" 5 + as_fn_error $? "ZTS currently requires working POSIX threads. We were unable to verify that your system supports Pthreads." "$LINENO" 5 fi fi @@ -10773,7 +10693,7 @@ if test "program" = "program"; then PHP_BINARIES="$PHP_BINARIES cli" elif test "$PHP_SAPI" != "none"; then - as_fn_error " + as_fn_error $? " +--------------------------------------------------------------------+ | *** ATTENTION *** | | | @@ -10930,7 +10850,7 @@ if test "$PHP_CONTINUITY" != "no"; then if test ! -d $PHP_CONTINUITY; then - as_fn_error "Please specify the path to the root of your Continuity server using --with-continuity=DIR" "$LINENO" 5 + as_fn_error $? "Please specify the path to the root of your Continuity server using --with-continuity=DIR" "$LINENO" 5 fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Continuity include files" >&5 $as_echo_n "checking for Continuity include files... " >&6; } @@ -10939,14 +10859,14 @@ { $as_echo "$as_me:${as_lineno-$LINENO}: result: Continuity Binary Distribution" >&5 $as_echo "Continuity Binary Distribution" >&6; } else - as_fn_error "Cannot find your CAPI include files in either DIR/src or DIR/include" "$LINENO" 5 + as_fn_error $? "Cannot find your CAPI include files in either DIR/src or DIR/include" "$LINENO" 5 fi if test "shared" = "program"; then PHP_BINARIES="$PHP_BINARIES continuity" elif test "$PHP_SAPI" != "none"; then - as_fn_error " + as_fn_error $? " +--------------------------------------------------------------------+ | *** ATTENTION *** | | | @@ -11135,7 +11055,7 @@ enable_maintainer_zts=yes if test "$pthreads_working" != "yes"; then - as_fn_error "ZTS currently requires working POSIX threads. We were unable to verify that your system supports Pthreads." "$LINENO" 5 + as_fn_error $? "ZTS currently requires working POSIX threads. We were unable to verify that your system supports Pthreads." "$LINENO" 5 fi @@ -11174,7 +11094,8 @@ case "$PHP_EMBED" in yes|shared) PHP_EMBED_TYPE=shared - INSTALL_IT="\$(mkinstalldirs) \$(INSTALL_ROOT)\$(prefix)/lib; \$(INSTALL) -m 0755 $SAPI_SHARED \$(INSTALL_ROOT)\$(prefix)/lib" + EXTRA_LDFLAGS="$EXTRA_LDFLAGS -release \$(PHP_VERSION)" + INSTALL_IT="\$(mkinstalldirs) \$(INSTALL_ROOT)\$(libdir); \$(LIBTOOL) --mode=install \$(INSTALL) -m 0755 \$(OVERALL_TARGET) \$(INSTALL_ROOT)\$(libdir)" ;; static) PHP_EMBED_TYPE=static @@ -11189,7 +11110,7 @@ if test "$PHP_EMBED_TYPE" = "program"; then PHP_BINARIES="$PHP_BINARIES embed" elif test "$PHP_SAPI" != "none"; then - as_fn_error " + as_fn_error $? " +--------------------------------------------------------------------+ | *** ATTENTION *** | | | @@ -11433,8 +11354,7 @@ do : as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" -eval as_val=\$$as_ac_var - if test "x$as_val" = x""yes; then : +if eval test \"x\$"$as_ac_var"\" = x"yes"; then : cat >>confdefs.h <<_ACEOF #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 _ACEOF @@ -11445,7 +11365,7 @@ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5 $as_echo_n "checking for library containing socket... " >&6; } -if test "${ac_cv_search_socket+set}" = set; then : +if ${ac_cv_search_socket+:} false; then : $as_echo_n "(cached) " >&6 else ac_func_search_save_LIBS=$LIBS @@ -11479,11 +11399,11 @@ fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext - if test "${ac_cv_search_socket+set}" = set; then : + if ${ac_cv_search_socket+:} false; then : break fi done -if test "${ac_cv_search_socket+set}" = set; then : +if ${ac_cv_search_socket+:} false; then : else ac_cv_search_socket=no @@ -11501,7 +11421,7 @@ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_addr" >&5 $as_echo_n "checking for library containing inet_addr... " >&6; } -if test "${ac_cv_search_inet_addr+set}" = set; then : +if ${ac_cv_search_inet_addr+:} false; then : $as_echo_n "(cached) " >&6 else ac_func_search_save_LIBS=$LIBS @@ -11535,11 +11455,11 @@ fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext - if test "${ac_cv_search_inet_addr+set}" = set; then : + if ${ac_cv_search_inet_addr+:} false; then : break fi done -if test "${ac_cv_search_inet_addr+set}" = set; then : +if ${ac_cv_search_inet_addr+:} false; then : else ac_cv_search_inet_addr=no @@ -11560,8 +11480,7 @@ do : as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" -eval as_val=\$$as_ac_Header - if test "x$as_val" = x""yes; then : +if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : cat >>confdefs.h <<_ACEOF #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 _ACEOF @@ -11574,8 +11493,7 @@ do : as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" -eval as_val=\$$as_ac_Header - if test "x$as_val" = x""yes; then : +if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : cat >>confdefs.h <<_ACEOF #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 _ACEOF @@ -11588,8 +11506,7 @@ do : as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" -eval as_val=\$$as_ac_Header - if test "x$as_val" = x""yes; then : +if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : cat >>confdefs.h <<_ACEOF #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 _ACEOF @@ -11712,8 +11629,8 @@ if test "$cross_compiling" = yes; then : { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} -as_fn_error "cannot run test program while cross compiling -See \`config.log' for more details." "$LINENO" 5; } +as_fn_error $? "cannot run test program while cross compiling +See \`config.log' for more details" "$LINENO" 5; } else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -11804,8 +11721,8 @@ if test "$cross_compiling" = yes; then : { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} -as_fn_error "cannot run test program while cross compiling -See \`config.log' for more details." "$LINENO" 5; } +as_fn_error $? "cannot run test program while cross compiling +See \`config.log' for more details" "$LINENO" 5; } else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -11836,6 +11753,11 @@ pid_t child; int status; + /* broken ptrace on Hurd, avoid hanging */ + #ifdef __GNU__ + return 10; + #endif + if ( (child = fork()) ) { /* parent */ int ret = 0; @@ -11962,8 +11884,8 @@ if test "$cross_compiling" = yes; then : { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} -as_fn_error "cannot run test program while cross compiling -See \`config.log' for more details." "$LINENO" 5; } +as_fn_error $? "cannot run test program while cross compiling +See \`config.log' for more details" "$LINENO" 5; } else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -12640,7 +12562,7 @@ if test "program" = "program"; then PHP_BINARIES="$PHP_BINARIES fpm" elif test "$PHP_SAPI" != "none"; then - as_fn_error " + as_fn_error $? " +--------------------------------------------------------------------+ | *** ATTENTION *** | | | @@ -12787,11 +12709,11 @@ else ZEUSPATH=$PHP_ISAPI fi - test -f "$ZEUSPATH/web/include/httpext.h" || as_fn_error "Unable to find httpext.h in $ZEUSPATH/web/include" "$LINENO" 5 + test -f "$ZEUSPATH/web/include/httpext.h" || as_fn_error $? "Unable to find httpext.h in $ZEUSPATH/web/include" "$LINENO" 5 enable_maintainer_zts=yes if test "$pthreads_working" != "yes"; then - as_fn_error "ZTS currently requires working POSIX threads. We were unable to verify that your system supports Pthreads." "$LINENO" 5 + as_fn_error $? "ZTS currently requires working POSIX threads. We were unable to verify that your system supports Pthreads." "$LINENO" 5 fi @@ -12832,7 +12754,7 @@ if test "shared" = "program"; then PHP_BINARIES="$PHP_BINARIES isapi" elif test "$PHP_SAPI" != "none"; then - as_fn_error " + as_fn_error $? " +--------------------------------------------------------------------+ | *** ATTENTION *** | | | @@ -13050,7 +12972,7 @@ if test "program" = "program"; then PHP_BINARIES="$PHP_BINARIES litespeed" elif test "$PHP_SAPI" != "none"; then - as_fn_error " + as_fn_error $? " +--------------------------------------------------------------------+ | *** ATTENTION *** | | | @@ -13198,7 +13120,7 @@ if test -f /usr/lib/libmilter/libmilter.a ; then MILTERPATH=/usr/lib/libmilter else - as_fn_error "Unable to find libmilter.a" "$LINENO" 5 + as_fn_error $? "Unable to find libmilter.a" "$LINENO" 5 fi fi else @@ -13209,7 +13131,7 @@ enable_maintainer_zts=yes if test "$pthreads_working" != "yes"; then - as_fn_error "ZTS currently requires working POSIX threads. We were unable to verify that your system supports Pthreads." "$LINENO" 5 + as_fn_error $? "ZTS currently requires working POSIX threads. We were unable to verify that your system supports Pthreads." "$LINENO" 5 fi @@ -13222,7 +13144,7 @@ if test "program" = "program"; then PHP_BINARIES="$PHP_BINARIES milter" elif test "$PHP_SAPI" != "none"; then - as_fn_error " + as_fn_error $? " +--------------------------------------------------------------------+ | *** ATTENTION *** | | | @@ -13339,6 +13261,7 @@ if test -n "$unique" && test "`eval $cmd`" = "" ; then eval "LIBPATH$unique=set" + test "x$PHP_RPATH" != "xno" && test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" LDFLAGS="$LDFLAGS -L$ai_p" PHP_RPATHS="$PHP_RPATHS $ai_p" @@ -13398,7 +13321,7 @@ if test "$PHP_NSAPI" != "no"; then if test ! -d $PHP_NSAPI/bin ; then - as_fn_error "Please specify the path to the root of your Netscape/iPlanet/Sun Webserver using --with-nsapi=DIR" "$LINENO" 5 + as_fn_error $? "Please specify the path to the root of your Netscape/iPlanet/Sun Webserver using --with-nsapi=DIR" "$LINENO" 5 fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NSAPI include files" >&5 $as_echo_n "checking for NSAPI include files... " >&6; } @@ -13410,8 +13333,7 @@ do : as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" -eval as_val=\$$as_ac_Header - if test "x$as_val" = x""yes; then : +if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : cat >>confdefs.h <<_ACEOF #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 _ACEOF @@ -13430,8 +13352,7 @@ do : as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" -eval as_val=\$$as_ac_Header - if test "x$as_val" = x""yes; then : +if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : cat >>confdefs.h <<_ACEOF #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 _ACEOF @@ -13443,7 +13364,7 @@ NSAPI_INCLUDE="$NSAPI_INCLUDE -I$NSAPI_INC_DIR" fi if test -z "$NSAPI_INCLUDE"; then - as_fn_error "Please check you have nsapi.h in either $PHP_NSAPI/include or $PHP_NSAPI/plugins/include" "$LINENO" 5 + as_fn_error $? "Please check you have nsapi.h in either $PHP_NSAPI/include or $PHP_NSAPI/plugins/include" "$LINENO" 5 fi @@ -13489,7 +13410,7 @@ enable_maintainer_zts=yes if test "$pthreads_working" != "yes"; then - as_fn_error "ZTS currently requires working POSIX threads. We were unable to verify that your system supports Pthreads." "$LINENO" 5 + as_fn_error $? "ZTS currently requires working POSIX threads. We were unable to verify that your system supports Pthreads." "$LINENO" 5 fi @@ -13499,7 +13420,7 @@ if test "shared" = "program"; then PHP_BINARIES="$PHP_BINARIES nsapi" elif test "$PHP_SAPI" != "none"; then - as_fn_error " + as_fn_error $? " +--------------------------------------------------------------------+ | *** ATTENTION *** | | | @@ -13686,12 +13607,12 @@ if test "$PHP_PHTTPD" != "no"; then if test ! -d $PHP_PHTTPD ; then - as_fn_error "You did not specify a directory" "$LINENO" 5 + as_fn_error $? "You did not specify a directory" "$LINENO" 5 fi enable_maintainer_zts=yes if test "$pthreads_working" != "yes"; then - as_fn_error "ZTS currently requires working POSIX threads. We were unable to verify that your system supports Pthreads." "$LINENO" 5 + as_fn_error $? "ZTS currently requires working POSIX threads. We were unable to verify that your system supports Pthreads." "$LINENO" 5 fi @@ -13732,7 +13653,7 @@ if test "shared" = "program"; then PHP_BINARIES="$PHP_BINARIES phttpd" elif test "$PHP_SAPI" != "none"; then - as_fn_error " + as_fn_error $? " +--------------------------------------------------------------------+ | *** ATTENTION *** | | | @@ -13922,11 +13843,11 @@ else PI3PATH=$PHP_PI3WEB fi - test -f "$PI3PATH/PiAPI/PiAPI.h" || as_fn_error "Unable to find PiAPI.h in $PI3PATH/PiAPI" "$LINENO" 5 + test -f "$PI3PATH/PiAPI/PiAPI.h" || as_fn_error $? "Unable to find PiAPI.h in $PI3PATH/PiAPI" "$LINENO" 5 enable_maintainer_zts=yes if test "$pthreads_working" != "yes"; then - as_fn_error "ZTS currently requires working POSIX threads. We were unable to verify that your system supports Pthreads." "$LINENO" 5 + as_fn_error $? "ZTS currently requires working POSIX threads. We were unable to verify that your system supports Pthreads." "$LINENO" 5 fi @@ -14060,7 +13981,7 @@ if test "shared" = "program"; then PHP_BINARIES="$PHP_BINARIES pi3web" elif test "$PHP_SAPI" != "none"; then - as_fn_error " + as_fn_error $? " +--------------------------------------------------------------------+ | *** ATTENTION *** | | | @@ -14270,24 +14191,24 @@ $as_echo_n "checking for Roxen/Pike support... " >&6; } if test "$PHP_ROXEN" != "no"; then if test ! -d $PHP_ROXEN ; then - as_fn_error "You did not specify a directory" "$LINENO" 5 + as_fn_error $? "You did not specify a directory" "$LINENO" 5 fi if test -f $PHP_ROXEN/bin/roxen; then PIKE=$PHP_ROXEN/bin/roxen elif test -f $PHP_ROXEN/bin/pike; then PIKE=$PHP_ROXEN/bin/pike else - as_fn_error "Could not find a pike in $PHP_ROXEN/bin/" "$LINENO" 5 + as_fn_error $? "Could not find a pike in $PHP_ROXEN/bin/" "$LINENO" 5 fi if $PIKE -e 'float v; catch(v = __VERSION__ + (__BUILD__/10000.0)); if(v < 0.7079) exit(1); exit(0);'; then PIKE_MODULE_DIR=`$PIKE --show-paths 2>&1| grep '^Module' | sed -e 's/.*: //'` PIKE_INCLUDE_DIR=`echo $PIKE_MODULE_DIR | sed -e 's,lib/pike/modules,include/pike,' -e 's,lib/modules,include/pike,'` if test -z "$PIKE_INCLUDE_DIR" || test -z "$PIKE_MODULE_DIR"; then - as_fn_error "Failed to figure out Pike module and include directories" "$LINENO" 5 + as_fn_error $? "Failed to figure out Pike module and include directories" "$LINENO" 5 fi else - as_fn_error "Roxen/PHP requires Pike 0.7.79 or newer" "$LINENO" 5 + as_fn_error $? "Roxen/PHP requires Pike 0.7.79 or newer" "$LINENO" 5 fi @@ -14328,7 +14249,7 @@ if test "shared" = "program"; then PHP_BINARIES="$PHP_BINARIES roxen" elif test "$PHP_SAPI" != "none"; then - as_fn_error " + as_fn_error $? " +--------------------------------------------------------------------+ | *** ATTENTION *** | | | @@ -14494,7 +14415,7 @@ enable_maintainer_zts=yes if test "$pthreads_working" != "yes"; then - as_fn_error "ZTS currently requires working POSIX threads. We were unable to verify that your system supports Pthreads." "$LINENO" 5 + as_fn_error $? "ZTS currently requires working POSIX threads. We were unable to verify that your system supports Pthreads." "$LINENO" 5 fi @@ -14557,7 +14478,7 @@ elif grep Premium $PHP_THTTPD/version.h >/dev/null; then patch= else - as_fn_error "This version only supports thttpd-2.21b and Premium thttpd" "$LINENO" 5 + as_fn_error $? "This version only supports thttpd-2.21b and Premium thttpd" "$LINENO" 5 fi if test -n "$GCC"; then @@ -14565,7 +14486,7 @@ gcc_arg_name=ac_cv_gcc_arg_rdynamic { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -rdynamic" >&5 $as_echo_n "checking whether $CC supports -rdynamic... " >&6; } -if test "${ac_cv_gcc_arg_rdynamic+set}" = set; then : +if ${ac_cv_gcc_arg_rdynamic+:} false; then : $as_echo_n "(cached) " >&6 else @@ -14638,7 +14559,7 @@ if test "static" = "program"; then PHP_BINARIES="$PHP_BINARIES thttpd" elif test "$PHP_SAPI" != "none"; then - as_fn_error " + as_fn_error $? " +--------------------------------------------------------------------+ | *** ATTENTION *** | | | @@ -14785,13 +14706,13 @@ for ac_header in tuxmodule.h do : ac_fn_c_check_header_mongrel "$LINENO" "tuxmodule.h" "ac_cv_header_tuxmodule_h" "$ac_includes_default" -if test "x$ac_cv_header_tuxmodule_h" = x""yes; then : +if test "x$ac_cv_header_tuxmodule_h" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_TUXMODULE_H 1 _ACEOF : else - as_fn_error "Cannot find tuxmodule.h" "$LINENO" 5 + as_fn_error $? "Cannot find tuxmodule.h" "$LINENO" 5 fi done @@ -14800,7 +14721,7 @@ if test "shared" = "program"; then PHP_BINARIES="$PHP_BINARIES tux" elif test "$PHP_SAPI" != "none"; then - as_fn_error " + as_fn_error $? " +--------------------------------------------------------------------+ | *** ATTENTION *** | | | @@ -15039,7 +14960,7 @@ if test "static" = "program"; then PHP_BINARIES="$PHP_BINARIES webjames" elif test "$PHP_SAPI" != "none"; then - as_fn_error " + as_fn_error $? " +--------------------------------------------------------------------+ | *** ATTENTION *** | | | @@ -15306,7 +15227,7 @@ if test "program" = "program"; then PHP_BINARIES="$PHP_BINARIES cgi" elif test "$PHP_SAPI" != "none"; then - as_fn_error " + as_fn_error $? " +--------------------------------------------------------------------+ | *** ATTENTION *** | | | @@ -15443,7 +15364,7 @@ fi if test -z "$PHP_INSTALLED_SAPIS"; then - as_fn_error "Nothing to build." "$LINENO" 5 + as_fn_error $? "Nothing to build." "$LINENO" 5 fi if test "$enable_maintainer_zts" = "yes"; then @@ -15461,7 +15382,7 @@ host_alias=$host fi if test -z "$host_alias"; then - as_fn_error "host_alias is not set. Make sure to run config.guess" "$LINENO" 5 + as_fn_error $? "host_alias is not set. Make sure to run config.guess" "$LINENO" 5 fi case $host_alias in *solaris*) @@ -15500,7 +15421,7 @@ set dummy sendmail; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } -if test "${ac_cv_path_PROG_SENDMAIL+set}" = set; then : +if ${ac_cv_path_PROG_SENDMAIL+:} false; then : $as_echo_n "(cached) " >&6 else case $PROG_SENDMAIL in @@ -15515,7 +15436,7 @@ IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_path_PROG_SENDMAIL="$as_dir/$ac_word$ac_exec_ext" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 @@ -15545,7 +15466,7 @@ { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system uses EBCDIC" >&5 $as_echo_n "checking whether system uses EBCDIC... " >&6; } -if test "${ac_cv_ebcdic+set}" = set; then : +if ${ac_cv_ebcdic+:} false; then : $as_echo_n "(cached) " >&6 else @@ -15587,7 +15508,7 @@ { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 $as_echo_n "checking whether byte ordering is bigendian... " >&6; } -if test "${ac_cv_c_bigendian_php+set}" = set; then : +if ${ac_cv_c_bigendian_php+:} false; then : $as_echo_n "(cached) " >&6 else @@ -15634,7 +15555,7 @@ { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether writing to stdout works" >&5 $as_echo_n "checking whether writing to stdout works... " >&6; } -if test "${ac_cv_write_stdout+set}" = set; then : +if ${ac_cv_write_stdout+:} false; then : $as_echo_n "(cached) " >&6 else @@ -15712,6 +15633,7 @@ if test -n "$unique" && test "`eval $cmd`" = "" ; then eval "LIBPATH$unique=set" + test "x$PHP_RPATH" != "xno" && test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" LDFLAGS="$LDFLAGS -L$ai_p" PHP_RPATHS="$PHP_RPATHS $ai_p" @@ -15732,11 +15654,11 @@ unset found ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket" -if test "x$ac_cv_func_socket" = x""yes; then : +if test "x$ac_cv_func_socket" = xyes; then : found=yes else ac_fn_c_check_func "$LINENO" "__socket" "ac_cv_func___socket" -if test "x$ac_cv_func___socket" = x""yes; then : +if test "x$ac_cv_func___socket" = xyes; then : found=yes else found=no @@ -15760,7 +15682,7 @@ unset found { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5 $as_echo_n "checking for socket in -lsocket... " >&6; } -if test "${ac_cv_lib_socket_socket+set}" = set; then : +if ${ac_cv_lib_socket_socket+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS @@ -15794,13 +15716,13 @@ fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5 $as_echo "$ac_cv_lib_socket_socket" >&6; } -if test "x$ac_cv_lib_socket_socket" = x""yes; then : +if test "x$ac_cv_lib_socket_socket" = xyes; then : found=yes else { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __socket in -lsocket" >&5 $as_echo_n "checking for __socket in -lsocket... " >&6; } -if test "${ac_cv_lib_socket___socket+set}" = set; then : +if ${ac_cv_lib_socket___socket+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS @@ -15834,7 +15756,7 @@ fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket___socket" >&5 $as_echo "$ac_cv_lib_socket___socket" >&6; } -if test "x$ac_cv_lib_socket___socket" = x""yes; then : +if test "x$ac_cv_lib_socket___socket" = xyes; then : found=yes else found=no @@ -15900,11 +15822,11 @@ unset found ac_fn_c_check_func "$LINENO" "socketpair" "ac_cv_func_socketpair" -if test "x$ac_cv_func_socketpair" = x""yes; then : +if test "x$ac_cv_func_socketpair" = xyes; then : found=yes else ac_fn_c_check_func "$LINENO" "__socketpair" "ac_cv_func___socketpair" -if test "x$ac_cv_func___socketpair" = x""yes; then : +if test "x$ac_cv_func___socketpair" = xyes; then : found=yes else found=no @@ -15928,7 +15850,7 @@ unset found { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socketpair in -lsocket" >&5 $as_echo_n "checking for socketpair in -lsocket... " >&6; } -if test "${ac_cv_lib_socket_socketpair+set}" = set; then : +if ${ac_cv_lib_socket_socketpair+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS @@ -15962,13 +15884,13 @@ fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socketpair" >&5 $as_echo "$ac_cv_lib_socket_socketpair" >&6; } -if test "x$ac_cv_lib_socket_socketpair" = x""yes; then : +if test "x$ac_cv_lib_socket_socketpair" = xyes; then : found=yes else { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __socketpair in -lsocket" >&5 $as_echo_n "checking for __socketpair in -lsocket... " >&6; } -if test "${ac_cv_lib_socket___socketpair+set}" = set; then : +if ${ac_cv_lib_socket___socketpair+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS @@ -16002,7 +15924,7 @@ fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket___socketpair" >&5 $as_echo "$ac_cv_lib_socket___socketpair" >&6; } -if test "x$ac_cv_lib_socket___socketpair" = x""yes; then : +if test "x$ac_cv_lib_socket___socketpair" = xyes; then : found=yes else found=no @@ -16068,11 +15990,11 @@ unset found ac_fn_c_check_func "$LINENO" "htonl" "ac_cv_func_htonl" -if test "x$ac_cv_func_htonl" = x""yes; then : +if test "x$ac_cv_func_htonl" = xyes; then : found=yes else ac_fn_c_check_func "$LINENO" "__htonl" "ac_cv_func___htonl" -if test "x$ac_cv_func___htonl" = x""yes; then : +if test "x$ac_cv_func___htonl" = xyes; then : found=yes else found=no @@ -16096,7 +16018,7 @@ unset found { $as_echo "$as_me:${as_lineno-$LINENO}: checking for htonl in -lsocket" >&5 $as_echo_n "checking for htonl in -lsocket... " >&6; } -if test "${ac_cv_lib_socket_htonl+set}" = set; then : +if ${ac_cv_lib_socket_htonl+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS @@ -16130,13 +16052,13 @@ fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_htonl" >&5 $as_echo "$ac_cv_lib_socket_htonl" >&6; } -if test "x$ac_cv_lib_socket_htonl" = x""yes; then : +if test "x$ac_cv_lib_socket_htonl" = xyes; then : found=yes else { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __htonl in -lsocket" >&5 $as_echo_n "checking for __htonl in -lsocket... " >&6; } -if test "${ac_cv_lib_socket___htonl+set}" = set; then : +if ${ac_cv_lib_socket___htonl+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS @@ -16170,7 +16092,7 @@ fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket___htonl" >&5 $as_echo "$ac_cv_lib_socket___htonl" >&6; } -if test "x$ac_cv_lib_socket___htonl" = x""yes; then : +if test "x$ac_cv_lib_socket___htonl" = xyes; then : found=yes else found=no @@ -16236,11 +16158,11 @@ unset found ac_fn_c_check_func "$LINENO" "gethostname" "ac_cv_func_gethostname" -if test "x$ac_cv_func_gethostname" = x""yes; then : +if test "x$ac_cv_func_gethostname" = xyes; then : found=yes else ac_fn_c_check_func "$LINENO" "__gethostname" "ac_cv_func___gethostname" -if test "x$ac_cv_func___gethostname" = x""yes; then : +if test "x$ac_cv_func___gethostname" = xyes; then : found=yes else found=no @@ -16264,7 +16186,7 @@ unset found { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostname in -lnsl" >&5 $as_echo_n "checking for gethostname in -lnsl... " >&6; } -if test "${ac_cv_lib_nsl_gethostname+set}" = set; then : +if ${ac_cv_lib_nsl_gethostname+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS @@ -16298,13 +16220,13 @@ fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostname" >&5 $as_echo "$ac_cv_lib_nsl_gethostname" >&6; } -if test "x$ac_cv_lib_nsl_gethostname" = x""yes; then : +if test "x$ac_cv_lib_nsl_gethostname" = xyes; then : found=yes else { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __gethostname in -lnsl" >&5 $as_echo_n "checking for __gethostname in -lnsl... " >&6; } -if test "${ac_cv_lib_nsl___gethostname+set}" = set; then : +if ${ac_cv_lib_nsl___gethostname+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS @@ -16338,7 +16260,7 @@ fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl___gethostname" >&5 $as_echo "$ac_cv_lib_nsl___gethostname" >&6; } -if test "x$ac_cv_lib_nsl___gethostname" = x""yes; then : +if test "x$ac_cv_lib_nsl___gethostname" = xyes; then : found=yes else found=no @@ -16404,11 +16326,11 @@ unset found ac_fn_c_check_func "$LINENO" "gethostbyaddr" "ac_cv_func_gethostbyaddr" -if test "x$ac_cv_func_gethostbyaddr" = x""yes; then : +if test "x$ac_cv_func_gethostbyaddr" = xyes; then : found=yes else ac_fn_c_check_func "$LINENO" "__gethostbyaddr" "ac_cv_func___gethostbyaddr" -if test "x$ac_cv_func___gethostbyaddr" = x""yes; then : +if test "x$ac_cv_func___gethostbyaddr" = xyes; then : found=yes else found=no @@ -16432,7 +16354,7 @@ unset found { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyaddr in -lnsl" >&5 $as_echo_n "checking for gethostbyaddr in -lnsl... " >&6; } -if test "${ac_cv_lib_nsl_gethostbyaddr+set}" = set; then : +if ${ac_cv_lib_nsl_gethostbyaddr+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS @@ -16466,13 +16388,13 @@ fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyaddr" >&5 $as_echo "$ac_cv_lib_nsl_gethostbyaddr" >&6; } -if test "x$ac_cv_lib_nsl_gethostbyaddr" = x""yes; then : +if test "x$ac_cv_lib_nsl_gethostbyaddr" = xyes; then : found=yes else { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __gethostbyaddr in -lnsl" >&5 $as_echo_n "checking for __gethostbyaddr in -lnsl... " >&6; } -if test "${ac_cv_lib_nsl___gethostbyaddr+set}" = set; then : +if ${ac_cv_lib_nsl___gethostbyaddr+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS @@ -16506,7 +16428,7 @@ fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl___gethostbyaddr" >&5 $as_echo "$ac_cv_lib_nsl___gethostbyaddr" >&6; } -if test "x$ac_cv_lib_nsl___gethostbyaddr" = x""yes; then : +if test "x$ac_cv_lib_nsl___gethostbyaddr" = xyes; then : found=yes else found=no @@ -16572,11 +16494,11 @@ unset found ac_fn_c_check_func "$LINENO" "yp_get_default_domain" "ac_cv_func_yp_get_default_domain" -if test "x$ac_cv_func_yp_get_default_domain" = x""yes; then : +if test "x$ac_cv_func_yp_get_default_domain" = xyes; then : found=yes else ac_fn_c_check_func "$LINENO" "__yp_get_default_domain" "ac_cv_func___yp_get_default_domain" -if test "x$ac_cv_func___yp_get_default_domain" = x""yes; then : +if test "x$ac_cv_func___yp_get_default_domain" = xyes; then : found=yes else found=no @@ -16600,7 +16522,7 @@ unset found { $as_echo "$as_me:${as_lineno-$LINENO}: checking for yp_get_default_domain in -lnsl" >&5 $as_echo_n "checking for yp_get_default_domain in -lnsl... " >&6; } -if test "${ac_cv_lib_nsl_yp_get_default_domain+set}" = set; then : +if ${ac_cv_lib_nsl_yp_get_default_domain+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS @@ -16634,13 +16556,13 @@ fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_yp_get_default_domain" >&5 $as_echo "$ac_cv_lib_nsl_yp_get_default_domain" >&6; } -if test "x$ac_cv_lib_nsl_yp_get_default_domain" = x""yes; then : +if test "x$ac_cv_lib_nsl_yp_get_default_domain" = xyes; then : found=yes else { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __yp_get_default_domain in -lnsl" >&5 $as_echo_n "checking for __yp_get_default_domain in -lnsl... " >&6; } -if test "${ac_cv_lib_nsl___yp_get_default_domain+set}" = set; then : +if ${ac_cv_lib_nsl___yp_get_default_domain+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS @@ -16674,7 +16596,7 @@ fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl___yp_get_default_domain" >&5 $as_echo "$ac_cv_lib_nsl___yp_get_default_domain" >&6; } -if test "x$ac_cv_lib_nsl___yp_get_default_domain" = x""yes; then : +if test "x$ac_cv_lib_nsl___yp_get_default_domain" = xyes; then : found=yes else found=no @@ -16741,11 +16663,11 @@ unset found ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" -if test "x$ac_cv_func_dlopen" = x""yes; then : +if test "x$ac_cv_func_dlopen" = xyes; then : found=yes else ac_fn_c_check_func "$LINENO" "__dlopen" "ac_cv_func___dlopen" -if test "x$ac_cv_func___dlopen" = x""yes; then : +if test "x$ac_cv_func___dlopen" = xyes; then : found=yes else found=no @@ -16769,7 +16691,7 @@ unset found { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 $as_echo_n "checking for dlopen in -ldl... " >&6; } -if test "${ac_cv_lib_dl_dlopen+set}" = set; then : +if ${ac_cv_lib_dl_dlopen+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS @@ -16803,13 +16725,13 @@ fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 $as_echo "$ac_cv_lib_dl_dlopen" >&6; } -if test "x$ac_cv_lib_dl_dlopen" = x""yes; then : +if test "x$ac_cv_lib_dl_dlopen" = xyes; then : found=yes else { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __dlopen in -ldl" >&5 $as_echo_n "checking for __dlopen in -ldl... " >&6; } -if test "${ac_cv_lib_dl___dlopen+set}" = set; then : +if ${ac_cv_lib_dl___dlopen+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS @@ -16843,7 +16765,7 @@ fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl___dlopen" >&5 $as_echo "$ac_cv_lib_dl___dlopen" >&6; } -if test "x$ac_cv_lib_dl___dlopen" = x""yes; then : +if test "x$ac_cv_lib_dl___dlopen" = xyes; then : found=yes else found=no @@ -16910,7 +16832,7 @@ fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sin in -lm" >&5 $as_echo_n "checking for sin in -lm... " >&6; } -if test "${ac_cv_lib_m_sin+set}" = set; then : +if ${ac_cv_lib_m_sin+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS @@ -16944,7 +16866,7 @@ fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sin" >&5 $as_echo "$ac_cv_lib_m_sin" >&6; } -if test "x$ac_cv_lib_m_sin" = x""yes; then : +if test "x$ac_cv_lib_m_sin" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_LIBM 1 _ACEOF @@ -16960,11 +16882,11 @@ unset found ac_fn_c_check_func "$LINENO" "inet_aton" "ac_cv_func_inet_aton" -if test "x$ac_cv_func_inet_aton" = x""yes; then : +if test "x$ac_cv_func_inet_aton" = xyes; then : found=yes else ac_fn_c_check_func "$LINENO" "__inet_aton" "ac_cv_func___inet_aton" -if test "x$ac_cv_func___inet_aton" = x""yes; then : +if test "x$ac_cv_func___inet_aton" = xyes; then : found=yes else found=no @@ -16988,7 +16910,7 @@ unset found { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_aton in -lresolv" >&5 $as_echo_n "checking for inet_aton in -lresolv... " >&6; } -if test "${ac_cv_lib_resolv_inet_aton+set}" = set; then : +if ${ac_cv_lib_resolv_inet_aton+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS @@ -17022,13 +16944,13 @@ fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_inet_aton" >&5 $as_echo "$ac_cv_lib_resolv_inet_aton" >&6; } -if test "x$ac_cv_lib_resolv_inet_aton" = x""yes; then : +if test "x$ac_cv_lib_resolv_inet_aton" = xyes; then : found=yes else { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __inet_aton in -lresolv" >&5 $as_echo_n "checking for __inet_aton in -lresolv... " >&6; } -if test "${ac_cv_lib_resolv___inet_aton+set}" = set; then : +if ${ac_cv_lib_resolv___inet_aton+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS @@ -17062,7 +16984,7 @@ fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv___inet_aton" >&5 $as_echo "$ac_cv_lib_resolv___inet_aton" >&6; } -if test "x$ac_cv_lib_resolv___inet_aton" = x""yes; then : +if test "x$ac_cv_lib_resolv___inet_aton" = xyes; then : found=yes else found=no @@ -17120,7 +17042,7 @@ unset found { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_aton in -lbind" >&5 $as_echo_n "checking for inet_aton in -lbind... " >&6; } -if test "${ac_cv_lib_bind_inet_aton+set}" = set; then : +if ${ac_cv_lib_bind_inet_aton+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS @@ -17154,13 +17076,13 @@ fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bind_inet_aton" >&5 $as_echo "$ac_cv_lib_bind_inet_aton" >&6; } -if test "x$ac_cv_lib_bind_inet_aton" = x""yes; then : +if test "x$ac_cv_lib_bind_inet_aton" = xyes; then : found=yes else { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __inet_aton in -lbind" >&5 $as_echo_n "checking for __inet_aton in -lbind... " >&6; } -if test "${ac_cv_lib_bind___inet_aton+set}" = set; then : +if ${ac_cv_lib_bind___inet_aton+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS @@ -17194,7 +17116,7 @@ fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bind___inet_aton" >&5 $as_echo "$ac_cv_lib_bind___inet_aton" >&6; } -if test "x$ac_cv_lib_bind___inet_aton" = x""yes; then : +if test "x$ac_cv_lib_bind___inet_aton" = xyes; then : found=yes else found=no @@ -17261,7 +17183,7 @@ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 $as_echo_n "checking for ANSI C header files... " >&6; } -if test "${ac_cv_header_stdc+set}" = set; then : +if ${ac_cv_header_stdc+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -17376,7 +17298,7 @@ as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; } -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then : +if eval \${$as_ac_Header+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -17403,8 +17325,7 @@ eval ac_res=\$$as_ac_Header { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 $as_echo "$ac_res" >&6; } -eval as_val=\$$as_ac_Header - if test "x$as_val" = x""yes; then : +if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : cat >>confdefs.h <<_ACEOF #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 _ACEOF @@ -17417,7 +17338,7 @@ if test $ac_header_dirent = dirent.h; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5 $as_echo_n "checking for library containing opendir... " >&6; } -if test "${ac_cv_search_opendir+set}" = set; then : +if ${ac_cv_search_opendir+:} false; then : $as_echo_n "(cached) " >&6 else ac_func_search_save_LIBS=$LIBS @@ -17451,11 +17372,11 @@ fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext - if test "${ac_cv_search_opendir+set}" = set; then : + if ${ac_cv_search_opendir+:} false; then : break fi done -if test "${ac_cv_search_opendir+set}" = set; then : +if ${ac_cv_search_opendir+:} false; then : else ac_cv_search_opendir=no @@ -17474,7 +17395,7 @@ else { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5 $as_echo_n "checking for library containing opendir... " >&6; } -if test "${ac_cv_search_opendir+set}" = set; then : +if ${ac_cv_search_opendir+:} false; then : $as_echo_n "(cached) " >&6 else ac_func_search_save_LIBS=$LIBS @@ -17508,11 +17429,11 @@ fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext - if test "${ac_cv_search_opendir+set}" = set; then : + if ${ac_cv_search_opendir+:} false; then : break fi done -if test "${ac_cv_search_opendir+set}" = set; then : +if ${ac_cv_search_opendir+:} false; then : else ac_cv_search_opendir=no @@ -17607,8 +17528,7 @@ #endif " -eval as_val=\$$as_ac_Header - if test "x$as_val" = x""yes; then : +if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : cat >>confdefs.h <<_ACEOF #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 _ACEOF @@ -17620,7 +17540,7 @@ ac_fn_c_check_func "$LINENO" "fopencookie" "ac_cv_func_fopencookie" -if test "x$ac_cv_func_fopencookie" = x""yes; then : +if test "x$ac_cv_func_fopencookie" = xyes; then : have_glibc_fopencookie=yes fi @@ -17762,7 +17682,7 @@ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken libc stdio" >&5 $as_echo_n "checking for broken libc stdio... " >&6; } - if test "${_cv_have_broken_glibc_fopen_append+set}" = set; then : + if ${_cv_have_broken_glibc_fopen_append+:} false; then : $as_echo_n "(cached) " >&6 else @@ -17847,7 +17767,7 @@ { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; } -if test "${ac_cv_struct_tm+set}" = set; then : +if ${ac_cv_struct_tm+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -17884,7 +17804,7 @@ #include <$ac_cv_struct_tm> " -if test "x$ac_cv_member_struct_tm_tm_zone" = x""yes; then : +if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_STRUCT_TM_TM_ZONE 1 @@ -17900,7 +17820,7 @@ else ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include " -if test "x$ac_cv_have_decl_tzname" = x""yes; then : +if test "x$ac_cv_have_decl_tzname" = xyes; then : ac_have_decl=1 else ac_have_decl=0 @@ -17912,7 +17832,7 @@ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5 $as_echo_n "checking for tzname... " >&6; } -if test "${ac_cv_var_tzname+set}" = set; then : +if ${ac_cv_var_tzname+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -18106,7 +18026,7 @@ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tm_gmtoff in struct tm" >&5 $as_echo_n "checking for tm_gmtoff in struct tm... " >&6; } -if test "${ac_cv_struct_tm_gmtoff+set}" = set; then : +if ${ac_cv_struct_tm_gmtoff+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -18140,7 +18060,7 @@ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct flock" >&5 $as_echo_n "checking for struct flock... " >&6; } -if test "${ac_cv_struct_flock+set}" = set; then : +if ${ac_cv_struct_flock+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -18180,7 +18100,7 @@ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t" >&5 $as_echo_n "checking for socklen_t... " >&6; } -if test "${ac_cv_socklen_t+set}" = set; then : +if ${ac_cv_socklen_t+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -18225,7 +18145,7 @@ # This bug is HP SR number 8606223364. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5 $as_echo_n "checking size of size_t... " >&6; } -if test "${ac_cv_sizeof_size_t+set}" = set; then : +if ${ac_cv_sizeof_size_t+:} false; then : $as_echo_n "(cached) " >&6 else if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t" "$ac_includes_default"; then : @@ -18234,9 +18154,8 @@ if test "$ac_cv_type_size_t" = yes; then { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} -{ as_fn_set_status 77 -as_fn_error "cannot compute sizeof (size_t) -See \`config.log' for more details." "$LINENO" 5; }; } +as_fn_error 77 "cannot compute sizeof (size_t) +See \`config.log' for more details" "$LINENO" 5; } else ac_cv_sizeof_size_t=0 fi @@ -18259,7 +18178,7 @@ # This bug is HP SR number 8606223364. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5 $as_echo_n "checking size of long long... " >&6; } -if test "${ac_cv_sizeof_long_long+set}" = set; then : +if ${ac_cv_sizeof_long_long+:} false; then : $as_echo_n "(cached) " >&6 else if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then : @@ -18268,9 +18187,8 @@ if test "$ac_cv_type_long_long" = yes; then { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} -{ as_fn_set_status 77 -as_fn_error "cannot compute sizeof (long long) -See \`config.log' for more details." "$LINENO" 5; }; } +as_fn_error 77 "cannot compute sizeof (long long) +See \`config.log' for more details" "$LINENO" 5; } else ac_cv_sizeof_long_long=0 fi @@ -18293,7 +18211,7 @@ # This bug is HP SR number 8606223364. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long int" >&5 $as_echo_n "checking size of long long int... " >&6; } -if test "${ac_cv_sizeof_long_long_int+set}" = set; then : +if ${ac_cv_sizeof_long_long_int+:} false; then : $as_echo_n "(cached) " >&6 else if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long int))" "ac_cv_sizeof_long_long_int" "$ac_includes_default"; then : @@ -18302,9 +18220,8 @@ if test "$ac_cv_type_long_long_int" = yes; then { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} -{ as_fn_set_status 77 -as_fn_error "cannot compute sizeof (long long int) -See \`config.log' for more details." "$LINENO" 5; }; } +as_fn_error 77 "cannot compute sizeof (long long int) +See \`config.log' for more details" "$LINENO" 5; } else ac_cv_sizeof_long_long_int=0 fi @@ -18327,7 +18244,7 @@ # This bug is HP SR number 8606223364. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5 $as_echo_n "checking size of long... " >&6; } -if test "${ac_cv_sizeof_long+set}" = set; then : +if ${ac_cv_sizeof_long+:} false; then : $as_echo_n "(cached) " >&6 else if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then : @@ -18336,9 +18253,8 @@ if test "$ac_cv_type_long" = yes; then { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} -{ as_fn_set_status 77 -as_fn_error "cannot compute sizeof (long) -See \`config.log' for more details." "$LINENO" 5; }; } +as_fn_error 77 "cannot compute sizeof (long) +See \`config.log' for more details" "$LINENO" 5; } else ac_cv_sizeof_long=0 fi @@ -18361,7 +18277,7 @@ # This bug is HP SR number 8606223364. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5 $as_echo_n "checking size of int... " >&6; } -if test "${ac_cv_sizeof_int+set}" = set; then : +if ${ac_cv_sizeof_int+:} false; then : $as_echo_n "(cached) " >&6 else if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then : @@ -18370,9 +18286,8 @@ if test "$ac_cv_type_int" = yes; then { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} -{ as_fn_set_status 77 -as_fn_error "cannot compute sizeof (int) -See \`config.log' for more details." "$LINENO" 5; }; } +as_fn_error 77 "cannot compute sizeof (int) +See \`config.log' for more details" "$LINENO" 5; } else ac_cv_sizeof_int=0 fi @@ -18395,7 +18310,7 @@ $as_echo_n "checking size of intmax_t... " >&6; } php_cache_value=php_cv_sizeof_intmax_t - if test "${php_cv_sizeof_intmax_t+set}" = set; then : + if ${php_cv_sizeof_intmax_t+:} false; then : $as_echo_n "(cached) " >&6 else @@ -18474,7 +18389,7 @@ $as_echo_n "checking size of ssize_t... " >&6; } php_cache_value=php_cv_sizeof_ssize_t - if test "${php_cv_sizeof_ssize_t+set}" = set; then : + if ${php_cv_sizeof_ssize_t+:} false; then : $as_echo_n "(cached) " >&6 else @@ -18553,7 +18468,7 @@ $as_echo_n "checking size of ptrdiff_t... " >&6; } php_cache_value=php_cv_sizeof_ptrdiff_t - if test "${php_cv_sizeof_ptrdiff_t+set}" = set; then : + if ${php_cv_sizeof_ptrdiff_t+:} false; then : $as_echo_n "(cached) " >&6 else @@ -18629,7 +18544,7 @@ ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default" -if test "x$ac_cv_member_struct_stat_st_blksize" = x""yes; then : +if test "x$ac_cv_member_struct_stat_st_blksize" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_STRUCT_STAT_ST_BLKSIZE 1 @@ -18643,7 +18558,7 @@ if test "`uname -s 2>/dev/null`" != "QNX"; then ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default" -if test "x$ac_cv_member_struct_stat_st_blocks" = x""yes; then : +if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_STRUCT_STAT_ST_BLOCKS 1 @@ -18668,7 +18583,7 @@ WARNING_LEVEL=0 fi ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default" -if test "x$ac_cv_member_struct_stat_st_rdev" = x""yes; then : +if test "x$ac_cv_member_struct_stat_st_rdev" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_STRUCT_STAT_ST_RDEV 1 @@ -18682,7 +18597,7 @@ ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" -if test "x$ac_cv_type_size_t" = x""yes; then : +if test "x$ac_cv_type_size_t" = xyes; then : else @@ -18694,7 +18609,7 @@ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5 $as_echo_n "checking for uid_t in sys/types.h... " >&6; } -if test "${ac_cv_type_uid_t+set}" = set; then : +if ${ac_cv_type_uid_t+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -18726,7 +18641,7 @@ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct sockaddr_storage" >&5 $as_echo_n "checking for struct sockaddr_storage... " >&6; } -if test "${ac_cv_sockaddr_storage+set}" = set; then : +if ${ac_cv_sockaddr_storage+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -18758,7 +18673,7 @@ fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for field sa_len in struct sockaddr" >&5 $as_echo_n "checking for field sa_len in struct sockaddr... " >&6; } -if test "${ac_cv_sockaddr_sa_len+set}" = set; then : +if ${ac_cv_sockaddr_sa_len+:} false; then : $as_echo_n "(cached) " >&6 else @@ -18793,7 +18708,7 @@ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IPv6 support" >&5 $as_echo_n "checking for IPv6 support... " >&6; } -if test "${ac_cv_ipv6_support+set}" = set; then : +if ${ac_cv_ipv6_support+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -18824,13 +18739,13 @@ for ac_func in vprintf do : ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf" -if test "x$ac_cv_func_vprintf" = x""yes; then : +if test "x$ac_cv_func_vprintf" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_VPRINTF 1 _ACEOF ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt" -if test "x$ac_cv_func__doprnt" = x""yes; then : +if test "x$ac_cv_func__doprnt" = xyes; then : $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h @@ -18926,8 +18841,7 @@ do : as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" -eval as_val=\$$as_ac_var - if test "x$as_val" = x""yes; then : +if eval test \"x\$"$as_ac_var"\" = x"yes"; then : cat >>confdefs.h <<_ACEOF #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 _ACEOF @@ -18943,7 +18857,7 @@ unset found { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nanosleep in -lrt" >&5 $as_echo_n "checking for nanosleep in -lrt... " >&6; } -if test "${ac_cv_lib_rt_nanosleep+set}" = set; then : +if ${ac_cv_lib_rt_nanosleep+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS @@ -18977,13 +18891,13 @@ fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_nanosleep" >&5 $as_echo "$ac_cv_lib_rt_nanosleep" >&6; } -if test "x$ac_cv_lib_rt_nanosleep" = x""yes; then : +if test "x$ac_cv_lib_rt_nanosleep" = xyes; then : found=yes else { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __nanosleep in -lrt" >&5 $as_echo_n "checking for __nanosleep in -lrt... " >&6; } -if test "${ac_cv_lib_rt___nanosleep+set}" = set; then : +if ${ac_cv_lib_rt___nanosleep+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS @@ -19017,7 +18931,7 @@ fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt___nanosleep" >&5 $as_echo "$ac_cv_lib_rt___nanosleep" >&6; } -if test "x$ac_cv_lib_rt___nanosleep" = x""yes; then : +if test "x$ac_cv_lib_rt___nanosleep" = xyes; then : found=yes else found=no @@ -19075,92 +18989,13 @@ -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for getaddrinfo" >&5 -$as_echo_n "checking for getaddrinfo... " >&6; } -if test "${ac_cv_func_getaddrinfo+set}" = set; then : - $as_echo_n "(cached) " >&6 -else - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -#include -int -main () -{ -struct addrinfo *g,h;g=&h;getaddrinfo("","",g,&g); - ; - return 0; -} -_ACEOF -if ac_fn_c_try_link "$LINENO"; then : - if test "$cross_compiling" = yes; then : - ac_cv_func_getaddrinfo=no -else - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ - -#include -#include -#ifndef AF_INET -# include -#endif -int main(void) { - struct addrinfo *ai, *pai, hints; - - memset(&hints, 0, sizeof(hints)); - hints.ai_flags = AI_NUMERICHOST; - - if (getaddrinfo("127.0.0.1", 0, &hints, &ai) < 0) { - exit(1); - } - - if (ai == 0) { - exit(1); - } - - pai = ai; - - while (pai) { - if (pai->ai_family != AF_INET) { - /* 127.0.0.1/NUMERICHOST should only resolve ONE way */ - exit(1); - } - if (pai->ai_addr->sa_family != AF_INET) { - /* 127.0.0.1/NUMERICHOST should only resolve ONE way */ - exit(1); - } - pai = pai->ai_next; - } - freeaddrinfo(ai); - exit(0); -} - -_ACEOF -if ac_fn_c_try_run "$LINENO"; then : - ac_cv_func_getaddrinfo=yes -else - ac_cv_func_getaddrinfo=no -fi -rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ - conftest.$ac_objext conftest.beam conftest.$ac_ext -fi - -else - ac_cv_func_getaddrinfo=no -fi -rm -f core conftest.err conftest.$ac_objext \ - conftest$ac_exeext conftest.$ac_ext -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getaddrinfo" >&5 -$as_echo "$ac_cv_func_getaddrinfo" >&6; } -if test "$ac_cv_func_getaddrinfo" = yes; then $as_echo "#define HAVE_GETADDRINFO 1" >>confdefs.h -fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __sync_fetch_and_add" >&5 $as_echo_n "checking for __sync_fetch_and_add... " >&6; } -if test "${ac_cv_func_sync_fetch_and_add+set}" = set; then : +if ${ac_cv_func_sync_fetch_and_add+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -19190,25 +19025,44 @@ fi -for ac_func in strlcat strlcpy getopt -do : - as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` -ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" -eval as_val=\$$as_ac_var - if test "x$as_val" = x""yes; then : - cat >>confdefs.h <<_ACEOF -#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 -_ACEOF +ac_fn_c_check_func "$LINENO" "strlcat" "ac_cv_func_strlcat" +if test "x$ac_cv_func_strlcat" = xyes; then : + $as_echo "#define HAVE_STRLCAT 1" >>confdefs.h else case " $LIBOBJS " in - *" $ac_func.$ac_objext "* ) ;; - *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" + *" strlcat.$ac_objext "* ) ;; + *) LIBOBJS="$LIBOBJS strlcat.$ac_objext" + ;; +esac + +fi + +ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy" +if test "x$ac_cv_func_strlcpy" = xyes; then : + $as_echo "#define HAVE_STRLCPY 1" >>confdefs.h + +else + case " $LIBOBJS " in + *" strlcpy.$ac_objext "* ) ;; + *) LIBOBJS="$LIBOBJS strlcpy.$ac_objext" + ;; +esac + +fi + +ac_fn_c_check_func "$LINENO" "getopt" "ac_cv_func_getopt" +if test "x$ac_cv_func_getopt" = xyes; then : + $as_echo "#define HAVE_GETOPT 1" >>confdefs.h + +else + case " $LIBOBJS " in + *" getopt.$ac_objext "* ) ;; + *) LIBOBJS="$LIBOBJS getopt.$ac_objext" ;; esac fi -done @@ -19219,8 +19073,7 @@ as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default " -eval as_val=\$$as_ac_Header - if test "x$as_val" = x""yes; then : +if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : cat >>confdefs.h <<_ACEOF #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 _ACEOF @@ -19234,7 +19087,7 @@ { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether utime accepts a null argument" >&5 $as_echo_n "checking whether utime accepts a null argument... " >&6; } -if test "${ac_cv_func_utime_null+set}" = set; then : +if ${ac_cv_func_utime_null+:} false; then : $as_echo_n "(cached) " >&6 else rm -f conftest.data; >conftest.data @@ -19285,7 +19138,7 @@ # for constant arguments. Useless! { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5 $as_echo_n "checking for working alloca.h... " >&6; } -if test "${ac_cv_working_alloca_h+set}" = set; then : +if ${ac_cv_working_alloca_h+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -19318,7 +19171,7 @@ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5 $as_echo_n "checking for alloca... " >&6; } -if test "${ac_cv_func_alloca_works+set}" = set; then : +if ${ac_cv_func_alloca_works+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -19337,7 +19190,7 @@ #pragma alloca # else # ifndef alloca /* predefined by HP cc +Olibcalls */ -char *alloca (); +void *alloca (size_t); # endif # endif # endif @@ -19381,7 +19234,7 @@ { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; } -if test "${ac_cv_os_cray+set}" = set; then : +if ${ac_cv_os_cray+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -19408,8 +19261,7 @@ for ac_func in _getb67 GETB67 getb67; do as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" -eval as_val=\$$as_ac_var - if test "x$as_val" = x""yes; then : +if eval test \"x\$"$as_ac_var"\" = x"yes"; then : cat >>confdefs.h <<_ACEOF #define CRAY_STACKSEG_END $ac_func @@ -19423,7 +19275,7 @@ { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5 $as_echo_n "checking stack direction for C alloca... " >&6; } -if test "${ac_cv_c_stack_direction+set}" = set; then : +if ${ac_cv_c_stack_direction+:} false; then : $as_echo_n "(cached) " >&6 else if test "$cross_compiling" = yes; then : @@ -19433,23 +19285,20 @@ /* end confdefs.h. */ $ac_includes_default int -find_stack_direction () +find_stack_direction (int *addr, int depth) { - static char *addr = 0; - auto char dummy; - if (addr == 0) - { - addr = &dummy; - return find_stack_direction (); - } - else - return (&dummy > addr) ? 1 : -1; + int dir, dummy = 0; + if (! addr) + addr = &dummy; + *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1; + dir = depth ? find_stack_direction (addr, depth - 1) : 0; + return dir + dummy; } int -main () +main (int argc, char **argv) { - return find_stack_direction () < 0; + return find_stack_direction (0, argc + !argv + 20) < 0; } _ACEOF if ac_fn_c_try_run "$LINENO"; then : @@ -19474,7 +19323,7 @@ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for declared timezone" >&5 $as_echo_n "checking for declared timezone... " >&6; } -if test "${ac_cv_declared_timezone+set}" = set; then : +if ${ac_cv_declared_timezone+:} false; then : $as_echo_n "(cached) " >&6 else @@ -19519,7 +19368,7 @@ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type of reentrant time-related functions" >&5 $as_echo_n "checking for type of reentrant time-related functions... " >&6; } -if test "${ac_cv_time_r_type+set}" = set; then : +if ${ac_cv_time_r_type+:} false; then : $as_echo_n "(cached) " >&6 else @@ -19607,7 +19456,7 @@ ac_fn_c_check_func "$LINENO" "readdir_r" "ac_cv_func_readdir_r" -if test "x$ac_cv_func_readdir_r" = x""yes; then : +if test "x$ac_cv_func_readdir_r" = xyes; then : ac_cv_func_readdir_r=yes else ac_cv_func_readdir=no @@ -19616,7 +19465,7 @@ if test "$ac_cv_func_readdir_r" = "yes"; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type of readdir_r" >&5 $as_echo_n "checking for type of readdir_r... " >&6; } -if test "${ac_cv_what_readdir_r+set}" = set; then : +if ${ac_cv_what_readdir_r+:} false; then : $as_echo_n "(cached) " >&6 else @@ -19674,7 +19523,7 @@ ac_cv_what_readdir_r=none fi -rm -f conftest.err conftest.$ac_ext +rm -f conftest.err conftest.i conftest.$ac_ext fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ @@ -19700,7 +19549,7 @@ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for in_addr_t" >&5 $as_echo_n "checking for in_addr_t... " >&6; } -if test "${ac_cv_type_in_addr_t+set}" = set; then : +if ${ac_cv_type_in_addr_t+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -19735,7 +19584,7 @@ for ac_func in crypt_r do : ac_fn_c_check_func "$LINENO" "crypt_r" "ac_cv_func_crypt_r" -if test "x$ac_cv_func_crypt_r" = x""yes; then : +if test "x$ac_cv_func_crypt_r" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_CRYPT_R 1 _ACEOF @@ -19749,7 +19598,7 @@ { $as_echo "$as_me:${as_lineno-$LINENO}: checking which data struct is used by crypt_r" >&5 $as_echo_n "checking which data struct is used by crypt_r... " >&6; } -if test "${php_cv_crypt_r_style+set}" = set; then : +if ${php_cv_crypt_r_style+:} false; then : $as_echo_n "(cached) " >&6 else @@ -19845,7 +19694,7 @@ fi if test "$php_cv_crypt_r_style" = "none"; then - as_fn_error "Unable to detect data struct used by crypt_r" "$LINENO" 5 + as_fn_error $? "Unable to detect data struct used by crypt_r" "$LINENO" 5 fi fi @@ -19891,7 +19740,7 @@ if test "$PHP_GCOV" = "yes"; then if test "$GCC" != "yes"; then - as_fn_error "GCC is required for --enable-gcov" "$LINENO" 5 + as_fn_error $? "GCC is required for --enable-gcov" "$LINENO" 5 fi case `$php_shtool path $CC` in @@ -19900,7 +19749,7 @@ esac if test "$gcc_ccache" = "yes" && (test -z "$CCACHE_DISABLE" || test "$CCACHE_DISABLE" != "1"); then - as_fn_error "ccache must be disabled when --enable-gcov option is used. You can disable ccache by setting environment variable CCACHE_DISABLE=1." "$LINENO" 5 + as_fn_error $? "ccache must be disabled when --enable-gcov option is used. You can disable ccache by setting environment variable CCACHE_DISABLE=1." "$LINENO" 5 fi ltp_version_list="1.5 1.6 1.7" @@ -19909,7 +19758,7 @@ set dummy lcov; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } -if test "${ac_cv_prog_LTP+set}" = set; then : +if ${ac_cv_prog_LTP+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$LTP"; then @@ -19921,7 +19770,7 @@ IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_LTP="lcov" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 @@ -19946,7 +19795,7 @@ set dummy genhtml; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } -if test "${ac_cv_prog_LTP_GENHTML+set}" = set; then : +if ${ac_cv_prog_LTP_GENHTML+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$LTP_GENHTML"; then @@ -19958,7 +19807,7 @@ IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_LTP_GENHTML="genhtml" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 @@ -19989,7 +19838,7 @@ if test "$LTP"; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ltp version" >&5 $as_echo_n "checking for ltp version... " >&6; } -if test "${php_cv_ltp_version+set}" = set; then : +if ${php_cv_ltp_version+:} false; then : $as_echo_n "(cached) " >&6 else @@ -20006,19 +19855,19 @@ $as_echo "$php_cv_ltp_version" >&6; } else ltp_msg="To enable code coverage reporting you must have one of the following LTP versions installed: $ltp_version_list" - as_fn_error "$ltp_msg" "$LINENO" 5 + as_fn_error $? "$ltp_msg" "$LINENO" 5 fi case $php_cv_ltp_version in ""|invalid) ltp_msg="You must have one of the following versions of LTP: $ltp_version_list (found: $ltp_version)." - as_fn_error "$ltp_msg" "$LINENO" 5 + as_fn_error $? "$ltp_msg" "$LINENO" 5 LTP="exit 0;" ;; esac if test -z "$LTP_GENHTML"; then - as_fn_error "Could not find genhtml from the LTP package" "$LINENO" 5 + as_fn_error $? "Could not find genhtml from the LTP package" "$LINENO" 5 fi @@ -20250,7 +20099,7 @@ if test -z "$libgcc_libpath"; then - as_fn_error "Cannot locate libgcc. Make sure that gcc is in your path" "$LINENO" 5 + as_fn_error $? "Cannot locate libgcc. Make sure that gcc is in your path" "$LINENO" 5 fi if test "$libgcc_libpath" != "/usr/$PHP_LIBDIR" && test "$libgcc_libpath" != "/usr/lib"; then @@ -20275,6 +20124,7 @@ if test -n "$unique" && test "`eval $cmd`" = "" ; then eval "LIBPATH$unique=set" + test "x$PHP_RPATH" != "xno" && test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" LDFLAGS="$LDFLAGS -L$ai_p" PHP_RPATHS="$PHP_RPATHS $ai_p" @@ -20356,7 +20206,7 @@ if test "$PHP_DMALLOC" = "yes"; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dmalloc_error in -ldmalloc" >&5 $as_echo_n "checking for dmalloc_error in -ldmalloc... " >&6; } -if test "${ac_cv_lib_dmalloc_dmalloc_error+set}" = set; then : +if ${ac_cv_lib_dmalloc_dmalloc_error+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS @@ -20390,7 +20240,7 @@ fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dmalloc_dmalloc_error" >&5 $as_echo "$ac_cv_lib_dmalloc_dmalloc_error" >&6; } -if test "x$ac_cv_lib_dmalloc_dmalloc_error" = x""yes; then : +if test "x$ac_cv_lib_dmalloc_dmalloc_error" = xyes; then : @@ -20409,7 +20259,7 @@ else - as_fn_error "Problem with enabling dmalloc. Please check config.log for details." "$LINENO" 5 + as_fn_error $? "Problem with enabling dmalloc. Please check config.log for details." "$LINENO" 5 fi @@ -20471,7 +20321,7 @@ for ac_header in sys/sdt.h do : ac_fn_c_check_header_mongrel "$LINENO" "sys/sdt.h" "ac_cv_header_sys_sdt_h" "$ac_includes_default" -if test "x$ac_cv_header_sys_sdt_h" = x""yes; then : +if test "x$ac_cv_header_sys_sdt_h" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_SYS_SDT_H 1 _ACEOF @@ -20546,7 +20396,7 @@ else - as_fn_error "Cannot find sys/sdt.h which is required for DTrace support" "$LINENO" 5 + as_fn_error $? "Cannot find sys/sdt.h which is required for DTrace support" "$LINENO" 5 fi @@ -20583,7 +20433,7 @@ { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $PHP_FD_SETSIZE" >&5 $as_echo "using $PHP_FD_SETSIZE" >&6; } else - as_fn_error "Invalid value passed to --enable-fd-setsize!" "$LINENO" 5 + as_fn_error $? "Invalid value passed to --enable-fd-setsize!" "$LINENO" 5 fi else { $as_echo "$as_me:${as_lineno-$LINENO}: result: using system default" >&5 @@ -20626,7 +20476,7 @@ # This bug is HP SR number 8606223364. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5 $as_echo_n "checking size of long... " >&6; } -if test "${ac_cv_sizeof_long+set}" = set; then : +if ${ac_cv_sizeof_long+:} false; then : $as_echo_n "(cached) " >&6 else if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then : @@ -20635,9 +20485,8 @@ if test "$ac_cv_type_long" = yes; then { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} -{ as_fn_set_status 77 -as_fn_error "cannot compute sizeof (long) -See \`config.log' for more details." "$LINENO" 5; }; } +as_fn_error 77 "cannot compute sizeof (long) +See \`config.log' for more details" "$LINENO" 5; } else ac_cv_sizeof_long=0 fi @@ -20660,7 +20509,7 @@ # This bug is HP SR number 8606223364. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5 $as_echo_n "checking size of int... " >&6; } -if test "${ac_cv_sizeof_int+set}" = set; then : +if ${ac_cv_sizeof_int+:} false; then : $as_echo_n "(cached) " >&6 else if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then : @@ -20669,9 +20518,8 @@ if test "$ac_cv_type_int" = yes; then { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} -{ as_fn_set_status 77 -as_fn_error "cannot compute sizeof (int) -See \`config.log' for more details." "$LINENO" 5; }; } +as_fn_error 77 "cannot compute sizeof (int) +See \`config.log' for more details" "$LINENO" 5; } else ac_cv_sizeof_int=0 fi @@ -20691,7 +20539,7 @@ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int32_t" >&5 $as_echo_n "checking for int32_t... " >&6; } -if test "${ac_cv_int_type_int32_t+set}" = set; then : +if ${ac_cv_int_type_int32_t+:} false; then : $as_echo_n "(cached) " >&6 else @@ -20737,7 +20585,7 @@ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint32_t" >&5 $as_echo_n "checking for uint32_t... " >&6; } -if test "${ac_cv_int_type_uint32_t+set}" = set; then : +if ${ac_cv_int_type_uint32_t+:} false; then : $as_echo_n "(cached) " >&6 else @@ -20791,8 +20639,7 @@ do : as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" -eval as_val=\$$as_ac_Header - if test "x$as_val" = x""yes; then : +if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : cat >>confdefs.h <<_ACEOF #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 _ACEOF @@ -20806,8 +20653,7 @@ do : as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" -eval as_val=\$$as_ac_var - if test "x$as_val" = x""yes; then : +if eval test \"x\$"$as_ac_var"\" = x"yes"; then : cat >>confdefs.h <<_ACEOF #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 _ACEOF @@ -20817,6 +20663,45 @@ +php_with_system_tzdata=no + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for use of system timezone data" >&5 +$as_echo_n "checking for use of system timezone data... " >&6; } + +# Check whether --with-system-tzdata was given. +if test "${with_system_tzdata+set}" = set; then : + withval=$with_system_tzdata; PHP_SYSTEM_TZDATA=$withval +else + + PHP_SYSTEM_TZDATA=no + + +fi + + +ext_output=$PHP_SYSTEM_TZDATA +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5 +$as_echo "$ext_output" >&6; } + + + + +if test "$PHP_SYSTEM_TZDATA" != "no"; then + +$as_echo "#define HAVE_SYSTEM_TZDATA 1" >>confdefs.h + + + if test "$PHP_SYSTEM_TZDATA" != "yes"; then + +cat >>confdefs.h <<_ACEOF +#define HAVE_SYSTEM_TZDATA_PREFIX "$PHP_SYSTEM_TZDATA" +_ACEOF + + fi +fi + + + PHP_DATE_CFLAGS="-I@ext_builddir@/lib" timelib_sources="lib/astro.c lib/dow.c lib/parse_date.c lib/parse_tz.c @@ -21631,7 +21516,7 @@ { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether field re_magic exists in struct regex_t" >&5 $as_echo_n "checking whether field re_magic exists in struct regex_t... " >&6; } -if test "${ac_cv_regex_t_re_magic+set}" = set; then : +if ${ac_cv_regex_t_re_magic+:} false; then : $as_echo_n "(cached) " >&6 else @@ -21741,7 +21626,7 @@ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xml2-config path" >&5 $as_echo_n "checking for xml2-config path... " >&6; } -if test "${ac_cv_php_xml2_config_path+set}" = set; then : +if ${ac_cv_php_xml2_config_path+:} false; then : $as_echo_n "(cached) " >&6 else @@ -21830,6 +21715,7 @@ if test "$ext_shared" = "yes"; then LIBXML_SHARED_LIBADD="-L$ai_p $LIBXML_SHARED_LIBADD" + test "x$PHP_RPATH" != "xno" && \ test -n "$ld_runpath_switch" && LIBXML_SHARED_LIBADD="$ld_runpath_switch$ai_p $LIBXML_SHARED_LIBADD" else @@ -21841,6 +21727,7 @@ if test -n "$unique" && test "`eval $cmd`" = "" ; then eval "LIBPATH$unique=set" + test "x$PHP_RPATH" != "xno" && test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" LDFLAGS="$LDFLAGS -L$ai_p" PHP_RPATHS="$PHP_RPATHS $ai_p" @@ -21899,7 +21786,7 @@ { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libxml build works" >&5 $as_echo_n "checking whether libxml build works... " >&6; } -if test "${php_cv_libxml_build_works+set}" = set; then : +if ${php_cv_libxml_build_works+:} false; then : $as_echo_n "(cached) " >&6 else @@ -21937,7 +21824,7 @@ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } - as_fn_error "build test failed. Please check the config.log for details." "$LINENO" 5 + as_fn_error $? "build test failed. Please check the config.log for details." "$LINENO" 5 fi @@ -22272,10 +22159,10 @@ else - as_fn_error "libxml2 version 2.6.11 or greater required." "$LINENO" 5 + as_fn_error $? "libxml2 version 2.6.11 or greater required." "$LINENO" 5 fi else - as_fn_error "xml2-config not found. Please check your libxml2 installation." "$LINENO" 5 + as_fn_error $? "xml2-config not found. Please check your libxml2 installation." "$LINENO" 5 fi @@ -22660,7 +22547,7 @@ set dummy krb5-config; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } -if test "${ac_cv_path_KRB5_CONFIG+set}" = set; then : +if ${ac_cv_path_KRB5_CONFIG+:} false; then : $as_echo_n "(cached) " >&6 else case $KRB5_CONFIG in @@ -22675,7 +22562,7 @@ IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_path_KRB5_CONFIG="$as_dir/$ac_word$ac_exec_ext" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 @@ -22769,6 +22656,7 @@ if test "$ext_shared" = "yes"; then OPENSSL_SHARED_LIBADD="-L$ai_p $OPENSSL_SHARED_LIBADD" + test "x$PHP_RPATH" != "xno" && \ test -n "$ld_runpath_switch" && OPENSSL_SHARED_LIBADD="$ld_runpath_switch$ai_p $OPENSSL_SHARED_LIBADD" else @@ -22780,6 +22668,7 @@ if test -n "$unique" && test "`eval $cmd`" = "" ; then eval "LIBPATH$unique=set" + test "x$PHP_RPATH" != "xno" && test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" LDFLAGS="$LDFLAGS -L$ai_p" PHP_RPATHS="$PHP_RPATHS $ai_p" @@ -22845,7 +22734,7 @@ fi for i in $PHP_KERBEROS; do - if test -f $i/$PHP_LIBDIR/libkrb5.a || test -f $i/$PHP_LIBDIR/libkrb5.$SHLIB_SUFFIX_NAME; then + if test -f $i/$PHP_LIBDIR/libkrb5.$SHLIB_SUFFIX_NAME || test -f $i/$PHP_LIBDIR/$DEB_HOST_MULTIARCH/libkrb5.$SHLIB_SUFFIX_NAME || test -f $i/$PHP_LIBDIR/libkrb5.a; then PHP_KERBEROS_DIR=$i break fi @@ -22869,6 +22758,7 @@ if test "$ext_shared" = "yes"; then OPENSSL_SHARED_LIBADD="-L$ai_p $OPENSSL_SHARED_LIBADD" + test "x$PHP_RPATH" != "xno" && \ test -n "$ld_runpath_switch" && OPENSSL_SHARED_LIBADD="$ld_runpath_switch$ai_p $OPENSSL_SHARED_LIBADD" else @@ -22880,6 +22770,7 @@ if test -n "$unique" && test "`eval $cmd`" = "" ; then eval "LIBPATH$unique=set" + test "x$PHP_RPATH" != "xno" && test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" LDFLAGS="$LDFLAGS -L$ai_p" PHP_RPATHS="$PHP_RPATHS $ai_p" @@ -23026,7 +22917,7 @@ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DSA_get_default_method in -lssl" >&5 $as_echo_n "checking for DSA_get_default_method in -lssl... " >&6; } -if test "${ac_cv_lib_ssl_DSA_get_default_method+set}" = set; then : +if ${ac_cv_lib_ssl_DSA_get_default_method+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS @@ -23060,7 +22951,7 @@ fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_DSA_get_default_method" >&5 $as_echo "$ac_cv_lib_ssl_DSA_get_default_method" >&6; } -if test "x$ac_cv_lib_ssl_DSA_get_default_method" = x""yes; then : +if test "x$ac_cv_lib_ssl_DSA_get_default_method" = xyes; then : $as_echo "#define HAVE_DSA_DEFAULT_METHOD 1" >>confdefs.h @@ -23068,7 +22959,7 @@ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X509_free in -lcrypto" >&5 $as_echo_n "checking for X509_free in -lcrypto... " >&6; } -if test "${ac_cv_lib_crypto_X509_free+set}" = set; then : +if ${ac_cv_lib_crypto_X509_free+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS @@ -23102,7 +22993,7 @@ fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_X509_free" >&5 $as_echo "$ac_cv_lib_crypto_X509_free" >&6; } -if test "x$ac_cv_lib_crypto_X509_free" = x""yes; then : +if test "x$ac_cv_lib_crypto_X509_free" = xyes; then : $as_echo "#define HAVE_DSA_DEFAULT_METHOD 1" >>confdefs.h @@ -23128,7 +23019,7 @@ set dummy pkg-config; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } -if test "${ac_cv_path_PKG_CONFIG+set}" = set; then : +if ${ac_cv_path_PKG_CONFIG+:} false; then : $as_echo_n "(cached) " >&6 else case $PKG_CONFIG in @@ -23142,7 +23033,7 @@ IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 @@ -23174,7 +23065,7 @@ OPENSSL_INCS=`$PKG_CONFIG --cflags-only-I openssl` OPENSSL_INCDIR=`$PKG_CONFIG --variable=includedir openssl` else - as_fn_error "OpenSSL version 0.9.6 or greater required." "$LINENO" 5 + as_fn_error $? "OpenSSL version 0.9.6 or greater required." "$LINENO" 5 fi if test -n "$OPENSSL_LIBS" && test -n "$OPENSSL_INCS"; then @@ -23241,6 +23132,7 @@ if test "$ext_shared" = "yes"; then OPENSSL_SHARED_LIBADD="-L$ai_p $OPENSSL_SHARED_LIBADD" + test "x$PHP_RPATH" != "xno" && \ test -n "$ld_runpath_switch" && OPENSSL_SHARED_LIBADD="$ld_runpath_switch$ai_p $OPENSSL_SHARED_LIBADD" else @@ -23252,6 +23144,7 @@ if test -n "$unique" && test "`eval $cmd`" = "" ; then eval "LIBPATH$unique=set" + test "x$PHP_RPATH" != "xno" && test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" LDFLAGS="$LDFLAGS -L$ai_p" PHP_RPATHS="$PHP_RPATHS $ai_p" @@ -23320,18 +23213,18 @@ if test -r $i/include/openssl/evp.h; then OPENSSL_INCDIR=$i/include fi - if test -r $i/$PHP_LIBDIR/libssl.a -o -r $i/$PHP_LIBDIR/libssl.$SHLIB_SUFFIX_NAME; then + if test -r $i/$PHP_LIBDIR/libssl.a -o -r $i/$PHP_LIBDIR/$DEB_HOST_MULTIARCH/libssl.$SHLIB_SUFFIX_NAME -o -r $i/$PHP_LIBDIR/libssl.$SHLIB_SUFFIX_NAME; then OPENSSL_LIBDIR=$i/$PHP_LIBDIR fi test -n "$OPENSSL_INCDIR" && test -n "$OPENSSL_LIBDIR" && break done if test -z "$OPENSSL_INCDIR"; then - as_fn_error "Cannot find OpenSSL's " "$LINENO" 5 + as_fn_error $? "Cannot find OpenSSL's " "$LINENO" 5 fi if test -z "$OPENSSL_LIBDIR"; then - as_fn_error "Cannot find OpenSSL's libraries" "$LINENO" 5 + as_fn_error $? "Cannot find OpenSSL's libraries" "$LINENO" 5 fi old_CPPFLAGS=$CPPFLAGS @@ -23355,7 +23248,7 @@ else - as_fn_error "OpenSSL version 0.9.6 or greater required." "$LINENO" 5 + as_fn_error $? "OpenSSL version 0.9.6 or greater required." "$LINENO" 5 fi rm -f conftest* @@ -23465,6 +23358,7 @@ if test "$ext_shared" = "yes"; then LDFLAGS="-L$ai_p $LDFLAGS" + test "x$PHP_RPATH" != "xno" && \ test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS" else @@ -23476,6 +23370,7 @@ if test -n "$unique" && test "`eval $cmd`" = "" ; then eval "LIBPATH$unique=set" + test "x$PHP_RPATH" != "xno" && test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" LDFLAGS="$LDFLAGS -L$ai_p" PHP_RPATHS="$PHP_RPATHS $ai_p" @@ -23493,7 +23388,7 @@ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CRYPTO_free in -lcrypto" >&5 $as_echo_n "checking for CRYPTO_free in -lcrypto... " >&6; } -if test "${ac_cv_lib_crypto_CRYPTO_free+set}" = set; then : +if ${ac_cv_lib_crypto_CRYPTO_free+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS @@ -23527,35 +23422,11 @@ fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_CRYPTO_free" >&5 $as_echo "$ac_cv_lib_crypto_CRYPTO_free" >&6; } -if test "x$ac_cv_lib_crypto_CRYPTO_free" = x""yes; then : +if test "x$ac_cv_lib_crypto_CRYPTO_free" = xyes; then : LDFLAGS=$save_old_LDFLAGS ext_shared=$save_ext_shared - - - - case crypto in - c|c_r|pthread*) ;; - *) - if test "$ext_shared" = "yes"; then - OPENSSL_SHARED_LIBADD="-lcrypto $OPENSSL_SHARED_LIBADD" - else - - - case crypto in - c|c_r|pthread*) ;; - *) - LIBS="-lcrypto $LIBS" - ;; - esac - - - fi - ;; - esac - - - + : else @@ -23563,7 +23434,7 @@ ext_shared=$save_ext_shared unset ac_cv_lib_crypto_CRYPTO_free - as_fn_error "libcrypto not found!" "$LINENO" 5 + as_fn_error $? "libcrypto not found!" "$LINENO" 5 fi @@ -23642,6 +23513,7 @@ if test "$ext_shared" = "yes"; then LDFLAGS="-L$ai_p $LDFLAGS" + test "x$PHP_RPATH" != "xno" && \ test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS" else @@ -23653,6 +23525,7 @@ if test -n "$unique" && test "`eval $cmd`" = "" ; then eval "LIBPATH$unique=set" + test "x$PHP_RPATH" != "xno" && test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" LDFLAGS="$LDFLAGS -L$ai_p" PHP_RPATHS="$PHP_RPATHS $ai_p" @@ -23670,7 +23543,7 @@ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_CTX_set_ssl_version in -lssl" >&5 $as_echo_n "checking for SSL_CTX_set_ssl_version in -lssl... " >&6; } -if test "${ac_cv_lib_ssl_SSL_CTX_set_ssl_version+set}" = set; then : +if ${ac_cv_lib_ssl_SSL_CTX_set_ssl_version+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS @@ -23704,7 +23577,7 @@ fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_CTX_set_ssl_version" >&5 $as_echo "$ac_cv_lib_ssl_SSL_CTX_set_ssl_version" >&6; } -if test "x$ac_cv_lib_ssl_SSL_CTX_set_ssl_version" = x""yes; then : +if test "x$ac_cv_lib_ssl_SSL_CTX_set_ssl_version" = xyes; then : LDFLAGS=$save_old_LDFLAGS ext_shared=$save_ext_shared @@ -23718,7 +23591,7 @@ ext_shared=$save_ext_shared unset ac_cv_lib_ssl_SSL_CTX_set_ssl_version - as_fn_error "libssl not found!" "$LINENO" 5 + as_fn_error $? "libssl not found!" "$LINENO" 5 fi @@ -23787,6 +23660,7 @@ if test "$ext_shared" = "yes"; then OPENSSL_SHARED_LIBADD="-L$ai_p $OPENSSL_SHARED_LIBADD" + test "x$PHP_RPATH" != "xno" && \ test -n "$ld_runpath_switch" && OPENSSL_SHARED_LIBADD="$ld_runpath_switch$ai_p $OPENSSL_SHARED_LIBADD" else @@ -23798,6 +23672,7 @@ if test -n "$unique" && test "`eval $cmd`" = "" ; then eval "LIBPATH$unique=set" + test "x$PHP_RPATH" != "xno" && test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" LDFLAGS="$LDFLAGS -L$ai_p" PHP_RPATHS="$PHP_RPATHS $ai_p" @@ -23821,7 +23696,7 @@ else - as_fn_error "OpenSSL check failed. Please check config.log for more information." "$LINENO" 5 + as_fn_error $? "OpenSSL check failed. Please check config.log for more information." "$LINENO" 5 fi @@ -23859,19 +23734,19 @@ done if test -z "$PCRE_INCDIR"; then - as_fn_error "Could not find pcre.h in $PHP_PCRE_REGEX" "$LINENO" 5 + as_fn_error $? "Could not find pcre.h in $PHP_PCRE_REGEX" "$LINENO" 5 fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCRE_INCDIR" >&5 $as_echo "$PCRE_INCDIR" >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PCRE library location" >&5 $as_echo_n "checking for PCRE library location... " >&6; } - for j in $PHP_PCRE_REGEX $PHP_PCRE_REGEX/$PHP_LIBDIR; do + for j in $PHP_PCRE_REGEX $PHP_PCRE_REGEX/$PHP_LIBDIR/$DEB_HOST_MULTIARCH $PHP_PCRE_REGEX/$PHP_LIBDIR; do test -f $j/libpcre.a || test -f $j/libpcre.$SHLIB_SUFFIX_NAME && PCRE_LIBDIR=$j done if test -z "$PCRE_LIBDIR" ; then - as_fn_error "Could not find libpcre.(a|$SHLIB_SUFFIX_NAME) in $PHP_PCRE_REGEX" "$LINENO" 5 + as_fn_error $? "Could not find libpcre.(a|$SHLIB_SUFFIX_NAME) in $PHP_PCRE_REGEX" "$LINENO" 5 fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCRE_LIBDIR" >&5 $as_echo "$PCRE_LIBDIR" >&6; } @@ -23886,7 +23761,7 @@ fi pcre_version=$pcre_major$pcre_minor if test "$pcre_version" -lt 660; then - as_fn_error "The PCRE extension requires PCRE library version >= 6.6" "$LINENO" 5 + as_fn_error $? "The PCRE extension requires PCRE library version >= 6.6" "$LINENO" 5 fi @@ -23915,6 +23790,7 @@ if test -n "$unique" && test "`eval $cmd`" = "" ; then eval "LIBPATH$unique=set" + test "x$PHP_RPATH" != "xno" && test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" LDFLAGS="$LDFLAGS -L$ai_p" PHP_RPATHS="$PHP_RPATHS $ai_p" @@ -24695,7 +24571,7 @@ if test -z "$SQLITE3_DIR"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 $as_echo "not found" >&6; } - as_fn_error "Please reinstall the sqlite distribution from http://www.sqlite.org" "$LINENO" 5 + as_fn_error $? "Please reinstall the sqlite distribution from http://www.sqlite.org" "$LINENO" 5 fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SQLite 3.3.9+" >&5 @@ -24771,6 +24647,7 @@ if test "$ext_shared" = "yes"; then LDFLAGS="-L$ai_p $LDFLAGS" + test "x$PHP_RPATH" != "xno" && \ test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS" else @@ -24782,6 +24659,7 @@ if test -n "$unique" && test "`eval $cmd`" = "" ; then eval "LIBPATH$unique=set" + test "x$PHP_RPATH" != "xno" && test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" LDFLAGS="$LDFLAGS -L$ai_p" PHP_RPATHS="$PHP_RPATHS $ai_p" @@ -24799,7 +24677,7 @@ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqlite3_prepare_v2 in -lsqlite3" >&5 $as_echo_n "checking for sqlite3_prepare_v2 in -lsqlite3... " >&6; } -if test "${ac_cv_lib_sqlite3_sqlite3_prepare_v2+set}" = set; then : +if ${ac_cv_lib_sqlite3_sqlite3_prepare_v2+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS @@ -24833,7 +24711,7 @@ fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sqlite3_sqlite3_prepare_v2" >&5 $as_echo "$ac_cv_lib_sqlite3_sqlite3_prepare_v2" >&6; } -if test "x$ac_cv_lib_sqlite3_sqlite3_prepare_v2" = x""yes; then : +if test "x$ac_cv_lib_sqlite3_sqlite3_prepare_v2" = xyes; then : LDFLAGS=$save_old_LDFLAGS ext_shared=$save_ext_shared @@ -24861,6 +24739,7 @@ if test "$ext_shared" = "yes"; then SQLITE3_SHARED_LIBADD="-L$ai_p $SQLITE3_SHARED_LIBADD" + test "x$PHP_RPATH" != "xno" && \ test -n "$ld_runpath_switch" && SQLITE3_SHARED_LIBADD="$ld_runpath_switch$ai_p $SQLITE3_SHARED_LIBADD" else @@ -24872,6 +24751,7 @@ if test -n "$unique" && test "`eval $cmd`" = "" ; then eval "LIBPATH$unique=set" + test "x$PHP_RPATH" != "xno" && test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" LDFLAGS="$LDFLAGS -L$ai_p" PHP_RPATHS="$PHP_RPATHS $ai_p" @@ -24911,6 +24791,7 @@ if test -n "$unique" && test "`eval $cmd`" = "" ; then eval "LIBPATH$unique=set" + test "x$PHP_RPATH" != "xno" && test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" LDFLAGS="$LDFLAGS -L$ai_p" PHP_RPATHS="$PHP_RPATHS $ai_p" @@ -24978,7 +24859,7 @@ { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 $as_echo "not found" >&6; } - as_fn_error "Please install SQLite 3.3.9 first or check libsqlite3 is present" "$LINENO" 5 + as_fn_error $? "Please install SQLite 3.3.9 first or check libsqlite3 is present" "$LINENO" 5 fi @@ -25053,6 +24934,7 @@ if test "$ext_shared" = "yes"; then LDFLAGS="-L$ai_p $LDFLAGS" + test "x$PHP_RPATH" != "xno" && \ test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS" else @@ -25064,6 +24946,7 @@ if test -n "$unique" && test "`eval $cmd`" = "" ; then eval "LIBPATH$unique=set" + test "x$PHP_RPATH" != "xno" && test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" LDFLAGS="$LDFLAGS -L$ai_p" PHP_RPATHS="$PHP_RPATHS $ai_p" @@ -25081,7 +24964,7 @@ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqlite3_key in -lsqlite3" >&5 $as_echo_n "checking for sqlite3_key in -lsqlite3... " >&6; } -if test "${ac_cv_lib_sqlite3_sqlite3_key+set}" = set; then : +if ${ac_cv_lib_sqlite3_sqlite3_key+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS @@ -25115,7 +24998,7 @@ fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sqlite3_sqlite3_key" >&5 $as_echo "$ac_cv_lib_sqlite3_sqlite3_key" >&6; } -if test "x$ac_cv_lib_sqlite3_sqlite3_key" = x""yes; then : +if test "x$ac_cv_lib_sqlite3_sqlite3_key" = xyes; then : LDFLAGS=$save_old_LDFLAGS ext_shared=$save_ext_shared @@ -25204,6 +25087,7 @@ if test "$ext_shared" = "yes"; then LDFLAGS="-L$ai_p $LDFLAGS" + test "x$PHP_RPATH" != "xno" && \ test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS" else @@ -25215,6 +25099,7 @@ if test -n "$unique" && test "`eval $cmd`" = "" ; then eval "LIBPATH$unique=set" + test "x$PHP_RPATH" != "xno" && test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" LDFLAGS="$LDFLAGS -L$ai_p" PHP_RPATHS="$PHP_RPATHS $ai_p" @@ -25232,7 +25117,7 @@ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqlite3_load_extension in -lsqlite3" >&5 $as_echo_n "checking for sqlite3_load_extension in -lsqlite3... " >&6; } -if test "${ac_cv_lib_sqlite3_sqlite3_load_extension+set}" = set; then : +if ${ac_cv_lib_sqlite3_sqlite3_load_extension+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS @@ -25266,7 +25151,7 @@ fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sqlite3_sqlite3_load_extension" >&5 $as_echo "$ac_cv_lib_sqlite3_sqlite3_load_extension" >&6; } -if test "x$ac_cv_lib_sqlite3_sqlite3_load_extension" = x""yes; then : +if test "x$ac_cv_lib_sqlite3_sqlite3_load_extension" = xyes; then : LDFLAGS=$save_old_LDFLAGS ext_shared=$save_ext_shared @@ -26028,7 +25913,7 @@ fi if test -z "$ZLIB_DIR"; then - as_fn_error "Cannot find libz" "$LINENO" 5 + as_fn_error $? "Cannot find libz" "$LINENO" 5 fi case $ZLIB_DIR in @@ -26042,7 +25927,7 @@ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZLIB_VERSION" >&5 $as_echo "$ZLIB_VERSION" >&6; } if test `echo $ZLIB_VERSION | $SED -e 's/[^0-9]/ /g' | $AWK '{print $1*1000000 + $2*10000 + $3*100 + $4}'` -lt 1020004; then - as_fn_error "libz version greater or equal to 1.2.0.4 required" "$LINENO" 5 + as_fn_error $? "libz version greater or equal to 1.2.0.4 required" "$LINENO" 5 fi @@ -26116,6 +26001,7 @@ if test "$ext_shared" = "yes"; then LDFLAGS="-L$ai_p $LDFLAGS" + test "x$PHP_RPATH" != "xno" && \ test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS" else @@ -26127,6 +26013,7 @@ if test -n "$unique" && test "`eval $cmd`" = "" ; then eval "LIBPATH$unique=set" + test "x$PHP_RPATH" != "xno" && test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" LDFLAGS="$LDFLAGS -L$ai_p" PHP_RPATHS="$PHP_RPATHS $ai_p" @@ -26144,7 +26031,7 @@ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gzgets in -lz" >&5 $as_echo_n "checking for gzgets in -lz... " >&6; } -if test "${ac_cv_lib_z_gzgets+set}" = set; then : +if ${ac_cv_lib_z_gzgets+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS @@ -26178,7 +26065,7 @@ fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzgets" >&5 $as_echo "$ac_cv_lib_z_gzgets" >&6; } -if test "x$ac_cv_lib_z_gzgets" = x""yes; then : +if test "x$ac_cv_lib_z_gzgets" = xyes; then : LDFLAGS=$save_old_LDFLAGS ext_shared=$save_ext_shared @@ -26194,7 +26081,7 @@ ext_shared=$save_ext_shared unset ac_cv_lib_z_gzgets - as_fn_error "ZLIB extension requires gzgets in zlib" "$LINENO" 5 + as_fn_error $? "ZLIB extension requires gzgets in zlib" "$LINENO" 5 fi @@ -26216,6 +26103,7 @@ if test "$ext_shared" = "yes"; then ZLIB_SHARED_LIBADD="-L$ai_p $ZLIB_SHARED_LIBADD" + test "x$PHP_RPATH" != "xno" && \ test -n "$ld_runpath_switch" && ZLIB_SHARED_LIBADD="$ld_runpath_switch$ai_p $ZLIB_SHARED_LIBADD" else @@ -26227,6 +26115,7 @@ if test -n "$unique" && test "`eval $cmd`" = "" ; then eval "LIBPATH$unique=set" + test "x$PHP_RPATH" != "xno" && test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" LDFLAGS="$LDFLAGS -L$ai_p" PHP_RPATHS="$PHP_RPATHS $ai_p" @@ -26727,7 +26616,7 @@ if test -z "$BZIP_DIR"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 $as_echo "not found" >&6; } - as_fn_error "Please reinstall the BZip2 distribution" "$LINENO" 5 + as_fn_error $? "Please reinstall the BZip2 distribution" "$LINENO" 5 fi @@ -26801,6 +26690,7 @@ if test "$ext_shared" = "yes"; then LDFLAGS="-L$ai_p $LDFLAGS" + test "x$PHP_RPATH" != "xno" && \ test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS" else @@ -26812,6 +26702,7 @@ if test -n "$unique" && test "`eval $cmd`" = "" ; then eval "LIBPATH$unique=set" + test "x$PHP_RPATH" != "xno" && test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" LDFLAGS="$LDFLAGS -L$ai_p" PHP_RPATHS="$PHP_RPATHS $ai_p" @@ -26829,7 +26720,7 @@ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZ2_bzerror in -lbz2" >&5 $as_echo_n "checking for BZ2_bzerror in -lbz2... " >&6; } -if test "${ac_cv_lib_bz2_BZ2_bzerror+set}" = set; then : +if ${ac_cv_lib_bz2_BZ2_bzerror+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS @@ -26863,7 +26754,7 @@ fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2_BZ2_bzerror" >&5 $as_echo "$ac_cv_lib_bz2_BZ2_bzerror" >&6; } -if test "x$ac_cv_lib_bz2_BZ2_bzerror" = x""yes; then : +if test "x$ac_cv_lib_bz2_BZ2_bzerror" = xyes; then : LDFLAGS=$save_old_LDFLAGS ext_shared=$save_ext_shared @@ -26920,6 +26811,7 @@ if test "$ext_shared" = "yes"; then BZ2_SHARED_LIBADD="-L$ai_p $BZ2_SHARED_LIBADD" + test "x$PHP_RPATH" != "xno" && \ test -n "$ld_runpath_switch" && BZ2_SHARED_LIBADD="$ld_runpath_switch$ai_p $BZ2_SHARED_LIBADD" else @@ -26931,6 +26823,7 @@ if test -n "$unique" && test "`eval $cmd`" = "" ; then eval "LIBPATH$unique=set" + test "x$PHP_RPATH" != "xno" && test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" LDFLAGS="$LDFLAGS -L$ai_p" PHP_RPATHS="$PHP_RPATHS $ai_p" @@ -26970,6 +26863,7 @@ if test -n "$unique" && test "`eval $cmd`" = "" ; then eval "LIBPATH$unique=set" + test "x$PHP_RPATH" != "xno" && test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" LDFLAGS="$LDFLAGS -L$ai_p" PHP_RPATHS="$PHP_RPATHS $ai_p" @@ -27007,7 +26901,7 @@ ext_shared=$save_ext_shared unset ac_cv_lib_bz2_BZ2_bzerror - as_fn_error "bz2 module requires libbz2 >= 1.0.0" "$LINENO" 5 + as_fn_error $? "bz2 module requires libbz2 >= 1.0.0" "$LINENO" 5 fi @@ -28088,7 +27982,7 @@ if test -z "$CURL_DIR"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 $as_echo "not found" >&6; } - as_fn_error "Please reinstall the libcurl distribution - + as_fn_error $? "Please reinstall the libcurl distribution - easy.h should be in /include/curl/" "$LINENO" 5 fi @@ -28111,7 +28005,7 @@ $as_echo "$curl_version_full" >&6; } CURL_LIBS=`$CURL_CONFIG --libs` else - as_fn_error "cURL version 7.10.5 or later is required to compile php with cURL support" "$LINENO" 5 + as_fn_error $? "cURL version 7.10.5 or later is required to compile php with cURL support" "$LINENO" 5 fi @@ -28208,6 +28102,7 @@ if test "$ext_shared" = "yes"; then CURL_SHARED_LIBADD="-L$ai_p $CURL_SHARED_LIBADD" + test "x$PHP_RPATH" != "xno" && \ test -n "$ld_runpath_switch" && CURL_SHARED_LIBADD="$ld_runpath_switch$ai_p $CURL_SHARED_LIBADD" else @@ -28219,6 +28114,7 @@ if test -n "$unique" && test "`eval $cmd`" = "" ; then eval "LIBPATH$unique=set" + test "x$PHP_RPATH" != "xno" && test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" LDFLAGS="$LDFLAGS -L$ai_p" PHP_RPATHS="$PHP_RPATHS $ai_p" @@ -28255,6 +28151,7 @@ if test "$ext_shared" = "yes"; then CURL_SHARED_LIBADD="-L$ai_p $CURL_SHARED_LIBADD" + test "x$PHP_RPATH" != "xno" && \ test -n "$ld_runpath_switch" && CURL_SHARED_LIBADD="$ld_runpath_switch$ai_p $CURL_SHARED_LIBADD" else @@ -28266,6 +28163,7 @@ if test -n "$unique" && test "`eval $cmd`" = "" ; then eval "LIBPATH$unique=set" + test "x$PHP_RPATH" != "xno" && test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" LDFLAGS="$LDFLAGS -L$ai_p" PHP_RPATHS="$PHP_RPATHS $ai_p" @@ -28305,6 +28203,7 @@ if test -n "$unique" && test "`eval $cmd`" = "" ; then eval "LIBPATH$unique=set" + test "x$PHP_RPATH" != "xno" && test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" LDFLAGS="$LDFLAGS -L$ai_p" PHP_RPATHS="$PHP_RPATHS $ai_p" @@ -28357,7 +28256,7 @@ CPP= fi if test -z "$CPP"; then - if test "${ac_cv_prog_CPP+set}" = set; then : + if ${ac_cv_prog_CPP+:} false; then : $as_echo_n "(cached) " >&6 else # Double quotes because CPP needs to be expanded @@ -28387,7 +28286,7 @@ # Broken: fails on valid input. continue fi -rm -f conftest.err conftest.$ac_ext +rm -f conftest.err conftest.i conftest.$ac_ext # OK, works on sane cases. Now check whether nonexistent headers # can be detected and how. @@ -28403,11 +28302,11 @@ ac_preproc_ok=: break fi -rm -f conftest.err conftest.$ac_ext +rm -f conftest.err conftest.i conftest.$ac_ext done # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. -rm -f conftest.err conftest.$ac_ext +rm -f conftest.i conftest.err conftest.$ac_ext if $ac_preproc_ok; then : break fi @@ -28446,7 +28345,7 @@ # Broken: fails on valid input. continue fi -rm -f conftest.err conftest.$ac_ext +rm -f conftest.err conftest.i conftest.$ac_ext # OK, works on sane cases. Now check whether nonexistent headers # can be detected and how. @@ -28462,18 +28361,18 @@ ac_preproc_ok=: break fi -rm -f conftest.err conftest.$ac_ext +rm -f conftest.err conftest.i conftest.$ac_ext done # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. -rm -f conftest.err conftest.$ac_ext +rm -f conftest.i conftest.err conftest.$ac_ext if $ac_preproc_ok; then : else { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} -as_fn_error "C preprocessor \"$CPP\" fails sanity check -See \`config.log' for more details." "$LINENO" 5; } +as_fn_error $? "C preprocessor \"$CPP\" fails sanity check +See \`config.log' for more details" "$LINENO" 5; } fi ac_ext=c @@ -28516,7 +28415,7 @@ for ac_header in openssl/crypto.h do : ac_fn_c_check_header_mongrel "$LINENO" "openssl/crypto.h" "ac_cv_header_openssl_crypto_h" "$ac_includes_default" -if test "x$ac_cv_header_openssl_crypto_h" = x""yes; then : +if test "x$ac_cv_header_openssl_crypto_h" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_OPENSSL_CRYPTO_H 1 _ACEOF @@ -28573,7 +28472,7 @@ { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } ac_fn_c_check_header_mongrel "$LINENO" "gcrypt.h" "ac_cv_header_gcrypt_h" "$ac_includes_default" -if test "x$ac_cv_header_gcrypt_h" = x""yes; then : +if test "x$ac_cv_header_gcrypt_h" = xyes; then : $as_echo "#define HAVE_CURL_GNUTLS 1" >>confdefs.h @@ -28671,6 +28570,7 @@ if test "$ext_shared" = "yes"; then LDFLAGS="-L$ai_p $LDFLAGS" + test "x$PHP_RPATH" != "xno" && \ test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS" else @@ -28682,6 +28582,7 @@ if test -n "$unique" && test "`eval $cmd`" = "" ; then eval "LIBPATH$unique=set" + test "x$PHP_RPATH" != "xno" && test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" LDFLAGS="$LDFLAGS -L$ai_p" PHP_RPATHS="$PHP_RPATHS $ai_p" @@ -28699,7 +28600,7 @@ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for curl_easy_perform in -lcurl" >&5 $as_echo_n "checking for curl_easy_perform in -lcurl... " >&6; } -if test "${ac_cv_lib_curl_curl_easy_perform+set}" = set; then : +if ${ac_cv_lib_curl_curl_easy_perform+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS @@ -28733,7 +28634,7 @@ fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_curl_curl_easy_perform" >&5 $as_echo "$ac_cv_lib_curl_curl_easy_perform" >&6; } -if test "x$ac_cv_lib_curl_curl_easy_perform" = x""yes; then : +if test "x$ac_cv_lib_curl_curl_easy_perform" = xyes; then : LDFLAGS=$save_old_LDFLAGS ext_shared=$save_ext_shared @@ -28749,7 +28650,7 @@ ext_shared=$save_ext_shared unset ac_cv_lib_curl_curl_easy_perform - as_fn_error "There is something wrong. Please check config.log for more information." "$LINENO" 5 + as_fn_error $? "There is something wrong. Please check config.log for more information." "$LINENO" 5 fi @@ -28826,6 +28727,7 @@ if test "$ext_shared" = "yes"; then LDFLAGS="-L$ai_p $LDFLAGS" + test "x$PHP_RPATH" != "xno" && \ test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS" else @@ -28837,6 +28739,7 @@ if test -n "$unique" && test "`eval $cmd`" = "" ; then eval "LIBPATH$unique=set" + test "x$PHP_RPATH" != "xno" && test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" LDFLAGS="$LDFLAGS -L$ai_p" PHP_RPATHS="$PHP_RPATHS $ai_p" @@ -28854,7 +28757,7 @@ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for curl_version_info in -lcurl" >&5 $as_echo_n "checking for curl_version_info in -lcurl... " >&6; } -if test "${ac_cv_lib_curl_curl_version_info+set}" = set; then : +if ${ac_cv_lib_curl_curl_version_info+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS @@ -28888,7 +28791,7 @@ fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_curl_curl_version_info" >&5 $as_echo "$ac_cv_lib_curl_curl_version_info" >&6; } -if test "x$ac_cv_lib_curl_curl_version_info" = x""yes; then : +if test "x$ac_cv_lib_curl_curl_version_info" = xyes; then : LDFLAGS=$save_old_LDFLAGS ext_shared=$save_ext_shared @@ -28979,6 +28882,7 @@ if test "$ext_shared" = "yes"; then LDFLAGS="-L$ai_p $LDFLAGS" + test "x$PHP_RPATH" != "xno" && \ test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS" else @@ -28990,6 +28894,7 @@ if test -n "$unique" && test "`eval $cmd`" = "" ; then eval "LIBPATH$unique=set" + test "x$PHP_RPATH" != "xno" && test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" LDFLAGS="$LDFLAGS -L$ai_p" PHP_RPATHS="$PHP_RPATHS $ai_p" @@ -29007,7 +28912,7 @@ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for curl_easy_strerror in -lcurl" >&5 $as_echo_n "checking for curl_easy_strerror in -lcurl... " >&6; } -if test "${ac_cv_lib_curl_curl_easy_strerror+set}" = set; then : +if ${ac_cv_lib_curl_curl_easy_strerror+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS @@ -29041,7 +28946,7 @@ fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_curl_curl_easy_strerror" >&5 $as_echo "$ac_cv_lib_curl_curl_easy_strerror" >&6; } -if test "x$ac_cv_lib_curl_curl_easy_strerror" = x""yes; then : +if test "x$ac_cv_lib_curl_curl_easy_strerror" = xyes; then : LDFLAGS=$save_old_LDFLAGS ext_shared=$save_ext_shared @@ -29132,6 +29037,7 @@ if test "$ext_shared" = "yes"; then LDFLAGS="-L$ai_p $LDFLAGS" + test "x$PHP_RPATH" != "xno" && \ test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS" else @@ -29143,6 +29049,7 @@ if test -n "$unique" && test "`eval $cmd`" = "" ; then eval "LIBPATH$unique=set" + test "x$PHP_RPATH" != "xno" && test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" LDFLAGS="$LDFLAGS -L$ai_p" PHP_RPATHS="$PHP_RPATHS $ai_p" @@ -29160,7 +29067,7 @@ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for curl_multi_strerror in -lcurl" >&5 $as_echo_n "checking for curl_multi_strerror in -lcurl... " >&6; } -if test "${ac_cv_lib_curl_curl_multi_strerror+set}" = set; then : +if ${ac_cv_lib_curl_curl_multi_strerror+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS @@ -29194,7 +29101,7 @@ fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_curl_curl_multi_strerror" >&5 $as_echo "$ac_cv_lib_curl_curl_multi_strerror" >&6; } -if test "x$ac_cv_lib_curl_curl_multi_strerror" = x""yes; then : +if test "x$ac_cv_lib_curl_curl_multi_strerror" = xyes; then : LDFLAGS=$save_old_LDFLAGS ext_shared=$save_ext_shared @@ -29785,6 +29692,10 @@ THIS_PREFIX=$i THIS_INCLUDE=$i/include/depot.h break + elif test -f "$i/include/qdbm/depot.h"; then + THIS_PREFIX=$i + THIS_INCLUDE=$i/include/qdbm/depot.h + break fi done @@ -29859,6 +29770,7 @@ if test "$ext_shared" = "yes"; then LDFLAGS="-L$ai_p $LDFLAGS" + test "x$PHP_RPATH" != "xno" && \ test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS" else @@ -29870,6 +29782,7 @@ if test -n "$unique" && test "`eval $cmd`" = "" ; then eval "LIBPATH$unique=set" + test "x$PHP_RPATH" != "xno" && test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" LDFLAGS="$LDFLAGS -L$ai_p" PHP_RPATHS="$PHP_RPATHS $ai_p" @@ -29888,7 +29801,7 @@ as_ac_Lib=`$as_echo "ac_cv_lib_$LIB''_dpopen" | $as_tr_sh` { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dpopen in -l$LIB" >&5 $as_echo_n "checking for dpopen in -l$LIB... " >&6; } -if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then : +if eval \${$as_ac_Lib+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS @@ -29923,8 +29836,7 @@ eval ac_res=\$$as_ac_Lib { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 $as_echo "$ac_res" >&6; } -eval as_val=\$$as_ac_Lib - if test "x$as_val" = x""yes; then : +if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : LDFLAGS=$save_old_LDFLAGS ext_shared=$save_ext_shared @@ -29963,10 +29875,10 @@ THIS_RESULT=yes if test -z "$THIS_INCLUDE"; then - as_fn_error "DBA: Could not find necessary header file(s)." "$LINENO" 5 + as_fn_error $? "DBA: Could not find necessary header file(s)." "$LINENO" 5 fi if test -z "$THIS_LIBS"; then - as_fn_error "DBA: Could not find necessary library." "$LINENO" 5 + as_fn_error $? "DBA: Could not find necessary library." "$LINENO" 5 fi @@ -29991,6 +29903,7 @@ if test "$ext_shared" = "yes"; then DBA_SHARED_LIBADD="-L$ai_p $DBA_SHARED_LIBADD" + test "x$PHP_RPATH" != "xno" && \ test -n "$ld_runpath_switch" && DBA_SHARED_LIBADD="$ld_runpath_switch$ai_p $DBA_SHARED_LIBADD" else @@ -30002,6 +29915,7 @@ if test -n "$unique" && test "`eval $cmd`" = "" ; then eval "LIBPATH$unique=set" + test "x$PHP_RPATH" != "xno" && test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" LDFLAGS="$LDFLAGS -L$ai_p" PHP_RPATHS="$PHP_RPATHS $ai_p" @@ -30041,6 +29955,7 @@ if test -n "$unique" && test "`eval $cmd`" = "" ; then eval "LIBPATH$unique=set" + test "x$PHP_RPATH" != "xno" && test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" LDFLAGS="$LDFLAGS -L$ai_p" PHP_RPATHS="$PHP_RPATHS $ai_p" @@ -30080,7 +29995,7 @@ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $THIS_FULL_NAME support" >&5 $as_echo_n "checking for $THIS_FULL_NAME support... " >&6; } if test -n ""; then - as_fn_error "" "$LINENO" 5 + as_fn_error $? "" "$LINENO" 5 fi if test "$THIS_RESULT" = "yes" || test "$THIS_RESULT" = "builtin"; then HAVE_DBA=1 @@ -30110,7 +30025,7 @@ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $THIS_FULL_NAME support" >&5 $as_echo_n "checking for $THIS_FULL_NAME support... " >&6; } if test -n "You cannot combine --with-gdbm with --with-qdbm"; then - as_fn_error "You cannot combine --with-gdbm with --with-qdbm" "$LINENO" 5 + as_fn_error $? "You cannot combine --with-gdbm with --with-qdbm" "$LINENO" 5 fi if test "$THIS_RESULT" = "yes" || test "$THIS_RESULT" = "builtin"; then HAVE_DBA=1 @@ -30202,6 +30117,7 @@ if test "$ext_shared" = "yes"; then LDFLAGS="-L$ai_p $LDFLAGS" + test "x$PHP_RPATH" != "xno" && \ test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS" else @@ -30213,6 +30129,7 @@ if test -n "$unique" && test "`eval $cmd`" = "" ; then eval "LIBPATH$unique=set" + test "x$PHP_RPATH" != "xno" && test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" LDFLAGS="$LDFLAGS -L$ai_p" PHP_RPATHS="$PHP_RPATHS $ai_p" @@ -30230,7 +30147,7 @@ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdbm_open in -lgdbm" >&5 $as_echo_n "checking for gdbm_open in -lgdbm... " >&6; } -if test "${ac_cv_lib_gdbm_gdbm_open+set}" = set; then : +if ${ac_cv_lib_gdbm_gdbm_open+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS @@ -30264,7 +30181,7 @@ fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gdbm_gdbm_open" >&5 $as_echo "$ac_cv_lib_gdbm_gdbm_open" >&6; } -if test "x$ac_cv_lib_gdbm_gdbm_open" = x""yes; then : +if test "x$ac_cv_lib_gdbm_gdbm_open" = xyes; then : LDFLAGS=$save_old_LDFLAGS ext_shared=$save_ext_shared @@ -30299,10 +30216,10 @@ THIS_RESULT=yes if test -z "$THIS_INCLUDE"; then - as_fn_error "DBA: Could not find necessary header file(s)." "$LINENO" 5 + as_fn_error $? "DBA: Could not find necessary header file(s)." "$LINENO" 5 fi if test -z "$THIS_LIBS"; then - as_fn_error "DBA: Could not find necessary library." "$LINENO" 5 + as_fn_error $? "DBA: Could not find necessary library." "$LINENO" 5 fi @@ -30327,6 +30244,7 @@ if test "$ext_shared" = "yes"; then DBA_SHARED_LIBADD="-L$ai_p $DBA_SHARED_LIBADD" + test "x$PHP_RPATH" != "xno" && \ test -n "$ld_runpath_switch" && DBA_SHARED_LIBADD="$ld_runpath_switch$ai_p $DBA_SHARED_LIBADD" else @@ -30338,6 +30256,7 @@ if test -n "$unique" && test "`eval $cmd`" = "" ; then eval "LIBPATH$unique=set" + test "x$PHP_RPATH" != "xno" && test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" LDFLAGS="$LDFLAGS -L$ai_p" PHP_RPATHS="$PHP_RPATHS $ai_p" @@ -30377,6 +30296,7 @@ if test -n "$unique" && test "`eval $cmd`" = "" ; then eval "LIBPATH$unique=set" + test "x$PHP_RPATH" != "xno" && test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" LDFLAGS="$LDFLAGS -L$ai_p" PHP_RPATHS="$PHP_RPATHS $ai_p" @@ -30416,7 +30336,7 @@ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $THIS_FULL_NAME support" >&5 $as_echo_n "checking for $THIS_FULL_NAME support... " >&6; } if test -n ""; then - as_fn_error "" "$LINENO" 5 + as_fn_error $? "" "$LINENO" 5 fi if test "$THIS_RESULT" = "yes" || test "$THIS_RESULT" = "builtin"; then HAVE_DBA=1 @@ -30518,6 +30438,7 @@ if test "$ext_shared" = "yes"; then LDFLAGS="-L$ai_p $LDFLAGS" + test "x$PHP_RPATH" != "xno" && \ test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS" else @@ -30529,6 +30450,7 @@ if test -n "$unique" && test "`eval $cmd`" = "" ; then eval "LIBPATH$unique=set" + test "x$PHP_RPATH" != "xno" && test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" LDFLAGS="$LDFLAGS -L$ai_p" PHP_RPATHS="$PHP_RPATHS $ai_p" @@ -30547,7 +30469,7 @@ as_ac_Lib=`$as_echo "ac_cv_lib_$LIB''_dbm_open" | $as_tr_sh` { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbm_open in -l$LIB" >&5 $as_echo_n "checking for dbm_open in -l$LIB... " >&6; } -if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then : +if eval \${$as_ac_Lib+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS @@ -30582,8 +30504,7 @@ eval ac_res=\$$as_ac_Lib { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 $as_echo "$ac_res" >&6; } -eval as_val=\$$as_ac_Lib - if test "x$as_val" = x""yes; then : +if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : LDFLAGS=$save_old_LDFLAGS ext_shared=$save_ext_shared @@ -30622,10 +30543,10 @@ THIS_RESULT=yes if test -z "$THIS_INCLUDE"; then - as_fn_error "DBA: Could not find necessary header file(s)." "$LINENO" 5 + as_fn_error $? "DBA: Could not find necessary header file(s)." "$LINENO" 5 fi if test -z "$THIS_LIBS"; then - as_fn_error "DBA: Could not find necessary library." "$LINENO" 5 + as_fn_error $? "DBA: Could not find necessary library." "$LINENO" 5 fi @@ -30650,6 +30571,7 @@ if test "$ext_shared" = "yes"; then DBA_SHARED_LIBADD="-L$ai_p $DBA_SHARED_LIBADD" + test "x$PHP_RPATH" != "xno" && \ test -n "$ld_runpath_switch" && DBA_SHARED_LIBADD="$ld_runpath_switch$ai_p $DBA_SHARED_LIBADD" else @@ -30661,6 +30583,7 @@ if test -n "$unique" && test "`eval $cmd`" = "" ; then eval "LIBPATH$unique=set" + test "x$PHP_RPATH" != "xno" && test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" LDFLAGS="$LDFLAGS -L$ai_p" PHP_RPATHS="$PHP_RPATHS $ai_p" @@ -30700,6 +30623,7 @@ if test -n "$unique" && test "`eval $cmd`" = "" ; then eval "LIBPATH$unique=set" + test "x$PHP_RPATH" != "xno" && test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" LDFLAGS="$LDFLAGS -L$ai_p" PHP_RPATHS="$PHP_RPATHS $ai_p" @@ -30739,7 +30663,7 @@ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $THIS_FULL_NAME support" >&5 $as_echo_n "checking for $THIS_FULL_NAME support... " >&6; } if test -n ""; then - as_fn_error "" "$LINENO" 5 + as_fn_error $? "" "$LINENO" 5 fi if test "$THIS_RESULT" = "yes" || test "$THIS_RESULT" = "builtin"; then HAVE_DBA=1 @@ -30867,6 +30791,7 @@ if test "$ext_shared" = "yes"; then LDFLAGS="-L$ai_p $LDFLAGS" + test "x$PHP_RPATH" != "xno" && \ test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS" else @@ -30878,6 +30803,7 @@ if test -n "$unique" && test "`eval $cmd`" = "" ; then eval "LIBPATH$unique=set" + test "x$PHP_RPATH" != "xno" && test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" LDFLAGS="$LDFLAGS -L$ai_p" PHP_RPATHS="$PHP_RPATHS $ai_p" @@ -30896,7 +30822,7 @@ as_ac_Lib=`$as_echo "ac_cv_lib_$LIB''_tcadbopen" | $as_tr_sh` { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tcadbopen in -l$LIB" >&5 $as_echo_n "checking for tcadbopen in -l$LIB... " >&6; } -if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then : +if eval \${$as_ac_Lib+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS @@ -30931,8 +30857,7 @@ eval ac_res=\$$as_ac_Lib { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 $as_echo "$ac_res" >&6; } -eval as_val=\$$as_ac_Lib - if test "x$as_val" = x""yes; then : +if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : LDFLAGS=$save_old_LDFLAGS ext_shared=$save_ext_shared @@ -30971,10 +30896,10 @@ THIS_RESULT=yes if test -z "$THIS_INCLUDE"; then - as_fn_error "DBA: Could not find necessary header file(s)." "$LINENO" 5 + as_fn_error $? "DBA: Could not find necessary header file(s)." "$LINENO" 5 fi if test -z "$THIS_LIBS"; then - as_fn_error "DBA: Could not find necessary library." "$LINENO" 5 + as_fn_error $? "DBA: Could not find necessary library." "$LINENO" 5 fi @@ -30999,6 +30924,7 @@ if test "$ext_shared" = "yes"; then DBA_SHARED_LIBADD="-L$ai_p $DBA_SHARED_LIBADD" + test "x$PHP_RPATH" != "xno" && \ test -n "$ld_runpath_switch" && DBA_SHARED_LIBADD="$ld_runpath_switch$ai_p $DBA_SHARED_LIBADD" else @@ -31010,6 +30936,7 @@ if test -n "$unique" && test "`eval $cmd`" = "" ; then eval "LIBPATH$unique=set" + test "x$PHP_RPATH" != "xno" && test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" LDFLAGS="$LDFLAGS -L$ai_p" PHP_RPATHS="$PHP_RPATHS $ai_p" @@ -31049,6 +30976,7 @@ if test -n "$unique" && test "`eval $cmd`" = "" ; then eval "LIBPATH$unique=set" + test "x$PHP_RPATH" != "xno" && test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" LDFLAGS="$LDFLAGS -L$ai_p" PHP_RPATHS="$PHP_RPATHS $ai_p" @@ -31088,7 +31016,7 @@ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $THIS_FULL_NAME support" >&5 $as_echo_n "checking for $THIS_FULL_NAME support... " >&6; } if test -n ""; then - as_fn_error "" "$LINENO" 5 + as_fn_error $? "" "$LINENO" 5 fi if test "$THIS_RESULT" = "yes" || test "$THIS_RESULT" = "builtin"; then HAVE_DBA=1 @@ -31164,10 +31092,10 @@ done if test -z "$THIS_INCLUDE"; then - as_fn_error "DBA: Could not find necessary header file(s)." "$LINENO" 5 + as_fn_error $? "DBA: Could not find necessary header file(s)." "$LINENO" 5 fi - for LIB in db-5.1 db-5.0 db-4.8 db-4.7 db-4.6 db-4.5 db-4.4 db-4.3 db-4.2 db-4.1 db-4.0 db-4 db4 db; do - if test -f $THIS_PREFIX/$PHP_LIBDIR/lib$LIB.a || test -f $THIS_PREFIX/$PHP_LIBDIR/lib$LIB.$SHLIB_SUFFIX_NAME; then + for LIB in db; do + if test -f $THIS_PREFIX/$PHP_LIBDIR/lib$LIB.a || test -f $THIS_PREFIX/$PHP_LIBDIR/$DEB_HOST_MULTIARCH/lib$LIB.$SHLIB_SUFFIX_NAME || test -f $THIS_PREFIX/$PHP_LIBDIR/lib$LIB.$SHLIB_SUFFIX_NAME; then lib_found=""; old_LDFLAGS=$LDFLAGS @@ -31227,7 +31155,7 @@ if test -z "$THIS_LIBS"; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DB4 major version" >&5 $as_echo_n "checking for DB4 major version... " >&6; } - as_fn_error "Header contains different version" "$LINENO" 5 + as_fn_error $? "Header contains different version" "$LINENO" 5 fi if test "4" = "4"; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DB4 minor version and patch level" >&5 @@ -31249,7 +31177,7 @@ else - as_fn_error "Version 4.1 requires patch level 25" "$LINENO" 5 + as_fn_error $? "Version 4.1 requires patch level 25" "$LINENO" 5 fi rm -f conftest* @@ -31275,7 +31203,7 @@ else - as_fn_error "At least version 3.3 is required" "$LINENO" 5 + as_fn_error $? "At least version 3.3 is required" "$LINENO" 5 fi rm -f conftest* @@ -31293,7 +31221,7 @@ fi else - as_fn_error "DBA: Could not find necessary library." "$LINENO" 5 + as_fn_error $? "DBA: Could not find necessary library." "$LINENO" 5 fi THIS_RESULT=yes DB4_LIBS=$THIS_LIBS @@ -31326,6 +31254,7 @@ if test "$ext_shared" = "yes"; then DBA_SHARED_LIBADD="-L$ai_p $DBA_SHARED_LIBADD" + test "x$PHP_RPATH" != "xno" && \ test -n "$ld_runpath_switch" && DBA_SHARED_LIBADD="$ld_runpath_switch$ai_p $DBA_SHARED_LIBADD" else @@ -31337,6 +31266,7 @@ if test -n "$unique" && test "`eval $cmd`" = "" ; then eval "LIBPATH$unique=set" + test "x$PHP_RPATH" != "xno" && test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" LDFLAGS="$LDFLAGS -L$ai_p" PHP_RPATHS="$PHP_RPATHS $ai_p" @@ -31376,6 +31306,7 @@ if test -n "$unique" && test "`eval $cmd`" = "" ; then eval "LIBPATH$unique=set" + test "x$PHP_RPATH" != "xno" && test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" LDFLAGS="$LDFLAGS -L$ai_p" PHP_RPATHS="$PHP_RPATHS $ai_p" @@ -31416,7 +31347,7 @@ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $THIS_FULL_NAME support" >&5 $as_echo_n "checking for $THIS_FULL_NAME support... " >&6; } if test -n ""; then - as_fn_error "" "$LINENO" 5 + as_fn_error $? "" "$LINENO" 5 fi if test "$THIS_RESULT" = "yes" || test "$THIS_RESULT" = "builtin"; then HAVE_DBA=1 @@ -31446,7 +31377,7 @@ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $THIS_FULL_NAME support" >&5 $as_echo_n "checking for $THIS_FULL_NAME support... " >&6; } if test -n "You cannot combine --with-db3 with --with-db4"; then - as_fn_error "You cannot combine --with-db3 with --with-db4" "$LINENO" 5 + as_fn_error $? "You cannot combine --with-db3 with --with-db4" "$LINENO" 5 fi if test "$THIS_RESULT" = "yes" || test "$THIS_RESULT" = "builtin"; then HAVE_DBA=1 @@ -31485,10 +31416,10 @@ done if test -z "$THIS_INCLUDE"; then - as_fn_error "DBA: Could not find necessary header file(s)." "$LINENO" 5 + as_fn_error $? "DBA: Could not find necessary header file(s)." "$LINENO" 5 fi for LIB in db-3.3 db-3.2 db-3.1 db-3.0 db-3 db3 db; do - if test -f $THIS_PREFIX/$PHP_LIBDIR/lib$LIB.a || test -f $THIS_PREFIX/$PHP_LIBDIR/lib$LIB.$SHLIB_SUFFIX_NAME; then + if test -f $THIS_PREFIX/$PHP_LIBDIR/lib$LIB.a || test -f $THIS_PREFIX/$PHP_LIBDIR/$DEB_HOST_MULTIARCH/lib$LIB.$SHLIB_SUFFIX_NAME || test -f $THIS_PREFIX/$PHP_LIBDIR/lib$LIB.$SHLIB_SUFFIX_NAME; then lib_found=""; old_LDFLAGS=$LDFLAGS @@ -31548,7 +31479,7 @@ if test -z "$THIS_LIBS"; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DB3 major version" >&5 $as_echo_n "checking for DB3 major version... " >&6; } - as_fn_error "Header contains different version" "$LINENO" 5 + as_fn_error $? "Header contains different version" "$LINENO" 5 fi if test "3" = "4"; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DB4 minor version and patch level" >&5 @@ -31570,7 +31501,7 @@ else - as_fn_error "Version 4.1 requires patch level 25" "$LINENO" 5 + as_fn_error $? "Version 4.1 requires patch level 25" "$LINENO" 5 fi rm -f conftest* @@ -31596,7 +31527,7 @@ else - as_fn_error "At least version 3.3 is required" "$LINENO" 5 + as_fn_error $? "At least version 3.3 is required" "$LINENO" 5 fi rm -f conftest* @@ -31614,7 +31545,7 @@ fi else - as_fn_error "DBA: Could not find necessary library." "$LINENO" 5 + as_fn_error $? "DBA: Could not find necessary library." "$LINENO" 5 fi THIS_RESULT=yes DB3_LIBS=$THIS_LIBS @@ -31647,6 +31578,7 @@ if test "$ext_shared" = "yes"; then DBA_SHARED_LIBADD="-L$ai_p $DBA_SHARED_LIBADD" + test "x$PHP_RPATH" != "xno" && \ test -n "$ld_runpath_switch" && DBA_SHARED_LIBADD="$ld_runpath_switch$ai_p $DBA_SHARED_LIBADD" else @@ -31658,6 +31590,7 @@ if test -n "$unique" && test "`eval $cmd`" = "" ; then eval "LIBPATH$unique=set" + test "x$PHP_RPATH" != "xno" && test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" LDFLAGS="$LDFLAGS -L$ai_p" PHP_RPATHS="$PHP_RPATHS $ai_p" @@ -31697,6 +31630,7 @@ if test -n "$unique" && test "`eval $cmd`" = "" ; then eval "LIBPATH$unique=set" + test "x$PHP_RPATH" != "xno" && test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" LDFLAGS="$LDFLAGS -L$ai_p" PHP_RPATHS="$PHP_RPATHS $ai_p" @@ -31737,7 +31671,7 @@ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $THIS_FULL_NAME support" >&5 $as_echo_n "checking for $THIS_FULL_NAME support... " >&6; } if test -n ""; then - as_fn_error "" "$LINENO" 5 + as_fn_error $? "" "$LINENO" 5 fi if test "$THIS_RESULT" = "yes" || test "$THIS_RESULT" = "builtin"; then HAVE_DBA=1 @@ -31767,7 +31701,7 @@ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $THIS_FULL_NAME support" >&5 $as_echo_n "checking for $THIS_FULL_NAME support... " >&6; } if test -n "You cannot combine --with-db2 with --with-db3 or --with-db4"; then - as_fn_error "You cannot combine --with-db2 with --with-db3 or --with-db4" "$LINENO" 5 + as_fn_error $? "You cannot combine --with-db2 with --with-db3 or --with-db4" "$LINENO" 5 fi if test "$THIS_RESULT" = "yes" || test "$THIS_RESULT" = "builtin"; then HAVE_DBA=1 @@ -31806,10 +31740,10 @@ done if test -z "$THIS_INCLUDE"; then - as_fn_error "DBA: Could not find necessary header file(s)." "$LINENO" 5 + as_fn_error $? "DBA: Could not find necessary header file(s)." "$LINENO" 5 fi for LIB in db-2 db2 db; do - if test -f $THIS_PREFIX/$PHP_LIBDIR/lib$LIB.a || test -f $THIS_PREFIX/$PHP_LIBDIR/lib$LIB.$SHLIB_SUFFIX_NAME; then + if test -f $THIS_PREFIX/$PHP_LIBDIR/lib$LIB.a || test -f $THIS_PREFIX/$PHP_LIBDIR/$DEB_HOST_MULTIARCH/lib$LIB.$SHLIB_SUFFIX_NAME || test -f $THIS_PREFIX/$PHP_LIBDIR/lib$LIB.$SHLIB_SUFFIX_NAME; then lib_found=""; old_LDFLAGS=$LDFLAGS @@ -31869,7 +31803,7 @@ if test -z "$THIS_LIBS"; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DB2 major version" >&5 $as_echo_n "checking for DB2 major version... " >&6; } - as_fn_error "Header contains different version" "$LINENO" 5 + as_fn_error $? "Header contains different version" "$LINENO" 5 fi if test "2" = "4"; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DB4 minor version and patch level" >&5 @@ -31891,7 +31825,7 @@ else - as_fn_error "Version 4.1 requires patch level 25" "$LINENO" 5 + as_fn_error $? "Version 4.1 requires patch level 25" "$LINENO" 5 fi rm -f conftest* @@ -31917,7 +31851,7 @@ else - as_fn_error "At least version 3.3 is required" "$LINENO" 5 + as_fn_error $? "At least version 3.3 is required" "$LINENO" 5 fi rm -f conftest* @@ -31935,7 +31869,7 @@ fi else - as_fn_error "DBA: Could not find necessary library." "$LINENO" 5 + as_fn_error $? "DBA: Could not find necessary library." "$LINENO" 5 fi THIS_RESULT=yes DB2_LIBS=$THIS_LIBS @@ -31968,6 +31902,7 @@ if test "$ext_shared" = "yes"; then DBA_SHARED_LIBADD="-L$ai_p $DBA_SHARED_LIBADD" + test "x$PHP_RPATH" != "xno" && \ test -n "$ld_runpath_switch" && DBA_SHARED_LIBADD="$ld_runpath_switch$ai_p $DBA_SHARED_LIBADD" else @@ -31979,6 +31914,7 @@ if test -n "$unique" && test "`eval $cmd`" = "" ; then eval "LIBPATH$unique=set" + test "x$PHP_RPATH" != "xno" && test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" LDFLAGS="$LDFLAGS -L$ai_p" PHP_RPATHS="$PHP_RPATHS $ai_p" @@ -32018,6 +31954,7 @@ if test -n "$unique" && test "`eval $cmd`" = "" ; then eval "LIBPATH$unique=set" + test "x$PHP_RPATH" != "xno" && test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" LDFLAGS="$LDFLAGS -L$ai_p" PHP_RPATHS="$PHP_RPATHS $ai_p" @@ -32058,7 +31995,7 @@ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $THIS_FULL_NAME support" >&5 $as_echo_n "checking for $THIS_FULL_NAME support... " >&6; } if test -n ""; then - as_fn_error "" "$LINENO" 5 + as_fn_error $? "" "$LINENO" 5 fi if test "$THIS_RESULT" = "yes" || test "$THIS_RESULT" = "builtin"; then HAVE_DBA=1 @@ -32186,10 +32123,10 @@ THIS_RESULT=yes if test -z "$THIS_INCLUDE"; then - as_fn_error "DBA: Could not find necessary header file(s)." "$LINENO" 5 + as_fn_error $? "DBA: Could not find necessary header file(s)." "$LINENO" 5 fi if test -z "$THIS_LIBS"; then - as_fn_error "DBA: Could not find necessary library." "$LINENO" 5 + as_fn_error $? "DBA: Could not find necessary library." "$LINENO" 5 fi @@ -32214,6 +32151,7 @@ if test "$ext_shared" = "yes"; then DBA_SHARED_LIBADD="-L$ai_p $DBA_SHARED_LIBADD" + test "x$PHP_RPATH" != "xno" && \ test -n "$ld_runpath_switch" && DBA_SHARED_LIBADD="$ld_runpath_switch$ai_p $DBA_SHARED_LIBADD" else @@ -32225,6 +32163,7 @@ if test -n "$unique" && test "`eval $cmd`" = "" ; then eval "LIBPATH$unique=set" + test "x$PHP_RPATH" != "xno" && test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" LDFLAGS="$LDFLAGS -L$ai_p" PHP_RPATHS="$PHP_RPATHS $ai_p" @@ -32264,6 +32203,7 @@ if test -n "$unique" && test "`eval $cmd`" = "" ; then eval "LIBPATH$unique=set" + test "x$PHP_RPATH" != "xno" && test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" LDFLAGS="$LDFLAGS -L$ai_p" PHP_RPATHS="$PHP_RPATHS $ai_p" @@ -32303,7 +32243,7 @@ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $THIS_FULL_NAME support" >&5 $as_echo_n "checking for $THIS_FULL_NAME support... " >&6; } if test -n ""; then - as_fn_error "" "$LINENO" 5 + as_fn_error $? "" "$LINENO" 5 fi if test "$THIS_RESULT" = "yes" || test "$THIS_RESULT" = "builtin"; then HAVE_DBA=1 @@ -32333,7 +32273,7 @@ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $THIS_FULL_NAME support" >&5 $as_echo_n "checking for $THIS_FULL_NAME support... " >&6; } if test -n "You cannot combine --with-dbm with --with-qdbm"; then - as_fn_error "You cannot combine --with-dbm with --with-qdbm" "$LINENO" 5 + as_fn_error $? "You cannot combine --with-dbm with --with-qdbm" "$LINENO" 5 fi if test "$THIS_RESULT" = "yes" || test "$THIS_RESULT" = "builtin"; then HAVE_DBA=1 @@ -32430,6 +32370,7 @@ if test "$ext_shared" = "yes"; then LDFLAGS="-L$ai_p $LDFLAGS" + test "x$PHP_RPATH" != "xno" && \ test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS" else @@ -32441,6 +32382,7 @@ if test -n "$unique" && test "`eval $cmd`" = "" ; then eval "LIBPATH$unique=set" + test "x$PHP_RPATH" != "xno" && test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" LDFLAGS="$LDFLAGS -L$ai_p" PHP_RPATHS="$PHP_RPATHS $ai_p" @@ -32459,7 +32401,7 @@ as_ac_Lib=`$as_echo "ac_cv_lib_$LIB''_dbminit" | $as_tr_sh` { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbminit in -l$LIB" >&5 $as_echo_n "checking for dbminit in -l$LIB... " >&6; } -if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then : +if eval \${$as_ac_Lib+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS @@ -32494,8 +32436,7 @@ eval ac_res=\$$as_ac_Lib { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 $as_echo "$ac_res" >&6; } -eval as_val=\$$as_ac_Lib - if test "x$as_val" = x""yes; then : +if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : LDFLAGS=$save_old_LDFLAGS ext_shared=$save_ext_shared @@ -32553,10 +32494,10 @@ THIS_RESULT=yes if test -z "$THIS_INCLUDE"; then - as_fn_error "DBA: Could not find necessary header file(s)." "$LINENO" 5 + as_fn_error $? "DBA: Could not find necessary header file(s)." "$LINENO" 5 fi if test -z "$THIS_LIBS"; then - as_fn_error "DBA: Could not find necessary library." "$LINENO" 5 + as_fn_error $? "DBA: Could not find necessary library." "$LINENO" 5 fi @@ -32581,6 +32522,7 @@ if test "$ext_shared" = "yes"; then DBA_SHARED_LIBADD="-L$ai_p $DBA_SHARED_LIBADD" + test "x$PHP_RPATH" != "xno" && \ test -n "$ld_runpath_switch" && DBA_SHARED_LIBADD="$ld_runpath_switch$ai_p $DBA_SHARED_LIBADD" else @@ -32592,6 +32534,7 @@ if test -n "$unique" && test "`eval $cmd`" = "" ; then eval "LIBPATH$unique=set" + test "x$PHP_RPATH" != "xno" && test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" LDFLAGS="$LDFLAGS -L$ai_p" PHP_RPATHS="$PHP_RPATHS $ai_p" @@ -32631,6 +32574,7 @@ if test -n "$unique" && test "`eval $cmd`" = "" ; then eval "LIBPATH$unique=set" + test "x$PHP_RPATH" != "xno" && test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" LDFLAGS="$LDFLAGS -L$ai_p" PHP_RPATHS="$PHP_RPATHS $ai_p" @@ -32670,7 +32614,7 @@ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $THIS_FULL_NAME support" >&5 $as_echo_n "checking for $THIS_FULL_NAME support... " >&6; } if test -n ""; then - as_fn_error "" "$LINENO" 5 + as_fn_error $? "" "$LINENO" 5 fi if test "$THIS_RESULT" = "yes" || test "$THIS_RESULT" = "builtin"; then HAVE_DBA=1 @@ -32850,6 +32794,7 @@ if test "$ext_shared" = "yes"; then LDFLAGS="-L$ai_p $LDFLAGS" + test "x$PHP_RPATH" != "xno" && \ test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS" else @@ -32861,6 +32806,7 @@ if test -n "$unique" && test "`eval $cmd`" = "" ; then eval "LIBPATH$unique=set" + test "x$PHP_RPATH" != "xno" && test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" LDFLAGS="$LDFLAGS -L$ai_p" PHP_RPATHS="$PHP_RPATHS $ai_p" @@ -32879,7 +32825,7 @@ as_ac_Lib=`$as_echo "ac_cv_lib_$LIB''_cdb_read" | $as_tr_sh` { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cdb_read in -l$LIB" >&5 $as_echo_n "checking for cdb_read in -l$LIB... " >&6; } -if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then : +if eval \${$as_ac_Lib+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS @@ -32914,8 +32860,7 @@ eval ac_res=\$$as_ac_Lib { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 $as_echo "$ac_res" >&6; } -eval as_val=\$$as_ac_Lib - if test "x$as_val" = x""yes; then : +if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : LDFLAGS=$save_old_LDFLAGS ext_shared=$save_ext_shared @@ -32954,10 +32899,10 @@ THIS_RESULT=yes if test -z "$THIS_INCLUDE"; then - as_fn_error "DBA: Could not find necessary header file(s)." "$LINENO" 5 + as_fn_error $? "DBA: Could not find necessary header file(s)." "$LINENO" 5 fi if test -z "$THIS_LIBS"; then - as_fn_error "DBA: Could not find necessary library." "$LINENO" 5 + as_fn_error $? "DBA: Could not find necessary library." "$LINENO" 5 fi @@ -32982,6 +32927,7 @@ if test "$ext_shared" = "yes"; then DBA_SHARED_LIBADD="-L$ai_p $DBA_SHARED_LIBADD" + test "x$PHP_RPATH" != "xno" && \ test -n "$ld_runpath_switch" && DBA_SHARED_LIBADD="$ld_runpath_switch$ai_p $DBA_SHARED_LIBADD" else @@ -32993,6 +32939,7 @@ if test -n "$unique" && test "`eval $cmd`" = "" ; then eval "LIBPATH$unique=set" + test "x$PHP_RPATH" != "xno" && test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" LDFLAGS="$LDFLAGS -L$ai_p" PHP_RPATHS="$PHP_RPATHS $ai_p" @@ -33032,6 +32979,7 @@ if test -n "$unique" && test "`eval $cmd`" = "" ; then eval "LIBPATH$unique=set" + test "x$PHP_RPATH" != "xno" && test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" LDFLAGS="$LDFLAGS -L$ai_p" PHP_RPATHS="$PHP_RPATHS $ai_p" @@ -33071,7 +33019,7 @@ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $THIS_FULL_NAME support" >&5 $as_echo_n "checking for $THIS_FULL_NAME support... " >&6; } if test -n ""; then - as_fn_error "" "$LINENO" 5 + as_fn_error $? "" "$LINENO" 5 fi if test "$THIS_RESULT" = "yes" || test "$THIS_RESULT" = "builtin"; then HAVE_DBA=1 @@ -33103,7 +33051,7 @@ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $THIS_FULL_NAME support" >&5 $as_echo_n "checking for $THIS_FULL_NAME support... " >&6; } if test -n ""; then - as_fn_error "" "$LINENO" 5 + as_fn_error $? "" "$LINENO" 5 fi if test "$THIS_RESULT" = "yes" || test "$THIS_RESULT" = "builtin"; then HAVE_DBA=1 @@ -33135,7 +33083,7 @@ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $THIS_FULL_NAME support" >&5 $as_echo_n "checking for $THIS_FULL_NAME support... " >&6; } if test -n ""; then - as_fn_error "" "$LINENO" 5 + as_fn_error $? "" "$LINENO" 5 fi if test "$THIS_RESULT" = "yes" || test "$THIS_RESULT" = "builtin"; then HAVE_DBA=1 @@ -33552,13 +33500,13 @@ if test "$PHP_DOM" != "no"; then if test "$PHP_LIBXML" = "no"; then - as_fn_error "DOM extension requires LIBXML extension, add --enable-libxml" "$LINENO" 5 + as_fn_error $? "DOM extension requires LIBXML extension, add --enable-libxml" "$LINENO" 5 fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xml2-config path" >&5 $as_echo_n "checking for xml2-config path... " >&6; } -if test "${ac_cv_php_xml2_config_path+set}" = set; then : +if ${ac_cv_php_xml2_config_path+:} false; then : $as_echo_n "(cached) " >&6 else @@ -33647,6 +33595,7 @@ if test "$ext_shared" = "yes"; then DOM_SHARED_LIBADD="-L$ai_p $DOM_SHARED_LIBADD" + test "x$PHP_RPATH" != "xno" && \ test -n "$ld_runpath_switch" && DOM_SHARED_LIBADD="$ld_runpath_switch$ai_p $DOM_SHARED_LIBADD" else @@ -33658,6 +33607,7 @@ if test -n "$unique" && test "`eval $cmd`" = "" ; then eval "LIBPATH$unique=set" + test "x$PHP_RPATH" != "xno" && test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" LDFLAGS="$LDFLAGS -L$ai_p" PHP_RPATHS="$PHP_RPATHS $ai_p" @@ -33716,7 +33666,7 @@ { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libxml build works" >&5 $as_echo_n "checking whether libxml build works... " >&6; } -if test "${php_cv_libxml_build_works+set}" = set; then : +if ${php_cv_libxml_build_works+:} false; then : $as_echo_n "(cached) " >&6 else @@ -33754,7 +33704,7 @@ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } - as_fn_error "build test failed. Please check the config.log for details." "$LINENO" 5 + as_fn_error $? "build test failed. Please check the config.log for details." "$LINENO" 5 fi @@ -34131,7 +34081,7 @@ is_it_shared=$PHP_LIBXML_SHARED is_it_enabled=$PHP_LIBXML if test "$am_i_shared" = "no" && test "$is_it_shared" = "yes" ; then - as_fn_error " + as_fn_error $? " You've configured extension dom to build statically, but it depends on extension libxml, which you've configured to build shared. You either need to build dom shared or build libxml statically for the @@ -34139,7 +34089,7 @@ " "$LINENO" 5 fi if test "x$is_it_enabled" = "xno" && test "x" != "xtrue"; then - as_fn_error " + as_fn_error $? " You've configured extension dom, which depends on extension libxml, but you've either not enabled libxml, or have disabled it. " "$LINENO" 5 @@ -34147,10 +34097,10 @@ else - as_fn_error "libxml2 version 2.6.11 or greater required." "$LINENO" 5 + as_fn_error $? "libxml2 version 2.6.11 or greater required." "$LINENO" 5 fi else - as_fn_error "xml2-config not found. Please check your libxml2 installation." "$LINENO" 5 + as_fn_error $? "xml2-config not found. Please check your libxml2 installation." "$LINENO" 5 fi @@ -34512,7 +34462,7 @@ done if test -z "$ENCHANT_DIR"; then - as_fn_error "Cannot find enchant" "$LINENO" 5 + as_fn_error $? "Cannot find enchant" "$LINENO" 5 fi ENCHANT_LIBDIR=$ENCHANT_DIR/lib @@ -34544,6 +34494,7 @@ if test "$ext_shared" = "yes"; then ENCHANT_SHARED_LIBADD="-L$ai_p $ENCHANT_SHARED_LIBADD" + test "x$PHP_RPATH" != "xno" && \ test -n "$ld_runpath_switch" && ENCHANT_SHARED_LIBADD="$ld_runpath_switch$ai_p $ENCHANT_SHARED_LIBADD" else @@ -34555,6 +34506,7 @@ if test -n "$unique" && test "`eval $cmd`" = "" ; then eval "LIBPATH$unique=set" + test "x$PHP_RPATH" != "xno" && test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" LDFLAGS="$LDFLAGS -L$ai_p" PHP_RPATHS="$PHP_RPATHS $ai_p" @@ -34594,6 +34546,7 @@ if test -n "$unique" && test "`eval $cmd`" = "" ; then eval "LIBPATH$unique=set" + test "x$PHP_RPATH" != "xno" && test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" LDFLAGS="$LDFLAGS -L$ai_p" PHP_RPATHS="$PHP_RPATHS $ai_p" @@ -34720,6 +34673,7 @@ if test "$ext_shared" = "yes"; then LDFLAGS="-L$ai_p $LDFLAGS" + test "x$PHP_RPATH" != "xno" && \ test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS" else @@ -34731,6 +34685,7 @@ if test -n "$unique" && test "`eval $cmd`" = "" ; then eval "LIBPATH$unique=set" + test "x$PHP_RPATH" != "xno" && test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" LDFLAGS="$LDFLAGS -L$ai_p" PHP_RPATHS="$PHP_RPATHS $ai_p" @@ -34748,7 +34703,7 @@ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for enchant_broker_set_param in -lenchant" >&5 $as_echo_n "checking for enchant_broker_set_param in -lenchant... " >&6; } -if test "${ac_cv_lib_enchant_enchant_broker_set_param+set}" = set; then : +if ${ac_cv_lib_enchant_enchant_broker_set_param+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS @@ -34782,7 +34737,7 @@ fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_enchant_enchant_broker_set_param" >&5 $as_echo "$ac_cv_lib_enchant_enchant_broker_set_param" >&6; } -if test "x$ac_cv_lib_enchant_enchant_broker_set_param" = x""yes; then : +if test "x$ac_cv_lib_enchant_enchant_broker_set_param" = xyes; then : LDFLAGS=$save_old_LDFLAGS ext_shared=$save_ext_shared @@ -35508,8 +35463,7 @@ do : as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" -eval as_val=\$$as_ac_var - if test "x$as_val" = x""yes; then : +if eval test \"x\$"$as_ac_var"\" = x"yes"; then : cat >>confdefs.h <<_ACEOF #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 _ACEOF @@ -35966,7 +35920,7 @@ is_it_shared=$PHP_PCRE_SHARED is_it_enabled=$PHP_PCRE if test "$am_i_shared" = "no" && test "$is_it_shared" = "yes" ; then - as_fn_error " + as_fn_error $? " You've configured extension filter to build statically, but it depends on extension pcre, which you've configured to build shared. You either need to build filter shared or build pcre statically for the @@ -35974,7 +35928,7 @@ " "$LINENO" 5 fi if test "x$is_it_enabled" = "xno" && test "x" != "xtrue"; then - as_fn_error " + as_fn_error $? " You've configured extension filter, which depends on extension pcre, but you've either not enabled pcre, or have disabled it. " "$LINENO" 5 @@ -36371,7 +36325,7 @@ set dummy pkg-config; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } -if test "${ac_cv_path_PKG_CONFIG+set}" = set; then : +if ${ac_cv_path_PKG_CONFIG+:} false; then : $as_echo_n "(cached) " >&6 else case $PKG_CONFIG in @@ -36385,7 +36339,7 @@ IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 @@ -36417,7 +36371,7 @@ OPENSSL_INCS=`$PKG_CONFIG --cflags-only-I openssl` OPENSSL_INCDIR=`$PKG_CONFIG --variable=includedir openssl` else - as_fn_error "OpenSSL version 0.9.6 or greater required." "$LINENO" 5 + as_fn_error $? "OpenSSL version 0.9.6 or greater required." "$LINENO" 5 fi if test -n "$OPENSSL_LIBS" && test -n "$OPENSSL_INCS"; then @@ -36484,6 +36438,7 @@ if test "$ext_shared" = "yes"; then FTP_SHARED_LIBADD="-L$ai_p $FTP_SHARED_LIBADD" + test "x$PHP_RPATH" != "xno" && \ test -n "$ld_runpath_switch" && FTP_SHARED_LIBADD="$ld_runpath_switch$ai_p $FTP_SHARED_LIBADD" else @@ -36495,6 +36450,7 @@ if test -n "$unique" && test "`eval $cmd`" = "" ; then eval "LIBPATH$unique=set" + test "x$PHP_RPATH" != "xno" && test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" LDFLAGS="$LDFLAGS -L$ai_p" PHP_RPATHS="$PHP_RPATHS $ai_p" @@ -36563,18 +36519,18 @@ if test -r $i/include/openssl/evp.h; then OPENSSL_INCDIR=$i/include fi - if test -r $i/$PHP_LIBDIR/libssl.a -o -r $i/$PHP_LIBDIR/libssl.$SHLIB_SUFFIX_NAME; then + if test -r $i/$PHP_LIBDIR/libssl.a -o -r $i/$PHP_LIBDIR/$DEB_HOST_MULTIARCH/libssl.$SHLIB_SUFFIX_NAME -o -r $i/$PHP_LIBDIR/libssl.$SHLIB_SUFFIX_NAME; then OPENSSL_LIBDIR=$i/$PHP_LIBDIR fi test -n "$OPENSSL_INCDIR" && test -n "$OPENSSL_LIBDIR" && break done if test -z "$OPENSSL_INCDIR"; then - as_fn_error "Cannot find OpenSSL's " "$LINENO" 5 + as_fn_error $? "Cannot find OpenSSL's " "$LINENO" 5 fi if test -z "$OPENSSL_LIBDIR"; then - as_fn_error "Cannot find OpenSSL's libraries" "$LINENO" 5 + as_fn_error $? "Cannot find OpenSSL's libraries" "$LINENO" 5 fi old_CPPFLAGS=$CPPFLAGS @@ -36598,7 +36554,7 @@ else - as_fn_error "OpenSSL version 0.9.6 or greater required." "$LINENO" 5 + as_fn_error $? "OpenSSL version 0.9.6 or greater required." "$LINENO" 5 fi rm -f conftest* @@ -36708,6 +36664,7 @@ if test "$ext_shared" = "yes"; then LDFLAGS="-L$ai_p $LDFLAGS" + test "x$PHP_RPATH" != "xno" && \ test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS" else @@ -36719,6 +36676,7 @@ if test -n "$unique" && test "`eval $cmd`" = "" ; then eval "LIBPATH$unique=set" + test "x$PHP_RPATH" != "xno" && test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" LDFLAGS="$LDFLAGS -L$ai_p" PHP_RPATHS="$PHP_RPATHS $ai_p" @@ -36736,7 +36694,7 @@ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CRYPTO_free in -lcrypto" >&5 $as_echo_n "checking for CRYPTO_free in -lcrypto... " >&6; } -if test "${ac_cv_lib_crypto_CRYPTO_free+set}" = set; then : +if ${ac_cv_lib_crypto_CRYPTO_free+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS @@ -36770,35 +36728,11 @@ fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_CRYPTO_free" >&5 $as_echo "$ac_cv_lib_crypto_CRYPTO_free" >&6; } -if test "x$ac_cv_lib_crypto_CRYPTO_free" = x""yes; then : +if test "x$ac_cv_lib_crypto_CRYPTO_free" = xyes; then : LDFLAGS=$save_old_LDFLAGS ext_shared=$save_ext_shared - - - - case crypto in - c|c_r|pthread*) ;; - *) - if test "$ext_shared" = "yes"; then - FTP_SHARED_LIBADD="-lcrypto $FTP_SHARED_LIBADD" - else - - - case crypto in - c|c_r|pthread*) ;; - *) - LIBS="-lcrypto $LIBS" - ;; - esac - - - fi - ;; - esac - - - + : else @@ -36806,7 +36740,7 @@ ext_shared=$save_ext_shared unset ac_cv_lib_crypto_CRYPTO_free - as_fn_error "libcrypto not found!" "$LINENO" 5 + as_fn_error $? "libcrypto not found!" "$LINENO" 5 fi @@ -36885,6 +36819,7 @@ if test "$ext_shared" = "yes"; then LDFLAGS="-L$ai_p $LDFLAGS" + test "x$PHP_RPATH" != "xno" && \ test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS" else @@ -36896,6 +36831,7 @@ if test -n "$unique" && test "`eval $cmd`" = "" ; then eval "LIBPATH$unique=set" + test "x$PHP_RPATH" != "xno" && test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" LDFLAGS="$LDFLAGS -L$ai_p" PHP_RPATHS="$PHP_RPATHS $ai_p" @@ -36913,7 +36849,7 @@ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_CTX_set_ssl_version in -lssl" >&5 $as_echo_n "checking for SSL_CTX_set_ssl_version in -lssl... " >&6; } -if test "${ac_cv_lib_ssl_SSL_CTX_set_ssl_version+set}" = set; then : +if ${ac_cv_lib_ssl_SSL_CTX_set_ssl_version+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS @@ -36947,7 +36883,7 @@ fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_CTX_set_ssl_version" >&5 $as_echo "$ac_cv_lib_ssl_SSL_CTX_set_ssl_version" >&6; } -if test "x$ac_cv_lib_ssl_SSL_CTX_set_ssl_version" = x""yes; then : +if test "x$ac_cv_lib_ssl_SSL_CTX_set_ssl_version" = xyes; then : LDFLAGS=$save_old_LDFLAGS ext_shared=$save_ext_shared @@ -36961,7 +36897,7 @@ ext_shared=$save_ext_shared unset ac_cv_lib_ssl_SSL_CTX_set_ssl_version - as_fn_error "libssl not found!" "$LINENO" 5 + as_fn_error $? "libssl not found!" "$LINENO" 5 fi @@ -37030,6 +36966,7 @@ if test "$ext_shared" = "yes"; then FTP_SHARED_LIBADD="-L$ai_p $FTP_SHARED_LIBADD" + test "x$PHP_RPATH" != "xno" && \ test -n "$ld_runpath_switch" && FTP_SHARED_LIBADD="$ld_runpath_switch$ai_p $FTP_SHARED_LIBADD" else @@ -37041,6 +36978,7 @@ if test -n "$unique" && test "`eval $cmd`" = "" ; then eval "LIBPATH$unique=set" + test "x$PHP_RPATH" != "xno" && test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" LDFLAGS="$LDFLAGS -L$ai_p" PHP_RPATHS="$PHP_RPATHS $ai_p" @@ -37373,8 +37311,7 @@ do : as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" -eval as_val=\$$as_ac_var - if test "x$as_val" = x""yes; then : +if eval test \"x\$"$as_ac_var"\" = x"yes"; then : cat >>confdefs.h <<_ACEOF #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 _ACEOF @@ -37394,7 +37331,7 @@ PHP_ZLIB_DIR="$PHP_ZLIB_DIR" PHP_ZLIB_INCDIR="$PHP_ZLIB_DIR/include" else - as_fn_error "Can't find zlib headers under \"$PHP_ZLIB_DIR\"" "$LINENO" 5 + as_fn_error $? "Can't find zlib headers under \"$PHP_ZLIB_DIR\"" "$LINENO" 5 fi else for i in /usr/local /usr; do @@ -37428,7 +37365,7 @@ done if test -z "$GD_JPEG_DIR"; then - as_fn_error "jpeglib.h not found." "$LINENO" 5 + as_fn_error $? "jpeglib.h not found." "$LINENO" 5 fi @@ -37502,6 +37439,7 @@ if test "$ext_shared" = "yes"; then LDFLAGS="-L$ai_p $LDFLAGS" + test "x$PHP_RPATH" != "xno" && \ test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS" else @@ -37513,6 +37451,7 @@ if test -n "$unique" && test "`eval $cmd`" = "" ; then eval "LIBPATH$unique=set" + test "x$PHP_RPATH" != "xno" && test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" LDFLAGS="$LDFLAGS -L$ai_p" PHP_RPATHS="$PHP_RPATHS $ai_p" @@ -37530,7 +37469,7 @@ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_read_header in -ljpeg" >&5 $as_echo_n "checking for jpeg_read_header in -ljpeg... " >&6; } -if test "${ac_cv_lib_jpeg_jpeg_read_header+set}" = set; then : +if ${ac_cv_lib_jpeg_jpeg_read_header+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS @@ -37564,7 +37503,7 @@ fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5 $as_echo "$ac_cv_lib_jpeg_jpeg_read_header" >&6; } -if test "x$ac_cv_lib_jpeg_jpeg_read_header" = x""yes; then : +if test "x$ac_cv_lib_jpeg_jpeg_read_header" = xyes; then : LDFLAGS=$save_old_LDFLAGS ext_shared=$save_ext_shared @@ -37621,6 +37560,7 @@ if test "$ext_shared" = "yes"; then GD_SHARED_LIBADD="-L$ai_p $GD_SHARED_LIBADD" + test "x$PHP_RPATH" != "xno" && \ test -n "$ld_runpath_switch" && GD_SHARED_LIBADD="$ld_runpath_switch$ai_p $GD_SHARED_LIBADD" else @@ -37632,6 +37572,7 @@ if test -n "$unique" && test "`eval $cmd`" = "" ; then eval "LIBPATH$unique=set" + test "x$PHP_RPATH" != "xno" && test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" LDFLAGS="$LDFLAGS -L$ai_p" PHP_RPATHS="$PHP_RPATHS $ai_p" @@ -37671,6 +37612,7 @@ if test -n "$unique" && test "`eval $cmd`" = "" ; then eval "LIBPATH$unique=set" + test "x$PHP_RPATH" != "xno" && test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" LDFLAGS="$LDFLAGS -L$ai_p" PHP_RPATHS="$PHP_RPATHS $ai_p" @@ -37705,7 +37647,7 @@ ext_shared=$save_ext_shared unset ac_cv_lib_jpeg_jpeg_read_header - as_fn_error "Problem with libjpeg.(a|so). Please check config.log for more information." "$LINENO" 5 + as_fn_error $? "Problem with libjpeg.(a|so). Please check config.log for more information." "$LINENO" 5 fi @@ -37723,7 +37665,7 @@ done if test -z "$GD_VPX_DIR"; then - as_fn_error "vpx_codec.h not found." "$LINENO" 5 + as_fn_error $? "vpx_codec.h not found." "$LINENO" 5 fi @@ -37797,6 +37739,7 @@ if test "$ext_shared" = "yes"; then LDFLAGS="-L$ai_p $LDFLAGS" + test "x$PHP_RPATH" != "xno" && \ test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS" else @@ -37808,6 +37751,7 @@ if test -n "$unique" && test "`eval $cmd`" = "" ; then eval "LIBPATH$unique=set" + test "x$PHP_RPATH" != "xno" && test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" LDFLAGS="$LDFLAGS -L$ai_p" PHP_RPATHS="$PHP_RPATHS $ai_p" @@ -37825,7 +37769,7 @@ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for vpx_codec_destroy in -lvpx" >&5 $as_echo_n "checking for vpx_codec_destroy in -lvpx... " >&6; } -if test "${ac_cv_lib_vpx_vpx_codec_destroy+set}" = set; then : +if ${ac_cv_lib_vpx_vpx_codec_destroy+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS @@ -37859,7 +37803,7 @@ fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_vpx_vpx_codec_destroy" >&5 $as_echo "$ac_cv_lib_vpx_vpx_codec_destroy" >&6; } -if test "x$ac_cv_lib_vpx_vpx_codec_destroy" = x""yes; then : +if test "x$ac_cv_lib_vpx_vpx_codec_destroy" = xyes; then : LDFLAGS=$save_old_LDFLAGS ext_shared=$save_ext_shared @@ -37926,6 +37870,7 @@ if test "$ext_shared" = "yes"; then GD_SHARED_LIBADD="-L$ai_p $GD_SHARED_LIBADD" + test "x$PHP_RPATH" != "xno" && \ test -n "$ld_runpath_switch" && GD_SHARED_LIBADD="$ld_runpath_switch$ai_p $GD_SHARED_LIBADD" else @@ -37937,6 +37882,7 @@ if test -n "$unique" && test "`eval $cmd`" = "" ; then eval "LIBPATH$unique=set" + test "x$PHP_RPATH" != "xno" && test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" LDFLAGS="$LDFLAGS -L$ai_p" PHP_RPATHS="$PHP_RPATHS $ai_p" @@ -37976,6 +37922,7 @@ if test -n "$unique" && test "`eval $cmd`" = "" ; then eval "LIBPATH$unique=set" + test "x$PHP_RPATH" != "xno" && test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" LDFLAGS="$LDFLAGS -L$ai_p" PHP_RPATHS="$PHP_RPATHS $ai_p" @@ -38010,7 +37957,7 @@ ext_shared=$save_ext_shared unset ac_cv_lib_vpx_vpx_codec_destroy - as_fn_error "Problem with libvpx.(a|so). Please check config.log for more information." "$LINENO" 5 + as_fn_error $? "Problem with libvpx.(a|so). Please check config.log for more information." "$LINENO" 5 fi @@ -38028,11 +37975,11 @@ done if test -z "$GD_PNG_DIR"; then - as_fn_error "png.h not found." "$LINENO" 5 + as_fn_error $? "png.h not found." "$LINENO" 5 fi if test "$PHP_ZLIB_DIR" = "no"; then - as_fn_error "PNG support requires ZLIB. Use --with-zlib-dir=" "$LINENO" 5 + as_fn_error $? "PNG support requires ZLIB. Use --with-zlib-dir=" "$LINENO" 5 fi @@ -38106,6 +38053,7 @@ if test "$ext_shared" = "yes"; then LDFLAGS="-L$ai_p $LDFLAGS" + test "x$PHP_RPATH" != "xno" && \ test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS" else @@ -38117,6 +38065,7 @@ if test -n "$unique" && test "`eval $cmd`" = "" ; then eval "LIBPATH$unique=set" + test "x$PHP_RPATH" != "xno" && test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" LDFLAGS="$LDFLAGS -L$ai_p" PHP_RPATHS="$PHP_RPATHS $ai_p" @@ -38134,7 +38083,7 @@ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_write_image in -lpng" >&5 $as_echo_n "checking for png_write_image in -lpng... " >&6; } -if test "${ac_cv_lib_png_png_write_image+set}" = set; then : +if ${ac_cv_lib_png_png_write_image+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS @@ -38168,7 +38117,7 @@ fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_write_image" >&5 $as_echo "$ac_cv_lib_png_png_write_image" >&6; } -if test "x$ac_cv_lib_png_png_write_image" = x""yes; then : +if test "x$ac_cv_lib_png_png_write_image" = xyes; then : LDFLAGS=$save_old_LDFLAGS ext_shared=$save_ext_shared @@ -38225,6 +38174,7 @@ if test "$ext_shared" = "yes"; then GD_SHARED_LIBADD="-L$ai_p $GD_SHARED_LIBADD" + test "x$PHP_RPATH" != "xno" && \ test -n "$ld_runpath_switch" && GD_SHARED_LIBADD="$ld_runpath_switch$ai_p $GD_SHARED_LIBADD" else @@ -38236,6 +38186,7 @@ if test -n "$unique" && test "`eval $cmd`" = "" ; then eval "LIBPATH$unique=set" + test "x$PHP_RPATH" != "xno" && test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" LDFLAGS="$LDFLAGS -L$ai_p" PHP_RPATHS="$PHP_RPATHS $ai_p" @@ -38275,6 +38226,7 @@ if test -n "$unique" && test "`eval $cmd`" = "" ; then eval "LIBPATH$unique=set" + test "x$PHP_RPATH" != "xno" && test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" LDFLAGS="$LDFLAGS -L$ai_p" PHP_RPATHS="$PHP_RPATHS $ai_p" @@ -38322,6 +38274,7 @@ if test "$ext_shared" = "yes"; then GD_SHARED_LIBADD="-L$ai_p $GD_SHARED_LIBADD" + test "x$PHP_RPATH" != "xno" && \ test -n "$ld_runpath_switch" && GD_SHARED_LIBADD="$ld_runpath_switch$ai_p $GD_SHARED_LIBADD" else @@ -38333,6 +38286,7 @@ if test -n "$unique" && test "`eval $cmd`" = "" ; then eval "LIBPATH$unique=set" + test "x$PHP_RPATH" != "xno" && test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" LDFLAGS="$LDFLAGS -L$ai_p" PHP_RPATHS="$PHP_RPATHS $ai_p" @@ -38372,6 +38326,7 @@ if test -n "$unique" && test "`eval $cmd`" = "" ; then eval "LIBPATH$unique=set" + test "x$PHP_RPATH" != "xno" && test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" LDFLAGS="$LDFLAGS -L$ai_p" PHP_RPATHS="$PHP_RPATHS $ai_p" @@ -38406,7 +38361,7 @@ ext_shared=$save_ext_shared unset ac_cv_lib_png_png_write_image - as_fn_error "Problem with libpng.(a|so) or libz.(a|so). Please check config.log for more information." "$LINENO" 5 + as_fn_error $? "Problem with libpng.(a|so) or libz.(a|so). Please check config.log for more information." "$LINENO" 5 fi @@ -38421,11 +38376,11 @@ if test "$PHP_XPM_DIR" != "no"; then for i in $PHP_XPM_DIR /usr/local /usr/X11R6 /usr; do - test -f $i/$PHP_LIBDIR/libXpm.$SHLIB_SUFFIX_NAME || test -f $i/$PHP_LIBDIR/libXpm.a && GD_XPM_DIR=$i && break + test -f $i/$PHP_LIBDIR/libXpm.$SHLIB_SUFFIX_NAME || test -f $i/$PHP_LIBDIR/$DEB_HOST_MULTIARCH/libXpm.$SHLIB_SUFFIX_NAME || test -f $i/$PHP_LIBDIR/libXpm.a && GD_XPM_DIR=$i && break done if test -z "$GD_XPM_DIR"; then - as_fn_error "libXpm.(a|so) not found." "$LINENO" 5 + as_fn_error $? "libXpm.(a|so) not found." "$LINENO" 5 fi for i in include include/X11; do @@ -38433,7 +38388,7 @@ done if test -z "$GD_XPM_INC"; then - as_fn_error "xpm.h not found." "$LINENO" 5 + as_fn_error $? "xpm.h not found." "$LINENO" 5 fi @@ -38507,6 +38462,7 @@ if test "$ext_shared" = "yes"; then LDFLAGS="-L$ai_p $LDFLAGS" + test "x$PHP_RPATH" != "xno" && \ test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS" else @@ -38518,6 +38474,7 @@ if test -n "$unique" && test "`eval $cmd`" = "" ; then eval "LIBPATH$unique=set" + test "x$PHP_RPATH" != "xno" && test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" LDFLAGS="$LDFLAGS -L$ai_p" PHP_RPATHS="$PHP_RPATHS $ai_p" @@ -38535,7 +38492,7 @@ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmFreeXpmImage in -lXpm" >&5 $as_echo_n "checking for XpmFreeXpmImage in -lXpm... " >&6; } -if test "${ac_cv_lib_Xpm_XpmFreeXpmImage+set}" = set; then : +if ${ac_cv_lib_Xpm_XpmFreeXpmImage+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS @@ -38569,7 +38526,7 @@ fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xpm_XpmFreeXpmImage" >&5 $as_echo "$ac_cv_lib_Xpm_XpmFreeXpmImage" >&6; } -if test "x$ac_cv_lib_Xpm_XpmFreeXpmImage" = x""yes; then : +if test "x$ac_cv_lib_Xpm_XpmFreeXpmImage" = xyes; then : LDFLAGS=$save_old_LDFLAGS ext_shared=$save_ext_shared @@ -38626,6 +38583,7 @@ if test "$ext_shared" = "yes"; then GD_SHARED_LIBADD="-L$ai_p $GD_SHARED_LIBADD" + test "x$PHP_RPATH" != "xno" && \ test -n "$ld_runpath_switch" && GD_SHARED_LIBADD="$ld_runpath_switch$ai_p $GD_SHARED_LIBADD" else @@ -38637,6 +38595,7 @@ if test -n "$unique" && test "`eval $cmd`" = "" ; then eval "LIBPATH$unique=set" + test "x$PHP_RPATH" != "xno" && test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" LDFLAGS="$LDFLAGS -L$ai_p" PHP_RPATHS="$PHP_RPATHS $ai_p" @@ -38676,6 +38635,7 @@ if test -n "$unique" && test "`eval $cmd`" = "" ; then eval "LIBPATH$unique=set" + test "x$PHP_RPATH" != "xno" && test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" LDFLAGS="$LDFLAGS -L$ai_p" PHP_RPATHS="$PHP_RPATHS $ai_p" @@ -38723,6 +38683,7 @@ if test "$ext_shared" = "yes"; then GD_SHARED_LIBADD="-L$ai_p $GD_SHARED_LIBADD" + test "x$PHP_RPATH" != "xno" && \ test -n "$ld_runpath_switch" && GD_SHARED_LIBADD="$ld_runpath_switch$ai_p $GD_SHARED_LIBADD" else @@ -38734,6 +38695,7 @@ if test -n "$unique" && test "`eval $cmd`" = "" ; then eval "LIBPATH$unique=set" + test "x$PHP_RPATH" != "xno" && test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" LDFLAGS="$LDFLAGS -L$ai_p" PHP_RPATHS="$PHP_RPATHS $ai_p" @@ -38773,6 +38735,7 @@ if test -n "$unique" && test "`eval $cmd`" = "" ; then eval "LIBPATH$unique=set" + test "x$PHP_RPATH" != "xno" && test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" LDFLAGS="$LDFLAGS -L$ai_p" PHP_RPATHS="$PHP_RPATHS $ai_p" @@ -38807,7 +38770,7 @@ ext_shared=$save_ext_shared unset ac_cv_lib_Xpm_XpmFreeXpmImage - as_fn_error "Problem with libXpm.(a|so) or libX11.(a|so). Please check config.log for more information." "$LINENO" 5 + as_fn_error $? "Problem with libXpm.(a|so) or libX11.(a|so). Please check config.log for more information." "$LINENO" 5 fi @@ -38829,7 +38792,7 @@ done if test -z "$FREETYPE2_DIR"; then - as_fn_error "freetype.h not found." "$LINENO" 5 + as_fn_error $? "freetype.h not found." "$LINENO" 5 fi @@ -38903,6 +38866,7 @@ if test "$ext_shared" = "yes"; then LDFLAGS="-L$ai_p $LDFLAGS" + test "x$PHP_RPATH" != "xno" && \ test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS" else @@ -38914,6 +38878,7 @@ if test -n "$unique" && test "`eval $cmd`" = "" ; then eval "LIBPATH$unique=set" + test "x$PHP_RPATH" != "xno" && test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" LDFLAGS="$LDFLAGS -L$ai_p" PHP_RPATHS="$PHP_RPATHS $ai_p" @@ -38931,7 +38896,7 @@ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FT_New_Face in -lfreetype" >&5 $as_echo_n "checking for FT_New_Face in -lfreetype... " >&6; } -if test "${ac_cv_lib_freetype_FT_New_Face+set}" = set; then : +if ${ac_cv_lib_freetype_FT_New_Face+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS @@ -38965,7 +38930,7 @@ fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_freetype_FT_New_Face" >&5 $as_echo "$ac_cv_lib_freetype_FT_New_Face" >&6; } -if test "x$ac_cv_lib_freetype_FT_New_Face" = x""yes; then : +if test "x$ac_cv_lib_freetype_FT_New_Face" = xyes; then : LDFLAGS=$save_old_LDFLAGS ext_shared=$save_ext_shared @@ -38991,6 +38956,7 @@ if test "$ext_shared" = "yes"; then GD_SHARED_LIBADD="-L$ai_p $GD_SHARED_LIBADD" + test "x$PHP_RPATH" != "xno" && \ test -n "$ld_runpath_switch" && GD_SHARED_LIBADD="$ld_runpath_switch$ai_p $GD_SHARED_LIBADD" else @@ -39002,6 +38968,7 @@ if test -n "$unique" && test "`eval $cmd`" = "" ; then eval "LIBPATH$unique=set" + test "x$PHP_RPATH" != "xno" && test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" LDFLAGS="$LDFLAGS -L$ai_p" PHP_RPATHS="$PHP_RPATHS $ai_p" @@ -39041,6 +39008,7 @@ if test -n "$unique" && test "`eval $cmd`" = "" ; then eval "LIBPATH$unique=set" + test "x$PHP_RPATH" != "xno" && test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" LDFLAGS="$LDFLAGS -L$ai_p" PHP_RPATHS="$PHP_RPATHS $ai_p" @@ -39146,7 +39114,7 @@ ext_shared=$save_ext_shared unset ac_cv_lib_freetype_FT_New_Face - as_fn_error "Problem with freetype.(a|so). Please check config.log for more information." "$LINENO" 5 + as_fn_error $? "Problem with freetype.(a|so). Please check config.log for more information." "$LINENO" 5 fi @@ -39164,7 +39132,7 @@ done if test -z "$GD_T1_DIR"; then - as_fn_error "Your t1lib distribution is not installed correctly. Please reinstall it." "$LINENO" 5 + as_fn_error $? "Your t1lib distribution is not installed correctly. Please reinstall it." "$LINENO" 5 fi @@ -39238,6 +39206,7 @@ if test "$ext_shared" = "yes"; then LDFLAGS="-L$ai_p $LDFLAGS" + test "x$PHP_RPATH" != "xno" && \ test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS" else @@ -39249,6 +39218,7 @@ if test -n "$unique" && test "`eval $cmd`" = "" ; then eval "LIBPATH$unique=set" + test "x$PHP_RPATH" != "xno" && test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" LDFLAGS="$LDFLAGS -L$ai_p" PHP_RPATHS="$PHP_RPATHS $ai_p" @@ -39266,7 +39236,7 @@ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for T1_StrError in -lt1" >&5 $as_echo_n "checking for T1_StrError in -lt1... " >&6; } -if test "${ac_cv_lib_t1_T1_StrError+set}" = set; then : +if ${ac_cv_lib_t1_T1_StrError+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS @@ -39300,7 +39270,7 @@ fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_t1_T1_StrError" >&5 $as_echo "$ac_cv_lib_t1_T1_StrError" >&6; } -if test "x$ac_cv_lib_t1_T1_StrError" = x""yes; then : +if test "x$ac_cv_lib_t1_T1_StrError" = xyes; then : LDFLAGS=$save_old_LDFLAGS ext_shared=$save_ext_shared @@ -39360,6 +39330,7 @@ if test "$ext_shared" = "yes"; then GD_SHARED_LIBADD="-L$ai_p $GD_SHARED_LIBADD" + test "x$PHP_RPATH" != "xno" && \ test -n "$ld_runpath_switch" && GD_SHARED_LIBADD="$ld_runpath_switch$ai_p $GD_SHARED_LIBADD" else @@ -39371,6 +39342,7 @@ if test -n "$unique" && test "`eval $cmd`" = "" ; then eval "LIBPATH$unique=set" + test "x$PHP_RPATH" != "xno" && test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" LDFLAGS="$LDFLAGS -L$ai_p" PHP_RPATHS="$PHP_RPATHS $ai_p" @@ -39410,6 +39382,7 @@ if test -n "$unique" && test "`eval $cmd`" = "" ; then eval "LIBPATH$unique=set" + test "x$PHP_RPATH" != "xno" && test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" LDFLAGS="$LDFLAGS -L$ai_p" PHP_RPATHS="$PHP_RPATHS $ai_p" @@ -39444,7 +39417,7 @@ ext_shared=$save_ext_shared unset ac_cv_lib_t1_T1_StrError - as_fn_error "Problem with libt1.(a|so). Please check config.log for more information." "$LINENO" 5 + as_fn_error $? "Problem with libt1.(a|so). Please check config.log for more information." "$LINENO" 5 fi @@ -39576,7 +39549,7 @@ PHP_ZLIB_DIR="$PHP_ZLIB_DIR" PHP_ZLIB_INCDIR="$PHP_ZLIB_DIR/include" else - as_fn_error "Can't find zlib headers under \"$PHP_ZLIB_DIR\"" "$LINENO" 5 + as_fn_error $? "Can't find zlib headers under \"$PHP_ZLIB_DIR\"" "$LINENO" 5 fi else for i in /usr/local /usr; do @@ -39605,7 +39578,7 @@ done if test -z "$GD_VPX_DIR"; then - as_fn_error "vpx_codec.h not found." "$LINENO" 5 + as_fn_error $? "vpx_codec.h not found." "$LINENO" 5 fi @@ -39679,6 +39652,7 @@ if test "$ext_shared" = "yes"; then LDFLAGS="-L$ai_p $LDFLAGS" + test "x$PHP_RPATH" != "xno" && \ test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS" else @@ -39690,6 +39664,7 @@ if test -n "$unique" && test "`eval $cmd`" = "" ; then eval "LIBPATH$unique=set" + test "x$PHP_RPATH" != "xno" && test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" LDFLAGS="$LDFLAGS -L$ai_p" PHP_RPATHS="$PHP_RPATHS $ai_p" @@ -39707,7 +39682,7 @@ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for vpx_codec_destroy in -lvpx" >&5 $as_echo_n "checking for vpx_codec_destroy in -lvpx... " >&6; } -if test "${ac_cv_lib_vpx_vpx_codec_destroy+set}" = set; then : +if ${ac_cv_lib_vpx_vpx_codec_destroy+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS @@ -39741,7 +39716,7 @@ fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_vpx_vpx_codec_destroy" >&5 $as_echo "$ac_cv_lib_vpx_vpx_codec_destroy" >&6; } -if test "x$ac_cv_lib_vpx_vpx_codec_destroy" = x""yes; then : +if test "x$ac_cv_lib_vpx_vpx_codec_destroy" = xyes; then : LDFLAGS=$save_old_LDFLAGS ext_shared=$save_ext_shared @@ -39808,6 +39783,7 @@ if test "$ext_shared" = "yes"; then GD_SHARED_LIBADD="-L$ai_p $GD_SHARED_LIBADD" + test "x$PHP_RPATH" != "xno" && \ test -n "$ld_runpath_switch" && GD_SHARED_LIBADD="$ld_runpath_switch$ai_p $GD_SHARED_LIBADD" else @@ -39819,6 +39795,7 @@ if test -n "$unique" && test "`eval $cmd`" = "" ; then eval "LIBPATH$unique=set" + test "x$PHP_RPATH" != "xno" && test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" LDFLAGS="$LDFLAGS -L$ai_p" PHP_RPATHS="$PHP_RPATHS $ai_p" @@ -39858,6 +39835,7 @@ if test -n "$unique" && test "`eval $cmd`" = "" ; then eval "LIBPATH$unique=set" + test "x$PHP_RPATH" != "xno" && test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" LDFLAGS="$LDFLAGS -L$ai_p" PHP_RPATHS="$PHP_RPATHS $ai_p" @@ -39892,7 +39870,7 @@ ext_shared=$save_ext_shared unset ac_cv_lib_vpx_vpx_codec_destroy - as_fn_error "Problem with libvpx.(a|so). Please check config.log for more information." "$LINENO" 5 + as_fn_error $? "Problem with libvpx.(a|so). Please check config.log for more information." "$LINENO" 5 fi @@ -39910,7 +39888,7 @@ done if test -z "$GD_JPEG_DIR"; then - as_fn_error "jpeglib.h not found." "$LINENO" 5 + as_fn_error $? "jpeglib.h not found." "$LINENO" 5 fi @@ -39984,6 +39962,7 @@ if test "$ext_shared" = "yes"; then LDFLAGS="-L$ai_p $LDFLAGS" + test "x$PHP_RPATH" != "xno" && \ test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS" else @@ -39995,6 +39974,7 @@ if test -n "$unique" && test "`eval $cmd`" = "" ; then eval "LIBPATH$unique=set" + test "x$PHP_RPATH" != "xno" && test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" LDFLAGS="$LDFLAGS -L$ai_p" PHP_RPATHS="$PHP_RPATHS $ai_p" @@ -40012,7 +39992,7 @@ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_read_header in -ljpeg" >&5 $as_echo_n "checking for jpeg_read_header in -ljpeg... " >&6; } -if test "${ac_cv_lib_jpeg_jpeg_read_header+set}" = set; then : +if ${ac_cv_lib_jpeg_jpeg_read_header+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS @@ -40046,7 +40026,7 @@ fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5 $as_echo "$ac_cv_lib_jpeg_jpeg_read_header" >&6; } -if test "x$ac_cv_lib_jpeg_jpeg_read_header" = x""yes; then : +if test "x$ac_cv_lib_jpeg_jpeg_read_header" = xyes; then : LDFLAGS=$save_old_LDFLAGS ext_shared=$save_ext_shared @@ -40103,6 +40083,7 @@ if test "$ext_shared" = "yes"; then GD_SHARED_LIBADD="-L$ai_p $GD_SHARED_LIBADD" + test "x$PHP_RPATH" != "xno" && \ test -n "$ld_runpath_switch" && GD_SHARED_LIBADD="$ld_runpath_switch$ai_p $GD_SHARED_LIBADD" else @@ -40114,6 +40095,7 @@ if test -n "$unique" && test "`eval $cmd`" = "" ; then eval "LIBPATH$unique=set" + test "x$PHP_RPATH" != "xno" && test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" LDFLAGS="$LDFLAGS -L$ai_p" PHP_RPATHS="$PHP_RPATHS $ai_p" @@ -40153,6 +40135,7 @@ if test -n "$unique" && test "`eval $cmd`" = "" ; then eval "LIBPATH$unique=set" + test "x$PHP_RPATH" != "xno" && test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" LDFLAGS="$LDFLAGS -L$ai_p" PHP_RPATHS="$PHP_RPATHS $ai_p" @@ -40187,7 +40170,7 @@ ext_shared=$save_ext_shared unset ac_cv_lib_jpeg_jpeg_read_header - as_fn_error "Problem with libjpeg.(a|so). Please check config.log for more information." "$LINENO" 5 + as_fn_error $? "Problem with libjpeg.(a|so). Please check config.log for more information." "$LINENO" 5 fi @@ -40205,11 +40188,11 @@ done if test -z "$GD_PNG_DIR"; then - as_fn_error "png.h not found." "$LINENO" 5 + as_fn_error $? "png.h not found." "$LINENO" 5 fi if test "$PHP_ZLIB_DIR" = "no"; then - as_fn_error "PNG support requires ZLIB. Use --with-zlib-dir=" "$LINENO" 5 + as_fn_error $? "PNG support requires ZLIB. Use --with-zlib-dir=" "$LINENO" 5 fi @@ -40283,6 +40266,7 @@ if test "$ext_shared" = "yes"; then LDFLAGS="-L$ai_p $LDFLAGS" + test "x$PHP_RPATH" != "xno" && \ test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS" else @@ -40294,6 +40278,7 @@ if test -n "$unique" && test "`eval $cmd`" = "" ; then eval "LIBPATH$unique=set" + test "x$PHP_RPATH" != "xno" && test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" LDFLAGS="$LDFLAGS -L$ai_p" PHP_RPATHS="$PHP_RPATHS $ai_p" @@ -40311,7 +40296,7 @@ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_write_image in -lpng" >&5 $as_echo_n "checking for png_write_image in -lpng... " >&6; } -if test "${ac_cv_lib_png_png_write_image+set}" = set; then : +if ${ac_cv_lib_png_png_write_image+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS @@ -40345,7 +40330,7 @@ fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_write_image" >&5 $as_echo "$ac_cv_lib_png_png_write_image" >&6; } -if test "x$ac_cv_lib_png_png_write_image" = x""yes; then : +if test "x$ac_cv_lib_png_png_write_image" = xyes; then : LDFLAGS=$save_old_LDFLAGS ext_shared=$save_ext_shared @@ -40402,6 +40387,7 @@ if test "$ext_shared" = "yes"; then GD_SHARED_LIBADD="-L$ai_p $GD_SHARED_LIBADD" + test "x$PHP_RPATH" != "xno" && \ test -n "$ld_runpath_switch" && GD_SHARED_LIBADD="$ld_runpath_switch$ai_p $GD_SHARED_LIBADD" else @@ -40413,6 +40399,7 @@ if test -n "$unique" && test "`eval $cmd`" = "" ; then eval "LIBPATH$unique=set" + test "x$PHP_RPATH" != "xno" && test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" LDFLAGS="$LDFLAGS -L$ai_p" PHP_RPATHS="$PHP_RPATHS $ai_p" @@ -40452,6 +40439,7 @@ if test -n "$unique" && test "`eval $cmd`" = "" ; then eval "LIBPATH$unique=set" + test "x$PHP_RPATH" != "xno" && test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" LDFLAGS="$LDFLAGS -L$ai_p" PHP_RPATHS="$PHP_RPATHS $ai_p" @@ -40499,6 +40487,7 @@ if test "$ext_shared" = "yes"; then GD_SHARED_LIBADD="-L$ai_p $GD_SHARED_LIBADD" + test "x$PHP_RPATH" != "xno" && \ test -n "$ld_runpath_switch" && GD_SHARED_LIBADD="$ld_runpath_switch$ai_p $GD_SHARED_LIBADD" else @@ -40510,6 +40499,7 @@ if test -n "$unique" && test "`eval $cmd`" = "" ; then eval "LIBPATH$unique=set" + test "x$PHP_RPATH" != "xno" && test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" LDFLAGS="$LDFLAGS -L$ai_p" PHP_RPATHS="$PHP_RPATHS $ai_p" @@ -40549,6 +40539,7 @@ if test -n "$unique" && test "`eval $cmd`" = "" ; then eval "LIBPATH$unique=set" + test "x$PHP_RPATH" != "xno" && test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" LDFLAGS="$LDFLAGS -L$ai_p" PHP_RPATHS="$PHP_RPATHS $ai_p" @@ -40583,7 +40574,7 @@ ext_shared=$save_ext_shared unset ac_cv_lib_png_png_write_image - as_fn_error "Problem with libpng.(a|so) or libz.(a|so). Please check config.log for more information." "$LINENO" 5 + as_fn_error $? "Problem with libpng.(a|so) or libz.(a|so). Please check config.log for more information." "$LINENO" 5 fi @@ -40598,11 +40589,11 @@ if test "$PHP_XPM_DIR" != "no"; then for i in $PHP_XPM_DIR /usr/local /usr/X11R6 /usr; do - test -f $i/$PHP_LIBDIR/libXpm.$SHLIB_SUFFIX_NAME || test -f $i/$PHP_LIBDIR/libXpm.a && GD_XPM_DIR=$i && break + test -f $i/$PHP_LIBDIR/libXpm.$SHLIB_SUFFIX_NAME || test -f $i/$PHP_LIBDIR/$DEB_HOST_MULTIARCH/libXpm.$SHLIB_SUFFIX_NAME || test -f $i/$PHP_LIBDIR/libXpm.a && GD_XPM_DIR=$i && break done if test -z "$GD_XPM_DIR"; then - as_fn_error "libXpm.(a|so) not found." "$LINENO" 5 + as_fn_error $? "libXpm.(a|so) not found." "$LINENO" 5 fi for i in include include/X11; do @@ -40610,7 +40601,7 @@ done if test -z "$GD_XPM_INC"; then - as_fn_error "xpm.h not found." "$LINENO" 5 + as_fn_error $? "xpm.h not found." "$LINENO" 5 fi @@ -40684,6 +40675,7 @@ if test "$ext_shared" = "yes"; then LDFLAGS="-L$ai_p $LDFLAGS" + test "x$PHP_RPATH" != "xno" && \ test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS" else @@ -40695,6 +40687,7 @@ if test -n "$unique" && test "`eval $cmd`" = "" ; then eval "LIBPATH$unique=set" + test "x$PHP_RPATH" != "xno" && test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" LDFLAGS="$LDFLAGS -L$ai_p" PHP_RPATHS="$PHP_RPATHS $ai_p" @@ -40712,7 +40705,7 @@ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmFreeXpmImage in -lXpm" >&5 $as_echo_n "checking for XpmFreeXpmImage in -lXpm... " >&6; } -if test "${ac_cv_lib_Xpm_XpmFreeXpmImage+set}" = set; then : +if ${ac_cv_lib_Xpm_XpmFreeXpmImage+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS @@ -40746,7 +40739,7 @@ fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xpm_XpmFreeXpmImage" >&5 $as_echo "$ac_cv_lib_Xpm_XpmFreeXpmImage" >&6; } -if test "x$ac_cv_lib_Xpm_XpmFreeXpmImage" = x""yes; then : +if test "x$ac_cv_lib_Xpm_XpmFreeXpmImage" = xyes; then : LDFLAGS=$save_old_LDFLAGS ext_shared=$save_ext_shared @@ -40803,6 +40796,7 @@ if test "$ext_shared" = "yes"; then GD_SHARED_LIBADD="-L$ai_p $GD_SHARED_LIBADD" + test "x$PHP_RPATH" != "xno" && \ test -n "$ld_runpath_switch" && GD_SHARED_LIBADD="$ld_runpath_switch$ai_p $GD_SHARED_LIBADD" else @@ -40814,6 +40808,7 @@ if test -n "$unique" && test "`eval $cmd`" = "" ; then eval "LIBPATH$unique=set" + test "x$PHP_RPATH" != "xno" && test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" LDFLAGS="$LDFLAGS -L$ai_p" PHP_RPATHS="$PHP_RPATHS $ai_p" @@ -40853,6 +40848,7 @@ if test -n "$unique" && test "`eval $cmd`" = "" ; then eval "LIBPATH$unique=set" + test "x$PHP_RPATH" != "xno" && test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" LDFLAGS="$LDFLAGS -L$ai_p" PHP_RPATHS="$PHP_RPATHS $ai_p" @@ -40900,6 +40896,7 @@ if test "$ext_shared" = "yes"; then GD_SHARED_LIBADD="-L$ai_p $GD_SHARED_LIBADD" + test "x$PHP_RPATH" != "xno" && \ test -n "$ld_runpath_switch" && GD_SHARED_LIBADD="$ld_runpath_switch$ai_p $GD_SHARED_LIBADD" else @@ -40911,6 +40908,7 @@ if test -n "$unique" && test "`eval $cmd`" = "" ; then eval "LIBPATH$unique=set" + test "x$PHP_RPATH" != "xno" && test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" LDFLAGS="$LDFLAGS -L$ai_p" PHP_RPATHS="$PHP_RPATHS $ai_p" @@ -40950,6 +40948,7 @@ if test -n "$unique" && test "`eval $cmd`" = "" ; then eval "LIBPATH$unique=set" + test "x$PHP_RPATH" != "xno" && test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" LDFLAGS="$LDFLAGS -L$ai_p" PHP_RPATHS="$PHP_RPATHS $ai_p" @@ -40984,7 +40983,7 @@ ext_shared=$save_ext_shared unset ac_cv_lib_Xpm_XpmFreeXpmImage - as_fn_error "Problem with libXpm.(a|so) or libX11.(a|so). Please check config.log for more information." "$LINENO" 5 + as_fn_error $? "Problem with libXpm.(a|so) or libX11.(a|so). Please check config.log for more information." "$LINENO" 5 fi @@ -41006,7 +41005,7 @@ done if test -z "$FREETYPE2_DIR"; then - as_fn_error "freetype.h not found." "$LINENO" 5 + as_fn_error $? "freetype.h not found." "$LINENO" 5 fi @@ -41080,6 +41079,7 @@ if test "$ext_shared" = "yes"; then LDFLAGS="-L$ai_p $LDFLAGS" + test "x$PHP_RPATH" != "xno" && \ test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS" else @@ -41091,6 +41091,7 @@ if test -n "$unique" && test "`eval $cmd`" = "" ; then eval "LIBPATH$unique=set" + test "x$PHP_RPATH" != "xno" && test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" LDFLAGS="$LDFLAGS -L$ai_p" PHP_RPATHS="$PHP_RPATHS $ai_p" @@ -41108,7 +41109,7 @@ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FT_New_Face in -lfreetype" >&5 $as_echo_n "checking for FT_New_Face in -lfreetype... " >&6; } -if test "${ac_cv_lib_freetype_FT_New_Face+set}" = set; then : +if ${ac_cv_lib_freetype_FT_New_Face+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS @@ -41142,7 +41143,7 @@ fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_freetype_FT_New_Face" >&5 $as_echo "$ac_cv_lib_freetype_FT_New_Face" >&6; } -if test "x$ac_cv_lib_freetype_FT_New_Face" = x""yes; then : +if test "x$ac_cv_lib_freetype_FT_New_Face" = xyes; then : LDFLAGS=$save_old_LDFLAGS ext_shared=$save_ext_shared @@ -41168,6 +41169,7 @@ if test "$ext_shared" = "yes"; then GD_SHARED_LIBADD="-L$ai_p $GD_SHARED_LIBADD" + test "x$PHP_RPATH" != "xno" && \ test -n "$ld_runpath_switch" && GD_SHARED_LIBADD="$ld_runpath_switch$ai_p $GD_SHARED_LIBADD" else @@ -41179,6 +41181,7 @@ if test -n "$unique" && test "`eval $cmd`" = "" ; then eval "LIBPATH$unique=set" + test "x$PHP_RPATH" != "xno" && test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" LDFLAGS="$LDFLAGS -L$ai_p" PHP_RPATHS="$PHP_RPATHS $ai_p" @@ -41218,6 +41221,7 @@ if test -n "$unique" && test "`eval $cmd`" = "" ; then eval "LIBPATH$unique=set" + test "x$PHP_RPATH" != "xno" && test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" LDFLAGS="$LDFLAGS -L$ai_p" PHP_RPATHS="$PHP_RPATHS $ai_p" @@ -41323,7 +41327,7 @@ ext_shared=$save_ext_shared unset ac_cv_lib_freetype_FT_New_Face - as_fn_error "Problem with freetype.(a|so). Please check config.log for more information." "$LINENO" 5 + as_fn_error $? "Problem with freetype.(a|so). Please check config.log for more information." "$LINENO" 5 fi @@ -41341,7 +41345,7 @@ done if test -z "$GD_T1_DIR"; then - as_fn_error "Your t1lib distribution is not installed correctly. Please reinstall it." "$LINENO" 5 + as_fn_error $? "Your t1lib distribution is not installed correctly. Please reinstall it." "$LINENO" 5 fi @@ -41415,6 +41419,7 @@ if test "$ext_shared" = "yes"; then LDFLAGS="-L$ai_p $LDFLAGS" + test "x$PHP_RPATH" != "xno" && \ test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS" else @@ -41426,6 +41431,7 @@ if test -n "$unique" && test "`eval $cmd`" = "" ; then eval "LIBPATH$unique=set" + test "x$PHP_RPATH" != "xno" && test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" LDFLAGS="$LDFLAGS -L$ai_p" PHP_RPATHS="$PHP_RPATHS $ai_p" @@ -41443,7 +41449,7 @@ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for T1_StrError in -lt1" >&5 $as_echo_n "checking for T1_StrError in -lt1... " >&6; } -if test "${ac_cv_lib_t1_T1_StrError+set}" = set; then : +if ${ac_cv_lib_t1_T1_StrError+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS @@ -41477,7 +41483,7 @@ fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_t1_T1_StrError" >&5 $as_echo "$ac_cv_lib_t1_T1_StrError" >&6; } -if test "x$ac_cv_lib_t1_T1_StrError" = x""yes; then : +if test "x$ac_cv_lib_t1_T1_StrError" = xyes; then : LDFLAGS=$save_old_LDFLAGS ext_shared=$save_ext_shared @@ -41537,6 +41543,7 @@ if test "$ext_shared" = "yes"; then GD_SHARED_LIBADD="-L$ai_p $GD_SHARED_LIBADD" + test "x$PHP_RPATH" != "xno" && \ test -n "$ld_runpath_switch" && GD_SHARED_LIBADD="$ld_runpath_switch$ai_p $GD_SHARED_LIBADD" else @@ -41548,6 +41555,7 @@ if test -n "$unique" && test "`eval $cmd`" = "" ; then eval "LIBPATH$unique=set" + test "x$PHP_RPATH" != "xno" && test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" LDFLAGS="$LDFLAGS -L$ai_p" PHP_RPATHS="$PHP_RPATHS $ai_p" @@ -41587,6 +41595,7 @@ if test -n "$unique" && test "`eval $cmd`" = "" ; then eval "LIBPATH$unique=set" + test "x$PHP_RPATH" != "xno" && test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" LDFLAGS="$LDFLAGS -L$ai_p" PHP_RPATHS="$PHP_RPATHS $ai_p" @@ -41621,7 +41630,7 @@ ext_shared=$save_ext_shared unset ac_cv_lib_t1_T1_StrError - as_fn_error "Problem with libt1.(a|so). Please check config.log for more information." "$LINENO" 5 + as_fn_error $? "Problem with libt1.(a|so). Please check config.log for more information." "$LINENO" 5 fi @@ -41634,7 +41643,7 @@ done for i in $PHP_LIBDIR/gd1.3 $PHP_LIBDIR/gd $PHP_LIBDIR gd1.3 gd ""; do - test -f "$PHP_GD/$i/libgd.$SHLIB_SUFFIX_NAME" || test -f "$PHP_GD/$i/libgd.a" && GD_LIB="$PHP_GD/$i" + test -f "$PHP_GD/$i/libgd.$SHLIB_SUFFIX_NAME" || test -f "$PHP_GD/$i/$DEB_HOST_MULTIARCH/libgd.$SHLIB_SUFFIX_NAME" || test -f "$PHP_GD/$i/libgd.a" && GD_LIB="$PHP_GD/$i" done if test -n "$GD_INCLUDE" && test -n "$GD_LIB"; then @@ -41659,6 +41668,7 @@ if test "$ext_shared" = "yes"; then GD_SHARED_LIBADD="-L$ai_p $GD_SHARED_LIBADD" + test "x$PHP_RPATH" != "xno" && \ test -n "$ld_runpath_switch" && GD_SHARED_LIBADD="$ld_runpath_switch$ai_p $GD_SHARED_LIBADD" else @@ -41670,6 +41680,7 @@ if test -n "$unique" && test "`eval $cmd`" = "" ; then eval "LIBPATH$unique=set" + test "x$PHP_RPATH" != "xno" && test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" LDFLAGS="$LDFLAGS -L$ai_p" PHP_RPATHS="$PHP_RPATHS $ai_p" @@ -41709,6 +41720,7 @@ if test -n "$unique" && test "`eval $cmd`" = "" ; then eval "LIBPATH$unique=set" + test "x$PHP_RPATH" != "xno" && test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" LDFLAGS="$LDFLAGS -L$ai_p" PHP_RPATHS="$PHP_RPATHS $ai_p" @@ -41808,6 +41820,7 @@ if test "$ext_shared" = "yes"; then LDFLAGS="-L$ai_p $LDFLAGS" + test "x$PHP_RPATH" != "xno" && \ test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS" else @@ -41819,6 +41832,7 @@ if test -n "$unique" && test "`eval $cmd`" = "" ; then eval "LIBPATH$unique=set" + test "x$PHP_RPATH" != "xno" && test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" LDFLAGS="$LDFLAGS -L$ai_p" PHP_RPATHS="$PHP_RPATHS $ai_p" @@ -41836,7 +41850,7 @@ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdImageString16 in -lgd" >&5 $as_echo_n "checking for gdImageString16 in -lgd... " >&6; } -if test "${ac_cv_lib_gd_gdImageString16+set}" = set; then : +if ${ac_cv_lib_gd_gdImageString16+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS @@ -41870,7 +41884,7 @@ fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gd_gdImageString16" >&5 $as_echo "$ac_cv_lib_gd_gdImageString16" >&6; } -if test "x$ac_cv_lib_gd_gdImageString16" = x""yes; then : +if test "x$ac_cv_lib_gd_gdImageString16" = xyes; then : LDFLAGS=$save_old_LDFLAGS ext_shared=$save_ext_shared @@ -41956,6 +41970,7 @@ if test "$ext_shared" = "yes"; then LDFLAGS="-L$ai_p $LDFLAGS" + test "x$PHP_RPATH" != "xno" && \ test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS" else @@ -41967,6 +41982,7 @@ if test -n "$unique" && test "`eval $cmd`" = "" ; then eval "LIBPATH$unique=set" + test "x$PHP_RPATH" != "xno" && test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" LDFLAGS="$LDFLAGS -L$ai_p" PHP_RPATHS="$PHP_RPATHS $ai_p" @@ -41984,7 +42000,7 @@ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdImagePaletteCopy in -lgd" >&5 $as_echo_n "checking for gdImagePaletteCopy in -lgd... " >&6; } -if test "${ac_cv_lib_gd_gdImagePaletteCopy+set}" = set; then : +if ${ac_cv_lib_gd_gdImagePaletteCopy+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS @@ -42018,7 +42034,7 @@ fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gd_gdImagePaletteCopy" >&5 $as_echo "$ac_cv_lib_gd_gdImagePaletteCopy" >&6; } -if test "x$ac_cv_lib_gd_gdImagePaletteCopy" = x""yes; then : +if test "x$ac_cv_lib_gd_gdImagePaletteCopy" = xyes; then : LDFLAGS=$save_old_LDFLAGS ext_shared=$save_ext_shared @@ -42104,6 +42120,7 @@ if test "$ext_shared" = "yes"; then LDFLAGS="-L$ai_p $LDFLAGS" + test "x$PHP_RPATH" != "xno" && \ test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS" else @@ -42115,6 +42132,7 @@ if test -n "$unique" && test "`eval $cmd`" = "" ; then eval "LIBPATH$unique=set" + test "x$PHP_RPATH" != "xno" && test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" LDFLAGS="$LDFLAGS -L$ai_p" PHP_RPATHS="$PHP_RPATHS $ai_p" @@ -42132,7 +42150,7 @@ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdImageCreateFromPng in -lgd" >&5 $as_echo_n "checking for gdImageCreateFromPng in -lgd... " >&6; } -if test "${ac_cv_lib_gd_gdImageCreateFromPng+set}" = set; then : +if ${ac_cv_lib_gd_gdImageCreateFromPng+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS @@ -42166,7 +42184,7 @@ fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gd_gdImageCreateFromPng" >&5 $as_echo "$ac_cv_lib_gd_gdImageCreateFromPng" >&6; } -if test "x$ac_cv_lib_gd_gdImageCreateFromPng" = x""yes; then : +if test "x$ac_cv_lib_gd_gdImageCreateFromPng" = xyes; then : LDFLAGS=$save_old_LDFLAGS ext_shared=$save_ext_shared @@ -42252,6 +42270,7 @@ if test "$ext_shared" = "yes"; then LDFLAGS="-L$ai_p $LDFLAGS" + test "x$PHP_RPATH" != "xno" && \ test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS" else @@ -42263,6 +42282,7 @@ if test -n "$unique" && test "`eval $cmd`" = "" ; then eval "LIBPATH$unique=set" + test "x$PHP_RPATH" != "xno" && test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" LDFLAGS="$LDFLAGS -L$ai_p" PHP_RPATHS="$PHP_RPATHS $ai_p" @@ -42280,7 +42300,7 @@ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdImageCreateFromGif in -lgd" >&5 $as_echo_n "checking for gdImageCreateFromGif in -lgd... " >&6; } -if test "${ac_cv_lib_gd_gdImageCreateFromGif+set}" = set; then : +if ${ac_cv_lib_gd_gdImageCreateFromGif+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS @@ -42314,7 +42334,7 @@ fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gd_gdImageCreateFromGif" >&5 $as_echo "$ac_cv_lib_gd_gdImageCreateFromGif" >&6; } -if test "x$ac_cv_lib_gd_gdImageCreateFromGif" = x""yes; then : +if test "x$ac_cv_lib_gd_gdImageCreateFromGif" = xyes; then : LDFLAGS=$save_old_LDFLAGS ext_shared=$save_ext_shared @@ -42400,6 +42420,7 @@ if test "$ext_shared" = "yes"; then LDFLAGS="-L$ai_p $LDFLAGS" + test "x$PHP_RPATH" != "xno" && \ test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS" else @@ -42411,6 +42432,7 @@ if test -n "$unique" && test "`eval $cmd`" = "" ; then eval "LIBPATH$unique=set" + test "x$PHP_RPATH" != "xno" && test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" LDFLAGS="$LDFLAGS -L$ai_p" PHP_RPATHS="$PHP_RPATHS $ai_p" @@ -42428,7 +42450,7 @@ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdImageGif in -lgd" >&5 $as_echo_n "checking for gdImageGif in -lgd... " >&6; } -if test "${ac_cv_lib_gd_gdImageGif+set}" = set; then : +if ${ac_cv_lib_gd_gdImageGif+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS @@ -42462,7 +42484,7 @@ fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gd_gdImageGif" >&5 $as_echo "$ac_cv_lib_gd_gdImageGif" >&6; } -if test "x$ac_cv_lib_gd_gdImageGif" = x""yes; then : +if test "x$ac_cv_lib_gd_gdImageGif" = xyes; then : LDFLAGS=$save_old_LDFLAGS ext_shared=$save_ext_shared @@ -42548,6 +42570,7 @@ if test "$ext_shared" = "yes"; then LDFLAGS="-L$ai_p $LDFLAGS" + test "x$PHP_RPATH" != "xno" && \ test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS" else @@ -42559,6 +42582,7 @@ if test -n "$unique" && test "`eval $cmd`" = "" ; then eval "LIBPATH$unique=set" + test "x$PHP_RPATH" != "xno" && test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" LDFLAGS="$LDFLAGS -L$ai_p" PHP_RPATHS="$PHP_RPATHS $ai_p" @@ -42576,7 +42600,7 @@ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdImageWBMP in -lgd" >&5 $as_echo_n "checking for gdImageWBMP in -lgd... " >&6; } -if test "${ac_cv_lib_gd_gdImageWBMP+set}" = set; then : +if ${ac_cv_lib_gd_gdImageWBMP+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS @@ -42610,7 +42634,7 @@ fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gd_gdImageWBMP" >&5 $as_echo "$ac_cv_lib_gd_gdImageWBMP" >&6; } -if test "x$ac_cv_lib_gd_gdImageWBMP" = x""yes; then : +if test "x$ac_cv_lib_gd_gdImageWBMP" = xyes; then : LDFLAGS=$save_old_LDFLAGS ext_shared=$save_ext_shared @@ -42696,6 +42720,7 @@ if test "$ext_shared" = "yes"; then LDFLAGS="-L$ai_p $LDFLAGS" + test "x$PHP_RPATH" != "xno" && \ test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS" else @@ -42707,6 +42732,7 @@ if test -n "$unique" && test "`eval $cmd`" = "" ; then eval "LIBPATH$unique=set" + test "x$PHP_RPATH" != "xno" && test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" LDFLAGS="$LDFLAGS -L$ai_p" PHP_RPATHS="$PHP_RPATHS $ai_p" @@ -42724,7 +42750,7 @@ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdImageCreateFromJpeg in -lgd" >&5 $as_echo_n "checking for gdImageCreateFromJpeg in -lgd... " >&6; } -if test "${ac_cv_lib_gd_gdImageCreateFromJpeg+set}" = set; then : +if ${ac_cv_lib_gd_gdImageCreateFromJpeg+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS @@ -42758,7 +42784,7 @@ fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gd_gdImageCreateFromJpeg" >&5 $as_echo "$ac_cv_lib_gd_gdImageCreateFromJpeg" >&6; } -if test "x$ac_cv_lib_gd_gdImageCreateFromJpeg" = x""yes; then : +if test "x$ac_cv_lib_gd_gdImageCreateFromJpeg" = xyes; then : LDFLAGS=$save_old_LDFLAGS ext_shared=$save_ext_shared @@ -42844,6 +42870,7 @@ if test "$ext_shared" = "yes"; then LDFLAGS="-L$ai_p $LDFLAGS" + test "x$PHP_RPATH" != "xno" && \ test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS" else @@ -42855,6 +42882,7 @@ if test -n "$unique" && test "`eval $cmd`" = "" ; then eval "LIBPATH$unique=set" + test "x$PHP_RPATH" != "xno" && test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" LDFLAGS="$LDFLAGS -L$ai_p" PHP_RPATHS="$PHP_RPATHS $ai_p" @@ -42872,7 +42900,7 @@ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdImageCreateFromXpm in -lgd" >&5 $as_echo_n "checking for gdImageCreateFromXpm in -lgd... " >&6; } -if test "${ac_cv_lib_gd_gdImageCreateFromXpm+set}" = set; then : +if ${ac_cv_lib_gd_gdImageCreateFromXpm+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS @@ -42906,7 +42934,7 @@ fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gd_gdImageCreateFromXpm" >&5 $as_echo "$ac_cv_lib_gd_gdImageCreateFromXpm" >&6; } -if test "x$ac_cv_lib_gd_gdImageCreateFromXpm" = x""yes; then : +if test "x$ac_cv_lib_gd_gdImageCreateFromXpm" = xyes; then : LDFLAGS=$save_old_LDFLAGS ext_shared=$save_ext_shared @@ -42992,6 +43020,7 @@ if test "$ext_shared" = "yes"; then LDFLAGS="-L$ai_p $LDFLAGS" + test "x$PHP_RPATH" != "xno" && \ test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS" else @@ -43003,6 +43032,7 @@ if test -n "$unique" && test "`eval $cmd`" = "" ; then eval "LIBPATH$unique=set" + test "x$PHP_RPATH" != "xno" && test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" LDFLAGS="$LDFLAGS -L$ai_p" PHP_RPATHS="$PHP_RPATHS $ai_p" @@ -43020,7 +43050,7 @@ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdImageCreateFromGd2 in -lgd" >&5 $as_echo_n "checking for gdImageCreateFromGd2 in -lgd... " >&6; } -if test "${ac_cv_lib_gd_gdImageCreateFromGd2+set}" = set; then : +if ${ac_cv_lib_gd_gdImageCreateFromGd2+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS @@ -43054,7 +43084,7 @@ fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gd_gdImageCreateFromGd2" >&5 $as_echo "$ac_cv_lib_gd_gdImageCreateFromGd2" >&6; } -if test "x$ac_cv_lib_gd_gdImageCreateFromGd2" = x""yes; then : +if test "x$ac_cv_lib_gd_gdImageCreateFromGd2" = xyes; then : LDFLAGS=$save_old_LDFLAGS ext_shared=$save_ext_shared @@ -43140,6 +43170,7 @@ if test "$ext_shared" = "yes"; then LDFLAGS="-L$ai_p $LDFLAGS" + test "x$PHP_RPATH" != "xno" && \ test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS" else @@ -43151,6 +43182,7 @@ if test -n "$unique" && test "`eval $cmd`" = "" ; then eval "LIBPATH$unique=set" + test "x$PHP_RPATH" != "xno" && test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" LDFLAGS="$LDFLAGS -L$ai_p" PHP_RPATHS="$PHP_RPATHS $ai_p" @@ -43168,7 +43200,7 @@ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdImageCreateTrueColor in -lgd" >&5 $as_echo_n "checking for gdImageCreateTrueColor in -lgd... " >&6; } -if test "${ac_cv_lib_gd_gdImageCreateTrueColor+set}" = set; then : +if ${ac_cv_lib_gd_gdImageCreateTrueColor+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS @@ -43202,7 +43234,7 @@ fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gd_gdImageCreateTrueColor" >&5 $as_echo "$ac_cv_lib_gd_gdImageCreateTrueColor" >&6; } -if test "x$ac_cv_lib_gd_gdImageCreateTrueColor" = x""yes; then : +if test "x$ac_cv_lib_gd_gdImageCreateTrueColor" = xyes; then : LDFLAGS=$save_old_LDFLAGS ext_shared=$save_ext_shared @@ -43288,6 +43320,7 @@ if test "$ext_shared" = "yes"; then LDFLAGS="-L$ai_p $LDFLAGS" + test "x$PHP_RPATH" != "xno" && \ test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS" else @@ -43299,6 +43332,7 @@ if test -n "$unique" && test "`eval $cmd`" = "" ; then eval "LIBPATH$unique=set" + test "x$PHP_RPATH" != "xno" && test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" LDFLAGS="$LDFLAGS -L$ai_p" PHP_RPATHS="$PHP_RPATHS $ai_p" @@ -43316,7 +43350,7 @@ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdImageSetTile in -lgd" >&5 $as_echo_n "checking for gdImageSetTile in -lgd... " >&6; } -if test "${ac_cv_lib_gd_gdImageSetTile+set}" = set; then : +if ${ac_cv_lib_gd_gdImageSetTile+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS @@ -43350,7 +43384,7 @@ fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gd_gdImageSetTile" >&5 $as_echo "$ac_cv_lib_gd_gdImageSetTile" >&6; } -if test "x$ac_cv_lib_gd_gdImageSetTile" = x""yes; then : +if test "x$ac_cv_lib_gd_gdImageSetTile" = xyes; then : LDFLAGS=$save_old_LDFLAGS ext_shared=$save_ext_shared @@ -43436,6 +43470,7 @@ if test "$ext_shared" = "yes"; then LDFLAGS="-L$ai_p $LDFLAGS" + test "x$PHP_RPATH" != "xno" && \ test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS" else @@ -43447,6 +43482,7 @@ if test -n "$unique" && test "`eval $cmd`" = "" ; then eval "LIBPATH$unique=set" + test "x$PHP_RPATH" != "xno" && test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" LDFLAGS="$LDFLAGS -L$ai_p" PHP_RPATHS="$PHP_RPATHS $ai_p" @@ -43464,7 +43500,7 @@ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdImageEllipse in -lgd" >&5 $as_echo_n "checking for gdImageEllipse in -lgd... " >&6; } -if test "${ac_cv_lib_gd_gdImageEllipse+set}" = set; then : +if ${ac_cv_lib_gd_gdImageEllipse+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS @@ -43498,7 +43534,7 @@ fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gd_gdImageEllipse" >&5 $as_echo "$ac_cv_lib_gd_gdImageEllipse" >&6; } -if test "x$ac_cv_lib_gd_gdImageEllipse" = x""yes; then : +if test "x$ac_cv_lib_gd_gdImageEllipse" = xyes; then : LDFLAGS=$save_old_LDFLAGS ext_shared=$save_ext_shared @@ -43584,6 +43620,7 @@ if test "$ext_shared" = "yes"; then LDFLAGS="-L$ai_p $LDFLAGS" + test "x$PHP_RPATH" != "xno" && \ test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS" else @@ -43595,6 +43632,7 @@ if test -n "$unique" && test "`eval $cmd`" = "" ; then eval "LIBPATH$unique=set" + test "x$PHP_RPATH" != "xno" && test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" LDFLAGS="$LDFLAGS -L$ai_p" PHP_RPATHS="$PHP_RPATHS $ai_p" @@ -43612,7 +43650,7 @@ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdImageSetBrush in -lgd" >&5 $as_echo_n "checking for gdImageSetBrush in -lgd... " >&6; } -if test "${ac_cv_lib_gd_gdImageSetBrush+set}" = set; then : +if ${ac_cv_lib_gd_gdImageSetBrush+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS @@ -43646,7 +43684,7 @@ fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gd_gdImageSetBrush" >&5 $as_echo "$ac_cv_lib_gd_gdImageSetBrush" >&6; } -if test "x$ac_cv_lib_gd_gdImageSetBrush" = x""yes; then : +if test "x$ac_cv_lib_gd_gdImageSetBrush" = xyes; then : LDFLAGS=$save_old_LDFLAGS ext_shared=$save_ext_shared @@ -43732,6 +43770,7 @@ if test "$ext_shared" = "yes"; then LDFLAGS="-L$ai_p $LDFLAGS" + test "x$PHP_RPATH" != "xno" && \ test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS" else @@ -43743,6 +43782,7 @@ if test -n "$unique" && test "`eval $cmd`" = "" ; then eval "LIBPATH$unique=set" + test "x$PHP_RPATH" != "xno" && test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" LDFLAGS="$LDFLAGS -L$ai_p" PHP_RPATHS="$PHP_RPATHS $ai_p" @@ -43760,7 +43800,7 @@ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdImageStringTTF in -lgd" >&5 $as_echo_n "checking for gdImageStringTTF in -lgd... " >&6; } -if test "${ac_cv_lib_gd_gdImageStringTTF+set}" = set; then : +if ${ac_cv_lib_gd_gdImageStringTTF+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS @@ -43794,7 +43834,7 @@ fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gd_gdImageStringTTF" >&5 $as_echo "$ac_cv_lib_gd_gdImageStringTTF" >&6; } -if test "x$ac_cv_lib_gd_gdImageStringTTF" = x""yes; then : +if test "x$ac_cv_lib_gd_gdImageStringTTF" = xyes; then : LDFLAGS=$save_old_LDFLAGS ext_shared=$save_ext_shared @@ -43880,6 +43920,7 @@ if test "$ext_shared" = "yes"; then LDFLAGS="-L$ai_p $LDFLAGS" + test "x$PHP_RPATH" != "xno" && \ test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS" else @@ -43891,6 +43932,7 @@ if test -n "$unique" && test "`eval $cmd`" = "" ; then eval "LIBPATH$unique=set" + test "x$PHP_RPATH" != "xno" && test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" LDFLAGS="$LDFLAGS -L$ai_p" PHP_RPATHS="$PHP_RPATHS $ai_p" @@ -43908,7 +43950,7 @@ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdImageStringFT in -lgd" >&5 $as_echo_n "checking for gdImageStringFT in -lgd... " >&6; } -if test "${ac_cv_lib_gd_gdImageStringFT+set}" = set; then : +if ${ac_cv_lib_gd_gdImageStringFT+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS @@ -43942,7 +43984,7 @@ fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gd_gdImageStringFT" >&5 $as_echo "$ac_cv_lib_gd_gdImageStringFT" >&6; } -if test "x$ac_cv_lib_gd_gdImageStringFT" = x""yes; then : +if test "x$ac_cv_lib_gd_gdImageStringFT" = xyes; then : LDFLAGS=$save_old_LDFLAGS ext_shared=$save_ext_shared @@ -44028,6 +44070,7 @@ if test "$ext_shared" = "yes"; then LDFLAGS="-L$ai_p $LDFLAGS" + test "x$PHP_RPATH" != "xno" && \ test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS" else @@ -44039,6 +44082,7 @@ if test -n "$unique" && test "`eval $cmd`" = "" ; then eval "LIBPATH$unique=set" + test "x$PHP_RPATH" != "xno" && test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" LDFLAGS="$LDFLAGS -L$ai_p" PHP_RPATHS="$PHP_RPATHS $ai_p" @@ -44056,7 +44100,7 @@ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdImageStringFTEx in -lgd" >&5 $as_echo_n "checking for gdImageStringFTEx in -lgd... " >&6; } -if test "${ac_cv_lib_gd_gdImageStringFTEx+set}" = set; then : +if ${ac_cv_lib_gd_gdImageStringFTEx+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS @@ -44090,7 +44134,7 @@ fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gd_gdImageStringFTEx" >&5 $as_echo "$ac_cv_lib_gd_gdImageStringFTEx" >&6; } -if test "x$ac_cv_lib_gd_gdImageStringFTEx" = x""yes; then : +if test "x$ac_cv_lib_gd_gdImageStringFTEx" = xyes; then : LDFLAGS=$save_old_LDFLAGS ext_shared=$save_ext_shared @@ -44176,6 +44220,7 @@ if test "$ext_shared" = "yes"; then LDFLAGS="-L$ai_p $LDFLAGS" + test "x$PHP_RPATH" != "xno" && \ test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS" else @@ -44187,6 +44232,7 @@ if test -n "$unique" && test "`eval $cmd`" = "" ; then eval "LIBPATH$unique=set" + test "x$PHP_RPATH" != "xno" && test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" LDFLAGS="$LDFLAGS -L$ai_p" PHP_RPATHS="$PHP_RPATHS $ai_p" @@ -44204,7 +44250,7 @@ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdImageColorClosestHWB in -lgd" >&5 $as_echo_n "checking for gdImageColorClosestHWB in -lgd... " >&6; } -if test "${ac_cv_lib_gd_gdImageColorClosestHWB+set}" = set; then : +if ${ac_cv_lib_gd_gdImageColorClosestHWB+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS @@ -44238,7 +44284,7 @@ fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gd_gdImageColorClosestHWB" >&5 $as_echo "$ac_cv_lib_gd_gdImageColorClosestHWB" >&6; } -if test "x$ac_cv_lib_gd_gdImageColorClosestHWB" = x""yes; then : +if test "x$ac_cv_lib_gd_gdImageColorClosestHWB" = xyes; then : LDFLAGS=$save_old_LDFLAGS ext_shared=$save_ext_shared @@ -44324,6 +44370,7 @@ if test "$ext_shared" = "yes"; then LDFLAGS="-L$ai_p $LDFLAGS" + test "x$PHP_RPATH" != "xno" && \ test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS" else @@ -44335,6 +44382,7 @@ if test -n "$unique" && test "`eval $cmd`" = "" ; then eval "LIBPATH$unique=set" + test "x$PHP_RPATH" != "xno" && test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" LDFLAGS="$LDFLAGS -L$ai_p" PHP_RPATHS="$PHP_RPATHS $ai_p" @@ -44352,7 +44400,7 @@ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdImageColorResolve in -lgd" >&5 $as_echo_n "checking for gdImageColorResolve in -lgd... " >&6; } -if test "${ac_cv_lib_gd_gdImageColorResolve+set}" = set; then : +if ${ac_cv_lib_gd_gdImageColorResolve+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS @@ -44386,7 +44434,7 @@ fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gd_gdImageColorResolve" >&5 $as_echo "$ac_cv_lib_gd_gdImageColorResolve" >&6; } -if test "x$ac_cv_lib_gd_gdImageColorResolve" = x""yes; then : +if test "x$ac_cv_lib_gd_gdImageColorResolve" = xyes; then : LDFLAGS=$save_old_LDFLAGS ext_shared=$save_ext_shared @@ -44472,6 +44520,7 @@ if test "$ext_shared" = "yes"; then LDFLAGS="-L$ai_p $LDFLAGS" + test "x$PHP_RPATH" != "xno" && \ test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS" else @@ -44483,6 +44532,7 @@ if test -n "$unique" && test "`eval $cmd`" = "" ; then eval "LIBPATH$unique=set" + test "x$PHP_RPATH" != "xno" && test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" LDFLAGS="$LDFLAGS -L$ai_p" PHP_RPATHS="$PHP_RPATHS $ai_p" @@ -44500,7 +44550,7 @@ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdImageGifCtx in -lgd" >&5 $as_echo_n "checking for gdImageGifCtx in -lgd... " >&6; } -if test "${ac_cv_lib_gd_gdImageGifCtx+set}" = set; then : +if ${ac_cv_lib_gd_gdImageGifCtx+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS @@ -44534,7 +44584,7 @@ fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gd_gdImageGifCtx" >&5 $as_echo "$ac_cv_lib_gd_gdImageGifCtx" >&6; } -if test "x$ac_cv_lib_gd_gdImageGifCtx" = x""yes; then : +if test "x$ac_cv_lib_gd_gdImageGifCtx" = xyes; then : LDFLAGS=$save_old_LDFLAGS ext_shared=$save_ext_shared @@ -44620,6 +44670,7 @@ if test "$ext_shared" = "yes"; then LDFLAGS="-L$ai_p $LDFLAGS" + test "x$PHP_RPATH" != "xno" && \ test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS" else @@ -44631,6 +44682,7 @@ if test -n "$unique" && test "`eval $cmd`" = "" ; then eval "LIBPATH$unique=set" + test "x$PHP_RPATH" != "xno" && test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" LDFLAGS="$LDFLAGS -L$ai_p" PHP_RPATHS="$PHP_RPATHS $ai_p" @@ -44648,7 +44700,7 @@ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdCacheCreate in -lgd" >&5 $as_echo_n "checking for gdCacheCreate in -lgd... " >&6; } -if test "${ac_cv_lib_gd_gdCacheCreate+set}" = set; then : +if ${ac_cv_lib_gd_gdCacheCreate+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS @@ -44682,7 +44734,7 @@ fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gd_gdCacheCreate" >&5 $as_echo "$ac_cv_lib_gd_gdCacheCreate" >&6; } -if test "x$ac_cv_lib_gd_gdCacheCreate" = x""yes; then : +if test "x$ac_cv_lib_gd_gdCacheCreate" = xyes; then : LDFLAGS=$save_old_LDFLAGS ext_shared=$save_ext_shared @@ -44768,6 +44820,7 @@ if test "$ext_shared" = "yes"; then LDFLAGS="-L$ai_p $LDFLAGS" + test "x$PHP_RPATH" != "xno" && \ test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS" else @@ -44779,6 +44832,7 @@ if test -n "$unique" && test "`eval $cmd`" = "" ; then eval "LIBPATH$unique=set" + test "x$PHP_RPATH" != "xno" && test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" LDFLAGS="$LDFLAGS -L$ai_p" PHP_RPATHS="$PHP_RPATHS $ai_p" @@ -44796,7 +44850,7 @@ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdFontCacheShutdown in -lgd" >&5 $as_echo_n "checking for gdFontCacheShutdown in -lgd... " >&6; } -if test "${ac_cv_lib_gd_gdFontCacheShutdown+set}" = set; then : +if ${ac_cv_lib_gd_gdFontCacheShutdown+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS @@ -44830,7 +44884,7 @@ fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gd_gdFontCacheShutdown" >&5 $as_echo "$ac_cv_lib_gd_gdFontCacheShutdown" >&6; } -if test "x$ac_cv_lib_gd_gdFontCacheShutdown" = x""yes; then : +if test "x$ac_cv_lib_gd_gdFontCacheShutdown" = xyes; then : LDFLAGS=$save_old_LDFLAGS ext_shared=$save_ext_shared @@ -44916,6 +44970,7 @@ if test "$ext_shared" = "yes"; then LDFLAGS="-L$ai_p $LDFLAGS" + test "x$PHP_RPATH" != "xno" && \ test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS" else @@ -44927,6 +44982,7 @@ if test -n "$unique" && test "`eval $cmd`" = "" ; then eval "LIBPATH$unique=set" + test "x$PHP_RPATH" != "xno" && test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" LDFLAGS="$LDFLAGS -L$ai_p" PHP_RPATHS="$PHP_RPATHS $ai_p" @@ -44944,7 +45000,7 @@ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdFreeFontCache in -lgd" >&5 $as_echo_n "checking for gdFreeFontCache in -lgd... " >&6; } -if test "${ac_cv_lib_gd_gdFreeFontCache+set}" = set; then : +if ${ac_cv_lib_gd_gdFreeFontCache+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS @@ -44978,7 +45034,7 @@ fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gd_gdFreeFontCache" >&5 $as_echo "$ac_cv_lib_gd_gdFreeFontCache" >&6; } -if test "x$ac_cv_lib_gd_gdFreeFontCache" = x""yes; then : +if test "x$ac_cv_lib_gd_gdFreeFontCache" = xyes; then : LDFLAGS=$save_old_LDFLAGS ext_shared=$save_ext_shared @@ -45064,6 +45120,7 @@ if test "$ext_shared" = "yes"; then LDFLAGS="-L$ai_p $LDFLAGS" + test "x$PHP_RPATH" != "xno" && \ test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS" else @@ -45075,6 +45132,7 @@ if test -n "$unique" && test "`eval $cmd`" = "" ; then eval "LIBPATH$unique=set" + test "x$PHP_RPATH" != "xno" && test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" LDFLAGS="$LDFLAGS -L$ai_p" PHP_RPATHS="$PHP_RPATHS $ai_p" @@ -45092,7 +45150,7 @@ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdFontCacheMutexSetup in -lgd" >&5 $as_echo_n "checking for gdFontCacheMutexSetup in -lgd... " >&6; } -if test "${ac_cv_lib_gd_gdFontCacheMutexSetup+set}" = set; then : +if ${ac_cv_lib_gd_gdFontCacheMutexSetup+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS @@ -45126,7 +45184,7 @@ fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gd_gdFontCacheMutexSetup" >&5 $as_echo "$ac_cv_lib_gd_gdFontCacheMutexSetup" >&6; } -if test "x$ac_cv_lib_gd_gdFontCacheMutexSetup" = x""yes; then : +if test "x$ac_cv_lib_gd_gdFontCacheMutexSetup" = xyes; then : LDFLAGS=$save_old_LDFLAGS ext_shared=$save_ext_shared @@ -45212,6 +45270,7 @@ if test "$ext_shared" = "yes"; then LDFLAGS="-L$ai_p $LDFLAGS" + test "x$PHP_RPATH" != "xno" && \ test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS" else @@ -45223,6 +45282,7 @@ if test -n "$unique" && test "`eval $cmd`" = "" ; then eval "LIBPATH$unique=set" + test "x$PHP_RPATH" != "xno" && test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" LDFLAGS="$LDFLAGS -L$ai_p" PHP_RPATHS="$PHP_RPATHS $ai_p" @@ -45240,7 +45300,7 @@ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdNewDynamicCtxEx in -lgd" >&5 $as_echo_n "checking for gdNewDynamicCtxEx in -lgd... " >&6; } -if test "${ac_cv_lib_gd_gdNewDynamicCtxEx+set}" = set; then : +if ${ac_cv_lib_gd_gdNewDynamicCtxEx+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS @@ -45274,7 +45334,7 @@ fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gd_gdNewDynamicCtxEx" >&5 $as_echo "$ac_cv_lib_gd_gdNewDynamicCtxEx" >&6; } -if test "x$ac_cv_lib_gd_gdNewDynamicCtxEx" = x""yes; then : +if test "x$ac_cv_lib_gd_gdNewDynamicCtxEx" = xyes; then : LDFLAGS=$save_old_LDFLAGS ext_shared=$save_ext_shared @@ -45293,9 +45353,9 @@ elif test -z "$GD_INCLUDE"; then - as_fn_error "Unable to find gd.h anywhere under $PHP_GD" "$LINENO" 5 + as_fn_error $? "Unable to find gd.h anywhere under $PHP_GD" "$LINENO" 5 else - as_fn_error "Unable to find libgd.(a|so) anywhere under $PHP_GD" "$LINENO" 5 + as_fn_error $? "Unable to find libgd.(a|so) anywhere under $PHP_GD" "$LINENO" 5 fi @@ -45676,7 +45736,7 @@ LIBS=$old_LIBS - as_fn_error "GD build test failed. Please check the config.log for details." "$LINENO" 5 + as_fn_error $? "GD build test failed. Please check the config.log for details." "$LINENO" 5 fi @@ -45788,6 +45848,7 @@ if test "$ext_shared" = "yes"; then LDFLAGS="-L$ai_p $LDFLAGS" + test "x$PHP_RPATH" != "xno" && \ test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS" else @@ -45799,6 +45860,7 @@ if test -n "$unique" && test "`eval $cmd`" = "" ; then eval "LIBPATH$unique=set" + test "x$PHP_RPATH" != "xno" && test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" LDFLAGS="$LDFLAGS -L$ai_p" PHP_RPATHS="$PHP_RPATHS $ai_p" @@ -45816,7 +45878,7 @@ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdImageCreate in -lgd" >&5 $as_echo_n "checking for gdImageCreate in -lgd... " >&6; } -if test "${ac_cv_lib_gd_gdImageCreate+set}" = set; then : +if ${ac_cv_lib_gd_gdImageCreate+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS @@ -45850,7 +45912,7 @@ fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gd_gdImageCreate" >&5 $as_echo "$ac_cv_lib_gd_gdImageCreate" >&6; } -if test "x$ac_cv_lib_gd_gdImageCreate" = x""yes; then : +if test "x$ac_cv_lib_gd_gdImageCreate" = xyes; then : LDFLAGS=$save_old_LDFLAGS ext_shared=$save_ext_shared @@ -45862,7 +45924,7 @@ ext_shared=$save_ext_shared unset ac_cv_lib_gd_gdImageCreate - as_fn_error "GD build test failed. Please check the config.log for details." "$LINENO" 5 + as_fn_error $? "GD build test failed. Please check the config.log for details." "$LINENO" 5 fi @@ -45947,7 +46009,7 @@ done if test -z "$GETTEXT_DIR"; then - as_fn_error "Cannot locate header file libintl.h" "$LINENO" 5 + as_fn_error $? "Cannot locate header file libintl.h" "$LINENO" 5 fi GETTEXT_LIBDIR=$GETTEXT_DIR/$PHP_LIBDIR @@ -45957,7 +46019,7 @@ LDFLAGS="$LDFLAGS -L$GETTEXT_LIBDIR" { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bindtextdomain in -lintl" >&5 $as_echo_n "checking for bindtextdomain in -lintl... " >&6; } -if test "${ac_cv_lib_intl_bindtextdomain+set}" = set; then : +if ${ac_cv_lib_intl_bindtextdomain+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS @@ -45991,7 +46053,7 @@ fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_bindtextdomain" >&5 $as_echo "$ac_cv_lib_intl_bindtextdomain" >&6; } -if test "x$ac_cv_lib_intl_bindtextdomain" = x""yes; then : +if test "x$ac_cv_lib_intl_bindtextdomain" = xyes; then : GETTEXT_LIBS=intl GETTEXT_CHECK_IN_LIB=intl @@ -45999,7 +46061,7 @@ else { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bindtextdomain in -lc" >&5 $as_echo_n "checking for bindtextdomain in -lc... " >&6; } -if test "${ac_cv_lib_c_bindtextdomain+set}" = set; then : +if ${ac_cv_lib_c_bindtextdomain+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS @@ -46033,14 +46095,14 @@ fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_bindtextdomain" >&5 $as_echo "$ac_cv_lib_c_bindtextdomain" >&6; } -if test "x$ac_cv_lib_c_bindtextdomain" = x""yes; then : +if test "x$ac_cv_lib_c_bindtextdomain" = xyes; then : GETTEXT_LIBS= GETTEXT_CHECK_IN_LIB=c else - as_fn_error "Unable to find required gettext library" "$LINENO" 5 + as_fn_error $? "Unable to find required gettext library" "$LINENO" 5 fi @@ -46371,6 +46433,7 @@ if test "$ext_shared" = "yes"; then GETTEXT_SHARED_LIBADD="-L$ai_p $GETTEXT_SHARED_LIBADD" + test "x$PHP_RPATH" != "xno" && \ test -n "$ld_runpath_switch" && GETTEXT_SHARED_LIBADD="$ld_runpath_switch$ai_p $GETTEXT_SHARED_LIBADD" else @@ -46382,6 +46445,7 @@ if test -n "$unique" && test "`eval $cmd`" = "" ; then eval "LIBPATH$unique=set" + test "x$PHP_RPATH" != "xno" && test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" LDFLAGS="$LDFLAGS -L$ai_p" PHP_RPATHS="$PHP_RPATHS $ai_p" @@ -46421,6 +46485,7 @@ if test -n "$unique" && test "`eval $cmd`" = "" ; then eval "LIBPATH$unique=set" + test "x$PHP_RPATH" != "xno" && test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" LDFLAGS="$LDFLAGS -L$ai_p" PHP_RPATHS="$PHP_RPATHS $ai_p" @@ -46484,7 +46549,7 @@ as_ac_Lib=`$as_echo "ac_cv_lib_$GETTEXT_CHECK_IN_LIB''_ngettext" | $as_tr_sh` { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ngettext in -l$GETTEXT_CHECK_IN_LIB" >&5 $as_echo_n "checking for ngettext in -l$GETTEXT_CHECK_IN_LIB... " >&6; } -if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then : +if eval \${$as_ac_Lib+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS @@ -46519,8 +46584,7 @@ eval ac_res=\$$as_ac_Lib { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 $as_echo "$ac_res" >&6; } -eval as_val=\$$as_ac_Lib - if test "x$as_val" = x""yes; then : +if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : $as_echo "#define HAVE_NGETTEXT 1" >>confdefs.h @@ -46529,7 +46593,7 @@ as_ac_Lib=`$as_echo "ac_cv_lib_$GETTEXT_CHECK_IN_LIB''_dngettext" | $as_tr_sh` { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dngettext in -l$GETTEXT_CHECK_IN_LIB" >&5 $as_echo_n "checking for dngettext in -l$GETTEXT_CHECK_IN_LIB... " >&6; } -if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then : +if eval \${$as_ac_Lib+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS @@ -46564,8 +46628,7 @@ eval ac_res=\$$as_ac_Lib { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 $as_echo "$ac_res" >&6; } -eval as_val=\$$as_ac_Lib - if test "x$as_val" = x""yes; then : +if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : $as_echo "#define HAVE_DNGETTEXT 1" >>confdefs.h @@ -46574,7 +46637,7 @@ as_ac_Lib=`$as_echo "ac_cv_lib_$GETTEXT_CHECK_IN_LIB''_dcngettext" | $as_tr_sh` { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dcngettext in -l$GETTEXT_CHECK_IN_LIB" >&5 $as_echo_n "checking for dcngettext in -l$GETTEXT_CHECK_IN_LIB... " >&6; } -if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then : +if eval \${$as_ac_Lib+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS @@ -46609,8 +46672,7 @@ eval ac_res=\$$as_ac_Lib { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 $as_echo "$ac_res" >&6; } -eval as_val=\$$as_ac_Lib - if test "x$as_val" = x""yes; then : +if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : $as_echo "#define HAVE_DCNGETTEXT 1" >>confdefs.h @@ -46619,7 +46681,7 @@ as_ac_Lib=`$as_echo "ac_cv_lib_$GETTEXT_CHECK_IN_LIB''_bind_textdomain_codeset" | $as_tr_sh` { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bind_textdomain_codeset in -l$GETTEXT_CHECK_IN_LIB" >&5 $as_echo_n "checking for bind_textdomain_codeset in -l$GETTEXT_CHECK_IN_LIB... " >&6; } -if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then : +if eval \${$as_ac_Lib+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS @@ -46654,8 +46716,7 @@ eval ac_res=\$$as_ac_Lib { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 $as_echo "$ac_res" >&6; } -eval as_val=\$$as_ac_Lib - if test "x$as_val" = x""yes; then : +if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : $as_echo "#define HAVE_BIND_TEXTDOMAIN_CODESET 1" >>confdefs.h @@ -46717,7 +46778,7 @@ done if test -z "$GMP_DIR"; then - as_fn_error "Unable to locate gmp.h" "$LINENO" 5 + as_fn_error $? "Unable to locate gmp.h" "$LINENO" 5 fi @@ -46791,6 +46852,7 @@ if test "$ext_shared" = "yes"; then LDFLAGS="-L$ai_p $LDFLAGS" + test "x$PHP_RPATH" != "xno" && \ test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS" else @@ -46802,6 +46864,7 @@ if test -n "$unique" && test "`eval $cmd`" = "" ; then eval "LIBPATH$unique=set" + test "x$PHP_RPATH" != "xno" && test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" LDFLAGS="$LDFLAGS -L$ai_p" PHP_RPATHS="$PHP_RPATHS $ai_p" @@ -46819,7 +46882,7 @@ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __gmp_randinit_lc_2exp_size in -lgmp" >&5 $as_echo_n "checking for __gmp_randinit_lc_2exp_size in -lgmp... " >&6; } -if test "${ac_cv_lib_gmp___gmp_randinit_lc_2exp_size+set}" = set; then : +if ${ac_cv_lib_gmp___gmp_randinit_lc_2exp_size+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS @@ -46853,7 +46916,7 @@ fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gmp___gmp_randinit_lc_2exp_size" >&5 $as_echo "$ac_cv_lib_gmp___gmp_randinit_lc_2exp_size" >&6; } -if test "x$ac_cv_lib_gmp___gmp_randinit_lc_2exp_size" = x""yes; then : +if test "x$ac_cv_lib_gmp___gmp_randinit_lc_2exp_size" = xyes; then : LDFLAGS=$save_old_LDFLAGS ext_shared=$save_ext_shared @@ -46936,6 +46999,7 @@ if test "$ext_shared" = "yes"; then LDFLAGS="-L$ai_p $LDFLAGS" + test "x$PHP_RPATH" != "xno" && \ test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS" else @@ -46947,6 +47011,7 @@ if test -n "$unique" && test "`eval $cmd`" = "" ; then eval "LIBPATH$unique=set" + test "x$PHP_RPATH" != "xno" && test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" LDFLAGS="$LDFLAGS -L$ai_p" PHP_RPATHS="$PHP_RPATHS $ai_p" @@ -46964,7 +47029,7 @@ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gmp_randinit_lc_2exp_size in -lgmp" >&5 $as_echo_n "checking for gmp_randinit_lc_2exp_size in -lgmp... " >&6; } -if test "${ac_cv_lib_gmp_gmp_randinit_lc_2exp_size+set}" = set; then : +if ${ac_cv_lib_gmp_gmp_randinit_lc_2exp_size+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS @@ -46998,7 +47063,7 @@ fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gmp_gmp_randinit_lc_2exp_size" >&5 $as_echo "$ac_cv_lib_gmp_gmp_randinit_lc_2exp_size" >&6; } -if test "x$ac_cv_lib_gmp_gmp_randinit_lc_2exp_size" = x""yes; then : +if test "x$ac_cv_lib_gmp_gmp_randinit_lc_2exp_size" = xyes; then : LDFLAGS=$save_old_LDFLAGS ext_shared=$save_ext_shared @@ -47010,7 +47075,7 @@ ext_shared=$save_ext_shared unset ac_cv_lib_gmp_gmp_randinit_lc_2exp_size - as_fn_error "GNU MP Library version 4.1.2 or greater required." "$LINENO" 5 + as_fn_error $? "GNU MP Library version 4.1.2 or greater required." "$LINENO" 5 fi @@ -47041,6 +47106,7 @@ if test "$ext_shared" = "yes"; then GMP_SHARED_LIBADD="-L$ai_p $GMP_SHARED_LIBADD" + test "x$PHP_RPATH" != "xno" && \ test -n "$ld_runpath_switch" && GMP_SHARED_LIBADD="$ld_runpath_switch$ai_p $GMP_SHARED_LIBADD" else @@ -47052,6 +47118,7 @@ if test -n "$unique" && test "`eval $cmd`" = "" ; then eval "LIBPATH$unique=set" + test "x$PHP_RPATH" != "xno" && test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" LDFLAGS="$LDFLAGS -L$ai_p" PHP_RPATHS="$PHP_RPATHS $ai_p" @@ -47091,6 +47158,7 @@ if test -n "$unique" && test "`eval $cmd`" = "" ; then eval "LIBPATH$unique=set" + test "x$PHP_RPATH" != "xno" && test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" LDFLAGS="$LDFLAGS -L$ai_p" PHP_RPATHS="$PHP_RPATHS $ai_p" @@ -47557,7 +47625,7 @@ { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 $as_echo_n "checking whether byte ordering is bigendian... " >&6; } -if test "${ac_cv_c_bigendian_php+set}" = set; then : +if ${ac_cv_c_bigendian_php+:} false; then : $as_echo_n "(cached) " >&6 else @@ -47607,7 +47675,7 @@ # This bug is HP SR number 8606223364. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5 $as_echo_n "checking size of short... " >&6; } -if test "${ac_cv_sizeof_short+set}" = set; then : +if ${ac_cv_sizeof_short+:} false; then : $as_echo_n "(cached) " >&6 else if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then : @@ -47616,9 +47684,8 @@ if test "$ac_cv_type_short" = yes; then { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} -{ as_fn_set_status 77 -as_fn_error "cannot compute sizeof (short) -See \`config.log' for more details." "$LINENO" 5; }; } +as_fn_error 77 "cannot compute sizeof (short) +See \`config.log' for more details" "$LINENO" 5; } else ac_cv_sizeof_short=0 fi @@ -47641,7 +47708,7 @@ # This bug is HP SR number 8606223364. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5 $as_echo_n "checking size of int... " >&6; } -if test "${ac_cv_sizeof_int+set}" = set; then : +if ${ac_cv_sizeof_int+:} false; then : $as_echo_n "(cached) " >&6 else if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then : @@ -47650,9 +47717,8 @@ if test "$ac_cv_type_int" = yes; then { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} -{ as_fn_set_status 77 -as_fn_error "cannot compute sizeof (int) -See \`config.log' for more details." "$LINENO" 5; }; } +as_fn_error 77 "cannot compute sizeof (int) +See \`config.log' for more details" "$LINENO" 5; } else ac_cv_sizeof_int=0 fi @@ -47675,7 +47741,7 @@ # This bug is HP SR number 8606223364. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5 $as_echo_n "checking size of long... " >&6; } -if test "${ac_cv_sizeof_long+set}" = set; then : +if ${ac_cv_sizeof_long+:} false; then : $as_echo_n "(cached) " >&6 else if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then : @@ -47684,9 +47750,8 @@ if test "$ac_cv_type_long" = yes; then { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} -{ as_fn_set_status 77 -as_fn_error "cannot compute sizeof (long) -See \`config.log' for more details." "$LINENO" 5; }; } +as_fn_error 77 "cannot compute sizeof (long) +See \`config.log' for more details" "$LINENO" 5; } else ac_cv_sizeof_long=0 fi @@ -47709,7 +47774,7 @@ # This bug is HP SR number 8606223364. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5 $as_echo_n "checking size of long long... " >&6; } -if test "${ac_cv_sizeof_long_long+set}" = set; then : +if ${ac_cv_sizeof_long_long+:} false; then : $as_echo_n "(cached) " >&6 else if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then : @@ -47718,9 +47783,8 @@ if test "$ac_cv_type_long_long" = yes; then { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} -{ as_fn_set_status 77 -as_fn_error "cannot compute sizeof (long long) -See \`config.log' for more details." "$LINENO" 5; }; } +as_fn_error 77 "cannot compute sizeof (long long) +See \`config.log' for more details" "$LINENO" 5; } else ac_cv_sizeof_long_long=0 fi @@ -48133,14 +48197,14 @@ LIBS_save="$LIBS" LIBS= ac_fn_c_check_func "$LINENO" "iconv" "ac_cv_func_iconv" -if test "x$ac_cv_func_iconv" = x""yes; then : +if test "x$ac_cv_func_iconv" = xyes; then : found_iconv=yes else ac_fn_c_check_func "$LINENO" "libiconv" "ac_cv_func_libiconv" -if test "x$ac_cv_func_libiconv" = x""yes; then : +if test "x$ac_cv_func_libiconv" = xyes; then : echo "#define HAVE_LIBICONV 1" > ext/iconv/php_have_libiconv.h @@ -48176,7 +48240,7 @@ done if test -z "$ICONV_DIR"; then - as_fn_error "Please specify the install prefix of iconv with --with-iconv=" "$LINENO" 5 + as_fn_error $? "Please specify the install prefix of iconv with --with-iconv=" "$LINENO" 5 fi if test -f $ICONV_DIR/$PHP_LIBDIR/lib$iconv_lib_name.a || @@ -48253,6 +48317,7 @@ if test "$ext_shared" = "yes"; then LDFLAGS="-L$ai_p $LDFLAGS" + test "x$PHP_RPATH" != "xno" && \ test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS" else @@ -48264,6 +48329,7 @@ if test -n "$unique" && test "`eval $cmd`" = "" ; then eval "LIBPATH$unique=set" + test "x$PHP_RPATH" != "xno" && test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" LDFLAGS="$LDFLAGS -L$ai_p" PHP_RPATHS="$PHP_RPATHS $ai_p" @@ -48282,7 +48348,7 @@ as_ac_Lib=`$as_echo "ac_cv_lib_$iconv_lib_name''_libiconv" | $as_tr_sh` { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libiconv in -l$iconv_lib_name" >&5 $as_echo_n "checking for libiconv in -l$iconv_lib_name... " >&6; } -if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then : +if eval \${$as_ac_Lib+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS @@ -48317,8 +48383,7 @@ eval ac_res=\$$as_ac_Lib { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 $as_echo "$ac_res" >&6; } -eval as_val=\$$as_ac_Lib - if test "x$as_val" = x""yes; then : +if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : LDFLAGS=$save_old_LDFLAGS ext_shared=$save_ext_shared @@ -48415,6 +48480,7 @@ if test "$ext_shared" = "yes"; then LDFLAGS="-L$ai_p $LDFLAGS" + test "x$PHP_RPATH" != "xno" && \ test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS" else @@ -48426,6 +48492,7 @@ if test -n "$unique" && test "`eval $cmd`" = "" ; then eval "LIBPATH$unique=set" + test "x$PHP_RPATH" != "xno" && test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" LDFLAGS="$LDFLAGS -L$ai_p" PHP_RPATHS="$PHP_RPATHS $ai_p" @@ -48444,7 +48511,7 @@ as_ac_Lib=`$as_echo "ac_cv_lib_$iconv_lib_name''_iconv" | $as_tr_sh` { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv in -l$iconv_lib_name" >&5 $as_echo_n "checking for iconv in -l$iconv_lib_name... " >&6; } -if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then : +if eval \${$as_ac_Lib+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS @@ -48479,8 +48546,7 @@ eval ac_res=\$$as_ac_Lib { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 $as_echo "$ac_res" >&6; } -eval as_val=\$$as_ac_Lib - if test "x$as_val" = x""yes; then : +if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : LDFLAGS=$save_old_LDFLAGS ext_shared=$save_ext_shared @@ -48533,6 +48599,7 @@ if test "$ext_shared" = "yes"; then ICONV_SHARED_LIBADD="-L$ai_p $ICONV_SHARED_LIBADD" + test "x$PHP_RPATH" != "xno" && \ test -n "$ld_runpath_switch" && ICONV_SHARED_LIBADD="$ld_runpath_switch$ai_p $ICONV_SHARED_LIBADD" else @@ -48544,6 +48611,7 @@ if test -n "$unique" && test "`eval $cmd`" = "" ; then eval "LIBPATH$unique=set" + test "x$PHP_RPATH" != "xno" && test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" LDFLAGS="$LDFLAGS -L$ai_p" PHP_RPATHS="$PHP_RPATHS $ai_p" @@ -48583,6 +48651,7 @@ if test -n "$unique" && test "`eval $cmd`" = "" ; then eval "LIBPATH$unique=set" + test "x$PHP_RPATH" != "xno" && test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" LDFLAGS="$LDFLAGS -L$ai_p" PHP_RPATHS="$PHP_RPATHS $ai_p" @@ -48843,6 +48912,7 @@ if test "$ext_shared" = "yes"; then ICONV_SHARED_LIBADD="-L$ai_p $ICONV_SHARED_LIBADD" + test "x$PHP_RPATH" != "xno" && \ test -n "$ld_runpath_switch" && ICONV_SHARED_LIBADD="$ld_runpath_switch$ai_p $ICONV_SHARED_LIBADD" else @@ -48854,6 +48924,7 @@ if test -n "$unique" && test "`eval $cmd`" = "" ; then eval "LIBPATH$unique=set" + test "x$PHP_RPATH" != "xno" && test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" LDFLAGS="$LDFLAGS -L$ai_p" PHP_RPATHS="$PHP_RPATHS $ai_p" @@ -48893,6 +48964,7 @@ if test -n "$unique" && test "`eval $cmd`" = "" ; then eval "LIBPATH$unique=set" + test "x$PHP_RPATH" != "xno" && test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" LDFLAGS="$LDFLAGS -L$ai_p" PHP_RPATHS="$PHP_RPATHS $ai_p" @@ -49381,7 +49453,7 @@ else - as_fn_error "Please reinstall the iconv library." "$LINENO" 5 + as_fn_error $? "Please reinstall the iconv library." "$LINENO" 5 fi fi @@ -49888,7 +49960,7 @@ CFLAGS="-I$IMAP_INC_DIR" { $as_echo "$as_me:${as_lineno-$LINENO}: checking for utf8_mime2text signature" >&5 $as_echo_n "checking for utf8_mime2text signature... " >&6; } -if test "${ac_cv_utf8_mime2text+set}" = set; then : +if ${ac_cv_utf8_mime2text+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -49933,7 +50005,7 @@ CFLAGS="-I$IMAP_INC_DIR" { $as_echo "$as_me:${as_lineno-$LINENO}: checking for U8T_DECOMPOSE" >&5 $as_echo_n "checking for U8T_DECOMPOSE... " >&6; } -if test "${ac_cv_u8t_canonical+set}" = set; then : +if ${ac_cv_u8t_canonical+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -49968,10 +50040,10 @@ CFLAGS=$old_CFLAGS if test "$ac_cv_u8t_decompose" = "no" && test "$ac_cv_utf8_mime2text" = "new"; then - as_fn_error "utf8_mime2text() has new signature, but U8T_CANONICAL is missing. This should not happen. Check config.log for additional information." "$LINENO" 5 + as_fn_error $? "utf8_mime2text() has new signature, but U8T_CANONICAL is missing. This should not happen. Check config.log for additional information." "$LINENO" 5 fi if test "$ac_cv_u8t_decompose" = "yes" && test "$ac_cv_utf8_mime2text" = "old"; then - as_fn_error "utf8_mime2text() has old signature, but U8T_CANONICAL is present. This should not happen. Check config.log for additional information." "$LINENO" 5 + as_fn_error $? "utf8_mime2text() has old signature, but U8T_CANONICAL is present. This should not happen. Check config.log for additional information." "$LINENO" 5 fi old_CPPFLAGS=$CPPFLAGS @@ -50066,6 +50138,7 @@ if test "$ext_shared" = "yes"; then LDFLAGS="-L$ai_p $LDFLAGS" + test "x$PHP_RPATH" != "xno" && \ test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS" else @@ -50077,6 +50150,7 @@ if test -n "$unique" && test "`eval $cmd`" = "" ; then eval "LIBPATH$unique=set" + test "x$PHP_RPATH" != "xno" && test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" LDFLAGS="$LDFLAGS -L$ai_p" PHP_RPATHS="$PHP_RPATHS $ai_p" @@ -50094,7 +50168,7 @@ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pam_start in -lpam" >&5 $as_echo_n "checking for pam_start in -lpam... " >&6; } -if test "${ac_cv_lib_pam_pam_start+set}" = set; then : +if ${ac_cv_lib_pam_pam_start+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS @@ -50128,7 +50202,7 @@ fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pam_pam_start" >&5 $as_echo "$ac_cv_lib_pam_pam_start" >&6; } -if test "x$ac_cv_lib_pam_pam_start" = x""yes; then : +if test "x$ac_cv_lib_pam_pam_start" = xyes; then : LDFLAGS=$save_old_LDFLAGS ext_shared=$save_ext_shared @@ -50240,6 +50314,7 @@ if test "$ext_shared" = "yes"; then LDFLAGS="-L$ai_p $LDFLAGS" + test "x$PHP_RPATH" != "xno" && \ test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS" else @@ -50251,6 +50326,7 @@ if test -n "$unique" && test "`eval $cmd`" = "" ; then eval "LIBPATH$unique=set" + test "x$PHP_RPATH" != "xno" && test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" LDFLAGS="$LDFLAGS -L$ai_p" PHP_RPATHS="$PHP_RPATHS $ai_p" @@ -50268,7 +50344,7 @@ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypt in -lcrypt" >&5 $as_echo_n "checking for crypt in -lcrypt... " >&6; } -if test "${ac_cv_lib_crypt_crypt+set}" = set; then : +if ${ac_cv_lib_crypt_crypt+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS @@ -50302,7 +50378,7 @@ fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypt_crypt" >&5 $as_echo "$ac_cv_lib_crypt_crypt" >&6; } -if test "x$ac_cv_lib_crypt_crypt" = x""yes; then : +if test "x$ac_cv_lib_crypt_crypt" = xyes; then : LDFLAGS=$save_old_LDFLAGS ext_shared=$save_ext_shared @@ -50358,7 +50434,7 @@ if test -z "$IMAP_DIR"; then - as_fn_error "Cannot find rfc822.h. Please check your c-client installation." "$LINENO" 5 + as_fn_error $? "Cannot find rfc822.h. Please check your c-client installation." "$LINENO" 5 fi if test -r "$IMAP_DIR/c-client/c-client.a"; then @@ -50384,7 +50460,7 @@ done if test -z "$IMAP_LIBDIR"; then - as_fn_error "Cannot find imap library (libc-client.a). Please check your c-client installation." "$LINENO" 5 + as_fn_error $? "Cannot find imap library (libc-client.a). Please check your c-client installation." "$LINENO" 5 fi @@ -50457,6 +50533,7 @@ if test "$ext_shared" = "yes"; then IMAP_SHARED_LIBADD="-L$ai_p $IMAP_SHARED_LIBADD" + test "x$PHP_RPATH" != "xno" && \ test -n "$ld_runpath_switch" && IMAP_SHARED_LIBADD="$ld_runpath_switch$ai_p $IMAP_SHARED_LIBADD" else @@ -50468,6 +50545,7 @@ if test -n "$unique" && test "`eval $cmd`" = "" ; then eval "LIBPATH$unique=set" + test "x$PHP_RPATH" != "xno" && test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" LDFLAGS="$LDFLAGS -L$ai_p" PHP_RPATHS="$PHP_RPATHS $ai_p" @@ -50491,7 +50569,7 @@ set dummy krb5-config; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } -if test "${ac_cv_path_KRB5_CONFIG+set}" = set; then : +if ${ac_cv_path_KRB5_CONFIG+:} false; then : $as_echo_n "(cached) " >&6 else case $KRB5_CONFIG in @@ -50506,7 +50584,7 @@ IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_path_KRB5_CONFIG="$as_dir/$ac_word$ac_exec_ext" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 @@ -50600,6 +50678,7 @@ if test "$ext_shared" = "yes"; then IMAP_SHARED_LIBADD="-L$ai_p $IMAP_SHARED_LIBADD" + test "x$PHP_RPATH" != "xno" && \ test -n "$ld_runpath_switch" && IMAP_SHARED_LIBADD="$ld_runpath_switch$ai_p $IMAP_SHARED_LIBADD" else @@ -50611,6 +50690,7 @@ if test -n "$unique" && test "`eval $cmd`" = "" ; then eval "LIBPATH$unique=set" + test "x$PHP_RPATH" != "xno" && test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" LDFLAGS="$LDFLAGS -L$ai_p" PHP_RPATHS="$PHP_RPATHS $ai_p" @@ -50676,7 +50756,7 @@ fi for i in $PHP_KERBEROS; do - if test -f $i/$PHP_LIBDIR/libkrb5.a || test -f $i/$PHP_LIBDIR/libkrb5.$SHLIB_SUFFIX_NAME; then + if test -f $i/$PHP_LIBDIR/libkrb5.$SHLIB_SUFFIX_NAME || test -f $i/$PHP_LIBDIR/$DEB_HOST_MULTIARCH/libkrb5.$SHLIB_SUFFIX_NAME || test -f $i/$PHP_LIBDIR/libkrb5.a; then PHP_KERBEROS_DIR=$i break fi @@ -50700,6 +50780,7 @@ if test "$ext_shared" = "yes"; then IMAP_SHARED_LIBADD="-L$ai_p $IMAP_SHARED_LIBADD" + test "x$PHP_RPATH" != "xno" && \ test -n "$ld_runpath_switch" && IMAP_SHARED_LIBADD="$ld_runpath_switch$ai_p $IMAP_SHARED_LIBADD" else @@ -50711,6 +50792,7 @@ if test -n "$unique" && test "`eval $cmd`" = "" ; then eval "LIBPATH$unique=set" + test "x$PHP_RPATH" != "xno" && test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" LDFLAGS="$LDFLAGS -L$ai_p" PHP_RPATHS="$PHP_RPATHS $ai_p" @@ -50855,7 +50937,7 @@ else - as_fn_error "Kerberos libraries not found. + as_fn_error $? "Kerberos libraries not found. Check the path given to --with-kerberos (if no path is given, searches in /usr/kerberos, /usr/local and /usr ) " "$LINENO" 5 @@ -50871,7 +50953,7 @@ if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | $EGREP "auth_gss" >/dev/null 2>&1; then : - as_fn_error "This c-client library is built with Kerberos support. + as_fn_error $? "This c-client library is built with Kerberos support. Add --with-kerberos to your configure line. Check config.log for details. " "$LINENO" 5 @@ -50905,7 +50987,7 @@ set dummy pkg-config; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } -if test "${ac_cv_path_PKG_CONFIG+set}" = set; then : +if ${ac_cv_path_PKG_CONFIG+:} false; then : $as_echo_n "(cached) " >&6 else case $PKG_CONFIG in @@ -50919,7 +51001,7 @@ IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 @@ -50951,7 +51033,7 @@ OPENSSL_INCS=`$PKG_CONFIG --cflags-only-I openssl` OPENSSL_INCDIR=`$PKG_CONFIG --variable=includedir openssl` else - as_fn_error "OpenSSL version 0.9.6 or greater required." "$LINENO" 5 + as_fn_error $? "OpenSSL version 0.9.6 or greater required." "$LINENO" 5 fi if test -n "$OPENSSL_LIBS" && test -n "$OPENSSL_INCS"; then @@ -51018,6 +51100,7 @@ if test "$ext_shared" = "yes"; then IMAP_SHARED_LIBADD="-L$ai_p $IMAP_SHARED_LIBADD" + test "x$PHP_RPATH" != "xno" && \ test -n "$ld_runpath_switch" && IMAP_SHARED_LIBADD="$ld_runpath_switch$ai_p $IMAP_SHARED_LIBADD" else @@ -51029,6 +51112,7 @@ if test -n "$unique" && test "`eval $cmd`" = "" ; then eval "LIBPATH$unique=set" + test "x$PHP_RPATH" != "xno" && test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" LDFLAGS="$LDFLAGS -L$ai_p" PHP_RPATHS="$PHP_RPATHS $ai_p" @@ -51097,18 +51181,18 @@ if test -r $i/include/openssl/evp.h; then OPENSSL_INCDIR=$i/include fi - if test -r $i/$PHP_LIBDIR/libssl.a -o -r $i/$PHP_LIBDIR/libssl.$SHLIB_SUFFIX_NAME; then + if test -r $i/$PHP_LIBDIR/libssl.a -o -r $i/$PHP_LIBDIR/$DEB_HOST_MULTIARCH/libssl.$SHLIB_SUFFIX_NAME -o -r $i/$PHP_LIBDIR/libssl.$SHLIB_SUFFIX_NAME; then OPENSSL_LIBDIR=$i/$PHP_LIBDIR fi test -n "$OPENSSL_INCDIR" && test -n "$OPENSSL_LIBDIR" && break done if test -z "$OPENSSL_INCDIR"; then - as_fn_error "Cannot find OpenSSL's " "$LINENO" 5 + as_fn_error $? "Cannot find OpenSSL's " "$LINENO" 5 fi if test -z "$OPENSSL_LIBDIR"; then - as_fn_error "Cannot find OpenSSL's libraries" "$LINENO" 5 + as_fn_error $? "Cannot find OpenSSL's libraries" "$LINENO" 5 fi old_CPPFLAGS=$CPPFLAGS @@ -51132,7 +51216,7 @@ else - as_fn_error "OpenSSL version 0.9.6 or greater required." "$LINENO" 5 + as_fn_error $? "OpenSSL version 0.9.6 or greater required." "$LINENO" 5 fi rm -f conftest* @@ -51242,6 +51326,7 @@ if test "$ext_shared" = "yes"; then LDFLAGS="-L$ai_p $LDFLAGS" + test "x$PHP_RPATH" != "xno" && \ test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS" else @@ -51253,6 +51338,7 @@ if test -n "$unique" && test "`eval $cmd`" = "" ; then eval "LIBPATH$unique=set" + test "x$PHP_RPATH" != "xno" && test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" LDFLAGS="$LDFLAGS -L$ai_p" PHP_RPATHS="$PHP_RPATHS $ai_p" @@ -51270,7 +51356,7 @@ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CRYPTO_free in -lcrypto" >&5 $as_echo_n "checking for CRYPTO_free in -lcrypto... " >&6; } -if test "${ac_cv_lib_crypto_CRYPTO_free+set}" = set; then : +if ${ac_cv_lib_crypto_CRYPTO_free+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS @@ -51304,35 +51390,11 @@ fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_CRYPTO_free" >&5 $as_echo "$ac_cv_lib_crypto_CRYPTO_free" >&6; } -if test "x$ac_cv_lib_crypto_CRYPTO_free" = x""yes; then : +if test "x$ac_cv_lib_crypto_CRYPTO_free" = xyes; then : LDFLAGS=$save_old_LDFLAGS ext_shared=$save_ext_shared - - - - case crypto in - c|c_r|pthread*) ;; - *) - if test "$ext_shared" = "yes"; then - IMAP_SHARED_LIBADD="-lcrypto $IMAP_SHARED_LIBADD" - else - - - case crypto in - c|c_r|pthread*) ;; - *) - LIBS="-lcrypto $LIBS" - ;; - esac - - - fi - ;; - esac - - - + : else @@ -51340,7 +51402,7 @@ ext_shared=$save_ext_shared unset ac_cv_lib_crypto_CRYPTO_free - as_fn_error "libcrypto not found!" "$LINENO" 5 + as_fn_error $? "libcrypto not found!" "$LINENO" 5 fi @@ -51419,6 +51481,7 @@ if test "$ext_shared" = "yes"; then LDFLAGS="-L$ai_p $LDFLAGS" + test "x$PHP_RPATH" != "xno" && \ test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS" else @@ -51430,6 +51493,7 @@ if test -n "$unique" && test "`eval $cmd`" = "" ; then eval "LIBPATH$unique=set" + test "x$PHP_RPATH" != "xno" && test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" LDFLAGS="$LDFLAGS -L$ai_p" PHP_RPATHS="$PHP_RPATHS $ai_p" @@ -51447,7 +51511,7 @@ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_CTX_set_ssl_version in -lssl" >&5 $as_echo_n "checking for SSL_CTX_set_ssl_version in -lssl... " >&6; } -if test "${ac_cv_lib_ssl_SSL_CTX_set_ssl_version+set}" = set; then : +if ${ac_cv_lib_ssl_SSL_CTX_set_ssl_version+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS @@ -51481,7 +51545,7 @@ fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_CTX_set_ssl_version" >&5 $as_echo "$ac_cv_lib_ssl_SSL_CTX_set_ssl_version" >&6; } -if test "x$ac_cv_lib_ssl_SSL_CTX_set_ssl_version" = x""yes; then : +if test "x$ac_cv_lib_ssl_SSL_CTX_set_ssl_version" = xyes; then : LDFLAGS=$save_old_LDFLAGS ext_shared=$save_ext_shared @@ -51495,7 +51559,7 @@ ext_shared=$save_ext_shared unset ac_cv_lib_ssl_SSL_CTX_set_ssl_version - as_fn_error "libssl not found!" "$LINENO" 5 + as_fn_error $? "libssl not found!" "$LINENO" 5 fi @@ -51564,6 +51628,7 @@ if test "$ext_shared" = "yes"; then IMAP_SHARED_LIBADD="-L$ai_p $IMAP_SHARED_LIBADD" + test "x$PHP_RPATH" != "xno" && \ test -n "$ld_runpath_switch" && IMAP_SHARED_LIBADD="$ld_runpath_switch$ai_p $IMAP_SHARED_LIBADD" else @@ -51575,6 +51640,7 @@ if test -n "$unique" && test "`eval $cmd`" = "" ; then eval "LIBPATH$unique=set" + test "x$PHP_RPATH" != "xno" && test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" LDFLAGS="$LDFLAGS -L$ai_p" PHP_RPATHS="$PHP_RPATHS $ai_p" @@ -51598,7 +51664,7 @@ else - as_fn_error "OpenSSL libraries not found. + as_fn_error $? "OpenSSL libraries not found. Check the path given to --with-openssl-dir and output in config.log) " "$LINENO" 5 @@ -51614,7 +51680,7 @@ if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | $EGREP "ssl_onceonlyinit" >/dev/null 2>&1; then : - as_fn_error "This c-client library is built with SSL support. + as_fn_error $? "This c-client library is built with SSL support. Add --with-imap-ssl to your configure line. Check config.log for details. " "$LINENO" 5 @@ -51887,7 +51953,7 @@ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } - as_fn_error "build test failed. Please check the config.log for details." "$LINENO" 5 + as_fn_error $? "build test failed. Please check the config.log for details." "$LINENO" 5 fi @@ -52025,6 +52091,7 @@ if test "$ext_shared" = "yes"; then LDFLAGS="-L$ai_p $LDFLAGS" + test "x$PHP_RPATH" != "xno" && \ test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS" else @@ -52036,6 +52103,7 @@ if test -n "$unique" && test "`eval $cmd`" = "" ; then eval "LIBPATH$unique=set" + test "x$PHP_RPATH" != "xno" && test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" LDFLAGS="$LDFLAGS -L$ai_p" PHP_RPATHS="$PHP_RPATHS $ai_p" @@ -52053,7 +52121,7 @@ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isc_detach_database in -lfbclient" >&5 $as_echo_n "checking for isc_detach_database in -lfbclient... " >&6; } -if test "${ac_cv_lib_fbclient_isc_detach_database+set}" = set; then : +if ${ac_cv_lib_fbclient_isc_detach_database+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS @@ -52087,7 +52155,7 @@ fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fbclient_isc_detach_database" >&5 $as_echo "$ac_cv_lib_fbclient_isc_detach_database" >&6; } -if test "x$ac_cv_lib_fbclient_isc_detach_database" = x""yes; then : +if test "x$ac_cv_lib_fbclient_isc_detach_database" = xyes; then : LDFLAGS=$save_old_LDFLAGS ext_shared=$save_ext_shared @@ -52172,6 +52240,7 @@ if test "$ext_shared" = "yes"; then LDFLAGS="-L$ai_p $LDFLAGS" + test "x$PHP_RPATH" != "xno" && \ test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS" else @@ -52183,6 +52252,7 @@ if test -n "$unique" && test "`eval $cmd`" = "" ; then eval "LIBPATH$unique=set" + test "x$PHP_RPATH" != "xno" && test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" LDFLAGS="$LDFLAGS -L$ai_p" PHP_RPATHS="$PHP_RPATHS $ai_p" @@ -52200,7 +52270,7 @@ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isc_detach_database in -lgds" >&5 $as_echo_n "checking for isc_detach_database in -lgds... " >&6; } -if test "${ac_cv_lib_gds_isc_detach_database+set}" = set; then : +if ${ac_cv_lib_gds_isc_detach_database+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS @@ -52234,7 +52304,7 @@ fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gds_isc_detach_database" >&5 $as_echo "$ac_cv_lib_gds_isc_detach_database" >&6; } -if test "x$ac_cv_lib_gds_isc_detach_database" = x""yes; then : +if test "x$ac_cv_lib_gds_isc_detach_database" = xyes; then : LDFLAGS=$save_old_LDFLAGS ext_shared=$save_ext_shared @@ -52319,6 +52389,7 @@ if test "$ext_shared" = "yes"; then LDFLAGS="-L$ai_p $LDFLAGS" + test "x$PHP_RPATH" != "xno" && \ test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS" else @@ -52330,6 +52401,7 @@ if test -n "$unique" && test "`eval $cmd`" = "" ; then eval "LIBPATH$unique=set" + test "x$PHP_RPATH" != "xno" && test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" LDFLAGS="$LDFLAGS -L$ai_p" PHP_RPATHS="$PHP_RPATHS $ai_p" @@ -52347,7 +52419,7 @@ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isc_detach_database in -lib_util" >&5 $as_echo_n "checking for isc_detach_database in -lib_util... " >&6; } -if test "${ac_cv_lib_ib_util_isc_detach_database+set}" = set; then : +if ${ac_cv_lib_ib_util_isc_detach_database+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS @@ -52381,7 +52453,7 @@ fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ib_util_isc_detach_database" >&5 $as_echo "$ac_cv_lib_ib_util_isc_detach_database" >&6; } -if test "x$ac_cv_lib_ib_util_isc_detach_database" = x""yes; then : +if test "x$ac_cv_lib_ib_util_isc_detach_database" = xyes; then : LDFLAGS=$save_old_LDFLAGS ext_shared=$save_ext_shared @@ -52395,7 +52467,7 @@ ext_shared=$save_ext_shared unset ac_cv_lib_ib_util_isc_detach_database - as_fn_error "libgds, libib_util or libfbclient not found! Check config.log for more information." "$LINENO" 5 + as_fn_error $? "libgds, libib_util or libfbclient not found! Check config.log for more information." "$LINENO" 5 fi @@ -52430,6 +52502,7 @@ if test "$ext_shared" = "yes"; then INTERBASE_SHARED_LIBADD="-L$ai_p $INTERBASE_SHARED_LIBADD" + test "x$PHP_RPATH" != "xno" && \ test -n "$ld_runpath_switch" && INTERBASE_SHARED_LIBADD="$ld_runpath_switch$ai_p $INTERBASE_SHARED_LIBADD" else @@ -52441,6 +52514,7 @@ if test -n "$unique" && test "`eval $cmd`" = "" ; then eval "LIBPATH$unique=set" + test "x$PHP_RPATH" != "xno" && test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" LDFLAGS="$LDFLAGS -L$ai_p" PHP_RPATHS="$PHP_RPATHS $ai_p" @@ -52480,6 +52554,7 @@ if test -n "$unique" && test "`eval $cmd`" = "" ; then eval "LIBPATH$unique=set" + test "x$PHP_RPATH" != "xno" && test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" LDFLAGS="$LDFLAGS -L$ai_p" PHP_RPATHS="$PHP_RPATHS $ai_p" @@ -52916,7 +52991,7 @@ set dummy icu-config; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } -if test "${ac_cv_path_ICU_CONFIG+set}" = set; then : +if ${ac_cv_path_ICU_CONFIG+:} false; then : $as_echo_n "(cached) " >&6 else case $ICU_CONFIG in @@ -52931,7 +53006,7 @@ IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_path_ICU_CONFIG="$as_dir/$ac_word$ac_exec_ext" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 @@ -52965,7 +53040,7 @@ if test "$?" != "0" || test -z "$icu_install_prefix"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 $as_echo "not found" >&6; } - as_fn_error "Unable to detect ICU prefix or $ICU_CONFIG failed. Please verify ICU install prefix and make sure icu-config works." "$LINENO" 5 + as_fn_error $? "Unable to detect ICU prefix or $ICU_CONFIG failed. Please verify ICU install prefix and make sure icu-config works." "$LINENO" 5 else { $as_echo "$as_me:${as_lineno-$LINENO}: result: $icu_install_prefix" >&5 $as_echo "$icu_install_prefix" >&6; } @@ -52982,7 +53057,7 @@ $as_echo "found $icu_version_full" >&6; } if test "$icu_version" -lt "3004"; then - as_fn_error "ICU version 3.4 or later is required" "$LINENO" 5 + as_fn_error $? "ICU version 3.4 or later is required" "$LINENO" 5 fi ICU_VERSION=$icu_version @@ -53091,6 +53166,7 @@ if test "$ext_shared" = "yes"; then INTL_SHARED_LIBADD="-L$ai_p $INTL_SHARED_LIBADD" + test "x$PHP_RPATH" != "xno" && \ test -n "$ld_runpath_switch" && INTL_SHARED_LIBADD="$ld_runpath_switch$ai_p $INTL_SHARED_LIBADD" else @@ -53102,6 +53178,7 @@ if test -n "$unique" && test "`eval $cmd`" = "" ; then eval "LIBPATH$unique=set" + test "x$PHP_RPATH" != "xno" && test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" LDFLAGS="$LDFLAGS -L$ai_p" PHP_RPATHS="$PHP_RPATHS $ai_p" @@ -53140,7 +53217,7 @@ set dummy $ac_tool_prefix$ac_prog; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } -if test "${ac_cv_prog_CXX+set}" = set; then : +if ${ac_cv_prog_CXX+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$CXX"; then @@ -53152,7 +53229,7 @@ IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 @@ -53184,7 +53261,7 @@ set dummy $ac_prog; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } -if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then : +if ${ac_cv_prog_ac_ct_CXX+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$ac_ct_CXX"; then @@ -53196,7 +53273,7 @@ IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_CXX="$ac_prog" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 @@ -53262,7 +53339,7 @@ { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } -if test "${ac_cv_cxx_compiler_gnu+set}" = set; then : +if ${ac_cv_cxx_compiler_gnu+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -53299,7 +53376,7 @@ ac_save_CXXFLAGS=$CXXFLAGS { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 $as_echo_n "checking whether $CXX accepts -g... " >&6; } -if test "${ac_cv_prog_cxx_g+set}" = set; then : +if ${ac_cv_prog_cxx_g+:} false; then : $as_echo_n "(cached) " >&6 else ac_save_cxx_werror_flag=$ac_cxx_werror_flag @@ -53389,7 +53466,7 @@ { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5 $as_echo_n "checking how to run the C++ preprocessor... " >&6; } if test -z "$CXXCPP"; then - if test "${ac_cv_prog_CXXCPP+set}" = set; then : + if ${ac_cv_prog_CXXCPP+:} false; then : $as_echo_n "(cached) " >&6 else # Double quotes because CXXCPP needs to be expanded @@ -53419,7 +53496,7 @@ # Broken: fails on valid input. continue fi -rm -f conftest.err conftest.$ac_ext +rm -f conftest.err conftest.i conftest.$ac_ext # OK, works on sane cases. Now check whether nonexistent headers # can be detected and how. @@ -53435,11 +53512,11 @@ ac_preproc_ok=: break fi -rm -f conftest.err conftest.$ac_ext +rm -f conftest.err conftest.i conftest.$ac_ext done # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. -rm -f conftest.err conftest.$ac_ext +rm -f conftest.i conftest.err conftest.$ac_ext if $ac_preproc_ok; then : break fi @@ -53478,7 +53555,7 @@ # Broken: fails on valid input. continue fi -rm -f conftest.err conftest.$ac_ext +rm -f conftest.err conftest.i conftest.$ac_ext # OK, works on sane cases. Now check whether nonexistent headers # can be detected and how. @@ -53494,18 +53571,18 @@ ac_preproc_ok=: break fi -rm -f conftest.err conftest.$ac_ext +rm -f conftest.err conftest.i conftest.$ac_ext done # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. -rm -f conftest.err conftest.$ac_ext +rm -f conftest.i conftest.err conftest.$ac_ext if $ac_preproc_ok; then : else { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} -as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check -See \`config.log' for more details." "$LINENO" 5; } +as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check +See \`config.log' for more details" "$LINENO" 5; } fi ac_ext=c @@ -54137,7 +54214,7 @@ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 $as_echo_n "checking for ANSI C header files... " >&6; } -if test "${ac_cv_header_stdc+set}" = set; then : +if ${ac_cv_header_stdc+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -54973,7 +55050,7 @@ fi if test -z "$LDAP_DIR"; then - as_fn_error "Cannot find ldap.h" "$LINENO" 5 + as_fn_error $? "Cannot find ldap.h" "$LINENO" 5 fi @@ -54983,7 +55060,7 @@ LDAP_PTHREAD= fi - if test -f $LDAP_LIBDIR/liblber.a || test -f $LDAP_LIBDIR/liblber.$SHLIB_SUFFIX_NAME; then + if test -f $LDAP_LIBDIR/liblber.a || test -f $LDAP_LIBDIR/$DEB_HOST_MULTIARCH/liblber.$SHLIB_SUFFIX_NAME || test -f $LDAP_LIBDIR/liblber.$SHLIB_SUFFIX_NAME; then if test "$ext_shared" = "yes"; then @@ -55005,6 +55082,7 @@ if test "$ext_shared" = "yes"; then LDAP_SHARED_LIBADD="-L$ai_p $LDAP_SHARED_LIBADD" + test "x$PHP_RPATH" != "xno" && \ test -n "$ld_runpath_switch" && LDAP_SHARED_LIBADD="$ld_runpath_switch$ai_p $LDAP_SHARED_LIBADD" else @@ -55016,6 +55094,7 @@ if test -n "$unique" && test "`eval $cmd`" = "" ; then eval "LIBPATH$unique=set" + test "x$PHP_RPATH" != "xno" && test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" LDFLAGS="$LDFLAGS -L$ai_p" PHP_RPATHS="$PHP_RPATHS $ai_p" @@ -55055,6 +55134,7 @@ if test -n "$unique" && test "`eval $cmd`" = "" ; then eval "LIBPATH$unique=set" + test "x$PHP_RPATH" != "xno" && test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" LDFLAGS="$LDFLAGS -L$ai_p" PHP_RPATHS="$PHP_RPATHS $ai_p" @@ -55102,6 +55182,7 @@ if test "$ext_shared" = "yes"; then LDAP_SHARED_LIBADD="-L$ai_p $LDAP_SHARED_LIBADD" + test "x$PHP_RPATH" != "xno" && \ test -n "$ld_runpath_switch" && LDAP_SHARED_LIBADD="$ld_runpath_switch$ai_p $LDAP_SHARED_LIBADD" else @@ -55113,6 +55194,7 @@ if test -n "$unique" && test "`eval $cmd`" = "" ; then eval "LIBPATH$unique=set" + test "x$PHP_RPATH" != "xno" && test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" LDFLAGS="$LDFLAGS -L$ai_p" PHP_RPATHS="$PHP_RPATHS $ai_p" @@ -55152,6 +55234,7 @@ if test -n "$unique" && test "`eval $cmd`" = "" ; then eval "LIBPATH$unique=set" + test "x$PHP_RPATH" != "xno" && test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" LDFLAGS="$LDFLAGS -L$ai_p" PHP_RPATHS="$PHP_RPATHS $ai_p" @@ -55201,6 +55284,7 @@ if test "$ext_shared" = "yes"; then LDAP_SHARED_LIBADD="-L$ai_p $LDAP_SHARED_LIBADD" + test "x$PHP_RPATH" != "xno" && \ test -n "$ld_runpath_switch" && LDAP_SHARED_LIBADD="$ld_runpath_switch$ai_p $LDAP_SHARED_LIBADD" else @@ -55212,6 +55296,7 @@ if test -n "$unique" && test "`eval $cmd`" = "" ; then eval "LIBPATH$unique=set" + test "x$PHP_RPATH" != "xno" && test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" LDFLAGS="$LDFLAGS -L$ai_p" PHP_RPATHS="$PHP_RPATHS $ai_p" @@ -55251,6 +55336,7 @@ if test -n "$unique" && test "`eval $cmd`" = "" ; then eval "LIBPATH$unique=set" + test "x$PHP_RPATH" != "xno" && test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" LDFLAGS="$LDFLAGS -L$ai_p" PHP_RPATHS="$PHP_RPATHS $ai_p" @@ -55312,6 +55398,7 @@ if test "$ext_shared" = "yes"; then LDAP_SHARED_LIBADD="-L$ai_p $LDAP_SHARED_LIBADD" + test "x$PHP_RPATH" != "xno" && \ test -n "$ld_runpath_switch" && LDAP_SHARED_LIBADD="$ld_runpath_switch$ai_p $LDAP_SHARED_LIBADD" else @@ -55323,6 +55410,7 @@ if test -n "$unique" && test "`eval $cmd`" = "" ; then eval "LIBPATH$unique=set" + test "x$PHP_RPATH" != "xno" && test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" LDFLAGS="$LDFLAGS -L$ai_p" PHP_RPATHS="$PHP_RPATHS $ai_p" @@ -55362,6 +55450,7 @@ if test -n "$unique" && test "`eval $cmd`" = "" ; then eval "LIBPATH$unique=set" + test "x$PHP_RPATH" != "xno" && test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" LDFLAGS="$LDFLAGS -L$ai_p" PHP_RPATHS="$PHP_RPATHS $ai_p" @@ -55409,6 +55498,7 @@ if test "$ext_shared" = "yes"; then LDAP_SHARED_LIBADD="-L$ai_p $LDAP_SHARED_LIBADD" + test "x$PHP_RPATH" != "xno" && \ test -n "$ld_runpath_switch" && LDAP_SHARED_LIBADD="$ld_runpath_switch$ai_p $LDAP_SHARED_LIBADD" else @@ -55420,6 +55510,7 @@ if test -n "$unique" && test "`eval $cmd`" = "" ; then eval "LIBPATH$unique=set" + test "x$PHP_RPATH" != "xno" && test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" LDFLAGS="$LDFLAGS -L$ai_p" PHP_RPATHS="$PHP_RPATHS $ai_p" @@ -55459,6 +55550,7 @@ if test -n "$unique" && test "`eval $cmd`" = "" ; then eval "LIBPATH$unique=set" + test "x$PHP_RPATH" != "xno" && test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" LDFLAGS="$LDFLAGS -L$ai_p" PHP_RPATHS="$PHP_RPATHS $ai_p" @@ -55506,6 +55598,7 @@ if test "$ext_shared" = "yes"; then LDAP_SHARED_LIBADD="-L$ai_p $LDAP_SHARED_LIBADD" + test "x$PHP_RPATH" != "xno" && \ test -n "$ld_runpath_switch" && LDAP_SHARED_LIBADD="$ld_runpath_switch$ai_p $LDAP_SHARED_LIBADD" else @@ -55517,6 +55610,7 @@ if test -n "$unique" && test "`eval $cmd`" = "" ; then eval "LIBPATH$unique=set" + test "x$PHP_RPATH" != "xno" && test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" LDFLAGS="$LDFLAGS -L$ai_p" PHP_RPATHS="$PHP_RPATHS $ai_p" @@ -55556,6 +55650,7 @@ if test -n "$unique" && test "`eval $cmd`" = "" ; then eval "LIBPATH$unique=set" + test "x$PHP_RPATH" != "xno" && test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" LDFLAGS="$LDFLAGS -L$ai_p" PHP_RPATHS="$PHP_RPATHS $ai_p" @@ -55603,6 +55698,7 @@ if test "$ext_shared" = "yes"; then LDAP_SHARED_LIBADD="-L$ai_p $LDAP_SHARED_LIBADD" + test "x$PHP_RPATH" != "xno" && \ test -n "$ld_runpath_switch" && LDAP_SHARED_LIBADD="$ld_runpath_switch$ai_p $LDAP_SHARED_LIBADD" else @@ -55614,6 +55710,7 @@ if test -n "$unique" && test "`eval $cmd`" = "" ; then eval "LIBPATH$unique=set" + test "x$PHP_RPATH" != "xno" && test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" LDFLAGS="$LDFLAGS -L$ai_p" PHP_RPATHS="$PHP_RPATHS $ai_p" @@ -55653,6 +55750,7 @@ if test -n "$unique" && test "`eval $cmd`" = "" ; then eval "LIBPATH$unique=set" + test "x$PHP_RPATH" != "xno" && test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" LDFLAGS="$LDFLAGS -L$ai_p" PHP_RPATHS="$PHP_RPATHS $ai_p" @@ -55700,6 +55798,7 @@ if test "$ext_shared" = "yes"; then LDAP_SHARED_LIBADD="-L$ai_p $LDAP_SHARED_LIBADD" + test "x$PHP_RPATH" != "xno" && \ test -n "$ld_runpath_switch" && LDAP_SHARED_LIBADD="$ld_runpath_switch$ai_p $LDAP_SHARED_LIBADD" else @@ -55711,6 +55810,7 @@ if test -n "$unique" && test "`eval $cmd`" = "" ; then eval "LIBPATH$unique=set" + test "x$PHP_RPATH" != "xno" && test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" LDFLAGS="$LDFLAGS -L$ai_p" PHP_RPATHS="$PHP_RPATHS $ai_p" @@ -55750,6 +55850,7 @@ if test -n "$unique" && test "`eval $cmd`" = "" ; then eval "LIBPATH$unique=set" + test "x$PHP_RPATH" != "xno" && test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" LDFLAGS="$LDFLAGS -L$ai_p" PHP_RPATHS="$PHP_RPATHS $ai_p" @@ -55797,6 +55898,7 @@ if test "$ext_shared" = "yes"; then LDAP_SHARED_LIBADD="-L$ai_p $LDAP_SHARED_LIBADD" + test "x$PHP_RPATH" != "xno" && \ test -n "$ld_runpath_switch" && LDAP_SHARED_LIBADD="$ld_runpath_switch$ai_p $LDAP_SHARED_LIBADD" else @@ -55808,6 +55910,7 @@ if test -n "$unique" && test "`eval $cmd`" = "" ; then eval "LIBPATH$unique=set" + test "x$PHP_RPATH" != "xno" && test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" LDFLAGS="$LDFLAGS -L$ai_p" PHP_RPATHS="$PHP_RPATHS $ai_p" @@ -55847,6 +55950,7 @@ if test -n "$unique" && test "`eval $cmd`" = "" ; then eval "LIBPATH$unique=set" + test "x$PHP_RPATH" != "xno" && test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" LDFLAGS="$LDFLAGS -L$ai_p" PHP_RPATHS="$PHP_RPATHS $ai_p" @@ -55894,6 +55998,7 @@ if test "$ext_shared" = "yes"; then LDAP_SHARED_LIBADD="-L$ai_p $LDAP_SHARED_LIBADD" + test "x$PHP_RPATH" != "xno" && \ test -n "$ld_runpath_switch" && LDAP_SHARED_LIBADD="$ld_runpath_switch$ai_p $LDAP_SHARED_LIBADD" else @@ -55905,6 +56010,7 @@ if test -n "$unique" && test "`eval $cmd`" = "" ; then eval "LIBPATH$unique=set" + test "x$PHP_RPATH" != "xno" && test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" LDFLAGS="$LDFLAGS -L$ai_p" PHP_RPATHS="$PHP_RPATHS $ai_p" @@ -55944,6 +56050,7 @@ if test -n "$unique" && test "`eval $cmd`" = "" ; then eval "LIBPATH$unique=set" + test "x$PHP_RPATH" != "xno" && test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" LDFLAGS="$LDFLAGS -L$ai_p" PHP_RPATHS="$PHP_RPATHS $ai_p" @@ -56008,6 +56115,7 @@ if test "$ext_shared" = "yes"; then LDAP_SHARED_LIBADD="-L$ai_p $LDAP_SHARED_LIBADD" + test "x$PHP_RPATH" != "xno" && \ test -n "$ld_runpath_switch" && LDAP_SHARED_LIBADD="$ld_runpath_switch$ai_p $LDAP_SHARED_LIBADD" else @@ -56019,6 +56127,7 @@ if test -n "$unique" && test "`eval $cmd`" = "" ; then eval "LIBPATH$unique=set" + test "x$PHP_RPATH" != "xno" && test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" LDFLAGS="$LDFLAGS -L$ai_p" PHP_RPATHS="$PHP_RPATHS $ai_p" @@ -56058,6 +56167,7 @@ if test -n "$unique" && test "`eval $cmd`" = "" ; then eval "LIBPATH$unique=set" + test "x$PHP_RPATH" != "xno" && test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" LDFLAGS="$LDFLAGS -L$ai_p" PHP_RPATHS="$PHP_RPATHS $ai_p" @@ -56105,6 +56215,7 @@ if test "$ext_shared" = "yes"; then LDAP_SHARED_LIBADD="-L$ai_p $LDAP_SHARED_LIBADD" + test "x$PHP_RPATH" != "xno" && \ test -n "$ld_runpath_switch" && LDAP_SHARED_LIBADD="$ld_runpath_switch$ai_p $LDAP_SHARED_LIBADD" else @@ -56116,6 +56227,7 @@ if test -n "$unique" && test "`eval $cmd`" = "" ; then eval "LIBPATH$unique=set" + test "x$PHP_RPATH" != "xno" && test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" LDFLAGS="$LDFLAGS -L$ai_p" PHP_RPATHS="$PHP_RPATHS $ai_p" @@ -56155,6 +56267,7 @@ if test -n "$unique" && test "`eval $cmd`" = "" ; then eval "LIBPATH$unique=set" + test "x$PHP_RPATH" != "xno" && test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" LDFLAGS="$LDFLAGS -L$ai_p" PHP_RPATHS="$PHP_RPATHS $ai_p" @@ -56202,6 +56315,7 @@ if test "$ext_shared" = "yes"; then LDAP_SHARED_LIBADD="-L$ai_p $LDAP_SHARED_LIBADD" + test "x$PHP_RPATH" != "xno" && \ test -n "$ld_runpath_switch" && LDAP_SHARED_LIBADD="$ld_runpath_switch$ai_p $LDAP_SHARED_LIBADD" else @@ -56213,6 +56327,7 @@ if test -n "$unique" && test "`eval $cmd`" = "" ; then eval "LIBPATH$unique=set" + test "x$PHP_RPATH" != "xno" && test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" LDFLAGS="$LDFLAGS -L$ai_p" PHP_RPATHS="$PHP_RPATHS $ai_p" @@ -56252,6 +56367,7 @@ if test -n "$unique" && test "`eval $cmd`" = "" ; then eval "LIBPATH$unique=set" + test "x$PHP_RPATH" != "xno" && test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" LDFLAGS="$LDFLAGS -L$ai_p" PHP_RPATHS="$PHP_RPATHS $ai_p" @@ -56299,6 +56415,7 @@ if test "$ext_shared" = "yes"; then LDAP_SHARED_LIBADD="-L$ai_p $LDAP_SHARED_LIBADD" + test "x$PHP_RPATH" != "xno" && \ test -n "$ld_runpath_switch" && LDAP_SHARED_LIBADD="$ld_runpath_switch$ai_p $LDAP_SHARED_LIBADD" else @@ -56310,6 +56427,7 @@ if test -n "$unique" && test "`eval $cmd`" = "" ; then eval "LIBPATH$unique=set" + test "x$PHP_RPATH" != "xno" && test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" LDFLAGS="$LDFLAGS -L$ai_p" PHP_RPATHS="$PHP_RPATHS $ai_p" @@ -56349,6 +56467,7 @@ if test -n "$unique" && test "`eval $cmd`" = "" ; then eval "LIBPATH$unique=set" + test "x$PHP_RPATH" != "xno" && test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" LDFLAGS="$LDFLAGS -L$ai_p" PHP_RPATHS="$PHP_RPATHS $ai_p" @@ -56413,6 +56532,7 @@ if test "$ext_shared" = "yes"; then LDAP_SHARED_LIBADD="-L$ai_p $LDAP_SHARED_LIBADD" + test "x$PHP_RPATH" != "xno" && \ test -n "$ld_runpath_switch" && LDAP_SHARED_LIBADD="$ld_runpath_switch$ai_p $LDAP_SHARED_LIBADD" else @@ -56424,6 +56544,7 @@ if test -n "$unique" && test "`eval $cmd`" = "" ; then eval "LIBPATH$unique=set" + test "x$PHP_RPATH" != "xno" && test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" LDFLAGS="$LDFLAGS -L$ai_p" PHP_RPATHS="$PHP_RPATHS $ai_p" @@ -56463,6 +56584,7 @@ if test -n "$unique" && test "`eval $cmd`" = "" ; then eval "LIBPATH$unique=set" + test "x$PHP_RPATH" != "xno" && test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" LDFLAGS="$LDFLAGS -L$ai_p" PHP_RPATHS="$PHP_RPATHS $ai_p" @@ -56527,6 +56649,7 @@ if test "$ext_shared" = "yes"; then LDAP_SHARED_LIBADD="-L$ai_p $LDAP_SHARED_LIBADD" + test "x$PHP_RPATH" != "xno" && \ test -n "$ld_runpath_switch" && LDAP_SHARED_LIBADD="$ld_runpath_switch$ai_p $LDAP_SHARED_LIBADD" else @@ -56538,6 +56661,7 @@ if test -n "$unique" && test "`eval $cmd`" = "" ; then eval "LIBPATH$unique=set" + test "x$PHP_RPATH" != "xno" && test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" LDFLAGS="$LDFLAGS -L$ai_p" PHP_RPATHS="$PHP_RPATHS $ai_p" @@ -56577,6 +56701,7 @@ if test -n "$unique" && test "`eval $cmd`" = "" ; then eval "LIBPATH$unique=set" + test "x$PHP_RPATH" != "xno" && test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" LDFLAGS="$LDFLAGS -L$ai_p" PHP_RPATHS="$PHP_RPATHS $ai_p" @@ -56629,6 +56754,7 @@ if test "$ext_shared" = "yes"; then LDAP_SHARED_LIBADD="-L$ai_p $LDAP_SHARED_LIBADD" + test "x$PHP_RPATH" != "xno" && \ test -n "$ld_runpath_switch" && LDAP_SHARED_LIBADD="$ld_runpath_switch$ai_p $LDAP_SHARED_LIBADD" else @@ -56640,6 +56766,7 @@ if test -n "$unique" && test "`eval $cmd`" = "" ; then eval "LIBPATH$unique=set" + test "x$PHP_RPATH" != "xno" && test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" LDFLAGS="$LDFLAGS -L$ai_p" PHP_RPATHS="$PHP_RPATHS $ai_p" @@ -56679,6 +56806,7 @@ if test -n "$unique" && test "`eval $cmd`" = "" ; then eval "LIBPATH$unique=set" + test "x$PHP_RPATH" != "xno" && test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" LDFLAGS="$LDFLAGS -L$ai_p" PHP_RPATHS="$PHP_RPATHS $ai_p" @@ -56726,6 +56854,7 @@ if test "$ext_shared" = "yes"; then LDAP_SHARED_LIBADD="-L$ai_p $LDAP_SHARED_LIBADD" + test "x$PHP_RPATH" != "xno" && \ test -n "$ld_runpath_switch" && LDAP_SHARED_LIBADD="$ld_runpath_switch$ai_p $LDAP_SHARED_LIBADD" else @@ -56737,6 +56866,7 @@ if test -n "$unique" && test "`eval $cmd`" = "" ; then eval "LIBPATH$unique=set" + test "x$PHP_RPATH" != "xno" && test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" LDFLAGS="$LDFLAGS -L$ai_p" PHP_RPATHS="$PHP_RPATHS $ai_p" @@ -56776,6 +56906,7 @@ if test -n "$unique" && test "`eval $cmd`" = "" ; then eval "LIBPATH$unique=set" + test "x$PHP_RPATH" != "xno" && test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" LDFLAGS="$LDFLAGS -L$ai_p" PHP_RPATHS="$PHP_RPATHS $ai_p" @@ -56825,6 +56956,7 @@ if test "$ext_shared" = "yes"; then LDAP_SHARED_LIBADD="-L$ai_p $LDAP_SHARED_LIBADD" + test "x$PHP_RPATH" != "xno" && \ test -n "$ld_runpath_switch" && LDAP_SHARED_LIBADD="$ld_runpath_switch$ai_p $LDAP_SHARED_LIBADD" else @@ -56836,6 +56968,7 @@ if test -n "$unique" && test "`eval $cmd`" = "" ; then eval "LIBPATH$unique=set" + test "x$PHP_RPATH" != "xno" && test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" LDFLAGS="$LDFLAGS -L$ai_p" PHP_RPATHS="$PHP_RPATHS $ai_p" @@ -56875,6 +57008,7 @@ if test -n "$unique" && test "`eval $cmd`" = "" ; then eval "LIBPATH$unique=set" + test "x$PHP_RPATH" != "xno" && test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" LDFLAGS="$LDFLAGS -L$ai_p" PHP_RPATHS="$PHP_RPATHS $ai_p" @@ -56910,7 +57044,7 @@ fi else - as_fn_error "Cannot find ldap libraries in $LDAP_LIBDIR." "$LINENO" 5 + as_fn_error $? "Cannot find ldap libraries in $LDAP_LIBDIR." "$LINENO" 5 fi @@ -56958,7 +57092,7 @@ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 3 arg ldap_set_rebind_proc" >&5 $as_echo_n "checking for 3 arg ldap_set_rebind_proc... " >&6; } -if test "${ac_cv_3arg_setrebindproc+set}" = set; then : +if ${ac_cv_3arg_setrebindproc+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -56991,8 +57125,7 @@ do : as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" -eval as_val=\$$as_ac_var - if test "x$as_val" = x""yes; then : +if eval test \"x\$"$as_ac_var"\" = x"yes"; then : cat >>confdefs.h <<_ACEOF #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 _ACEOF @@ -57029,7 +57162,7 @@ LDAP_SASL_INCDIR=$LDAP_SASL_DIR/include LDAP_SASL_LIBDIR=$LDAP_SASL_DIR/$PHP_LIBDIR else - as_fn_error "sasl.h not found!" "$LINENO" 5 + as_fn_error $? "sasl.h not found!" "$LINENO" 5 fi if test "$PHP_LDAP_SASL" = "yes"; then @@ -57109,6 +57242,7 @@ if test "$ext_shared" = "yes"; then LDFLAGS="-L$ai_p $LDFLAGS" + test "x$PHP_RPATH" != "xno" && \ test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS" else @@ -57120,6 +57254,7 @@ if test -n "$unique" && test "`eval $cmd`" = "" ; then eval "LIBPATH$unique=set" + test "x$PHP_RPATH" != "xno" && test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" LDFLAGS="$LDFLAGS -L$ai_p" PHP_RPATHS="$PHP_RPATHS $ai_p" @@ -57137,7 +57272,7 @@ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sasl_version in -lsasl2" >&5 $as_echo_n "checking for sasl_version in -lsasl2... " >&6; } -if test "${ac_cv_lib_sasl2_sasl_version+set}" = set; then : +if ${ac_cv_lib_sasl2_sasl_version+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS @@ -57171,7 +57306,7 @@ fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sasl2_sasl_version" >&5 $as_echo "$ac_cv_lib_sasl2_sasl_version" >&6; } -if test "x$ac_cv_lib_sasl2_sasl_version" = x""yes; then : +if test "x$ac_cv_lib_sasl2_sasl_version" = xyes; then : LDFLAGS=$save_old_LDFLAGS ext_shared=$save_ext_shared @@ -57228,6 +57363,7 @@ if test "$ext_shared" = "yes"; then LDAP_SHARED_LIBADD="-L$ai_p $LDAP_SHARED_LIBADD" + test "x$PHP_RPATH" != "xno" && \ test -n "$ld_runpath_switch" && LDAP_SHARED_LIBADD="$ld_runpath_switch$ai_p $LDAP_SHARED_LIBADD" else @@ -57239,6 +57375,7 @@ if test -n "$unique" && test "`eval $cmd`" = "" ; then eval "LIBPATH$unique=set" + test "x$PHP_RPATH" != "xno" && test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" LDFLAGS="$LDFLAGS -L$ai_p" PHP_RPATHS="$PHP_RPATHS $ai_p" @@ -57278,6 +57415,7 @@ if test -n "$unique" && test "`eval $cmd`" = "" ; then eval "LIBPATH$unique=set" + test "x$PHP_RPATH" != "xno" && test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" LDFLAGS="$LDFLAGS -L$ai_p" PHP_RPATHS="$PHP_RPATHS $ai_p" @@ -57315,7 +57453,7 @@ ext_shared=$save_ext_shared unset ac_cv_lib_sasl2_sasl_version - as_fn_error "LDAP SASL check failed. Please check config.log for more information." "$LINENO" 5 + as_fn_error $? "LDAP SASL check failed. Please check config.log for more information." "$LINENO" 5 fi @@ -57324,11 +57462,11 @@ fi ac_fn_c_check_func "$LINENO" "ldap_bind_s" "ac_cv_func_ldap_bind_s" -if test "x$ac_cv_func_ldap_bind_s" = x""yes; then : +if test "x$ac_cv_func_ldap_bind_s" = xyes; then : else - as_fn_error "LDAP build check failed. Please check config.log for more information." "$LINENO" 5 + as_fn_error $? "LDAP build check failed. Please check config.log for more information." "$LINENO" 5 fi @@ -57518,7 +57656,7 @@ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for variable length prototypes and stdarg.h" >&5 $as_echo_n "checking for variable length prototypes and stdarg.h... " >&6; } -if test "${php_cv_mbstring_stdarg+set}" = set; then : +if ${php_cv_mbstring_stdarg+:} false; then : $as_echo_n "(cached) " >&6 else @@ -57567,8 +57705,7 @@ do : as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" -eval as_val=\$$as_ac_Header - if test "x$as_val" = x""yes; then : +if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : cat >>confdefs.h <<_ACEOF #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 _ACEOF @@ -57583,7 +57720,7 @@ # This bug is HP SR number 8606223364. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5 $as_echo_n "checking size of int... " >&6; } -if test "${ac_cv_sizeof_int+set}" = set; then : +if ${ac_cv_sizeof_int+:} false; then : $as_echo_n "(cached) " >&6 else if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then : @@ -57592,9 +57729,8 @@ if test "$ac_cv_type_int" = yes; then { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} -{ as_fn_set_status 77 -as_fn_error "cannot compute sizeof (int) -See \`config.log' for more details." "$LINENO" 5; }; } +as_fn_error 77 "cannot compute sizeof (int) +See \`config.log' for more details" "$LINENO" 5; } else ac_cv_sizeof_int=0 fi @@ -57617,7 +57753,7 @@ # This bug is HP SR number 8606223364. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5 $as_echo_n "checking size of short... " >&6; } -if test "${ac_cv_sizeof_short+set}" = set; then : +if ${ac_cv_sizeof_short+:} false; then : $as_echo_n "(cached) " >&6 else if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then : @@ -57626,9 +57762,8 @@ if test "$ac_cv_type_short" = yes; then { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} -{ as_fn_set_status 77 -as_fn_error "cannot compute sizeof (short) -See \`config.log' for more details." "$LINENO" 5; }; } +as_fn_error 77 "cannot compute sizeof (short) +See \`config.log' for more details" "$LINENO" 5; } else ac_cv_sizeof_short=0 fi @@ -57651,7 +57786,7 @@ # This bug is HP SR number 8606223364. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5 $as_echo_n "checking size of long... " >&6; } -if test "${ac_cv_sizeof_long+set}" = set; then : +if ${ac_cv_sizeof_long+:} false; then : $as_echo_n "(cached) " >&6 else if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then : @@ -57660,9 +57795,8 @@ if test "$ac_cv_type_long" = yes; then { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} -{ as_fn_set_status 77 -as_fn_error "cannot compute sizeof (long) -See \`config.log' for more details." "$LINENO" 5; }; } +as_fn_error 77 "cannot compute sizeof (long) +See \`config.log' for more details" "$LINENO" 5; } else ac_cv_sizeof_long=0 fi @@ -57681,7 +57815,7 @@ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 $as_echo_n "checking for an ANSI C-conforming const... " >&6; } -if test "${ac_cv_c_const+set}" = set; then : +if ${ac_cv_c_const+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -57690,11 +57824,11 @@ int main () { -/* FIXME: Include the comments suggested by Paul. */ + #ifndef __cplusplus - /* Ultrix mips cc rejects this. */ + /* Ultrix mips cc rejects this sort of thing. */ typedef int charset[2]; - const charset cs; + const charset cs = { 0, 0 }; /* SunOS 4.1.1 cc rejects this. */ char const *const *pcpcc; char **ppc; @@ -57711,8 +57845,9 @@ ++pcpcc; ppc = (char**) pcpcc; pcpcc = (char const *const *) ppc; - { /* SCO 3.2v4 cc rejects this. */ - char *t; + { /* SCO 3.2v4 cc rejects this sort of thing. */ + char tx; + char *t = &tx; char const *s = 0 ? (char *) 0 : (char const *) 0; *t++ = 0; @@ -57728,10 +57863,10 @@ iptr p = 0; ++p; } - { /* AIX XL C 1.02.0.0 rejects this saying + { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ - struct s { int j; const int *ap[3]; }; - struct s *b; b->j = 5; + struct s { int j; const int *ap[3]; } bx; + struct s *b = &bx; b->j = 5; } { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ const int foo = 10; @@ -57761,7 +57896,7 @@ { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; } -if test "${ac_cv_header_time+set}" = set; then : +if ${ac_cv_header_time+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -57798,7 +57933,7 @@ # for constant arguments. Useless! { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5 $as_echo_n "checking for working alloca.h... " >&6; } -if test "${ac_cv_working_alloca_h+set}" = set; then : +if ${ac_cv_working_alloca_h+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -57831,7 +57966,7 @@ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5 $as_echo_n "checking for alloca... " >&6; } -if test "${ac_cv_func_alloca_works+set}" = set; then : +if ${ac_cv_func_alloca_works+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -57850,7 +57985,7 @@ #pragma alloca # else # ifndef alloca /* predefined by HP cc +Olibcalls */ -char *alloca (); +void *alloca (size_t); # endif # endif # endif @@ -57894,7 +58029,7 @@ { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; } -if test "${ac_cv_os_cray+set}" = set; then : +if ${ac_cv_os_cray+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -57921,8 +58056,7 @@ for ac_func in _getb67 GETB67 getb67; do as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" -eval as_val=\$$as_ac_var - if test "x$as_val" = x""yes; then : +if eval test \"x\$"$as_ac_var"\" = x"yes"; then : cat >>confdefs.h <<_ACEOF #define CRAY_STACKSEG_END $ac_func @@ -57936,7 +58070,7 @@ { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5 $as_echo_n "checking stack direction for C alloca... " >&6; } -if test "${ac_cv_c_stack_direction+set}" = set; then : +if ${ac_cv_c_stack_direction+:} false; then : $as_echo_n "(cached) " >&6 else if test "$cross_compiling" = yes; then : @@ -57946,23 +58080,20 @@ /* end confdefs.h. */ $ac_includes_default int -find_stack_direction () +find_stack_direction (int *addr, int depth) { - static char *addr = 0; - auto char dummy; - if (addr == 0) - { - addr = &dummy; - return find_stack_direction (); - } - else - return (&dummy > addr) ? 1 : -1; + int dir, dummy = 0; + if (! addr) + addr = &dummy; + *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1; + dir = depth ? find_stack_direction (addr, depth - 1) : 0; + return dir + dummy; } int -main () +main (int argc, char **argv) { - return find_stack_direction () < 0; + return find_stack_direction (0, argc + !argv + 20) < 0; } _ACEOF if ac_fn_c_try_run "$LINENO"; then : @@ -57986,7 +58117,7 @@ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5 $as_echo_n "checking for working memcmp... " >&6; } -if test "${ac_cv_func_memcmp_working+set}" = set; then : +if ${ac_cv_func_memcmp_working+:} false; then : $as_echo_n "(cached) " >&6 else if test "$cross_compiling" = yes; then : @@ -58047,7 +58178,7 @@ ac_fn_c_check_header_mongrel "$LINENO" "stdarg.h" "ac_cv_header_stdarg_h" "$ac_includes_default" -if test "x$ac_cv_header_stdarg_h" = x""yes; then : +if test "x$ac_cv_header_stdarg_h" = xyes; then : $as_echo "#define HAVE_STDARG_PROTOTYPES 1" >>confdefs.h @@ -58126,7 +58257,7 @@ else if test ! -f "$PHP_ONIG/include/oniguruma.h"; then - as_fn_error "oniguruma.h not found in $PHP_ONIG/include" "$LINENO" 5 + as_fn_error $? "oniguruma.h not found in $PHP_ONIG/include" "$LINENO" 5 fi if test "$PHP_ONIG/include" != "/usr/include"; then @@ -58231,6 +58362,7 @@ if test "$ext_shared" = "yes"; then LDFLAGS="-L$ai_p $LDFLAGS" + test "x$PHP_RPATH" != "xno" && \ test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS" else @@ -58242,6 +58374,7 @@ if test -n "$unique" && test "`eval $cmd`" = "" ; then eval "LIBPATH$unique=set" + test "x$PHP_RPATH" != "xno" && test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" LDFLAGS="$LDFLAGS -L$ai_p" PHP_RPATHS="$PHP_RPATHS $ai_p" @@ -58259,7 +58392,7 @@ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for onig_init in -lonig" >&5 $as_echo_n "checking for onig_init in -lonig... " >&6; } -if test "${ac_cv_lib_onig_onig_init+set}" = set; then : +if ${ac_cv_lib_onig_onig_init+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS @@ -58293,7 +58426,7 @@ fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_onig_onig_init" >&5 $as_echo "$ac_cv_lib_onig_onig_init" >&6; } -if test "x$ac_cv_lib_onig_onig_init" = x""yes; then : +if test "x$ac_cv_lib_onig_onig_init" = xyes; then : LDFLAGS=$save_old_LDFLAGS ext_shared=$save_ext_shared @@ -58319,6 +58452,7 @@ if test "$ext_shared" = "yes"; then MBSTRING_SHARED_LIBADD="-L$ai_p $MBSTRING_SHARED_LIBADD" + test "x$PHP_RPATH" != "xno" && \ test -n "$ld_runpath_switch" && MBSTRING_SHARED_LIBADD="$ld_runpath_switch$ai_p $MBSTRING_SHARED_LIBADD" else @@ -58330,6 +58464,7 @@ if test -n "$unique" && test "`eval $cmd`" = "" ; then eval "LIBPATH$unique=set" + test "x$PHP_RPATH" != "xno" && test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" LDFLAGS="$LDFLAGS -L$ai_p" PHP_RPATHS="$PHP_RPATHS $ai_p" @@ -58369,6 +58504,7 @@ if test -n "$unique" && test "`eval $cmd`" = "" ; then eval "LIBPATH$unique=set" + test "x$PHP_RPATH" != "xno" && test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" LDFLAGS="$LDFLAGS -L$ai_p" PHP_RPATHS="$PHP_RPATHS $ai_p" @@ -58406,7 +58542,7 @@ ext_shared=$save_ext_shared unset ac_cv_lib_onig_onig_init - as_fn_error "Problem with oniguruma. Please check config.log for more information." "$LINENO" 5 + as_fn_error $? "Problem with oniguruma. Please check config.log for more information." "$LINENO" 5 fi @@ -58476,6 +58612,7 @@ if test "$ext_shared" = "yes"; then LDFLAGS="-L$ai_p $LDFLAGS" + test "x$PHP_RPATH" != "xno" && \ test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS" else @@ -58487,6 +58624,7 @@ if test -n "$unique" && test "`eval $cmd`" = "" ; then eval "LIBPATH$unique=set" + test "x$PHP_RPATH" != "xno" && test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" LDFLAGS="$LDFLAGS -L$ai_p" PHP_RPATHS="$PHP_RPATHS $ai_p" @@ -58689,7 +58827,7 @@ done if test -z "$PHP_LIBMBFL_INCLUDE"; then - as_fn_error "mbfilter.h not found. Please reinstall libmbfl library." "$LINENO" 5 + as_fn_error $? "mbfilter.h not found. Please reinstall libmbfl library." "$LINENO" 5 else if test "$PHP_LIBMBFL_INCLUDE" != "/usr/include"; then @@ -58795,6 +58933,7 @@ if test "$ext_shared" = "yes"; then LDFLAGS="-L$ai_p $LDFLAGS" + test "x$PHP_RPATH" != "xno" && \ test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS" else @@ -58806,6 +58945,7 @@ if test -n "$unique" && test "`eval $cmd`" = "" ; then eval "LIBPATH$unique=set" + test "x$PHP_RPATH" != "xno" && test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" LDFLAGS="$LDFLAGS -L$ai_p" PHP_RPATHS="$PHP_RPATHS $ai_p" @@ -58823,7 +58963,7 @@ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbfl_buffer_converter_new in -lmbfl" >&5 $as_echo_n "checking for mbfl_buffer_converter_new in -lmbfl... " >&6; } -if test "${ac_cv_lib_mbfl_mbfl_buffer_converter_new+set}" = set; then : +if ${ac_cv_lib_mbfl_mbfl_buffer_converter_new+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS @@ -58857,7 +58997,7 @@ fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mbfl_mbfl_buffer_converter_new" >&5 $as_echo "$ac_cv_lib_mbfl_mbfl_buffer_converter_new" >&6; } -if test "x$ac_cv_lib_mbfl_mbfl_buffer_converter_new" = x""yes; then : +if test "x$ac_cv_lib_mbfl_mbfl_buffer_converter_new" = xyes; then : LDFLAGS=$save_old_LDFLAGS ext_shared=$save_ext_shared @@ -58883,6 +59023,7 @@ if test "$ext_shared" = "yes"; then MBSTRING_SHARED_LIBADD="-L$ai_p $MBSTRING_SHARED_LIBADD" + test "x$PHP_RPATH" != "xno" && \ test -n "$ld_runpath_switch" && MBSTRING_SHARED_LIBADD="$ld_runpath_switch$ai_p $MBSTRING_SHARED_LIBADD" else @@ -58894,6 +59035,7 @@ if test -n "$unique" && test "`eval $cmd`" = "" ; then eval "LIBPATH$unique=set" + test "x$PHP_RPATH" != "xno" && test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" LDFLAGS="$LDFLAGS -L$ai_p" PHP_RPATHS="$PHP_RPATHS $ai_p" @@ -58933,6 +59075,7 @@ if test -n "$unique" && test "`eval $cmd`" = "" ; then eval "LIBPATH$unique=set" + test "x$PHP_RPATH" != "xno" && test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" LDFLAGS="$LDFLAGS -L$ai_p" PHP_RPATHS="$PHP_RPATHS $ai_p" @@ -58967,7 +59110,7 @@ ext_shared=$save_ext_shared unset ac_cv_lib_mbfl_mbfl_buffer_converter_new - as_fn_error "Problem with libmbfl. Please check config.log for more information." "$LINENO" 5 + as_fn_error $? "Problem with libmbfl. Please check config.log for more information." "$LINENO" 5 fi @@ -59527,7 +59670,7 @@ done if test -z "$MCRYPT_DIR"; then - as_fn_error "mcrypt.h not found. Please reinstall libmcrypt." "$LINENO" 5 + as_fn_error $? "mcrypt.h not found. Please reinstall libmcrypt." "$LINENO" 5 fi @@ -59552,7 +59695,7 @@ else - as_fn_error "libmcrypt version 2.5.6 or greater required." "$LINENO" 5 + as_fn_error $? "libmcrypt version 2.5.6 or greater required." "$LINENO" 5 fi rm -f conftest* @@ -59631,6 +59774,7 @@ if test "$ext_shared" = "yes"; then LDFLAGS="-L$ai_p $LDFLAGS" + test "x$PHP_RPATH" != "xno" && \ test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS" else @@ -59642,6 +59786,7 @@ if test -n "$unique" && test "`eval $cmd`" = "" ; then eval "LIBPATH$unique=set" + test "x$PHP_RPATH" != "xno" && test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" LDFLAGS="$LDFLAGS -L$ai_p" PHP_RPATHS="$PHP_RPATHS $ai_p" @@ -59659,7 +59804,7 @@ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mcrypt_module_open in -lmcrypt" >&5 $as_echo_n "checking for mcrypt_module_open in -lmcrypt... " >&6; } -if test "${ac_cv_lib_mcrypt_mcrypt_module_open+set}" = set; then : +if ${ac_cv_lib_mcrypt_mcrypt_module_open+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS @@ -59693,7 +59838,7 @@ fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mcrypt_mcrypt_module_open" >&5 $as_echo "$ac_cv_lib_mcrypt_mcrypt_module_open" >&6; } -if test "x$ac_cv_lib_mcrypt_mcrypt_module_open" = x""yes; then : +if test "x$ac_cv_lib_mcrypt_mcrypt_module_open" = xyes; then : LDFLAGS=$save_old_LDFLAGS ext_shared=$save_ext_shared @@ -59803,6 +59948,7 @@ if test "$ext_shared" = "yes"; then LDFLAGS="-L$ai_p $LDFLAGS" + test "x$PHP_RPATH" != "xno" && \ test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS" else @@ -59814,6 +59960,7 @@ if test -n "$unique" && test "`eval $cmd`" = "" ; then eval "LIBPATH$unique=set" + test "x$PHP_RPATH" != "xno" && test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" LDFLAGS="$LDFLAGS -L$ai_p" PHP_RPATHS="$PHP_RPATHS $ai_p" @@ -59831,7 +59978,7 @@ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mcrypt_module_open in -lmcrypt" >&5 $as_echo_n "checking for mcrypt_module_open in -lmcrypt... " >&6; } -if test "${ac_cv_lib_mcrypt_mcrypt_module_open+set}" = set; then : +if ${ac_cv_lib_mcrypt_mcrypt_module_open+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS @@ -59865,7 +60012,7 @@ fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mcrypt_mcrypt_module_open" >&5 $as_echo "$ac_cv_lib_mcrypt_mcrypt_module_open" >&6; } -if test "x$ac_cv_lib_mcrypt_mcrypt_module_open" = x""yes; then : +if test "x$ac_cv_lib_mcrypt_mcrypt_module_open" = xyes; then : LDFLAGS=$save_old_LDFLAGS ext_shared=$save_ext_shared @@ -59881,7 +60028,7 @@ ext_shared=$save_ext_shared unset ac_cv_lib_mcrypt_mcrypt_module_open - as_fn_error "Sorry, I was not able to diagnose which libmcrypt version you have installed." "$LINENO" 5 + as_fn_error $? "Sorry, I was not able to diagnose which libmcrypt version you have installed." "$LINENO" 5 fi @@ -59912,6 +60059,7 @@ if test "$ext_shared" = "yes"; then MCRYPT_SHARED_LIBADD="-L$ai_p $MCRYPT_SHARED_LIBADD" + test "x$PHP_RPATH" != "xno" && \ test -n "$ld_runpath_switch" && MCRYPT_SHARED_LIBADD="$ld_runpath_switch$ai_p $MCRYPT_SHARED_LIBADD" else @@ -59923,6 +60071,7 @@ if test -n "$unique" && test "`eval $cmd`" = "" ; then eval "LIBPATH$unique=set" + test "x$PHP_RPATH" != "xno" && test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" LDFLAGS="$LDFLAGS -L$ai_p" PHP_RPATHS="$PHP_RPATHS $ai_p" @@ -59962,6 +60111,7 @@ if test -n "$unique" && test "`eval $cmd`" = "" ; then eval "LIBPATH$unique=set" + test "x$PHP_RPATH" != "xno" && test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" LDFLAGS="$LDFLAGS -L$ai_p" PHP_RPATHS="$PHP_RPATHS $ai_p" @@ -60380,7 +60530,7 @@ done if test -z "$FREETDS_INSTALLATION_DIR"; then - as_fn_error "Cannot find FreeTDS in known installation directories" "$LINENO" 5 + as_fn_error $? "Cannot find FreeTDS in known installation directories" "$LINENO" 5 fi elif test "$PHP_MSSQL" != "no"; then @@ -60392,12 +60542,12 @@ FREETDS_INSTALLATION_DIR=$PHP_MSSQL FREETDS_INCLUDE_DIR=$PHP_MSSQL/include/freetds else - as_fn_error "Directory $PHP_MSSQL is not a FreeTDS installation directory" "$LINENO" 5 + as_fn_error $? "Directory $PHP_MSSQL is not a FreeTDS installation directory" "$LINENO" 5 fi fi - if test ! -r "$FREETDS_INSTALLATION_DIR/$PHP_LIBDIR/libsybdb.a" && test ! -r "$FREETDS_INSTALLATION_DIR/$PHP_LIBDIR/libsybdb.so"; then - as_fn_error "Could not find $FREETDS_INSTALLATION_DIR/$PHP_LIBDIR/libsybdb.a|so" "$LINENO" 5 + if test ! -r "$FREETDS_INSTALLATION_DIR/$PHP_LIBDIR/libsybdb.a" && test ! -r "$FREETDS_INSTALLATION_DIR/$PHP_LIBDIR/$DEB_HOST_MULTIARCH/libsybdb.so" && test ! -r "$FREETDS_INSTALLATION_DIR/$PHP_LIBDIR/libsybdb.so"; then + as_fn_error $? "Could not find $FREETDS_INSTALLATION_DIR/$PHP_LIBDIR/libsybdb.a|so" "$LINENO" 5 fi @@ -60452,6 +60602,7 @@ if test "$ext_shared" = "yes"; then MSSQL_SHARED_LIBADD="-L$ai_p $MSSQL_SHARED_LIBADD" + test "x$PHP_RPATH" != "xno" && \ test -n "$ld_runpath_switch" && MSSQL_SHARED_LIBADD="$ld_runpath_switch$ai_p $MSSQL_SHARED_LIBADD" else @@ -60463,6 +60614,7 @@ if test -n "$unique" && test "`eval $cmd`" = "" ; then eval "LIBPATH$unique=set" + test "x$PHP_RPATH" != "xno" && test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" LDFLAGS="$LDFLAGS -L$ai_p" PHP_RPATHS="$PHP_RPATHS $ai_p" @@ -60502,6 +60654,7 @@ if test -n "$unique" && test "`eval $cmd`" = "" ; then eval "LIBPATH$unique=set" + test "x$PHP_RPATH" != "xno" && test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" LDFLAGS="$LDFLAGS -L$ai_p" PHP_RPATHS="$PHP_RPATHS $ai_p" @@ -60824,7 +60977,7 @@ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_addr in -ldnet_stub" >&5 $as_echo_n "checking for dnet_addr in -ldnet_stub... " >&6; } -if test "${ac_cv_lib_dnet_stub_dnet_addr+set}" = set; then : +if ${ac_cv_lib_dnet_stub_dnet_addr+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS @@ -60858,7 +61011,7 @@ fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_addr" >&5 $as_echo "$ac_cv_lib_dnet_stub_dnet_addr" >&6; } -if test "x$ac_cv_lib_dnet_stub_dnet_addr" = x""yes; then : +if test "x$ac_cv_lib_dnet_stub_dnet_addr" = xyes; then : if test "$ext_shared" = "yes"; then @@ -60880,6 +61033,7 @@ if test "$ext_shared" = "yes"; then MSSQL_SHARED_LIBADD="-L$ai_p $MSSQL_SHARED_LIBADD" + test "x$PHP_RPATH" != "xno" && \ test -n "$ld_runpath_switch" && MSSQL_SHARED_LIBADD="$ld_runpath_switch$ai_p $MSSQL_SHARED_LIBADD" else @@ -60891,6 +61045,7 @@ if test -n "$unique" && test "`eval $cmd`" = "" ; then eval "LIBPATH$unique=set" + test "x$PHP_RPATH" != "xno" && test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" LDFLAGS="$LDFLAGS -L$ai_p" PHP_RPATHS="$PHP_RPATHS $ai_p" @@ -60930,6 +61085,7 @@ if test -n "$unique" && test "`eval $cmd`" = "" ; then eval "LIBPATH$unique=set" + test "x$PHP_RPATH" != "xno" && test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" LDFLAGS="$LDFLAGS -L$ai_p" PHP_RPATHS="$PHP_RPATHS $ai_p" @@ -60978,8 +61134,6 @@ - - php_with_mysql=no { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MySQL support" >&5 @@ -61092,11 +61246,11 @@ fi if test -z "$MYSQL_DIR"; then - as_fn_error "Cannot find MySQL header files under $PHP_MYSQL. + as_fn_error $? "Cannot find MySQL header files under $PHP_MYSQL. Note that the MySQL client library is not bundled anymore!" "$LINENO" 5 fi - if test "$enable_maintainer_zts" = "yes"; then + if true || test "$enable_maintainer_zts" = "yes"; then MYSQL_LIBNAME=mysqlclient_r else MYSQL_LIBNAME=mysqlclient @@ -61112,19 +61266,11 @@ fi for i in $PHP_LIBDIR $PHP_LIBDIR/mysql; do - - str="$MYSQL_DIR/$i/lib$MYSQL_LIBNAME.*" - for j in `echo $str`; do - if test -r $j; then - MYSQL_LIB_DIR=$MYSQL_DIR/$i - break 2 - fi - done - + test -f "$MYSQL_DIR/$i/lib$MYSQL_LIBNAME.$SHLIB_SUFFIX_NAME" || test -f "$MYSQL_DIR/$i/$DEB_HOST_MULTIARCH/lib$MYSQL_LIBNAME.$SHLIB_SUFFIX_NAME" || test -r "$MYSQL_DIR/$i/lib$MYSQL_LIBNAME.a" && MYSQL_LIB_DIR=$MYSQL_DIR/$i done if test -z "$MYSQL_LIB_DIR"; then - as_fn_error "Cannot find lib$MYSQL_LIBNAME under $MYSQL_DIR. + as_fn_error $? "Cannot find lib$MYSQL_LIBNAME under $MYSQL_DIR. Note that the MySQL client library is not bundled anymore!" "$LINENO" 5 fi @@ -61199,6 +61345,7 @@ if test "$ext_shared" = "yes"; then LDFLAGS="-L$ai_p $LDFLAGS" + test "x$PHP_RPATH" != "xno" && \ test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS" else @@ -61210,6 +61357,7 @@ if test -n "$unique" && test "`eval $cmd`" = "" ; then eval "LIBPATH$unique=set" + test "x$PHP_RPATH" != "xno" && test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" LDFLAGS="$LDFLAGS -L$ai_p" PHP_RPATHS="$PHP_RPATHS $ai_p" @@ -61228,7 +61376,7 @@ as_ac_Lib=`$as_echo "ac_cv_lib_$MYSQL_LIBNAME''_mysql_close" | $as_tr_sh` { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mysql_close in -l$MYSQL_LIBNAME" >&5 $as_echo_n "checking for mysql_close in -l$MYSQL_LIBNAME... " >&6; } -if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then : +if eval \${$as_ac_Lib+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS @@ -61263,8 +61411,7 @@ eval ac_res=\$$as_ac_Lib { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 $as_echo "$ac_res" >&6; } -eval as_val=\$$as_ac_Lib - if test "x$as_val" = x""yes; then : +if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : LDFLAGS=$save_old_LDFLAGS ext_shared=$save_ext_shared @@ -61298,6 +61445,7 @@ if test "$ext_shared" = "yes"; then MYSQL_SHARED_LIBADD="-L$ai_p $MYSQL_SHARED_LIBADD" + test "x$PHP_RPATH" != "xno" && \ test -n "$ld_runpath_switch" && MYSQL_SHARED_LIBADD="$ld_runpath_switch$ai_p $MYSQL_SHARED_LIBADD" else @@ -61309,6 +61457,7 @@ if test -n "$unique" && test "`eval $cmd`" = "" ; then eval "LIBPATH$unique=set" + test "x$PHP_RPATH" != "xno" && test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" LDFLAGS="$LDFLAGS -L$ai_p" PHP_RPATHS="$PHP_RPATHS $ai_p" @@ -61348,6 +61497,7 @@ if test -n "$unique" && test "`eval $cmd`" = "" ; then eval "LIBPATH$unique=set" + test "x$PHP_RPATH" != "xno" && test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" LDFLAGS="$LDFLAGS -L$ai_p" PHP_RPATHS="$PHP_RPATHS $ai_p" @@ -61445,6 +61595,7 @@ if test "$ext_shared" = "yes"; then LDFLAGS="-L$ai_p $LDFLAGS" + test "x$PHP_RPATH" != "xno" && \ test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS" else @@ -61456,6 +61607,7 @@ if test -n "$unique" && test "`eval $cmd`" = "" ; then eval "LIBPATH$unique=set" + test "x$PHP_RPATH" != "xno" && test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" LDFLAGS="$LDFLAGS -L$ai_p" PHP_RPATHS="$PHP_RPATHS $ai_p" @@ -61474,7 +61626,7 @@ as_ac_Lib=`$as_echo "ac_cv_lib_$MYSQL_LIBNAME''_mysql_error" | $as_tr_sh` { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mysql_error in -l$MYSQL_LIBNAME" >&5 $as_echo_n "checking for mysql_error in -l$MYSQL_LIBNAME... " >&6; } -if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then : +if eval \${$as_ac_Lib+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS @@ -61509,8 +61661,7 @@ eval ac_res=\$$as_ac_Lib { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 $as_echo "$ac_res" >&6; } -eval as_val=\$$as_ac_Lib - if test "x$as_val" = x""yes; then : +if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : LDFLAGS=$save_old_LDFLAGS ext_shared=$save_ext_shared @@ -61522,7 +61673,7 @@ ext_shared=$save_ext_shared unset ac_cv_lib_$MYSQL_LIBNAME_mysql_error - as_fn_error "mysql configure failed. Please check config.log for more information." "$LINENO" 5 + as_fn_error $? "mysql configure failed. Please check config.log for more information." "$LINENO" 5 fi @@ -61623,6 +61774,7 @@ if test "$ext_shared" = "yes"; then LDFLAGS="-L$ai_p $LDFLAGS" + test "x$PHP_RPATH" != "xno" && \ test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS" else @@ -61634,6 +61786,7 @@ if test -n "$unique" && test "`eval $cmd`" = "" ; then eval "LIBPATH$unique=set" + test "x$PHP_RPATH" != "xno" && test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" LDFLAGS="$LDFLAGS -L$ai_p" PHP_RPATHS="$PHP_RPATHS $ai_p" @@ -61652,7 +61805,7 @@ as_ac_Lib=`$as_echo "ac_cv_lib_$MYSQL_LIBNAME''_mysql_errno" | $as_tr_sh` { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mysql_errno in -l$MYSQL_LIBNAME" >&5 $as_echo_n "checking for mysql_errno in -l$MYSQL_LIBNAME... " >&6; } -if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then : +if eval \${$as_ac_Lib+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS @@ -61687,8 +61840,7 @@ eval ac_res=\$$as_ac_Lib { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 $as_echo "$ac_res" >&6; } -eval as_val=\$$as_ac_Lib - if test "x$as_val" = x""yes; then : +if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : LDFLAGS=$save_old_LDFLAGS ext_shared=$save_ext_shared @@ -61700,7 +61852,7 @@ ext_shared=$save_ext_shared unset ac_cv_lib_$MYSQL_LIBNAME_mysql_errno - as_fn_error "Try adding --with-zlib-dir=. Please check config.log for more information." "$LINENO" 5 + as_fn_error $? "Try adding --with-zlib-dir=. Please check config.log for more information." "$LINENO" 5 fi @@ -61733,6 +61885,7 @@ if test "$ext_shared" = "yes"; then MYSQL_SHARED_LIBADD="-L$ai_p $MYSQL_SHARED_LIBADD" + test "x$PHP_RPATH" != "xno" && \ test -n "$ld_runpath_switch" && MYSQL_SHARED_LIBADD="$ld_runpath_switch$ai_p $MYSQL_SHARED_LIBADD" else @@ -61744,6 +61897,7 @@ if test -n "$unique" && test "`eval $cmd`" = "" ; then eval "LIBPATH$unique=set" + test "x$PHP_RPATH" != "xno" && test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" LDFLAGS="$LDFLAGS -L$ai_p" PHP_RPATHS="$PHP_RPATHS $ai_p" @@ -61783,6 +61937,7 @@ if test -n "$unique" && test "`eval $cmd`" = "" ; then eval "LIBPATH$unique=set" + test "x$PHP_RPATH" != "xno" && test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" LDFLAGS="$LDFLAGS -L$ai_p" PHP_RPATHS="$PHP_RPATHS $ai_p" @@ -62220,7 +62375,7 @@ is_it_shared=$PHP_MYSQLND_SHARED is_it_enabled=$PHP_MYSQLND if test "$am_i_shared" = "no" && test "$is_it_shared" = "yes" ; then - as_fn_error " + as_fn_error $? " You've configured extension mysql to build statically, but it depends on extension mysqlnd, which you've configured to build shared. You either need to build mysql shared or build mysqlnd statically for the @@ -62228,7 +62383,7 @@ " "$LINENO" 5 fi if test "x$is_it_enabled" = "xno" && test "x" != "xtrue"; then - as_fn_error " + as_fn_error $? " You've configured extension mysql, which depends on extension mysqlnd, but you've either not enabled mysqlnd, or have disabled it. " "$LINENO" 5 @@ -62323,7 +62478,7 @@ MYSQL_LIB_CFG='--libmysqld-libs' mysqli_extra_sources="mysqli_embedded.c" - elif test "$enable_maintainer_zts" = "yes"; then + elif true || test "$enable_maintainer_zts" = "yes"; then MYSQL_LIB_CFG='--libs_r' MYSQL_LIB_NAME='mysqlclient_r' else @@ -62336,7 +62491,7 @@ else { $as_echo "$as_me:${as_lineno-$LINENO}: result: mysql_config not found" >&5 $as_echo "mysql_config not found" >&6; } - as_fn_error "Please reinstall the mysql distribution" "$LINENO" 5 + as_fn_error $? "Please reinstall the mysql distribution" "$LINENO" 5 fi @@ -62410,6 +62565,7 @@ if test "$ext_shared" = "yes"; then LDFLAGS="-L$ai_p $LDFLAGS" + test "x$PHP_RPATH" != "xno" && \ test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS" else @@ -62421,6 +62577,7 @@ if test -n "$unique" && test "`eval $cmd`" = "" ; then eval "LIBPATH$unique=set" + test "x$PHP_RPATH" != "xno" && test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" LDFLAGS="$LDFLAGS -L$ai_p" PHP_RPATHS="$PHP_RPATHS $ai_p" @@ -62439,7 +62596,7 @@ as_ac_Lib=`$as_echo "ac_cv_lib_$MYSQL_LIB_NAME''_mysql_set_server_option" | $as_tr_sh` { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mysql_set_server_option in -l$MYSQL_LIB_NAME" >&5 $as_echo_n "checking for mysql_set_server_option in -l$MYSQL_LIB_NAME... " >&6; } -if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then : +if eval \${$as_ac_Lib+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS @@ -62474,8 +62631,7 @@ eval ac_res=\$$as_ac_Lib { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 $as_echo "$ac_res" >&6; } -eval as_val=\$$as_ac_Lib - if test "x$as_val" = x""yes; then : +if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : LDFLAGS=$save_old_LDFLAGS ext_shared=$save_ext_shared @@ -62583,6 +62739,7 @@ if test "$ext_shared" = "yes"; then MYSQLI_SHARED_LIBADD="-L$ai_p $MYSQLI_SHARED_LIBADD" + test "x$PHP_RPATH" != "xno" && \ test -n "$ld_runpath_switch" && MYSQLI_SHARED_LIBADD="$ld_runpath_switch$ai_p $MYSQLI_SHARED_LIBADD" else @@ -62594,6 +62751,7 @@ if test -n "$unique" && test "`eval $cmd`" = "" ; then eval "LIBPATH$unique=set" + test "x$PHP_RPATH" != "xno" && test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" LDFLAGS="$LDFLAGS -L$ai_p" PHP_RPATHS="$PHP_RPATHS $ai_p" @@ -62681,6 +62839,7 @@ if test "$ext_shared" = "yes"; then LDFLAGS="-L$ai_p $LDFLAGS" + test "x$PHP_RPATH" != "xno" && \ test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS" else @@ -62692,6 +62851,7 @@ if test -n "$unique" && test "`eval $cmd`" = "" ; then eval "LIBPATH$unique=set" + test "x$PHP_RPATH" != "xno" && test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" LDFLAGS="$LDFLAGS -L$ai_p" PHP_RPATHS="$PHP_RPATHS $ai_p" @@ -62710,7 +62870,7 @@ as_ac_Lib=`$as_echo "ac_cv_lib_$MYSQL_LIB_NAME''_mysql_set_character_set" | $as_tr_sh` { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mysql_set_character_set in -l$MYSQL_LIB_NAME" >&5 $as_echo_n "checking for mysql_set_character_set in -l$MYSQL_LIB_NAME... " >&6; } -if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then : +if eval \${$as_ac_Lib+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS @@ -62745,8 +62905,7 @@ eval ac_res=\$$as_ac_Lib { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 $as_echo "$ac_res" >&6; } -eval as_val=\$$as_ac_Lib - if test "x$as_val" = x""yes; then : +if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : LDFLAGS=$save_old_LDFLAGS ext_shared=$save_ext_shared @@ -62758,7 +62917,7 @@ ext_shared=$save_ext_shared unset ac_cv_lib_$MYSQL_LIB_NAME_mysql_set_character_set - as_fn_error "MySQLI doesn't support versions < 4.1.13 (for MySQL 4.1.x) and < 5.0.7 for (MySQL 5.0.x) anymore. Please update your libraries." "$LINENO" 5 + as_fn_error $? "MySQLI doesn't support versions < 4.1.13 (for MySQL 4.1.x) and < 5.0.7 for (MySQL 5.0.x) anymore. Please update your libraries." "$LINENO" 5 fi @@ -62771,7 +62930,7 @@ ext_shared=$save_ext_shared unset ac_cv_lib_$MYSQL_LIB_NAME_mysql_set_server_option - as_fn_error "wrong mysql library version or lib not found. Check config.log for more information." "$LINENO" 5 + as_fn_error $? "wrong mysql library version or lib not found. Check config.log for more information." "$LINENO" 5 fi @@ -62847,6 +63006,7 @@ if test "$ext_shared" = "yes"; then LDFLAGS="-L$ai_p $LDFLAGS" + test "x$PHP_RPATH" != "xno" && \ test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS" else @@ -62858,6 +63018,7 @@ if test -n "$unique" && test "`eval $cmd`" = "" ; then eval "LIBPATH$unique=set" + test "x$PHP_RPATH" != "xno" && test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" LDFLAGS="$LDFLAGS -L$ai_p" PHP_RPATHS="$PHP_RPATHS $ai_p" @@ -62876,7 +63037,7 @@ as_ac_Lib=`$as_echo "ac_cv_lib_$MYSQL_LIB_NAME''_mysql_stmt_next_result" | $as_tr_sh` { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mysql_stmt_next_result in -l$MYSQL_LIB_NAME" >&5 $as_echo_n "checking for mysql_stmt_next_result in -l$MYSQL_LIB_NAME... " >&6; } -if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then : +if eval \${$as_ac_Lib+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS @@ -62911,8 +63072,7 @@ eval ac_res=\$$as_ac_Lib { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 $as_echo "$ac_res" >&6; } -eval as_val=\$$as_ac_Lib - if test "x$as_val" = x""yes; then : +if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : LDFLAGS=$save_old_LDFLAGS ext_shared=$save_ext_shared @@ -63259,7 +63419,7 @@ is_it_shared=$PHP_MYSQLND_SHARED is_it_enabled=$PHP_MYSQLND if test "$am_i_shared" = "no" && test "$is_it_shared" = "yes" ; then - as_fn_error " + as_fn_error $? " You've configured extension mysqli to build statically, but it depends on extension mysqlnd, which you've configured to build shared. You either need to build mysqli shared or build mysqlnd statically for the @@ -63267,7 +63427,7 @@ " "$LINENO" 5 fi if test "x$is_it_enabled" = "xno" && test "x" != "xtrue"; then - as_fn_error " + as_fn_error $? " You've configured extension mysqli, which depends on extension mysqlnd, but you've either not enabled mysqlnd, or have disabled it. " "$LINENO" 5 @@ -63343,7 +63503,7 @@ if test "$PHP_OCI8" != "no"; then if test -z "$PHP_OCI8"; then - as_fn_error "Empty parameter value passed to --with-oci8" "$LINENO" 5 + as_fn_error $? "Empty parameter value passed to --with-oci8" "$LINENO" 5 fi @@ -63353,7 +63513,7 @@ tmp_version=$PHP_VERSION if test -z "$tmp_version"; then if test -z "$PHP_CONFIG"; then - as_fn_error "php-config not found" "$LINENO" 5 + as_fn_error $? "php-config not found" "$LINENO" 5 fi php_version=`$PHP_CONFIG --version 2>/dev/null|head -n 1|$PHP_OCI8_SED -e 's#\([0-9]\.[0-9]*\.[0-9]*\)\(.*\)#\1#'` else @@ -63361,7 +63521,7 @@ fi if test -z "$php_version"; then - as_fn_error "failed to detect PHP version, please report" "$LINENO" 5 + as_fn_error $? "failed to detect PHP version, please report" "$LINENO" 5 fi ac_IFS=$IFS @@ -63371,9 +63531,9 @@ oci8_php_version=`expr $1 \* 1000000 + $2 \* 1000 + $3` if test "$oci8_php_version" -lt "4003009"; then - as_fn_error "You need at least PHP 4.3.9 to be able to use this version of OCI8. PHP $php_version found" "$LINENO" 5 + as_fn_error $? "You need at least PHP 4.3.9 to be able to use this version of OCI8. PHP $php_version found" "$LINENO" 5 elif test "$oci8_php_version" -ge "6000000"; then - as_fn_error "This version of OCI8 is not compatible with PHP 6 or higher" "$LINENO" 5 + as_fn_error $? "This version of OCI8 is not compatible with PHP 6 or higher" "$LINENO" 5 else { $as_echo "$as_me:${as_lineno-$LINENO}: result: $php_version, ok" >&5 $as_echo "$php_version, ok" >&6; } @@ -63386,7 +63546,7 @@ # This bug is HP SR number 8606223364. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long int" >&5 $as_echo_n "checking size of long int... " >&6; } -if test "${ac_cv_sizeof_long_int+set}" = set; then : +if ${ac_cv_sizeof_long_int+:} false; then : $as_echo_n "(cached) " >&6 else if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long int))" "ac_cv_sizeof_long_int" "$ac_includes_default"; then : @@ -63395,9 +63555,8 @@ if test "$ac_cv_type_long_int" = yes; then { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} -{ as_fn_set_status 77 -as_fn_error "cannot compute sizeof (long int) -See \`config.log' for more details." "$LINENO" 5; }; } +as_fn_error 77 "cannot compute sizeof (long int) +See \`config.log' for more details" "$LINENO" 5; } else ac_cv_sizeof_long_int=0 fi @@ -63476,7 +63635,7 @@ { $as_echo "$as_me:${as_lineno-$LINENO}: checking ORACLE_HOME library validity" >&5 $as_echo_n "checking ORACLE_HOME library validity... " >&6; } if test ! -d "$OCI8_DIR"; then - as_fn_error "${OCI8_DIR} is not a directory" "$LINENO" 5 + as_fn_error $? "${OCI8_DIR} is not a directory" "$LINENO" 5 fi if test -d "$OCI8_DIR/lib" && test ! -d "$OCI8_DIR/lib32"; then OCI8_LIB_DIR=lib @@ -63486,9 +63645,9 @@ OCI8_LIB_DIR=$PHP_OCI8_OH_LIBDIR else if test -f "$OCI8_DIR/libociei.$SHLIB_SUFFIX_NAME"; then - as_fn_error "Expected an ORACLE_HOME top level directory but ${OCI8_DIR} appears to be an Instant Client directory. Try --with-oci8=instantclient,${OCI8_DIR}" "$LINENO" 5 + as_fn_error $? "Expected an ORACLE_HOME top level directory but ${OCI8_DIR} appears to be an Instant Client directory. Try --with-oci8=instantclient,${OCI8_DIR}" "$LINENO" 5 else - as_fn_error "Oracle library directory not found in ${OCI8_DIR}" "$LINENO" 5 + as_fn_error $? "Oracle library directory not found in ${OCI8_DIR}" "$LINENO" 5 fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCI8_LIB_DIR" >&5 @@ -63696,6 +63855,7 @@ if test "$ext_shared" = "yes"; then OCI8_SYSLIB="-L$ai_p $OCI8_SYSLIB" + test "x$PHP_RPATH" != "xno" && \ test -n "$ld_runpath_switch" && OCI8_SYSLIB="$ld_runpath_switch$ai_p $OCI8_SYSLIB" else @@ -63707,6 +63867,7 @@ if test -n "$unique" && test "`eval $cmd`" = "" ; then eval "LIBPATH$unique=set" + test "x$PHP_RPATH" != "xno" && test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" LDFLAGS="$LDFLAGS -L$ai_p" PHP_RPATHS="$PHP_RPATHS $ai_p" @@ -63786,6 +63947,7 @@ if test "$ext_shared" = "yes"; then OCI8_SYSLIB="-L$ai_p $OCI8_SYSLIB" + test "x$PHP_RPATH" != "xno" && \ test -n "$ld_runpath_switch" && OCI8_SYSLIB="$ld_runpath_switch$ai_p $OCI8_SYSLIB" else @@ -63797,6 +63959,7 @@ if test -n "$unique" && test "`eval $cmd`" = "" ; then eval "LIBPATH$unique=set" + test "x$PHP_RPATH" != "xno" && test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" LDFLAGS="$LDFLAGS -L$ai_p" PHP_RPATHS="$PHP_RPATHS $ai_p" @@ -63837,7 +64000,7 @@ OCI8_ORACLE_VERSION=8.1 fi else - as_fn_error "Oracle libclntsh.$SHLIB_SUFFIX_NAME client library not found" "$LINENO" 5 + as_fn_error $? "Oracle libclntsh.$SHLIB_SUFFIX_NAME client library not found" "$LINENO" 5 fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCI8_ORACLE_VERSION" >&5 $as_echo "$OCI8_ORACLE_VERSION" >&6; } @@ -63845,7 +64008,7 @@ case $OCI8_ORACLE_VERSION in 7.3|8.0|8.1) - as_fn_error "Oracle client libraries < 9.2 are not supported" "$LINENO" 5 + as_fn_error $? "Oracle client libraries < 9.2 are not supported" "$LINENO" 5 ;; 9.0) @@ -63920,6 +64083,7 @@ if test "$ext_shared" = "yes"; then LDFLAGS="-L$ai_p $LDFLAGS" + test "x$PHP_RPATH" != "xno" && \ test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS" else @@ -63931,6 +64095,7 @@ if test -n "$unique" && test "`eval $cmd`" = "" ; then eval "LIBPATH$unique=set" + test "x$PHP_RPATH" != "xno" && test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" LDFLAGS="$LDFLAGS -L$ai_p" PHP_RPATHS="$PHP_RPATHS $ai_p" @@ -63948,7 +64113,7 @@ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OCIEnvNlsCreate in -lclntsh" >&5 $as_echo_n "checking for OCIEnvNlsCreate in -lclntsh... " >&6; } -if test "${ac_cv_lib_clntsh_OCIEnvNlsCreate+set}" = set; then : +if ${ac_cv_lib_clntsh_OCIEnvNlsCreate+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS @@ -63982,7 +64147,7 @@ fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_clntsh_OCIEnvNlsCreate" >&5 $as_echo "$ac_cv_lib_clntsh_OCIEnvNlsCreate" >&6; } -if test "x$ac_cv_lib_clntsh_OCIEnvNlsCreate" = x""yes; then : +if test "x$ac_cv_lib_clntsh_OCIEnvNlsCreate" = xyes; then : LDFLAGS=$save_old_LDFLAGS ext_shared=$save_ext_shared @@ -63996,7 +64161,7 @@ ext_shared=$save_ext_shared unset ac_cv_lib_clntsh_OCIEnvNlsCreate - as_fn_error "Oracle client libraries < 9.2 are not supported" "$LINENO" 5 + as_fn_error $? "Oracle client libraries < 9.2 are not supported" "$LINENO" 5 fi @@ -64049,6 +64214,7 @@ if test "$ext_shared" = "yes"; then OCI8_SHARED_LIBADD="-L$ai_p $OCI8_SHARED_LIBADD" + test "x$PHP_RPATH" != "xno" && \ test -n "$ld_runpath_switch" && OCI8_SHARED_LIBADD="$ld_runpath_switch$ai_p $OCI8_SHARED_LIBADD" else @@ -64060,6 +64226,7 @@ if test -n "$unique" && test "`eval $cmd`" = "" ; then eval "LIBPATH$unique=set" + test "x$PHP_RPATH" != "xno" && test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" LDFLAGS="$LDFLAGS -L$ai_p" PHP_RPATHS="$PHP_RPATHS $ai_p" @@ -64406,7 +64573,7 @@ if test "$PHP_OCI8_INSTANT_CLIENT" = "yes"; then PHP_OCI8_INSTANT_CLIENT=`ls -d /usr/lib/oracle/*/client${PHP_OCI8_IC_LIBDIR_SUFFIX}/lib/libclntsh.* 2> /dev/null | tail -1 | $PHP_OCI8_SED -e 's#/libclntsh[^/]*##'` if test -z "$PHP_OCI8_INSTANT_CLIENT"; then - as_fn_error "Oracle Instant Client directory /usr/lib/oracle/.../client${PHP_OCI8_IC_LIBDIR_SUFFIX}/lib libraries not found. Try --with-oci8=instantclient,DIR" "$LINENO" 5 + as_fn_error $? "Oracle Instant Client directory /usr/lib/oracle/.../client${PHP_OCI8_IC_LIBDIR_SUFFIX}/lib libraries not found. Try --with-oci8=instantclient,DIR" "$LINENO" 5 fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PHP_OCI8_INSTANT_CLIENT" >&5 @@ -64529,7 +64696,7 @@ OCI8INCDIR=$OCISDKMANINC else - as_fn_error "Oracle Instant Client SDK header files not found" "$LINENO" 5 + as_fn_error $? "Oracle Instant Client SDK header files not found" "$LINENO" 5 fi OCISYSLIBLIST=`echo "$OCI8INCDIR" | $PHP_OCI8_SED -e 's!\(.*\)/include$!\1/demo/sysliblist!'` @@ -64597,6 +64764,7 @@ if test "$ext_shared" = "yes"; then OCI8_SYSLIB="-L$ai_p $OCI8_SYSLIB" + test "x$PHP_RPATH" != "xno" && \ test -n "$ld_runpath_switch" && OCI8_SYSLIB="$ld_runpath_switch$ai_p $OCI8_SYSLIB" else @@ -64608,6 +64776,7 @@ if test -n "$unique" && test "`eval $cmd`" = "" ; then eval "LIBPATH$unique=set" + test "x$PHP_RPATH" != "xno" && test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" LDFLAGS="$LDFLAGS -L$ai_p" PHP_RPATHS="$PHP_RPATHS $ai_p" @@ -64633,11 +64802,11 @@ OCI8_NNZ=`ls $PHP_OCI8_INSTANT_CLIENT/libnnz*.$SHLIB_SUFFIX_NAME 2> /dev/null | tail -1` if test -f "$OCI8_NNZ" && test -f "$OCI8_LCS"; then if test ! -f "$OCI8_LCS_BASE"; then - as_fn_error "Link from $OCI8_LCS_BASE to $OCI8_LCS_BASE.*.1 not found" "$LINENO" 5 + as_fn_error $? "Link from $OCI8_LCS_BASE to $OCI8_LCS_BASE.*.1 not found" "$LINENO" 5 fi OCI8_ORACLE_VERSION=`echo $OCI8_LCS | $PHP_OCI8_SED -e 's/.*\.\(.*\)\.1$/\1.1/'` else - as_fn_error "Oracle Instant Client libraries libnnz.$SHLIB_SUFFIX_NAME and libclntsh.$SHLIB_SUFFIX_NAME not found" "$LINENO" 5 + as_fn_error $? "Oracle Instant Client libraries libnnz.$SHLIB_SUFFIX_NAME and libclntsh.$SHLIB_SUFFIX_NAME not found" "$LINENO" 5 fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCI8_ORACLE_VERSION" >&5 $as_echo "$OCI8_ORACLE_VERSION" >&6; } @@ -64681,6 +64850,7 @@ if test "$ext_shared" = "yes"; then OCI8_SHARED_LIBADD="-L$ai_p $OCI8_SHARED_LIBADD" + test "x$PHP_RPATH" != "xno" && \ test -n "$ld_runpath_switch" && OCI8_SHARED_LIBADD="$ld_runpath_switch$ai_p $OCI8_SHARED_LIBADD" else @@ -64692,6 +64862,7 @@ if test -n "$unique" && test "`eval $cmd`" = "" ; then eval "LIBPATH$unique=set" + test "x$PHP_RPATH" != "xno" && test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" LDFLAGS="$LDFLAGS -L$ai_p" PHP_RPATHS="$PHP_RPATHS $ai_p" @@ -65145,6 +65316,7 @@ if test -n "$unique" && test "`eval $cmd`" = "" ; then eval "LIBPATH$unique=set" + test "x$PHP_RPATH" != "xno" && test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" LDFLAGS="$LDFLAGS -L$ai_p" PHP_RPATHS="$PHP_RPATHS $ai_p" @@ -65206,6 +65378,7 @@ if test -n "$unique" && test "`eval $cmd`" = "" ; then eval "LIBPATH$unique=set" + test "x$PHP_RPATH" != "xno" && test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" LDFLAGS="$LDFLAGS -L$ai_p" PHP_RPATHS="$PHP_RPATHS $ai_p" @@ -65233,7 +65406,7 @@ ODBC_INCDIR=$PHP_ADABAS/incl if ! test -f "$ODBC_INCDIR/sqlext.h"; then - as_fn_error "ODBC header file '$ODBC_INCDIR/sqlext.h' not found!" "$LINENO" 5 + as_fn_error $? "ODBC header file '$ODBC_INCDIR/sqlext.h' not found!" "$LINENO" 5 fi @@ -65348,6 +65521,7 @@ if test -n "$unique" && test "`eval $cmd`" = "" ; then eval "LIBPATH$unique=set" + test "x$PHP_RPATH" != "xno" && test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" LDFLAGS="$LDFLAGS -L$ai_p" PHP_RPATHS="$PHP_RPATHS $ai_p" @@ -65577,7 +65751,7 @@ if ! test -f "$ODBC_INCDIR/sqlcli1.h"; then - as_fn_error "ODBC header file '$ODBC_INCDIR/sqlcli1.h' not found!" "$LINENO" 5 + as_fn_error $? "ODBC header file '$ODBC_INCDIR/sqlcli1.h' not found!" "$LINENO" 5 fi @@ -65624,7 +65798,7 @@ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } - as_fn_error " + as_fn_error $? " build test failed. Please check the config.log for details. You need to source your DB2 environment before running PHP configure: # . \$IBM_DB2/db2profile @@ -66115,6 +66289,7 @@ if test -n "$unique" && test "`eval $cmd`" = "" ; then eval "LIBPATH$unique=set" + test "x$PHP_RPATH" != "xno" && test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" LDFLAGS="$LDFLAGS -L$ai_p" PHP_RPATHS="$PHP_RPATHS $ai_p" @@ -66306,7 +66481,7 @@ ODBC_TYPE=unixODBC if ! test -f "$ODBC_INCDIR/sqlext.h"; then - as_fn_error "ODBC header file '$ODBC_INCDIR/sqlext.h' not found!" "$LINENO" 5 + as_fn_error $? "ODBC header file '$ODBC_INCDIR/sqlext.h' not found!" "$LINENO" 5 fi @@ -66431,6 +66606,7 @@ if test -n "$unique" && test "`eval $cmd`" = "" ; then eval "LIBPATH$unique=set" + test "x$PHP_RPATH" != "xno" && test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" LDFLAGS="$LDFLAGS -L$ai_p" PHP_RPATHS="$PHP_RPATHS $ai_p" @@ -66555,6 +66731,7 @@ if test "$ext_shared" = "yes"; then ODBC_SHARED_LIBADD="-L$ai_p $ODBC_SHARED_LIBADD" + test "x$PHP_RPATH" != "xno" && \ test -n "$ld_runpath_switch" && ODBC_SHARED_LIBADD="$ld_runpath_switch$ai_p $ODBC_SHARED_LIBADD" else @@ -66566,6 +66743,7 @@ if test -n "$unique" && test "`eval $cmd`" = "" ; then eval "LIBPATH$unique=set" + test "x$PHP_RPATH" != "xno" && test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" LDFLAGS="$LDFLAGS -L$ai_p" PHP_RPATHS="$PHP_RPATHS $ai_p" @@ -66969,7 +67147,7 @@ for ac_func in fork do : ac_fn_c_check_func "$LINENO" "fork" "ac_cv_func_fork" -if test "x$ac_cv_func_fork" = x""yes; then : +if test "x$ac_cv_func_fork" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_FORK 1 _ACEOF @@ -66977,14 +67155,14 @@ $as_echo "#define HAVE_FORK 1" >>confdefs.h else - as_fn_error "pcntl: fork() not supported by this platform" "$LINENO" 5 + as_fn_error $? "pcntl: fork() not supported by this platform" "$LINENO" 5 fi done for ac_func in waitpid do : ac_fn_c_check_func "$LINENO" "waitpid" "ac_cv_func_waitpid" -if test "x$ac_cv_func_waitpid" = x""yes; then : +if test "x$ac_cv_func_waitpid" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_WAITPID 1 _ACEOF @@ -66992,14 +67170,14 @@ $as_echo "#define HAVE_WAITPID 1" >>confdefs.h else - as_fn_error "pcntl: waitpid() not supported by this platform" "$LINENO" 5 + as_fn_error $? "pcntl: waitpid() not supported by this platform" "$LINENO" 5 fi done for ac_func in sigaction do : ac_fn_c_check_func "$LINENO" "sigaction" "ac_cv_func_sigaction" -if test "x$ac_cv_func_sigaction" = x""yes; then : +if test "x$ac_cv_func_sigaction" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_SIGACTION 1 _ACEOF @@ -67007,7 +67185,7 @@ $as_echo "#define HAVE_SIGACTION 1" >>confdefs.h else - as_fn_error "pcntl: sigaction() not supported by this platform" "$LINENO" 5 + as_fn_error $? "pcntl: sigaction() not supported by this platform" "$LINENO" 5 fi done @@ -67015,8 +67193,7 @@ do : as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" -eval as_val=\$$as_ac_var - if test "x$as_val" = x""yes; then : +if eval test \"x\$"$as_ac_var"\" = x"yes"; then : cat >>confdefs.h <<_ACEOF #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 _ACEOF @@ -67382,7 +67559,7 @@ # we're running in an environment that smells like pear, # and the PHP_PEAR_VERSION env var is not set. That implies # that we're running under a slightly broken pear installer - as_fn_error " + as_fn_error $? " PDO requires that you upgrade your PEAR installer tools. Please do so now by running: @@ -67398,7 +67575,7 @@ if test "$ext_shared" = "yes" ; then case $host_alias in *darwin*) - as_fn_error " + as_fn_error $? " Due to the way that loadable modules work on OSX/Darwin, you need to compile the PDO package statically into the PHP core. @@ -67708,7 +67885,7 @@ is_it_shared=$PHP_SPL_SHARED is_it_enabled=$PHP_SPL if test "$am_i_shared" = "no" && test "$is_it_shared" = "yes" ; then - as_fn_error " + as_fn_error $? " You've configured extension pdo to build statically, but it depends on extension spl, which you've configured to build shared. You either need to build pdo shared or build spl statically for the @@ -67716,7 +67893,7 @@ " "$LINENO" 5 fi if test "x$is_it_enabled" = "xno" && test "xtrue" != "xtrue"; then - as_fn_error " + as_fn_error $? " You've configured extension pdo, which depends on extension spl, but you've either not enabled spl, or have disabled it. " "$LINENO" 5 @@ -67805,7 +67982,7 @@ if test "$PHP_PDO_DBLIB" != "no"; then if test "$PHP_PDO" = "no" && test "$ext_shared" = "no"; then - as_fn_error "PDO is not enabled! Add --enable-pdo to your configure line." "$LINENO" 5 + as_fn_error $? "PDO is not enabled! Add --enable-pdo to your configure line." "$LINENO" 5 fi if test "$PHP_PDO_DBLIB" = "yes"; then @@ -67823,7 +68000,7 @@ done if test -z "$PDO_FREETDS_INSTALLATION_DIR"; then - as_fn_error "Cannot find FreeTDS in known installation directories" "$LINENO" 5 + as_fn_error $? "Cannot find FreeTDS in known installation directories" "$LINENO" 5 fi elif test "$PHP_PDO_DBLIB" != "no"; then @@ -67835,7 +68012,7 @@ PDO_FREETDS_INSTALLATION_DIR=$PHP_PDO_DBLIB PDO_FREETDS_INCLUDE_DIR=$PHP_PDO_DBLIB/include/freetds else - as_fn_error "Directory $PHP_PDO_DBLIB is not a FreeTDS installation directory" "$LINENO" 5 + as_fn_error $? "Directory $PHP_PDO_DBLIB is not a FreeTDS installation directory" "$LINENO" 5 fi fi @@ -67843,8 +68020,8 @@ PHP_LIBDIR=lib fi - if test ! -r "$PDO_FREETDS_INSTALLATION_DIR/$PHP_LIBDIR/libsybdb.a" && test ! -r "$PDO_FREETDS_INSTALLATION_DIR/$PHP_LIBDIR/libsybdb.so"; then - as_fn_error "Could not find $PDO_FREETDS_INSTALLATION_DIR/$PHP_LIBDIR/libsybdb.a|so" "$LINENO" 5 + if test ! -r "$PDO_FREETDS_INSTALLATION_DIR/$PHP_LIBDIR/libsybdb.a" && test ! -r "$PDO_FREETDS_INSTALLATION_DIR/$PHP_LIBDIR/$DEB_HOST_MULTIARCH/libsybdb.so" && test ! -r "$PDO_FREETDS_INSTALLATION_DIR/$PHP_LIBDIR/libsybdb.so"; then + as_fn_error $? "Could not find $PDO_FREETDS_INSTALLATION_DIR/$PHP_LIBDIR/libsybdb.a|so" "$LINENO" 5 fi @@ -67899,6 +68076,7 @@ if test "$ext_shared" = "yes"; then PDO_DBLIB_SHARED_LIBADD="-L$ai_p $PDO_DBLIB_SHARED_LIBADD" + test "x$PHP_RPATH" != "xno" && \ test -n "$ld_runpath_switch" && PDO_DBLIB_SHARED_LIBADD="$ld_runpath_switch$ai_p $PDO_DBLIB_SHARED_LIBADD" else @@ -67910,6 +68088,7 @@ if test -n "$unique" && test "`eval $cmd`" = "" ; then eval "LIBPATH$unique=set" + test "x$PHP_RPATH" != "xno" && test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" LDFLAGS="$LDFLAGS -L$ai_p" PHP_RPATHS="$PHP_RPATHS $ai_p" @@ -67949,6 +68128,7 @@ if test -n "$unique" && test "`eval $cmd`" = "" ; then eval "LIBPATH$unique=set" + test "x$PHP_RPATH" != "xno" && test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" LDFLAGS="$LDFLAGS -L$ai_p" PHP_RPATHS="$PHP_RPATHS $ai_p" @@ -67980,7 +68160,7 @@ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PDO includes" >&5 $as_echo_n "checking for PDO includes... " >&6; } -if test "${pdo_cv_inc_path+set}" = set; then : +if ${pdo_cv_inc_path+:} false; then : $as_echo_n "(cached) " >&6 else @@ -68000,7 +68180,7 @@ if test -n "$pdo_cv_inc_path"; then : else -as_fn_error "Cannot find php_pdo_driver.h." "$LINENO" 5 +as_fn_error $? "Cannot find php_pdo_driver.h." "$LINENO" 5 fi @@ -68301,7 +68481,7 @@ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_addr in -ldnet_stub" >&5 $as_echo_n "checking for dnet_addr in -ldnet_stub... " >&6; } -if test "${ac_cv_lib_dnet_stub_dnet_addr+set}" = set; then : +if ${ac_cv_lib_dnet_stub_dnet_addr+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS @@ -68335,7 +68515,7 @@ fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_addr" >&5 $as_echo "$ac_cv_lib_dnet_stub_dnet_addr" >&6; } -if test "x$ac_cv_lib_dnet_stub_dnet_addr" = x""yes; then : +if test "x$ac_cv_lib_dnet_stub_dnet_addr" = xyes; then : if test "$ext_shared" = "yes"; then @@ -68357,6 +68537,7 @@ if test "$ext_shared" = "yes"; then PDO_DBLIB_SHARED_LIBADD="-L$ai_p $PDO_DBLIB_SHARED_LIBADD" + test "x$PHP_RPATH" != "xno" && \ test -n "$ld_runpath_switch" && PDO_DBLIB_SHARED_LIBADD="$ld_runpath_switch$ai_p $PDO_DBLIB_SHARED_LIBADD" else @@ -68368,6 +68549,7 @@ if test -n "$unique" && test "`eval $cmd`" = "" ; then eval "LIBPATH$unique=set" + test "x$PHP_RPATH" != "xno" && test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" LDFLAGS="$LDFLAGS -L$ai_p" PHP_RPATHS="$PHP_RPATHS $ai_p" @@ -68407,6 +68589,7 @@ if test -n "$unique" && test "`eval $cmd`" = "" ; then eval "LIBPATH$unique=set" + test "x$PHP_RPATH" != "xno" && test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" LDFLAGS="$LDFLAGS -L$ai_p" PHP_RPATHS="$PHP_RPATHS $ai_p" @@ -68455,7 +68638,7 @@ is_it_shared=$PHP_PDO_SHARED is_it_enabled=$PHP_PDO if test "$am_i_shared" = "no" && test "$is_it_shared" = "yes" ; then - as_fn_error " + as_fn_error $? " You've configured extension pdo_dblib to build statically, but it depends on extension pdo, which you've configured to build shared. You either need to build pdo_dblib shared or build pdo statically for the @@ -68463,7 +68646,7 @@ " "$LINENO" 5 fi if test "x$is_it_enabled" = "xno" && test "x" != "xtrue"; then - as_fn_error " + as_fn_error $? " You've configured extension pdo_dblib, which depends on extension pdo, but you've either not enabled pdo, or have disabled it. " "$LINENO" 5 @@ -68521,7 +68704,7 @@ if test "$PHP_PDO_FIREBIRD" != "no"; then if test "$PHP_PDO" = "no" && test "$ext_shared" = "no"; then - as_fn_error "PDO is not enabled! Add --enable-pdo to your configure line." "$LINENO" 5 + as_fn_error $? "PDO is not enabled! Add --enable-pdo to your configure line." "$LINENO" 5 fi if test "$PHP_PDO_FIREBIRD" = "yes"; then @@ -68605,6 +68788,7 @@ if test "$ext_shared" = "yes"; then LDFLAGS="-L$ai_p $LDFLAGS" + test "x$PHP_RPATH" != "xno" && \ test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS" else @@ -68616,6 +68800,7 @@ if test -n "$unique" && test "`eval $cmd`" = "" ; then eval "LIBPATH$unique=set" + test "x$PHP_RPATH" != "xno" && test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" LDFLAGS="$LDFLAGS -L$ai_p" PHP_RPATHS="$PHP_RPATHS $ai_p" @@ -68633,7 +68818,7 @@ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isc_detach_database in -lfbclient" >&5 $as_echo_n "checking for isc_detach_database in -lfbclient... " >&6; } -if test "${ac_cv_lib_fbclient_isc_detach_database+set}" = set; then : +if ${ac_cv_lib_fbclient_isc_detach_database+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS @@ -68667,7 +68852,7 @@ fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fbclient_isc_detach_database" >&5 $as_echo "$ac_cv_lib_fbclient_isc_detach_database" >&6; } -if test "x$ac_cv_lib_fbclient_isc_detach_database" = x""yes; then : +if test "x$ac_cv_lib_fbclient_isc_detach_database" = xyes; then : LDFLAGS=$save_old_LDFLAGS ext_shared=$save_ext_shared @@ -68752,6 +68937,7 @@ if test "$ext_shared" = "yes"; then LDFLAGS="-L$ai_p $LDFLAGS" + test "x$PHP_RPATH" != "xno" && \ test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS" else @@ -68763,6 +68949,7 @@ if test -n "$unique" && test "`eval $cmd`" = "" ; then eval "LIBPATH$unique=set" + test "x$PHP_RPATH" != "xno" && test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" LDFLAGS="$LDFLAGS -L$ai_p" PHP_RPATHS="$PHP_RPATHS $ai_p" @@ -68780,7 +68967,7 @@ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isc_detach_database in -lgds" >&5 $as_echo_n "checking for isc_detach_database in -lgds... " >&6; } -if test "${ac_cv_lib_gds_isc_detach_database+set}" = set; then : +if ${ac_cv_lib_gds_isc_detach_database+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS @@ -68814,7 +69001,7 @@ fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gds_isc_detach_database" >&5 $as_echo "$ac_cv_lib_gds_isc_detach_database" >&6; } -if test "x$ac_cv_lib_gds_isc_detach_database" = x""yes; then : +if test "x$ac_cv_lib_gds_isc_detach_database" = xyes; then : LDFLAGS=$save_old_LDFLAGS ext_shared=$save_ext_shared @@ -68899,6 +69086,7 @@ if test "$ext_shared" = "yes"; then LDFLAGS="-L$ai_p $LDFLAGS" + test "x$PHP_RPATH" != "xno" && \ test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS" else @@ -68910,6 +69098,7 @@ if test -n "$unique" && test "`eval $cmd`" = "" ; then eval "LIBPATH$unique=set" + test "x$PHP_RPATH" != "xno" && test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" LDFLAGS="$LDFLAGS -L$ai_p" PHP_RPATHS="$PHP_RPATHS $ai_p" @@ -68927,7 +69116,7 @@ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isc_detach_database in -lib_util" >&5 $as_echo_n "checking for isc_detach_database in -lib_util... " >&6; } -if test "${ac_cv_lib_ib_util_isc_detach_database+set}" = set; then : +if ${ac_cv_lib_ib_util_isc_detach_database+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS @@ -68961,7 +69150,7 @@ fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ib_util_isc_detach_database" >&5 $as_echo "$ac_cv_lib_ib_util_isc_detach_database" >&6; } -if test "x$ac_cv_lib_ib_util_isc_detach_database" = x""yes; then : +if test "x$ac_cv_lib_ib_util_isc_detach_database" = xyes; then : LDFLAGS=$save_old_LDFLAGS ext_shared=$save_ext_shared @@ -68975,7 +69164,7 @@ ext_shared=$save_ext_shared unset ac_cv_lib_ib_util_isc_detach_database - as_fn_error "libfbclient, libgds or libib_util not found! Check config.log for more information." "$LINENO" 5 + as_fn_error $? "libfbclient, libgds or libib_util not found! Check config.log for more information." "$LINENO" 5 fi @@ -68992,7 +69181,7 @@ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PDO includes" >&5 $as_echo_n "checking for PDO includes... " >&6; } -if test "${pdo_cv_inc_path+set}" = set; then : +if ${pdo_cv_inc_path+:} false; then : $as_echo_n "(cached) " >&6 else @@ -69012,7 +69201,7 @@ if test -n "$pdo_cv_inc_path"; then : else -as_fn_error "Cannot find php_pdo_driver.h." "$LINENO" 5 +as_fn_error $? "Cannot find php_pdo_driver.h." "$LINENO" 5 fi @@ -69037,6 +69226,7 @@ if test "$ext_shared" = "yes"; then PDO_FIREBIRD_SHARED_LIBADD="-L$ai_p $PDO_FIREBIRD_SHARED_LIBADD" + test "x$PHP_RPATH" != "xno" && \ test -n "$ld_runpath_switch" && PDO_FIREBIRD_SHARED_LIBADD="$ld_runpath_switch$ai_p $PDO_FIREBIRD_SHARED_LIBADD" else @@ -69048,6 +69238,7 @@ if test -n "$unique" && test "`eval $cmd`" = "" ; then eval "LIBPATH$unique=set" + test "x$PHP_RPATH" != "xno" && test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" LDFLAGS="$LDFLAGS -L$ai_p" PHP_RPATHS="$PHP_RPATHS $ai_p" @@ -69087,6 +69278,7 @@ if test -n "$unique" && test "`eval $cmd`" = "" ; then eval "LIBPATH$unique=set" + test "x$PHP_RPATH" != "xno" && test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" LDFLAGS="$LDFLAGS -L$ai_p" PHP_RPATHS="$PHP_RPATHS $ai_p" @@ -69448,7 +69640,7 @@ is_it_shared=$PHP_PDO_SHARED is_it_enabled=$PHP_PDO if test "$am_i_shared" = "no" && test "$is_it_shared" = "yes" ; then - as_fn_error " + as_fn_error $? " You've configured extension pdo_firebird to build statically, but it depends on extension pdo, which you've configured to build shared. You either need to build pdo_firebird shared or build pdo statically for the @@ -69456,7 +69648,7 @@ " "$LINENO" 5 fi if test "x$is_it_enabled" = "xno" && test "x" != "xtrue"; then - as_fn_error " + as_fn_error $? " You've configured extension pdo_firebird, which depends on extension pdo, but you've either not enabled pdo, or have disabled it. " "$LINENO" 5 @@ -69539,7 +69731,7 @@ if test "$PHP_PDO_MYSQL" != "no"; then if test "$PHP_PDO" = "no" && test "$ext_shared" = "no"; then - as_fn_error "PDO is not enabled! Add --enable-pdo to your configure line." "$LINENO" 5 + as_fn_error $? "PDO is not enabled! Add --enable-pdo to your configure line." "$LINENO" 5 fi @@ -69578,7 +69770,7 @@ set dummy sed; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } -if test "${ac_cv_path_SED+set}" = set; then : +if ${ac_cv_path_SED+:} false; then : $as_echo_n "(cached) " >&6 else case $SED in @@ -69592,7 +69784,7 @@ IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 @@ -69615,7 +69807,7 @@ fi - if test "$enable_maintainer_zts" = "yes"; then + if true || test "$enable_maintainer_zts" = "yes"; then PDO_MYSQL_LIBNAME=mysqlclient_r PDO_MYSQL_LIBS=`$PDO_MYSQL_CONFIG --libs_r | $SED -e "s/'//g"` else @@ -69645,7 +69837,7 @@ else { $as_echo "$as_me:${as_lineno-$LINENO}: result: can not find it" >&5 $as_echo "can not find it" >&6; } - as_fn_error "Unable to find your mysql installation" "$LINENO" 5 + as_fn_error $? "Unable to find your mysql installation" "$LINENO" 5 fi @@ -69683,7 +69875,7 @@ else { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 $as_echo "not found" >&6; } - as_fn_error "Unable to find your mysql installation" "$LINENO" 5 + as_fn_error $? "Unable to find your mysql installation" "$LINENO" 5 fi @@ -69757,6 +69949,7 @@ if test "$ext_shared" = "yes"; then LDFLAGS="-L$ai_p $LDFLAGS" + test "x$PHP_RPATH" != "xno" && \ test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS" else @@ -69768,6 +69961,7 @@ if test -n "$unique" && test "`eval $cmd`" = "" ; then eval "LIBPATH$unique=set" + test "x$PHP_RPATH" != "xno" && test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" LDFLAGS="$LDFLAGS -L$ai_p" PHP_RPATHS="$PHP_RPATHS $ai_p" @@ -69786,7 +69980,7 @@ as_ac_Lib=`$as_echo "ac_cv_lib_$PDO_MYSQL_LIBNAME''_mysql_commit" | $as_tr_sh` { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mysql_commit in -l$PDO_MYSQL_LIBNAME" >&5 $as_echo_n "checking for mysql_commit in -l$PDO_MYSQL_LIBNAME... " >&6; } -if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then : +if eval \${$as_ac_Lib+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS @@ -69821,8 +70015,7 @@ eval ac_res=\$$as_ac_Lib { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 $as_echo "$ac_res" >&6; } -eval as_val=\$$as_ac_Lib - if test "x$as_val" = x""yes; then : +if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : LDFLAGS=$save_old_LDFLAGS ext_shared=$save_ext_shared @@ -69930,6 +70123,7 @@ if test "$ext_shared" = "yes"; then PDO_MYSQL_SHARED_LIBADD="-L$ai_p $PDO_MYSQL_SHARED_LIBADD" + test "x$PHP_RPATH" != "xno" && \ test -n "$ld_runpath_switch" && PDO_MYSQL_SHARED_LIBADD="$ld_runpath_switch$ai_p $PDO_MYSQL_SHARED_LIBADD" else @@ -69941,6 +70135,7 @@ if test -n "$unique" && test "`eval $cmd`" = "" ; then eval "LIBPATH$unique=set" + test "x$PHP_RPATH" != "xno" && test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" LDFLAGS="$LDFLAGS -L$ai_p" PHP_RPATHS="$PHP_RPATHS $ai_p" @@ -69986,6 +70181,7 @@ if test "$ext_shared" = "yes"; then PDO_MYSQL_SHARED_LIBADD="-L$ai_p $PDO_MYSQL_SHARED_LIBADD" + test "x$PHP_RPATH" != "xno" && \ test -n "$ld_runpath_switch" && PDO_MYSQL_SHARED_LIBADD="$ld_runpath_switch$ai_p $PDO_MYSQL_SHARED_LIBADD" else @@ -69997,6 +70193,7 @@ if test -n "$unique" && test "`eval $cmd`" = "" ; then eval "LIBPATH$unique=set" + test "x$PHP_RPATH" != "xno" && test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" LDFLAGS="$LDFLAGS -L$ai_p" PHP_RPATHS="$PHP_RPATHS $ai_p" @@ -70036,6 +70233,7 @@ if test -n "$unique" && test "`eval $cmd`" = "" ; then eval "LIBPATH$unique=set" + test "x$PHP_RPATH" != "xno" && test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" LDFLAGS="$LDFLAGS -L$ai_p" PHP_RPATHS="$PHP_RPATHS $ai_p" @@ -70133,6 +70331,7 @@ if test "$ext_shared" = "yes"; then LDFLAGS="-L$ai_p $LDFLAGS" + test "x$PHP_RPATH" != "xno" && \ test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS" else @@ -70144,6 +70343,7 @@ if test -n "$unique" && test "`eval $cmd`" = "" ; then eval "LIBPATH$unique=set" + test "x$PHP_RPATH" != "xno" && test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" LDFLAGS="$LDFLAGS -L$ai_p" PHP_RPATHS="$PHP_RPATHS $ai_p" @@ -70162,7 +70362,7 @@ as_ac_Lib=`$as_echo "ac_cv_lib_$PDO_MYSQL_LIBNAME''_mysql_commit" | $as_tr_sh` { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mysql_commit in -l$PDO_MYSQL_LIBNAME" >&5 $as_echo_n "checking for mysql_commit in -l$PDO_MYSQL_LIBNAME... " >&6; } -if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then : +if eval \${$as_ac_Lib+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS @@ -70197,8 +70397,7 @@ eval ac_res=\$$as_ac_Lib { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 $as_echo "$ac_res" >&6; } -eval as_val=\$$as_ac_Lib - if test "x$as_val" = x""yes; then : +if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : LDFLAGS=$save_old_LDFLAGS ext_shared=$save_ext_shared @@ -70210,7 +70409,7 @@ ext_shared=$save_ext_shared unset ac_cv_lib_$PDO_MYSQL_LIBNAME_mysql_commit - as_fn_error "PDO_MYSQL configure failed, MySQL 4.1 needed. Please check config.log for more information." "$LINENO" 5 + as_fn_error $? "PDO_MYSQL configure failed, MySQL 4.1 needed. Please check config.log for more information." "$LINENO" 5 fi @@ -70311,6 +70510,7 @@ if test "$ext_shared" = "yes"; then LDFLAGS="-L$ai_p $LDFLAGS" + test "x$PHP_RPATH" != "xno" && \ test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS" else @@ -70322,6 +70522,7 @@ if test -n "$unique" && test "`eval $cmd`" = "" ; then eval "LIBPATH$unique=set" + test "x$PHP_RPATH" != "xno" && test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" LDFLAGS="$LDFLAGS -L$ai_p" PHP_RPATHS="$PHP_RPATHS $ai_p" @@ -70340,7 +70541,7 @@ as_ac_Lib=`$as_echo "ac_cv_lib_$PDO_MYSQL_LIBNAME''_mysql_query" | $as_tr_sh` { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mysql_query in -l$PDO_MYSQL_LIBNAME" >&5 $as_echo_n "checking for mysql_query in -l$PDO_MYSQL_LIBNAME... " >&6; } -if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then : +if eval \${$as_ac_Lib+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS @@ -70375,8 +70576,7 @@ eval ac_res=\$$as_ac_Lib { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 $as_echo "$ac_res" >&6; } -eval as_val=\$$as_ac_Lib - if test "x$as_val" = x""yes; then : +if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : LDFLAGS=$save_old_LDFLAGS ext_shared=$save_ext_shared @@ -70388,7 +70588,7 @@ ext_shared=$save_ext_shared unset ac_cv_lib_$PDO_MYSQL_LIBNAME_mysql_query - as_fn_error "Try adding --with-zlib-dir=. Please check config.log for more information." "$LINENO" 5 + as_fn_error $? "Try adding --with-zlib-dir=. Please check config.log for more information." "$LINENO" 5 fi @@ -70499,6 +70699,7 @@ if test "$ext_shared" = "yes"; then PDO_MYSQL_SHARED_LIBADD="-L$ai_p $PDO_MYSQL_SHARED_LIBADD" + test "x$PHP_RPATH" != "xno" && \ test -n "$ld_runpath_switch" && PDO_MYSQL_SHARED_LIBADD="$ld_runpath_switch$ai_p $PDO_MYSQL_SHARED_LIBADD" else @@ -70510,6 +70711,7 @@ if test -n "$unique" && test "`eval $cmd`" = "" ; then eval "LIBPATH$unique=set" + test "x$PHP_RPATH" != "xno" && test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" LDFLAGS="$LDFLAGS -L$ai_p" PHP_RPATHS="$PHP_RPATHS $ai_p" @@ -70535,7 +70737,7 @@ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PDO includes" >&5 $as_echo_n "checking for PDO includes... " >&6; } -if test "${pdo_cv_inc_path+set}" = set; then : +if ${pdo_cv_inc_path+:} false; then : $as_echo_n "(cached) " >&6 else @@ -70555,7 +70757,7 @@ if test -n "$pdo_cv_inc_path"; then : else -as_fn_error "Cannot find php_pdo_driver.h." "$LINENO" 5 +as_fn_error $? "Cannot find php_pdo_driver.h." "$LINENO" 5 fi @@ -70868,7 +71070,7 @@ is_it_shared=$PHP_PDO_SHARED is_it_enabled=$PHP_PDO if test "$am_i_shared" = "no" && test "$is_it_shared" = "yes" ; then - as_fn_error " + as_fn_error $? " You've configured extension pdo_mysql to build statically, but it depends on extension pdo, which you've configured to build shared. You either need to build pdo_mysql shared or build pdo statically for the @@ -70876,7 +71078,7 @@ " "$LINENO" 5 fi if test "x$is_it_enabled" = "xno" && test "x" != "xtrue"; then - as_fn_error " + as_fn_error $? " You've configured extension pdo_mysql, which depends on extension pdo, but you've either not enabled pdo, or have disabled it. " "$LINENO" 5 @@ -70888,7 +71090,7 @@ is_it_shared=$PHP_MYSQLND_SHARED is_it_enabled=$PHP_MYSQLND if test "$am_i_shared" = "no" && test "$is_it_shared" = "yes" ; then - as_fn_error " + as_fn_error $? " You've configured extension pdo_mysql to build statically, but it depends on extension mysqlnd, which you've configured to build shared. You either need to build pdo_mysql shared or build mysqlnd statically for the @@ -70896,7 +71098,7 @@ " "$LINENO" 5 fi if test "x$is_it_enabled" = "xno" && test "x" != "xtrue"; then - as_fn_error " + as_fn_error $? " You've configured extension pdo_mysql, which depends on extension mysqlnd, but you've either not enabled mysqlnd, or have disabled it. " "$LINENO" 5 @@ -70971,7 +71173,7 @@ if test "$PHP_PDO_OCI" != "no"; then if test "$PHP_PDO" = "no" && test "$ext_shared" = "no"; then - as_fn_error "PDO is not enabled! Add --enable-pdo to your configure line." "$LINENO" 5 + as_fn_error $? "PDO is not enabled! Add --enable-pdo to your configure line." "$LINENO" 5 fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking Oracle Install-Dir" >&5 @@ -70987,7 +71189,7 @@ { $as_echo "$as_me:${as_lineno-$LINENO}: checking if that is sane" >&5 $as_echo_n "checking if that is sane... " >&6; } if test -z "$PDO_OCI_DIR"; then - as_fn_error " + as_fn_error $? " You need to tell me where to find your Oracle Instant Client SDK, or set ORACLE_HOME. " "$LINENO" 5 else @@ -71002,7 +71204,7 @@ # This bug is HP SR number 8606223364. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long int" >&5 $as_echo_n "checking size of long int... " >&6; } -if test "${ac_cv_sizeof_long_int+set}" = set; then : +if ${ac_cv_sizeof_long_int+:} false; then : $as_echo_n "(cached) " >&6 else if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long int))" "ac_cv_sizeof_long_int" "$ac_includes_default"; then : @@ -71011,9 +71213,8 @@ if test "$ac_cv_type_long_int" = yes; then { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} -{ as_fn_set_status 77 -as_fn_error "cannot compute sizeof (long int) -See \`config.log' for more details." "$LINENO" 5; }; } +as_fn_error 77 "cannot compute sizeof (long int) +See \`config.log' for more details" "$LINENO" 5; } else ac_cv_sizeof_long_int=0 fi @@ -71183,7 +71384,7 @@ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PDO_OCI_IC_PREFIX/$PDO_OCI_CLIENT_DIR/include" >&5 $as_echo "$PDO_OCI_IC_PREFIX/$PDO_OCI_CLIENT_DIR/include" >&6; } else - as_fn_error "I'm too dumb to figure out where the include dir is in your Instant Client install" "$LINENO" 5 + as_fn_error $? "I'm too dumb to figure out where the include dir is in your Instant Client install" "$LINENO" 5 fi if test -f "$PDO_OCI_IC_PREFIX/lib/oracle/$PDO_OCI_IC_VERS/$PDO_OCI_CLIENT_DIR/lib/libclntsh.$SHLIB_SUFFIX_NAME" ; then PDO_OCI_LIB_DIR="$PDO_OCI_IC_PREFIX/lib/oracle/$PDO_OCI_IC_VERS/$PDO_OCI_CLIENT_DIR/lib" @@ -71192,7 +71393,7 @@ elif test -f "$PDO_OCI_IC_PREFIX/libclntsh.$SHLIB_SUFFIX_NAME" ; then PDO_OCI_LIB_DIR="$PDO_OCI_IC_PREFIX" else - as_fn_error "I'm too dumb to figure out where the libraries are in your Instant Client install" "$LINENO" 5 + as_fn_error $? "I'm too dumb to figure out where the libraries are in your Instant Client install" "$LINENO" 5 fi PDO_OCI_VERSION="`echo $PDO_OCI_IC_VERS | cut -d. -f1-2`" else @@ -71203,7 +71404,7 @@ # This bug is HP SR number 8606223364. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long int" >&5 $as_echo_n "checking size of long int... " >&6; } -if test "${ac_cv_sizeof_long_int+set}" = set; then : +if ${ac_cv_sizeof_long_int+:} false; then : $as_echo_n "(cached) " >&6 else if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long int))" "ac_cv_sizeof_long_int" "$ac_includes_default"; then : @@ -71212,9 +71413,8 @@ if test "$ac_cv_type_long_int" = yes; then { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} -{ as_fn_set_status 77 -as_fn_error "cannot compute sizeof (long int) -See \`config.log' for more details." "$LINENO" 5; }; } +as_fn_error 77 "cannot compute sizeof (long int) +See \`config.log' for more details" "$LINENO" 5; } else ac_cv_sizeof_long_int=0 fi @@ -71252,7 +71452,7 @@ elif test -d "$PDO_OCI_DIR/lib" && test -d "$PDO_OCI_DIR/lib32"; then PDO_OCI_LIB_DIR=$TMP_PDO_OCI_LIB_DIR else - as_fn_error "Oracle required OCI8 libraries not found" "$LINENO" 5 + as_fn_error $? "Oracle required OCI8 libraries not found" "$LINENO" 5 fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PDO_OCI_LIB_DIR" >&5 $as_echo "$PDO_OCI_LIB_DIR" >&6; } @@ -71493,6 +71693,7 @@ if test "$ext_shared" = "yes"; then PDO_OCI_SYSLIB="-L$ai_p $PDO_OCI_SYSLIB" + test "x$PHP_RPATH" != "xno" && \ test -n "$ld_runpath_switch" && PDO_OCI_SYSLIB="$ld_runpath_switch$ai_p $PDO_OCI_SYSLIB" else @@ -71504,6 +71705,7 @@ if test -n "$unique" && test "`eval $cmd`" = "" ; then eval "LIBPATH$unique=set" + test "x$PHP_RPATH" != "xno" && test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" LDFLAGS="$LDFLAGS -L$ai_p" PHP_RPATHS="$PHP_RPATHS $ai_p" @@ -71583,6 +71785,7 @@ if test "$ext_shared" = "yes"; then PDO_OCI_SYSLIB="-L$ai_p $PDO_OCI_SYSLIB" + test "x$PHP_RPATH" != "xno" && \ test -n "$ld_runpath_switch" && PDO_OCI_SYSLIB="$ld_runpath_switch$ai_p $PDO_OCI_SYSLIB" else @@ -71594,6 +71797,7 @@ if test -n "$unique" && test "`eval $cmd`" = "" ; then eval "LIBPATH$unique=set" + test "x$PHP_RPATH" != "xno" && test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" LDFLAGS="$LDFLAGS -L$ai_p" PHP_RPATHS="$PHP_RPATHS $ai_p" @@ -71619,7 +71823,7 @@ fi done if test -z "$PDO_OCI_VERSION"; then - as_fn_error "Oracle required OCI8 libraries not found under $PDO_OCI_DIR" "$LINENO" 5 + as_fn_error $? "Oracle required OCI8 libraries not found under $PDO_OCI_DIR" "$LINENO" 5 fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PDO_OCI_VERSION" >&5 $as_echo "$PDO_OCI_VERSION" >&6; } @@ -71654,7 +71858,7 @@ ;; *) - as_fn_error "Unsupported Oracle version $PDO_OCI_VERSION" "$LINENO" 5 + as_fn_error $? "Unsupported Oracle version $PDO_OCI_VERSION" "$LINENO" 5 ;; esac @@ -71674,6 +71878,7 @@ if test "$ext_shared" = "yes"; then PDO_OCI_SHARED_LIBADD="-L$ai_p $PDO_OCI_SHARED_LIBADD" + test "x$PHP_RPATH" != "xno" && \ test -n "$ld_runpath_switch" && PDO_OCI_SHARED_LIBADD="$ld_runpath_switch$ai_p $PDO_OCI_SHARED_LIBADD" else @@ -71685,6 +71890,7 @@ if test -n "$unique" && test "`eval $cmd`" = "" ; then eval "LIBPATH$unique=set" + test "x$PHP_RPATH" != "xno" && test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" LDFLAGS="$LDFLAGS -L$ai_p" PHP_RPATHS="$PHP_RPATHS $ai_p" @@ -71768,6 +71974,7 @@ if test "$ext_shared" = "yes"; then LDFLAGS="-L$ai_p $LDFLAGS" + test "x$PHP_RPATH" != "xno" && \ test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS" else @@ -71779,6 +71986,7 @@ if test -n "$unique" && test "`eval $cmd`" = "" ; then eval "LIBPATH$unique=set" + test "x$PHP_RPATH" != "xno" && test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" LDFLAGS="$LDFLAGS -L$ai_p" PHP_RPATHS="$PHP_RPATHS $ai_p" @@ -71796,7 +72004,7 @@ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OCIEnvCreate in -lclntsh" >&5 $as_echo_n "checking for OCIEnvCreate in -lclntsh... " >&6; } -if test "${ac_cv_lib_clntsh_OCIEnvCreate+set}" = set; then : +if ${ac_cv_lib_clntsh_OCIEnvCreate+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS @@ -71830,7 +72038,7 @@ fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_clntsh_OCIEnvCreate" >&5 $as_echo "$ac_cv_lib_clntsh_OCIEnvCreate" >&6; } -if test "x$ac_cv_lib_clntsh_OCIEnvCreate" = x""yes; then : +if test "x$ac_cv_lib_clntsh_OCIEnvCreate" = xyes; then : LDFLAGS=$save_old_LDFLAGS ext_shared=$save_ext_shared @@ -71921,6 +72129,7 @@ if test "$ext_shared" = "yes"; then LDFLAGS="-L$ai_p $LDFLAGS" + test "x$PHP_RPATH" != "xno" && \ test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS" else @@ -71932,6 +72141,7 @@ if test -n "$unique" && test "`eval $cmd`" = "" ; then eval "LIBPATH$unique=set" + test "x$PHP_RPATH" != "xno" && test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" LDFLAGS="$LDFLAGS -L$ai_p" PHP_RPATHS="$PHP_RPATHS $ai_p" @@ -71949,7 +72159,7 @@ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OCIEnvNlsCreate in -lclntsh" >&5 $as_echo_n "checking for OCIEnvNlsCreate in -lclntsh... " >&6; } -if test "${ac_cv_lib_clntsh_OCIEnvNlsCreate+set}" = set; then : +if ${ac_cv_lib_clntsh_OCIEnvNlsCreate+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS @@ -71983,7 +72193,7 @@ fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_clntsh_OCIEnvNlsCreate" >&5 $as_echo "$ac_cv_lib_clntsh_OCIEnvNlsCreate" >&6; } -if test "x$ac_cv_lib_clntsh_OCIEnvNlsCreate" = x""yes; then : +if test "x$ac_cv_lib_clntsh_OCIEnvNlsCreate" = xyes; then : LDFLAGS=$save_old_LDFLAGS ext_shared=$save_ext_shared @@ -72074,6 +72284,7 @@ if test "$ext_shared" = "yes"; then LDFLAGS="-L$ai_p $LDFLAGS" + test "x$PHP_RPATH" != "xno" && \ test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS" else @@ -72085,6 +72296,7 @@ if test -n "$unique" && test "`eval $cmd`" = "" ; then eval "LIBPATH$unique=set" + test "x$PHP_RPATH" != "xno" && test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" LDFLAGS="$LDFLAGS -L$ai_p" PHP_RPATHS="$PHP_RPATHS $ai_p" @@ -72102,7 +72314,7 @@ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OCILobIsTemporary in -lclntsh" >&5 $as_echo_n "checking for OCILobIsTemporary in -lclntsh... " >&6; } -if test "${ac_cv_lib_clntsh_OCILobIsTemporary+set}" = set; then : +if ${ac_cv_lib_clntsh_OCILobIsTemporary+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS @@ -72136,7 +72348,7 @@ fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_clntsh_OCILobIsTemporary" >&5 $as_echo "$ac_cv_lib_clntsh_OCILobIsTemporary" >&6; } -if test "x$ac_cv_lib_clntsh_OCILobIsTemporary" = x""yes; then : +if test "x$ac_cv_lib_clntsh_OCILobIsTemporary" = xyes; then : LDFLAGS=$save_old_LDFLAGS ext_shared=$save_ext_shared @@ -72223,6 +72435,7 @@ if test "$ext_shared" = "yes"; then LDFLAGS="-L$ai_p $LDFLAGS" + test "x$PHP_RPATH" != "xno" && \ test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS" else @@ -72234,6 +72447,7 @@ if test -n "$unique" && test "`eval $cmd`" = "" ; then eval "LIBPATH$unique=set" + test "x$PHP_RPATH" != "xno" && test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" LDFLAGS="$LDFLAGS -L$ai_p" PHP_RPATHS="$PHP_RPATHS $ai_p" @@ -72251,7 +72465,7 @@ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OCILobIsTemporary in -locijdbc8" >&5 $as_echo_n "checking for OCILobIsTemporary in -locijdbc8... " >&6; } -if test "${ac_cv_lib_ocijdbc8_OCILobIsTemporary+set}" = set; then : +if ${ac_cv_lib_ocijdbc8_OCILobIsTemporary+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS @@ -72285,7 +72499,7 @@ fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ocijdbc8_OCILobIsTemporary" >&5 $as_echo "$ac_cv_lib_ocijdbc8_OCILobIsTemporary" >&6; } -if test "x$ac_cv_lib_ocijdbc8_OCILobIsTemporary" = x""yes; then : +if test "x$ac_cv_lib_ocijdbc8_OCILobIsTemporary" = xyes; then : LDFLAGS=$save_old_LDFLAGS ext_shared=$save_ext_shared @@ -72403,6 +72617,7 @@ if test "$ext_shared" = "yes"; then LDFLAGS="-L$ai_p $LDFLAGS" + test "x$PHP_RPATH" != "xno" && \ test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS" else @@ -72414,6 +72629,7 @@ if test -n "$unique" && test "`eval $cmd`" = "" ; then eval "LIBPATH$unique=set" + test "x$PHP_RPATH" != "xno" && test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" LDFLAGS="$LDFLAGS -L$ai_p" PHP_RPATHS="$PHP_RPATHS $ai_p" @@ -72431,7 +72647,7 @@ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OCICollAssign in -lclntsh" >&5 $as_echo_n "checking for OCICollAssign in -lclntsh... " >&6; } -if test "${ac_cv_lib_clntsh_OCICollAssign+set}" = set; then : +if ${ac_cv_lib_clntsh_OCICollAssign+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS @@ -72465,7 +72681,7 @@ fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_clntsh_OCICollAssign" >&5 $as_echo "$ac_cv_lib_clntsh_OCICollAssign" >&6; } -if test "x$ac_cv_lib_clntsh_OCICollAssign" = x""yes; then : +if test "x$ac_cv_lib_clntsh_OCICollAssign" = xyes; then : LDFLAGS=$save_old_LDFLAGS ext_shared=$save_ext_shared @@ -72556,6 +72772,7 @@ if test "$ext_shared" = "yes"; then LDFLAGS="-L$ai_p $LDFLAGS" + test "x$PHP_RPATH" != "xno" && \ test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS" else @@ -72567,6 +72784,7 @@ if test -n "$unique" && test "`eval $cmd`" = "" ; then eval "LIBPATH$unique=set" + test "x$PHP_RPATH" != "xno" && test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" LDFLAGS="$LDFLAGS -L$ai_p" PHP_RPATHS="$PHP_RPATHS $ai_p" @@ -72584,7 +72802,7 @@ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OCIStmtFetch2 in -lclntsh" >&5 $as_echo_n "checking for OCIStmtFetch2 in -lclntsh... " >&6; } -if test "${ac_cv_lib_clntsh_OCIStmtFetch2+set}" = set; then : +if ${ac_cv_lib_clntsh_OCIStmtFetch2+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS @@ -72618,7 +72836,7 @@ fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_clntsh_OCIStmtFetch2" >&5 $as_echo "$ac_cv_lib_clntsh_OCIStmtFetch2" >&6; } -if test "x$ac_cv_lib_clntsh_OCIStmtFetch2" = x""yes; then : +if test "x$ac_cv_lib_clntsh_OCIStmtFetch2" = xyes; then : LDFLAGS=$save_old_LDFLAGS ext_shared=$save_ext_shared @@ -72642,7 +72860,7 @@ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PDO includes" >&5 $as_echo_n "checking for PDO includes... " >&6; } -if test "${pdo_cv_inc_path+set}" = set; then : +if ${pdo_cv_inc_path+:} false; then : $as_echo_n "(cached) " >&6 else @@ -72662,7 +72880,7 @@ if test -n "$pdo_cv_inc_path"; then : else -as_fn_error "Cannot find php_pdo_driver.h." "$LINENO" 5 +as_fn_error $? "Cannot find php_pdo_driver.h." "$LINENO" 5 fi @@ -72986,7 +73204,7 @@ is_it_shared=$PHP_PDO_SHARED is_it_enabled=$PHP_PDO if test "$am_i_shared" = "no" && test "$is_it_shared" = "yes" ; then - as_fn_error " + as_fn_error $? " You've configured extension pdo_oci to build statically, but it depends on extension pdo, which you've configured to build shared. You either need to build pdo_oci shared or build pdo statically for the @@ -72994,7 +73212,7 @@ " "$LINENO" 5 fi if test "x$is_it_enabled" = "xno" && test "x" != "xtrue"; then - as_fn_error " + as_fn_error $? " You've configured extension pdo_oci, which depends on extension pdo, but you've either not enabled pdo, or have disabled it. " "$LINENO" 5 @@ -73064,14 +73282,14 @@ if test "$PHP_PDO_ODBC" != "no"; then if test "$PHP_PDO" = "no" && test "$ext_shared" = "no"; then - as_fn_error "PDO is not enabled! Add --enable-pdo to your configure line." "$LINENO" 5 + as_fn_error $? "PDO is not enabled! Add --enable-pdo to your configure line." "$LINENO" 5 fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PDO includes" >&5 $as_echo_n "checking for PDO includes... " >&6; } -if test "${pdo_cv_inc_path+set}" = set; then : +if ${pdo_cv_inc_path+:} false; then : $as_echo_n "(cached) " >&6 else @@ -73091,7 +73309,7 @@ if test -n "$pdo_cv_inc_path"; then : else -as_fn_error "Cannot find php_pdo_driver.h." "$LINENO" 5 +as_fn_error $? "Cannot find php_pdo_driver.h." "$LINENO" 5 fi @@ -73139,7 +73357,7 @@ ;; *) - as_fn_error "Unknown ODBC flavour $pdo_odbc_flavour + as_fn_error $? "Unknown ODBC flavour $pdo_odbc_flavour include and lib dirs are looked for under 'dir'. 'flavour' can be one of: ibm-db2, iODBC, unixODBC, generic @@ -73450,7 +73668,7 @@ if test "$php_pdo_have_header" != "yes"; then - as_fn_error "Cannot find header file(s) for pdo_odbc" "$LINENO" 5 + as_fn_error $? "Cannot find header file(s) for pdo_odbc" "$LINENO" 5 fi PDO_ODBC_INCLUDE="$pdo_odbc_def_cflags -I$PDO_ODBC_INCDIR -DPDO_ODBC_TYPE=\\\"$pdo_odbc_flavour\\\"" @@ -73519,6 +73737,7 @@ if test "$ext_shared" = "yes"; then PDO_ODBC_SHARED_LIBADD="-L$ai_p $PDO_ODBC_SHARED_LIBADD" + test "x$PHP_RPATH" != "xno" && \ test -n "$ld_runpath_switch" && PDO_ODBC_SHARED_LIBADD="$ld_runpath_switch$ai_p $PDO_ODBC_SHARED_LIBADD" else @@ -73530,6 +73749,7 @@ if test -n "$unique" && test "`eval $cmd`" = "" ; then eval "LIBPATH$unique=set" + test "x$PHP_RPATH" != "xno" && test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" LDFLAGS="$LDFLAGS -L$ai_p" PHP_RPATHS="$PHP_RPATHS $ai_p" @@ -73615,6 +73835,7 @@ if test "$ext_shared" = "yes"; then LDFLAGS="-L$ai_p $LDFLAGS" + test "x$PHP_RPATH" != "xno" && \ test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS" else @@ -73626,6 +73847,7 @@ if test -n "$unique" && test "`eval $cmd`" = "" ; then eval "LIBPATH$unique=set" + test "x$PHP_RPATH" != "xno" && test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" LDFLAGS="$LDFLAGS -L$ai_p" PHP_RPATHS="$PHP_RPATHS $ai_p" @@ -73644,7 +73866,7 @@ as_ac_Lib=`$as_echo "ac_cv_lib_$pdo_odbc_def_lib''_SQLBindCol" | $as_tr_sh` { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SQLBindCol in -l$pdo_odbc_def_lib" >&5 $as_echo_n "checking for SQLBindCol in -l$pdo_odbc_def_lib... " >&6; } -if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then : +if eval \${$as_ac_Lib+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS @@ -73679,8 +73901,7 @@ eval ac_res=\$$as_ac_Lib { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 $as_echo "$ac_res" >&6; } -eval as_val=\$$as_ac_Lib - if test "x$as_val" = x""yes; then : +if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : LDFLAGS=$save_old_LDFLAGS ext_shared=$save_ext_shared @@ -73754,6 +73975,7 @@ if test "$ext_shared" = "yes"; then LDFLAGS="-L$ai_p $LDFLAGS" + test "x$PHP_RPATH" != "xno" && \ test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS" else @@ -73765,6 +73987,7 @@ if test -n "$unique" && test "`eval $cmd`" = "" ; then eval "LIBPATH$unique=set" + test "x$PHP_RPATH" != "xno" && test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" LDFLAGS="$LDFLAGS -L$ai_p" PHP_RPATHS="$PHP_RPATHS $ai_p" @@ -73783,7 +74006,7 @@ as_ac_Lib=`$as_echo "ac_cv_lib_$pdo_odbc_def_lib''_SQLAllocHandle" | $as_tr_sh` { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SQLAllocHandle in -l$pdo_odbc_def_lib" >&5 $as_echo_n "checking for SQLAllocHandle in -l$pdo_odbc_def_lib... " >&6; } -if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then : +if eval \${$as_ac_Lib+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS @@ -73818,8 +74041,7 @@ eval ac_res=\$$as_ac_Lib { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 $as_echo "$ac_res" >&6; } -eval as_val=\$$as_ac_Lib - if test "x$as_val" = x""yes; then : +if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : LDFLAGS=$save_old_LDFLAGS ext_shared=$save_ext_shared @@ -73831,7 +74053,7 @@ ext_shared=$save_ext_shared unset ac_cv_lib_$pdo_odbc_def_lib_SQLAllocHandle - as_fn_error " + as_fn_error $? " Your ODBC library does not appear to be ODBC 3 compatible. You should consider using iODBC or unixODBC instead, and loading your libraries as a driver in that environment; it will emulate the @@ -73848,7 +74070,7 @@ ext_shared=$save_ext_shared unset ac_cv_lib_$pdo_odbc_def_lib_SQLBindCol - as_fn_error "Your ODBC library does not exist or there was an error. Check config.log for more information" "$LINENO" 5 + as_fn_error $? "Your ODBC library does not exist or there was an error. Check config.log for more information" "$LINENO" 5 fi @@ -74156,7 +74378,7 @@ is_it_shared=$PHP_PDO_SHARED is_it_enabled=$PHP_PDO if test "$am_i_shared" = "no" && test "$is_it_shared" = "yes" ; then - as_fn_error " + as_fn_error $? " You've configured extension pdo_odbc to build statically, but it depends on extension pdo, which you've configured to build shared. You either need to build pdo_odbc shared or build pdo statically for the @@ -74164,7 +74386,7 @@ " "$LINENO" 5 fi if test "x$is_it_enabled" = "xno" && test "x" != "xtrue"; then - as_fn_error " + as_fn_error $? " You've configured extension pdo_odbc, which depends on extension pdo, but you've either not enabled pdo, or have disabled it. " "$LINENO" 5 @@ -74222,7 +74444,7 @@ if test "$PHP_PDO_PGSQL" != "no"; then if test "$PHP_PDO" = "no" && test "$ext_shared" = "no"; then - as_fn_error "PDO is not enabled! Add --enable-pdo to your configure line." "$LINENO" 5 + as_fn_error $? "PDO is not enabled! Add --enable-pdo to your configure line." "$LINENO" 5 fi @@ -74285,15 +74507,15 @@ fi if test -z "$PGSQL_INCLUDE"; then - as_fn_error "Cannot find libpq-fe.h. Please specify correct PostgreSQL installation path" "$LINENO" 5 + as_fn_error $? "Cannot find libpq-fe.h. Please specify correct PostgreSQL installation path" "$LINENO" 5 fi if test -z "$PGSQL_LIBDIR"; then - as_fn_error "Cannot find libpq.so. Please specify correct PostgreSQL installation path" "$LINENO" 5 + as_fn_error $? "Cannot find libpq.so. Please specify correct PostgreSQL installation path" "$LINENO" 5 fi if test -z "$PGSQL_INCLUDE" -a -z "$PGSQL_LIBDIR" ; then - as_fn_error "Unable to find libpq anywhere under $PGSQL_SEARCH_PATHS" "$LINENO" 5 + as_fn_error $? "Unable to find libpq anywhere under $PGSQL_SEARCH_PATHS" "$LINENO" 5 fi @@ -74310,7 +74532,7 @@ set dummy pkg-config; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } -if test "${ac_cv_path_PKG_CONFIG+set}" = set; then : +if ${ac_cv_path_PKG_CONFIG+:} false; then : $as_echo_n "(cached) " >&6 else case $PKG_CONFIG in @@ -74324,7 +74546,7 @@ IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 @@ -74360,7 +74582,7 @@ LDFLAGS="-L$PGSQL_LIBDIR $LDFLAGS" { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQparameterStatus in -lpq" >&5 $as_echo_n "checking for PQparameterStatus in -lpq... " >&6; } -if test "${ac_cv_lib_pq_PQparameterStatus+set}" = set; then : +if ${ac_cv_lib_pq_PQparameterStatus+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS @@ -74394,7 +74616,7 @@ fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQparameterStatus" >&5 $as_echo "$ac_cv_lib_pq_PQparameterStatus" >&6; } -if test "x$ac_cv_lib_pq_PQparameterStatus" = x""yes; then : +if test "x$ac_cv_lib_pq_PQparameterStatus" = xyes; then : $as_echo "#define HAVE_PQPARAMETERSTATUS 1" >>confdefs.h @@ -74408,7 +74630,7 @@ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQprepare in -lpq" >&5 $as_echo_n "checking for PQprepare in -lpq... " >&6; } -if test "${ac_cv_lib_pq_PQprepare+set}" = set; then : +if ${ac_cv_lib_pq_PQprepare+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS @@ -74442,7 +74664,7 @@ fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQprepare" >&5 $as_echo "$ac_cv_lib_pq_PQprepare" >&6; } -if test "x$ac_cv_lib_pq_PQprepare" = x""yes; then : +if test "x$ac_cv_lib_pq_PQprepare" = xyes; then : $as_echo "#define HAVE_PQPREPARE 1" >>confdefs.h @@ -74450,7 +74672,7 @@ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQescapeStringConn in -lpq" >&5 $as_echo_n "checking for PQescapeStringConn in -lpq... " >&6; } -if test "${ac_cv_lib_pq_PQescapeStringConn+set}" = set; then : +if ${ac_cv_lib_pq_PQescapeStringConn+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS @@ -74484,7 +74706,7 @@ fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQescapeStringConn" >&5 $as_echo "$ac_cv_lib_pq_PQescapeStringConn" >&6; } -if test "x$ac_cv_lib_pq_PQescapeStringConn" = x""yes; then : +if test "x$ac_cv_lib_pq_PQescapeStringConn" = xyes; then : $as_echo "#define HAVE_PQESCAPE_CONN 1" >>confdefs.h @@ -74492,7 +74714,7 @@ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQescapeByteaConn in -lpq" >&5 $as_echo_n "checking for PQescapeByteaConn in -lpq... " >&6; } -if test "${ac_cv_lib_pq_PQescapeByteaConn+set}" = set; then : +if ${ac_cv_lib_pq_PQescapeByteaConn+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS @@ -74526,7 +74748,7 @@ fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQescapeByteaConn" >&5 $as_echo "$ac_cv_lib_pq_PQescapeByteaConn" >&6; } -if test "x$ac_cv_lib_pq_PQescapeByteaConn" = x""yes; then : +if test "x$ac_cv_lib_pq_PQescapeByteaConn" = xyes; then : $as_echo "#define HAVE_PQESCAPE_BYTEA_CONN 1" >>confdefs.h @@ -74535,7 +74757,7 @@ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pg_encoding_to_char in -lpq" >&5 $as_echo_n "checking for pg_encoding_to_char in -lpq... " >&6; } -if test "${ac_cv_lib_pq_pg_encoding_to_char+set}" = set; then : +if ${ac_cv_lib_pq_pg_encoding_to_char+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS @@ -74569,7 +74791,7 @@ fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_pg_encoding_to_char" >&5 $as_echo "$ac_cv_lib_pq_pg_encoding_to_char" >&6; } -if test "x$ac_cv_lib_pq_pg_encoding_to_char" = x""yes; then : +if test "x$ac_cv_lib_pq_pg_encoding_to_char" = xyes; then : $as_echo "#define HAVE_PGSQL_WITH_MULTIBYTE_SUPPORT 1" >>confdefs.h @@ -74601,6 +74823,7 @@ if test "$ext_shared" = "yes"; then PDO_PGSQL_SHARED_LIBADD="-L$ai_p $PDO_PGSQL_SHARED_LIBADD" + test "x$PHP_RPATH" != "xno" && \ test -n "$ld_runpath_switch" && PDO_PGSQL_SHARED_LIBADD="$ld_runpath_switch$ai_p $PDO_PGSQL_SHARED_LIBADD" else @@ -74612,6 +74835,7 @@ if test -n "$unique" && test "`eval $cmd`" = "" ; then eval "LIBPATH$unique=set" + test "x$PHP_RPATH" != "xno" && test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" LDFLAGS="$LDFLAGS -L$ai_p" PHP_RPATHS="$PHP_RPATHS $ai_p" @@ -74651,6 +74875,7 @@ if test -n "$unique" && test "`eval $cmd`" = "" ; then eval "LIBPATH$unique=set" + test "x$PHP_RPATH" != "xno" && test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" LDFLAGS="$LDFLAGS -L$ai_p" PHP_RPATHS="$PHP_RPATHS $ai_p" @@ -74717,7 +74942,7 @@ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PDO includes" >&5 $as_echo_n "checking for PDO includes... " >&6; } -if test "${pdo_cv_inc_path+set}" = set; then : +if ${pdo_cv_inc_path+:} false; then : $as_echo_n "(cached) " >&6 else @@ -74737,7 +74962,7 @@ if test -n "$pdo_cv_inc_path"; then : else -as_fn_error "Cannot find php_pdo_driver.h." "$LINENO" 5 +as_fn_error $? "Cannot find php_pdo_driver.h." "$LINENO" 5 fi @@ -75041,7 +75266,7 @@ is_it_shared=$PHP_PDO_SHARED is_it_enabled=$PHP_PDO if test "$am_i_shared" = "no" && test "$is_it_shared" = "yes" ; then - as_fn_error " + as_fn_error $? " You've configured extension pdo_pgsql to build statically, but it depends on extension pdo, which you've configured to build shared. You either need to build pdo_pgsql shared or build pdo statically for the @@ -75049,7 +75274,7 @@ " "$LINENO" 5 fi if test "x$is_it_enabled" = "xno" && test "x" != "xtrue"; then - as_fn_error " + as_fn_error $? " You've configured extension pdo_pgsql, which depends on extension pdo, but you've either not enabled pdo, or have disabled it. " "$LINENO" 5 @@ -75107,14 +75332,14 @@ if test "$PHP_PDO_SQLITE" != "no"; then if test "$PHP_PDO" = "no" && test "$ext_shared" = "no"; then - as_fn_error "PDO is not enabled! Add --enable-pdo to your configure line." "$LINENO" 5 + as_fn_error $? "PDO is not enabled! Add --enable-pdo to your configure line." "$LINENO" 5 fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PDO includes" >&5 $as_echo_n "checking for PDO includes... " >&6; } -if test "${pdo_cv_inc_path+set}" = set; then : +if ${pdo_cv_inc_path+:} false; then : $as_echo_n "(cached) " >&6 else @@ -75134,7 +75359,7 @@ if test -n "$pdo_cv_inc_path"; then : else -as_fn_error "Cannot find php_pdo_driver.h." "$LINENO" 5 +as_fn_error $? "Cannot find php_pdo_driver.h." "$LINENO" 5 fi @@ -75160,7 +75385,7 @@ if test -z "$PDO_SQLITE_DIR"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 $as_echo "not found" >&6; } - as_fn_error "Please reinstall the sqlite3 distribution" "$LINENO" 5 + as_fn_error $? "Please reinstall the sqlite3 distribution" "$LINENO" 5 fi @@ -75269,6 +75494,7 @@ if test "$ext_shared" = "yes"; then LDFLAGS="-L$ai_p $LDFLAGS" + test "x$PHP_RPATH" != "xno" && \ test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS" else @@ -75280,6 +75506,7 @@ if test -n "$unique" && test "`eval $cmd`" = "" ; then eval "LIBPATH$unique=set" + test "x$PHP_RPATH" != "xno" && test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" LDFLAGS="$LDFLAGS -L$ai_p" PHP_RPATHS="$PHP_RPATHS $ai_p" @@ -75298,7 +75525,7 @@ as_ac_Lib=`$as_echo "ac_cv_lib_$LIBNAME''_$LIBSYMBOL" | $as_tr_sh` { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LIBSYMBOL in -l$LIBNAME" >&5 $as_echo_n "checking for $LIBSYMBOL in -l$LIBNAME... " >&6; } -if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then : +if eval \${$as_ac_Lib+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS @@ -75333,8 +75560,7 @@ eval ac_res=\$$as_ac_Lib { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 $as_echo "$ac_res" >&6; } -eval as_val=\$$as_ac_Lib - if test "x$as_val" = x""yes; then : +if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : LDFLAGS=$save_old_LDFLAGS ext_shared=$save_ext_shared @@ -75360,6 +75586,7 @@ if test "$ext_shared" = "yes"; then PDO_SQLITE_SHARED_LIBADD="-L$ai_p $PDO_SQLITE_SHARED_LIBADD" + test "x$PHP_RPATH" != "xno" && \ test -n "$ld_runpath_switch" && PDO_SQLITE_SHARED_LIBADD="$ld_runpath_switch$ai_p $PDO_SQLITE_SHARED_LIBADD" else @@ -75371,6 +75598,7 @@ if test -n "$unique" && test "`eval $cmd`" = "" ; then eval "LIBPATH$unique=set" + test "x$PHP_RPATH" != "xno" && test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" LDFLAGS="$LDFLAGS -L$ai_p" PHP_RPATHS="$PHP_RPATHS $ai_p" @@ -75410,6 +75638,7 @@ if test -n "$unique" && test "`eval $cmd`" = "" ; then eval "LIBPATH$unique=set" + test "x$PHP_RPATH" != "xno" && test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" LDFLAGS="$LDFLAGS -L$ai_p" PHP_RPATHS="$PHP_RPATHS $ai_p" @@ -75447,7 +75676,7 @@ ext_shared=$save_ext_shared unset ac_cv_lib_$LIBNAME_$LIBSYMBOL - as_fn_error "wrong sqlite lib version or lib not found" "$LINENO" 5 + as_fn_error $? "wrong sqlite lib version or lib not found" "$LINENO" 5 fi @@ -75521,6 +75750,7 @@ if test "$ext_shared" = "yes"; then LDFLAGS="-L$ai_p $LDFLAGS" + test "x$PHP_RPATH" != "xno" && \ test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS" else @@ -75532,6 +75762,7 @@ if test -n "$unique" && test "`eval $cmd`" = "" ; then eval "LIBPATH$unique=set" + test "x$PHP_RPATH" != "xno" && test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" LDFLAGS="$LDFLAGS -L$ai_p" PHP_RPATHS="$PHP_RPATHS $ai_p" @@ -75549,7 +75780,7 @@ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqlite3_key in -lsqlite3" >&5 $as_echo_n "checking for sqlite3_key in -lsqlite3... " >&6; } -if test "${ac_cv_lib_sqlite3_sqlite3_key+set}" = set; then : +if ${ac_cv_lib_sqlite3_sqlite3_key+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS @@ -75583,7 +75814,7 @@ fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sqlite3_sqlite3_key" >&5 $as_echo "$ac_cv_lib_sqlite3_sqlite3_key" >&6; } -if test "x$ac_cv_lib_sqlite3_sqlite3_key" = x""yes; then : +if test "x$ac_cv_lib_sqlite3_sqlite3_key" = xyes; then : LDFLAGS=$save_old_LDFLAGS ext_shared=$save_ext_shared @@ -76261,7 +76492,7 @@ is_it_shared=$PHP_SQLITE3_SHARED is_it_enabled=$PHP_SQLITE3 if test "$am_i_shared" = "no" && test "$is_it_shared" = "yes" ; then - as_fn_error " + as_fn_error $? " You've configured extension pdo_sqlite to build statically, but it depends on extension sqlite3, which you've configured to build shared. You either need to build pdo_sqlite shared or build sqlite3 statically for the @@ -76269,7 +76500,7 @@ " "$LINENO" 5 fi if test "x$is_it_enabled" = "xno" && test "x" != "xtrue"; then - as_fn_error " + as_fn_error $? " You've configured extension pdo_sqlite, which depends on extension sqlite3, but you've either not enabled sqlite3, or have disabled it. " "$LINENO" 5 @@ -76311,8 +76542,7 @@ do : as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" -eval as_val=\$$as_ac_var - if test "x$as_val" = x""yes; then : +if eval test \"x\$"$as_ac_var"\" = x"yes"; then : cat >>confdefs.h <<_ACEOF #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 _ACEOF @@ -76323,7 +76553,7 @@ for ac_header in time.h do : ac_fn_c_check_header_mongrel "$LINENO" "time.h" "ac_cv_header_time_h" "$ac_includes_default" -if test "x$ac_cv_header_time_h" = x""yes; then : +if test "x$ac_cv_header_time_h" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_TIME_H 1 _ACEOF @@ -76403,6 +76633,7 @@ if test "$ext_shared" = "yes"; then LDFLAGS="-L$ai_p $LDFLAGS" + test "x$PHP_RPATH" != "xno" && \ test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS" else @@ -76414,6 +76645,7 @@ if test -n "$unique" && test "`eval $cmd`" = "" ; then eval "LIBPATH$unique=set" + test "x$PHP_RPATH" != "xno" && test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" LDFLAGS="$LDFLAGS -L$ai_p" PHP_RPATHS="$PHP_RPATHS $ai_p" @@ -76431,7 +76663,7 @@ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fdatasync in -lrt" >&5 $as_echo_n "checking for fdatasync in -lrt... " >&6; } -if test "${ac_cv_lib_rt_fdatasync+set}" = set; then : +if ${ac_cv_lib_rt_fdatasync+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS @@ -76465,7 +76697,7 @@ fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_fdatasync" >&5 $as_echo "$ac_cv_lib_rt_fdatasync" >&6; } -if test "x$ac_cv_lib_rt_fdatasync" = x""yes; then : +if test "x$ac_cv_lib_rt_fdatasync" = xyes; then : LDFLAGS=$save_old_LDFLAGS ext_shared=$save_ext_shared @@ -76509,7 +76741,7 @@ is_it_shared=$PHP_PDO_SHARED is_it_enabled=$PHP_PDO if test "$am_i_shared" = "no" && test "$is_it_shared" = "yes" ; then - as_fn_error " + as_fn_error $? " You've configured extension pdo_sqlite to build statically, but it depends on extension pdo, which you've configured to build shared. You either need to build pdo_sqlite shared or build pdo statically for the @@ -76517,7 +76749,7 @@ " "$LINENO" 5 fi if test "x$is_it_enabled" = "xno" && test "x" != "xtrue"; then - as_fn_error " + as_fn_error $? " You've configured extension pdo_sqlite, which depends on extension pdo, but you've either not enabled pdo, or have disabled it. " "$LINENO" 5 @@ -76635,15 +76867,15 @@ fi if test -z "$PGSQL_INCLUDE"; then - as_fn_error "Cannot find libpq-fe.h. Please specify correct PostgreSQL installation path" "$LINENO" 5 + as_fn_error $? "Cannot find libpq-fe.h. Please specify correct PostgreSQL installation path" "$LINENO" 5 fi if test -z "$PGSQL_LIBDIR"; then - as_fn_error "Cannot find libpq.so. Please specify correct PostgreSQL installation path" "$LINENO" 5 + as_fn_error $? "Cannot find libpq.so. Please specify correct PostgreSQL installation path" "$LINENO" 5 fi if test -z "$PGSQL_INCLUDE" -a -z "$PGSQL_LIBDIR" ; then - as_fn_error "Unable to find libpq anywhere under $PGSQL_SEARCH_PATHS" "$LINENO" 5 + as_fn_error $? "Unable to find libpq anywhere under $PGSQL_SEARCH_PATHS" "$LINENO" 5 fi @@ -76654,7 +76886,7 @@ LDFLAGS="-L$PGSQL_LIBDIR $LDFLAGS" { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQescapeString in -lpq" >&5 $as_echo_n "checking for PQescapeString in -lpq... " >&6; } -if test "${ac_cv_lib_pq_PQescapeString+set}" = set; then : +if ${ac_cv_lib_pq_PQescapeString+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS @@ -76688,7 +76920,7 @@ fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQescapeString" >&5 $as_echo "$ac_cv_lib_pq_PQescapeString" >&6; } -if test "x$ac_cv_lib_pq_PQescapeString" = x""yes; then : +if test "x$ac_cv_lib_pq_PQescapeString" = xyes; then : $as_echo "#define HAVE_PQESCAPE 1" >>confdefs.h @@ -76696,7 +76928,7 @@ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQunescapeBytea in -lpq" >&5 $as_echo_n "checking for PQunescapeBytea in -lpq... " >&6; } -if test "${ac_cv_lib_pq_PQunescapeBytea+set}" = set; then : +if ${ac_cv_lib_pq_PQunescapeBytea+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS @@ -76730,7 +76962,7 @@ fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQunescapeBytea" >&5 $as_echo "$ac_cv_lib_pq_PQunescapeBytea" >&6; } -if test "x$ac_cv_lib_pq_PQunescapeBytea" = x""yes; then : +if test "x$ac_cv_lib_pq_PQunescapeBytea" = xyes; then : $as_echo "#define HAVE_PQUNESCAPEBYTEA 1" >>confdefs.h @@ -76738,7 +76970,7 @@ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQsetnonblocking in -lpq" >&5 $as_echo_n "checking for PQsetnonblocking in -lpq... " >&6; } -if test "${ac_cv_lib_pq_PQsetnonblocking+set}" = set; then : +if ${ac_cv_lib_pq_PQsetnonblocking+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS @@ -76772,7 +77004,7 @@ fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQsetnonblocking" >&5 $as_echo "$ac_cv_lib_pq_PQsetnonblocking" >&6; } -if test "x$ac_cv_lib_pq_PQsetnonblocking" = x""yes; then : +if test "x$ac_cv_lib_pq_PQsetnonblocking" = xyes; then : $as_echo "#define HAVE_PQSETNONBLOCKING 1" >>confdefs.h @@ -76780,7 +77012,7 @@ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQcmdTuples in -lpq" >&5 $as_echo_n "checking for PQcmdTuples in -lpq... " >&6; } -if test "${ac_cv_lib_pq_PQcmdTuples+set}" = set; then : +if ${ac_cv_lib_pq_PQcmdTuples+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS @@ -76814,7 +77046,7 @@ fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQcmdTuples" >&5 $as_echo "$ac_cv_lib_pq_PQcmdTuples" >&6; } -if test "x$ac_cv_lib_pq_PQcmdTuples" = x""yes; then : +if test "x$ac_cv_lib_pq_PQcmdTuples" = xyes; then : $as_echo "#define HAVE_PQCMDTUPLES 1" >>confdefs.h @@ -76822,7 +77054,7 @@ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQoidValue in -lpq" >&5 $as_echo_n "checking for PQoidValue in -lpq... " >&6; } -if test "${ac_cv_lib_pq_PQoidValue+set}" = set; then : +if ${ac_cv_lib_pq_PQoidValue+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS @@ -76856,7 +77088,7 @@ fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQoidValue" >&5 $as_echo "$ac_cv_lib_pq_PQoidValue" >&6; } -if test "x$ac_cv_lib_pq_PQoidValue" = x""yes; then : +if test "x$ac_cv_lib_pq_PQoidValue" = xyes; then : $as_echo "#define HAVE_PQOIDVALUE 1" >>confdefs.h @@ -76864,7 +77096,7 @@ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQclientEncoding in -lpq" >&5 $as_echo_n "checking for PQclientEncoding in -lpq... " >&6; } -if test "${ac_cv_lib_pq_PQclientEncoding+set}" = set; then : +if ${ac_cv_lib_pq_PQclientEncoding+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS @@ -76898,7 +77130,7 @@ fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQclientEncoding" >&5 $as_echo "$ac_cv_lib_pq_PQclientEncoding" >&6; } -if test "x$ac_cv_lib_pq_PQclientEncoding" = x""yes; then : +if test "x$ac_cv_lib_pq_PQclientEncoding" = xyes; then : $as_echo "#define HAVE_PQCLIENTENCODING 1" >>confdefs.h @@ -76906,7 +77138,7 @@ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQparameterStatus in -lpq" >&5 $as_echo_n "checking for PQparameterStatus in -lpq... " >&6; } -if test "${ac_cv_lib_pq_PQparameterStatus+set}" = set; then : +if ${ac_cv_lib_pq_PQparameterStatus+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS @@ -76940,7 +77172,7 @@ fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQparameterStatus" >&5 $as_echo "$ac_cv_lib_pq_PQparameterStatus" >&6; } -if test "x$ac_cv_lib_pq_PQparameterStatus" = x""yes; then : +if test "x$ac_cv_lib_pq_PQparameterStatus" = xyes; then : $as_echo "#define HAVE_PQPARAMETERSTATUS 1" >>confdefs.h @@ -76948,7 +77180,7 @@ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQprotocolVersion in -lpq" >&5 $as_echo_n "checking for PQprotocolVersion in -lpq... " >&6; } -if test "${ac_cv_lib_pq_PQprotocolVersion+set}" = set; then : +if ${ac_cv_lib_pq_PQprotocolVersion+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS @@ -76982,7 +77214,7 @@ fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQprotocolVersion" >&5 $as_echo "$ac_cv_lib_pq_PQprotocolVersion" >&6; } -if test "x$ac_cv_lib_pq_PQprotocolVersion" = x""yes; then : +if test "x$ac_cv_lib_pq_PQprotocolVersion" = xyes; then : $as_echo "#define HAVE_PQPROTOCOLVERSION 1" >>confdefs.h @@ -76990,7 +77222,7 @@ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQtransactionStatus in -lpq" >&5 $as_echo_n "checking for PQtransactionStatus in -lpq... " >&6; } -if test "${ac_cv_lib_pq_PQtransactionStatus+set}" = set; then : +if ${ac_cv_lib_pq_PQtransactionStatus+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS @@ -77024,7 +77256,7 @@ fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQtransactionStatus" >&5 $as_echo "$ac_cv_lib_pq_PQtransactionStatus" >&6; } -if test "x$ac_cv_lib_pq_PQtransactionStatus" = x""yes; then : +if test "x$ac_cv_lib_pq_PQtransactionStatus" = xyes; then : $as_echo "#define HAVE_PGTRANSACTIONSTATUS 1" >>confdefs.h @@ -77032,7 +77264,7 @@ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQexecParams in -lpq" >&5 $as_echo_n "checking for PQexecParams in -lpq... " >&6; } -if test "${ac_cv_lib_pq_PQexecParams+set}" = set; then : +if ${ac_cv_lib_pq_PQexecParams+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS @@ -77066,7 +77298,7 @@ fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQexecParams" >&5 $as_echo "$ac_cv_lib_pq_PQexecParams" >&6; } -if test "x$ac_cv_lib_pq_PQexecParams" = x""yes; then : +if test "x$ac_cv_lib_pq_PQexecParams" = xyes; then : $as_echo "#define HAVE_PQEXECPARAMS 1" >>confdefs.h @@ -77074,7 +77306,7 @@ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQprepare in -lpq" >&5 $as_echo_n "checking for PQprepare in -lpq... " >&6; } -if test "${ac_cv_lib_pq_PQprepare+set}" = set; then : +if ${ac_cv_lib_pq_PQprepare+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS @@ -77108,7 +77340,7 @@ fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQprepare" >&5 $as_echo "$ac_cv_lib_pq_PQprepare" >&6; } -if test "x$ac_cv_lib_pq_PQprepare" = x""yes; then : +if test "x$ac_cv_lib_pq_PQprepare" = xyes; then : $as_echo "#define HAVE_PQPREPARE 1" >>confdefs.h @@ -77116,7 +77348,7 @@ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQexecPrepared in -lpq" >&5 $as_echo_n "checking for PQexecPrepared in -lpq... " >&6; } -if test "${ac_cv_lib_pq_PQexecPrepared+set}" = set; then : +if ${ac_cv_lib_pq_PQexecPrepared+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS @@ -77150,7 +77382,7 @@ fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQexecPrepared" >&5 $as_echo "$ac_cv_lib_pq_PQexecPrepared" >&6; } -if test "x$ac_cv_lib_pq_PQexecPrepared" = x""yes; then : +if test "x$ac_cv_lib_pq_PQexecPrepared" = xyes; then : $as_echo "#define HAVE_PQEXECPREPARED 1" >>confdefs.h @@ -77158,7 +77390,7 @@ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQresultErrorField in -lpq" >&5 $as_echo_n "checking for PQresultErrorField in -lpq... " >&6; } -if test "${ac_cv_lib_pq_PQresultErrorField+set}" = set; then : +if ${ac_cv_lib_pq_PQresultErrorField+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS @@ -77192,7 +77424,7 @@ fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQresultErrorField" >&5 $as_echo "$ac_cv_lib_pq_PQresultErrorField" >&6; } -if test "x$ac_cv_lib_pq_PQresultErrorField" = x""yes; then : +if test "x$ac_cv_lib_pq_PQresultErrorField" = xyes; then : $as_echo "#define HAVE_PQRESULTERRORFIELD 1" >>confdefs.h @@ -77200,7 +77432,7 @@ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQsendQueryParams in -lpq" >&5 $as_echo_n "checking for PQsendQueryParams in -lpq... " >&6; } -if test "${ac_cv_lib_pq_PQsendQueryParams+set}" = set; then : +if ${ac_cv_lib_pq_PQsendQueryParams+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS @@ -77234,7 +77466,7 @@ fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQsendQueryParams" >&5 $as_echo "$ac_cv_lib_pq_PQsendQueryParams" >&6; } -if test "x$ac_cv_lib_pq_PQsendQueryParams" = x""yes; then : +if test "x$ac_cv_lib_pq_PQsendQueryParams" = xyes; then : $as_echo "#define HAVE_PQSENDQUERYPARAMS 1" >>confdefs.h @@ -77242,7 +77474,7 @@ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQsendPrepare in -lpq" >&5 $as_echo_n "checking for PQsendPrepare in -lpq... " >&6; } -if test "${ac_cv_lib_pq_PQsendPrepare+set}" = set; then : +if ${ac_cv_lib_pq_PQsendPrepare+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS @@ -77276,7 +77508,7 @@ fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQsendPrepare" >&5 $as_echo "$ac_cv_lib_pq_PQsendPrepare" >&6; } -if test "x$ac_cv_lib_pq_PQsendPrepare" = x""yes; then : +if test "x$ac_cv_lib_pq_PQsendPrepare" = xyes; then : $as_echo "#define HAVE_PQSENDPREPARE 1" >>confdefs.h @@ -77284,7 +77516,7 @@ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQsendQueryPrepared in -lpq" >&5 $as_echo_n "checking for PQsendQueryPrepared in -lpq... " >&6; } -if test "${ac_cv_lib_pq_PQsendQueryPrepared+set}" = set; then : +if ${ac_cv_lib_pq_PQsendQueryPrepared+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS @@ -77318,7 +77550,7 @@ fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQsendQueryPrepared" >&5 $as_echo "$ac_cv_lib_pq_PQsendQueryPrepared" >&6; } -if test "x$ac_cv_lib_pq_PQsendQueryPrepared" = x""yes; then : +if test "x$ac_cv_lib_pq_PQsendQueryPrepared" = xyes; then : $as_echo "#define HAVE_PQSENDQUERYPREPARED 1" >>confdefs.h @@ -77326,7 +77558,7 @@ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQputCopyData in -lpq" >&5 $as_echo_n "checking for PQputCopyData in -lpq... " >&6; } -if test "${ac_cv_lib_pq_PQputCopyData+set}" = set; then : +if ${ac_cv_lib_pq_PQputCopyData+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS @@ -77360,7 +77592,7 @@ fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQputCopyData" >&5 $as_echo "$ac_cv_lib_pq_PQputCopyData" >&6; } -if test "x$ac_cv_lib_pq_PQputCopyData" = x""yes; then : +if test "x$ac_cv_lib_pq_PQputCopyData" = xyes; then : $as_echo "#define HAVE_PQPUTCOPYDATA 1" >>confdefs.h @@ -77368,7 +77600,7 @@ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQputCopyEnd in -lpq" >&5 $as_echo_n "checking for PQputCopyEnd in -lpq... " >&6; } -if test "${ac_cv_lib_pq_PQputCopyEnd+set}" = set; then : +if ${ac_cv_lib_pq_PQputCopyEnd+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS @@ -77402,7 +77634,7 @@ fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQputCopyEnd" >&5 $as_echo "$ac_cv_lib_pq_PQputCopyEnd" >&6; } -if test "x$ac_cv_lib_pq_PQputCopyEnd" = x""yes; then : +if test "x$ac_cv_lib_pq_PQputCopyEnd" = xyes; then : $as_echo "#define HAVE_PQPUTCOPYEND 1" >>confdefs.h @@ -77410,7 +77642,7 @@ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQgetCopyData in -lpq" >&5 $as_echo_n "checking for PQgetCopyData in -lpq... " >&6; } -if test "${ac_cv_lib_pq_PQgetCopyData+set}" = set; then : +if ${ac_cv_lib_pq_PQgetCopyData+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS @@ -77444,7 +77676,7 @@ fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQgetCopyData" >&5 $as_echo "$ac_cv_lib_pq_PQgetCopyData" >&6; } -if test "x$ac_cv_lib_pq_PQgetCopyData" = x""yes; then : +if test "x$ac_cv_lib_pq_PQgetCopyData" = xyes; then : $as_echo "#define HAVE_PQGETCOPYDATA 1" >>confdefs.h @@ -77452,7 +77684,7 @@ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQfreemem in -lpq" >&5 $as_echo_n "checking for PQfreemem in -lpq... " >&6; } -if test "${ac_cv_lib_pq_PQfreemem+set}" = set; then : +if ${ac_cv_lib_pq_PQfreemem+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS @@ -77486,7 +77718,7 @@ fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQfreemem" >&5 $as_echo "$ac_cv_lib_pq_PQfreemem" >&6; } -if test "x$ac_cv_lib_pq_PQfreemem" = x""yes; then : +if test "x$ac_cv_lib_pq_PQfreemem" = xyes; then : $as_echo "#define HAVE_PQFREEMEM 1" >>confdefs.h @@ -77494,7 +77726,7 @@ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQsetErrorVerbosity in -lpq" >&5 $as_echo_n "checking for PQsetErrorVerbosity in -lpq... " >&6; } -if test "${ac_cv_lib_pq_PQsetErrorVerbosity+set}" = set; then : +if ${ac_cv_lib_pq_PQsetErrorVerbosity+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS @@ -77528,7 +77760,7 @@ fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQsetErrorVerbosity" >&5 $as_echo "$ac_cv_lib_pq_PQsetErrorVerbosity" >&6; } -if test "x$ac_cv_lib_pq_PQsetErrorVerbosity" = x""yes; then : +if test "x$ac_cv_lib_pq_PQsetErrorVerbosity" = xyes; then : $as_echo "#define HAVE_PQSETERRORVERBOSITY 1" >>confdefs.h @@ -77536,7 +77768,7 @@ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQftable in -lpq" >&5 $as_echo_n "checking for PQftable in -lpq... " >&6; } -if test "${ac_cv_lib_pq_PQftable+set}" = set; then : +if ${ac_cv_lib_pq_PQftable+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS @@ -77570,7 +77802,7 @@ fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQftable" >&5 $as_echo "$ac_cv_lib_pq_PQftable" >&6; } -if test "x$ac_cv_lib_pq_PQftable" = x""yes; then : +if test "x$ac_cv_lib_pq_PQftable" = xyes; then : $as_echo "#define HAVE_PQFTABLE 1" >>confdefs.h @@ -77578,7 +77810,7 @@ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQescapeStringConn in -lpq" >&5 $as_echo_n "checking for PQescapeStringConn in -lpq... " >&6; } -if test "${ac_cv_lib_pq_PQescapeStringConn+set}" = set; then : +if ${ac_cv_lib_pq_PQescapeStringConn+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS @@ -77612,7 +77844,7 @@ fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQescapeStringConn" >&5 $as_echo "$ac_cv_lib_pq_PQescapeStringConn" >&6; } -if test "x$ac_cv_lib_pq_PQescapeStringConn" = x""yes; then : +if test "x$ac_cv_lib_pq_PQescapeStringConn" = xyes; then : $as_echo "#define HAVE_PQESCAPE_CONN 1" >>confdefs.h @@ -77620,7 +77852,7 @@ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQescapeByteaConn in -lpq" >&5 $as_echo_n "checking for PQescapeByteaConn in -lpq... " >&6; } -if test "${ac_cv_lib_pq_PQescapeByteaConn+set}" = set; then : +if ${ac_cv_lib_pq_PQescapeByteaConn+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS @@ -77654,7 +77886,7 @@ fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQescapeByteaConn" >&5 $as_echo "$ac_cv_lib_pq_PQescapeByteaConn" >&6; } -if test "x$ac_cv_lib_pq_PQescapeByteaConn" = x""yes; then : +if test "x$ac_cv_lib_pq_PQescapeByteaConn" = xyes; then : $as_echo "#define HAVE_PQESCAPE_BYTEA_CONN 1" >>confdefs.h @@ -77662,7 +77894,7 @@ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pg_encoding_to_char in -lpq" >&5 $as_echo_n "checking for pg_encoding_to_char in -lpq... " >&6; } -if test "${ac_cv_lib_pq_pg_encoding_to_char+set}" = set; then : +if ${ac_cv_lib_pq_pg_encoding_to_char+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS @@ -77696,7 +77928,7 @@ fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_pg_encoding_to_char" >&5 $as_echo "$ac_cv_lib_pq_pg_encoding_to_char" >&6; } -if test "x$ac_cv_lib_pq_pg_encoding_to_char" = x""yes; then : +if test "x$ac_cv_lib_pq_pg_encoding_to_char" = xyes; then : $as_echo "#define HAVE_PGSQL_WITH_MULTIBYTE_SUPPORT 1" >>confdefs.h @@ -77704,7 +77936,7 @@ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lo_create in -lpq" >&5 $as_echo_n "checking for lo_create in -lpq... " >&6; } -if test "${ac_cv_lib_pq_lo_create+set}" = set; then : +if ${ac_cv_lib_pq_lo_create+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS @@ -77738,7 +77970,7 @@ fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_lo_create" >&5 $as_echo "$ac_cv_lib_pq_lo_create" >&6; } -if test "x$ac_cv_lib_pq_lo_create" = x""yes; then : +if test "x$ac_cv_lib_pq_lo_create" = xyes; then : $as_echo "#define HAVE_PG_LO_CREATE 1" >>confdefs.h @@ -77746,7 +77978,7 @@ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lo_import_with_oid in -lpq" >&5 $as_echo_n "checking for lo_import_with_oid in -lpq... " >&6; } -if test "${ac_cv_lib_pq_lo_import_with_oid+set}" = set; then : +if ${ac_cv_lib_pq_lo_import_with_oid+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS @@ -77780,7 +78012,7 @@ fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_lo_import_with_oid" >&5 $as_echo "$ac_cv_lib_pq_lo_import_with_oid" >&6; } -if test "x$ac_cv_lib_pq_lo_import_with_oid" = x""yes; then : +if test "x$ac_cv_lib_pq_lo_import_with_oid" = xyes; then : $as_echo "#define HAVE_PG_LO_IMPORT_WITH_OID 1" >>confdefs.h @@ -77788,7 +78020,7 @@ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQescapeLiteral in -lpq" >&5 $as_echo_n "checking for PQescapeLiteral in -lpq... " >&6; } -if test "${ac_cv_lib_pq_PQescapeLiteral+set}" = set; then : +if ${ac_cv_lib_pq_PQescapeLiteral+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS @@ -77822,7 +78054,7 @@ fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQescapeLiteral" >&5 $as_echo "$ac_cv_lib_pq_PQescapeLiteral" >&6; } -if test "x$ac_cv_lib_pq_PQescapeLiteral" = x""yes; then : +if test "x$ac_cv_lib_pq_PQescapeLiteral" = xyes; then : $as_echo "#define HAVE_PQESCAPELITERAL 1" >>confdefs.h @@ -77852,6 +78084,7 @@ if test "$ext_shared" = "yes"; then PGSQL_SHARED_LIBADD="-L$ai_p $PGSQL_SHARED_LIBADD" + test "x$PHP_RPATH" != "xno" && \ test -n "$ld_runpath_switch" && PGSQL_SHARED_LIBADD="$ld_runpath_switch$ai_p $PGSQL_SHARED_LIBADD" else @@ -77863,6 +78096,7 @@ if test -n "$unique" && test "`eval $cmd`" = "" ; then eval "LIBPATH$unique=set" + test "x$PHP_RPATH" != "xno" && test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" LDFLAGS="$LDFLAGS -L$ai_p" PHP_RPATHS="$PHP_RPATHS $ai_p" @@ -77902,6 +78136,7 @@ if test -n "$unique" && test "`eval $cmd`" = "" ; then eval "LIBPATH$unique=set" + test "x$PHP_RPATH" != "xno" && test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" LDFLAGS="$LDFLAGS -L$ai_p" PHP_RPATHS="$PHP_RPATHS $ai_p" @@ -78632,7 +78867,7 @@ is_it_shared=$PHP_HASH_SHARED is_it_enabled=$PHP_HASH if test "$am_i_shared" = "no" && test "$is_it_shared" = "yes" ; then - as_fn_error " + as_fn_error $? " You've configured extension phar to build statically, but it depends on extension hash, which you've configured to build shared. You either need to build phar shared or build hash statically for the @@ -78640,7 +78875,7 @@ " "$LINENO" 5 fi if test "x$is_it_enabled" = "xno" && test "xtrue" != "xtrue"; then - as_fn_error " + as_fn_error $? " You've configured extension phar, which depends on extension hash, but you've either not enabled hash, or have disabled it. " "$LINENO" 5 @@ -78651,7 +78886,7 @@ is_it_shared=$PHP_SPL_SHARED is_it_enabled=$PHP_SPL if test "$am_i_shared" = "no" && test "$is_it_shared" = "yes" ; then - as_fn_error " + as_fn_error $? " You've configured extension phar to build statically, but it depends on extension spl, which you've configured to build shared. You either need to build phar shared or build spl statically for the @@ -78659,7 +78894,7 @@ " "$LINENO" 5 fi if test "x$is_it_enabled" = "xno" && test "xtrue" != "xtrue"; then - as_fn_error " + as_fn_error $? " You've configured extension phar, which depends on extension spl, but you've either not enabled spl, or have disabled it. " "$LINENO" 5 @@ -79019,7 +79254,7 @@ for ac_header in sys/mkdev.h do : ac_fn_c_check_header_mongrel "$LINENO" "sys/mkdev.h" "ac_cv_header_sys_mkdev_h" "$ac_includes_default" -if test "x$ac_cv_header_sys_mkdev_h" = x""yes; then : +if test "x$ac_cv_header_sys_mkdev_h" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_SYS_MKDEV_H 1 _ACEOF @@ -79033,8 +79268,7 @@ do : as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" -eval as_val=\$$as_ac_var - if test "x$as_val" = x""yes; then : +if eval test \"x\$"$as_ac_var"\" = x"yes"; then : cat >>confdefs.h <<_ACEOF #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 _ACEOF @@ -79085,7 +79319,7 @@ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for utsname.domainname" >&5 $as_echo_n "checking for utsname.domainname... " >&6; } -if test "${ac_cv_have_utsname_domainname+set}" = set; then : +if ${ac_cv_have_utsname_domainname+:} false; then : $as_echo_n "(cached) " >&6 else @@ -79482,7 +79716,7 @@ done if test -z "$PSPELL_DIR"; then - as_fn_error "Cannot find pspell" "$LINENO" 5 + as_fn_error $? "Cannot find pspell" "$LINENO" 5 fi PSPELL_LIBDIR=$PSPELL_DIR/$PHP_LIBDIR @@ -79508,6 +79742,7 @@ if test "$ext_shared" = "yes"; then PSPELL_SHARED_LIBADD="-L$ai_p $PSPELL_SHARED_LIBADD" + test "x$PHP_RPATH" != "xno" && \ test -n "$ld_runpath_switch" && PSPELL_SHARED_LIBADD="$ld_runpath_switch$ai_p $PSPELL_SHARED_LIBADD" else @@ -79519,6 +79754,7 @@ if test -n "$unique" && test "`eval $cmd`" = "" ; then eval "LIBPATH$unique=set" + test "x$PHP_RPATH" != "xno" && test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" LDFLAGS="$LDFLAGS -L$ai_p" PHP_RPATHS="$PHP_RPATHS $ai_p" @@ -79558,6 +79794,7 @@ if test -n "$unique" && test "`eval $cmd`" = "" ; then eval "LIBPATH$unique=set" + test "x$PHP_RPATH" != "xno" && test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" LDFLAGS="$LDFLAGS -L$ai_p" PHP_RPATHS="$PHP_RPATHS $ai_p" @@ -79656,6 +79893,7 @@ if test "$ext_shared" = "yes"; then LDFLAGS="-L$ai_p $LDFLAGS" + test "x$PHP_RPATH" != "xno" && \ test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS" else @@ -79667,6 +79905,7 @@ if test -n "$unique" && test "`eval $cmd`" = "" ; then eval "LIBPATH$unique=set" + test "x$PHP_RPATH" != "xno" && test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" LDFLAGS="$LDFLAGS -L$ai_p" PHP_RPATHS="$PHP_RPATHS $ai_p" @@ -79684,7 +79923,7 @@ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for new_aspell_config in -laspell" >&5 $as_echo_n "checking for new_aspell_config in -laspell... " >&6; } -if test "${ac_cv_lib_aspell_new_aspell_config+set}" = set; then : +if ${ac_cv_lib_aspell_new_aspell_config+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS @@ -79718,7 +79957,7 @@ fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_aspell_new_aspell_config" >&5 $as_echo "$ac_cv_lib_aspell_new_aspell_config" >&6; } -if test "x$ac_cv_lib_aspell_new_aspell_config" = x""yes; then : +if test "x$ac_cv_lib_aspell_new_aspell_config" = xyes; then : LDFLAGS=$save_old_LDFLAGS ext_shared=$save_ext_shared @@ -79744,6 +79983,7 @@ if test "$ext_shared" = "yes"; then PSPELL_SHARED_LIBADD="-L$ai_p $PSPELL_SHARED_LIBADD" + test "x$PHP_RPATH" != "xno" && \ test -n "$ld_runpath_switch" && PSPELL_SHARED_LIBADD="$ld_runpath_switch$ai_p $PSPELL_SHARED_LIBADD" else @@ -79755,6 +79995,7 @@ if test -n "$unique" && test "`eval $cmd`" = "" ; then eval "LIBPATH$unique=set" + test "x$PHP_RPATH" != "xno" && test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" LDFLAGS="$LDFLAGS -L$ai_p" PHP_RPATHS="$PHP_RPATHS $ai_p" @@ -79794,6 +80035,7 @@ if test -n "$unique" && test "`eval $cmd`" = "" ; then eval "LIBPATH$unique=set" + test "x$PHP_RPATH" != "xno" && test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" LDFLAGS="$LDFLAGS -L$ai_p" PHP_RPATHS="$PHP_RPATHS $ai_p" @@ -79972,7 +80214,7 @@ done if test -z "$READLINE_DIR"; then - as_fn_error "Please reinstall readline - I cannot find readline.h" "$LINENO" 5 + as_fn_error $? "Please reinstall readline - I cannot find readline.h" "$LINENO" 5 fi @@ -80010,7 +80252,7 @@ PHP_READLINE_LIBS="" { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -lncurses" >&5 $as_echo_n "checking for tgetent in -lncurses... " >&6; } -if test "${ac_cv_lib_ncurses_tgetent+set}" = set; then : +if ${ac_cv_lib_ncurses_tgetent+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS @@ -80044,7 +80286,7 @@ fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ncurses_tgetent" >&5 $as_echo "$ac_cv_lib_ncurses_tgetent" >&6; } -if test "x$ac_cv_lib_ncurses_tgetent" = x""yes; then : +if test "x$ac_cv_lib_ncurses_tgetent" = xyes; then : @@ -80075,7 +80317,7 @@ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -ltermcap" >&5 $as_echo_n "checking for tgetent in -ltermcap... " >&6; } -if test "${ac_cv_lib_termcap_tgetent+set}" = set; then : +if ${ac_cv_lib_termcap_tgetent+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS @@ -80109,7 +80351,7 @@ fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_termcap_tgetent" >&5 $as_echo "$ac_cv_lib_termcap_tgetent" >&6; } -if test "x$ac_cv_lib_termcap_tgetent" = x""yes; then : +if test "x$ac_cv_lib_termcap_tgetent" = xyes; then : @@ -80213,6 +80455,7 @@ if test "$ext_shared" = "yes"; then LDFLAGS="-L$ai_p $LDFLAGS" + test "x$PHP_RPATH" != "xno" && \ test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS" else @@ -80224,6 +80467,7 @@ if test -n "$unique" && test "`eval $cmd`" = "" ; then eval "LIBPATH$unique=set" + test "x$PHP_RPATH" != "xno" && test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" LDFLAGS="$LDFLAGS -L$ai_p" PHP_RPATHS="$PHP_RPATHS $ai_p" @@ -80241,7 +80485,7 @@ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline in -lreadline" >&5 $as_echo_n "checking for readline in -lreadline... " >&6; } -if test "${ac_cv_lib_readline_readline+set}" = set; then : +if ${ac_cv_lib_readline_readline+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS @@ -80275,7 +80519,7 @@ fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_readline" >&5 $as_echo "$ac_cv_lib_readline_readline" >&6; } -if test "x$ac_cv_lib_readline_readline" = x""yes; then : +if test "x$ac_cv_lib_readline_readline" = xyes; then : LDFLAGS=$save_old_LDFLAGS ext_shared=$save_ext_shared @@ -80301,6 +80545,7 @@ if test "$ext_shared" = "yes"; then READLINE_SHARED_LIBADD="-L$ai_p $READLINE_SHARED_LIBADD" + test "x$PHP_RPATH" != "xno" && \ test -n "$ld_runpath_switch" && READLINE_SHARED_LIBADD="$ld_runpath_switch$ai_p $READLINE_SHARED_LIBADD" else @@ -80312,6 +80557,7 @@ if test -n "$unique" && test "`eval $cmd`" = "" ; then eval "LIBPATH$unique=set" + test "x$PHP_RPATH" != "xno" && test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" LDFLAGS="$LDFLAGS -L$ai_p" PHP_RPATHS="$PHP_RPATHS $ai_p" @@ -80351,6 +80597,7 @@ if test -n "$unique" && test "`eval $cmd`" = "" ; then eval "LIBPATH$unique=set" + test "x$PHP_RPATH" != "xno" && test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" LDFLAGS="$LDFLAGS -L$ai_p" PHP_RPATHS="$PHP_RPATHS $ai_p" @@ -80385,7 +80632,7 @@ ext_shared=$save_ext_shared unset ac_cv_lib_readline_readline - as_fn_error "readline library not found" "$LINENO" 5 + as_fn_error $? "readline library not found" "$LINENO" 5 fi @@ -80462,6 +80709,7 @@ if test "$ext_shared" = "yes"; then LDFLAGS="-L$ai_p $LDFLAGS" + test "x$PHP_RPATH" != "xno" && \ test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS" else @@ -80473,6 +80721,7 @@ if test -n "$unique" && test "`eval $cmd`" = "" ; then eval "LIBPATH$unique=set" + test "x$PHP_RPATH" != "xno" && test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" LDFLAGS="$LDFLAGS -L$ai_p" PHP_RPATHS="$PHP_RPATHS $ai_p" @@ -80490,7 +80739,7 @@ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rl_pending_input in -lreadline" >&5 $as_echo_n "checking for rl_pending_input in -lreadline... " >&6; } -if test "${ac_cv_lib_readline_rl_pending_input+set}" = set; then : +if ${ac_cv_lib_readline_rl_pending_input+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS @@ -80524,7 +80773,7 @@ fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_rl_pending_input" >&5 $as_echo "$ac_cv_lib_readline_rl_pending_input" >&6; } -if test "x$ac_cv_lib_readline_rl_pending_input" = x""yes; then : +if test "x$ac_cv_lib_readline_rl_pending_input" = xyes; then : LDFLAGS=$save_old_LDFLAGS ext_shared=$save_ext_shared @@ -80536,7 +80785,7 @@ ext_shared=$save_ext_shared unset ac_cv_lib_readline_rl_pending_input - as_fn_error "invalid readline installation detected. Try --with-libedit instead." "$LINENO" 5 + as_fn_error $? "invalid readline installation detected. Try --with-libedit instead." "$LINENO" 5 fi @@ -80613,6 +80862,7 @@ if test "$ext_shared" = "yes"; then LDFLAGS="-L$ai_p $LDFLAGS" + test "x$PHP_RPATH" != "xno" && \ test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS" else @@ -80624,6 +80874,7 @@ if test -n "$unique" && test "`eval $cmd`" = "" ; then eval "LIBPATH$unique=set" + test "x$PHP_RPATH" != "xno" && test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" LDFLAGS="$LDFLAGS -L$ai_p" PHP_RPATHS="$PHP_RPATHS $ai_p" @@ -80641,7 +80892,7 @@ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rl_callback_read_char in -lreadline" >&5 $as_echo_n "checking for rl_callback_read_char in -lreadline... " >&6; } -if test "${ac_cv_lib_readline_rl_callback_read_char+set}" = set; then : +if ${ac_cv_lib_readline_rl_callback_read_char+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS @@ -80675,7 +80926,7 @@ fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_rl_callback_read_char" >&5 $as_echo "$ac_cv_lib_readline_rl_callback_read_char" >&6; } -if test "x$ac_cv_lib_readline_rl_callback_read_char" = x""yes; then : +if test "x$ac_cv_lib_readline_rl_callback_read_char" = xyes; then : LDFLAGS=$save_old_LDFLAGS ext_shared=$save_ext_shared @@ -80766,6 +81017,7 @@ if test "$ext_shared" = "yes"; then LDFLAGS="-L$ai_p $LDFLAGS" + test "x$PHP_RPATH" != "xno" && \ test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS" else @@ -80777,6 +81029,7 @@ if test -n "$unique" && test "`eval $cmd`" = "" ; then eval "LIBPATH$unique=set" + test "x$PHP_RPATH" != "xno" && test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" LDFLAGS="$LDFLAGS -L$ai_p" PHP_RPATHS="$PHP_RPATHS $ai_p" @@ -80794,7 +81047,7 @@ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rl_on_new_line in -ledit" >&5 $as_echo_n "checking for rl_on_new_line in -ledit... " >&6; } -if test "${ac_cv_lib_edit_rl_on_new_line+set}" = set; then : +if ${ac_cv_lib_edit_rl_on_new_line+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS @@ -80828,7 +81081,7 @@ fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_edit_rl_on_new_line" >&5 $as_echo "$ac_cv_lib_edit_rl_on_new_line" >&6; } -if test "x$ac_cv_lib_edit_rl_on_new_line" = x""yes; then : +if test "x$ac_cv_lib_edit_rl_on_new_line" = xyes; then : LDFLAGS=$save_old_LDFLAGS ext_shared=$save_ext_shared @@ -80859,7 +81112,7 @@ done if test -z "$LIBEDIT_DIR"; then - as_fn_error "Please reinstall libedit - I cannot find readline.h" "$LINENO" 5 + as_fn_error $? "Please reinstall libedit - I cannot find readline.h" "$LINENO" 5 fi @@ -80896,7 +81149,7 @@ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -lncurses" >&5 $as_echo_n "checking for tgetent in -lncurses... " >&6; } -if test "${ac_cv_lib_ncurses_tgetent+set}" = set; then : +if ${ac_cv_lib_ncurses_tgetent+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS @@ -80930,7 +81183,7 @@ fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ncurses_tgetent" >&5 $as_echo "$ac_cv_lib_ncurses_tgetent" >&6; } -if test "x$ac_cv_lib_ncurses_tgetent" = x""yes; then : +if test "x$ac_cv_lib_ncurses_tgetent" = xyes; then : @@ -80960,7 +81213,7 @@ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -ltermcap" >&5 $as_echo_n "checking for tgetent in -ltermcap... " >&6; } -if test "${ac_cv_lib_termcap_tgetent+set}" = set; then : +if ${ac_cv_lib_termcap_tgetent+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS @@ -80994,7 +81247,7 @@ fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_termcap_tgetent" >&5 $as_echo "$ac_cv_lib_termcap_tgetent" >&6; } -if test "x$ac_cv_lib_termcap_tgetent" = x""yes; then : +if test "x$ac_cv_lib_termcap_tgetent" = xyes; then : @@ -81097,6 +81350,7 @@ if test "$ext_shared" = "yes"; then LDFLAGS="-L$ai_p $LDFLAGS" + test "x$PHP_RPATH" != "xno" && \ test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS" else @@ -81108,6 +81362,7 @@ if test -n "$unique" && test "`eval $cmd`" = "" ; then eval "LIBPATH$unique=set" + test "x$PHP_RPATH" != "xno" && test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" LDFLAGS="$LDFLAGS -L$ai_p" PHP_RPATHS="$PHP_RPATHS $ai_p" @@ -81125,7 +81380,7 @@ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline in -ledit" >&5 $as_echo_n "checking for readline in -ledit... " >&6; } -if test "${ac_cv_lib_edit_readline+set}" = set; then : +if ${ac_cv_lib_edit_readline+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS @@ -81159,7 +81414,7 @@ fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_edit_readline" >&5 $as_echo "$ac_cv_lib_edit_readline" >&6; } -if test "x$ac_cv_lib_edit_readline" = x""yes; then : +if test "x$ac_cv_lib_edit_readline" = xyes; then : LDFLAGS=$save_old_LDFLAGS ext_shared=$save_ext_shared @@ -81185,6 +81440,7 @@ if test "$ext_shared" = "yes"; then READLINE_SHARED_LIBADD="-L$ai_p $READLINE_SHARED_LIBADD" + test "x$PHP_RPATH" != "xno" && \ test -n "$ld_runpath_switch" && READLINE_SHARED_LIBADD="$ld_runpath_switch$ai_p $READLINE_SHARED_LIBADD" else @@ -81196,6 +81452,7 @@ if test -n "$unique" && test "`eval $cmd`" = "" ; then eval "LIBPATH$unique=set" + test "x$PHP_RPATH" != "xno" && test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" LDFLAGS="$LDFLAGS -L$ai_p" PHP_RPATHS="$PHP_RPATHS $ai_p" @@ -81235,6 +81492,7 @@ if test -n "$unique" && test "`eval $cmd`" = "" ; then eval "LIBPATH$unique=set" + test "x$PHP_RPATH" != "xno" && test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" LDFLAGS="$LDFLAGS -L$ai_p" PHP_RPATHS="$PHP_RPATHS $ai_p" @@ -81269,7 +81527,7 @@ ext_shared=$save_ext_shared unset ac_cv_lib_edit_readline - as_fn_error "edit library required by readline not found" "$LINENO" 5 + as_fn_error $? "edit library required by readline not found" "$LINENO" 5 fi @@ -81346,6 +81604,7 @@ if test "$ext_shared" = "yes"; then LDFLAGS="-L$ai_p $LDFLAGS" + test "x$PHP_RPATH" != "xno" && \ test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS" else @@ -81357,6 +81616,7 @@ if test -n "$unique" && test "`eval $cmd`" = "" ; then eval "LIBPATH$unique=set" + test "x$PHP_RPATH" != "xno" && test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" LDFLAGS="$LDFLAGS -L$ai_p" PHP_RPATHS="$PHP_RPATHS $ai_p" @@ -81374,7 +81634,7 @@ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rl_callback_read_char in -ledit" >&5 $as_echo_n "checking for rl_callback_read_char in -ledit... " >&6; } -if test "${ac_cv_lib_edit_rl_callback_read_char+set}" = set; then : +if ${ac_cv_lib_edit_rl_callback_read_char+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS @@ -81408,7 +81668,7 @@ fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_edit_rl_callback_read_char" >&5 $as_echo "$ac_cv_lib_edit_rl_callback_read_char" >&6; } -if test "x$ac_cv_lib_edit_rl_callback_read_char" = x""yes; then : +if test "x$ac_cv_lib_edit_rl_callback_read_char" = xyes; then : LDFLAGS=$save_old_LDFLAGS ext_shared=$save_ext_shared @@ -81499,6 +81759,7 @@ if test "$ext_shared" = "yes"; then LDFLAGS="-L$ai_p $LDFLAGS" + test "x$PHP_RPATH" != "xno" && \ test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS" else @@ -81510,6 +81771,7 @@ if test -n "$unique" && test "`eval $cmd`" = "" ; then eval "LIBPATH$unique=set" + test "x$PHP_RPATH" != "xno" && test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" LDFLAGS="$LDFLAGS -L$ai_p" PHP_RPATHS="$PHP_RPATHS $ai_p" @@ -81527,7 +81789,7 @@ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rl_on_new_line in -ledit" >&5 $as_echo_n "checking for rl_on_new_line in -ledit... " >&6; } -if test "${ac_cv_lib_edit_rl_on_new_line+set}" = set; then : +if ${ac_cv_lib_edit_rl_on_new_line+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS @@ -81561,7 +81823,7 @@ fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_edit_rl_on_new_line" >&5 $as_echo "$ac_cv_lib_edit_rl_on_new_line" >&6; } -if test "x$ac_cv_lib_edit_rl_on_new_line" = x""yes; then : +if test "x$ac_cv_lib_edit_rl_on_new_line" = xyes; then : LDFLAGS=$save_old_LDFLAGS ext_shared=$save_ext_shared @@ -81590,7 +81852,7 @@ for ac_func in rl_completion_matches do : ac_fn_c_check_func "$LINENO" "rl_completion_matches" "ac_cv_func_rl_completion_matches" -if test "x$ac_cv_func_rl_completion_matches" = x""yes; then : +if test "x$ac_cv_func_rl_completion_matches" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_RL_COMPLETION_MATCHES 1 _ACEOF @@ -81965,7 +82227,7 @@ done if test -z "$RECODE_DIR"; then - as_fn_error "Can not find recode.h anywhere under $RECODE_LIST." "$LINENO" 5 + as_fn_error $? "Can not find recode.h anywhere under $RECODE_LIST." "$LINENO" 5 fi @@ -82039,6 +82301,7 @@ if test "$ext_shared" = "yes"; then LDFLAGS="-L$ai_p $LDFLAGS" + test "x$PHP_RPATH" != "xno" && \ test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS" else @@ -82050,6 +82313,7 @@ if test -n "$unique" && test "`eval $cmd`" = "" ; then eval "LIBPATH$unique=set" + test "x$PHP_RPATH" != "xno" && test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" LDFLAGS="$LDFLAGS -L$ai_p" PHP_RPATHS="$PHP_RPATHS $ai_p" @@ -82067,7 +82331,7 @@ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recode_format_table in -lrecode" >&5 $as_echo_n "checking for recode_format_table in -lrecode... " >&6; } -if test "${ac_cv_lib_recode_recode_format_table+set}" = set; then : +if ${ac_cv_lib_recode_recode_format_table+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS @@ -82101,7 +82365,7 @@ fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_recode_recode_format_table" >&5 $as_echo "$ac_cv_lib_recode_recode_format_table" >&6; } -if test "x$ac_cv_lib_recode_recode_format_table" = x""yes; then : +if test "x$ac_cv_lib_recode_recode_format_table" = xyes; then : LDFLAGS=$save_old_LDFLAGS ext_shared=$save_ext_shared @@ -82127,6 +82391,7 @@ if test "$ext_shared" = "yes"; then RECODE_SHARED_LIBADD="-L$ai_p $RECODE_SHARED_LIBADD" + test "x$PHP_RPATH" != "xno" && \ test -n "$ld_runpath_switch" && RECODE_SHARED_LIBADD="$ld_runpath_switch$ai_p $RECODE_SHARED_LIBADD" else @@ -82138,6 +82403,7 @@ if test -n "$unique" && test "`eval $cmd`" = "" ; then eval "LIBPATH$unique=set" + test "x$PHP_RPATH" != "xno" && test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" LDFLAGS="$LDFLAGS -L$ai_p" PHP_RPATHS="$PHP_RPATHS $ai_p" @@ -82177,6 +82443,7 @@ if test -n "$unique" && test "`eval $cmd`" = "" ; then eval "LIBPATH$unique=set" + test "x$PHP_RPATH" != "xno" && test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" LDFLAGS="$LDFLAGS -L$ai_p" PHP_RPATHS="$PHP_RPATHS $ai_p" @@ -82253,6 +82520,7 @@ if test "$ext_shared" = "yes"; then RECODE_SHARED_LIBADD="-L$ai_p $RECODE_SHARED_LIBADD" + test "x$PHP_RPATH" != "xno" && \ test -n "$ld_runpath_switch" && RECODE_SHARED_LIBADD="$ld_runpath_switch$ai_p $RECODE_SHARED_LIBADD" else @@ -82264,6 +82532,7 @@ if test -n "$unique" && test "`eval $cmd`" = "" ; then eval "LIBPATH$unique=set" + test "x$PHP_RPATH" != "xno" && test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" LDFLAGS="$LDFLAGS -L$ai_p" PHP_RPATHS="$PHP_RPATHS $ai_p" @@ -82303,6 +82572,7 @@ if test -n "$unique" && test "`eval $cmd`" = "" ; then eval "LIBPATH$unique=set" + test "x$PHP_RPATH" != "xno" && test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" LDFLAGS="$LDFLAGS -L$ai_p" PHP_RPATHS="$PHP_RPATHS $ai_p" @@ -82335,7 +82605,7 @@ else - as_fn_error "I cannot link librecode (-L$RECODE_DIR/$RECODE_LIB -lrecode). Is it installed?" "$LINENO" 5 + as_fn_error $? "I cannot link librecode (-L$RECODE_DIR/$RECODE_LIB -lrecode). Is it installed?" "$LINENO" 5 fi rm -f core conftest.err conftest.$ac_objext \ @@ -82387,7 +82657,7 @@ for ac_header in stdbool.h do : ac_fn_c_check_header_mongrel "$LINENO" "stdbool.h" "ac_cv_header_stdbool_h" "$ac_includes_default" -if test "x$ac_cv_header_stdbool_h" = x""yes; then : +if test "x$ac_cv_header_stdbool_h" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_STDBOOL_H 1 _ACEOF @@ -83062,7 +83332,7 @@ { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pwrite works" >&5 $as_echo_n "checking whether pwrite works... " >&6; } -if test "${ac_cv_pwrite+set}" = set; then : +if ${ac_cv_pwrite+:} false; then : $as_echo_n "(cached) " >&6 else @@ -83095,7 +83365,7 @@ _ACEOF if ac_fn_c_try_run "$LINENO"; then : - ac_cv_pwrite=yes + ac_cv_pwrite=no else @@ -83137,7 +83407,7 @@ _ACEOF if ac_fn_c_try_run "$LINENO"; then : - ac_cv_pwrite=yes + ac_cv_pwrite=no else @@ -83172,7 +83442,7 @@ { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pread works" >&5 $as_echo_n "checking whether pread works... " >&6; } -if test "${ac_cv_pread+set}" = set; then : +if ${ac_cv_pread+:} false; then : $as_echo_n "(cached) " >&6 else @@ -83205,7 +83475,7 @@ _ACEOF if ac_fn_c_try_run "$LINENO"; then : - ac_cv_pread=yes + ac_cv_pread=no else @@ -83248,7 +83518,7 @@ _ACEOF if ac_fn_c_try_run "$LINENO"; then : - ac_cv_pread=yes + ac_cv_pread=no else @@ -83579,7 +83849,7 @@ is_it_shared=$PHP_HASH_SHARED is_it_enabled=$PHP_HASH if test "$am_i_shared" = "no" && test "$is_it_shared" = "yes" ; then - as_fn_error " + as_fn_error $? " You've configured extension session to build statically, but it depends on extension hash, which you've configured to build shared. You either need to build session shared or build hash statically for the @@ -83587,7 +83857,7 @@ " "$LINENO" 5 fi if test "x$is_it_enabled" = "xno" && test "xtrue" != "xtrue"; then - as_fn_error " + as_fn_error $? " You've configured extension session, which depends on extension hash, but you've either not enabled hash, or have disabled it. " "$LINENO" 5 @@ -83598,7 +83868,7 @@ is_it_shared=$PHP_SPL_SHARED is_it_enabled=$PHP_SPL if test "$am_i_shared" = "no" && test "$is_it_shared" = "yes" ; then - as_fn_error " + as_fn_error $? " You've configured extension session to build statically, but it depends on extension spl, which you've configured to build shared. You either need to build session shared or build spl statically for the @@ -83606,7 +83876,7 @@ " "$LINENO" 5 fi if test "x$is_it_enabled" = "xno" && test "x" != "xtrue"; then - as_fn_error " + as_fn_error $? " You've configured extension session, which depends on extension spl, but you've either not enabled spl, or have disabled it. " "$LINENO" 5 @@ -83646,7 +83916,7 @@ done if test -z "$MM_DIR" ; then - as_fn_error "cannot find mm library" "$LINENO" 5 + as_fn_error $? "cannot find mm library" "$LINENO" 5 fi @@ -83670,6 +83940,7 @@ if test "$ext_shared" = "yes"; then SESSION_SHARED_LIBADD="-L$ai_p $SESSION_SHARED_LIBADD" + test "x$PHP_RPATH" != "xno" && \ test -n "$ld_runpath_switch" && SESSION_SHARED_LIBADD="$ld_runpath_switch$ai_p $SESSION_SHARED_LIBADD" else @@ -83681,6 +83952,7 @@ if test -n "$unique" && test "`eval $cmd`" = "" ; then eval "LIBPATH$unique=set" + test "x$PHP_RPATH" != "xno" && test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" LDFLAGS="$LDFLAGS -L$ai_p" PHP_RPATHS="$PHP_RPATHS $ai_p" @@ -83720,6 +83992,7 @@ if test -n "$unique" && test "`eval $cmd`" = "" ; then eval "LIBPATH$unique=set" + test "x$PHP_RPATH" != "xno" && test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" LDFLAGS="$LDFLAGS -L$ai_p" PHP_RPATHS="$PHP_RPATHS $ai_p" @@ -84217,13 +84490,13 @@ if test "$PHP_SIMPLEXML" != "no"; then if test "$PHP_LIBXML" = "no"; then - as_fn_error "SimpleXML extension requires LIBXML extension, add --enable-libxml" "$LINENO" 5 + as_fn_error $? "SimpleXML extension requires LIBXML extension, add --enable-libxml" "$LINENO" 5 fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xml2-config path" >&5 $as_echo_n "checking for xml2-config path... " >&6; } -if test "${ac_cv_php_xml2_config_path+set}" = set; then : +if ${ac_cv_php_xml2_config_path+:} false; then : $as_echo_n "(cached) " >&6 else @@ -84312,6 +84585,7 @@ if test "$ext_shared" = "yes"; then SIMPLEXML_SHARED_LIBADD="-L$ai_p $SIMPLEXML_SHARED_LIBADD" + test "x$PHP_RPATH" != "xno" && \ test -n "$ld_runpath_switch" && SIMPLEXML_SHARED_LIBADD="$ld_runpath_switch$ai_p $SIMPLEXML_SHARED_LIBADD" else @@ -84323,6 +84597,7 @@ if test -n "$unique" && test "`eval $cmd`" = "" ; then eval "LIBPATH$unique=set" + test "x$PHP_RPATH" != "xno" && test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" LDFLAGS="$LDFLAGS -L$ai_p" PHP_RPATHS="$PHP_RPATHS $ai_p" @@ -84381,7 +84656,7 @@ { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libxml build works" >&5 $as_echo_n "checking whether libxml build works... " >&6; } -if test "${php_cv_libxml_build_works+set}" = set; then : +if ${php_cv_libxml_build_works+:} false; then : $as_echo_n "(cached) " >&6 else @@ -84419,7 +84694,7 @@ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } - as_fn_error "build test failed. Please check the config.log for details." "$LINENO" 5 + as_fn_error $? "build test failed. Please check the config.log for details." "$LINENO" 5 fi @@ -84739,10 +85014,10 @@ else - as_fn_error "libxml2 version 2.6.11 or greater required." "$LINENO" 5 + as_fn_error $? "libxml2 version 2.6.11 or greater required." "$LINENO" 5 fi else - as_fn_error "xml2-config not found. Please check your libxml2 installation." "$LINENO" 5 + as_fn_error $? "xml2-config not found. Please check your libxml2 installation." "$LINENO" 5 fi @@ -84751,7 +85026,7 @@ is_it_shared=$PHP_LIBXML_SHARED is_it_enabled=$PHP_LIBXML if test "$am_i_shared" = "no" && test "$is_it_shared" = "yes" ; then - as_fn_error " + as_fn_error $? " You've configured extension simplexml to build statically, but it depends on extension libxml, which you've configured to build shared. You either need to build simplexml shared or build libxml statically for the @@ -84759,7 +85034,7 @@ " "$LINENO" 5 fi if test "x$is_it_enabled" = "xno" && test "x" != "xtrue"; then - as_fn_error " + as_fn_error $? " You've configured extension simplexml, which depends on extension libxml, but you've either not enabled libxml, or have disabled it. " "$LINENO" 5 @@ -84770,7 +85045,7 @@ is_it_shared=$PHP_SPL_SHARED is_it_enabled=$PHP_SPL if test "$am_i_shared" = "no" && test "$is_it_shared" = "yes" ; then - as_fn_error " + as_fn_error $? " You've configured extension simplexml to build statically, but it depends on extension spl, which you've configured to build shared. You either need to build simplexml shared or build spl statically for the @@ -84778,7 +85053,7 @@ " "$LINENO" 5 fi if test "x$is_it_enabled" = "xno" && test "xtrue" != "xtrue"; then - as_fn_error " + as_fn_error $? " You've configured extension simplexml, which depends on extension spl, but you've either not enabled spl, or have disabled it. " "$LINENO" 5 @@ -84863,7 +85138,7 @@ set dummy net-snmp-config; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } -if test "${ac_cv_path_SNMP_CONFIG+set}" = set; then : +if ${ac_cv_path_SNMP_CONFIG+:} false; then : $as_echo_n "(cached) " >&6 else case $SNMP_CONFIG in @@ -84878,7 +85153,7 @@ IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_path_SNMP_CONFIG="$as_dir/$ac_word$ac_exec_ext" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 @@ -85010,6 +85285,7 @@ if test "$ext_shared" = "yes"; then SNMP_SHARED_LIBADD="-L$ai_p $SNMP_SHARED_LIBADD" + test "x$PHP_RPATH" != "xno" && \ test -n "$ld_runpath_switch" && SNMP_SHARED_LIBADD="$ld_runpath_switch$ai_p $SNMP_SHARED_LIBADD" else @@ -85021,6 +85297,7 @@ if test -n "$unique" && test "`eval $cmd`" = "" ; then eval "LIBPATH$unique=set" + test "x$PHP_RPATH" != "xno" && test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" LDFLAGS="$LDFLAGS -L$ai_p" PHP_RPATHS="$PHP_RPATHS $ai_p" @@ -85038,13 +85315,13 @@ SNMP_LIBNAME=netsnmp else - as_fn_error "Could not find the required paths. Please check your net-snmp installation." "$LINENO" 5 + as_fn_error $? "Could not find the required paths. Please check your net-snmp installation." "$LINENO" 5 fi else - as_fn_error "Net-SNMP version 5.3 or greater reqired (detected $snmp_full_version)." "$LINENO" 5 + as_fn_error $? "Net-SNMP version 5.3 or greater reqired (detected $snmp_full_version)." "$LINENO" 5 fi else - as_fn_error "Could not find net-snmp-config binary. Please check your net-snmp installation." "$LINENO" 5 + as_fn_error $? "Could not find net-snmp-config binary. Please check your net-snmp installation." "$LINENO" 5 fi @@ -85118,6 +85395,7 @@ if test "$ext_shared" = "yes"; then LDFLAGS="-L$ai_p $LDFLAGS" + test "x$PHP_RPATH" != "xno" && \ test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS" else @@ -85129,6 +85407,7 @@ if test -n "$unique" && test "`eval $cmd`" = "" ; then eval "LIBPATH$unique=set" + test "x$PHP_RPATH" != "xno" && test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" LDFLAGS="$LDFLAGS -L$ai_p" PHP_RPATHS="$PHP_RPATHS $ai_p" @@ -85147,7 +85426,7 @@ as_ac_Lib=`$as_echo "ac_cv_lib_$SNMP_LIBNAME''_init_snmp" | $as_tr_sh` { $as_echo "$as_me:${as_lineno-$LINENO}: checking for init_snmp in -l$SNMP_LIBNAME" >&5 $as_echo_n "checking for init_snmp in -l$SNMP_LIBNAME... " >&6; } -if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then : +if eval \${$as_ac_Lib+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS @@ -85182,8 +85461,7 @@ eval ac_res=\$$as_ac_Lib { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 $as_echo "$ac_res" >&6; } -eval as_val=\$$as_ac_Lib - if test "x$as_val" = x""yes; then : +if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : LDFLAGS=$save_old_LDFLAGS ext_shared=$save_ext_shared @@ -85199,7 +85477,7 @@ ext_shared=$save_ext_shared unset ac_cv_lib_$SNMP_LIBNAME_init_snmp - as_fn_error "SNMP sanity check failed. Please check config.log for more information." "$LINENO" 5 + as_fn_error $? "SNMP sanity check failed. Please check config.log for more information." "$LINENO" 5 fi @@ -85276,6 +85554,7 @@ if test "$ext_shared" = "yes"; then LDFLAGS="-L$ai_p $LDFLAGS" + test "x$PHP_RPATH" != "xno" && \ test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS" else @@ -85287,6 +85566,7 @@ if test -n "$unique" && test "`eval $cmd`" = "" ; then eval "LIBPATH$unique=set" + test "x$PHP_RPATH" != "xno" && test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" LDFLAGS="$LDFLAGS -L$ai_p" PHP_RPATHS="$PHP_RPATHS $ai_p" @@ -85305,7 +85585,7 @@ as_ac_Lib=`$as_echo "ac_cv_lib_$SNMP_LIBNAME''_shutdown_snmp_logging" | $as_tr_sh` { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shutdown_snmp_logging in -l$SNMP_LIBNAME" >&5 $as_echo_n "checking for shutdown_snmp_logging in -l$SNMP_LIBNAME... " >&6; } -if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then : +if eval \${$as_ac_Lib+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS @@ -85340,8 +85620,7 @@ eval ac_res=\$$as_ac_Lib { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 $as_echo "$ac_res" >&6; } -eval as_val=\$$as_ac_Lib - if test "x$as_val" = x""yes; then : +if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : LDFLAGS=$save_old_LDFLAGS ext_shared=$save_ext_shared @@ -85363,7 +85642,7 @@ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for buggy snmp_snprint_value" >&5 $as_echo_n "checking for buggy snmp_snprint_value... " >&6; } -if test "${ac_cv_buggy_snprint_value+set}" = set; then : +if ${ac_cv_buggy_snprint_value+:} false; then : $as_echo_n "(cached) " >&6 else @@ -85818,13 +86097,13 @@ if test "$PHP_SOAP" != "no"; then if test "$PHP_LIBXML" = "no"; then - as_fn_error "SOAP extension requires LIBXML extension, add --enable-libxml" "$LINENO" 5 + as_fn_error $? "SOAP extension requires LIBXML extension, add --enable-libxml" "$LINENO" 5 fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xml2-config path" >&5 $as_echo_n "checking for xml2-config path... " >&6; } -if test "${ac_cv_php_xml2_config_path+set}" = set; then : +if ${ac_cv_php_xml2_config_path+:} false; then : $as_echo_n "(cached) " >&6 else @@ -85913,6 +86192,7 @@ if test "$ext_shared" = "yes"; then SOAP_SHARED_LIBADD="-L$ai_p $SOAP_SHARED_LIBADD" + test "x$PHP_RPATH" != "xno" && \ test -n "$ld_runpath_switch" && SOAP_SHARED_LIBADD="$ld_runpath_switch$ai_p $SOAP_SHARED_LIBADD" else @@ -85924,6 +86204,7 @@ if test -n "$unique" && test "`eval $cmd`" = "" ; then eval "LIBPATH$unique=set" + test "x$PHP_RPATH" != "xno" && test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" LDFLAGS="$LDFLAGS -L$ai_p" PHP_RPATHS="$PHP_RPATHS $ai_p" @@ -85982,7 +86263,7 @@ { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libxml build works" >&5 $as_echo_n "checking whether libxml build works... " >&6; } -if test "${php_cv_libxml_build_works+set}" = set; then : +if ${php_cv_libxml_build_works+:} false; then : $as_echo_n "(cached) " >&6 else @@ -86020,7 +86301,7 @@ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } - as_fn_error "build test failed. Please check the config.log for details." "$LINENO" 5 + as_fn_error $? "build test failed. Please check the config.log for details." "$LINENO" 5 fi @@ -86340,10 +86621,10 @@ else - as_fn_error "libxml2 version 2.6.11 or greater required." "$LINENO" 5 + as_fn_error $? "libxml2 version 2.6.11 or greater required." "$LINENO" 5 fi else - as_fn_error "xml2-config not found. Please check your libxml2 installation." "$LINENO" 5 + as_fn_error $? "xml2-config not found. Please check your libxml2 installation." "$LINENO" 5 fi @@ -86397,7 +86678,7 @@ if test "$PHP_SOCKETS" != "no"; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct cmsghdr" >&5 $as_echo_n "checking for struct cmsghdr... " >&6; } -if test "${ac_cv_cmsghdr+set}" = set; then : +if ${ac_cv_cmsghdr+:} false; then : $as_echo_n "(cached) " >&6 else @@ -86435,8 +86716,7 @@ do : as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" -eval as_val=\$$as_ac_var - if test "x$as_val" = x""yes; then : +if eval test \"x\$"$as_ac_var"\" = x"yes"; then : cat >>confdefs.h <<_ACEOF #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 _ACEOF @@ -86448,8 +86728,7 @@ do : as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" -eval as_val=\$$as_ac_Header - if test "x$as_val" = x""yes; then : +if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : cat >>confdefs.h <<_ACEOF #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 _ACEOF @@ -87165,7 +87444,7 @@ is_it_shared=$PHP_PCRE_SHARED is_it_enabled=$PHP_PCRE if test "$am_i_shared" = "no" && test "$is_it_shared" = "yes" ; then - as_fn_error " + as_fn_error $? " You've configured extension spl to build statically, but it depends on extension pcre, which you've configured to build shared. You either need to build spl shared or build pcre statically for the @@ -87173,7 +87452,7 @@ " "$LINENO" 5 fi if test "x$is_it_enabled" = "xno" && test "xtrue" != "xtrue"; then - as_fn_error " + as_fn_error $? " You've configured extension spl, which depends on extension pcre, but you've either not enabled pcre, or have disabled it. " "$LINENO" 5 @@ -87183,7 +87462,7 @@ { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether flush should be called explicitly after a buffered io" >&5 $as_echo_n "checking whether flush should be called explicitly after a buffered io... " >&6; } -if test "${ac_cv_flush_io+set}" = set; then : +if ${ac_cv_flush_io+:} false; then : $as_echo_n "(cached) " >&6 else @@ -87255,7 +87534,7 @@ if test "$ac_cv_func_crypt" = "no"; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypt in -lcrypt" >&5 $as_echo_n "checking for crypt in -lcrypt... " >&6; } -if test "${ac_cv_lib_crypt_crypt+set}" = set; then : +if ${ac_cv_lib_crypt_crypt+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS @@ -87289,7 +87568,7 @@ fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypt_crypt" >&5 $as_echo "$ac_cv_lib_crypt_crypt" >&6; } -if test "x$ac_cv_lib_crypt_crypt" = x""yes; then : +if test "x$ac_cv_lib_crypt_crypt" = xyes; then : LIBS="-lcrypt $LIBS -lcrypt" @@ -87300,86 +87579,207 @@ fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for standard DES crypt" >&5 -$as_echo_n "checking for standard DES crypt... " >&6; } -if test "${ac_cv_crypt_des+set}" = set; then : - $as_echo_n "(cached) " >&6 +for ac_func in crypt_r +do : + ac_fn_c_check_func "$LINENO" "crypt_r" "ac_cv_func_crypt_r" +if test "x$ac_cv_func_crypt_r" = xyes; then : + cat >>confdefs.h <<_ACEOF +#define HAVE_CRYPT_R 1 +_ACEOF + php_crypt_r="1" else + php_crypt_r="0" +fi +done - if test "$cross_compiling" = yes; then : - - ac_cv_crypt_des=yes +if test "x$php_crypt_r" = "x1"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking which data struct is used by crypt_r" >&5 +$as_echo_n "checking which data struct is used by crypt_r... " >&6; } +if ${php_cv_crypt_r_style+:} false; then : + $as_echo_n "(cached) " >&6 else - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -#if HAVE_UNISTD_H -#include -#endif + php_cv_crypt_r_style=none + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ -#if HAVE_CRYPT_H +#define _REENTRANT 1 #include -#endif -main() { -#if HAVE_CRYPT - exit (strcmp((char *)crypt("rasmuslerdorf","rl"),"rl.3StKT.4T8M")); -#else - exit(0); -#endif +int +main () +{ + +CRYPTD buffer; +crypt_r("passwd", "hash", &buffer); + + ; + return 0; } _ACEOF -if ac_fn_c_try_run "$LINENO"; then : +if ac_fn_c_try_compile "$LINENO"; then : + php_cv_crypt_r_style=cryptd +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext - ac_cv_crypt_des=yes + if test "$php_cv_crypt_r_style" = "none"; then + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ -else +#define _REENTRANT 1 +#include - ac_cv_crypt_des=no +int +main () +{ -fi -rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ - conftest.$ac_objext conftest.beam conftest.$ac_ext -fi +struct crypt_data buffer; +crypt_r("passwd", "hash", &buffer); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + php_cv_crypt_r_style=struct_crypt_data fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_crypt_des" >&5 -$as_echo "$ac_cv_crypt_des" >&6; } - -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for extended DES crypt" >&5 -$as_echo_n "checking for extended DES crypt... " >&6; } -if test "${ac_cv_crypt_ext_des+set}" = set; then : - $as_echo_n "(cached) " >&6 -else - - if test "$cross_compiling" = yes; then : - - ac_cv_crypt_ext_des=no +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + fi -else - cat confdefs.h - <<_ACEOF >conftest.$ac_ext + if test "$php_cv_crypt_r_style" = "none"; then + cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ -#if HAVE_UNISTD_H -#include -#endif - -#if HAVE_CRYPT_H +#define _REENTRANT 1 +#define _GNU_SOURCE #include -#endif -main() { -#if HAVE_CRYPT - exit (strcmp((char *)crypt("rasmuslerdorf","_J9..rasm"),"_J9..rasmBYk8r9AiWNc")); -#else - exit(0); -#endif -} -_ACEOF -if ac_fn_c_try_run "$LINENO"; then : +int +main () +{ - ac_cv_crypt_ext_des=yes +struct crypt_data buffer; +crypt_r("passwd", "hash", &buffer); + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + php_cv_crypt_r_style=struct_crypt_data_gnu_source +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + fi + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $php_cv_crypt_r_style" >&5 +$as_echo "$php_cv_crypt_r_style" >&6; } + + if test "$php_cv_crypt_r_style" = "cryptd"; then + +$as_echo "#define CRYPT_R_CRYPTD 1" >>confdefs.h + + fi + if test "$php_cv_crypt_r_style" = "struct_crypt_data" -o "$php_cv_crypt_r_style" = "struct_crypt_data_gnu_source"; then + +$as_echo "#define CRYPT_R_STRUCT_CRYPT_DATA 1" >>confdefs.h + + fi + if test "$php_cv_crypt_r_style" = "struct_crypt_data_gnu_source"; then + +$as_echo "#define CRYPT_R_GNU_SOURCE 1" >>confdefs.h + + fi + if test "$php_cv_crypt_r_style" = "none"; then + as_fn_error $? "Unable to detect data struct used by crypt_r" "$LINENO" 5 + fi + + +$as_echo "#define HAVE_CRYPT_R 1" >>confdefs.h + +fi + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for standard DES crypt" >&5 +$as_echo_n "checking for standard DES crypt... " >&6; } +if ${ac_cv_crypt_des+:} false; then : + $as_echo_n "(cached) " >&6 +else + + if test "$cross_compiling" = yes; then : + + ac_cv_crypt_des=yes + +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +#if HAVE_UNISTD_H +#include +#endif + +#if HAVE_CRYPT_H +#include +#endif + +main() { +#if HAVE_CRYPT + exit (strcmp((char *)crypt("rasmuslerdorf","rl"),"rl.3StKT.4T8M")); +#else + exit(0); +#endif +} +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + + ac_cv_crypt_des=yes + +else + + ac_cv_crypt_des=no + +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_crypt_des" >&5 +$as_echo "$ac_cv_crypt_des" >&6; } + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for extended DES crypt" >&5 +$as_echo_n "checking for extended DES crypt... " >&6; } +if ${ac_cv_crypt_ext_des+:} false; then : + $as_echo_n "(cached) " >&6 +else + + if test "$cross_compiling" = yes; then : + + ac_cv_crypt_ext_des=no + +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +#if HAVE_UNISTD_H +#include +#endif + +#if HAVE_CRYPT_H +#include +#endif + +main() { +#if HAVE_CRYPT + exit (strcmp((char *)crypt("rasmuslerdorf","_J9..rasm"),"_J9..rasmBYk8r9AiWNc")); +#else + exit(0); +#endif +} +_ACEOF +if ac_fn_c_try_run "$LINENO"; then : + + ac_cv_crypt_ext_des=yes else @@ -87396,7 +87796,7 @@ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MD5 crypt" >&5 $as_echo_n "checking for MD5 crypt... " >&6; } -if test "${ac_cv_crypt_md5+set}" = set; then : +if ${ac_cv_crypt_md5+:} false; then : $as_echo_n "(cached) " >&6 else @@ -87452,7 +87852,7 @@ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Blowfish crypt" >&5 $as_echo_n "checking for Blowfish crypt... " >&6; } -if test "${ac_cv_crypt_blowfish+set}" = set; then : +if ${ac_cv_crypt_blowfish+:} false; then : $as_echo_n "(cached) " >&6 else @@ -87505,7 +87905,7 @@ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SHA512 crypt" >&5 $as_echo_n "checking for SHA512 crypt... " >&6; } -if test "${ac_cv_crypt_SHA512+set}" = set; then : +if ${ac_cv_crypt_SHA512+:} false; then : $as_echo_n "(cached) " >&6 else @@ -87527,12 +87927,12 @@ main() { #if HAVE_CRYPT - char salt[30], answer[80]; + char salt[21], answer[21+86]; - salt[0]='$'; salt[1]='6'; salt[2]='$'; salt[3]='$'; salt[4]='b'; salt[5]='a'; salt[6]='r'; salt[7]='\0'; + strcpy(salt,"\$6\$rasmuslerdorf\$"); strcpy(answer, salt); - strcpy(&answer[29],"$6$$QMXjqd7rHQZPQ1yHsXkQqC1FBzDiVfTHXL.LaeDAeVV.IzMaV9VU4MQ8kPuZa2SOP1A0RPm772EaFYjpEJtdu."); - exit (strcmp((char *)crypt("foo",salt),answer)); + strcat(answer, "EeHCRjm0bljalWuALHSTs1NB9ipEiLEXLhYeXdOpx22gmlmVejnVXFhd84cEKbYxCo.XuUTrW.RLraeEnsvWs/"); + exit (strcmp((char *)crypt("rasmuslerdorf",salt),answer)); #else exit(0); #endif @@ -87557,7 +87957,7 @@ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SHA256 crypt" >&5 $as_echo_n "checking for SHA256 crypt... " >&6; } -if test "${ac_cv_crypt_SHA256+set}" = set; then : +if ${ac_cv_crypt_SHA256+:} false; then : $as_echo_n "(cached) " >&6 else @@ -87579,12 +87979,13 @@ main() { #if HAVE_CRYPT - char salt[30], answer[80]; - salt[0]='$'; salt[1]='5'; salt[2]='$'; salt[3]='$'; salt[4]='s'; salt[5]='a'; salt[6]='l'; salt[7]='t'; salt[8]='s'; salt[9]='t'; salt[10]='r'; salt[11]='i'; salt[12]='n'; salt[13]='g'; salt[14]='\0'; - strcat(salt,""); + char salt[21], answer[21+43]; + + strcpy(salt,"\$5\$rasmuslerdorf\$"); strcpy(answer, salt); - strcpy(&answer[29], "$5$saltstring$5B8vYYiY.CVt1RlTTf8KbXBH3hsxY/GNooZaBBGWEc5"); - exit (strcmp((char *)crypt("foo",salt),answer)); + strcat(answer, "cFAm2puLCujQ9t.0CxiFIIvFi4JyQx5UncCt/xRIX23"); + exit (strcmp((char *)crypt("rasmuslerdorf",salt),answer)); + #else exit(0); #endif @@ -87608,11 +88009,89 @@ $as_echo "$ac_cv_crypt_SHA256" >&6; } -if test "$ac_cv_crypt_blowfish" = "no" || test "$ac_cv_crypt_des" = "no" || test "$ac_cv_crypt_ext_des" = "no" || test "x$php_crypt_r" = "x0"; then +if test "$ac_cv_crypt_des" = "yes"; then + ac_result=1 + ac_crypt_des=1 +else + ac_result=0 + ac_crypt_des=0 +fi + +cat >>confdefs.h <<_ACEOF +#define PHP_STD_DES_CRYPT $ac_result +_ACEOF + + +if test "$ac_cv_crypt_md5" = "yes"; then + ac_result=1 + ac_crypt_md5=1 +else + ac_result=0 + ac_crypt_md5=0 +fi + +cat >>confdefs.h <<_ACEOF +#define PHP_MD5_CRYPT $ac_result +_ACEOF + + +if test "$ac_cv_crypt_blowfish" = "yes"; then + ac_result=1 + ac_crypt_blowfish=1 +else + ac_result=0 + ac_crypt_blowfish=0 +fi + +cat >>confdefs.h <<_ACEOF +#define PHP_BLOWFISH_CRYPT $ac_result +_ACEOF + + +if test "$ac_cv_crypt_ext_des" = "yes"; then + ac_result=1 + ac_crypt_edes=1 +else + ac_result=0 + ac_crypt_edes=0 +fi + +cat >>confdefs.h <<_ACEOF +#define PHP_EXT_DES_CRYPT $ac_result +_ACEOF + + +if test "$ac_cv_crypt_SHA512" = "yes"; then + ac_result=1 + ac_crypt_sha512=1 +else + ac_result=0 + ac_crypt_sha512=0 +fi + +cat >>confdefs.h <<_ACEOF +#define PHP_SHA512_CRYPT $ac_result +_ACEOF + + +if test "$ac_cv_crypt_SHA256" = "yes"; then + ac_result=1 + ac_crypt_sha256=1 +else + ac_result=0 + ac_crypt_sha256=0 +fi + +cat >>confdefs.h <<_ACEOF +#define PHP_SHA256_CRYPT $ac_result +_ACEOF + + +if test "$ac_cv_crypt_SHA512" = no || test "$ac_cv_crypt_SHA256" = "no" || test "$ac_cv_crypt_blowfish" = "no" || test "$ac_cv_crypt_des" = "no" || test "$ac_cv_crypt_md5" = "no" || test "$ac_cv_crypt_ext_des" = "no" || test "x$php_crypt_r" = "x0"; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports __alignof__" >&5 $as_echo_n "checking whether the compiler supports __alignof__... " >&6; } -if test "${ac_cv_alignof_exists+set}" = set; then : +if ${ac_cv_alignof_exists+:} false; then : $as_echo_n "(cached) " >&6 else @@ -87651,7 +88130,7 @@ { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports aligned attribute" >&5 $as_echo_n "checking whether the compiler supports aligned attribute... " >&6; } -if test "${ac_cv_attribute_aligned+set}" = set; then : +if ${ac_cv_attribute_aligned+:} false; then : $as_echo_n "(cached) " >&6 else @@ -87688,42 +88167,7 @@ fi - - -cat >>confdefs.h <<_ACEOF -#define PHP_USE_PHP_CRYPT_R 1 -_ACEOF - - -cat >>confdefs.h <<_ACEOF -#define PHP_STD_DES_CRYPT 1 -_ACEOF - - -cat >>confdefs.h <<_ACEOF -#define PHP_BLOWFISH_CRYPT 1 -_ACEOF - - -cat >>confdefs.h <<_ACEOF -#define PHP_EXT_DES_CRYPT 1 -_ACEOF - - -cat >>confdefs.h <<_ACEOF -#define PHP_MD5_CRYPT 1 -_ACEOF - - -cat >>confdefs.h <<_ACEOF -#define PHP_SHA512_CRYPT 1 -_ACEOF - - -cat >>confdefs.h <<_ACEOF -#define PHP_SHA256_CRYPT 1 -_ACEOF - + ac_result=1 @@ -87769,97 +88213,20 @@ else - if test "$ac_cv_crypt_des" = "yes"; then - ac_result=1 - ac_crypt_des=1 - else - ac_result=0 - ac_crypt_des=0 - fi - -cat >>confdefs.h <<_ACEOF -#define PHP_STD_DES_CRYPT $ac_result -_ACEOF - - - if test "$ac_cv_crypt_blowfish" = "yes"; then - ac_result=1 - ac_crypt_blowfish=1 - else - ac_result=0 - ac_crypt_blowfish=0 - fi - -cat >>confdefs.h <<_ACEOF -#define PHP_BLOWFISH_CRYPT $ac_result -_ACEOF - - - if test "$ac_cv_crypt_ext_des" = "yes"; then - ac_result=1 - ac_crypt_edes=1 - else - ac_result=0 - ac_crypt_edes=0 - fi - -cat >>confdefs.h <<_ACEOF -#define PHP_EXT_DES_CRYPT $ac_result -_ACEOF - - - if test "$ac_cv_crypt_md5" = "yes"; then - ac_result=1 - ac_crypt_md5=1 - else - ac_result=0 - ac_crypt_md5=0 - fi - -cat >>confdefs.h <<_ACEOF -#define PHP_MD5_CRYPT $ac_result -_ACEOF - - - if test "$ac_cv_crypt_sha512" = "yes"; then - ac_result=1 - ac_crypt_sha512=1 - else - ac_result=0 - ac_crypt_sha512=0 - fi - -cat >>confdefs.h <<_ACEOF -#define PHP_SHA512_CRYPT $ac_result -_ACEOF - - - if test "$ac_cv_crypt_sha256" = "yes"; then - ac_result=1 - ac_crypt_sha256=1 - else - ac_result=0 - ac_crypt_sha256=0 - fi - -cat >>confdefs.h <<_ACEOF -#define PHP_SHA256_CRYPT $ac_result -_ACEOF - + ac_result=0 +fi cat >>confdefs.h <<_ACEOF -#define PHP_USE_PHP_CRYPT_R 0 +#define PHP_USE_PHP_CRYPT_R $ac_result _ACEOF -fi for ac_func in getcwd getwd asinh acosh atanh log1p hypot glob strfmon nice fpclass isinf isnan mempcpy strpncpy do : as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" -eval as_val=\$$as_ac_var - if test "x$as_val" = x""yes; then : +if eval test \"x\$"$as_ac_var"\" = x"yes"; then : cat >>confdefs.h <<_ACEOF #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 _ACEOF @@ -87869,7 +88236,7 @@ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working POSIX fnmatch" >&5 $as_echo_n "checking for working POSIX fnmatch... " >&6; } -if test "${ac_cv_func_fnmatch_works+set}" = set; then : +if ${ac_cv_func_fnmatch_works+:} false; then : $as_echo_n "(cached) " >&6 else # Some versions of Solaris, SCO, and the GNU C Library @@ -87924,8 +88291,7 @@ do : as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" -eval as_val=\$$as_ac_var - if test "x$as_val" = x""yes; then : +if eval test \"x\$"$as_ac_var"\" = x"yes"; then : cat >>confdefs.h <<_ACEOF #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 _ACEOF @@ -87965,11 +88331,11 @@ unset found ac_fn_c_check_func "$LINENO" "res_nsearch" "ac_cv_func_res_nsearch" -if test "x$ac_cv_func_res_nsearch" = x""yes; then : +if test "x$ac_cv_func_res_nsearch" = xyes; then : found=yes else ac_fn_c_check_func "$LINENO" "__res_nsearch" "ac_cv_func___res_nsearch" -if test "x$ac_cv_func___res_nsearch" = x""yes; then : +if test "x$ac_cv_func___res_nsearch" = xyes; then : found=yes else found=no @@ -87993,7 +88359,7 @@ unset found { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_nsearch in -lresolv" >&5 $as_echo_n "checking for res_nsearch in -lresolv... " >&6; } -if test "${ac_cv_lib_resolv_res_nsearch+set}" = set; then : +if ${ac_cv_lib_resolv_res_nsearch+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS @@ -88027,13 +88393,13 @@ fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_res_nsearch" >&5 $as_echo "$ac_cv_lib_resolv_res_nsearch" >&6; } -if test "x$ac_cv_lib_resolv_res_nsearch" = x""yes; then : +if test "x$ac_cv_lib_resolv_res_nsearch" = xyes; then : found=yes else { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __res_nsearch in -lresolv" >&5 $as_echo_n "checking for __res_nsearch in -lresolv... " >&6; } -if test "${ac_cv_lib_resolv___res_nsearch+set}" = set; then : +if ${ac_cv_lib_resolv___res_nsearch+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS @@ -88067,7 +88433,7 @@ fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv___res_nsearch" >&5 $as_echo "$ac_cv_lib_resolv___res_nsearch" >&6; } -if test "x$ac_cv_lib_resolv___res_nsearch" = x""yes; then : +if test "x$ac_cv_lib_resolv___res_nsearch" = xyes; then : found=yes else found=no @@ -88125,7 +88491,7 @@ unset found { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_nsearch in -lbind" >&5 $as_echo_n "checking for res_nsearch in -lbind... " >&6; } -if test "${ac_cv_lib_bind_res_nsearch+set}" = set; then : +if ${ac_cv_lib_bind_res_nsearch+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS @@ -88159,13 +88525,13 @@ fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bind_res_nsearch" >&5 $as_echo "$ac_cv_lib_bind_res_nsearch" >&6; } -if test "x$ac_cv_lib_bind_res_nsearch" = x""yes; then : +if test "x$ac_cv_lib_bind_res_nsearch" = xyes; then : found=yes else { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __res_nsearch in -lbind" >&5 $as_echo_n "checking for __res_nsearch in -lbind... " >&6; } -if test "${ac_cv_lib_bind___res_nsearch+set}" = set; then : +if ${ac_cv_lib_bind___res_nsearch+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS @@ -88199,7 +88565,7 @@ fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bind___res_nsearch" >&5 $as_echo "$ac_cv_lib_bind___res_nsearch" >&6; } -if test "x$ac_cv_lib_bind___res_nsearch" = x""yes; then : +if test "x$ac_cv_lib_bind___res_nsearch" = xyes; then : found=yes else found=no @@ -88257,7 +88623,7 @@ unset found { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_nsearch in -lsocket" >&5 $as_echo_n "checking for res_nsearch in -lsocket... " >&6; } -if test "${ac_cv_lib_socket_res_nsearch+set}" = set; then : +if ${ac_cv_lib_socket_res_nsearch+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS @@ -88291,13 +88657,13 @@ fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_res_nsearch" >&5 $as_echo "$ac_cv_lib_socket_res_nsearch" >&6; } -if test "x$ac_cv_lib_socket_res_nsearch" = x""yes; then : +if test "x$ac_cv_lib_socket_res_nsearch" = xyes; then : found=yes else { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __res_nsearch in -lsocket" >&5 $as_echo_n "checking for __res_nsearch in -lsocket... " >&6; } -if test "${ac_cv_lib_socket___res_nsearch+set}" = set; then : +if ${ac_cv_lib_socket___res_nsearch+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS @@ -88331,7 +88697,7 @@ fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket___res_nsearch" >&5 $as_echo "$ac_cv_lib_socket___res_nsearch" >&6; } -if test "x$ac_cv_lib_socket___res_nsearch" = x""yes; then : +if test "x$ac_cv_lib_socket___res_nsearch" = xyes; then : found=yes else found=no @@ -88403,11 +88769,11 @@ unset found ac_fn_c_check_func "$LINENO" "dns_search" "ac_cv_func_dns_search" -if test "x$ac_cv_func_dns_search" = x""yes; then : +if test "x$ac_cv_func_dns_search" = xyes; then : found=yes else ac_fn_c_check_func "$LINENO" "__dns_search" "ac_cv_func___dns_search" -if test "x$ac_cv_func___dns_search" = x""yes; then : +if test "x$ac_cv_func___dns_search" = xyes; then : found=yes else found=no @@ -88431,7 +88797,7 @@ unset found { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dns_search in -lresolv" >&5 $as_echo_n "checking for dns_search in -lresolv... " >&6; } -if test "${ac_cv_lib_resolv_dns_search+set}" = set; then : +if ${ac_cv_lib_resolv_dns_search+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS @@ -88465,13 +88831,13 @@ fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_dns_search" >&5 $as_echo "$ac_cv_lib_resolv_dns_search" >&6; } -if test "x$ac_cv_lib_resolv_dns_search" = x""yes; then : +if test "x$ac_cv_lib_resolv_dns_search" = xyes; then : found=yes else { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __dns_search in -lresolv" >&5 $as_echo_n "checking for __dns_search in -lresolv... " >&6; } -if test "${ac_cv_lib_resolv___dns_search+set}" = set; then : +if ${ac_cv_lib_resolv___dns_search+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS @@ -88505,7 +88871,7 @@ fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv___dns_search" >&5 $as_echo "$ac_cv_lib_resolv___dns_search" >&6; } -if test "x$ac_cv_lib_resolv___dns_search" = x""yes; then : +if test "x$ac_cv_lib_resolv___dns_search" = xyes; then : found=yes else found=no @@ -88563,7 +88929,7 @@ unset found { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dns_search in -lbind" >&5 $as_echo_n "checking for dns_search in -lbind... " >&6; } -if test "${ac_cv_lib_bind_dns_search+set}" = set; then : +if ${ac_cv_lib_bind_dns_search+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS @@ -88597,13 +88963,13 @@ fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bind_dns_search" >&5 $as_echo "$ac_cv_lib_bind_dns_search" >&6; } -if test "x$ac_cv_lib_bind_dns_search" = x""yes; then : +if test "x$ac_cv_lib_bind_dns_search" = xyes; then : found=yes else { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __dns_search in -lbind" >&5 $as_echo_n "checking for __dns_search in -lbind... " >&6; } -if test "${ac_cv_lib_bind___dns_search+set}" = set; then : +if ${ac_cv_lib_bind___dns_search+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS @@ -88637,7 +89003,7 @@ fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bind___dns_search" >&5 $as_echo "$ac_cv_lib_bind___dns_search" >&6; } -if test "x$ac_cv_lib_bind___dns_search" = x""yes; then : +if test "x$ac_cv_lib_bind___dns_search" = xyes; then : found=yes else found=no @@ -88695,7 +89061,7 @@ unset found { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dns_search in -lsocket" >&5 $as_echo_n "checking for dns_search in -lsocket... " >&6; } -if test "${ac_cv_lib_socket_dns_search+set}" = set; then : +if ${ac_cv_lib_socket_dns_search+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS @@ -88729,13 +89095,13 @@ fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_dns_search" >&5 $as_echo "$ac_cv_lib_socket_dns_search" >&6; } -if test "x$ac_cv_lib_socket_dns_search" = x""yes; then : +if test "x$ac_cv_lib_socket_dns_search" = xyes; then : found=yes else { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __dns_search in -lsocket" >&5 $as_echo_n "checking for __dns_search in -lsocket... " >&6; } -if test "${ac_cv_lib_socket___dns_search+set}" = set; then : +if ${ac_cv_lib_socket___dns_search+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS @@ -88769,7 +89135,7 @@ fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket___dns_search" >&5 $as_echo "$ac_cv_lib_socket___dns_search" >&6; } -if test "x$ac_cv_lib_socket___dns_search" = x""yes; then : +if test "x$ac_cv_lib_socket___dns_search" = xyes; then : found=yes else found=no @@ -88841,11 +89207,11 @@ unset found ac_fn_c_check_func "$LINENO" "dn_expand" "ac_cv_func_dn_expand" -if test "x$ac_cv_func_dn_expand" = x""yes; then : +if test "x$ac_cv_func_dn_expand" = xyes; then : found=yes else ac_fn_c_check_func "$LINENO" "__dn_expand" "ac_cv_func___dn_expand" -if test "x$ac_cv_func___dn_expand" = x""yes; then : +if test "x$ac_cv_func___dn_expand" = xyes; then : found=yes else found=no @@ -88869,7 +89235,7 @@ unset found { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dn_expand in -lresolv" >&5 $as_echo_n "checking for dn_expand in -lresolv... " >&6; } -if test "${ac_cv_lib_resolv_dn_expand+set}" = set; then : +if ${ac_cv_lib_resolv_dn_expand+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS @@ -88903,13 +89269,13 @@ fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_dn_expand" >&5 $as_echo "$ac_cv_lib_resolv_dn_expand" >&6; } -if test "x$ac_cv_lib_resolv_dn_expand" = x""yes; then : +if test "x$ac_cv_lib_resolv_dn_expand" = xyes; then : found=yes else { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __dn_expand in -lresolv" >&5 $as_echo_n "checking for __dn_expand in -lresolv... " >&6; } -if test "${ac_cv_lib_resolv___dn_expand+set}" = set; then : +if ${ac_cv_lib_resolv___dn_expand+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS @@ -88943,7 +89309,7 @@ fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv___dn_expand" >&5 $as_echo "$ac_cv_lib_resolv___dn_expand" >&6; } -if test "x$ac_cv_lib_resolv___dn_expand" = x""yes; then : +if test "x$ac_cv_lib_resolv___dn_expand" = xyes; then : found=yes else found=no @@ -89001,7 +89367,7 @@ unset found { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dn_expand in -lbind" >&5 $as_echo_n "checking for dn_expand in -lbind... " >&6; } -if test "${ac_cv_lib_bind_dn_expand+set}" = set; then : +if ${ac_cv_lib_bind_dn_expand+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS @@ -89035,13 +89401,13 @@ fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bind_dn_expand" >&5 $as_echo "$ac_cv_lib_bind_dn_expand" >&6; } -if test "x$ac_cv_lib_bind_dn_expand" = x""yes; then : +if test "x$ac_cv_lib_bind_dn_expand" = xyes; then : found=yes else { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __dn_expand in -lbind" >&5 $as_echo_n "checking for __dn_expand in -lbind... " >&6; } -if test "${ac_cv_lib_bind___dn_expand+set}" = set; then : +if ${ac_cv_lib_bind___dn_expand+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS @@ -89075,7 +89441,7 @@ fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bind___dn_expand" >&5 $as_echo "$ac_cv_lib_bind___dn_expand" >&6; } -if test "x$ac_cv_lib_bind___dn_expand" = x""yes; then : +if test "x$ac_cv_lib_bind___dn_expand" = xyes; then : found=yes else found=no @@ -89133,7 +89499,7 @@ unset found { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dn_expand in -lsocket" >&5 $as_echo_n "checking for dn_expand in -lsocket... " >&6; } -if test "${ac_cv_lib_socket_dn_expand+set}" = set; then : +if ${ac_cv_lib_socket_dn_expand+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS @@ -89167,13 +89533,13 @@ fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_dn_expand" >&5 $as_echo "$ac_cv_lib_socket_dn_expand" >&6; } -if test "x$ac_cv_lib_socket_dn_expand" = x""yes; then : +if test "x$ac_cv_lib_socket_dn_expand" = xyes; then : found=yes else { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __dn_expand in -lsocket" >&5 $as_echo_n "checking for __dn_expand in -lsocket... " >&6; } -if test "${ac_cv_lib_socket___dn_expand+set}" = set; then : +if ${ac_cv_lib_socket___dn_expand+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS @@ -89207,7 +89573,7 @@ fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket___dn_expand" >&5 $as_echo "$ac_cv_lib_socket___dn_expand" >&6; } -if test "x$ac_cv_lib_socket___dn_expand" = x""yes; then : +if test "x$ac_cv_lib_socket___dn_expand" = xyes; then : found=yes else found=no @@ -89279,11 +89645,11 @@ unset found ac_fn_c_check_func "$LINENO" "dn_skipname" "ac_cv_func_dn_skipname" -if test "x$ac_cv_func_dn_skipname" = x""yes; then : +if test "x$ac_cv_func_dn_skipname" = xyes; then : found=yes else ac_fn_c_check_func "$LINENO" "__dn_skipname" "ac_cv_func___dn_skipname" -if test "x$ac_cv_func___dn_skipname" = x""yes; then : +if test "x$ac_cv_func___dn_skipname" = xyes; then : found=yes else found=no @@ -89307,7 +89673,7 @@ unset found { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dn_skipname in -lresolv" >&5 $as_echo_n "checking for dn_skipname in -lresolv... " >&6; } -if test "${ac_cv_lib_resolv_dn_skipname+set}" = set; then : +if ${ac_cv_lib_resolv_dn_skipname+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS @@ -89341,13 +89707,13 @@ fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_dn_skipname" >&5 $as_echo "$ac_cv_lib_resolv_dn_skipname" >&6; } -if test "x$ac_cv_lib_resolv_dn_skipname" = x""yes; then : +if test "x$ac_cv_lib_resolv_dn_skipname" = xyes; then : found=yes else { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __dn_skipname in -lresolv" >&5 $as_echo_n "checking for __dn_skipname in -lresolv... " >&6; } -if test "${ac_cv_lib_resolv___dn_skipname+set}" = set; then : +if ${ac_cv_lib_resolv___dn_skipname+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS @@ -89381,7 +89747,7 @@ fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv___dn_skipname" >&5 $as_echo "$ac_cv_lib_resolv___dn_skipname" >&6; } -if test "x$ac_cv_lib_resolv___dn_skipname" = x""yes; then : +if test "x$ac_cv_lib_resolv___dn_skipname" = xyes; then : found=yes else found=no @@ -89439,7 +89805,7 @@ unset found { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dn_skipname in -lbind" >&5 $as_echo_n "checking for dn_skipname in -lbind... " >&6; } -if test "${ac_cv_lib_bind_dn_skipname+set}" = set; then : +if ${ac_cv_lib_bind_dn_skipname+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS @@ -89473,13 +89839,13 @@ fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bind_dn_skipname" >&5 $as_echo "$ac_cv_lib_bind_dn_skipname" >&6; } -if test "x$ac_cv_lib_bind_dn_skipname" = x""yes; then : +if test "x$ac_cv_lib_bind_dn_skipname" = xyes; then : found=yes else { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __dn_skipname in -lbind" >&5 $as_echo_n "checking for __dn_skipname in -lbind... " >&6; } -if test "${ac_cv_lib_bind___dn_skipname+set}" = set; then : +if ${ac_cv_lib_bind___dn_skipname+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS @@ -89513,7 +89879,7 @@ fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bind___dn_skipname" >&5 $as_echo "$ac_cv_lib_bind___dn_skipname" >&6; } -if test "x$ac_cv_lib_bind___dn_skipname" = x""yes; then : +if test "x$ac_cv_lib_bind___dn_skipname" = xyes; then : found=yes else found=no @@ -89571,7 +89937,7 @@ unset found { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dn_skipname in -lsocket" >&5 $as_echo_n "checking for dn_skipname in -lsocket... " >&6; } -if test "${ac_cv_lib_socket_dn_skipname+set}" = set; then : +if ${ac_cv_lib_socket_dn_skipname+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS @@ -89605,13 +89971,13 @@ fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_dn_skipname" >&5 $as_echo "$ac_cv_lib_socket_dn_skipname" >&6; } -if test "x$ac_cv_lib_socket_dn_skipname" = x""yes; then : +if test "x$ac_cv_lib_socket_dn_skipname" = xyes; then : found=yes else { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __dn_skipname in -lsocket" >&5 $as_echo_n "checking for __dn_skipname in -lsocket... " >&6; } -if test "${ac_cv_lib_socket___dn_skipname+set}" = set; then : +if ${ac_cv_lib_socket___dn_skipname+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS @@ -89645,7 +90011,7 @@ fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket___dn_skipname" >&5 $as_echo "$ac_cv_lib_socket___dn_skipname" >&6; } -if test "x$ac_cv_lib_socket___dn_skipname" = x""yes; then : +if test "x$ac_cv_lib_socket___dn_skipname" = xyes; then : found=yes else found=no @@ -89719,11 +90085,11 @@ unset found ac_fn_c_check_func "$LINENO" "res_search" "ac_cv_func_res_search" -if test "x$ac_cv_func_res_search" = x""yes; then : +if test "x$ac_cv_func_res_search" = xyes; then : found=yes else ac_fn_c_check_func "$LINENO" "__res_search" "ac_cv_func___res_search" -if test "x$ac_cv_func___res_search" = x""yes; then : +if test "x$ac_cv_func___res_search" = xyes; then : found=yes else found=no @@ -89747,7 +90113,7 @@ unset found { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_search in -lresolv" >&5 $as_echo_n "checking for res_search in -lresolv... " >&6; } -if test "${ac_cv_lib_resolv_res_search+set}" = set; then : +if ${ac_cv_lib_resolv_res_search+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS @@ -89781,13 +90147,13 @@ fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_res_search" >&5 $as_echo "$ac_cv_lib_resolv_res_search" >&6; } -if test "x$ac_cv_lib_resolv_res_search" = x""yes; then : +if test "x$ac_cv_lib_resolv_res_search" = xyes; then : found=yes else { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __res_search in -lresolv" >&5 $as_echo_n "checking for __res_search in -lresolv... " >&6; } -if test "${ac_cv_lib_resolv___res_search+set}" = set; then : +if ${ac_cv_lib_resolv___res_search+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS @@ -89821,7 +90187,7 @@ fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv___res_search" >&5 $as_echo "$ac_cv_lib_resolv___res_search" >&6; } -if test "x$ac_cv_lib_resolv___res_search" = x""yes; then : +if test "x$ac_cv_lib_resolv___res_search" = xyes; then : found=yes else found=no @@ -89879,7 +90245,7 @@ unset found { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_search in -lbind" >&5 $as_echo_n "checking for res_search in -lbind... " >&6; } -if test "${ac_cv_lib_bind_res_search+set}" = set; then : +if ${ac_cv_lib_bind_res_search+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS @@ -89913,13 +90279,13 @@ fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bind_res_search" >&5 $as_echo "$ac_cv_lib_bind_res_search" >&6; } -if test "x$ac_cv_lib_bind_res_search" = x""yes; then : +if test "x$ac_cv_lib_bind_res_search" = xyes; then : found=yes else { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __res_search in -lbind" >&5 $as_echo_n "checking for __res_search in -lbind... " >&6; } -if test "${ac_cv_lib_bind___res_search+set}" = set; then : +if ${ac_cv_lib_bind___res_search+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS @@ -89953,7 +90319,7 @@ fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bind___res_search" >&5 $as_echo "$ac_cv_lib_bind___res_search" >&6; } -if test "x$ac_cv_lib_bind___res_search" = x""yes; then : +if test "x$ac_cv_lib_bind___res_search" = xyes; then : found=yes else found=no @@ -90011,7 +90377,7 @@ unset found { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_search in -lsocket" >&5 $as_echo_n "checking for res_search in -lsocket... " >&6; } -if test "${ac_cv_lib_socket_res_search+set}" = set; then : +if ${ac_cv_lib_socket_res_search+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS @@ -90045,13 +90411,13 @@ fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_res_search" >&5 $as_echo "$ac_cv_lib_socket_res_search" >&6; } -if test "x$ac_cv_lib_socket_res_search" = x""yes; then : +if test "x$ac_cv_lib_socket_res_search" = xyes; then : found=yes else { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __res_search in -lsocket" >&5 $as_echo_n "checking for __res_search in -lsocket... " >&6; } -if test "${ac_cv_lib_socket___res_search+set}" = set; then : +if ${ac_cv_lib_socket___res_search+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS @@ -90085,7 +90451,7 @@ fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket___res_search" >&5 $as_echo "$ac_cv_lib_socket___res_search" >&6; } -if test "x$ac_cv_lib_socket___res_search" = x""yes; then : +if test "x$ac_cv_lib_socket___res_search" = xyes; then : found=yes else found=no @@ -90154,7 +90520,7 @@ { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether atof() accepts NAN" >&5 $as_echo_n "checking whether atof() accepts NAN... " >&6; } -if test "${ac_cv_atof_accept_nan+set}" = set; then : +if ${ac_cv_atof_accept_nan+:} false; then : $as_echo_n "(cached) " >&6 else @@ -90207,7 +90573,7 @@ { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether atof() accepts INF" >&5 $as_echo_n "checking whether atof() accepts INF... " >&6; } -if test "${ac_cv_atof_accept_inf+set}" = set; then : +if ${ac_cv_atof_accept_inf+:} false; then : $as_echo_n "(cached) " >&6 else @@ -90263,7 +90629,7 @@ { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether HUGE_VAL == INF" >&5 $as_echo_n "checking whether HUGE_VAL == INF... " >&6; } -if test "${ac_cv_huge_val_inf+set}" = set; then : +if ${ac_cv_huge_val_inf+:} false; then : $as_echo_n "(cached) " >&6 else @@ -90319,7 +90685,7 @@ { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether HUGE_VAL + -HUGEVAL == NAN" >&5 $as_echo_n "checking whether HUGE_VAL + -HUGEVAL == NAN... " >&6; } -if test "${ac_cv_huge_val_nan+set}" = set; then : +if ${ac_cv_huge_val_nan+:} false; then : $as_echo_n "(cached) " >&6 else @@ -90377,7 +90743,7 @@ { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strptime() declaration fails" >&5 $as_echo_n "checking whether strptime() declaration fails... " >&6; } -if test "${ac_cv_strptime_decl_fails+set}" = set; then : +if ${ac_cv_strptime_decl_fails+:} false; then : $as_echo_n "(cached) " >&6 else @@ -90423,7 +90789,7 @@ for ac_header in wchar.h do : ac_fn_c_check_header_mongrel "$LINENO" "wchar.h" "ac_cv_header_wchar_h" "$ac_includes_default" -if test "x$ac_cv_header_wchar_h" = x""yes; then : +if test "x$ac_cv_header_wchar_h" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_WCHAR_H 1 _ACEOF @@ -90435,7 +90801,7 @@ for ac_func in mblen do : ac_fn_c_check_func "$LINENO" "mblen" "ac_cv_func_mblen" -if test "x$ac_cv_func_mblen" = x""yes; then : +if test "x$ac_cv_func_mblen" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_MBLEN 1 _ACEOF @@ -90447,8 +90813,7 @@ do : as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" -eval as_val=\$$as_ac_var - if test "x$as_val" = x""yes; then : +if eval test \"x\$"$as_ac_var"\" = x"yes"; then : cat >>confdefs.h <<_ACEOF #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 _ACEOF @@ -90458,7 +90823,7 @@ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5 $as_echo_n "checking for mbstate_t... " >&6; } -if test "${ac_cv_type_mbstate_t+set}" = set; then : +if ${ac_cv_type_mbstate_t+:} false; then : $as_echo_n "(cached) " >&6 else @@ -90501,7 +90866,7 @@ for ac_header in atomic.h do : ac_fn_c_check_header_mongrel "$LINENO" "atomic.h" "ac_cv_header_atomic_h" "$ac_includes_default" -if test "x$ac_cv_header_atomic_h" = x""yes; then : +if test "x$ac_cv_header_atomic_h" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_ATOMIC_H 1 _ACEOF @@ -90919,7 +91284,7 @@ if test "$PHP_SYBASE_CT" != "no"; then if test "$PHP_SYBASE" && test "$PHP_SYBASE" != "no" && test "$ext_shared" = "no"; then - as_fn_error "You can not use both --with-sybase and --with-sybase-ct in same build!" "$LINENO" 5 + as_fn_error $? "You can not use both --with-sybase and --with-sybase-ct in same build!" "$LINENO" 5 fi @@ -91236,7 +91601,7 @@ # This bug is HP SR number 8606223364. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long int" >&5 $as_echo_n "checking size of long int... " >&6; } -if test "${ac_cv_sizeof_long_int+set}" = set; then : +if ${ac_cv_sizeof_long_int+:} false; then : $as_echo_n "(cached) " >&6 else if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long int))" "ac_cv_sizeof_long_int" "$ac_includes_default"; then : @@ -91245,9 +91610,8 @@ if test "$ac_cv_type_long_int" = yes; then { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} -{ as_fn_set_status 77 -as_fn_error "cannot compute sizeof (long int) -See \`config.log' for more details." "$LINENO" 5; }; } +as_fn_error 77 "cannot compute sizeof (long int) +See \`config.log' for more details" "$LINENO" 5; } else ac_cv_sizeof_long_int=0 fi @@ -91314,7 +91678,7 @@ fi else - as_fn_error "ctpublic.h missing!" "$LINENO" 5 + as_fn_error $? "ctpublic.h missing!" "$LINENO" 5 fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking Checking Sybase libdir" >&5 @@ -91341,6 +91705,7 @@ if test "$ext_shared" = "yes"; then SYBASE_CT_SHARED_LIBADD="-L$ai_p $SYBASE_CT_SHARED_LIBADD" + test "x$PHP_RPATH" != "xno" && \ test -n "$ld_runpath_switch" && SYBASE_CT_SHARED_LIBADD="$ld_runpath_switch$ai_p $SYBASE_CT_SHARED_LIBADD" else @@ -91352,6 +91717,7 @@ if test -n "$unique" && test "`eval $cmd`" = "" ; then eval "LIBPATH$unique=set" + test "x$PHP_RPATH" != "xno" && test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" LDFLAGS="$LDFLAGS -L$ai_p" PHP_RPATHS="$PHP_RPATHS $ai_p" @@ -91564,6 +91930,7 @@ if test "$ext_shared" = "yes"; then LDFLAGS="-L$ai_p $LDFLAGS" + test "x$PHP_RPATH" != "xno" && \ test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS" else @@ -91575,6 +91942,7 @@ if test -n "$unique" && test "`eval $cmd`" = "" ; then eval "LIBPATH$unique=set" + test "x$PHP_RPATH" != "xno" && test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" LDFLAGS="$LDFLAGS -L$ai_p" PHP_RPATHS="$PHP_RPATHS $ai_p" @@ -91592,7 +91960,7 @@ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for netg_errstr in -lsybtcl64" >&5 $as_echo_n "checking for netg_errstr in -lsybtcl64... " >&6; } -if test "${ac_cv_lib_sybtcl64_netg_errstr+set}" = set; then : +if ${ac_cv_lib_sybtcl64_netg_errstr+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS @@ -91626,7 +91994,7 @@ fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sybtcl64_netg_errstr" >&5 $as_echo "$ac_cv_lib_sybtcl64_netg_errstr" >&6; } -if test "x$ac_cv_lib_sybtcl64_netg_errstr" = x""yes; then : +if test "x$ac_cv_lib_sybtcl64_netg_errstr" = xyes; then : LDFLAGS=$save_old_LDFLAGS ext_shared=$save_ext_shared @@ -91759,6 +92127,7 @@ if test "$ext_shared" = "yes"; then LDFLAGS="-L$ai_p $LDFLAGS" + test "x$PHP_RPATH" != "xno" && \ test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS" else @@ -91770,6 +92139,7 @@ if test -n "$unique" && test "`eval $cmd`" = "" ; then eval "LIBPATH$unique=set" + test "x$PHP_RPATH" != "xno" && test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" LDFLAGS="$LDFLAGS -L$ai_p" PHP_RPATHS="$PHP_RPATHS $ai_p" @@ -91787,7 +92157,7 @@ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for insck__getVdate in -linsck64" >&5 $as_echo_n "checking for insck__getVdate in -linsck64... " >&6; } -if test "${ac_cv_lib_insck64_insck__getVdate+set}" = set; then : +if ${ac_cv_lib_insck64_insck__getVdate+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS @@ -91821,7 +92191,7 @@ fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_insck64_insck__getVdate" >&5 $as_echo "$ac_cv_lib_insck64_insck__getVdate" >&6; } -if test "x$ac_cv_lib_insck64_insck__getVdate" = x""yes; then : +if test "x$ac_cv_lib_insck64_insck__getVdate" = xyes; then : LDFLAGS=$save_old_LDFLAGS ext_shared=$save_ext_shared @@ -91927,6 +92297,7 @@ if test "$ext_shared" = "yes"; then LDFLAGS="-L$ai_p $LDFLAGS" + test "x$PHP_RPATH" != "xno" && \ test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS" else @@ -91938,6 +92309,7 @@ if test -n "$unique" && test "`eval $cmd`" = "" ; then eval "LIBPATH$unique=set" + test "x$PHP_RPATH" != "xno" && test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" LDFLAGS="$LDFLAGS -L$ai_p" PHP_RPATHS="$PHP_RPATHS $ai_p" @@ -91955,7 +92327,7 @@ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bsd_tcp in -linsck64" >&5 $as_echo_n "checking for bsd_tcp in -linsck64... " >&6; } -if test "${ac_cv_lib_insck64_bsd_tcp+set}" = set; then : +if ${ac_cv_lib_insck64_bsd_tcp+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS @@ -91989,7 +92361,7 @@ fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_insck64_bsd_tcp" >&5 $as_echo "$ac_cv_lib_insck64_bsd_tcp" >&6; } -if test "x$ac_cv_lib_insck64_bsd_tcp" = x""yes; then : +if test "x$ac_cv_lib_insck64_bsd_tcp" = xyes; then : LDFLAGS=$save_old_LDFLAGS ext_shared=$save_ext_shared @@ -92195,6 +92567,7 @@ if test "$ext_shared" = "yes"; then LDFLAGS="-L$ai_p $LDFLAGS" + test "x$PHP_RPATH" != "xno" && \ test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS" else @@ -92206,6 +92579,7 @@ if test -n "$unique" && test "`eval $cmd`" = "" ; then eval "LIBPATH$unique=set" + test "x$PHP_RPATH" != "xno" && test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" LDFLAGS="$LDFLAGS -L$ai_p" PHP_RPATHS="$PHP_RPATHS $ai_p" @@ -92223,7 +92597,7 @@ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for netg_errstr in -lsybtcl" >&5 $as_echo_n "checking for netg_errstr in -lsybtcl... " >&6; } -if test "${ac_cv_lib_sybtcl_netg_errstr+set}" = set; then : +if ${ac_cv_lib_sybtcl_netg_errstr+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS @@ -92257,7 +92631,7 @@ fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sybtcl_netg_errstr" >&5 $as_echo "$ac_cv_lib_sybtcl_netg_errstr" >&6; } -if test "x$ac_cv_lib_sybtcl_netg_errstr" = x""yes; then : +if test "x$ac_cv_lib_sybtcl_netg_errstr" = xyes; then : LDFLAGS=$save_old_LDFLAGS ext_shared=$save_ext_shared @@ -92390,6 +92764,7 @@ if test "$ext_shared" = "yes"; then LDFLAGS="-L$ai_p $LDFLAGS" + test "x$PHP_RPATH" != "xno" && \ test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS" else @@ -92401,6 +92776,7 @@ if test -n "$unique" && test "`eval $cmd`" = "" ; then eval "LIBPATH$unique=set" + test "x$PHP_RPATH" != "xno" && test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" LDFLAGS="$LDFLAGS -L$ai_p" PHP_RPATHS="$PHP_RPATHS $ai_p" @@ -92418,7 +92794,7 @@ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for insck__getVdate in -linsck" >&5 $as_echo_n "checking for insck__getVdate in -linsck... " >&6; } -if test "${ac_cv_lib_insck_insck__getVdate+set}" = set; then : +if ${ac_cv_lib_insck_insck__getVdate+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS @@ -92452,7 +92828,7 @@ fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_insck_insck__getVdate" >&5 $as_echo "$ac_cv_lib_insck_insck__getVdate" >&6; } -if test "x$ac_cv_lib_insck_insck__getVdate" = x""yes; then : +if test "x$ac_cv_lib_insck_insck__getVdate" = xyes; then : LDFLAGS=$save_old_LDFLAGS ext_shared=$save_ext_shared @@ -92558,6 +92934,7 @@ if test "$ext_shared" = "yes"; then LDFLAGS="-L$ai_p $LDFLAGS" + test "x$PHP_RPATH" != "xno" && \ test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS" else @@ -92569,6 +92946,7 @@ if test -n "$unique" && test "`eval $cmd`" = "" ; then eval "LIBPATH$unique=set" + test "x$PHP_RPATH" != "xno" && test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" LDFLAGS="$LDFLAGS -L$ai_p" PHP_RPATHS="$PHP_RPATHS $ai_p" @@ -92586,7 +92964,7 @@ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bsd_tcp in -linsck" >&5 $as_echo_n "checking for bsd_tcp in -linsck... " >&6; } -if test "${ac_cv_lib_insck_bsd_tcp+set}" = set; then : +if ${ac_cv_lib_insck_bsd_tcp+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS @@ -92620,7 +92998,7 @@ fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_insck_bsd_tcp" >&5 $as_echo "$ac_cv_lib_insck_bsd_tcp" >&6; } -if test "x$ac_cv_lib_insck_bsd_tcp" = x""yes; then : +if test "x$ac_cv_lib_insck_bsd_tcp" = xyes; then : LDFLAGS=$save_old_LDFLAGS ext_shared=$save_ext_shared @@ -92826,6 +93204,7 @@ if test "$ext_shared" = "yes"; then LDFLAGS="-L$ai_p $LDFLAGS" + test "x$PHP_RPATH" != "xno" && \ test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS" else @@ -92837,6 +93216,7 @@ if test -n "$unique" && test "`eval $cmd`" = "" ; then eval "LIBPATH$unique=set" + test "x$PHP_RPATH" != "xno" && test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" LDFLAGS="$LDFLAGS -L$ai_p" PHP_RPATHS="$PHP_RPATHS $ai_p" @@ -92854,7 +93234,7 @@ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for netg_errstr in -ltcl" >&5 $as_echo_n "checking for netg_errstr in -ltcl... " >&6; } -if test "${ac_cv_lib_tcl_netg_errstr+set}" = set; then : +if ${ac_cv_lib_tcl_netg_errstr+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS @@ -92888,7 +93268,7 @@ fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tcl_netg_errstr" >&5 $as_echo "$ac_cv_lib_tcl_netg_errstr" >&6; } -if test "x$ac_cv_lib_tcl_netg_errstr" = x""yes; then : +if test "x$ac_cv_lib_tcl_netg_errstr" = xyes; then : LDFLAGS=$save_old_LDFLAGS ext_shared=$save_ext_shared @@ -93021,6 +93401,7 @@ if test "$ext_shared" = "yes"; then LDFLAGS="-L$ai_p $LDFLAGS" + test "x$PHP_RPATH" != "xno" && \ test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS" else @@ -93032,6 +93413,7 @@ if test -n "$unique" && test "`eval $cmd`" = "" ; then eval "LIBPATH$unique=set" + test "x$PHP_RPATH" != "xno" && test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" LDFLAGS="$LDFLAGS -L$ai_p" PHP_RPATHS="$PHP_RPATHS $ai_p" @@ -93049,7 +93431,7 @@ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for insck__getVdate in -linsck" >&5 $as_echo_n "checking for insck__getVdate in -linsck... " >&6; } -if test "${ac_cv_lib_insck_insck__getVdate+set}" = set; then : +if ${ac_cv_lib_insck_insck__getVdate+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS @@ -93083,7 +93465,7 @@ fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_insck_insck__getVdate" >&5 $as_echo "$ac_cv_lib_insck_insck__getVdate" >&6; } -if test "x$ac_cv_lib_insck_insck__getVdate" = x""yes; then : +if test "x$ac_cv_lib_insck_insck__getVdate" = xyes; then : LDFLAGS=$save_old_LDFLAGS ext_shared=$save_ext_shared @@ -93189,6 +93571,7 @@ if test "$ext_shared" = "yes"; then LDFLAGS="-L$ai_p $LDFLAGS" + test "x$PHP_RPATH" != "xno" && \ test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS" else @@ -93200,6 +93583,7 @@ if test -n "$unique" && test "`eval $cmd`" = "" ; then eval "LIBPATH$unique=set" + test "x$PHP_RPATH" != "xno" && test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" LDFLAGS="$LDFLAGS -L$ai_p" PHP_RPATHS="$PHP_RPATHS $ai_p" @@ -93217,7 +93601,7 @@ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bsd_tcp in -linsck" >&5 $as_echo_n "checking for bsd_tcp in -linsck... " >&6; } -if test "${ac_cv_lib_insck_bsd_tcp+set}" = set; then : +if ${ac_cv_lib_insck_bsd_tcp+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS @@ -93251,7 +93635,7 @@ fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_insck_bsd_tcp" >&5 $as_echo "$ac_cv_lib_insck_bsd_tcp" >&6; } -if test "x$ac_cv_lib_insck_bsd_tcp" = x""yes; then : +if test "x$ac_cv_lib_insck_bsd_tcp" = xyes; then : LDFLAGS=$save_old_LDFLAGS ext_shared=$save_ext_shared @@ -93338,10 +93722,10 @@ if test "$PHP_SYSVMSG" != "no"; then ac_fn_c_check_header_mongrel "$LINENO" "sys/msg.h" "ac_cv_header_sys_msg_h" "$ac_includes_default" -if test "x$ac_cv_header_sys_msg_h" = x""yes; then : +if test "x$ac_cv_header_sys_msg_h" = xyes; then : else - as_fn_error "Cannot enable System V IPC support, sys/msg.h is missing" "$LINENO" 5 + as_fn_error $? "Cannot enable System V IPC support, sys/msg.h is missing" "$LINENO" 5 fi @@ -93989,7 +94373,7 @@ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for union semun" >&5 $as_echo_n "checking for union semun... " >&6; } -if test "${php_cv_semun+set}" = set; then : +if ${php_cv_semun+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -94441,7 +94825,7 @@ done if test -z "$TIDY_DIR"; then - as_fn_error "Cannot find libtidy" "$LINENO" 5 + as_fn_error $? "Cannot find libtidy" "$LINENO" 5 fi TIDY_LIBDIR=$TIDY_DIR/$PHP_LIBDIR @@ -94467,6 +94851,7 @@ if test "$ext_shared" = "yes"; then TIDY_SHARED_LIBADD="-L$ai_p $TIDY_SHARED_LIBADD" + test "x$PHP_RPATH" != "xno" && \ test -n "$ld_runpath_switch" && TIDY_SHARED_LIBADD="$ld_runpath_switch$ai_p $TIDY_SHARED_LIBADD" else @@ -94478,6 +94863,7 @@ if test -n "$unique" && test "`eval $cmd`" = "" ; then eval "LIBPATH$unique=set" + test "x$PHP_RPATH" != "xno" && test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" LDFLAGS="$LDFLAGS -L$ai_p" PHP_RPATHS="$PHP_RPATHS $ai_p" @@ -94517,6 +94903,7 @@ if test -n "$unique" && test "`eval $cmd`" = "" ; then eval "LIBPATH$unique=set" + test "x$PHP_RPATH" != "xno" && test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" LDFLAGS="$LDFLAGS -L$ai_p" PHP_RPATHS="$PHP_RPATHS $ai_p" @@ -94644,6 +95031,7 @@ if test "$ext_shared" = "yes"; then LDFLAGS="-L$ai_p $LDFLAGS" + test "x$PHP_RPATH" != "xno" && \ test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS" else @@ -94655,6 +95043,7 @@ if test -n "$unique" && test "`eval $cmd`" = "" ; then eval "LIBPATH$unique=set" + test "x$PHP_RPATH" != "xno" && test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" LDFLAGS="$LDFLAGS -L$ai_p" PHP_RPATHS="$PHP_RPATHS $ai_p" @@ -94672,7 +95061,7 @@ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tidyOptGetDoc in -ltidy" >&5 $as_echo_n "checking for tidyOptGetDoc in -ltidy... " >&6; } -if test "${ac_cv_lib_tidy_tidyOptGetDoc+set}" = set; then : +if ${ac_cv_lib_tidy_tidyOptGetDoc+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS @@ -94706,7 +95095,7 @@ fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tidy_tidyOptGetDoc" >&5 $as_echo "$ac_cv_lib_tidy_tidyOptGetDoc" >&6; } -if test "x$ac_cv_lib_tidy_tidyOptGetDoc" = x""yes; then : +if test "x$ac_cv_lib_tidy_tidyOptGetDoc" = xyes; then : LDFLAGS=$save_old_LDFLAGS ext_shared=$save_ext_shared @@ -95475,13 +95864,13 @@ if test "$PHP_LIBEXPAT_DIR" = "no"; then if test "$PHP_LIBXML" = "no"; then - as_fn_error "WDDX extension requires LIBXML extension, add --enable-libxml" "$LINENO" 5 + as_fn_error $? "WDDX extension requires LIBXML extension, add --enable-libxml" "$LINENO" 5 fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xml2-config path" >&5 $as_echo_n "checking for xml2-config path... " >&6; } -if test "${ac_cv_php_xml2_config_path+set}" = set; then : +if ${ac_cv_php_xml2_config_path+:} false; then : $as_echo_n "(cached) " >&6 else @@ -95570,6 +95959,7 @@ if test "$ext_shared" = "yes"; then WDDX_SHARED_LIBADD="-L$ai_p $WDDX_SHARED_LIBADD" + test "x$PHP_RPATH" != "xno" && \ test -n "$ld_runpath_switch" && WDDX_SHARED_LIBADD="$ld_runpath_switch$ai_p $WDDX_SHARED_LIBADD" else @@ -95581,6 +95971,7 @@ if test -n "$unique" && test "`eval $cmd`" = "" ; then eval "LIBPATH$unique=set" + test "x$PHP_RPATH" != "xno" && test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" LDFLAGS="$LDFLAGS -L$ai_p" PHP_RPATHS="$PHP_RPATHS $ai_p" @@ -95639,7 +96030,7 @@ { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libxml build works" >&5 $as_echo_n "checking whether libxml build works... " >&6; } -if test "${php_cv_libxml_build_works+set}" = set; then : +if ${php_cv_libxml_build_works+:} false; then : $as_echo_n "(cached) " >&6 else @@ -95677,7 +96068,7 @@ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } - as_fn_error "build test failed. Please check the config.log for details." "$LINENO" 5 + as_fn_error $? "build test failed. Please check the config.log for details." "$LINENO" 5 fi @@ -95748,10 +96139,10 @@ fi else - as_fn_error "libxml2 version 2.6.11 or greater required." "$LINENO" 5 + as_fn_error $? "libxml2 version 2.6.11 or greater required." "$LINENO" 5 fi else - as_fn_error "xml2-config not found. Use --with-libxml-dir=" "$LINENO" 5 + as_fn_error $? "xml2-config not found. Use --with-libxml-dir=" "$LINENO" 5 fi @@ -95766,7 +96157,7 @@ done if test -z "$EXPAT_DIR"; then - as_fn_error "not found. Please reinstall the expat distribution." "$LINENO" 5 + as_fn_error $? "not found. Please reinstall the expat distribution." "$LINENO" 5 fi @@ -95821,6 +96212,7 @@ if test "$ext_shared" = "yes"; then WDDX_SHARED_LIBADD="-L$ai_p $WDDX_SHARED_LIBADD" + test "x$PHP_RPATH" != "xno" && \ test -n "$ld_runpath_switch" && WDDX_SHARED_LIBADD="$ld_runpath_switch$ai_p $WDDX_SHARED_LIBADD" else @@ -95832,6 +96224,7 @@ if test -n "$unique" && test "`eval $cmd`" = "" ; then eval "LIBPATH$unique=set" + test "x$PHP_RPATH" != "xno" && test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" LDFLAGS="$LDFLAGS -L$ai_p" PHP_RPATHS="$PHP_RPATHS $ai_p" @@ -95871,6 +96264,7 @@ if test -n "$unique" && test "`eval $cmd`" = "" ; then eval "LIBPATH$unique=set" + test "x$PHP_RPATH" != "xno" && test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" LDFLAGS="$LDFLAGS -L$ai_p" PHP_RPATHS="$PHP_RPATHS $ai_p" @@ -96203,7 +96597,7 @@ is_it_shared=$PHP_LIBXML_SHARED is_it_enabled=$PHP_LIBXML if test "$am_i_shared" = "no" && test "$is_it_shared" = "yes" ; then - as_fn_error " + as_fn_error $? " You've configured extension wddx to build statically, but it depends on extension libxml, which you've configured to build shared. You either need to build wddx shared or build libxml statically for the @@ -96211,7 +96605,7 @@ " "$LINENO" 5 fi if test "x$is_it_enabled" = "xno" && test "x" != "xtrue"; then - as_fn_error " + as_fn_error $? " You've configured extension wddx, which depends on extension libxml, but you've either not enabled libxml, or have disabled it. " "$LINENO" 5 @@ -96322,13 +96716,13 @@ if test "$PHP_LIBEXPAT_DIR" = "no"; then if test "$PHP_LIBXML" = "no"; then - as_fn_error "XML extension requires LIBXML extension, add --enable-libxml" "$LINENO" 5 + as_fn_error $? "XML extension requires LIBXML extension, add --enable-libxml" "$LINENO" 5 fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xml2-config path" >&5 $as_echo_n "checking for xml2-config path... " >&6; } -if test "${ac_cv_php_xml2_config_path+set}" = set; then : +if ${ac_cv_php_xml2_config_path+:} false; then : $as_echo_n "(cached) " >&6 else @@ -96417,6 +96811,7 @@ if test "$ext_shared" = "yes"; then XML_SHARED_LIBADD="-L$ai_p $XML_SHARED_LIBADD" + test "x$PHP_RPATH" != "xno" && \ test -n "$ld_runpath_switch" && XML_SHARED_LIBADD="$ld_runpath_switch$ai_p $XML_SHARED_LIBADD" else @@ -96428,6 +96823,7 @@ if test -n "$unique" && test "`eval $cmd`" = "" ; then eval "LIBPATH$unique=set" + test "x$PHP_RPATH" != "xno" && test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" LDFLAGS="$LDFLAGS -L$ai_p" PHP_RPATHS="$PHP_RPATHS $ai_p" @@ -96486,7 +96882,7 @@ { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libxml build works" >&5 $as_echo_n "checking whether libxml build works... " >&6; } -if test "${php_cv_libxml_build_works+set}" = set; then : +if ${php_cv_libxml_build_works+:} false; then : $as_echo_n "(cached) " >&6 else @@ -96524,7 +96920,7 @@ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } - as_fn_error "build test failed. Please check the config.log for details." "$LINENO" 5 + as_fn_error $? "build test failed. Please check the config.log for details." "$LINENO" 5 fi @@ -96549,7 +96945,7 @@ is_it_shared=$PHP_LIBXML_SHARED is_it_enabled=$PHP_LIBXML if test "$am_i_shared" = "no" && test "$is_it_shared" = "yes" ; then - as_fn_error " + as_fn_error $? " You've configured extension xml to build statically, but it depends on extension libxml, which you've configured to build shared. You either need to build xml shared or build libxml statically for the @@ -96557,7 +96953,7 @@ " "$LINENO" 5 fi if test "x$is_it_enabled" = "xno" && test "x" != "xtrue"; then - as_fn_error " + as_fn_error $? " You've configured extension xml, which depends on extension libxml, but you've either not enabled libxml, or have disabled it. " "$LINENO" 5 @@ -96565,10 +96961,10 @@ else - as_fn_error "libxml2 version 2.6.11 or greater required." "$LINENO" 5 + as_fn_error $? "libxml2 version 2.6.11 or greater required." "$LINENO" 5 fi else - as_fn_error "xml2-config not found. Use --with-libxml-dir=" "$LINENO" 5 + as_fn_error $? "xml2-config not found. Use --with-libxml-dir=" "$LINENO" 5 fi @@ -96583,7 +96979,7 @@ done if test -z "$EXPAT_DIR"; then - as_fn_error "not found. Please reinstall the expat distribution." "$LINENO" 5 + as_fn_error $? "not found. Please reinstall the expat distribution." "$LINENO" 5 fi @@ -96638,6 +97034,7 @@ if test "$ext_shared" = "yes"; then XML_SHARED_LIBADD="-L$ai_p $XML_SHARED_LIBADD" + test "x$PHP_RPATH" != "xno" && \ test -n "$ld_runpath_switch" && XML_SHARED_LIBADD="$ld_runpath_switch$ai_p $XML_SHARED_LIBADD" else @@ -96649,6 +97046,7 @@ if test -n "$unique" && test "`eval $cmd`" = "" ; then eval "LIBPATH$unique=set" + test "x$PHP_RPATH" != "xno" && test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" LDFLAGS="$LDFLAGS -L$ai_p" PHP_RPATHS="$PHP_RPATHS $ai_p" @@ -96688,6 +97086,7 @@ if test -n "$unique" && test "`eval $cmd`" = "" ; then eval "LIBPATH$unique=set" + test "x$PHP_RPATH" != "xno" && test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" LDFLAGS="$LDFLAGS -L$ai_p" PHP_RPATHS="$PHP_RPATHS $ai_p" @@ -97112,13 +97511,13 @@ if test "$PHP_XMLREADER" != "no"; then if test "$PHP_LIBXML" = "no"; then - as_fn_error "XMLReader extension requires LIBXML extension, add --enable-libxml" "$LINENO" 5 + as_fn_error $? "XMLReader extension requires LIBXML extension, add --enable-libxml" "$LINENO" 5 fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xml2-config path" >&5 $as_echo_n "checking for xml2-config path... " >&6; } -if test "${ac_cv_php_xml2_config_path+set}" = set; then : +if ${ac_cv_php_xml2_config_path+:} false; then : $as_echo_n "(cached) " >&6 else @@ -97207,6 +97606,7 @@ if test "$ext_shared" = "yes"; then XMLREADER_SHARED_LIBADD="-L$ai_p $XMLREADER_SHARED_LIBADD" + test "x$PHP_RPATH" != "xno" && \ test -n "$ld_runpath_switch" && XMLREADER_SHARED_LIBADD="$ld_runpath_switch$ai_p $XMLREADER_SHARED_LIBADD" else @@ -97218,6 +97618,7 @@ if test -n "$unique" && test "`eval $cmd`" = "" ; then eval "LIBPATH$unique=set" + test "x$PHP_RPATH" != "xno" && test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" LDFLAGS="$LDFLAGS -L$ai_p" PHP_RPATHS="$PHP_RPATHS $ai_p" @@ -97276,7 +97677,7 @@ { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libxml build works" >&5 $as_echo_n "checking whether libxml build works... " >&6; } -if test "${php_cv_libxml_build_works+set}" = set; then : +if ${php_cv_libxml_build_works+:} false; then : $as_echo_n "(cached) " >&6 else @@ -97314,7 +97715,7 @@ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } - as_fn_error "build test failed. Please check the config.log for details." "$LINENO" 5 + as_fn_error $? "build test failed. Please check the config.log for details." "$LINENO" 5 fi @@ -97634,7 +98035,7 @@ is_it_shared=$PHP_DOM_SHARED is_it_enabled=$PHP_DOM if test "$am_i_shared" = "no" && test "$is_it_shared" = "yes" ; then - as_fn_error " + as_fn_error $? " You've configured extension xmlreader to build statically, but it depends on extension dom, which you've configured to build shared. You either need to build xmlreader shared or build dom statically for the @@ -97642,7 +98043,7 @@ " "$LINENO" 5 fi if test "x$is_it_enabled" = "xno" && test "xtrue" != "xtrue"; then - as_fn_error " + as_fn_error $? " You've configured extension xmlreader, which depends on extension dom, but you've either not enabled dom, or have disabled it. " "$LINENO" 5 @@ -97653,10 +98054,10 @@ else - as_fn_error "libxml2 version 2.6.11 or greater required." "$LINENO" 5 + as_fn_error $? "libxml2 version 2.6.11 or greater required." "$LINENO" 5 fi else - as_fn_error "xml2-config not found. Please check your libxml2 installation." "$LINENO" 5 + as_fn_error $? "xml2-config not found. Please check your libxml2 installation." "$LINENO" 5 fi @@ -97802,7 +98203,7 @@ is_it_shared=$PHP_LIBXML_SHARED is_it_enabled=$PHP_LIBXML if test "$am_i_shared" = "no" && test "$is_it_shared" = "yes" ; then - as_fn_error " + as_fn_error $? " You've configured extension xmlrpc to build statically, but it depends on extension libxml, which you've configured to build shared. You either need to build xmlrpc shared or build libxml statically for the @@ -97810,7 +98211,7 @@ " "$LINENO" 5 fi if test "x$is_it_enabled" = "xno" && test "x" != "xtrue"; then - as_fn_error " + as_fn_error $? " You've configured extension xmlrpc, which depends on extension libxml, but you've either not enabled libxml, or have disabled it. " "$LINENO" 5 @@ -97826,13 +98227,13 @@ if test "$PHP_LIBEXPAT_DIR" = "no"; then if test "$PHP_LIBXML" = "no"; then - as_fn_error "XML-RPC extension requires LIBXML extension, add --enable-libxml" "$LINENO" 5 + as_fn_error $? "XML-RPC extension requires LIBXML extension, add --enable-libxml" "$LINENO" 5 fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xml2-config path" >&5 $as_echo_n "checking for xml2-config path... " >&6; } -if test "${ac_cv_php_xml2_config_path+set}" = set; then : +if ${ac_cv_php_xml2_config_path+:} false; then : $as_echo_n "(cached) " >&6 else @@ -97921,6 +98322,7 @@ if test "$ext_shared" = "yes"; then XMLRPC_SHARED_LIBADD="-L$ai_p $XMLRPC_SHARED_LIBADD" + test "x$PHP_RPATH" != "xno" && \ test -n "$ld_runpath_switch" && XMLRPC_SHARED_LIBADD="$ld_runpath_switch$ai_p $XMLRPC_SHARED_LIBADD" else @@ -97932,6 +98334,7 @@ if test -n "$unique" && test "`eval $cmd`" = "" ; then eval "LIBPATH$unique=set" + test "x$PHP_RPATH" != "xno" && test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" LDFLAGS="$LDFLAGS -L$ai_p" PHP_RPATHS="$PHP_RPATHS $ai_p" @@ -97990,7 +98393,7 @@ { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libxml build works" >&5 $as_echo_n "checking whether libxml build works... " >&6; } -if test "${php_cv_libxml_build_works+set}" = set; then : +if ${php_cv_libxml_build_works+:} false; then : $as_echo_n "(cached) " >&6 else @@ -98028,7 +98431,7 @@ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } - as_fn_error "build test failed. Please check the config.log for details." "$LINENO" 5 + as_fn_error $? "build test failed. Please check the config.log for details." "$LINENO" 5 fi @@ -98099,10 +98502,10 @@ fi else - as_fn_error "libxml2 version 2.6.11 or greater required." "$LINENO" 5 + as_fn_error $? "libxml2 version 2.6.11 or greater required." "$LINENO" 5 fi else - as_fn_error "xml2-config not found. Use --with-libxml-dir=" "$LINENO" 5 + as_fn_error $? "xml2-config not found. Use --with-libxml-dir=" "$LINENO" 5 fi @@ -98134,6 +98537,7 @@ if test "$ext_shared" = "yes"; then XMLRPC_SHARED_LIBADD="-L$ai_p $XMLRPC_SHARED_LIBADD" + test "x$PHP_RPATH" != "xno" && \ test -n "$ld_runpath_switch" && XMLRPC_SHARED_LIBADD="$ld_runpath_switch$ai_p $XMLRPC_SHARED_LIBADD" else @@ -98145,6 +98549,7 @@ if test -n "$unique" && test "`eval $cmd`" = "" ; then eval "LIBPATH$unique=set" + test "x$PHP_RPATH" != "xno" && test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" LDFLAGS="$LDFLAGS -L$ai_p" PHP_RPATHS="$PHP_RPATHS $ai_p" @@ -98184,6 +98589,7 @@ if test -n "$unique" && test "`eval $cmd`" = "" ; then eval "LIBPATH$unique=set" + test "x$PHP_RPATH" != "xno" && test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" LDFLAGS="$LDFLAGS -L$ai_p" PHP_RPATHS="$PHP_RPATHS $ai_p" @@ -98247,7 +98653,7 @@ done if test "$testval" = "no"; then - as_fn_error "XML-RPC support requires libexpat. Use --with-libexpat-dir= (deprecated!)" "$LINENO" 5 + as_fn_error $? "XML-RPC support requires libexpat. Use --with-libexpat-dir= (deprecated!)" "$LINENO" 5 fi fi @@ -98283,14 +98689,14 @@ LIBS_save="$LIBS" LIBS= ac_fn_c_check_func "$LINENO" "iconv" "ac_cv_func_iconv" -if test "x$ac_cv_func_iconv" = x""yes; then : +if test "x$ac_cv_func_iconv" = xyes; then : found_iconv=yes else ac_fn_c_check_func "$LINENO" "libiconv" "ac_cv_func_libiconv" -if test "x$ac_cv_func_libiconv" = x""yes; then : +if test "x$ac_cv_func_libiconv" = xyes; then : echo "#define HAVE_LIBICONV 1" > ext/iconv/php_have_libiconv.h @@ -98326,7 +98732,7 @@ done if test -z "$ICONV_DIR"; then - as_fn_error "Please specify the install prefix of iconv with --with-iconv=" "$LINENO" 5 + as_fn_error $? "Please specify the install prefix of iconv with --with-iconv=" "$LINENO" 5 fi if test -f $ICONV_DIR/$PHP_LIBDIR/lib$iconv_lib_name.a || @@ -98403,6 +98809,7 @@ if test "$ext_shared" = "yes"; then LDFLAGS="-L$ai_p $LDFLAGS" + test "x$PHP_RPATH" != "xno" && \ test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS" else @@ -98414,6 +98821,7 @@ if test -n "$unique" && test "`eval $cmd`" = "" ; then eval "LIBPATH$unique=set" + test "x$PHP_RPATH" != "xno" && test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" LDFLAGS="$LDFLAGS -L$ai_p" PHP_RPATHS="$PHP_RPATHS $ai_p" @@ -98432,7 +98840,7 @@ as_ac_Lib=`$as_echo "ac_cv_lib_$iconv_lib_name''_libiconv" | $as_tr_sh` { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libiconv in -l$iconv_lib_name" >&5 $as_echo_n "checking for libiconv in -l$iconv_lib_name... " >&6; } -if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then : +if eval \${$as_ac_Lib+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS @@ -98467,8 +98875,7 @@ eval ac_res=\$$as_ac_Lib { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 $as_echo "$ac_res" >&6; } -eval as_val=\$$as_ac_Lib - if test "x$as_val" = x""yes; then : +if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : LDFLAGS=$save_old_LDFLAGS ext_shared=$save_ext_shared @@ -98565,6 +98972,7 @@ if test "$ext_shared" = "yes"; then LDFLAGS="-L$ai_p $LDFLAGS" + test "x$PHP_RPATH" != "xno" && \ test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS" else @@ -98576,6 +98984,7 @@ if test -n "$unique" && test "`eval $cmd`" = "" ; then eval "LIBPATH$unique=set" + test "x$PHP_RPATH" != "xno" && test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" LDFLAGS="$LDFLAGS -L$ai_p" PHP_RPATHS="$PHP_RPATHS $ai_p" @@ -98594,7 +99003,7 @@ as_ac_Lib=`$as_echo "ac_cv_lib_$iconv_lib_name''_iconv" | $as_tr_sh` { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv in -l$iconv_lib_name" >&5 $as_echo_n "checking for iconv in -l$iconv_lib_name... " >&6; } -if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then : +if eval \${$as_ac_Lib+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS @@ -98629,8 +99038,7 @@ eval ac_res=\$$as_ac_Lib { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 $as_echo "$ac_res" >&6; } -eval as_val=\$$as_ac_Lib - if test "x$as_val" = x""yes; then : +if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : LDFLAGS=$save_old_LDFLAGS ext_shared=$save_ext_shared @@ -98683,6 +99091,7 @@ if test "$ext_shared" = "yes"; then XMLRPC_SHARED_LIBADD="-L$ai_p $XMLRPC_SHARED_LIBADD" + test "x$PHP_RPATH" != "xno" && \ test -n "$ld_runpath_switch" && XMLRPC_SHARED_LIBADD="$ld_runpath_switch$ai_p $XMLRPC_SHARED_LIBADD" else @@ -98694,6 +99103,7 @@ if test -n "$unique" && test "`eval $cmd`" = "" ; then eval "LIBPATH$unique=set" + test "x$PHP_RPATH" != "xno" && test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" LDFLAGS="$LDFLAGS -L$ai_p" PHP_RPATHS="$PHP_RPATHS $ai_p" @@ -98733,6 +99143,7 @@ if test -n "$unique" && test "`eval $cmd`" = "" ; then eval "LIBPATH$unique=set" + test "x$PHP_RPATH" != "xno" && test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" LDFLAGS="$LDFLAGS -L$ai_p" PHP_RPATHS="$PHP_RPATHS $ai_p" @@ -98793,7 +99204,7 @@ fi else - as_fn_error "iconv not found, in order to build xmlrpc you need the iconv library" "$LINENO" 5 + as_fn_error $? "iconv not found, in order to build xmlrpc you need the iconv library" "$LINENO" 5 fi @@ -98806,7 +99217,7 @@ set dummy ${ac_tool_prefix}ranlib; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } -if test "${ac_cv_prog_RANLIB+set}" = set; then : +if ${ac_cv_prog_RANLIB+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$RANLIB"; then @@ -98818,7 +99229,7 @@ IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 @@ -98846,7 +99257,7 @@ set dummy ranlib; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } -if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then : +if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$ac_ct_RANLIB"; then @@ -98858,7 +99269,7 @@ IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_RANLIB="ranlib" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 @@ -98895,7 +99306,7 @@ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5 $as_echo_n "checking for inline... " >&6; } -if test "${ac_cv_c_inline+set}" = set; then : +if ${ac_cv_c_inline+:} false; then : $as_echo_n "(cached) " >&6 else ac_cv_c_inline=no @@ -98948,7 +99359,7 @@ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 $as_echo_n "checking for ANSI C header files... " >&6; } -if test "${ac_cv_header_stdc+set}" = set; then : +if ${ac_cv_header_stdc+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -99062,8 +99473,7 @@ do : as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" -eval as_val=\$$as_ac_Header - if test "x$as_val" = x""yes; then : +if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : cat >>confdefs.h <<_ACEOF #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 _ACEOF @@ -99083,7 +99493,7 @@ # This bug is HP SR number 8606223364. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5 $as_echo_n "checking size of char... " >&6; } -if test "${ac_cv_sizeof_char+set}" = set; then : +if ${ac_cv_sizeof_char+:} false; then : $as_echo_n "(cached) " >&6 else if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char" "$ac_includes_default"; then : @@ -99092,9 +99502,8 @@ if test "$ac_cv_type_char" = yes; then { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} -{ as_fn_set_status 77 -as_fn_error "cannot compute sizeof (char) -See \`config.log' for more details." "$LINENO" 5; }; } +as_fn_error 77 "cannot compute sizeof (char) +See \`config.log' for more details" "$LINENO" 5; } else ac_cv_sizeof_char=0 fi @@ -99118,7 +99527,7 @@ # This bug is HP SR number 8606223364. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5 $as_echo_n "checking size of int... " >&6; } -if test "${ac_cv_sizeof_int+set}" = set; then : +if ${ac_cv_sizeof_int+:} false; then : $as_echo_n "(cached) " >&6 else if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then : @@ -99127,9 +99536,8 @@ if test "$ac_cv_type_int" = yes; then { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} -{ as_fn_set_status 77 -as_fn_error "cannot compute sizeof (int) -See \`config.log' for more details." "$LINENO" 5; }; } +as_fn_error 77 "cannot compute sizeof (int) +See \`config.log' for more details" "$LINENO" 5; } else ac_cv_sizeof_int=0 fi @@ -99152,7 +99560,7 @@ # This bug is HP SR number 8606223364. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5 $as_echo_n "checking size of long... " >&6; } -if test "${ac_cv_sizeof_long+set}" = set; then : +if ${ac_cv_sizeof_long+:} false; then : $as_echo_n "(cached) " >&6 else if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then : @@ -99161,9 +99569,8 @@ if test "$ac_cv_type_long" = yes; then { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} -{ as_fn_set_status 77 -as_fn_error "cannot compute sizeof (long) -See \`config.log' for more details." "$LINENO" 5; }; } +as_fn_error 77 "cannot compute sizeof (long) +See \`config.log' for more details" "$LINENO" 5; } else ac_cv_sizeof_long=0 fi @@ -99186,7 +99593,7 @@ # This bug is HP SR number 8606223364. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5 $as_echo_n "checking size of long long... " >&6; } -if test "${ac_cv_sizeof_long_long+set}" = set; then : +if ${ac_cv_sizeof_long_long+:} false; then : $as_echo_n "(cached) " >&6 else if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then : @@ -99195,9 +99602,8 @@ if test "$ac_cv_type_long_long" = yes; then { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} -{ as_fn_set_status 77 -as_fn_error "cannot compute sizeof (long long) -See \`config.log' for more details." "$LINENO" 5; }; } +as_fn_error 77 "cannot compute sizeof (long long) +See \`config.log' for more details" "$LINENO" 5; } else ac_cv_sizeof_long_long=0 fi @@ -99215,7 +99621,7 @@ ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" -if test "x$ac_cv_type_size_t" = x""yes; then : +if test "x$ac_cv_type_size_t" = xyes; then : else @@ -99227,7 +99633,7 @@ { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; } -if test "${ac_cv_header_time+set}" = set; then : +if ${ac_cv_header_time+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -99262,7 +99668,7 @@ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5 $as_echo_n "checking for uid_t in sys/types.h... " >&6; } -if test "${ac_cv_type_uid_t+set}" = set; then : +if ${ac_cv_type_uid_t+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -99303,8 +99709,7 @@ do : as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" -eval as_val=\$$as_ac_var - if test "x$as_val" = x""yes; then : +if eval test \"x\$"$as_ac_var"\" = x"yes"; then : cat >>confdefs.h <<_ACEOF #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 _ACEOF @@ -99657,7 +100062,7 @@ if test -z "$XMLRPC_DIR"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 $as_echo "not found" >&6; } - as_fn_error "Please reinstall the XMLRPC-EPI distribution" "$LINENO" 5 + as_fn_error $? "Please reinstall the XMLRPC-EPI distribution" "$LINENO" 5 fi @@ -99712,6 +100117,7 @@ if test "$ext_shared" = "yes"; then XMLRPC_SHARED_LIBADD="-L$ai_p $XMLRPC_SHARED_LIBADD" + test "x$PHP_RPATH" != "xno" && \ test -n "$ld_runpath_switch" && XMLRPC_SHARED_LIBADD="$ld_runpath_switch$ai_p $XMLRPC_SHARED_LIBADD" else @@ -99723,6 +100129,7 @@ if test -n "$unique" && test "`eval $cmd`" = "" ; then eval "LIBPATH$unique=set" + test "x$PHP_RPATH" != "xno" && test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" LDFLAGS="$LDFLAGS -L$ai_p" PHP_RPATHS="$PHP_RPATHS $ai_p" @@ -99762,6 +100169,7 @@ if test -n "$unique" && test "`eval $cmd`" = "" ; then eval "LIBPATH$unique=set" + test "x$PHP_RPATH" != "xno" && test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" LDFLAGS="$LDFLAGS -L$ai_p" PHP_RPATHS="$PHP_RPATHS $ai_p" @@ -100158,13 +100566,13 @@ if test "$PHP_XMLWRITER" != "no"; then if test "$PHP_LIBXML" = "no"; then - as_fn_error "XMLWriter extension requires LIBXML extension, add --enable-libxml" "$LINENO" 5 + as_fn_error $? "XMLWriter extension requires LIBXML extension, add --enable-libxml" "$LINENO" 5 fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xml2-config path" >&5 $as_echo_n "checking for xml2-config path... " >&6; } -if test "${ac_cv_php_xml2_config_path+set}" = set; then : +if ${ac_cv_php_xml2_config_path+:} false; then : $as_echo_n "(cached) " >&6 else @@ -100253,6 +100661,7 @@ if test "$ext_shared" = "yes"; then XMLWRITER_SHARED_LIBADD="-L$ai_p $XMLWRITER_SHARED_LIBADD" + test "x$PHP_RPATH" != "xno" && \ test -n "$ld_runpath_switch" && XMLWRITER_SHARED_LIBADD="$ld_runpath_switch$ai_p $XMLWRITER_SHARED_LIBADD" else @@ -100264,6 +100673,7 @@ if test -n "$unique" && test "`eval $cmd`" = "" ; then eval "LIBPATH$unique=set" + test "x$PHP_RPATH" != "xno" && test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" LDFLAGS="$LDFLAGS -L$ai_p" PHP_RPATHS="$PHP_RPATHS $ai_p" @@ -100322,7 +100732,7 @@ { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libxml build works" >&5 $as_echo_n "checking whether libxml build works... " >&6; } -if test "${php_cv_libxml_build_works+set}" = set; then : +if ${php_cv_libxml_build_works+:} false; then : $as_echo_n "(cached) " >&6 else @@ -100360,7 +100770,7 @@ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } - as_fn_error "build test failed. Please check the config.log for details." "$LINENO" 5 + as_fn_error $? "build test failed. Please check the config.log for details." "$LINENO" 5 fi @@ -100680,10 +101090,10 @@ else - as_fn_error "libxml2 version 2.6.11 or greater required." "$LINENO" 5 + as_fn_error $? "libxml2 version 2.6.11 or greater required." "$LINENO" 5 fi else - as_fn_error "xml2-config not found. Please check your libxml2 installation." "$LINENO" 5 + as_fn_error $? "xml2-config not found. Please check your libxml2 installation." "$LINENO" 5 fi @@ -100738,11 +101148,11 @@ if test "$PHP_XSL" != "no"; then if test "$PHP_LIBXML" = "no"; then - as_fn_error "XSL extension requires LIBXML extension, add --enable-libxml" "$LINENO" 5 + as_fn_error $? "XSL extension requires LIBXML extension, add --enable-libxml" "$LINENO" 5 fi if test "$PHP_DOM" = "no"; then - as_fn_error "XSL extension requires DOM extension, add --enable-dom" "$LINENO" 5 + as_fn_error $? "XSL extension requires DOM extension, add --enable-dom" "$LINENO" 5 fi for i in $PHP_XSL /usr/local /usr; do @@ -100753,7 +101163,7 @@ done if test -z "$XSLT_CONFIG"; then - as_fn_error "xslt-config not found. Please reinstall the libxslt >= 1.1.0 distribution" "$LINENO" 5 + as_fn_error $? "xslt-config not found. Please reinstall the libxslt >= 1.1.0 distribution" "$LINENO" 5 else libxslt_full_version=`$XSLT_CONFIG --version` ac_IFS=$IFS @@ -100827,6 +101237,7 @@ if test "$ext_shared" = "yes"; then XSL_SHARED_LIBADD="-L$ai_p $XSL_SHARED_LIBADD" + test "x$PHP_RPATH" != "xno" && \ test -n "$ld_runpath_switch" && XSL_SHARED_LIBADD="$ld_runpath_switch$ai_p $XSL_SHARED_LIBADD" else @@ -100838,6 +101249,7 @@ if test -n "$unique" && test "`eval $cmd`" = "" ; then eval "LIBPATH$unique=set" + test "x$PHP_RPATH" != "xno" && test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" LDFLAGS="$LDFLAGS -L$ai_p" PHP_RPATHS="$PHP_RPATHS $ai_p" @@ -100929,6 +101341,7 @@ if test "$ext_shared" = "yes"; then XSL_SHARED_LIBADD="-L$ai_p $XSL_SHARED_LIBADD" + test "x$PHP_RPATH" != "xno" && \ test -n "$ld_runpath_switch" && XSL_SHARED_LIBADD="$ld_runpath_switch$ai_p $XSL_SHARED_LIBADD" else @@ -100940,6 +101353,7 @@ if test -n "$unique" && test "`eval $cmd`" = "" ; then eval "LIBPATH$unique=set" + test "x$PHP_RPATH" != "xno" && test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" LDFLAGS="$LDFLAGS -L$ai_p" PHP_RPATHS="$PHP_RPATHS $ai_p" @@ -100979,6 +101393,7 @@ if test -n "$unique" && test "`eval $cmd`" = "" ; then eval "LIBPATH$unique=set" + test "x$PHP_RPATH" != "xno" && test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" LDFLAGS="$LDFLAGS -L$ai_p" PHP_RPATHS="$PHP_RPATHS $ai_p" @@ -101041,7 +101456,7 @@ fi else - as_fn_error "libxslt version 1.1.0 or greater required." "$LINENO" 5 + as_fn_error $? "libxslt version 1.1.0 or greater required." "$LINENO" 5 fi @@ -101351,7 +101766,7 @@ is_it_shared=$PHP_LIBXML_SHARED is_it_enabled=$PHP_LIBXML if test "$am_i_shared" = "no" && test "$is_it_shared" = "yes" ; then - as_fn_error " + as_fn_error $? " You've configured extension xsl to build statically, but it depends on extension libxml, which you've configured to build shared. You either need to build xsl shared or build libxml statically for the @@ -101359,7 +101774,7 @@ " "$LINENO" 5 fi if test "x$is_it_enabled" = "xno" && test "x" != "xtrue"; then - as_fn_error " + as_fn_error $? " You've configured extension xsl, which depends on extension libxml, but you've either not enabled libxml, or have disabled it. " "$LINENO" 5 @@ -101472,7 +101887,7 @@ PHP_ZLIB_DIR="$PHP_ZLIB_DIR" PHP_ZLIB_INCDIR="$PHP_ZLIB_DIR/include" else - as_fn_error "Can not find zlib headers under \"$PHP_ZLIB_DIR\"" "$LINENO" 5 + as_fn_error $? "Can not find zlib headers under \"$PHP_ZLIB_DIR\"" "$LINENO" 5 fi else for i in /usr/local /usr; do @@ -101489,7 +101904,7 @@ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the location of zlib" >&5 $as_echo_n "checking for the location of zlib... " >&6; } if test "$PHP_ZLIB_DIR" = "no"; then - as_fn_error "zip support requires ZLIB. Use --with-zlib-dir= to specify prefix where ZLIB include and library are located" "$LINENO" 5 + as_fn_error $? "zip support requires ZLIB. Use --with-zlib-dir= to specify prefix where ZLIB include and library are located" "$LINENO" 5 else { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PHP_ZLIB_DIR" >&5 $as_echo "$PHP_ZLIB_DIR" >&6; } @@ -101514,6 +101929,7 @@ if test "$ext_shared" = "yes"; then ZIP_SHARED_LIBADD="-L$ai_p $ZIP_SHARED_LIBADD" + test "x$PHP_RPATH" != "xno" && \ test -n "$ld_runpath_switch" && ZIP_SHARED_LIBADD="$ld_runpath_switch$ai_p $ZIP_SHARED_LIBADD" else @@ -101525,6 +101941,7 @@ if test -n "$unique" && test "`eval $cmd`" = "" ; then eval "LIBPATH$unique=set" + test "x$PHP_RPATH" != "xno" && test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" LDFLAGS="$LDFLAGS -L$ai_p" PHP_RPATHS="$PHP_RPATHS $ai_p" @@ -101564,6 +101981,7 @@ if test -n "$unique" && test "`eval $cmd`" = "" ; then eval "LIBPATH$unique=set" + test "x$PHP_RPATH" != "xno" && test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" LDFLAGS="$LDFLAGS -L$ai_p" PHP_RPATHS="$PHP_RPATHS $ai_p" @@ -102445,7 +102863,7 @@ $as_echo_n "checking whether $php_typename exists... " >&6; } php_cache_value=php_cv_sizeof_$php_typename - if { as_var=php_cv_sizeof_$php_typename; eval "test \"\${$as_var+set}\" = set"; }; then : + if eval \${php_cv_sizeof_$php_typename+:} false; then : $as_echo_n "(cached) " >&6 else @@ -102600,6 +103018,7 @@ if test "$ext_shared" = "yes"; then LDFLAGS="-L$ai_p $LDFLAGS" + test "x$PHP_RPATH" != "xno" && \ test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS" else @@ -102611,6 +103030,7 @@ if test -n "$unique" && test "`eval $cmd`" = "" ; then eval "LIBPATH$unique=set" + test "x$PHP_RPATH" != "xno" && test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p" LDFLAGS="$LDFLAGS -L$ai_p" PHP_RPATHS="$PHP_RPATHS $ai_p" @@ -102629,7 +103049,7 @@ as_ac_Lib=`$as_echo "ac_cv_lib_$MYSQL_LIBNAME''_hash_insert" | $as_tr_sh` { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hash_insert in -l$MYSQL_LIBNAME" >&5 $as_echo_n "checking for hash_insert in -l$MYSQL_LIBNAME... " >&6; } -if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then : +if eval \${$as_ac_Lib+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS @@ -102664,8 +103084,7 @@ eval ac_res=\$$as_ac_Lib { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 $as_echo "$ac_res" >&6; } -eval as_val=\$$as_ac_Lib - if test "x$as_val" = x""yes; then : +if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : LDFLAGS=$save_old_LDFLAGS ext_shared=$save_ext_shared @@ -102685,7 +103104,8 @@ fi if test -n "$recode_conflict"; then - as_fn_error "recode extension can not be configured together with:$recode_conflict" "$LINENO" 5 + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: recode extension can not be used together with:$recode_conflict" >&5 +$as_echo "$as_me: WARNING: recode extension can not be used together with:$recode_conflict" >&2;} fi fi @@ -102803,7 +103223,7 @@ if test "$pear_error_msg"; then - as_fn_error "$pear_error_msg" "$LINENO" 5 + as_fn_error $? "$pear_error_msg" "$LINENO" 5 fi install_pear="install-pear" @@ -102812,7 +103232,7 @@ if test "$PHP_PEAR" = "DEFAULT" || test "$PHP_PEAR" = "yes"; then case $PHP_LAYOUT in GNU) PEAR_INSTALLDIR=$datadir/pear;; - *) PEAR_INSTALLDIR=$libdir/php;; + *) PEAR_INSTALLDIR=$libdir/php5;; esac fi @@ -102858,7 +103278,7 @@ if test "$YACC"; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bison version" >&5 $as_echo_n "checking for bison version... " >&6; } -if test "${php_cv_bison_version+set}" = set; then : +if ${php_cv_bison_version+:} false; then : $as_echo_n "(cached) " >&6 else @@ -102914,8 +103334,7 @@ do : as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" -eval as_val=\$$as_ac_Header - if test "x$as_val" = x""yes; then : +if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : cat >>confdefs.h <<_ACEOF #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 _ACEOF @@ -102926,7 +103345,7 @@ ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" -if test "x$ac_cv_type_size_t" = x""yes; then : +if test "x$ac_cv_type_size_t" = xyes; then : else @@ -102938,7 +103357,7 @@ { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5 $as_echo_n "checking return type of signal handlers... " >&6; } -if test "${ac_cv_type_signal+set}" = set; then : +if ${ac_cv_type_signal+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -102975,7 +103394,7 @@ ac_fn_c_check_type "$LINENO" "uint" "ac_cv_type_uint" "$ac_includes_default" -if test "x$ac_cv_type_uint" = x""yes; then : +if test "x$ac_cv_type_uint" = xyes; then : else @@ -102986,7 +103405,7 @@ fi ac_fn_c_check_type "$LINENO" "ulong" "ac_cv_type_ulong" "$ac_includes_default" -if test "x$ac_cv_type_ulong" = x""yes; then : +if test "x$ac_cv_type_ulong" = xyes; then : else @@ -103085,13 +103504,13 @@ for ac_func in vprintf do : ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf" -if test "x$ac_cv_func_vprintf" = x""yes; then : +if test "x$ac_cv_func_vprintf" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_VPRINTF 1 _ACEOF ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt" -if test "x$ac_cv_func__doprnt" = x""yes; then : +if test "x$ac_cv_func__doprnt" = xyes; then : $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h @@ -103103,7 +103522,7 @@ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5 $as_echo_n "checking for working memcmp... " >&6; } -if test "${ac_cv_func_memcmp_working+set}" = set; then : +if ${ac_cv_func_memcmp_working+:} false; then : $as_echo_n "(cached) " >&6 else if test "$cross_compiling" = yes; then : @@ -103167,7 +103586,7 @@ # for constant arguments. Useless! { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5 $as_echo_n "checking for working alloca.h... " >&6; } -if test "${ac_cv_working_alloca_h+set}" = set; then : +if ${ac_cv_working_alloca_h+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -103200,7 +103619,7 @@ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5 $as_echo_n "checking for alloca... " >&6; } -if test "${ac_cv_func_alloca_works+set}" = set; then : +if ${ac_cv_func_alloca_works+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -103219,7 +103638,7 @@ #pragma alloca # else # ifndef alloca /* predefined by HP cc +Olibcalls */ -char *alloca (); +void *alloca (size_t); # endif # endif # endif @@ -103263,7 +103682,7 @@ { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; } -if test "${ac_cv_os_cray+set}" = set; then : +if ${ac_cv_os_cray+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -103290,8 +103709,7 @@ for ac_func in _getb67 GETB67 getb67; do as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" -eval as_val=\$$as_ac_var - if test "x$as_val" = x""yes; then : +if eval test \"x\$"$as_ac_var"\" = x"yes"; then : cat >>confdefs.h <<_ACEOF #define CRAY_STACKSEG_END $ac_func @@ -103305,7 +103723,7 @@ { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5 $as_echo_n "checking stack direction for C alloca... " >&6; } -if test "${ac_cv_c_stack_direction+set}" = set; then : +if ${ac_cv_c_stack_direction+:} false; then : $as_echo_n "(cached) " >&6 else if test "$cross_compiling" = yes; then : @@ -103315,23 +103733,20 @@ /* end confdefs.h. */ $ac_includes_default int -find_stack_direction () +find_stack_direction (int *addr, int depth) { - static char *addr = 0; - auto char dummy; - if (addr == 0) - { - addr = &dummy; - return find_stack_direction (); - } - else - return (&dummy > addr) ? 1 : -1; + int dir, dummy = 0; + if (! addr) + addr = &dummy; + *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1; + dir = depth ? find_stack_direction (addr, depth - 1) : 0; + return dir + dummy; } int -main () +main (int argc, char **argv) { - return find_stack_direction () < 0; + return find_stack_direction (0, argc + !argv + 20) < 0; } _ACEOF if ac_fn_c_try_run "$LINENO"; then : @@ -103357,8 +103772,7 @@ do : as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" -eval as_val=\$$as_ac_var - if test "x$as_val" = x""yes; then : +if eval test \"x\$"$as_ac_var"\" = x"yes"; then : cat >>confdefs.h <<_ACEOF #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 _ACEOF @@ -103369,7 +103783,7 @@ { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sprintf is broken" >&5 $as_echo_n "checking whether sprintf is broken... " >&6; } -if test "${ac_cv_broken_sprintf+set}" = set; then : +if ${ac_cv_broken_sprintf+:} false; then : $as_echo_n "(cached) " >&6 else @@ -103415,8 +103829,7 @@ do : as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" -eval as_val=\$$as_ac_var - if test "x$as_val" = x""yes; then : +if eval test \"x\$"$as_ac_var"\" = x"yes"; then : cat >>confdefs.h <<_ACEOF #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 _ACEOF @@ -103428,7 +103841,7 @@ { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fp_except is defined" >&5 $as_echo_n "checking whether fp_except is defined... " >&6; } -if test "${ac_cv_type_fp_except+set}" = set; then : +if ${ac_cv_type_fp_except+:} false; then : $as_echo_n "(cached) " >&6 else @@ -103742,123 +104155,9 @@ -for ac_header in dlfcn.h -do : - ac_fn_c_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default" -if test "x$ac_cv_header_dlfcn_h" = x""yes; then : - cat >>confdefs.h <<_ACEOF -#define HAVE_DLFCN_H 1 -_ACEOF - -fi - -done - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dlsym() requires a leading underscore in symbol names" >&5 $as_echo_n "checking whether dlsym() requires a leading underscore in symbol names... " >&6; } -if test "$cross_compiling" = yes; then : - -else - lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 - lt_status=$lt_dlunknown - cat > conftest.$ac_ext < -#endif - -#include - -#ifdef RTLD_GLOBAL -# define LT_DLGLOBAL RTLD_GLOBAL -#else -# ifdef DL_GLOBAL -# define LT_DLGLOBAL DL_GLOBAL -# else -# define LT_DLGLOBAL 0 -# endif -#endif - -/* We may have to define LT_DLLAZY_OR_NOW in the command line if we - find out it does not work in some platform. */ -#ifndef LT_DLLAZY_OR_NOW -# ifdef RTLD_LAZY -# define LT_DLLAZY_OR_NOW RTLD_LAZY -# else -# ifdef DL_LAZY -# define LT_DLLAZY_OR_NOW DL_LAZY -# else -# ifdef RTLD_NOW -# define LT_DLLAZY_OR_NOW RTLD_NOW -# else -# ifdef DL_NOW -# define LT_DLLAZY_OR_NOW DL_NOW -# else -# define LT_DLLAZY_OR_NOW 0 -# endif -# endif -# endif -# endif -#endif - -#ifdef __cplusplus -extern "C" void exit (int); -#endif - -void fnord() { int i=42;} -int main () -{ - void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); - int status = $lt_dlunknown; - - if (self) - { - if (dlsym (self,"fnord")) status = $lt_dlno_uscore; - else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; - /* dlclose (self); */ - } - else - puts (dlerror ()); - - exit (status); -} -EOF - if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 - (eval $ac_link) 2>&5 - ac_status=$? - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 - test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then - (./conftest; exit; ) >&5 2>/dev/null - lt_status=$? - case x$lt_status in - x$lt_dlno_uscore) - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } - ;; - x$lt_dlneed_uscore) - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; } - -$as_echo "#define DLSYM_NEEDS_UNDERSCORE 1" >>confdefs.h - - ;; - x$lt_dlunknown|x*) - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } - ;; - esac - else : - # compilation failed - - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } - - fi -fi -rm -fr conftest* @@ -103978,7 +104277,7 @@ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5 $as_echo_n "checking for inline... " >&6; } -if test "${ac_cv_c_inline+set}" = set; then : +if ${ac_cv_c_inline+:} false; then : $as_echo_n "(cached) " >&6 else ac_cv_c_inline=no @@ -104243,7 +104542,7 @@ for ac_func in mremap do : ac_fn_c_check_func "$LINENO" "mremap" "ac_cv_func_mremap" -if test "x$ac_cv_func_mremap" = x""yes; then : +if test "x$ac_cv_func_mremap" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_MREMAP 1 _ACEOF @@ -104266,7 +104565,7 @@ ac_fn_c_check_func "$LINENO" "sigaction" "ac_cv_func_sigaction" -if test "x$ac_cv_func_sigaction" = x""yes; then : +if test "x$ac_cv_func_sigaction" = xyes; then : $as_echo "#define HAVE_SIGACTION 1" >>confdefs.h @@ -104331,7 +104630,7 @@ for ac_header in stdarg.h do : ac_fn_c_check_header_mongrel "$LINENO" "stdarg.h" "ac_cv_header_stdarg_h" "$ac_includes_default" -if test "x$ac_cv_header_stdarg_h" = x""yes; then : +if test "x$ac_cv_header_stdarg_h" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_STDARG_H 1 _ACEOF @@ -104344,7 +104643,7 @@ for ac_func in sigprocmask do : ac_fn_c_check_func "$LINENO" "sigprocmask" "ac_cv_func_sigprocmask" -if test "x$ac_cv_func_sigprocmask" = x""yes; then : +if test "x$ac_cv_func_sigprocmask" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_SIGPROCMASK 1 _ACEOF @@ -104433,14 +104732,14 @@ for ac_header in st.h do : ac_fn_c_check_header_mongrel "$LINENO" "st.h" "ac_cv_header_st_h" "$ac_includes_default" -if test "x$ac_cv_header_st_h" = x""yes; then : +if test "x$ac_cv_header_st_h" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_ST_H 1 _ACEOF else - as_fn_error "Sorry, I was unable to locate the State Threads header file. Please specify the prefix using --with-tsrm-st=/prefix" "$LINENO" 5 + as_fn_error $? "Sorry, I was unable to locate the State Threads header file. Please specify the prefix using --with-tsrm-st=/prefix" "$LINENO" 5 fi @@ -104522,7 +104821,7 @@ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthreads_cflags" >&5 $as_echo_n "checking for pthreads_cflags... " >&6; } -if test "${ac_cv_pthreads_cflags+set}" = set; then : +if ${ac_cv_pthreads_cflags+:} false; then : $as_echo_n "(cached) " >&6 else @@ -104588,7 +104887,7 @@ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthreads_lib" >&5 $as_echo_n "checking for pthreads_lib... " >&6; } -if test "${ac_cv_pthreads_lib+set}" = set; then : +if ${ac_cv_pthreads_lib+:} false; then : $as_echo_n "(cached) " >&6 else @@ -104664,7 +104963,7 @@ else if test "$pthreads_working" != "yes"; then - as_fn_error "Your system seems to lack POSIX threads." "$LINENO" 5 + as_fn_error $? "Your system seems to lack POSIX threads." "$LINENO" 5 fi @@ -104694,12 +104993,12 @@ case $libdir in '${exec_prefix}/lib') - libdir=$libdir/php + libdir=$libdir/php5 ;; esac case $datadir in '${prefix}/share') - datadir=$datadir/php + datadir=$datadir/php5 ;; esac @@ -104717,8 +105016,13 @@ ZEND_MODULE_API_NO=`$EGREP '#define ZEND_MODULE_API_NO ' $srcdir/Zend/zend_modules.h|$SED 's/#define ZEND_MODULE_API_NO //'` +DEBIAN_PHP_API=$ZEND_MODULE_API_NO +if echo "$CPPFLAGS $CFLAGS" | grep -q -- -D_FILE_OFFSET_BITS=64; then + DEBIAN_PHP_API="${DEBIAN_PHP_API}+lfs" +fi + if test -z "$EXTENSION_DIR"; then - extbasedir=$ZEND_MODULE_API_NO + extbasedir=$DEBIAN_PHP_API if test "$oldstyleextdir" = "yes"; then if test "$PHP_DEBUG" = "1"; then part1=debug @@ -104764,7 +105068,7 @@ EXPANDED_DATADIR=$datadir EXPANDED_PHP_CONFIG_FILE_PATH=`eval echo "$PHP_CONFIG_FILE_PATH"` EXPANDED_PHP_CONFIG_FILE_SCAN_DIR=`eval echo "$PHP_CONFIG_FILE_SCAN_DIR"` -INCLUDE_PATH=.:$EXPANDED_PEAR_INSTALLDIR +INCLUDE_PATH=.:$EXPANDED_PEAR_INSTALLDIR:/usr/share/pear exec_prefix=$old_exec_prefix libdir=$old_libdir @@ -105014,6 +105318,12 @@ + PHP_VAR_SUBST="$PHP_VAR_SUBST DEBIAN_PHP_API" + + + + + PHP_VAR_SUBST="$PHP_VAR_SUBST EXTENSION_DIR" @@ -105188,91 +105498,281 @@ esac -# Check whether --enable-shared was given. -if test "${enable_shared+set}" = set; then : - enableval=$enable_shared; p=${PACKAGE-default} - case $enableval in - yes) enable_shared=yes ;; - no) enable_shared=no ;; - *) - enable_shared=no - # Look at the argument we got. We use all the common list separators. - lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," - for pkg in $enableval; do - IFS="$lt_save_ifs" - if test "X$pkg" = "X$p"; then - enable_shared=yes - fi - done - IFS="$lt_save_ifs" - ;; - esac -else - enable_shared=yes -fi +case `pwd` in + *\ * | *\ *) + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 +$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; +esac -# Check whether --enable-static was given. -if test "${enable_static+set}" = set; then : - enableval=$enable_static; p=${PACKAGE-default} - case $enableval in - yes) enable_static=yes ;; - no) enable_static=no ;; - *) - enable_static=no - # Look at the argument we got. We use all the common list separators. - lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," - for pkg in $enableval; do - IFS="$lt_save_ifs" - if test "X$pkg" = "X$p"; then - enable_static=yes - fi - done - IFS="$lt_save_ifs" - ;; - esac -else - enable_static=yes -fi +macro_version='2.4.2' +macro_revision='1.3337' -# Check whether --enable-fast-install was given. -if test "${enable_fast_install+set}" = set; then : - enableval=$enable_fast_install; p=${PACKAGE-default} - case $enableval in - yes) enable_fast_install=yes ;; - no) enable_fast_install=no ;; - *) - enable_fast_install=no - # Look at the argument we got. We use all the common list separators. - lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," - for pkg in $enableval; do - IFS="$lt_save_ifs" - if test "X$pkg" = "X$p"; then - enable_fast_install=yes - fi - done - IFS="$lt_save_ifs" - ;; - esac + + + + + + + + + + + + +ltmain="$ac_aux_dir/ltmain.sh" + +# Backslashify metacharacters that are still active within +# double-quoted strings. +sed_quote_subst='s/\(["`$\\]\)/\\\1/g' + +# Same as above, but do not quote variable references. +double_quote_subst='s/\(["`\\]\)/\\\1/g' + +# Sed substitution to delay expansion of an escaped shell variable in a +# double_quote_subst'ed string. +delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' + +# Sed substitution to delay expansion of an escaped single quote. +delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' + +# Sed substitution to avoid accidental globbing in evaled expressions +no_glob_subst='s/\*/\\\*/g' + +ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' +ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO +ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 +$as_echo_n "checking how to print strings... " >&6; } +# Test print first, because it will be a builtin if present. +if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ + test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then + ECHO='print -r --' +elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then + ECHO='printf %s\n' else - enable_fast_install=yes + # Use this function as a fallback that always works. + func_fallback_echo () + { + eval 'cat <<_LTECHO_EOF +$1 +_LTECHO_EOF' + } + ECHO='func_fallback_echo' fi +# func_echo_all arg... +# Invoke $ECHO with all args, space-separated. +func_echo_all () +{ + $ECHO "" +} +case "$ECHO" in + printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 +$as_echo "printf" >&6; } ;; + print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 +$as_echo "print -r" >&6; } ;; + *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 +$as_echo "cat" >&6; } ;; +esac -# Check whether --with-gnu-ld was given. -if test "${with_gnu_ld+set}" = set; then : - withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes + + + + + + + + + + + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 +$as_echo_n "checking for a sed that does not truncate output... " >&6; } +if ${ac_cv_path_SED+:} false; then : + $as_echo_n "(cached) " >&6 else - with_gnu_ld=no -fi + ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ + for ac_i in 1 2 3 4 5 6 7; do + ac_script="$ac_script$as_nl$ac_script" + done + echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed + { ac_script=; unset ac_script;} + if test -z "$SED"; then + ac_path_SED_found=false + # Loop through the user's path and test for each of PROGNAME-LIST + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_prog in sed gsed; do + for ac_exec_ext in '' $ac_executable_extensions; do + ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" + as_fn_executable_p "$ac_path_SED" || continue +# Check for GNU ac_path_SED and select it if it is found. + # Check for GNU $ac_path_SED +case `"$ac_path_SED" --version 2>&1` in +*GNU*) + ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; +*) + ac_count=0 + $as_echo_n 0123456789 >"conftest.in" + while : + do + cat "conftest.in" "conftest.in" >"conftest.tmp" + mv "conftest.tmp" "conftest.in" + cp "conftest.in" "conftest.nl" + $as_echo '' >> "conftest.nl" + "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break + diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break + as_fn_arith $ac_count + 1 && ac_count=$as_val + if test $ac_count -gt ${ac_path_SED_max-0}; then + # Best one so far, save it but keep looking for a better one + ac_cv_path_SED="$ac_path_SED" + ac_path_SED_max=$ac_count + fi + # 10*(2^10) chars as input seems more than enough + test $ac_count -gt 10 && break + done + rm -f conftest.in conftest.tmp conftest.nl conftest.out;; +esac -ac_prog=ld -if test "$GCC" = yes; then - # Check if gcc -print-prog-name=ld gives a path. - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 -$as_echo_n "checking for ld used by $CC... " >&6; } + $ac_path_SED_found && break 3 + done + done + done +IFS=$as_save_IFS + if test -z "$ac_cv_path_SED"; then + as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 + fi +else + ac_cv_path_SED=$SED +fi + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 +$as_echo "$ac_cv_path_SED" >&6; } + SED="$ac_cv_path_SED" + rm -f conftest.sed + +test -z "$SED" && SED=sed +Xsed="$SED -e 1s/^X//" + + + + + + + + + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 +$as_echo_n "checking for fgrep... " >&6; } +if ${ac_cv_path_FGREP+:} false; then : + $as_echo_n "(cached) " >&6 +else + if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 + then ac_cv_path_FGREP="$GREP -F" + else + if test -z "$FGREP"; then + ac_path_FGREP_found=false + # Loop through the user's path and test for each of PROGNAME-LIST + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_prog in fgrep; do + for ac_exec_ext in '' $ac_executable_extensions; do + ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" + as_fn_executable_p "$ac_path_FGREP" || continue +# Check for GNU ac_path_FGREP and select it if it is found. + # Check for GNU $ac_path_FGREP +case `"$ac_path_FGREP" --version 2>&1` in +*GNU*) + ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; +*) + ac_count=0 + $as_echo_n 0123456789 >"conftest.in" + while : + do + cat "conftest.in" "conftest.in" >"conftest.tmp" + mv "conftest.tmp" "conftest.in" + cp "conftest.in" "conftest.nl" + $as_echo 'FGREP' >> "conftest.nl" + "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break + diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break + as_fn_arith $ac_count + 1 && ac_count=$as_val + if test $ac_count -gt ${ac_path_FGREP_max-0}; then + # Best one so far, save it but keep looking for a better one + ac_cv_path_FGREP="$ac_path_FGREP" + ac_path_FGREP_max=$ac_count + fi + # 10*(2^10) chars as input seems more than enough + test $ac_count -gt 10 && break + done + rm -f conftest.in conftest.tmp conftest.nl conftest.out;; +esac + + $ac_path_FGREP_found && break 3 + done + done + done +IFS=$as_save_IFS + if test -z "$ac_cv_path_FGREP"; then + as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 + fi +else + ac_cv_path_FGREP=$FGREP +fi + + fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 +$as_echo "$ac_cv_path_FGREP" >&6; } + FGREP="$ac_cv_path_FGREP" + + +test -z "$GREP" && GREP=grep + + + + + + + + + + + + + + + + + + + +# Check whether --with-gnu-ld was given. +if test "${with_gnu_ld+set}" = set; then : + withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes +else + with_gnu_ld=no +fi + +ac_prog=ld +if test "$GCC" = yes; then + # Check if gcc -print-prog-name=ld gives a path. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 +$as_echo_n "checking for ld used by $CC... " >&6; } case $host in *-*-mingw*) # gcc leaves a trailing carriage return which upsets mingw @@ -105285,9 +105785,9 @@ [\\/]* | ?:[\\/]*) re_direlt='/[^/][^/]*/\.\./' # Canonicalize the pathname of ld - ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` - while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do - ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` + ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` + while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do + ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` done test -z "$LD" && LD="$ac_prog" ;; @@ -105307,7 +105807,7 @@ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 $as_echo_n "checking for non-GNU ld... " >&6; } fi -if test "${lt_cv_path_LD+set}" = set; then : +if ${lt_cv_path_LD+:} false; then : $as_echo_n "(cached) " >&6 else if test -z "$LD"; then @@ -105344,10 +105844,10 @@ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi -test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5 +test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } -if test "${lt_cv_prog_gnu_ld+set}" = set; then : +if ${lt_cv_prog_gnu_ld+:} false; then : $as_echo_n "(cached) " >&6 else # I'd rather use --version here, but apparently some GNU lds only accept -v. @@ -105365,34 +105865,16 @@ with_gnu_ld=$lt_cv_prog_gnu_ld -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 -$as_echo_n "checking for $LD option to reload object files... " >&6; } -if test "${lt_cv_ld_reload_flag+set}" = set; then : - $as_echo_n "(cached) " >&6 -else - lt_cv_ld_reload_flag='-r' -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 -$as_echo "$lt_cv_ld_reload_flag" >&6; } -reload_flag=$lt_cv_ld_reload_flag -case $reload_flag in -"" | " "*) ;; -*) reload_flag=" $reload_flag" ;; -esac -reload_cmds='$LD$reload_flag -o $output$reload_objs' -case $host_os in - darwin*) - if test "$GCC" = yes; then - reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' - else - reload_cmds='$LD$reload_flag -o $output$reload_objs' - fi - ;; -esac -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD-compatible nm" >&5 -$as_echo_n "checking for BSD-compatible nm... " >&6; } -if test "${lt_cv_path_NM+set}" = set; then : + + + + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 +$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } +if ${lt_cv_path_NM+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$NM"; then @@ -105436,16 +105918,583 @@ done IFS="$lt_save_ifs" done - test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm + : ${lt_cv_path_NM=no} fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 $as_echo "$lt_cv_path_NM" >&6; } -NM="$lt_cv_path_NM" +if test "$lt_cv_path_NM" != "no"; then + NM="$lt_cv_path_NM" +else + # Didn't find any BSD compatible name lister, look for dumpbin. + if test -n "$DUMPBIN"; then : + # Let the user override the test. + else + if test -n "$ac_tool_prefix"; then + for ac_prog in dumpbin "link -dump" + do + # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. +set dummy $ac_tool_prefix$ac_prog; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_DUMPBIN+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$DUMPBIN"; then + ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +DUMPBIN=$ac_cv_prog_DUMPBIN +if test -n "$DUMPBIN"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 +$as_echo "$DUMPBIN" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + + test -n "$DUMPBIN" && break + done +fi +if test -z "$DUMPBIN"; then + ac_ct_DUMPBIN=$DUMPBIN + for ac_prog in dumpbin "link -dump" +do + # Extract the first word of "$ac_prog", so it can be a program name with args. +set dummy $ac_prog; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$ac_ct_DUMPBIN"; then + ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN +if test -n "$ac_ct_DUMPBIN"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 +$as_echo "$ac_ct_DUMPBIN" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + + test -n "$ac_ct_DUMPBIN" && break +done + + if test "x$ac_ct_DUMPBIN" = x; then + DUMPBIN=":" + else + case $cross_compiling:$ac_tool_warned in +yes:) +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +ac_tool_warned=yes ;; +esac + DUMPBIN=$ac_ct_DUMPBIN + fi +fi + + case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in + *COFF*) + DUMPBIN="$DUMPBIN -symbols" + ;; + *) + DUMPBIN=: + ;; + esac + fi + + if test "$DUMPBIN" != ":"; then + NM="$DUMPBIN" + fi +fi +test -z "$NM" && NM=nm + + + + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 +$as_echo_n "checking the name lister ($NM) interface... " >&6; } +if ${lt_cv_nm_interface+:} false; then : + $as_echo_n "(cached) " >&6 +else + lt_cv_nm_interface="BSD nm" + echo "int some_variable = 0;" > conftest.$ac_ext + (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) + (eval "$ac_compile" 2>conftest.err) + cat conftest.err >&5 + (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) + (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) + cat conftest.err >&5 + (eval echo "\"\$as_me:$LINENO: output\"" >&5) + cat conftest.out >&5 + if $GREP 'External.*some_variable' conftest.out > /dev/null; then + lt_cv_nm_interface="MS dumpbin" + fi + rm -f conftest* +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 +$as_echo "$lt_cv_nm_interface" >&6; } + +# find the maximum length of command line arguments +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 +$as_echo_n "checking the maximum length of command line arguments... " >&6; } +if ${lt_cv_sys_max_cmd_len+:} false; then : + $as_echo_n "(cached) " >&6 +else + i=0 + teststring="ABCD" + + case $build_os in + msdosdjgpp*) + # On DJGPP, this test can blow up pretty badly due to problems in libc + # (any single argument exceeding 2000 bytes causes a buffer overrun + # during glob expansion). Even if it were fixed, the result of this + # check would be larger than it should be. + lt_cv_sys_max_cmd_len=12288; # 12K is about right + ;; + + gnu*) + # Under GNU Hurd, this test is not required because there is + # no limit to the length of command line arguments. + # Libtool will interpret -1 as no limit whatsoever + lt_cv_sys_max_cmd_len=-1; + ;; + + cygwin* | mingw* | cegcc*) + # On Win9x/ME, this test blows up -- it succeeds, but takes + # about 5 minutes as the teststring grows exponentially. + # Worse, since 9x/ME are not pre-emptively multitasking, + # you end up with a "frozen" computer, even though with patience + # the test eventually succeeds (with a max line length of 256k). + # Instead, let's just punt: use the minimum linelength reported by + # all of the supported platforms: 8192 (on NT/2K/XP). + lt_cv_sys_max_cmd_len=8192; + ;; + + mint*) + # On MiNT this can take a long time and run out of memory. + lt_cv_sys_max_cmd_len=8192; + ;; + + amigaos*) + # On AmigaOS with pdksh, this test takes hours, literally. + # So we just punt and use a minimum line length of 8192. + lt_cv_sys_max_cmd_len=8192; + ;; + + netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) + # This has been around since 386BSD, at least. Likely further. + if test -x /sbin/sysctl; then + lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` + elif test -x /usr/sbin/sysctl; then + lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` + else + lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs + fi + # And add a safety zone + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` + ;; + + interix*) + # We know the value 262144 and hardcode it with a safety zone (like BSD) + lt_cv_sys_max_cmd_len=196608 + ;; + + os2*) + # The test takes a long time on OS/2. + lt_cv_sys_max_cmd_len=8192 + ;; + + osf*) + # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure + # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not + # nice to cause kernel panics so lets avoid the loop below. + # First set a reasonable default. + lt_cv_sys_max_cmd_len=16384 + # + if test -x /sbin/sysconfig; then + case `/sbin/sysconfig -q proc exec_disable_arg_limit` in + *1*) lt_cv_sys_max_cmd_len=-1 ;; + esac + fi + ;; + sco3.2v5*) + lt_cv_sys_max_cmd_len=102400 + ;; + sysv5* | sco5v6* | sysv4.2uw2*) + kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` + if test -n "$kargmax"; then + lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` + else + lt_cv_sys_max_cmd_len=32768 + fi + ;; + *) + lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` + if test -n "$lt_cv_sys_max_cmd_len" && \ + test undefined != "$lt_cv_sys_max_cmd_len"; then + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` + else + # Make teststring a little bigger before we do anything with it. + # a 1K string should be a reasonable start. + for i in 1 2 3 4 5 6 7 8 ; do + teststring=$teststring$teststring + done + SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} + # If test is not a shell built-in, we'll probably end up computing a + # maximum length that is only half of the actual maximum length, but + # we can't tell. + while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \ + = "X$teststring$teststring"; } >/dev/null 2>&1 && + test $i != 17 # 1/2 MB should be enough + do + i=`expr $i + 1` + teststring=$teststring$teststring + done + # Only check the string length outside the loop. + lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` + teststring= + # Add a significant safety factor because C++ compilers can tack on + # massive amounts of additional arguments before passing them to the + # linker. It appears as though 1/2 is a usable value. + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` + fi + ;; + esac + +fi + +if test -n $lt_cv_sys_max_cmd_len ; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 +$as_echo "$lt_cv_sys_max_cmd_len" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 +$as_echo "none" >&6; } +fi +max_cmd_len=$lt_cv_sys_max_cmd_len + + + + + + +: ${CP="cp -f"} +: ${MV="mv -f"} +: ${RM="rm -f"} + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5 +$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } +# Try some XSI features +xsi_shell=no +( _lt_dummy="a/b/c" + test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \ + = c,a/b,b/c, \ + && eval 'test $(( 1 + 1 )) -eq 2 \ + && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ + && xsi_shell=yes +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5 +$as_echo "$xsi_shell" >&6; } + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5 +$as_echo_n "checking whether the shell understands \"+=\"... " >&6; } +lt_shell_append=no +( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ + >/dev/null 2>&1 \ + && lt_shell_append=yes +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5 +$as_echo "$lt_shell_append" >&6; } + + +if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then + lt_unset=unset +else + lt_unset=false +fi + + + + + +# test EBCDIC or ASCII +case `echo X|tr X '\101'` in + A) # ASCII based system + # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr + lt_SP2NL='tr \040 \012' + lt_NL2SP='tr \015\012 \040\040' + ;; + *) # EBCDIC based system + lt_SP2NL='tr \100 \n' + lt_NL2SP='tr \r\n \100\100' + ;; +esac + + + + + + + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 +$as_echo_n "checking how to convert $build file names to $host format... " >&6; } +if ${lt_cv_to_host_file_cmd+:} false; then : + $as_echo_n "(cached) " >&6 +else + case $host in + *-*-mingw* ) + case $build in + *-*-mingw* ) # actually msys + lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 + ;; + *-*-cygwin* ) + lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 + ;; + * ) # otherwise, assume *nix + lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 + ;; + esac + ;; + *-*-cygwin* ) + case $build in + *-*-mingw* ) # actually msys + lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin + ;; + *-*-cygwin* ) + lt_cv_to_host_file_cmd=func_convert_file_noop + ;; + * ) # otherwise, assume *nix + lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin + ;; + esac + ;; + * ) # unhandled hosts (and "normal" native builds) + lt_cv_to_host_file_cmd=func_convert_file_noop + ;; +esac + +fi + +to_host_file_cmd=$lt_cv_to_host_file_cmd +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 +$as_echo "$lt_cv_to_host_file_cmd" >&6; } + + + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 +$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } +if ${lt_cv_to_tool_file_cmd+:} false; then : + $as_echo_n "(cached) " >&6 +else + #assume ordinary cross tools, or native build. +lt_cv_to_tool_file_cmd=func_convert_file_noop +case $host in + *-*-mingw* ) + case $build in + *-*-mingw* ) # actually msys + lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 + ;; + esac + ;; +esac + +fi + +to_tool_file_cmd=$lt_cv_to_tool_file_cmd +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 +$as_echo "$lt_cv_to_tool_file_cmd" >&6; } + + + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 +$as_echo_n "checking for $LD option to reload object files... " >&6; } +if ${lt_cv_ld_reload_flag+:} false; then : + $as_echo_n "(cached) " >&6 +else + lt_cv_ld_reload_flag='-r' +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 +$as_echo "$lt_cv_ld_reload_flag" >&6; } +reload_flag=$lt_cv_ld_reload_flag +case $reload_flag in +"" | " "*) ;; +*) reload_flag=" $reload_flag" ;; +esac +reload_cmds='$LD$reload_flag -o $output$reload_objs' +case $host_os in + cygwin* | mingw* | pw32* | cegcc*) + if test "$GCC" != yes; then + reload_cmds=false + fi + ;; + darwin*) + if test "$GCC" = yes; then + reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' + else + reload_cmds='$LD$reload_flag -o $output$reload_objs' + fi + ;; +esac + + + + + + + + + +if test -n "$ac_tool_prefix"; then + # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. +set dummy ${ac_tool_prefix}objdump; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_OBJDUMP+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$OBJDUMP"; then + ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +OBJDUMP=$ac_cv_prog_OBJDUMP +if test -n "$OBJDUMP"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 +$as_echo "$OBJDUMP" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + +fi +if test -z "$ac_cv_prog_OBJDUMP"; then + ac_ct_OBJDUMP=$OBJDUMP + # Extract the first word of "objdump", so it can be a program name with args. +set dummy objdump; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$ac_ct_OBJDUMP"; then + ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_ac_ct_OBJDUMP="objdump" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP +if test -n "$ac_ct_OBJDUMP"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 +$as_echo "$ac_ct_OBJDUMP" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + if test "x$ac_ct_OBJDUMP" = x; then + OBJDUMP="false" + else + case $cross_compiling:$ac_tool_warned in +yes:) +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +ac_tool_warned=yes ;; +esac + OBJDUMP=$ac_ct_OBJDUMP + fi +else + OBJDUMP="$ac_cv_prog_OBJDUMP" +fi + +test -z "$OBJDUMP" && OBJDUMP=objdump + + + + + + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 $as_echo_n "checking how to recognize dependent libraries... " >&6; } -if test "${lt_cv_deplibs_check_method+set}" = set; then : +if ${lt_cv_deplibs_check_method+:} false; then : $as_echo_n "(cached) " >&6 else lt_cv_file_magic_cmd='$MAGIC_CMD' @@ -105487,21 +106536,29 @@ # Base MSYS/MinGW do not provide the 'file' command needed by # func_win32_libid shell function, so use a weaker test based on 'objdump', # unless we find 'file', for example because we are cross-compiling. - if ( file / ) >/dev/null 2>&1; then + # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin. + if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' lt_cv_file_magic_cmd='func_win32_libid' else - lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' + # Keep this pattern in sync with the one in func_win32_libid. + lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' lt_cv_file_magic_cmd='$OBJDUMP -f' fi ;; +cegcc*) + # use the weaker test based on 'objdump'. See mingw*. + lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' + lt_cv_file_magic_cmd='$OBJDUMP -f' + ;; + darwin* | rhapsody*) lt_cv_deplibs_check_method=pass_all ;; freebsd* | dragonfly*) - if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then + if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then case $host_cpu in i*86 ) # Not sure whether the presence of OpenBSD here was a mistake. @@ -105516,7 +106573,7 @@ fi ;; -gnu*) +haiku*) lt_cv_deplibs_check_method=pass_all ;; @@ -105528,11 +106585,11 @@ lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so ;; hppa*64*) - lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]' + lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]' lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl ;; *) - lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' + lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' lt_cv_file_magic_test_file=/usr/lib/libc.sl ;; esac @@ -105553,13 +106610,13 @@ lt_cv_deplibs_check_method=pass_all ;; -# This must be Linux ELF. -linux* | k*bsd*-gnu) +# This must be glibc/ELF. +linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) lt_cv_deplibs_check_method=pass_all ;; -netbsd*) - if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then +netbsd* | netbsdelf*-gnu) + if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' else lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' @@ -105572,12 +106629,12 @@ lt_cv_file_magic_test_file=/usr/lib/libnls.so ;; -nto-qnx*) - lt_cv_deplibs_check_method=unknown +*nto* | *qnx*) + lt_cv_deplibs_check_method=pass_all ;; openbsd*) - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then + if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' else lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' @@ -105596,6 +106653,10 @@ lt_cv_deplibs_check_method=pass_all ;; +sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) + lt_cv_deplibs_check_method=pass_all + ;; + sysv4 | sysv4.3*) case $host_vendor in motorola) @@ -105623,7 +106684,7 @@ esac ;; -sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) +tpf*) lt_cv_deplibs_check_method=pass_all ;; esac @@ -105631,6 +106692,21 @@ fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 $as_echo "$lt_cv_deplibs_check_method" >&6; } + +file_magic_glob= +want_nocaseglob=no +if test "$build" = "$host"; then + case $host_os in + mingw* | pw32*) + if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then + want_nocaseglob=yes + else + file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` + fi + ;; + esac +fi + file_magic_cmd=$lt_cv_file_magic_cmd deplibs_check_method=$lt_cv_deplibs_check_method test -z "$deplibs_check_method" && deplibs_check_method=unknown @@ -105638,148 +106714,285 @@ -# If no C compiler was specified, use CC. -LTCC=${LTCC-"$CC"} -# If no C compiler flags were specified, use CFLAGS. -LTCFLAGS=${LTCFLAGS-"$CFLAGS"} -# Allow CC to be a program name with arguments. -compiler=$CC -#AC_ARG_ENABLE([libtool-lock], -#[ --disable-libtool-lock avoid locking (might break parallel builds)]) -#test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes -# Some flags need to be propagated to the compiler or linker for good -# libtool support. -case $host in -ia64-*-hpux*) - # Find out which ABI we are using. - echo 'int i;' > conftest.$ac_ext - if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 - (eval $ac_compile) 2>&5 - ac_status=$? - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 - test $ac_status = 0; }; then - case `/usr/bin/file conftest.$ac_objext` in - *ELF-32*) - HPUX_IA64_MODE="32" - ;; - *ELF-64*) - HPUX_IA64_MODE="64" - ;; - esac + + + + + + + + + + + + + + +if test -n "$ac_tool_prefix"; then + # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. +set dummy ${ac_tool_prefix}dlltool; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_DLLTOOL+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$DLLTOOL"; then + ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 fi - rm -rf conftest* - ;; -*-*-irix6*) - # Find out which ABI we are using. - echo '#line 105678 "configure"' > conftest.$ac_ext - if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 - (eval $ac_compile) 2>&5 - ac_status=$? - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 - test $ac_status = 0; }; then - if test "$lt_cv_prog_gnu_ld" = yes; then - case `/usr/bin/file conftest.$ac_objext` in - *32-bit*) - LD="${LD-ld} -melf32bsmip" - ;; - *N32*) - LD="${LD-ld} -melf32bmipn32" - ;; - *64-bit*) - LD="${LD-ld} -melf64bmip" - ;; - esac - else - case `/usr/bin/file conftest.$ac_objext` in - *32-bit*) - LD="${LD-ld} -32" - ;; - *N32*) - LD="${LD-ld} -n32" - ;; - *64-bit*) - LD="${LD-ld} -64" - ;; - esac - fi +done + done +IFS=$as_save_IFS + +fi +fi +DLLTOOL=$ac_cv_prog_DLLTOOL +if test -n "$DLLTOOL"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 +$as_echo "$DLLTOOL" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + +fi +if test -z "$ac_cv_prog_DLLTOOL"; then + ac_ct_DLLTOOL=$DLLTOOL + # Extract the first word of "dlltool", so it can be a program name with args. +set dummy dlltool; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$ac_ct_DLLTOOL"; then + ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_ac_ct_DLLTOOL="dlltool" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 fi - rm -rf conftest* - ;; +done + done +IFS=$as_save_IFS -x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ -s390*-*linux*|sparc*-*linux*) - # Find out which ABI we are using. - echo 'int i;' > conftest.$ac_ext - if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 - (eval $ac_compile) 2>&5 - ac_status=$? - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 - test $ac_status = 0; }; then - case `/usr/bin/file conftest.o` in - *32-bit*) - case $host in - x86_64-*kfreebsd*-gnu) - LD="${LD-ld} -m elf_i386_fbsd" - ;; - x86_64-*linux*) - LD="${LD-ld} -m elf_i386" - ;; - ppc64-*linux*|powerpc64-*linux*) - LD="${LD-ld} -m elf32ppclinux" - ;; - s390x-*linux*) - LD="${LD-ld} -m elf_s390" - ;; - sparc64-*linux*) - LD="${LD-ld} -m elf32_sparc" - ;; - esac - ;; - *64-bit*) - case $host in - x86_64-*kfreebsd*-gnu) - LD="${LD-ld} -m elf_x86_64_fbsd" - ;; - x86_64-*linux*) - LD="${LD-ld} -m elf_x86_64" - ;; - ppc*-*linux*|powerpc*-*linux*) - LD="${LD-ld} -m elf64ppc" - ;; - s390*-*linux*) - LD="${LD-ld} -m elf64_s390" - ;; - sparc*-*linux*) - LD="${LD-ld} -m elf64_sparc" - ;; - esac - ;; - esac +fi +fi +ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL +if test -n "$ac_ct_DLLTOOL"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 +$as_echo "$ac_ct_DLLTOOL" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + if test "x$ac_ct_DLLTOOL" = x; then + DLLTOOL="false" + else + case $cross_compiling:$ac_tool_warned in +yes:) +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +ac_tool_warned=yes ;; +esac + DLLTOOL=$ac_ct_DLLTOOL fi - rm -rf conftest* +else + DLLTOOL="$ac_cv_prog_DLLTOOL" +fi + +test -z "$DLLTOOL" && DLLTOOL=dlltool + + + + + + + + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 +$as_echo_n "checking how to associate runtime and link libraries... " >&6; } +if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : + $as_echo_n "(cached) " >&6 +else + lt_cv_sharedlib_from_linklib_cmd='unknown' + +case $host_os in +cygwin* | mingw* | pw32* | cegcc*) + # two different shell functions defined in ltmain.sh + # decide which to use based on capabilities of $DLLTOOL + case `$DLLTOOL --help 2>&1` in + *--identify-strict*) + lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib + ;; + *) + lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback + ;; + esac + ;; +*) + # fallback: assume linklib IS sharedlib + lt_cv_sharedlib_from_linklib_cmd="$ECHO" ;; +esac -*-*-sco3.2v5*) - # On SCO OpenServer 5, we need -belf to get full-featured binaries. - SAVE_CFLAGS="$CFLAGS" - CFLAGS="$CFLAGS -belf" - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 -$as_echo_n "checking whether the C compiler needs -belf... " >&6; } -if test "${lt_cv_cc_needs_belf+set}" = set; then : +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 +$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } +sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd +test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO + + + + + + + +if test -n "$ac_tool_prefix"; then + for ac_prog in ar + do + # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. +set dummy $ac_tool_prefix$ac_prog; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_AR+:} false; then : $as_echo_n "(cached) " >&6 else + if test -n "$AR"; then + ac_cv_prog_AR="$AR" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_AR="$ac_tool_prefix$ac_prog" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS - ac_ext=c -ac_cpp='$CPP $CPPFLAGS' -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -ac_compiler_gnu=$ac_cv_c_compiler_gnu +fi +fi +AR=$ac_cv_prog_AR +if test -n "$AR"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 +$as_echo "$AR" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi - cat confdefs.h - <<_ACEOF >conftest.$ac_ext + + test -n "$AR" && break + done +fi +if test -z "$AR"; then + ac_ct_AR=$AR + for ac_prog in ar +do + # Extract the first word of "$ac_prog", so it can be a program name with args. +set dummy $ac_prog; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_ac_ct_AR+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$ac_ct_AR"; then + ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_ac_ct_AR="$ac_prog" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +ac_ct_AR=$ac_cv_prog_ac_ct_AR +if test -n "$ac_ct_AR"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 +$as_echo "$ac_ct_AR" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + + test -n "$ac_ct_AR" && break +done + + if test "x$ac_ct_AR" = x; then + AR="false" + else + case $cross_compiling:$ac_tool_warned in +yes:) +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +ac_tool_warned=yes ;; +esac + AR=$ac_ct_AR + fi +fi + +: ${AR=ar} +: ${AR_FLAGS=cru} + + + + + + + + + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 +$as_echo_n "checking for archiver @FILE support... " >&6; } +if ${lt_cv_ar_at_file+:} false; then : + $as_echo_n "(cached) " >&6 +else + lt_cv_ar_at_file=no + cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int @@ -105790,327 +107003,363 @@ return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : - lt_cv_cc_needs_belf=yes -else - lt_cv_cc_needs_belf=no +if ac_fn_c_try_compile "$LINENO"; then : + echo conftest.$ac_objext > conftest.lst + lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' + { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 + (eval $lt_ar_try) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } + if test "$ac_status" -eq 0; then + # Ensure the archiver fails upon bogus file names. + rm -f conftest.$ac_objext libconftest.a + { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 + (eval $lt_ar_try) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } + if test "$ac_status" -ne 0; then + lt_cv_ar_at_file=@ + fi + fi + rm -f conftest.* libconftest.a + fi -rm -f core conftest.err conftest.$ac_objext \ - conftest$ac_exeext conftest.$ac_ext - ac_ext=c -ac_cpp='$CPP $CPPFLAGS' -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -ac_compiler_gnu=$ac_cv_c_compiler_gnu +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 -$as_echo "$lt_cv_cc_needs_belf" >&6; } - if test x"$lt_cv_cc_needs_belf" != x"yes"; then - # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf - CFLAGS="$SAVE_CFLAGS" - fi - ;; -sparc*-*solaris*) - # Find out which ABI we are using. - echo 'int i;' > conftest.$ac_ext - if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 - (eval $ac_compile) 2>&5 - ac_status=$? - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 - test $ac_status = 0; }; then - case `/usr/bin/file conftest.o` in - *64-bit*) - case $lt_cv_prog_gnu_ld in - yes*) LD="${LD-ld} -m elf64_sparc" ;; - *) - if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then - LD="${LD-ld} -64" - fi - ;; - esac - ;; - esac - fi - rm -rf conftest* - ;; +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 +$as_echo "$lt_cv_ar_at_file" >&6; } +if test "x$lt_cv_ar_at_file" = xno; then + archiver_list_spec= +else + archiver_list_spec=$lt_cv_ar_at_file +fi -esac -need_locks="$enable_libtool_lock" -if test -n "$CXX" && ( test "X$CXX" != "Xno" && - ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || - (test "X$CXX" != "Xg++"))) ; then - ac_ext=cpp -ac_cpp='$CXXCPP $CPPFLAGS' -ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' -ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -ac_compiler_gnu=$ac_cv_cxx_compiler_gnu -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5 -$as_echo_n "checking how to run the C++ preprocessor... " >&6; } -if test -z "$CXXCPP"; then - if test "${ac_cv_prog_CXXCPP+set}" = set; then : + +if test -n "$ac_tool_prefix"; then + # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. +set dummy ${ac_tool_prefix}strip; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_STRIP+:} false; then : $as_echo_n "(cached) " >&6 else - # Double quotes because CXXCPP needs to be expanded - for CXXCPP in "$CXX -E" "/lib/cpp" - do - ac_preproc_ok=false -for ac_cxx_preproc_warn_flag in '' yes + if test -n "$STRIP"; then + ac_cv_prog_STRIP="$STRIP" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH do - # Use a header file that comes with gcc, so configuring glibc - # with a fresh cross-compiler works. - # Prefer to if __STDC__ is defined, since - # exists even on freestanding compilers. - # On the NeXT, cc -E runs the code through the compiler's parser, - # not just through cpp. "Syntax error" is here to catch this case. - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -#ifdef __STDC__ -# include -#else -# include -#endif - Syntax error -_ACEOF -if ac_fn_cxx_try_cpp "$LINENO"; then : + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_STRIP="${ac_tool_prefix}strip" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS +fi +fi +STRIP=$ac_cv_prog_STRIP +if test -n "$STRIP"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 +$as_echo "$STRIP" >&6; } else - # Broken: fails on valid input. -continue + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } fi -rm -f conftest.err conftest.$ac_ext - # OK, works on sane cases. Now check whether nonexistent headers - # can be detected and how. - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -#include -_ACEOF -if ac_fn_cxx_try_cpp "$LINENO"; then : - # Broken: success on invalid input. -continue + +fi +if test -z "$ac_cv_prog_STRIP"; then + ac_ct_STRIP=$STRIP + # Extract the first word of "strip", so it can be a program name with args. +set dummy strip; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_ac_ct_STRIP+:} false; then : + $as_echo_n "(cached) " >&6 else - # Passes both tests. -ac_preproc_ok=: -break + if test -n "$ac_ct_STRIP"; then + ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_ac_ct_STRIP="strip" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP +if test -n "$ac_ct_STRIP"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 +$as_echo "$ac_ct_STRIP" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } fi -rm -f conftest.err conftest.$ac_ext -done -# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. -rm -f conftest.err conftest.$ac_ext -if $ac_preproc_ok; then : - break + if test "x$ac_ct_STRIP" = x; then + STRIP=":" + else + case $cross_compiling:$ac_tool_warned in +yes:) +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +ac_tool_warned=yes ;; +esac + STRIP=$ac_ct_STRIP + fi +else + STRIP="$ac_cv_prog_STRIP" fi - done - ac_cv_prog_CXXCPP=$CXXCPP +test -z "$STRIP" && STRIP=: + + + + + + +if test -n "$ac_tool_prefix"; then + # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. +set dummy ${ac_tool_prefix}ranlib; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_RANLIB+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$RANLIB"; then + ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS fi - CXXCPP=$ac_cv_prog_CXXCPP +fi +RANLIB=$ac_cv_prog_RANLIB +if test -n "$RANLIB"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 +$as_echo "$RANLIB" >&6; } else - ac_cv_prog_CXXCPP=$CXXCPP + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5 -$as_echo "$CXXCPP" >&6; } -ac_preproc_ok=false -for ac_cxx_preproc_warn_flag in '' yes + + +fi +if test -z "$ac_cv_prog_RANLIB"; then + ac_ct_RANLIB=$RANLIB + # Extract the first word of "ranlib", so it can be a program name with args. +set dummy ranlib; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$ac_ct_RANLIB"; then + ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH do - # Use a header file that comes with gcc, so configuring glibc - # with a fresh cross-compiler works. - # Prefer to if __STDC__ is defined, since - # exists even on freestanding compilers. - # On the NeXT, cc -E runs the code through the compiler's parser, - # not just through cpp. "Syntax error" is here to catch this case. - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -#ifdef __STDC__ -# include -#else -# include -#endif - Syntax error -_ACEOF -if ac_fn_cxx_try_cpp "$LINENO"; then : + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_ac_ct_RANLIB="ranlib" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS +fi +fi +ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB +if test -n "$ac_ct_RANLIB"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 +$as_echo "$ac_ct_RANLIB" >&6; } else - # Broken: fails on valid input. -continue + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } fi -rm -f conftest.err conftest.$ac_ext - # OK, works on sane cases. Now check whether nonexistent headers - # can be detected and how. - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -#include -_ACEOF -if ac_fn_cxx_try_cpp "$LINENO"; then : - # Broken: success on invalid input. -continue + if test "x$ac_ct_RANLIB" = x; then + RANLIB=":" + else + case $cross_compiling:$ac_tool_warned in +yes:) +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +ac_tool_warned=yes ;; +esac + RANLIB=$ac_ct_RANLIB + fi else - # Passes both tests. -ac_preproc_ok=: -break + RANLIB="$ac_cv_prog_RANLIB" fi -rm -f conftest.err conftest.$ac_ext -done -# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. -rm -f conftest.err conftest.$ac_ext -if $ac_preproc_ok; then : +test -z "$RANLIB" && RANLIB=: + + -else - { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} -as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check -See \`config.log' for more details." "$LINENO" 5; } -fi -ac_ext=cpp -ac_cpp='$CXXCPP $CPPFLAGS' -ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' -ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -ac_compiler_gnu=$ac_cv_cxx_compiler_gnu + +# Determine commands to create old-style static archives. +old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' +old_postinstall_cmds='chmod 644 $oldlib' +old_postuninstall_cmds= + +if test -n "$RANLIB"; then + case $host_os in + openbsd*) + old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" + ;; + *) + old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" + ;; + esac + old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" fi +case $host_os in + darwin*) + lock_old_archive_extraction=yes ;; + *) + lock_old_archive_extraction=no ;; +esac -# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers! -# find the maximum length of command line arguments -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 -$as_echo_n "checking the maximum length of command line arguments... " >&6; } -if test "${lt_cv_sys_max_cmd_len+set}" = set; then : + + + + + + + + + + + + + + + + + + + + +for ac_prog in gawk mawk nawk awk +do + # Extract the first word of "$ac_prog", so it can be a program name with args. +set dummy $ac_prog; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_AWK+:} false; then : $as_echo_n "(cached) " >&6 else - i=0 - teststring="ABCD" + if test -n "$AWK"; then + ac_cv_prog_AWK="$AWK" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_AWK="$ac_prog" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +AWK=$ac_cv_prog_AWK +if test -n "$AWK"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 +$as_echo "$AWK" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + + test -n "$AWK" && break +done + + + + + + + - case $build_os in - msdosdjgpp*) - # On DJGPP, this test can blow up pretty badly due to problems in libc - # (any single argument exceeding 2000 bytes causes a buffer overrun - # during glob expansion). Even if it were fixed, the result of this - # check would be larger than it should be. - lt_cv_sys_max_cmd_len=12288; # 12K is about right - ;; - gnu*) - # Under GNU Hurd, this test is not required because there is - # no limit to the length of command line arguments. - # Libtool will interpret -1 as no limit whatsoever - lt_cv_sys_max_cmd_len=-1; - ;; - cygwin* | mingw*) - # On Win9x/ME, this test blows up -- it succeeds, but takes - # about 5 minutes as the teststring grows exponentially. - # Worse, since 9x/ME are not pre-emptively multitasking, - # you end up with a "frozen" computer, even though with patience - # the test eventually succeeds (with a max line length of 256k). - # Instead, let's just punt: use the minimum linelength reported by - # all of the supported platforms: 8192 (on NT/2K/XP). - lt_cv_sys_max_cmd_len=8192; - ;; - amigaos*) - # On AmigaOS with pdksh, this test takes hours, literally. - # So we just punt and use a minimum line length of 8192. - lt_cv_sys_max_cmd_len=8192; - ;; - netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) - # This has been around since 386BSD, at least. Likely further. - if test -x /sbin/sysctl; then - lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` - elif test -x /usr/sbin/sysctl; then - lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` - else - lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs - fi - # And add a safety zone - lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` - lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` - ;; - interix*) - # We know the value 262144 and hardcode it with a safety zone (like BSD) - lt_cv_sys_max_cmd_len=196608 - ;; - osf*) - # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure - # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not - # nice to cause kernel panics so lets avoid the loop below. - # First set a reasonable default. - lt_cv_sys_max_cmd_len=16384 - # - if test -x /sbin/sysconfig; then - case `/sbin/sysconfig -q proc exec_disable_arg_limit` in - *1*) lt_cv_sys_max_cmd_len=-1 ;; - esac - fi - ;; - sco3.2v5*) - lt_cv_sys_max_cmd_len=102400 - ;; - sysv5* | sco5v6* | sysv4.2uw2*) - kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` - if test -n "$kargmax"; then - lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` - else - lt_cv_sys_max_cmd_len=32768 - fi - ;; - *) - lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` - if test -n "$lt_cv_sys_max_cmd_len"; then - lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` - lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` - else - SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} - while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \ - = "XX$teststring") >/dev/null 2>&1 && - new_result=`expr "X$teststring" : ".*" 2>&1` && - lt_cv_sys_max_cmd_len=$new_result && - test $i != 17 # 1/2 MB should be enough - do - i=`expr $i + 1` - teststring=$teststring$teststring - done - teststring= - # Add a significant safety factor because C++ compilers can tack on massive - # amounts of additional arguments before passing them to the linker. - # It appears as though 1/2 is a usable value. - lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` - fi - ;; - esac -fi -if test -n $lt_cv_sys_max_cmd_len ; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 -$as_echo "$lt_cv_sys_max_cmd_len" >&6; } -else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 -$as_echo "none" >&6; } -fi +# If no C compiler was specified, use CC. +LTCC=${LTCC-"$CC"} + +# If no C compiler flags were specified, use CFLAGS. +LTCFLAGS=${LTCFLAGS-"$CFLAGS"} + +# Allow CC to be a program name with arguments. +compiler=$CC # Check for command to grab the raw symbol name followed by C symbol from nm. { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } -if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then : +if ${lt_cv_sys_global_symbol_pipe+:} false; then : $as_echo_n "(cached) " >&6 else @@ -106123,33 +107372,18 @@ # Regexp to match symbols that can be accessed directly from C. sympat='\([_A-Za-z][_A-Za-z0-9]*\)' -# Transform an extracted symbol line into a proper C declaration -lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'" - -# Transform an extracted symbol line into symbol name and symbol address -lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'" - # Define system-specific variables. case $host_os in aix*) symcode='[BCDT]' ;; -cygwin* | mingw* | pw32*) +cygwin* | mingw* | pw32* | cegcc*) symcode='[ABCDGISTW]' ;; -hpux*) # Its linker distinguishes data from code symbols +hpux*) if test "$host_cpu" = ia64; then symcode='[ABCDEGRST]' fi - lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" - lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'" - ;; -linux* | k*bsd*-gnu) - if test "$host_cpu" = ia64; then - symcode='[ABCDGIRSTW]' - lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" - lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'" - fi ;; irix* | nonstopux*) symcode='[BCDEGRST]' @@ -106174,44 +107408,74 @@ ;; esac +# If we're using GNU nm, then use its standard symbol codes. +case `$NM -V 2>&1` in +*GNU* | *'with BFD'*) + symcode='[ABCDGIRSTW]' ;; +esac + +# Transform an extracted symbol line into a proper C declaration. +# Some systems (esp. on ia64) link data and code symbols differently, +# so use this general approach. +lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" + +# Transform an extracted symbol line into symbol name and symbol address +lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" +lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'" + # Handle CRLF in mingw tool chain opt_cr= case $build_os in mingw*) - opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp + opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp ;; esac -# If we're using GNU nm, then use its standard symbol codes. -case `$NM -V 2>&1` in -*GNU* | *'with BFD'*) - symcode='[ABCDGIRSTW]' ;; -esac - -# Try without a prefix undercore, then with it. +# Try without a prefix underscore, then with it. for ac_symprfx in "" "_"; do # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. symxfrm="\\1 $ac_symprfx\\2 \\2" # Write the raw and C identifiers. - lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" + if test "$lt_cv_nm_interface" = "MS dumpbin"; then + # Fake it for dumpbin and say T for any non-static function + # and D for any global variable. + # Also find C++ and __fastcall symbols from MSVC++, + # which start with @ or ?. + lt_cv_sys_global_symbol_pipe="$AWK '"\ +" {last_section=section; section=\$ 3};"\ +" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ +" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ +" \$ 0!~/External *\|/{next};"\ +" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ +" {if(hide[section]) next};"\ +" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ +" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ +" s[1]~/^[@?]/{print s[1], s[1]; next};"\ +" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ +" ' prfx=^$ac_symprfx" + else + lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" + fi + lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" # Check to see that the pipe works correctly. pipe_works=no rm -f conftest* - cat > conftest.$ac_ext < conftest.$ac_ext <<_LT_EOF #ifdef __cplusplus extern "C" { #endif char nm_test_var; -void nm_test_func(){} +void nm_test_func(void); +void nm_test_func(void){} #ifdef __cplusplus } #endif int main(){nm_test_var='a';nm_test_func();return(0);} -EOF +_LT_EOF if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 (eval $ac_compile) 2>&5 @@ -106220,8 +107484,8 @@ test $ac_status = 0; }; then # Now try to grab the symbols. nlist=conftest.nm - if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5 - (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 + (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } && test -s "$nlist"; then @@ -106233,46 +107497,60 @@ fi # Make sure that we snagged all the symbols we need. - if grep ' nm_test_var$' "$nlist" >/dev/null; then - if grep ' nm_test_func$' "$nlist" >/dev/null; then - cat < conftest.$ac_ext + if $GREP ' nm_test_var$' "$nlist" >/dev/null; then + if $GREP ' nm_test_func$' "$nlist" >/dev/null; then + cat <<_LT_EOF > conftest.$ac_ext +/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ +#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE) +/* DATA imports from DLLs on WIN32 con't be const, because runtime + relocations are performed -- see ld's documentation on pseudo-relocs. */ +# define LT_DLSYM_CONST +#elif defined(__osf__) +/* This system does not cope well with relocations in const data. */ +# define LT_DLSYM_CONST +#else +# define LT_DLSYM_CONST const +#endif + #ifdef __cplusplus extern "C" { #endif -EOF +_LT_EOF # Now generate the symbol file. - eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext' + eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' - cat <> conftest.$ac_ext -#if defined (__STDC__) && __STDC__ -# define lt_ptr_t void * -#else -# define lt_ptr_t char * -# define const -#endif + cat <<_LT_EOF >> conftest.$ac_ext -/* The mapping between symbol names and symbols. */ -const struct { +/* The mapping between symbol names and symbols. */ +LT_DLSYM_CONST struct { const char *name; - lt_ptr_t address; + void *address; } -lt_preloaded_symbols[] = +lt__PROGRAM__LTX_preloaded_symbols[] = { -EOF - $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext - cat <<\EOF >> conftest.$ac_ext - {0, (lt_ptr_t) 0} + { "@PROGRAM@", (void *) 0 }, +_LT_EOF + $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext + cat <<\_LT_EOF >> conftest.$ac_ext + {0, (void *) 0} }; +/* This works around a problem in FreeBSD linker */ +#ifdef FREEBSD_WORKAROUND +static const void *lt_preloaded_setup() { + return lt__PROGRAM__LTX_preloaded_symbols; +} +#endif + #ifdef __cplusplus } #endif -EOF +_LT_EOF # Now try linking the two files. mv conftest.$ac_objext conftstm.$ac_objext - lt_save_LIBS="$LIBS" - lt_save_CFLAGS="$CFLAGS" + lt_globsym_save_LIBS=$LIBS + lt_globsym_save_CFLAGS=$CFLAGS LIBS="conftstm.$ac_objext" CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 @@ -106282,8 +107560,8 @@ test $ac_status = 0; } && test -s conftest${ac_exeext}; then pipe_works=yes fi - LIBS="$lt_save_LIBS" - CFLAGS="$lt_save_CFLAGS" + LIBS=$lt_globsym_save_LIBS + CFLAGS=$lt_globsym_save_CFLAGS else echo "cannot find nm_test_func in $nlist" >&5 fi @@ -106308,92 +107586,615 @@ done fi - -if test -z "$lt_cv_sys_global_symbol_pipe"; then - lt_cv_sys_global_symbol_to_cdecl= + +if test -z "$lt_cv_sys_global_symbol_pipe"; then + lt_cv_sys_global_symbol_to_cdecl= +fi +if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 +$as_echo "failed" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 +$as_echo "ok" >&6; } +fi + +# Response file support. +if test "$lt_cv_nm_interface" = "MS dumpbin"; then + nm_file_list_spec='@' +elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then + nm_file_list_spec='@' +fi + + + + + + + + + + + + + + + + + + + + + + + + + + + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 +$as_echo_n "checking for sysroot... " >&6; } + +# Check whether --with-sysroot was given. +if test "${with_sysroot+set}" = set; then : + withval=$with_sysroot; +else + with_sysroot=no +fi + + +lt_sysroot= +case ${with_sysroot} in #( + yes) + if test "$GCC" = yes; then + lt_sysroot=`$CC --print-sysroot 2>/dev/null` + fi + ;; #( + /*) + lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` + ;; #( + no|'') + ;; #( + *) + { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5 +$as_echo "${with_sysroot}" >&6; } + as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 + ;; +esac + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 +$as_echo "${lt_sysroot:-no}" >&6; } + + + + + +# Check whether --enable-libtool-lock was given. +if test "${enable_libtool_lock+set}" = set; then : + enableval=$enable_libtool_lock; +fi + +test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes + +# Some flags need to be propagated to the compiler or linker for good +# libtool support. +case $host in +ia64-*-hpux*) + # Find out which ABI we are using. + echo 'int i;' > conftest.$ac_ext + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 + (eval $ac_compile) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + case `/usr/bin/file conftest.$ac_objext` in + *ELF-32*) + HPUX_IA64_MODE="32" + ;; + *ELF-64*) + HPUX_IA64_MODE="64" + ;; + esac + fi + rm -rf conftest* + ;; +*-*-irix6*) + # Find out which ABI we are using. + echo '#line '$LINENO' "configure"' > conftest.$ac_ext + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 + (eval $ac_compile) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + if test "$lt_cv_prog_gnu_ld" = yes; then + case `/usr/bin/file conftest.$ac_objext` in + *32-bit*) + LD="${LD-ld} -melf32bsmip" + ;; + *N32*) + LD="${LD-ld} -melf32bmipn32" + ;; + *64-bit*) + LD="${LD-ld} -melf64bmip" + ;; + esac + else + case `/usr/bin/file conftest.$ac_objext` in + *32-bit*) + LD="${LD-ld} -32" + ;; + *N32*) + LD="${LD-ld} -n32" + ;; + *64-bit*) + LD="${LD-ld} -64" + ;; + esac + fi + fi + rm -rf conftest* + ;; + +x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ +s390*-*linux*|s390*-*tpf*|sparc*-*linux*) + # Find out which ABI we are using. + echo 'int i;' > conftest.$ac_ext + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 + (eval $ac_compile) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + case `/usr/bin/file conftest.o` in + *32-bit*) + case $host in + x86_64-*kfreebsd*-gnu) + LD="${LD-ld} -m elf_i386_fbsd" + ;; + x86_64-*linux*) + case `/usr/bin/file conftest.o` in + *x86-64*) + LD="${LD-ld} -m elf32_x86_64" + ;; + *) + LD="${LD-ld} -m elf_i386" + ;; + esac + ;; + ppc64-*linux*|powerpc64-*linux*) + LD="${LD-ld} -m elf32ppclinux" + ;; + s390x-*linux*) + LD="${LD-ld} -m elf_s390" + ;; + sparc64-*linux*) + LD="${LD-ld} -m elf32_sparc" + ;; + esac + ;; + *64-bit*) + case $host in + x86_64-*kfreebsd*-gnu) + LD="${LD-ld} -m elf_x86_64_fbsd" + ;; + x86_64-*linux*) + LD="${LD-ld} -m elf_x86_64" + ;; + ppc*-*linux*|powerpc*-*linux*) + LD="${LD-ld} -m elf64ppc" + ;; + s390*-*linux*|s390*-*tpf*) + LD="${LD-ld} -m elf64_s390" + ;; + sparc*-*linux*) + LD="${LD-ld} -m elf64_sparc" + ;; + esac + ;; + esac + fi + rm -rf conftest* + ;; + +*-*-sco3.2v5*) + # On SCO OpenServer 5, we need -belf to get full-featured binaries. + SAVE_CFLAGS="$CFLAGS" + CFLAGS="$CFLAGS -belf" + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 +$as_echo_n "checking whether the C compiler needs -belf... " >&6; } +if ${lt_cv_cc_needs_belf+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu + + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + lt_cv_cc_needs_belf=yes +else + lt_cv_cc_needs_belf=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 +$as_echo "$lt_cv_cc_needs_belf" >&6; } + if test x"$lt_cv_cc_needs_belf" != x"yes"; then + # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf + CFLAGS="$SAVE_CFLAGS" + fi + ;; +*-*solaris*) + # Find out which ABI we are using. + echo 'int i;' > conftest.$ac_ext + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 + (eval $ac_compile) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + case `/usr/bin/file conftest.o` in + *64-bit*) + case $lt_cv_prog_gnu_ld in + yes*) + case $host in + i?86-*-solaris*) + LD="${LD-ld} -m elf_x86_64" + ;; + sparc*-*-solaris*) + LD="${LD-ld} -m elf64_sparc" + ;; + esac + # GNU ld 2.21 introduced _sol2 emulations. Use them if available. + if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then + LD="${LD-ld}_sol2" + fi + ;; + *) + if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then + LD="${LD-ld} -64" + fi + ;; + esac + ;; + esac + fi + rm -rf conftest* + ;; +esac + +need_locks="$enable_libtool_lock" + +if test -n "$ac_tool_prefix"; then + # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. +set dummy ${ac_tool_prefix}mt; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$MANIFEST_TOOL"; then + ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL +if test -n "$MANIFEST_TOOL"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 +$as_echo "$MANIFEST_TOOL" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + +fi +if test -z "$ac_cv_prog_MANIFEST_TOOL"; then + ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL + # Extract the first word of "mt", so it can be a program name with args. +set dummy mt; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$ac_ct_MANIFEST_TOOL"; then + ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL +if test -n "$ac_ct_MANIFEST_TOOL"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 +$as_echo "$ac_ct_MANIFEST_TOOL" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + if test "x$ac_ct_MANIFEST_TOOL" = x; then + MANIFEST_TOOL=":" + else + case $cross_compiling:$ac_tool_warned in +yes:) +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +ac_tool_warned=yes ;; +esac + MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL + fi +else + MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" +fi + +test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 +$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } +if ${lt_cv_path_mainfest_tool+:} false; then : + $as_echo_n "(cached) " >&6 +else + lt_cv_path_mainfest_tool=no + echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 + $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out + cat conftest.err >&5 + if $GREP 'Manifest Tool' conftest.out > /dev/null; then + lt_cv_path_mainfest_tool=yes + fi + rm -f conftest* +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 +$as_echo "$lt_cv_path_mainfest_tool" >&6; } +if test "x$lt_cv_path_mainfest_tool" != xyes; then + MANIFEST_TOOL=: +fi + + + + + + + case $host_os in + rhapsody* | darwin*) + if test -n "$ac_tool_prefix"; then + # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. +set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_DSYMUTIL+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$DSYMUTIL"; then + ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +DSYMUTIL=$ac_cv_prog_DSYMUTIL +if test -n "$DSYMUTIL"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 +$as_echo "$DSYMUTIL" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + +fi +if test -z "$ac_cv_prog_DSYMUTIL"; then + ac_ct_DSYMUTIL=$DSYMUTIL + # Extract the first word of "dsymutil", so it can be a program name with args. +set dummy dsymutil; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$ac_ct_DSYMUTIL"; then + ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL +if test -n "$ac_ct_DSYMUTIL"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 +$as_echo "$ac_ct_DSYMUTIL" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + if test "x$ac_ct_DSYMUTIL" = x; then + DSYMUTIL=":" + else + case $cross_compiling:$ac_tool_warned in +yes:) +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +ac_tool_warned=yes ;; +esac + DSYMUTIL=$ac_ct_DSYMUTIL + fi +else + DSYMUTIL="$ac_cv_prog_DSYMUTIL" +fi + + if test -n "$ac_tool_prefix"; then + # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. +set dummy ${ac_tool_prefix}nmedit; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_NMEDIT+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$NMEDIT"; then + ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi fi -if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 -$as_echo "failed" >&6; } +NMEDIT=$ac_cv_prog_NMEDIT +if test -n "$NMEDIT"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 +$as_echo "$NMEDIT" >&6; } else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 -$as_echo "ok" >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 -$as_echo_n "checking for objdir... " >&6; } -if test "${lt_cv_objdir+set}" = set; then : + +fi +if test -z "$ac_cv_prog_NMEDIT"; then + ac_ct_NMEDIT=$NMEDIT + # Extract the first word of "nmedit", so it can be a program name with args. +set dummy nmedit; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : $as_echo_n "(cached) " >&6 else - rm -f .libs 2>/dev/null -mkdir .libs 2>/dev/null -if test -d .libs; then - lt_cv_objdir=.libs + if test -n "$ac_ct_NMEDIT"; then + ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. else - # MS-DOS does not allow filenames that begin with a dot. - lt_cv_objdir=_libs +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_ac_ct_NMEDIT="nmedit" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + fi -rmdir .libs 2>/dev/null fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 -$as_echo "$lt_cv_objdir" >&6; } -objdir=$lt_cv_objdir - - - - +ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT +if test -n "$ac_ct_NMEDIT"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 +$as_echo "$ac_ct_NMEDIT" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi -case $host_os in -aix3*) - # AIX sometimes has problems with the GCC collect2 program. For some - # reason, if we set the COLLECT_NAMES environment variable, the problems - # vanish in a puff of smoke. - if test "X${COLLECT_NAMES+set}" != Xset; then - COLLECT_NAMES= - export COLLECT_NAMES - fi - ;; + if test "x$ac_ct_NMEDIT" = x; then + NMEDIT=":" + else + case $cross_compiling:$ac_tool_warned in +yes:) +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +ac_tool_warned=yes ;; esac + NMEDIT=$ac_ct_NMEDIT + fi +else + NMEDIT="$ac_cv_prog_NMEDIT" +fi -# Sed substitution that helps us do robust quoting. It backslashifies -# metacharacters that are still active within double-quoted strings. -Xsed='sed -e 1s/^X//' -sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g' - -# Same as above, but do not quote variable references. -double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g' - -# Sed substitution to delay expansion of an escaped shell variable in a -# double_quote_subst'ed string. -delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' - -# Sed substitution to avoid accidental globbing in evaled expressions -no_glob_subst='s/\*/\\\*/g' - -# Constants: -rm="rm -f" - -# Global variables: -default_ofile=libtool -can_build_shared=yes - -# All known linkers require a `.a' archive for static linking (except MSVC, -# which needs '.lib'). -libext=a -ltmain="$ac_aux_dir/ltmain.sh" -ofile="$default_ofile" -with_gnu_ld="$lt_cv_prog_gnu_ld" - -if test -n "$ac_tool_prefix"; then - # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. -set dummy ${ac_tool_prefix}ar; ac_word=$2 + if test -n "$ac_tool_prefix"; then + # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. +set dummy ${ac_tool_prefix}lipo; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } -if test "${ac_cv_prog_AR+set}" = set; then : +if ${ac_cv_prog_LIPO+:} false; then : $as_echo_n "(cached) " >&6 else - if test -n "$AR"; then - ac_cv_prog_AR="$AR" # Let the user override the test. + if test -n "$LIPO"; then + ac_cv_prog_LIPO="$LIPO" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH @@ -106401,8 +108202,8 @@ IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then - ac_cv_prog_AR="${ac_tool_prefix}ar" + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_LIPO="${ac_tool_prefix}lipo" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi @@ -106412,10 +108213,10 @@ fi fi -AR=$ac_cv_prog_AR -if test -n "$AR"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 -$as_echo "$AR" >&6; } +LIPO=$ac_cv_prog_LIPO +if test -n "$LIPO"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 +$as_echo "$LIPO" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } @@ -106423,17 +108224,17 @@ fi -if test -z "$ac_cv_prog_AR"; then - ac_ct_AR=$AR - # Extract the first word of "ar", so it can be a program name with args. -set dummy ar; ac_word=$2 +if test -z "$ac_cv_prog_LIPO"; then + ac_ct_LIPO=$LIPO + # Extract the first word of "lipo", so it can be a program name with args. +set dummy lipo; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } -if test "${ac_cv_prog_ac_ct_AR+set}" = set; then : +if ${ac_cv_prog_ac_ct_LIPO+:} false; then : $as_echo_n "(cached) " >&6 else - if test -n "$ac_ct_AR"; then - ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. + if test -n "$ac_ct_LIPO"; then + ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH @@ -106441,8 +108242,8 @@ IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then - ac_cv_prog_ac_ct_AR="ar" + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_ac_ct_LIPO="lipo" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi @@ -106452,17 +108253,17 @@ fi fi -ac_ct_AR=$ac_cv_prog_ac_ct_AR -if test -n "$ac_ct_AR"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 -$as_echo "$ac_ct_AR" >&6; } +ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO +if test -n "$ac_ct_LIPO"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 +$as_echo "$ac_ct_LIPO" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi - if test "x$ac_ct_AR" = x; then - AR="false" + if test "x$ac_ct_LIPO" = x; then + LIPO=":" else case $cross_compiling:$ac_tool_warned in yes:) @@ -106470,22 +108271,22 @@ $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac - AR=$ac_ct_AR + LIPO=$ac_ct_LIPO fi else - AR="$ac_cv_prog_AR" + LIPO="$ac_cv_prog_LIPO" fi -if test -n "$ac_tool_prefix"; then - # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. -set dummy ${ac_tool_prefix}ranlib; ac_word=$2 + if test -n "$ac_tool_prefix"; then + # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. +set dummy ${ac_tool_prefix}otool; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } -if test "${ac_cv_prog_RANLIB+set}" = set; then : +if ${ac_cv_prog_OTOOL+:} false; then : $as_echo_n "(cached) " >&6 else - if test -n "$RANLIB"; then - ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. + if test -n "$OTOOL"; then + ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH @@ -106493,8 +108294,8 @@ IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then - ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_OTOOL="${ac_tool_prefix}otool" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi @@ -106504,10 +108305,10 @@ fi fi -RANLIB=$ac_cv_prog_RANLIB -if test -n "$RANLIB"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 -$as_echo "$RANLIB" >&6; } +OTOOL=$ac_cv_prog_OTOOL +if test -n "$OTOOL"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 +$as_echo "$OTOOL" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } @@ -106515,17 +108316,17 @@ fi -if test -z "$ac_cv_prog_RANLIB"; then - ac_ct_RANLIB=$RANLIB - # Extract the first word of "ranlib", so it can be a program name with args. -set dummy ranlib; ac_word=$2 +if test -z "$ac_cv_prog_OTOOL"; then + ac_ct_OTOOL=$OTOOL + # Extract the first word of "otool", so it can be a program name with args. +set dummy otool; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } -if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then : +if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : $as_echo_n "(cached) " >&6 else - if test -n "$ac_ct_RANLIB"; then - ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. + if test -n "$ac_ct_OTOOL"; then + ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH @@ -106533,8 +108334,8 @@ IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then - ac_cv_prog_ac_ct_RANLIB="ranlib" + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_ac_ct_OTOOL="otool" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi @@ -106544,17 +108345,17 @@ fi fi -ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB -if test -n "$ac_ct_RANLIB"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 -$as_echo "$ac_ct_RANLIB" >&6; } +ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL +if test -n "$ac_ct_OTOOL"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 +$as_echo "$ac_ct_OTOOL" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi - if test "x$ac_ct_RANLIB" = x; then - RANLIB=":" + if test "x$ac_ct_OTOOL" = x; then + OTOOL=":" else case $cross_compiling:$ac_tool_warned in yes:) @@ -106562,22 +108363,22 @@ $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac - RANLIB=$ac_ct_RANLIB + OTOOL=$ac_ct_OTOOL fi else - RANLIB="$ac_cv_prog_RANLIB" + OTOOL="$ac_cv_prog_OTOOL" fi -if test -n "$ac_tool_prefix"; then - # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. -set dummy ${ac_tool_prefix}strip; ac_word=$2 + if test -n "$ac_tool_prefix"; then + # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. +set dummy ${ac_tool_prefix}otool64; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } -if test "${ac_cv_prog_STRIP+set}" = set; then : +if ${ac_cv_prog_OTOOL64+:} false; then : $as_echo_n "(cached) " >&6 else - if test -n "$STRIP"; then - ac_cv_prog_STRIP="$STRIP" # Let the user override the test. + if test -n "$OTOOL64"; then + ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH @@ -106585,8 +108386,8 @@ IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then - ac_cv_prog_STRIP="${ac_tool_prefix}strip" + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi @@ -106596,10 +108397,10 @@ fi fi -STRIP=$ac_cv_prog_STRIP -if test -n "$STRIP"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 -$as_echo "$STRIP" >&6; } +OTOOL64=$ac_cv_prog_OTOOL64 +if test -n "$OTOOL64"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 +$as_echo "$OTOOL64" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } @@ -106607,17 +108408,17 @@ fi -if test -z "$ac_cv_prog_STRIP"; then - ac_ct_STRIP=$STRIP - # Extract the first word of "strip", so it can be a program name with args. -set dummy strip; ac_word=$2 +if test -z "$ac_cv_prog_OTOOL64"; then + ac_ct_OTOOL64=$OTOOL64 + # Extract the first word of "otool64", so it can be a program name with args. +set dummy otool64; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } -if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then : +if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : $as_echo_n "(cached) " >&6 else - if test -n "$ac_ct_STRIP"; then - ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. + if test -n "$ac_ct_OTOOL64"; then + ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH @@ -106625,8 +108426,8 @@ IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then - ac_cv_prog_ac_ct_STRIP="strip" + if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_ac_ct_OTOOL64="otool64" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi @@ -106636,69 +108437,475 @@ fi fi -ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP -if test -n "$ac_ct_STRIP"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 -$as_echo "$ac_ct_STRIP" >&6; } +ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 +if test -n "$ac_ct_OTOOL64"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 +$as_echo "$ac_ct_OTOOL64" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi - if test "x$ac_ct_STRIP" = x; then - STRIP=":" - else - case $cross_compiling:$ac_tool_warned in -yes:) -{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 -$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} -ac_tool_warned=yes ;; -esac - STRIP=$ac_ct_STRIP + if test "x$ac_ct_OTOOL64" = x; then + OTOOL64=":" + else + case $cross_compiling:$ac_tool_warned in +yes:) +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +ac_tool_warned=yes ;; +esac + OTOOL64=$ac_ct_OTOOL64 + fi +else + OTOOL64="$ac_cv_prog_OTOOL64" +fi + + + + + + + + + + + + + + + + + + + + + + + + + + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 +$as_echo_n "checking for -single_module linker flag... " >&6; } +if ${lt_cv_apple_cc_single_mod+:} false; then : + $as_echo_n "(cached) " >&6 +else + lt_cv_apple_cc_single_mod=no + if test -z "${LT_MULTI_MODULE}"; then + # By default we will add the -single_module flag. You can override + # by either setting the environment variable LT_MULTI_MODULE + # non-empty at configure time, or by adding -multi_module to the + # link flags. + rm -rf libconftest.dylib* + echo "int foo(void){return 1;}" > conftest.c + echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ +-dynamiclib -Wl,-single_module conftest.c" >&5 + $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ + -dynamiclib -Wl,-single_module conftest.c 2>conftest.err + _lt_result=$? + # If there is a non-empty error log, and "single_module" + # appears in it, assume the flag caused a linker warning + if test -s conftest.err && $GREP single_module conftest.err; then + cat conftest.err >&5 + # Otherwise, if the output was created with a 0 exit code from + # the compiler, it worked. + elif test -f libconftest.dylib && test $_lt_result -eq 0; then + lt_cv_apple_cc_single_mod=yes + else + cat conftest.err >&5 + fi + rm -rf libconftest.dylib* + rm -f conftest.* + fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 +$as_echo "$lt_cv_apple_cc_single_mod" >&6; } + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 +$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } +if ${lt_cv_ld_exported_symbols_list+:} false; then : + $as_echo_n "(cached) " >&6 +else + lt_cv_ld_exported_symbols_list=no + save_LDFLAGS=$LDFLAGS + echo "_main" > conftest.sym + LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + lt_cv_ld_exported_symbols_list=yes +else + lt_cv_ld_exported_symbols_list=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + LDFLAGS="$save_LDFLAGS" + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 +$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 +$as_echo_n "checking for -force_load linker flag... " >&6; } +if ${lt_cv_ld_force_load+:} false; then : + $as_echo_n "(cached) " >&6 +else + lt_cv_ld_force_load=no + cat > conftest.c << _LT_EOF +int forced_loaded() { return 2;} +_LT_EOF + echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 + $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 + echo "$AR cru libconftest.a conftest.o" >&5 + $AR cru libconftest.a conftest.o 2>&5 + echo "$RANLIB libconftest.a" >&5 + $RANLIB libconftest.a 2>&5 + cat > conftest.c << _LT_EOF +int main() { return 0;} +_LT_EOF + echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 + $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err + _lt_result=$? + if test -s conftest.err && $GREP force_load conftest.err; then + cat conftest.err >&5 + elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then + lt_cv_ld_force_load=yes + else + cat conftest.err >&5 + fi + rm -f conftest.err libconftest.a conftest conftest.c + rm -rf conftest.dSYM + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 +$as_echo "$lt_cv_ld_force_load" >&6; } + case $host_os in + rhapsody* | darwin1.[012]) + _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; + darwin1.*) + _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; + darwin*) # darwin 5.x on + # if running on 10.5 or later, the deployment target defaults + # to the OS version, if on x86, and 10.4, the deployment + # target defaults to 10.4. Don't you love it? + case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in + 10.0,*86*-darwin8*|10.0,*-darwin[91]*) + _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; + 10.[012]*) + _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; + 10.*) + _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; + esac + ;; + esac + if test "$lt_cv_apple_cc_single_mod" = "yes"; then + _lt_dar_single_mod='$single_module' + fi + if test "$lt_cv_ld_exported_symbols_list" = "yes"; then + _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' + else + _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' + fi + if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then + _lt_dsymutil='~$DSYMUTIL $lib || :' + else + _lt_dsymutil= + fi + ;; + esac + +for ac_header in dlfcn.h +do : + ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default +" +if test "x$ac_cv_header_dlfcn_h" = xyes; then : + cat >>confdefs.h <<_ACEOF +#define HAVE_DLFCN_H 1 +_ACEOF + +fi + +done + + + + +func_stripname_cnf () +{ + case ${2} in + .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;; + *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;; + esac +} # func_stripname_cnf + + + + + +# Set options + + + + enable_dlopen=no + + + enable_win32_dll=no + + + # Check whether --enable-shared was given. +if test "${enable_shared+set}" = set; then : + enableval=$enable_shared; p=${PACKAGE-default} + case $enableval in + yes) enable_shared=yes ;; + no) enable_shared=no ;; + *) + enable_shared=no + # Look at the argument we got. We use all the common list separators. + lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," + for pkg in $enableval; do + IFS="$lt_save_ifs" + if test "X$pkg" = "X$p"; then + enable_shared=yes + fi + done + IFS="$lt_save_ifs" + ;; + esac +else + enable_shared=yes +fi + + + + + + + + + + # Check whether --enable-static was given. +if test "${enable_static+set}" = set; then : + enableval=$enable_static; p=${PACKAGE-default} + case $enableval in + yes) enable_static=yes ;; + no) enable_static=no ;; + *) + enable_static=no + # Look at the argument we got. We use all the common list separators. + lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," + for pkg in $enableval; do + IFS="$lt_save_ifs" + if test "X$pkg" = "X$p"; then + enable_static=yes + fi + done + IFS="$lt_save_ifs" + ;; + esac +else + enable_static=yes +fi + + + + + + + + + + +# Check whether --with-pic was given. +if test "${with_pic+set}" = set; then : + withval=$with_pic; lt_p=${PACKAGE-default} + case $withval in + yes|no) pic_mode=$withval ;; + *) + pic_mode=default + # Look at the argument we got. We use all the common list separators. + lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," + for lt_pkg in $withval; do + IFS="$lt_save_ifs" + if test "X$lt_pkg" = "X$lt_p"; then + pic_mode=yes + fi + done + IFS="$lt_save_ifs" + ;; + esac +else + pic_mode=default +fi + + +test -z "$pic_mode" && pic_mode=default + + + + + + + + # Check whether --enable-fast-install was given. +if test "${enable_fast_install+set}" = set; then : + enableval=$enable_fast_install; p=${PACKAGE-default} + case $enableval in + yes) enable_fast_install=yes ;; + no) enable_fast_install=no ;; + *) + enable_fast_install=no + # Look at the argument we got. We use all the common list separators. + lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," + for pkg in $enableval; do + IFS="$lt_save_ifs" + if test "X$pkg" = "X$p"; then + enable_fast_install=yes + fi + done + IFS="$lt_save_ifs" + ;; + esac +else + enable_fast_install=yes +fi + + + + + + + + + + + +# This can be used to rebuild libtool when needed +LIBTOOL_DEPS="$ltmain" + +# Always use our own libtool. +LIBTOOL='$(SHELL) $(top_builddir)/libtool' + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +test -z "$LN_S" && LN_S="ln -s" + + + + + + + + + + + + + + +if test -n "${ZSH_VERSION+set}" ; then + setopt NO_GLOB_SUBST +fi + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 +$as_echo_n "checking for objdir... " >&6; } +if ${lt_cv_objdir+:} false; then : + $as_echo_n "(cached) " >&6 +else + rm -f .libs 2>/dev/null +mkdir .libs 2>/dev/null +if test -d .libs; then + lt_cv_objdir=.libs +else + # MS-DOS does not allow filenames that begin with a dot. + lt_cv_objdir=_libs +fi +rmdir .libs 2>/dev/null +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 +$as_echo "$lt_cv_objdir" >&6; } +objdir=$lt_cv_objdir + + + + + +cat >>confdefs.h <<_ACEOF +#define LT_OBJDIR "$lt_cv_objdir/" +_ACEOF + + + + +case $host_os in +aix3*) + # AIX sometimes has problems with the GCC collect2 program. For some + # reason, if we set the COLLECT_NAMES environment variable, the problems + # vanish in a puff of smoke. + if test "X${COLLECT_NAMES+set}" != Xset; then + COLLECT_NAMES= + export COLLECT_NAMES fi -else - STRIP="$ac_cv_prog_STRIP" -fi + ;; +esac + +# Global variables: +ofile=libtool +can_build_shared=yes +# All known linkers require a `.a' archive for static linking (except MSVC, +# which needs '.lib'). +libext=a + +with_gnu_ld="$lt_cv_prog_gnu_ld" old_CC="$CC" old_CFLAGS="$CFLAGS" # Set sane defaults for various variables -test -z "$AR" && AR=ar -test -z "$AR_FLAGS" && AR_FLAGS=cru -test -z "$AS" && AS=as test -z "$CC" && CC=cc test -z "$LTCC" && LTCC=$CC test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS -test -z "$DLLTOOL" && DLLTOOL=dlltool test -z "$LD" && LD=ld -test -z "$LN_S" && LN_S="ln -s" -test -z "$MAGIC_CMD" && MAGIC_CMD=file -test -z "$NM" && NM=nm -test -z "$SED" && SED=sed -test -z "$OBJDUMP" && OBJDUMP=objdump -test -z "$RANLIB" && RANLIB=: -test -z "$STRIP" && STRIP=: test -z "$ac_objext" && ac_objext=o -# Determine commands to create old-style static archives. -old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' -old_postinstall_cmds='chmod 644 $oldlib' -old_postuninstall_cmds= - -if test -n "$RANLIB"; then - case $host_os in - openbsd*) - old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" - ;; - *) - old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" - ;; - esac - old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" -fi - for cc_temp in $compiler""; do case $cc_temp in compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; @@ -106707,16 +108914,17 @@ *) break;; esac done -cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` +cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` # Only perform the check for file, if the check method requires it +test -z "$MAGIC_CMD" && MAGIC_CMD=file case $deplibs_check_method in file_magic*) if test "$file_magic_cmd" = '$MAGIC_CMD'; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } -if test "${lt_cv_path_MAGIC_CMD+set}" = set; then : +if ${lt_cv_path_MAGIC_CMD+:} false; then : $as_echo_n "(cached) " >&6 else case $MAGIC_CMD in @@ -106741,7 +108949,7 @@ $EGREP "$file_magic_regex" > /dev/null; then : else - cat <&2 + cat <<_LT_EOF 1>&2 *** Warning: the command libtool uses to detect shared libraries, *** $file_magic_cmd, produces output that libtool cannot recognize. @@ -106752,7 +108960,7 @@ *** may want to report the problem to your system manager and/or to *** bug-libtool@gnu.org -EOF +_LT_EOF fi ;; esac fi @@ -106774,11 +108982,15 @@ $as_echo "no" >&6; } fi + + + + if test -z "$lt_cv_path_MAGIC_CMD"; then if test -n "$ac_tool_prefix"; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 $as_echo_n "checking for file... " >&6; } -if test "${lt_cv_path_MAGIC_CMD+set}" = set; then : +if ${lt_cv_path_MAGIC_CMD+:} false; then : $as_echo_n "(cached) " >&6 else case $MAGIC_CMD in @@ -106803,7 +109015,7 @@ $EGREP "$file_magic_regex" > /dev/null; then : else - cat <&2 + cat <<_LT_EOF 1>&2 *** Warning: the command libtool uses to detect shared libraries, *** $file_magic_cmd, produces output that libtool cannot recognize. @@ -106814,7 +109026,7 @@ *** may want to report the problem to your system manager and/or to *** bug-libtool@gnu.org -EOF +_LT_EOF fi ;; esac fi @@ -106836,6 +109048,7 @@ $as_echo "no" >&6; } fi + else MAGIC_CMD=: fi @@ -106845,312 +109058,9 @@ ;; esac - - case $host_os in - rhapsody* | darwin*) - if test -n "$ac_tool_prefix"; then - # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. -set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if test "${ac_cv_prog_DSYMUTIL+set}" = set; then : - $as_echo_n "(cached) " >&6 -else - if test -n "$DSYMUTIL"; then - ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then - ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done - done -IFS=$as_save_IFS - -fi -fi -DSYMUTIL=$ac_cv_prog_DSYMUTIL -if test -n "$DSYMUTIL"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 -$as_echo "$DSYMUTIL" >&6; } -else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } -fi - - -fi -if test -z "$ac_cv_prog_DSYMUTIL"; then - ac_ct_DSYMUTIL=$DSYMUTIL - # Extract the first word of "dsymutil", so it can be a program name with args. -set dummy dsymutil; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then : - $as_echo_n "(cached) " >&6 -else - if test -n "$ac_ct_DSYMUTIL"; then - ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then - ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done - done -IFS=$as_save_IFS - -fi -fi -ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL -if test -n "$ac_ct_DSYMUTIL"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 -$as_echo "$ac_ct_DSYMUTIL" >&6; } -else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } -fi - - if test "x$ac_ct_DSYMUTIL" = x; then - DSYMUTIL=":" - else - case $cross_compiling:$ac_tool_warned in -yes:) -{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 -$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} -ac_tool_warned=yes ;; -esac - DSYMUTIL=$ac_ct_DSYMUTIL - fi -else - DSYMUTIL="$ac_cv_prog_DSYMUTIL" -fi - - if test -n "$ac_tool_prefix"; then - # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. -set dummy ${ac_tool_prefix}nmedit; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if test "${ac_cv_prog_NMEDIT+set}" = set; then : - $as_echo_n "(cached) " >&6 -else - if test -n "$NMEDIT"; then - ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then - ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done - done -IFS=$as_save_IFS - -fi -fi -NMEDIT=$ac_cv_prog_NMEDIT -if test -n "$NMEDIT"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 -$as_echo "$NMEDIT" >&6; } -else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } -fi - - -fi -if test -z "$ac_cv_prog_NMEDIT"; then - ac_ct_NMEDIT=$NMEDIT - # Extract the first word of "nmedit", so it can be a program name with args. -set dummy nmedit; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then : - $as_echo_n "(cached) " >&6 -else - if test -n "$ac_ct_NMEDIT"; then - ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then - ac_cv_prog_ac_ct_NMEDIT="nmedit" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done - done -IFS=$as_save_IFS - -fi -fi -ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT -if test -n "$ac_ct_NMEDIT"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 -$as_echo "$ac_ct_NMEDIT" >&6; } -else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } -fi - - if test "x$ac_ct_NMEDIT" = x; then - NMEDIT=":" - else - case $cross_compiling:$ac_tool_warned in -yes:) -{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 -$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} -ac_tool_warned=yes ;; -esac - NMEDIT=$ac_ct_NMEDIT - fi -else - NMEDIT="$ac_cv_prog_NMEDIT" -fi - - - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 -$as_echo_n "checking for -single_module linker flag... " >&6; } -if test "${lt_cv_apple_cc_single_mod+set}" = set; then : - $as_echo_n "(cached) " >&6 -else - lt_cv_apple_cc_single_mod=no - if test -z "${LT_MULTI_MODULE}"; then - # By default we will add the -single_module flag. You can override - # by either setting the environment variable LT_MULTI_MODULE - # non-empty at configure time, or by adding -multi_module to the - # link flags. - echo "int foo(void){return 1;}" > conftest.c - $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ - -dynamiclib ${wl}-single_module conftest.c - if test -f libconftest.dylib; then - lt_cv_apple_cc_single_mod=yes - rm -rf libconftest.dylib* - fi - rm conftest.c - fi -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 -$as_echo "$lt_cv_apple_cc_single_mod" >&6; } - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 -$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } -if test "${lt_cv_ld_exported_symbols_list+set}" = set; then : - $as_echo_n "(cached) " >&6 -else - lt_cv_ld_exported_symbols_list=no - save_LDFLAGS=$LDFLAGS - echo "_main" > conftest.sym - LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" - -cat > conftest.$ac_ext <&5 - (eval $ac_link) 2>&5 - ac_status=$? - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 - test $ac_status = 0; } && test -s conftest${ac_exeext}; then - lt_cv_ld_exported_symbols_list=yes - rm -rf conftest* -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&6 -lt_cv_ld_exported_symbols_list=no - rm -rf conftest* -fi -rm -f conftest* - LDFLAGS="$save_LDFLAGS" - -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 -$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } - case $host_os in - rhapsody* | darwin1.[0123]) - _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; - darwin1.*) - _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; - darwin*) - # if running on 10.5 or later, the deployment target defaults - # to the OS version, if on x86, and 10.4, the deployment - # target defaults to 10.4. Don't you love it? - case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in - 10.0,*86*-darwin8*|10.0,*-darwin[91]*) - _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; - 10.[012]*) - _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; - 10.*) - _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; - esac - ;; - esac - if test "$lt_cv_apple_cc_single_mod" = "yes"; then - _lt_dar_single_mod='$single_module' - fi - if test "$lt_cv_ld_exported_symbols_list" = "yes"; then - _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' - else - _lt_dar_export_syms="~$NMEDIT -s \$output_objdir/\${libname}-symbols.expsym \${lib}" - fi - if test "$DSYMUTIL" != ":"; then - _lt_dsymutil="~$DSYMUTIL \$lib || :" - else - _lt_dsymutil= - fi - ;; - esac - - -enable_dlopen=no -enable_win32_dll=no - -# Check whether --enable-libtool-lock was given. -if test "${enable_libtool_lock+set}" = set; then : - enableval=$enable_libtool_lock; -fi - -test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes - - -# Check whether --with-pic was given. -if test "${with_pic+set}" = set; then : - withval=$with_pic; pic_mode="$withval" -else - pic_mode=default -fi - -test -z "$pic_mode" && pic_mode=default - # Use C for the default configuration in the libtool script -tagname= -lt_save_CC="$CC" +lt_save_CC="$CC" ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' @@ -107172,6 +109082,11 @@ lt_simple_link_test_code='int main(){return(0);}' + + + + + # If no C compiler was specified, use CC. LTCC=${LTCC-"$CC"} @@ -107181,39 +109096,43 @@ # Allow CC to be a program name with arguments. compiler=$CC +# Save the default compiler, since it gets overwritten when the other +# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. +compiler_DEFAULT=$CC # save warnings/boilerplate of simple test code ac_outfile=conftest.$ac_objext echo "$lt_simple_compile_test_code" >conftest.$ac_ext eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err _lt_compiler_boilerplate=`cat conftest.err` -$rm conftest* +$RM conftest* ac_outfile=conftest.$ac_objext echo "$lt_simple_link_test_code" >conftest.$ac_ext eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err _lt_linker_boilerplate=`cat conftest.err` -$rm -r conftest* +$RM -r conftest* -## CAVEAT EMPTOR: -## There is no encapsulation within the following macros, do not change -## the running order or otherwise move them around unless you know exactly -## what you are doing... +if test -n "$compiler"; then lt_prog_compiler_no_builtin_flag= if test "$GCC" = yes; then - lt_prog_compiler_no_builtin_flag=' -fno-builtin' - + case $cc_basename in + nvcc*) + lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; + *) + lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; + esac -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } -if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then : +if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : $as_echo_n "(cached) " >&6 else lt_cv_prog_compiler_rtti_exceptions=no - ac_outfile=conftest.$ac_objext + ac_outfile=conftest.$ac_objext echo "$lt_simple_compile_test_code" > conftest.$ac_ext lt_compiler_flag="-fno-rtti -fno-exceptions" # Insert the option either (1) after the last *FLAGS variable, or @@ -107225,21 +109144,21 @@ -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ -e 's:$: $lt_compiler_flag:'` - (eval echo "\"configure:107228: $lt_compile\"" >&5) + (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) (eval "$lt_compile" 2>conftest.err) ac_status=$? cat conftest.err >&5 - echo "configure:107232: \$? = $ac_status" >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 if (exit $ac_status) && test -s "$ac_outfile"; then # The compiler can only warn and ignore the option if not recognized # So say no if there are warnings other than the usual output. - $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp + $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then lt_cv_prog_compiler_rtti_exceptions=yes fi fi - $rm conftest* + $RM conftest* fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 @@ -107253,12 +109172,15 @@ fi -lt_prog_compiler_wl= + + + + + + lt_prog_compiler_wl= lt_prog_compiler_pic= lt_prog_compiler_static= -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 -$as_echo_n "checking for $compiler option to produce PIC... " >&6; } if test "$GCC" = yes; then lt_prog_compiler_wl='-Wl,' @@ -107274,22 +109196,30 @@ ;; amigaos*) - # FIXME: we need at least 68020 code to build shared libraries, but - # adding the `-m68020' flag to GCC prevents building anything better, - # like `-m68040'. - lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' + case $host_cpu in + powerpc) + # see comment about AmigaOS4 .so support + lt_prog_compiler_pic='-fPIC' + ;; + m68k) + # FIXME: we need at least 68020 code to build shared libraries, but + # adding the `-m68020' flag to GCC prevents building anything better, + # like `-m68040'. + lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' + ;; + esac ;; beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) # PIC is the default for these OSes. ;; - mingw* | cygwin* | pw32* | os2*) + mingw* | cygwin* | pw32* | os2* | cegcc*) # This hack is so that the source file can tell whether it is being # built for inclusion in a dll (and should export symbols for example). # Although the cygwin gcc ignores -fPIC, still need this for old-style # (--disable-auto-import) libraries - lt_prog_compiler_pic='-DDLL_EXPORT' + lt_prog_compiler_pic='-DDLL_EXPORT' ;; darwin* | rhapsody*) @@ -107298,6 +109228,26 @@ lt_prog_compiler_pic='-fno-common' ;; + haiku*) + # PIC is the default for Haiku. + # The "-static" flag exists, but is broken. + lt_prog_compiler_static= + ;; + + hpux*) + # PIC is the default for 64-bit PA HP-UX, but not for 32-bit + # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag + # sets the default TLS model and affects inlining. + case $host_cpu in + hppa*64*) + # +Z the default + ;; + *) + lt_prog_compiler_pic='-fPIC' + ;; + esac + ;; + interix[3-9]*) # Interix 3.x gcc -fpic/-fPIC options generate broken code. # Instead, we relocate shared libraries at runtime. @@ -107310,29 +109260,31 @@ enable_shared=no ;; + *nto* | *qnx*) + # QNX uses GNU C++, but need to define -shared option too, otherwise + # it will coredump. + lt_prog_compiler_pic='-fPIC -shared' + ;; + sysv4*MP*) if test -d /usr/nec; then lt_prog_compiler_pic=-Kconform_pic fi ;; - hpux*) - # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but - # not for PA HP-UX. - case $host_cpu in - hppa*64*|ia64*) - # +Z the default - ;; - *) - lt_prog_compiler_pic='-fPIC' - ;; - esac - ;; - *) lt_prog_compiler_pic='-fPIC' ;; esac + + case $cc_basename in + nvcc*) # Cuda Compiler Driver 2.2 + lt_prog_compiler_wl='-Xlinker ' + if test -n "$lt_prog_compiler_pic"; then + lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" + fi + ;; + esac else # PORTME Check for flag to pass linker flags through the system compiler. case $host_os in @@ -107345,21 +109297,11 @@ lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' fi ;; - darwin*) - # PIC is the default on this platform - # Common symbols not allowed in MH_DYLIB files - case $cc_basename in - xlc*) - lt_prog_compiler_pic='-qnocommon' - lt_prog_compiler_wl='-Wl,' - ;; - esac - ;; - mingw* | cygwin* | pw32* | os2*) + mingw* | cygwin* | pw32* | os2* | cegcc*) # This hack is so that the source file can tell whether it is being # built for inclusion in a dll (and should export symbols for example). - lt_prog_compiler_pic='-DDLL_EXPORT' + lt_prog_compiler_pic='-DDLL_EXPORT' ;; hpux9* | hpux10* | hpux11*) @@ -107384,27 +109326,34 @@ lt_prog_compiler_static='-non_shared' ;; - newsos6) - lt_prog_compiler_pic='-KPIC' - lt_prog_compiler_static='-Bstatic' - ;; - - linux* | k*bsd*-gnu) + linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) case $cc_basename in # old Intel for x86_64 which still supported -KPIC. ecc*) - lt_prog_compiler_wl='-Wl,' - lt_prog_compiler_pic='-KPIC' - lt_prog_compiler_static='-static' + lt_prog_compiler_wl='-Wl,' + lt_prog_compiler_pic='-KPIC' + lt_prog_compiler_static='-static' ;; # icc used to be incompatible with GCC. # ICC 10 doesn't accept -KPIC any more. - icc*) - lt_prog_compiler_wl='-Wl,' - lt_prog_compiler_pic='-fPIC' - lt_prog_compiler_static='-static' + icc* | ifort*) + lt_prog_compiler_wl='-Wl,' + lt_prog_compiler_pic='-fPIC' + lt_prog_compiler_static='-static' ;; - pgcc* | pgf77* | pgf90* | pgf95*) + # Lahey Fortran 8.1. + lf95*) + lt_prog_compiler_wl='-Wl,' + lt_prog_compiler_pic='--shared' + lt_prog_compiler_static='--static' + ;; + nagfor*) + # NAG Fortran compiler + lt_prog_compiler_wl='-Wl,-Wl,,' + lt_prog_compiler_pic='-PIC' + lt_prog_compiler_static='-Bstatic' + ;; + pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) # Portland Group compilers (*not* the Pentium gcc compiler, # which looks to be a dead project) lt_prog_compiler_wl='-Wl,' @@ -107416,25 +109365,57 @@ # All Alpha code is PIC. lt_prog_compiler_static='-non_shared' ;; + xl* | bgxl* | bgf* | mpixl*) + # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene + lt_prog_compiler_wl='-Wl,' + lt_prog_compiler_pic='-qpic' + lt_prog_compiler_static='-qstaticlink' + ;; *) - case `$CC -V 2>&1 | sed 5q` in + case `$CC -V 2>&1 | sed 5q` in + *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) + # Sun Fortran 8.3 passes all unrecognized flags to the linker + lt_prog_compiler_pic='-KPIC' + lt_prog_compiler_static='-Bstatic' + lt_prog_compiler_wl='' + ;; + *Sun\ F* | *Sun*Fortran*) + lt_prog_compiler_pic='-KPIC' + lt_prog_compiler_static='-Bstatic' + lt_prog_compiler_wl='-Qoption ld ' + ;; *Sun\ C*) # Sun C 5.9 lt_prog_compiler_pic='-KPIC' lt_prog_compiler_static='-Bstatic' lt_prog_compiler_wl='-Wl,' ;; - *Sun\ F*) - # Sun Fortran 8.3 passes all unrecognized flags to the linker - lt_prog_compiler_pic='-KPIC' + *Intel*\ [CF]*Compiler*) + lt_prog_compiler_wl='-Wl,' + lt_prog_compiler_pic='-fPIC' + lt_prog_compiler_static='-static' + ;; + *Portland\ Group*) + lt_prog_compiler_wl='-Wl,' + lt_prog_compiler_pic='-fpic' lt_prog_compiler_static='-Bstatic' - lt_prog_compiler_wl='' ;; esac ;; esac ;; + newsos6) + lt_prog_compiler_pic='-KPIC' + lt_prog_compiler_static='-Bstatic' + ;; + + *nto* | *qnx*) + # QNX uses GNU C++, but need to define -shared option too, otherwise + # it will coredump. + lt_prog_compiler_pic='-fPIC -shared' + ;; + osf3* | osf4* | osf5*) lt_prog_compiler_wl='-Wl,' # All OSF/1 code is PIC. @@ -107449,7 +109430,7 @@ lt_prog_compiler_pic='-KPIC' lt_prog_compiler_static='-Bstatic' case $cc_basename in - f77* | f90* | f95*) + f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) lt_prog_compiler_wl='-Qoption ld ';; *) lt_prog_compiler_wl='-Wl,';; @@ -107497,21 +109478,38 @@ esac fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5 -$as_echo "$lt_prog_compiler_pic" >&6; } +case $host_os in + # For platforms which do not support PIC, -DPIC is meaningless: + *djgpp*) + lt_prog_compiler_pic= + ;; + *) + lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" + ;; +esac + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 +$as_echo_n "checking for $compiler option to produce PIC... " >&6; } +if ${lt_cv_prog_compiler_pic+:} false; then : + $as_echo_n "(cached) " >&6 +else + lt_cv_prog_compiler_pic=$lt_prog_compiler_pic +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 +$as_echo "$lt_cv_prog_compiler_pic" >&6; } +lt_prog_compiler_pic=$lt_cv_prog_compiler_pic # # Check to make sure the PIC flag actually works. # if test -n "$lt_prog_compiler_pic"; then - -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } -if test "${lt_cv_prog_compiler_pic_works+set}" = set; then : +if ${lt_cv_prog_compiler_pic_works+:} false; then : $as_echo_n "(cached) " >&6 else lt_cv_prog_compiler_pic_works=no - ac_outfile=conftest.$ac_objext + ac_outfile=conftest.$ac_objext echo "$lt_simple_compile_test_code" > conftest.$ac_ext lt_compiler_flag="$lt_prog_compiler_pic -DPIC" # Insert the option either (1) after the last *FLAGS variable, or @@ -107523,21 +109521,21 @@ -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ -e 's:$: $lt_compiler_flag:'` - (eval echo "\"configure:107526: $lt_compile\"" >&5) + (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) (eval "$lt_compile" 2>conftest.err) ac_status=$? cat conftest.err >&5 - echo "configure:107530: \$? = $ac_status" >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 if (exit $ac_status) && test -s "$ac_outfile"; then # The compiler can only warn and ignore the option if not recognized # So say no if there are warnings other than the usual output. - $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp + $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then lt_cv_prog_compiler_pic_works=yes fi fi - $rm conftest* + $RM conftest* fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 @@ -107554,15 +109552,16 @@ fi fi -case $host_os in - # For platforms which do not support PIC, -DPIC is meaningless: - *djgpp*) - lt_prog_compiler_pic= - ;; - *) - lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" - ;; -esac + + + + + + + + + + # # Check to make sure the static flag actually works. @@ -107570,7 +109569,7 @@ wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } -if test "${lt_cv_prog_compiler_static_works+set}" = set; then : +if ${lt_cv_prog_compiler_static_works+:} false; then : $as_echo_n "(cached) " >&6 else lt_cv_prog_compiler_static_works=no @@ -107583,7 +109582,7 @@ if test -s conftest.err; then # Append any errors to the config.log. cat conftest.err 1>&5 - $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp + $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 if diff conftest.exp conftest.er2 >/dev/null; then lt_cv_prog_compiler_static_works=yes @@ -107592,27 +109591,87 @@ lt_cv_prog_compiler_static_works=yes fi fi - $rm -r conftest* + $RM -r conftest* LDFLAGS="$save_LDFLAGS" fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 $as_echo "$lt_cv_prog_compiler_static_works" >&6; } -if test x"$lt_cv_prog_compiler_static_works" = xyes; then - : -else - lt_prog_compiler_static= +if test x"$lt_cv_prog_compiler_static_works" = xyes; then + : +else + lt_prog_compiler_static= +fi + + + + + + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 +$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } +if ${lt_cv_prog_compiler_c_o+:} false; then : + $as_echo_n "(cached) " >&6 +else + lt_cv_prog_compiler_c_o=no + $RM -r conftest 2>/dev/null + mkdir conftest + cd conftest + mkdir out + echo "$lt_simple_compile_test_code" > conftest.$ac_ext + + lt_compiler_flag="-o out/conftest2.$ac_objext" + # Insert the option either (1) after the last *FLAGS variable, or + # (2) before a word containing "conftest.", or (3) at the end. + # Note that $ac_compile itself does not contain backslashes and begins + # with a dollar sign (not a hyphen), so the echo should work correctly. + lt_compile=`echo "$ac_compile" | $SED \ + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ + -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ + -e 's:$: $lt_compiler_flag:'` + (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) + (eval "$lt_compile" 2>out/conftest.err) + ac_status=$? + cat out/conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + if (exit $ac_status) && test -s out/conftest2.$ac_objext + then + # The compiler can only warn and ignore the option if not recognized + # So say no if there are warnings + $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp + $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 + if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then + lt_cv_prog_compiler_c_o=yes + fi + fi + chmod u+w . 2>&5 + $RM conftest* + # SGI C++ compiler will create directory out/ii_files/ for + # template instantiation + test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files + $RM out/* && rmdir out + cd .. + $RM -r conftest + $RM conftest* + fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 +$as_echo "$lt_cv_prog_compiler_c_o" >&6; } + + -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } -if test "${lt_cv_prog_compiler_c_o+set}" = set; then : +if ${lt_cv_prog_compiler_c_o+:} false; then : $as_echo_n "(cached) " >&6 else lt_cv_prog_compiler_c_o=no - $rm -r conftest 2>/dev/null + $RM -r conftest 2>/dev/null mkdir conftest cd conftest mkdir out @@ -107627,43 +109686,45 @@ -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ -e 's:$: $lt_compiler_flag:'` - (eval echo "\"configure:107630: $lt_compile\"" >&5) + (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) (eval "$lt_compile" 2>out/conftest.err) ac_status=$? cat out/conftest.err >&5 - echo "configure:107634: \$? = $ac_status" >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 if (exit $ac_status) && test -s out/conftest2.$ac_objext then # The compiler can only warn and ignore the option if not recognized # So say no if there are warnings - $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp + $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then lt_cv_prog_compiler_c_o=yes fi fi chmod u+w . 2>&5 - $rm conftest* + $RM conftest* # SGI C++ compiler will create directory out/ii_files/ for # template instantiation - test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files - $rm out/* && rmdir out + test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files + $RM out/* && rmdir out cd .. - rmdir conftest - $rm conftest* + $RM -r conftest + $RM conftest* fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 $as_echo "$lt_cv_prog_compiler_c_o" >&6; } + + hard_links="nottested" if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then # do not overwrite the value of need_locks provided by the user { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 $as_echo_n "checking if we can lock with hard links... " >&6; } hard_links=yes - $rm conftest* + $RM conftest* ln conftest.a conftest.b 2>/dev/null && hard_links=no touch conftest.a ln conftest.a conftest.b 2>&5 || hard_links=no @@ -107679,31 +109740,38 @@ need_locks=no fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 + + + + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } runpath_var= allow_undefined_flag= - enable_shared_with_static_runtimes=no + always_export_symbols=no archive_cmds= archive_expsym_cmds= - old_archive_From_new_cmds= - old_archive_from_expsyms_cmds= + compiler_needs_object=no + enable_shared_with_static_runtimes=no export_dynamic_flag_spec= - whole_archive_flag_spec= - thread_safe_flag_spec= + export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' + hardcode_automatic=no + hardcode_direct=no + hardcode_direct_absolute=no hardcode_libdir_flag_spec= - hardcode_libdir_flag_spec_ld= hardcode_libdir_separator= - hardcode_direct=no hardcode_minus_L=no hardcode_shlibpath_var=unsupported + inherit_rpath=no link_all_deplibs=unknown - hardcode_automatic=no module_cmds= module_expsym_cmds= - always_export_symbols=no - export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' + old_archive_from_new_cmds= + old_archive_from_expsyms_cmds= + thread_safe_flag_spec= + whole_archive_flag_spec= # include_expsyms should be a list of space-separated symbols to be *always* # included in the symbol list include_expsyms= @@ -107719,19 +109787,9 @@ # preloaded symbol tables. # Exclude shared library initialization/finalization symbols. extract_expsyms_cmds= - # Just being paranoid about ensuring that cc_basename is set. - for cc_temp in $compiler""; do - case $cc_temp in - compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; - distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; - \-*) ;; - *) break;; - esac -done -cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` case $host_os in - cygwin* | mingw* | pw32*) + cygwin* | mingw* | pw32* | cegcc*) # FIXME: the MSVC++ port hasn't been tested in a loooong time # When not using gcc, we currently assume that we are using # Microsoft Visual C++. @@ -107746,10 +109804,39 @@ openbsd*) with_gnu_ld=no ;; + linux* | k*bsd*-gnu | gnu*) + link_all_deplibs=no + ;; esac ld_shlibs=yes + + # On some targets, GNU ld is compatible enough with the native linker + # that we're better off using the native interface for both. + lt_use_gnu_ld_interface=no if test "$with_gnu_ld" = yes; then + case $host_os in + aix*) + # The AIX port of GNU ld has always aspired to compatibility + # with the native linker. However, as the warning in the GNU ld + # block says, versions before 2.19.5* couldn't really create working + # shared libraries, regardless of the interface used. + case `$LD -v 2>&1` in + *\ \(GNU\ Binutils\)\ 2.19.5*) ;; + *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; + *\ \(GNU\ Binutils\)\ [3-9]*) ;; + *) + lt_use_gnu_ld_interface=yes + ;; + esac + ;; + *) + lt_use_gnu_ld_interface=yes + ;; + esac + fi + + if test "$lt_use_gnu_ld_interface" = yes; then # If archive_cmds runs LD, not CC, wlarc should be empty wlarc='${wl}' @@ -107757,16 +109844,17 @@ # are reset later if shared libraries are not supported. Putting them # here allows them to be overridden if necessary. runpath_var=LD_RUN_PATH - hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir' + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' export_dynamic_flag_spec='${wl}--export-dynamic' # ancient GNU ld didn't support --whole-archive et. al. - if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then - whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' - else - whole_archive_flag_spec= + if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then + whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' + else + whole_archive_flag_spec= fi supports_anon_versioning=no - case `$LD -v 2>/dev/null` in + case `$LD -v 2>&1` in + *GNU\ gold*) supports_anon_versioning=yes ;; *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... @@ -107780,34 +109868,36 @@ # On AIX/PPC, the GNU linker is very broken if test "$host_cpu" != ia64; then ld_shlibs=no - cat <&2 + cat <<_LT_EOF 1>&2 -*** Warning: the GNU linker, at least up to release 2.9.1, is reported +*** Warning: the GNU linker, at least up to release 2.19, is reported *** to be unable to reliably create shared libraries on AIX. *** Therefore, libtool is disabling shared libraries support. If you -*** really care for shared libraries, you may want to modify your PATH -*** so that a non-GNU linker is found, and then restart. +*** really care for shared libraries, you may want to install binutils +*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. +*** You will then need to restart the configuration process. -EOF +_LT_EOF fi ;; amigaos*) - archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' - hardcode_libdir_flag_spec='-L$libdir' - hardcode_minus_L=yes - - # Samuel A. Falvo II reports - # that the semantics of dynamic libraries on AmigaOS, at least up - # to version 4, is to share data among multiple programs linked - # with the same dynamic library. Since this doesn't match the - # behavior of shared libraries on other platforms, we can't use - # them. - ld_shlibs=no + case $host_cpu in + powerpc) + # see comment about AmigaOS4 .so support + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' + archive_expsym_cmds='' + ;; + m68k) + archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' + hardcode_libdir_flag_spec='-L$libdir' + hardcode_minus_L=yes + ;; + esac ;; beos*) - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then + if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then allow_undefined_flag=unsupported # Joseph Beckenbach says some releases of gcc # support --undefined. This deserves some investigation. FIXME @@ -107817,16 +109907,18 @@ fi ;; - cygwin* | mingw* | pw32*) - # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, + cygwin* | mingw* | pw32* | cegcc*) + # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, # as there is no search path for DLLs. hardcode_libdir_flag_spec='-L$libdir' + export_dynamic_flag_spec='${wl}--export-all-symbols' allow_undefined_flag=unsupported always_export_symbols=no enable_shared_with_static_runtimes=yes - export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' + export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols' + exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' - if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then + if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' # If the export-symbols file already is a .def file (1st line # is EXPORTS), use it as is; otherwise, prepend... @@ -107842,6 +109934,11 @@ fi ;; + haiku*) + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' + link_all_deplibs=yes + ;; + interix[3-9]*) hardcode_direct=no hardcode_shlibpath_var=no @@ -107857,60 +109954,94 @@ archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' ;; - gnu* | linux* | k*bsd*-gnu) - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then - tmp_addflag= + gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) + tmp_diet=no + if test "$host_os" = linux-dietlibc; then + case $cc_basename in + diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) + esac + fi + if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ + && test "$tmp_diet" = no + then + tmp_addflag=' $pic_flag' + tmp_sharedflag='-shared' case $cc_basename,$host_cpu in - pgcc*) # Portland Group C compiler - whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' + pgcc*) # Portland Group C compiler + whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' tmp_addflag=' $pic_flag' ;; - pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers - whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' + pgf77* | pgf90* | pgf95* | pgfortran*) + # Portland Group f77 and f90 compilers + whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' tmp_addflag=' $pic_flag -Mnomain' ;; - ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 + ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 tmp_addflag=' -i_dynamic' ;; efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 tmp_addflag=' -i_dynamic -nofor_main' ;; ifc* | ifort*) # Intel Fortran compiler tmp_addflag=' -nofor_main' ;; + lf95*) # Lahey Fortran 8.1 + whole_archive_flag_spec= + tmp_sharedflag='--shared' ;; + xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) + tmp_sharedflag='-qmkshrobj' + tmp_addflag= ;; + nvcc*) # Cuda Compiler Driver 2.2 + whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' + compiler_needs_object=yes + ;; esac case `$CC -V 2>&1 | sed 5q` in *Sun\ C*) # Sun C 5.9 - whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' + whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' + compiler_needs_object=yes tmp_sharedflag='-G' ;; *Sun\ F*) # Sun Fortran 8.3 tmp_sharedflag='-G' ;; - *) - tmp_sharedflag='-shared' ;; esac archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' - if test $supports_anon_versioning = yes; then - archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~ - cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ - $echo "local: *; };" >> $output_objdir/$libname.ver~ - $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' - fi + if test "x$supports_anon_versioning" = xyes; then + archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ + cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ + echo "local: *; };" >> $output_objdir/$libname.ver~ + $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' + fi + + case $cc_basename in + xlf* | bgf* | bgxlf* | mpixlf*) + # IBM XL Fortran 10.1 on PPC cannot create shared libs itself + whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' + archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' + if test "x$supports_anon_versioning" = xyes; then + archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ + cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ + echo "local: *; };" >> $output_objdir/$libname.ver~ + $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' + fi + ;; + esac else - ld_shlibs=no + ld_shlibs=no fi ;; - netbsd*) - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then + netbsd* | netbsdelf*-gnu) + if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' wlarc= else - archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' - archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' + archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' + archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' fi ;; solaris*) - if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then + if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then ld_shlibs=no - cat <&2 + cat <<_LT_EOF 1>&2 *** Warning: The releases 2.8.* of the GNU linker cannot reliably *** create shared libraries on Solaris systems. Therefore, libtool @@ -107919,10 +110050,10 @@ *** your PATH or compiler configuration so that the native linker is *** used, and then restart. -EOF - elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then - archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' - archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' +_LT_EOF + elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then + archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' + archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' else ld_shlibs=no fi @@ -107944,10 +110075,14 @@ _LT_EOF ;; *) - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then - hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' - archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' - archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' + # For security reasons, it is highly recommended that you always + # use absolute paths for naming shared libraries, and exclude the + # DT_RUNPATH tag from executables and libraries. But doing so + # requires that you compile everything twice, which is a pain. + if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' + archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' else ld_shlibs=no fi @@ -107963,9 +110098,9 @@ ;; *) - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then - archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' - archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' + if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then + archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' + archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' else ld_shlibs=no fi @@ -108005,10 +110140,12 @@ else # If we're using GNU nm, then we don't want the "-C" option. # -C means demangle to AIX nm, but means don't demangle with GNU nm - if $NM -V 2>&1 | grep 'GNU' > /dev/null; then - export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' + # Also, AIX nm treats weak defined symbols like other global + # defined symbols, whereas GNU nm marks them as "W". + if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then + export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' else - export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' + export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' fi aix_use_runtimelinking=no @@ -108017,10 +110154,10 @@ # need to do runtime linking. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) for ld_flag in $LDFLAGS; do - if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then - aix_use_runtimelinking=yes - break - fi + if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then + aix_use_runtimelinking=yes + break + fi done ;; esac @@ -108037,28 +110174,30 @@ archive_cmds='' hardcode_direct=yes + hardcode_direct_absolute=yes hardcode_libdir_separator=':' link_all_deplibs=yes + file_list_spec='${wl}-f,' if test "$GCC" = yes; then case $host_os in aix4.[012]|aix4.[012].*) # We only want to do this on AIX 4.2 and lower, the check # below for broken collect2 doesn't work under 4.3+ collect2name=`${CC} -print-prog-name=collect2` - if test -f "$collect2name" && \ - strings "$collect2name" | grep resolve_lib_name >/dev/null + if test -f "$collect2name" && + strings "$collect2name" | $GREP resolve_lib_name >/dev/null then - # We have reworked collect2 - : + # We have reworked collect2 + : else - # We have old collect2 - hardcode_direct=unsupported - # It fails to find uninstalled libraries when the uninstalled - # path is not listed in the libpath. Setting hardcode_minus_L - # to unsupported forces relinking - hardcode_minus_L=yes - hardcode_libdir_flag_spec='-L$libdir' - hardcode_libdir_separator= + # We have old collect2 + hardcode_direct=unsupported + # It fails to find uninstalled libraries when the uninstalled + # path is not listed in the libpath. Setting hardcode_minus_L + # to unsupported forces relinking + hardcode_minus_L=yes + hardcode_libdir_flag_spec='-L$libdir' + hardcode_libdir_separator= fi ;; esac @@ -108066,11 +110205,12 @@ if test "$aix_use_runtimelinking" = yes; then shared_flag="$shared_flag "'${wl}-G' fi + link_all_deplibs=no else # not using gcc if test "$host_cpu" = ia64; then - # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release - # chokes on -Wl,-G. The following line is correct: + # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release + # chokes on -Wl,-G. The following line is correct: shared_flag='-G' else if test "$aix_use_runtimelinking" = yes; then @@ -108081,6 +110221,7 @@ fi fi + export_dynamic_flag_spec='${wl}-bexpall' # It seems that -bexpall does not export symbols beginning with # underscore (_), so it is better to generate a list of symbols to export. always_export_symbols=yes @@ -108088,89 +110229,116 @@ # Warning - without using the other runtime loading flags (-brtl), # -berok will link without error, but may produce a broken library. allow_undefined_flag='-berok' - # Determine the default libpath from the value encoded in an empty executable. + # Determine the default libpath from the value encoded in an + # empty executable. + if test "${lt_cv_aix_libpath+set}" = set; then + aix_libpath=$lt_cv_aix_libpath +else + if ${lt_cv_aix_libpath_+:} false; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ -cat > conftest.$ac_ext <&5 - (eval $ac_link) 2>&5 - ac_status=$? - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 - test $ac_status = 0; } && test -s conftest${ac_exeext}; then +int +main () +{ -lt_aix_libpath_sed=' - /Import File Strings/,/^$/ { - /^0/ { - s/^0 *\(.*\)$/\1/ - p - } - }' -aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` -# Check for a 64-bit object if we didn't find anything. -if test -z "$aix_libpath"; then - aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + + lt_aix_libpath_sed=' + /Import File Strings/,/^$/ { + /^0/ { + s/^0 *\([^ ]*\) *$/\1/ + p + } + }' + lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` + # Check for a 64-bit object if we didn't find anything. + if test -z "$lt_cv_aix_libpath_"; then + lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` + fi fi - rm -rf conftest* -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&6 +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + if test -z "$lt_cv_aix_libpath_"; then + lt_cv_aix_libpath_="/usr/lib:/lib" + fi + fi -rm -f conftest* -if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi - hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" - archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" - else + aix_libpath=$lt_cv_aix_libpath_ +fi + + hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" + archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" + else if test "$host_cpu" = ia64; then hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' allow_undefined_flag="-z nodefs" archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols" else - # Determine the default libpath from the value encoded in an empty executable. + # Determine the default libpath from the value encoded in an + # empty executable. + if test "${lt_cv_aix_libpath+set}" = set; then + aix_libpath=$lt_cv_aix_libpath +else + if ${lt_cv_aix_libpath_+:} false; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ -cat > conftest.$ac_ext <&5 - (eval $ac_link) 2>&5 - ac_status=$? - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 - test $ac_status = 0; } && test -s conftest${ac_exeext}; then +int +main () +{ -lt_aix_libpath_sed=' - /Import File Strings/,/^$/ { - /^0/ { - s/^0 *\(.*\)$/\1/ - p - } - }' -aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` -# Check for a 64-bit object if we didn't find anything. -if test -z "$aix_libpath"; then - aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + + lt_aix_libpath_sed=' + /Import File Strings/,/^$/ { + /^0/ { + s/^0 *\([^ ]*\) *$/\1/ + p + } + }' + lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` + # Check for a 64-bit object if we didn't find anything. + if test -z "$lt_cv_aix_libpath_"; then + lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` + fi fi - rm -rf conftest* -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&6 +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + if test -z "$lt_cv_aix_libpath_"; then + lt_cv_aix_libpath_="/usr/lib:/lib" + fi + +fi + + aix_libpath=$lt_cv_aix_libpath_ fi -rm -f conftest* -if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" # Warning - without using the other run time loading flags, # -berok will link without error, but may produce a broken library. no_undefined_flag=' ${wl}-bernotok' allow_undefined_flag=' ${wl}-berok' - # Exported symbols can be pulled into shared objects from archives - whole_archive_flag_spec='$convenience' + if test "$with_gnu_ld" = yes; then + # We only use this code for GNU lds that support --whole-archive. + whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive' + else + # Exported symbols can be pulled into shared objects from archives + whole_archive_flag_spec='$convenience' + fi archive_cmds_need_lc=yes # This is similar to how AIX traditionally builds its shared libraries. archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' @@ -108179,85 +110347,119 @@ ;; amigaos*) - archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' - hardcode_libdir_flag_spec='-L$libdir' - hardcode_minus_L=yes - # see comment about different semantics on the GNU ld section - ld_shlibs=no + case $host_cpu in + powerpc) + # see comment about AmigaOS4 .so support + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' + archive_expsym_cmds='' + ;; + m68k) + archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' + hardcode_libdir_flag_spec='-L$libdir' + hardcode_minus_L=yes + ;; + esac ;; bsdi[45]*) export_dynamic_flag_spec=-rdynamic ;; - cygwin* | mingw* | pw32*) + cygwin* | mingw* | pw32* | cegcc*) # When not using gcc, we currently assume that we are using # Microsoft Visual C++. # hardcode_libdir_flag_spec is actually meaningless, as there is # no search path for DLLs. - hardcode_libdir_flag_spec=' ' - allow_undefined_flag=unsupported - # Tell ltmain to make .lib files, not .a files. - libext=lib - # Tell ltmain to make .dll files, not .so files. - shrext_cmds=".dll" - # FIXME: Setting linknames here is a bad hack. - archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' - # The linker will automatically build a .lib file if we build a DLL. - old_archive_From_new_cmds='true' - # FIXME: Should let the user specify the lib program. - old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' - fix_srcfile_path='`cygpath -w "$srcfile"`' - enable_shared_with_static_runtimes=yes + case $cc_basename in + cl*) + # Native MSVC + hardcode_libdir_flag_spec=' ' + allow_undefined_flag=unsupported + always_export_symbols=yes + file_list_spec='@' + # Tell ltmain to make .lib files, not .a files. + libext=lib + # Tell ltmain to make .dll files, not .so files. + shrext_cmds=".dll" + # FIXME: Setting linknames here is a bad hack. + archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames=' + archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then + sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp; + else + sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp; + fi~ + $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ + linknames=' + # The linker will not automatically build a static lib if we build a DLL. + # _LT_TAGVAR(old_archive_from_new_cmds, )='true' + enable_shared_with_static_runtimes=yes + exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' + export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' + # Don't use ranlib + old_postinstall_cmds='chmod 644 $oldlib' + postlink_cmds='lt_outputfile="@OUTPUT@"~ + lt_tool_outputfile="@TOOL_OUTPUT@"~ + case $lt_outputfile in + *.exe|*.EXE) ;; + *) + lt_outputfile="$lt_outputfile.exe" + lt_tool_outputfile="$lt_tool_outputfile.exe" + ;; + esac~ + if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then + $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; + $RM "$lt_outputfile.manifest"; + fi' + ;; + *) + # Assume MSVC wrapper + hardcode_libdir_flag_spec=' ' + allow_undefined_flag=unsupported + # Tell ltmain to make .lib files, not .a files. + libext=lib + # Tell ltmain to make .dll files, not .so files. + shrext_cmds=".dll" + # FIXME: Setting linknames here is a bad hack. + archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' + # The linker will automatically build a .lib file if we build a DLL. + old_archive_from_new_cmds='true' + # FIXME: Should let the user specify the lib program. + old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' + enable_shared_with_static_runtimes=yes + ;; + esac ;; darwin* | rhapsody*) - case $host_os in - rhapsody* | darwin1.[012]) - allow_undefined_flag='${wl}-undefined ${wl}suppress' - ;; - *) # Darwin 1.3 on - if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then - allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' - else - case ${MACOSX_DEPLOYMENT_TARGET} in - 10.[012]) - allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' - ;; - 10.*) - allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup' - ;; - esac - fi - ;; - esac - archive_cmds_need_lc=no - hardcode_direct=no - hardcode_automatic=yes - hardcode_shlibpath_var=unsupported - whole_archive_flag_spec='' - link_all_deplibs=yes - if test "$GCC" = yes ; then - output_verbose_link_cmd='echo' - archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" - module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" - archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}" - module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}" - else - case $cc_basename in - xlc*) - output_verbose_link_cmd='echo' - archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring' - module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' - # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds - archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' - module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' - ;; - *) - ld_shlibs=no - ;; - esac - fi + + + archive_cmds_need_lc=no + hardcode_direct=no + hardcode_automatic=yes + hardcode_shlibpath_var=unsupported + if test "$lt_cv_ld_force_load" = "yes"; then + whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`' + + else + whole_archive_flag_spec='' + fi + link_all_deplibs=yes + allow_undefined_flag="$_lt_dar_allow_undefined" + case $cc_basename in + ifort*) _lt_dar_can_shared=yes ;; + *) _lt_dar_can_shared=$GCC ;; + esac + if test "$_lt_dar_can_shared" = "yes"; then + output_verbose_link_cmd=func_echo_all + archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" + module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" + archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}" + module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}" + + else + ld_shlibs=no + fi + ;; dgux*) @@ -108266,10 +110468,6 @@ hardcode_shlibpath_var=no ;; - freebsd1*) - ld_shlibs=no - ;; - # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor # support. Future versions do this automatically, but an explicit c++rt0.o # does not break anything, and helps significantly (at the cost of a little @@ -108282,7 +110480,7 @@ ;; # Unfortunately, older versions of FreeBSD 2 do not have this feature. - freebsd2*) + freebsd2.*) archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' hardcode_direct=yes hardcode_minus_L=yes @@ -108291,7 +110489,7 @@ # FreeBSD 3 and greater uses gcc -shared to do shared libraries. freebsd* | dragonfly*) - archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' + archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' hardcode_libdir_flag_spec='-R$libdir' hardcode_direct=yes hardcode_shlibpath_var=no @@ -108299,9 +110497,9 @@ hpux9*) if test "$GCC" = yes; then - archive_cmds='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' + archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' else - archive_cmds='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' + archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' fi hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' hardcode_libdir_separator=: @@ -108314,18 +110512,17 @@ ;; hpux10*) - if test "$GCC" = yes -a "$with_gnu_ld" = no; then - archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' + if test "$GCC" = yes && test "$with_gnu_ld" = no; then + archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' else archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' fi if test "$with_gnu_ld" = no; then hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' hardcode_libdir_separator=: - hardcode_direct=yes + hardcode_direct_absolute=yes export_dynamic_flag_spec='${wl}-E' - # hardcode_minus_L: Not really in the search PATH, # but as the default location of the library. hardcode_minus_L=yes @@ -108333,16 +110530,16 @@ ;; hpux11*) - if test "$GCC" = yes -a "$with_gnu_ld" = no; then + if test "$GCC" = yes && test "$with_gnu_ld" = no; then case $host_cpu in hppa*64*) archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' ;; ia64*) - archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' + archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' ;; *) - archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' + archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' ;; esac else @@ -108354,7 +110551,46 @@ archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' ;; *) - archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' + + # Older versions of the 11.00 compiler do not understand -b yet + # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 +$as_echo_n "checking if $CC understands -b... " >&6; } +if ${lt_cv_prog_compiler__b+:} false; then : + $as_echo_n "(cached) " >&6 +else + lt_cv_prog_compiler__b=no + save_LDFLAGS="$LDFLAGS" + LDFLAGS="$LDFLAGS -b" + echo "$lt_simple_link_test_code" > conftest.$ac_ext + if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then + # The linker can only warn and ignore the option if not recognized + # So say no if there are warnings + if test -s conftest.err; then + # Append any errors to the config.log. + cat conftest.err 1>&5 + $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp + $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 + if diff conftest.exp conftest.er2 >/dev/null; then + lt_cv_prog_compiler__b=yes + fi + else + lt_cv_prog_compiler__b=yes + fi + fi + $RM -r conftest* + LDFLAGS="$save_LDFLAGS" + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 +$as_echo "$lt_cv_prog_compiler__b" >&6; } + +if test x"$lt_cv_prog_compiler__b" = xyes; then + archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' +else + archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' +fi + ;; esac fi @@ -108364,12 +110600,12 @@ case $host_cpu in hppa*64*|ia64*) - hardcode_libdir_flag_spec_ld='+b $libdir' hardcode_direct=no hardcode_shlibpath_var=no ;; *) hardcode_direct=yes + hardcode_direct_absolute=yes export_dynamic_flag_spec='${wl}-E' # hardcode_minus_L: Not really in the search PATH, @@ -108382,18 +110618,49 @@ irix5* | irix6* | nonstopux*) if test "$GCC" = yes; then - archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' + archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' + # Try to use the -exported_symbol ld option, if it does not + # work, assume that -exports_file does not work either and + # implicitly export all symbols. + # This should be the same for all languages, so no per-tag cache variable. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 +$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } +if ${lt_cv_irix_exported_symbol+:} false; then : + $as_echo_n "(cached) " >&6 +else + save_LDFLAGS="$LDFLAGS" + LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +int foo (void) { return 0; } +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + lt_cv_irix_exported_symbol=yes +else + lt_cv_irix_exported_symbol=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + LDFLAGS="$save_LDFLAGS" +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 +$as_echo "$lt_cv_irix_exported_symbol" >&6; } + if test "$lt_cv_irix_exported_symbol" = yes; then + archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib' + fi else - archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' - hardcode_libdir_flag_spec_ld='-rpath $libdir' + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' + archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib' fi + archive_cmds_need_lc='no' hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' hardcode_libdir_separator=: + inherit_rpath=yes link_all_deplibs=yes ;; - netbsd*) - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then + netbsd* | netbsdelf*-gnu) + if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out else archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF @@ -108411,11 +110678,15 @@ hardcode_shlibpath_var=no ;; + *nto* | *qnx*) + ;; + openbsd*) if test -f /usr/libexec/ld.so; then hardcode_direct=yes hardcode_shlibpath_var=no - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then + hardcode_direct_absolute=yes + if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' hardcode_libdir_flag_spec='${wl}-rpath,$libdir' @@ -108431,7 +110702,7 @@ hardcode_libdir_flag_spec='${wl}-rpath,$libdir' ;; esac - fi + fi else ld_shlibs=no fi @@ -108441,18 +110712,19 @@ hardcode_libdir_flag_spec='-L$libdir' hardcode_minus_L=yes allow_undefined_flag=unsupported - archive_cmds='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def' - old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' + archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def' + old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' ;; osf3*) if test "$GCC" = yes; then allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' - archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' + archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' else allow_undefined_flag=' -expect_unresolved \*' - archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' + archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' fi + archive_cmds_need_lc='no' hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' hardcode_libdir_separator=: ;; @@ -108460,32 +110732,43 @@ osf4* | osf5*) # as osf3* with the addition of -msym flag if test "$GCC" = yes; then allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' - archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' + archive_cmds='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' else allow_undefined_flag=' -expect_unresolved \*' - archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' - archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ - $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp' + archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' + archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~ + $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp' # Both c and cxx compiler support -rpath directly hardcode_libdir_flag_spec='-rpath $libdir' fi + archive_cmds_need_lc='no' hardcode_libdir_separator=: ;; solaris*) - no_undefined_flag=' -z text' + no_undefined_flag=' -z defs' if test "$GCC" = yes; then wlarc='${wl}' - archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' - archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ - $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' - else - wlarc='' - archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' - archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ - $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' + archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' + archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ + $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' + else + case `$CC -V 2>&1` in + *"Compilers 5.0"*) + wlarc='' + archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' + archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ + $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' + ;; + *) + wlarc='${wl}' + archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' + archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ + $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' + ;; + esac fi hardcode_libdir_flag_spec='-R$libdir' hardcode_shlibpath_var=no @@ -108495,7 +110778,7 @@ # The compiler driver will combine and reorder linker options, # but understands `-z linker_flag'. GCC discards it without `$wl', # but is careful enough not to reorder. - # Supported since Solaris 2.6 (maybe 2.5.1?) + # Supported since Solaris 2.6 (maybe 2.5.1?) if test "$GCC" = yes; then whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' else @@ -108584,18 +110867,18 @@ allow_undefined_flag='${wl}-z,nodefs' archive_cmds_need_lc=no hardcode_shlibpath_var=no - hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' + hardcode_libdir_flag_spec='${wl}-R,$libdir' hardcode_libdir_separator=':' link_all_deplibs=yes export_dynamic_flag_spec='${wl}-Bexport' runpath_var='LD_RUN_PATH' if test "$GCC" = yes; then - archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' - archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' + archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' + archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' else - archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' - archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' + archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' + archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' fi ;; @@ -108609,12 +110892,36 @@ ld_shlibs=no ;; esac + + if test x$host_vendor = xsni; then + case $host in + sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) + export_dynamic_flag_spec='${wl}-Blargedynsym' + ;; + esac + fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 $as_echo "$ld_shlibs" >&6; } test "$ld_shlibs" = no && can_build_shared=no +with_gnu_ld=$with_gnu_ld + + + + + + + + + + + + + + + # # Do we need to explicitly link libc? # @@ -108634,81 +110941,232 @@ # to ld, don't add -lc before -lgcc. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } - $rm conftest* - echo "$lt_simple_compile_test_code" > conftest.$ac_ext +if ${lt_cv_archive_cmds_need_lc+:} false; then : + $as_echo_n "(cached) " >&6 +else + $RM conftest* + echo "$lt_simple_compile_test_code" > conftest.$ac_ext - if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 (eval $ac_compile) 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } 2>conftest.err; then - soname=conftest - lib=conftest - libobjs=conftest.$ac_objext - deplibs= - wl=$lt_prog_compiler_wl - pic_flag=$lt_prog_compiler_pic - compiler_flags=-v - linker_flags=-v - verstring= - output_objdir=. - libname=conftest - lt_save_allow_undefined_flag=$allow_undefined_flag - allow_undefined_flag= - if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\""; } >&5 - (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 + soname=conftest + lib=conftest + libobjs=conftest.$ac_objext + deplibs= + wl=$lt_prog_compiler_wl + pic_flag=$lt_prog_compiler_pic + compiler_flags=-v + linker_flags=-v + verstring= + output_objdir=. + libname=conftest + lt_save_allow_undefined_flag=$allow_undefined_flag + allow_undefined_flag= + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 + (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } - then - archive_cmds_need_lc=no - else - archive_cmds_need_lc=yes - fi - allow_undefined_flag=$lt_save_allow_undefined_flag - else - cat conftest.err 1>&5 - fi - $rm conftest* - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5 -$as_echo "$archive_cmds_need_lc" >&6; } + then + lt_cv_archive_cmds_need_lc=no + else + lt_cv_archive_cmds_need_lc=yes + fi + allow_undefined_flag=$lt_save_allow_undefined_flag + else + cat conftest.err 1>&5 + fi + $RM conftest* + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 +$as_echo "$lt_cv_archive_cmds_need_lc" >&6; } + archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc ;; esac fi ;; esac -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 $as_echo_n "checking dynamic linker characteristics... " >&6; } -library_names_spec= -libname_spec='lib$name' -soname_spec= -shrext_cmds=".so" -postinstall_cmds= -postuninstall_cmds= -finish_cmds= -finish_eval= -shlibpath_var= -shlibpath_overrides_runpath=unknown -version_type=none -dynamic_linker="$host_os ld.so" -sys_lib_dlsearch_path_spec="/lib /usr/lib" if test "$GCC" = yes; then case $host_os in darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; *) lt_awk_arg="/^libraries:/" ;; esac - lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"` - if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then + case $host_os in + mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;; + *) lt_sed_strip_eq="s,=/,/,g" ;; + esac + lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` + case $lt_search_path_spec in + *\;*) # if the path contains ";" then we assume it to be the separator # otherwise default to the standard path separator (i.e. ":") - it is # assumed that no part of a normal pathname contains ";" but that should # okay in the real world where ";" in dirpaths is itself problematic. - lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'` - else - lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` - fi + lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` + ;; + *) + lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` + ;; + esac # Ok, now we have the path, separated by spaces, we can step through it # and add multilib dir if necessary. lt_tmp_lt_search_path_spec= @@ -108721,7 +111179,7 @@ lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" fi done - lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk ' + lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' BEGIN {RS=" "; FS="/|\n";} { lt_foo=""; lt_count=0; @@ -108741,10 +111199,29 @@ if (lt_foo != "") { lt_freq[lt_foo]++; } if (lt_freq[lt_foo] == 1) { print lt_foo; } }'` - sys_lib_search_path_spec=`echo $lt_search_path_spec` + # AWK program above erroneously prepends '/' to C:/dos/paths + # for these hosts. + case $host_os in + mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ + $SED 's,/\([A-Za-z]:\),\1,g'` ;; + esac + sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` else sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" fi +library_names_spec= +libname_spec='lib$name' +soname_spec= +shrext_cmds=".so" +postinstall_cmds= +postuninstall_cmds= +finish_cmds= +finish_eval= +shlibpath_var= +shlibpath_overrides_runpath=unknown +version_type=none +dynamic_linker="$host_os ld.so" +sys_lib_dlsearch_path_spec="/lib /usr/lib" need_lib_prefix=unknown hardcode_into_libs=no @@ -108754,7 +111231,7 @@ case $host_os in aix3*) - version_type=linux + version_type=linux # correct to gnu/linux during the next big refactor library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' shlibpath_var=LIBPATH @@ -108763,7 +111240,7 @@ ;; aix[4-9]*) - version_type=linux + version_type=linux # correct to gnu/linux during the next big refactor need_lib_prefix=no need_version=no hardcode_into_libs=yes @@ -108781,7 +111258,7 @@ aix4 | aix4.[01] | aix4.[01].*) if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' echo ' yes ' - echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then + echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then : else can_build_shared=no @@ -108807,9 +111284,18 @@ ;; amigaos*) - library_names_spec='$libname.ixlibrary $libname.a' - # Create ${libname}_ixlibrary.a entries in /sys/libs. - finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' + case $host_cpu in + powerpc) + # Since July 2007 AmigaOS4 officially supports .so libraries. + # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + ;; + m68k) + library_names_spec='$libname.ixlibrary $libname.a' + # Create ${libname}_ixlibrary.a entries in /sys/libs. + finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' + ;; + esac ;; beos*) @@ -108819,7 +111305,7 @@ ;; bsdi[45]*) - version_type=linux + version_type=linux # correct to gnu/linux during the next big refactor need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' @@ -108832,61 +111318,112 @@ # libtool to hard-code these into programs ;; -cygwin* | mingw* | pw32*) +cygwin* | mingw* | pw32* | cegcc*) version_type=windows shrext_cmds=".dll" need_version=no need_lib_prefix=no - case $GCC,$host_os in - yes,cygwin* | yes,mingw* | yes,pw32*) + case $GCC,$cc_basename in + yes,*) + # gcc library_names_spec='$libname.dll.a' # DLL is installed to $(libdir)/../bin by postinstall_cmds postinstall_cmds='base_file=`basename \${file}`~ - dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ + dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ dldir=$destdir/`dirname \$dlpath`~ test -d \$dldir || mkdir -p \$dldir~ $install_prog $dir/$dlname \$dldir/$dlname~ - chmod a+x \$dldir/$dlname' + chmod a+x \$dldir/$dlname~ + if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then + eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; + fi' postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ dlpath=$dir/\$dldll~ - $rm \$dlpath' + $RM \$dlpath' shlibpath_overrides_runpath=yes case $host_os in cygwin*) # Cygwin DLLs use 'cyg' prefix rather than 'lib' soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' - sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" + + sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" ;; - mingw*) + mingw* | cegcc*) # MinGW DLLs use traditional 'lib' prefix soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' - sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` - if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then - # It is most probably a Windows format PATH printed by - # mingw gcc, but we are running on Cygwin. Gcc prints its search - # path with ; separators, and with drive letters. We can handle the - # drive letters (cygwin fileutils understands them), so leave them, - # especially as we might pass files found there to a mingw objdump, - # which wouldn't understand a cygwinified path. Ahh. - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` - else - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` - fi ;; pw32*) # pw32 DLLs use 'pw' prefix rather than 'lib' library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' ;; esac + dynamic_linker='Win32 ld.exe' + ;; + + *,cl*) + # Native MSVC + libname_spec='$name' + soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' + library_names_spec='${libname}.dll.lib' + + case $build_os in + mingw*) + sys_lib_search_path_spec= + lt_save_ifs=$IFS + IFS=';' + for lt_path in $LIB + do + IFS=$lt_save_ifs + # Let DOS variable expansion print the short 8.3 style file name. + lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` + sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" + done + IFS=$lt_save_ifs + # Convert to MSYS style. + sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` + ;; + cygwin*) + # Convert to unix form, then to dos form, then back to unix form + # but this time dos style (no spaces!) so that the unix form looks + # like /cygdrive/c/PROGRA~1:/cygdr... + sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` + sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` + sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` + ;; + *) + sys_lib_search_path_spec="$LIB" + if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then + # It is most probably a Windows format PATH. + sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` + else + sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` + fi + # FIXME: find the short name or the path components, as spaces are + # common. (e.g. "Program Files" -> "PROGRA~1") + ;; + esac + + # DLL is installed to $(libdir)/../bin by postinstall_cmds + postinstall_cmds='base_file=`basename \${file}`~ + dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ + dldir=$destdir/`dirname \$dlpath`~ + test -d \$dldir || mkdir -p \$dldir~ + $install_prog $dir/$dlname \$dldir/$dlname' + postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ + dlpath=$dir/\$dldll~ + $RM \$dlpath' + shlibpath_overrides_runpath=yes + dynamic_linker='Win32 link.exe' ;; *) + # Assume MSVC wrapper library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' + dynamic_linker='Win32 ld.exe' ;; esac - dynamic_linker='Win32 ld.exe' # FIXME: first we should search . and the directory the executable is in shlibpath_var=PATH ;; @@ -108896,7 +111433,7 @@ version_type=darwin need_lib_prefix=no need_version=no - library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' + library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' soname_spec='${libname}${release}${major}$shared_ext' shlibpath_overrides_runpath=yes shlibpath_var=DYLD_LIBRARY_PATH @@ -108907,7 +111444,7 @@ ;; dgux*) - version_type=linux + version_type=linux # correct to gnu/linux during the next big refactor need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' @@ -108915,10 +111452,6 @@ shlibpath_var=LD_LIBRARY_PATH ;; -freebsd1*) - dynamic_linker=no - ;; - freebsd* | dragonfly*) # DragonFly does not have aout. When/if they implement a new # versioning mechanism, adjust this. @@ -108926,7 +111459,7 @@ objformat=`/usr/bin/objformat` else case $host_os in - freebsd[123]*) objformat=aout ;; + freebsd[23].*) objformat=aout ;; *) objformat=elf ;; esac fi @@ -108944,7 +111477,7 @@ esac shlibpath_var=LD_LIBRARY_PATH case $host_os in - freebsd2*) + freebsd2.*) shlibpath_overrides_runpath=yes ;; freebsd3.[01]* | freebsdelf3.[01]*) @@ -108963,13 +111496,16 @@ esac ;; -gnu*) - version_type=linux +haiku*) + version_type=linux # correct to gnu/linux during the next big refactor need_lib_prefix=no need_version=no + dynamic_linker="$host_os runtime_loader" library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' - shlibpath_var=LD_LIBRARY_PATH + shlibpath_var=LIBRARY_PATH + shlibpath_overrides_runpath=yes + sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' hardcode_into_libs=yes ;; @@ -108995,18 +111531,18 @@ fi sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec ;; - hppa*64*) - shrext_cmds='.sl' - hardcode_into_libs=yes - dynamic_linker="$host_os dld.sl" - shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH - shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' - soname_spec='${libname}${release}${shared_ext}$major' - sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" - sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec - ;; - *) + hppa*64*) + shrext_cmds='.sl' + hardcode_into_libs=yes + dynamic_linker="$host_os dld.sl" + shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH + shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" + sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec + ;; + *) shrext_cmds='.sl' dynamic_linker="$host_os dld.sl" shlibpath_var=SHLIB_PATH @@ -109015,12 +111551,14 @@ soname_spec='${libname}${release}${shared_ext}$major' ;; esac - # HP-UX runs *really* slowly unless shared libraries are mode 555. + # HP-UX runs *really* slowly unless shared libraries are mode 555, ... postinstall_cmds='chmod 555 $lib' + # or fails outright, so override atomically: + install_override_mode=555 ;; interix[3-9]*) - version_type=linux + version_type=linux # correct to gnu/linux during the next big refactor need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' @@ -109036,7 +111574,7 @@ nonstopux*) version_type=nonstopux ;; *) if test "$lt_cv_prog_gnu_ld" = yes; then - version_type=linux + version_type=linux # correct to gnu/linux during the next big refactor else version_type=irix fi ;; @@ -109073,9 +111611,9 @@ dynamic_linker=no ;; -# This must be Linux ELF. -linux* | k*bsd*-gnu) - version_type=linux +# This must be glibc/ELF. +linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) + version_type=linux # correct to gnu/linux during the next big refactor need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' @@ -109083,6 +111621,41 @@ finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=no + + # Some binutils ld are patched to set DT_RUNPATH + if ${lt_cv_shlibpath_overrides_runpath+:} false; then : + $as_echo_n "(cached) " >&6 +else + lt_cv_shlibpath_overrides_runpath=no + save_LDFLAGS=$LDFLAGS + save_libdir=$libdir + eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ + LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : + lt_cv_shlibpath_overrides_runpath=yes +fi +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + LDFLAGS=$save_LDFLAGS + libdir=$save_libdir + +fi + + shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath + # This implies no fast_install, which is unacceptable. # Some rework will be needed to allow for fast_install # before this can be enabled. @@ -109090,7 +111663,7 @@ # Append ld.so.conf contents to the search path if test -f /etc/ld.so.conf; then - lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` + lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '` sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" fi @@ -109103,11 +111676,23 @@ dynamic_linker='GNU/Linux ld.so' ;; +netbsdelf*-gnu) + version_type=linux + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=no + hardcode_into_libs=yes + dynamic_linker='NetBSD ld.elf_so' + ;; + netbsd*) version_type=sunos need_lib_prefix=no need_version=no - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then + if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' dynamic_linker='NetBSD (a.out) ld.so' @@ -109122,20 +111707,22 @@ ;; newsos6) - version_type=linux + version_type=linux # correct to gnu/linux during the next big refactor library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes ;; -nto-qnx*) - version_type=linux +*nto* | *qnx*) + version_type=qnx need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH - shlibpath_overrides_runpath=yes + shlibpath_overrides_runpath=no + hardcode_into_libs=yes + dynamic_linker='ldqnx.so' ;; openbsd*) @@ -109144,13 +111731,13 @@ need_lib_prefix=no # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. case $host_os in - openbsd3.3 | openbsd3.3.*) need_version=yes ;; - *) need_version=no ;; + openbsd3.3 | openbsd3.3.*) need_version=yes ;; + *) need_version=no ;; esac library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' shlibpath_var=LD_LIBRARY_PATH - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then + if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then case $host_os in openbsd2.[89] | openbsd2.[89].*) shlibpath_overrides_runpath=no @@ -109189,7 +111776,7 @@ ;; solaris*) - version_type=linux + version_type=linux # correct to gnu/linux during the next big refactor need_lib_prefix=no need_version=no library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' @@ -109214,7 +111801,7 @@ ;; sysv4 | sysv4.3*) - version_type=linux + version_type=linux # correct to gnu/linux during the next big refactor library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH @@ -109222,7 +111809,6 @@ sni) shlibpath_overrides_runpath=no need_lib_prefix=no - export_dynamic_flag_spec='${wl}-Blargedynsym' runpath_var=LD_RUN_PATH ;; siemens) @@ -109239,7 +111825,7 @@ sysv4*MP*) if test -d /usr/nec ;then - version_type=linux + version_type=linux # correct to gnu/linux during the next big refactor library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' soname_spec='$libname${shared_ext}.$major' shlibpath_var=LD_LIBRARY_PATH @@ -109253,13 +111839,12 @@ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=yes hardcode_into_libs=yes if test "$with_gnu_ld" = yes; then sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' - shlibpath_overrides_runpath=no else sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' - shlibpath_overrides_runpath=yes case $host_os in sco3.2v5*) sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" @@ -109269,8 +111854,19 @@ sys_lib_dlsearch_path_spec='/usr/lib' ;; +tpf*) + # TPF is a cross-target only. Preferred cross-host = GNU/Linux. + version_type=linux # correct to gnu/linux during the next big refactor + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=no + hardcode_into_libs=yes + ;; + uts4*) - version_type=linux + version_type=linux # correct to gnu/linux during the next big refactor library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH @@ -109284,39 +111880,122 @@ $as_echo "$dynamic_linker" >&6; } test "$dynamic_linker" = no && can_build_shared=no -if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then : - $as_echo_n "(cached) " >&6 -else - lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec" +variables_saved_for_relink="PATH $shlibpath_var $runpath_var" +if test "$GCC" = yes; then + variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" fi -sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" -if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then : - $as_echo_n "(cached) " >&6 -else - lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec" +if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then + sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" +fi +if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then + sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" fi -sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" -variables_saved_for_relink="PATH $shlibpath_var $runpath_var" -if test "$GCC" = yes; then - variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 $as_echo_n "checking how to hardcode library paths into programs... " >&6; } hardcode_action= -if test -n "$hardcode_libdir_flag_spec" || \ - test -n "$runpath_var" || \ +if test -n "$hardcode_libdir_flag_spec" || + test -n "$runpath_var" || test "X$hardcode_automatic" = "Xyes" ; then - # We can hardcode non-existant directories. + # We can hardcode non-existent directories. if test "$hardcode_direct" != no && # If the only mechanism to avoid hardcoding is shlibpath_var, we # have to relink, otherwise we might link with an installed library # when we should be linking with a yet-to-be-installed one - ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no && + ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && test "$hardcode_minus_L" != no; then # Linking always hardcodes the temporary library directory. hardcode_action=relink @@ -109332,7 +112011,8 @@ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 $as_echo "$hardcode_action" >&6; } -if test "$hardcode_action" = relink; then +if test "$hardcode_action" = relink || + test "$inherit_rpath" = yes; then # Fast installation is not supported enable_fast_install=no elif test "$shlibpath_overrides_runpath" = yes || @@ -109341,37 +112021,12 @@ enable_fast_install=needless fi -striplib= -old_striplib= -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 -$as_echo_n "checking whether stripping libraries is possible... " >&6; } -if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then - test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" - test -z "$striplib" && striplib="$STRIP --strip-unneeded" - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; } -else -# FIXME - insert some real tests, host_os isn't really good enough - case $host_os in - darwin*) - if test -n "$STRIP" ; then - striplib="$STRIP -x" - old_striplib="$STRIP -S" - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; } - else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } -fi - ;; - *) - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } - ;; - esac -fi -if test "x$enable_dlopen" != xyes; then + + + + + if test "x$enable_dlopen" != xyes; then enable_dlopen=unknown enable_dlopen_self=unknown enable_dlopen_self_static=unknown @@ -109386,21 +112041,21 @@ lt_cv_dlopen_self=yes ;; - mingw* | pw32*) + mingw* | pw32* | cegcc*) lt_cv_dlopen="LoadLibrary" lt_cv_dlopen_libs= - ;; + ;; cygwin*) lt_cv_dlopen="dlopen" lt_cv_dlopen_libs= - ;; + ;; darwin*) # if libdl is installed we need to link against it { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 $as_echo_n "checking for dlopen in -ldl... " >&6; } -if test "${ac_cv_lib_dl_dlopen+set}" = set; then : +if ${ac_cv_lib_dl_dlopen+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS @@ -109434,7 +112089,7 @@ fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 $as_echo "$ac_cv_lib_dl_dlopen" >&6; } -if test "x$ac_cv_lib_dl_dlopen" = x""yes; then : +if test "x$ac_cv_lib_dl_dlopen" = xyes; then : lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" else @@ -109444,16 +112099,16 @@ fi - ;; + ;; *) ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" -if test "x$ac_cv_func_shl_load" = x""yes; then : +if test "x$ac_cv_func_shl_load" = xyes; then : lt_cv_dlopen="shl_load" else { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 $as_echo_n "checking for shl_load in -ldld... " >&6; } -if test "${ac_cv_lib_dld_shl_load+set}" = set; then : +if ${ac_cv_lib_dld_shl_load+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS @@ -109487,16 +112142,16 @@ fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 $as_echo "$ac_cv_lib_dld_shl_load" >&6; } -if test "x$ac_cv_lib_dld_shl_load" = x""yes; then : +if test "x$ac_cv_lib_dld_shl_load" = xyes; then : lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" else ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" -if test "x$ac_cv_func_dlopen" = x""yes; then : +if test "x$ac_cv_func_dlopen" = xyes; then : lt_cv_dlopen="dlopen" else { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 $as_echo_n "checking for dlopen in -ldl... " >&6; } -if test "${ac_cv_lib_dl_dlopen+set}" = set; then : +if ${ac_cv_lib_dl_dlopen+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS @@ -109530,12 +112185,12 @@ fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 $as_echo "$ac_cv_lib_dl_dlopen" >&6; } -if test "x$ac_cv_lib_dl_dlopen" = x""yes; then : +if test "x$ac_cv_lib_dl_dlopen" = xyes; then : lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" else { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 $as_echo_n "checking for dlopen in -lsvld... " >&6; } -if test "${ac_cv_lib_svld_dlopen+set}" = set; then : +if ${ac_cv_lib_svld_dlopen+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS @@ -109569,12 +112224,12 @@ fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 $as_echo "$ac_cv_lib_svld_dlopen" >&6; } -if test "x$ac_cv_lib_svld_dlopen" = x""yes; then : +if test "x$ac_cv_lib_svld_dlopen" = xyes; then : lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" else { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 $as_echo_n "checking for dld_link in -ldld... " >&6; } -if test "${ac_cv_lib_dld_dld_link+set}" = set; then : +if ${ac_cv_lib_dld_dld_link+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS @@ -109608,7 +112263,7 @@ fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 $as_echo "$ac_cv_lib_dld_dld_link" >&6; } -if test "x$ac_cv_lib_dld_dld_link" = x""yes; then : +if test "x$ac_cv_lib_dld_dld_link" = xyes; then : lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" fi @@ -109649,7 +112304,7 @@ { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 $as_echo_n "checking whether a program can dlopen itself... " >&6; } -if test "${lt_cv_dlopen_self+set}" = set; then : +if ${lt_cv_dlopen_self+:} false; then : $as_echo_n "(cached) " >&6 else if test "$cross_compiling" = yes; then : @@ -109657,8 +112312,8 @@ else lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 lt_status=$lt_dlunknown - cat > conftest.$ac_ext < conftest.$ac_ext <<_LT_EOF +#line $LINENO "configure" #include "confdefs.h" #if HAVE_DLFCN_H @@ -109699,11 +112354,13 @@ # endif #endif -#ifdef __cplusplus -extern "C" void exit (int); +/* When -fvisbility=hidden is used, assume the code has been annotated + correspondingly for the symbols needed. */ +#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) +int fnord () __attribute__((visibility("default"))); #endif -void fnord() { int i=42;} +int fnord () { return 42; } int main () { void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); @@ -109712,15 +112369,19 @@ if (self) { if (dlsym (self,"fnord")) status = $lt_dlno_uscore; - else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; + else + { + if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; + else puts (dlerror ()); + } /* dlclose (self); */ } else puts (dlerror ()); - exit (status); + return status; } -EOF +_LT_EOF if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 (eval $ac_link) 2>&5 ac_status=$? @@ -109749,7 +112410,7 @@ wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } -if test "${lt_cv_dlopen_self_static+set}" = set; then : +if ${lt_cv_dlopen_self_static+:} false; then : $as_echo_n "(cached) " >&6 else if test "$cross_compiling" = yes; then : @@ -109757,639 +112418,216 @@ else lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 lt_status=$lt_dlunknown - cat > conftest.$ac_ext < conftest.$ac_ext <<_LT_EOF +#line $LINENO "configure" #include "confdefs.h" #if HAVE_DLFCN_H #include #endif -#include - -#ifdef RTLD_GLOBAL -# define LT_DLGLOBAL RTLD_GLOBAL -#else -# ifdef DL_GLOBAL -# define LT_DLGLOBAL DL_GLOBAL -# else -# define LT_DLGLOBAL 0 -# endif -#endif - -/* We may have to define LT_DLLAZY_OR_NOW in the command line if we - find out it does not work in some platform. */ -#ifndef LT_DLLAZY_OR_NOW -# ifdef RTLD_LAZY -# define LT_DLLAZY_OR_NOW RTLD_LAZY -# else -# ifdef DL_LAZY -# define LT_DLLAZY_OR_NOW DL_LAZY -# else -# ifdef RTLD_NOW -# define LT_DLLAZY_OR_NOW RTLD_NOW -# else -# ifdef DL_NOW -# define LT_DLLAZY_OR_NOW DL_NOW -# else -# define LT_DLLAZY_OR_NOW 0 -# endif -# endif -# endif -# endif -#endif - -#ifdef __cplusplus -extern "C" void exit (int); -#endif - -void fnord() { int i=42;} -int main () -{ - void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); - int status = $lt_dlunknown; - - if (self) - { - if (dlsym (self,"fnord")) status = $lt_dlno_uscore; - else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; - /* dlclose (self); */ - } - else - puts (dlerror ()); - - exit (status); -} -EOF - if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 - (eval $ac_link) 2>&5 - ac_status=$? - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 - test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then - (./conftest; exit; ) >&5 2>/dev/null - lt_status=$? - case x$lt_status in - x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; - x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; - x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; - esac - else : - # compilation failed - lt_cv_dlopen_self_static=no - fi -fi -rm -fr conftest* - - -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 -$as_echo "$lt_cv_dlopen_self_static" >&6; } - fi - - CPPFLAGS="$save_CPPFLAGS" - LDFLAGS="$save_LDFLAGS" - LIBS="$save_LIBS" - ;; - esac - - case $lt_cv_dlopen_self in - yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; - *) enable_dlopen_self=unknown ;; - esac - - case $lt_cv_dlopen_self_static in - yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; - *) enable_dlopen_self_static=unknown ;; - esac -fi - - -# Report which library types will actually be built -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 -$as_echo_n "checking if libtool supports shared libraries... " >&6; } -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 -$as_echo "$can_build_shared" >&6; } - -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 -$as_echo_n "checking whether to build shared libraries... " >&6; } -test "$can_build_shared" = "no" && enable_shared=no - -# On AIX, shared libraries and static libraries use the same namespace, and -# are all built from PIC. -case $host_os in -aix3*) - test "$enable_shared" = yes && enable_static=no - if test -n "$RANLIB"; then - archive_cmds="$archive_cmds~\$RANLIB \$lib" - postinstall_cmds='$RANLIB $lib' - fi - ;; - -aix[4-9]*) - if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then - test "$enable_shared" = yes && enable_static=no - fi - ;; -esac -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 -$as_echo "$enable_shared" >&6; } - -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 -$as_echo_n "checking whether to build static libraries... " >&6; } -# Make sure either enable_shared or enable_static is yes. -test "$enable_shared" = yes || enable_static=yes -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 -$as_echo "$enable_static" >&6; } - -# The else clause should only fire when bootstrapping the -# libtool distribution, otherwise you forgot to ship ltmain.sh -# with your package, and you will get complaints that there are -# no rules to generate ltmain.sh. -if test -f "$ltmain"; then - # See if we are running on zsh, and set the options which allow our commands through - # without removal of \ escapes. - if test -n "${ZSH_VERSION+set}" ; then - setopt NO_GLOB_SUBST - fi - # Now quote all the things that may contain metacharacters while being - # careful not to overquote the AC_SUBSTed values. We take copies of the - # variables and quote the copies for generation of the libtool script. - for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ - SED SHELL STRIP \ - libname_spec library_names_spec soname_spec extract_expsyms_cmds \ - old_striplib striplib file_magic_cmd finish_cmds finish_eval \ - deplibs_check_method reload_flag reload_cmds need_locks \ - lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ - lt_cv_sys_global_symbol_to_c_name_address \ - sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ - old_postinstall_cmds old_postuninstall_cmds \ - compiler \ - CC \ - LD \ - lt_prog_compiler_wl \ - lt_prog_compiler_pic \ - lt_prog_compiler_static \ - lt_prog_compiler_no_builtin_flag \ - export_dynamic_flag_spec \ - thread_safe_flag_spec \ - whole_archive_flag_spec \ - enable_shared_with_static_runtimes \ - old_archive_cmds \ - old_archive_from_new_cmds \ - predep_objects \ - postdep_objects \ - predeps \ - postdeps \ - compiler_lib_search_path \ - compiler_lib_search_dirs \ - archive_cmds \ - archive_expsym_cmds \ - postinstall_cmds \ - postuninstall_cmds \ - old_archive_from_expsyms_cmds \ - allow_undefined_flag \ - no_undefined_flag \ - export_symbols_cmds \ - hardcode_libdir_flag_spec \ - hardcode_libdir_flag_spec_ld \ - hardcode_libdir_separator \ - hardcode_automatic \ - module_cmds \ - module_expsym_cmds \ - lt_cv_prog_compiler_c_o \ - fix_srcfile_path \ - exclude_expsyms \ - include_expsyms; do - - case $var in - old_archive_cmds | \ - old_archive_from_new_cmds | \ - archive_cmds | \ - archive_expsym_cmds | \ - module_cmds | \ - module_expsym_cmds | \ - old_archive_from_expsyms_cmds | \ - export_symbols_cmds | \ - extract_expsyms_cmds | reload_cmds | finish_cmds | \ - postinstall_cmds | postuninstall_cmds | \ - old_postinstall_cmds | old_postuninstall_cmds | \ - sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) - # Double-quote double-evaled strings. - eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" - ;; - *) - eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" - ;; - esac - done - - case $lt_echo in - *'\$0 --fallback-echo"') - lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` - ;; - esac - -cfgfile="${ofile}T" - trap "$rm \"$cfgfile\"; exit 1" 1 2 15 - $rm -f "$cfgfile" - { $as_echo "$as_me:${as_lineno-$LINENO}: result: -creating $ofile" >&5 -$as_echo " -creating $ofile" >&6; } - - cat <<__EOF__ >> "$cfgfile" -#! $SHELL - -# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services. -# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP) -# NOTE: Changes made to this file will be lost: look at ltmain.sh. -# -# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008 -# Free Software Foundation, Inc. -# -# This file is part of GNU Libtool: -# Originally by Gordon Matzigkeit , 1996 -# -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2 of the License, or -# (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, but -# WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program; if not, write to the Free Software -# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. -# -# As a special exception to the GNU General Public License, if you -# distribute this file as part of a program that contains a -# configuration script generated by Autoconf, you may include it under -# the same distribution terms that you use for the rest of that program. - -# A sed program that does not truncate output. -SED=$lt_SED - -# Sed that helps us avoid accidentally triggering echo(1) options like -n. -Xsed="$SED -e 1s/^X//" - -# The HP-UX ksh and POSIX shell print the target directory to stdout -# if CDPATH is set. -(unset CDPATH) >/dev/null 2>&1 && unset CDPATH - -# The names of the tagged configurations supported by this script. -available_tags= - -# ### BEGIN LIBTOOL CONFIG - -# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: - -# Shell to use when invoking shell scripts. -SHELL=$lt_SHELL - -# Whether or not to build shared libraries. -build_libtool_libs=$enable_shared - -# Whether or not to build static libraries. -build_old_libs=$enable_static - -# Whether or not to add -lc for building shared libraries. -build_libtool_need_lc=$archive_cmds_need_lc - -# Whether or not to disallow shared libs when runtime libs are static -allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes - -# Whether or not to optimize for fast installation. -fast_install=$enable_fast_install - -# The host system. -host_alias=$host_alias -host=$host -host_os=$host_os - -# The build system. -build_alias=$build_alias -build=$build -build_os=$build_os - -# An echo program that does not interpret backslashes. -echo=$lt_echo - -# The archiver. -AR=$lt_AR -AR_FLAGS=$lt_AR_FLAGS - -# A C compiler. -LTCC=$lt_LTCC - -# LTCC compiler flags. -LTCFLAGS=$lt_LTCFLAGS - -# A language-specific compiler. -CC=$lt_compiler - -# Is the compiler the GNU C compiler? -with_gcc=$GCC - -# An ERE matcher. -EGREP=$lt_EGREP - -# The linker used to build libraries. -LD=$lt_LD - -# Whether we need hard or soft links. -LN_S=$lt_LN_S - -# A BSD-compatible nm program. -NM=$lt_NM - -# A symbol stripping program -STRIP=$lt_STRIP - -# Used to examine libraries when file_magic_cmd begins "file" -MAGIC_CMD=$MAGIC_CMD - -# Used on cygwin: DLL creation program. -DLLTOOL="$DLLTOOL" - -# Used on cygwin: object dumper. -OBJDUMP="$OBJDUMP" - -# Used on cygwin: assembler. -AS="$AS" - -# The name of the directory that contains temporary libtool files. -objdir=$objdir - -# How to create reloadable object files. -reload_flag=$lt_reload_flag -reload_cmds=$lt_reload_cmds - -# How to pass a linker flag through the compiler. -wl=$lt_lt_prog_compiler_wl - -# Object file suffix (normally "o"). -objext="$ac_objext" - -# Old archive suffix (normally "a"). -libext="$libext" - -# Shared library suffix (normally ".so"). -shrext_cmds='$shrext_cmds' - -# Executable file suffix (normally ""). -exeext="$exeext" - -# Additional compiler flags for building library objects. -pic_flag=$lt_lt_prog_compiler_pic -pic_mode=$pic_mode - -# What is the maximum length of a command? -max_cmd_len=$lt_cv_sys_max_cmd_len - -# Does compiler simultaneously support -c and -o options? -compiler_c_o=$lt_lt_cv_prog_compiler_c_o - -# Must we lock files when doing compilation? -need_locks=$lt_need_locks - -# Do we need the lib prefix for modules? -need_lib_prefix=$need_lib_prefix - -# Do we need a version for libraries? -need_version=$need_version - -# Whether dlopen is supported. -dlopen_support=$enable_dlopen - -# Whether dlopen of programs is supported. -dlopen_self=$enable_dlopen_self - -# Whether dlopen of statically linked programs is supported. -dlopen_self_static=$enable_dlopen_self_static - -# Compiler flag to prevent dynamic linking. -link_static_flag=$lt_lt_prog_compiler_static - -# Compiler flag to turn off builtin functions. -no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag - -# Compiler flag to allow reflexive dlopens. -export_dynamic_flag_spec=$lt_export_dynamic_flag_spec - -# Compiler flag to generate shared objects directly from archives. -whole_archive_flag_spec=$lt_whole_archive_flag_spec - -# Compiler flag to generate thread-safe objects. -thread_safe_flag_spec=$lt_thread_safe_flag_spec - -# Library versioning type. -version_type=$version_type - -# Format of library name prefix. -libname_spec=$lt_libname_spec - -# List of archive names. First name is the real one, the rest are links. -# The last name is the one that the linker finds with -lNAME. -library_names_spec=$lt_library_names_spec - -# The coded name of the library, if different from the real name. -soname_spec=$lt_soname_spec - -# Commands used to build and install an old-style archive. -RANLIB=$lt_RANLIB -old_archive_cmds=$lt_old_archive_cmds -old_postinstall_cmds=$lt_old_postinstall_cmds -old_postuninstall_cmds=$lt_old_postuninstall_cmds - -# Create an old-style archive from a shared archive. -old_archive_from_new_cmds=$lt_old_archive_from_new_cmds - -# Create a temporary old-style archive to link instead of a shared archive. -old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds - -# Commands used to build and install a shared archive. -archive_cmds=$lt_archive_cmds -archive_expsym_cmds=$lt_archive_expsym_cmds -postinstall_cmds=$lt_postinstall_cmds -postuninstall_cmds=$lt_postuninstall_cmds - -# Commands used to build a loadable module (assumed same as above if empty) -module_cmds=$lt_module_cmds -module_expsym_cmds=$lt_module_expsym_cmds - -# Commands to strip libraries. -old_striplib=$lt_old_striplib -striplib=$lt_striplib +#include -# Dependencies to place before the objects being linked to create a -# shared library. -predep_objects=$lt_predep_objects +#ifdef RTLD_GLOBAL +# define LT_DLGLOBAL RTLD_GLOBAL +#else +# ifdef DL_GLOBAL +# define LT_DLGLOBAL DL_GLOBAL +# else +# define LT_DLGLOBAL 0 +# endif +#endif -# Dependencies to place after the objects being linked to create a -# shared library. -postdep_objects=$lt_postdep_objects +/* We may have to define LT_DLLAZY_OR_NOW in the command line if we + find out it does not work in some platform. */ +#ifndef LT_DLLAZY_OR_NOW +# ifdef RTLD_LAZY +# define LT_DLLAZY_OR_NOW RTLD_LAZY +# else +# ifdef DL_LAZY +# define LT_DLLAZY_OR_NOW DL_LAZY +# else +# ifdef RTLD_NOW +# define LT_DLLAZY_OR_NOW RTLD_NOW +# else +# ifdef DL_NOW +# define LT_DLLAZY_OR_NOW DL_NOW +# else +# define LT_DLLAZY_OR_NOW 0 +# endif +# endif +# endif +# endif +#endif -# Dependencies to place before the objects being linked to create a -# shared library. -predeps=$lt_predeps +/* When -fvisbility=hidden is used, assume the code has been annotated + correspondingly for the symbols needed. */ +#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) +int fnord () __attribute__((visibility("default"))); +#endif -# Dependencies to place after the objects being linked to create a -# shared library. -postdeps=$lt_postdeps +int fnord () { return 42; } +int main () +{ + void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); + int status = $lt_dlunknown; -# The directories searched by this compiler when creating a shared -# library -compiler_lib_search_dirs=$lt_compiler_lib_search_dirs + if (self) + { + if (dlsym (self,"fnord")) status = $lt_dlno_uscore; + else + { + if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; + else puts (dlerror ()); + } + /* dlclose (self); */ + } + else + puts (dlerror ()); -# The library search path used internally by the compiler when linking -# a shared library. -compiler_lib_search_path=$lt_compiler_lib_search_path + return status; +} +_LT_EOF + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 + (eval $ac_link) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then + (./conftest; exit; ) >&5 2>/dev/null + lt_status=$? + case x$lt_status in + x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; + x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; + x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; + esac + else : + # compilation failed + lt_cv_dlopen_self_static=no + fi +fi +rm -fr conftest* -# Method to check whether dependent libraries are shared objects. -deplibs_check_method=$lt_deplibs_check_method -# Command to use when deplibs_check_method == file_magic. -file_magic_cmd=$lt_file_magic_cmd +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 +$as_echo "$lt_cv_dlopen_self_static" >&6; } + fi -# Flag that allows shared libraries with undefined symbols to be built. -allow_undefined_flag=$lt_allow_undefined_flag + CPPFLAGS="$save_CPPFLAGS" + LDFLAGS="$save_LDFLAGS" + LIBS="$save_LIBS" + ;; + esac -# Flag that forces no undefined symbols. -no_undefined_flag=$lt_no_undefined_flag + case $lt_cv_dlopen_self in + yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; + *) enable_dlopen_self=unknown ;; + esac -# Commands used to finish a libtool library installation in a directory. -finish_cmds=$lt_finish_cmds + case $lt_cv_dlopen_self_static in + yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; + *) enable_dlopen_self_static=unknown ;; + esac +fi -# Same as above, but a single script fragment to be evaled but not shown. -finish_eval=$lt_finish_eval -# Take the output of nm and produce a listing of raw symbols and C names. -global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe -# Transform the output of nm in a proper C declaration -global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl -# Transform the output of nm in a C name address pair -global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address -# This is the shared library runtime path variable. -runpath_var=$runpath_var -# This is the shared library path variable. -shlibpath_var=$shlibpath_var -# Is shlibpath searched before the hard-coded library search path? -shlibpath_overrides_runpath=$shlibpath_overrides_runpath -# How to hardcode a shared library path into an executable. -hardcode_action=$hardcode_action -# Whether we should hardcode library paths into libraries. -hardcode_into_libs=$hardcode_into_libs -# Flag to hardcode \$libdir into a binary during linking. -# This must work even if \$libdir does not exist. -hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec -# If ld is used when linking, flag to hardcode \$libdir into -# a binary during linking. This must work even if \$libdir does -# not exist. -hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld -# Whether we need a single -rpath flag with a separated argument. -hardcode_libdir_separator=$lt_hardcode_libdir_separator -# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the -# resulting binary. -hardcode_direct=$hardcode_direct -# Set to yes if using the -LDIR flag during linking hardcodes DIR into the -# resulting binary. -hardcode_minus_L=$hardcode_minus_L -# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into -# the resulting binary. -hardcode_shlibpath_var=$hardcode_shlibpath_var -# Set to yes if building a shared library automatically hardcodes DIR into the library -# and all subsequent libraries and executables linked against it. -hardcode_automatic=$hardcode_automatic -# Variables whose values should be saved in libtool wrapper scripts and -# restored at relink time. -variables_saved_for_relink="$variables_saved_for_relink" +striplib= +old_striplib= +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 +$as_echo_n "checking whether stripping libraries is possible... " >&6; } +if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then + test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" + test -z "$striplib" && striplib="$STRIP --strip-unneeded" + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } +else +# FIXME - insert some real tests, host_os isn't really good enough + case $host_os in + darwin*) + if test -n "$STRIP" ; then + striplib="$STRIP -x" + old_striplib="$STRIP -S" + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + fi + ;; + *) + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + ;; + esac +fi + -# Whether libtool must link a program against all its dependency libraries. -link_all_deplibs=$link_all_deplibs -# Compile-time system search path for libraries -sys_lib_search_path_spec=$lt_sys_lib_search_path_spec -# Run-time system search path for libraries -sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec -# Fix the shell variable \$srcfile for the compiler. -fix_srcfile_path=$lt_fix_srcfile_path -# Set to yes if exported symbols are required. -always_export_symbols=$always_export_symbols -# The commands to list exported symbols. -export_symbols_cmds=$lt_export_symbols_cmds -# The commands to extract the exported symbol list from a shared archive. -extract_expsyms_cmds=$lt_extract_expsyms_cmds -# Symbols that should not be listed in the preloaded symbols. -exclude_expsyms=$lt_exclude_expsyms -# Symbols that must always be exported. -include_expsyms=$lt_include_expsyms -# ### END LIBTOOL CONFIG -__EOF__ + # Report which library types will actually be built + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 +$as_echo_n "checking if libtool supports shared libraries... " >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 +$as_echo "$can_build_shared" >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 +$as_echo_n "checking whether to build shared libraries... " >&6; } + test "$can_build_shared" = "no" && enable_shared=no + # On AIX, shared libraries and static libraries use the same namespace, and + # are all built from PIC. case $host_os in aix3*) - cat <<\EOF >> "$cfgfile" + test "$enable_shared" = yes && enable_static=no + if test -n "$RANLIB"; then + archive_cmds="$archive_cmds~\$RANLIB \$lib" + postinstall_cmds='$RANLIB $lib' + fi + ;; -# AIX sometimes has problems with the GCC collect2 program. For some -# reason, if we set the COLLECT_NAMES environment variable, the problems -# vanish in a puff of smoke. -if test "X${COLLECT_NAMES+set}" != Xset; then - COLLECT_NAMES= - export COLLECT_NAMES -fi -EOF + aix[4-9]*) + if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then + test "$enable_shared" = yes && enable_static=no + fi ;; esac + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 +$as_echo "$enable_shared" >&6; } - # We use sed instead of cat because bash on DJGPP gets confused if - # if finds mixed CR/LF and LF-only lines. Since sed operates in - # text mode, it properly converts lines to CR/LF. This bash problem - # is reportedly fixed, but why not run on old versions too? - sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1) + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 +$as_echo_n "checking whether to build static libraries... " >&6; } + # Make sure either enable_shared or enable_static is yes. + test "$enable_shared" = yes || enable_static=yes + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 +$as_echo "$enable_static" >&6; } - mv -f "$cfgfile" "$ofile" || \ - (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") - chmod +x "$ofile" -else - # If there is no Makefile yet, we rely on a make rule to execute - # `config.status --recheck' to rerun these tests and create the - # libtool script then. - ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` - if test -f "$ltmain_in"; then - test -f Makefile && make "$ltmain" - fi -fi +fi ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' @@ -110398,61 +112636,145 @@ CC="$lt_save_CC" + if test -n "$CXX" && ( test "X$CXX" != "Xno" && + ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || + (test "X$CXX" != "Xg++"))) ; then + ac_ext=cpp +ac_cpp='$CXXCPP $CPPFLAGS' +ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_cxx_compiler_gnu +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5 +$as_echo_n "checking how to run the C++ preprocessor... " >&6; } +if test -z "$CXXCPP"; then + if ${ac_cv_prog_CXXCPP+:} false; then : + $as_echo_n "(cached) " >&6 +else + # Double quotes because CXXCPP needs to be expanded + for CXXCPP in "$CXX -E" "/lib/cpp" + do + ac_preproc_ok=false +for ac_cxx_preproc_warn_flag in '' yes +do + # Use a header file that comes with gcc, so configuring glibc + # with a fresh cross-compiler works. + # Prefer to if __STDC__ is defined, since + # exists even on freestanding compilers. + # On the NeXT, cc -E runs the code through the compiler's parser, + # not just through cpp. "Syntax error" is here to catch this case. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#ifdef __STDC__ +# include +#else +# include +#endif + Syntax error +_ACEOF +if ac_fn_cxx_try_cpp "$LINENO"; then : + +else + # Broken: fails on valid input. +continue +fi +rm -f conftest.err conftest.i conftest.$ac_ext -# Check whether --with-tags was given. -if test "${with_tags+set}" = set; then : - withval=$with_tags; tagnames="$withval" + # OK, works on sane cases. Now check whether nonexistent headers + # can be detected and how. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +_ACEOF +if ac_fn_cxx_try_cpp "$LINENO"; then : + # Broken: success on invalid input. +continue +else + # Passes both tests. +ac_preproc_ok=: +break fi +rm -f conftest.err conftest.i conftest.$ac_ext +done +# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. +rm -f conftest.i conftest.err conftest.$ac_ext +if $ac_preproc_ok; then : + break +fi -if test -f "$ltmain" && test -n "$tagnames"; then - if test ! -f "${ofile}"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: output file \`$ofile' does not exist" >&5 -$as_echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;} - fi + done + ac_cv_prog_CXXCPP=$CXXCPP - if test -z "$LTCC"; then - eval "`$SHELL ${ofile} --config | grep '^LTCC='`" - if test -z "$LTCC"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: output file \`$ofile' does not look like a libtool script" >&5 -$as_echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;} - else - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5 -$as_echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;} - fi - fi - if test -z "$LTCFLAGS"; then - eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`" - fi +fi + CXXCPP=$ac_cv_prog_CXXCPP +else + ac_cv_prog_CXXCPP=$CXXCPP +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5 +$as_echo "$CXXCPP" >&6; } +ac_preproc_ok=false +for ac_cxx_preproc_warn_flag in '' yes +do + # Use a header file that comes with gcc, so configuring glibc + # with a fresh cross-compiler works. + # Prefer to if __STDC__ is defined, since + # exists even on freestanding compilers. + # On the NeXT, cc -E runs the code through the compiler's parser, + # not just through cpp. "Syntax error" is here to catch this case. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#ifdef __STDC__ +# include +#else +# include +#endif + Syntax error +_ACEOF +if ac_fn_cxx_try_cpp "$LINENO"; then : - # Extract list of available tagged configurations in $ofile. - # Note that this assumes the entire list is on one line. - available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'` +else + # Broken: fails on valid input. +continue +fi +rm -f conftest.err conftest.i conftest.$ac_ext - lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," - for tagname in $tagnames; do - IFS="$lt_save_ifs" - # Check whether tagname contains only valid characters - case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in - "") ;; - *) as_fn_error "invalid tag name: $tagname" "$LINENO" 5 - ;; - esac + # OK, works on sane cases. Now check whether nonexistent headers + # can be detected and how. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +_ACEOF +if ac_fn_cxx_try_cpp "$LINENO"; then : + # Broken: success on invalid input. +continue +else + # Passes both tests. +ac_preproc_ok=: +break +fi +rm -f conftest.err conftest.i conftest.$ac_ext - if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null - then - as_fn_error "tag name \"$tagname\" already exists" "$LINENO" 5 - fi +done +# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. +rm -f conftest.i conftest.err conftest.$ac_ext +if $ac_preproc_ok; then : + +else + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check +See \`config.log' for more details" "$LINENO" 5; } +fi + +ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu - # Update the list of available tags. - if test -n "$tagname"; then - echo appending configuration tag \"$tagname\" to $ofile - - case $tagname in - CXX) - if test -n "$CXX" && ( test "X$CXX" != "Xno" && - ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || - (test "X$CXX" != "Xg++"))) ; then +else + _lt_caught_CXX_error=yes +fi ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' @@ -110460,37 +112782,30 @@ ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_cxx_compiler_gnu - - - archive_cmds_need_lc_CXX=no allow_undefined_flag_CXX= always_export_symbols_CXX=no archive_expsym_cmds_CXX= +compiler_needs_object_CXX=no export_dynamic_flag_spec_CXX= hardcode_direct_CXX=no +hardcode_direct_absolute_CXX=no hardcode_libdir_flag_spec_CXX= -hardcode_libdir_flag_spec_ld_CXX= hardcode_libdir_separator_CXX= hardcode_minus_L_CXX=no hardcode_shlibpath_var_CXX=unsupported hardcode_automatic_CXX=no +inherit_rpath_CXX=no module_cmds_CXX= module_expsym_cmds_CXX= link_all_deplibs_CXX=unknown old_archive_cmds_CXX=$old_archive_cmds +reload_flag_CXX=$reload_flag +reload_cmds_CXX=$reload_cmds no_undefined_flag_CXX= whole_archive_flag_spec_CXX= enable_shared_with_static_runtimes_CXX=no -# Dependencies to place before and after the object being linked: -predep_objects_CXX= -postdep_objects_CXX= -predeps_CXX= -postdeps_CXX= -compiler_lib_search_path_CXX= -compiler_lib_search_dirs_CXX= - # Source file extension for C++ test sources. ac_ext=cpp @@ -110498,13 +112813,23 @@ objext=o objext_CXX=$objext -# Code to be used in simple compile tests -lt_simple_compile_test_code="int some_variable = 0;" +# No sense in running all these tests if we already determined that +# the CXX compiler isn't working. Some variables (like enable_shared) +# are currently assumed to apply to all compilers on this platform, +# and will be corrupted by setting them based on a non-working compiler. +if test "$_lt_caught_CXX_error" != yes; then + # Code to be used in simple compile tests + lt_simple_compile_test_code="int some_variable = 0;" + + # Code to be used in simple link tests + lt_simple_link_test_code='int main(int, char *[]) { return(0); }' + + # ltmain only uses $CC for tagged configurations so make sure $CC is set. + + + -# Code to be used in simple link tests -lt_simple_link_test_code='int main(int, char *[]) { return(0); }' -# ltmain only uses $CC for tagged configurations so make sure $CC is set. # If no C compiler was specified, use CC. LTCC=${LTCC-"$CC"} @@ -110516,42 +112841,44 @@ compiler=$CC -# save warnings/boilerplate of simple test code -ac_outfile=conftest.$ac_objext + # save warnings/boilerplate of simple test code + ac_outfile=conftest.$ac_objext echo "$lt_simple_compile_test_code" >conftest.$ac_ext eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err _lt_compiler_boilerplate=`cat conftest.err` -$rm conftest* +$RM conftest* -ac_outfile=conftest.$ac_objext + ac_outfile=conftest.$ac_objext echo "$lt_simple_link_test_code" >conftest.$ac_ext eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err _lt_linker_boilerplate=`cat conftest.err` -$rm -r conftest* +$RM -r conftest* -# Allow CC to be a program name with arguments. -lt_save_CC=$CC -lt_save_LD=$LD -lt_save_GCC=$GCC -GCC=$GXX -lt_save_with_gnu_ld=$with_gnu_ld -lt_save_path_LD=$lt_cv_path_LD -if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then - lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx -else - unset lt_cv_prog_gnu_ld -fi -if test -n "${lt_cv_path_LDCXX+set}"; then - lt_cv_path_LD=$lt_cv_path_LDCXX -else - unset lt_cv_path_LD -fi -test -z "${LDCXX+set}" || LD=$LDCXX -CC=${CXX-"c++"} -compiler=$CC -compiler_CXX=$CC -for cc_temp in $compiler""; do + # Allow CC to be a program name with arguments. + lt_save_CC=$CC + lt_save_CFLAGS=$CFLAGS + lt_save_LD=$LD + lt_save_GCC=$GCC + GCC=$GXX + lt_save_with_gnu_ld=$with_gnu_ld + lt_save_path_LD=$lt_cv_path_LD + if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then + lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx + else + $as_unset lt_cv_prog_gnu_ld + fi + if test -n "${lt_cv_path_LDCXX+set}"; then + lt_cv_path_LD=$lt_cv_path_LDCXX + else + $as_unset lt_cv_path_LD + fi + test -z "${LDCXX+set}" || LD=$LDCXX + CC=${CXX-"c++"} + CFLAGS=$CXXFLAGS + compiler=$CC + compiler_CXX=$CC + for cc_temp in $compiler""; do case $cc_temp in compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; @@ -110559,19 +112886,21 @@ *) break;; esac done -cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` +cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` -# We don't want -fno-exception wen compiling C++ code, so set the -# no_builtin_flag separately -if test "$GXX" = yes; then - lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' -else - lt_prog_compiler_no_builtin_flag_CXX= -fi + if test -n "$compiler"; then + # We don't want -fno-exception when compiling C++ code, so set the + # no_builtin_flag separately + if test "$GXX" = yes; then + lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' + else + lt_prog_compiler_no_builtin_flag_CXX= + fi + + if test "$GXX" = yes; then + # Set up default GNU C++ configuration -if test "$GXX" = yes; then - # Set up default GNU C++ configuration # Check whether --with-gnu-ld was given. @@ -110598,9 +112927,9 @@ [\\/]* | ?:[\\/]*) re_direlt='/[^/][^/]*/\.\./' # Canonicalize the pathname of ld - ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` - while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do - ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` + ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` + while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do + ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` done test -z "$LD" && LD="$ac_prog" ;; @@ -110620,7 +112949,7 @@ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 $as_echo_n "checking for non-GNU ld... " >&6; } fi -if test "${lt_cv_path_LD+set}" = set; then : +if ${lt_cv_path_LD+:} false; then : $as_echo_n "(cached) " >&6 else if test -z "$LD"; then @@ -110657,10 +112986,10 @@ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi -test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5 +test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } -if test "${lt_cv_prog_gnu_ld+set}" = set; then : +if ${lt_cv_prog_gnu_ld+:} false; then : $as_echo_n "(cached) " >&6 else # I'd rather use --version here, but apparently some GNU lds only accept -v. @@ -110679,961 +113008,1076 @@ - # Check if GNU C++ uses GNU ld as the underlying linker, since the - # archiving commands below assume that GNU ld is being used. - if test "$with_gnu_ld" = yes; then - archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' - archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' - hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' - export_dynamic_flag_spec_CXX='${wl}--export-dynamic' - # If archive_cmds runs LD, not CC, wlarc should be empty - # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to - # investigate it a little bit more. (MM) - wlarc='${wl}' - # ancient GNU ld didn't support --whole-archive et. al. - if eval "`$CC -print-prog-name=ld` --help 2>&1" | \ - grep 'no-whole-archive' > /dev/null; then - whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' - else - whole_archive_flag_spec_CXX= - fi - else - with_gnu_ld=no - wlarc= - # A generic and very simple default shared library creation - # command for GNU C++ for the case where it uses the native - # linker, instead of GNU ld. If possible, this setting should - # overridden to take advantage of the native linker features on - # the platform it is being used on. - archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' - fi + # Check if GNU C++ uses GNU ld as the underlying linker, since the + # archiving commands below assume that GNU ld is being used. + if test "$with_gnu_ld" = yes; then + archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' + archive_expsym_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' + + hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' + export_dynamic_flag_spec_CXX='${wl}--export-dynamic' + + # If archive_cmds runs LD, not CC, wlarc should be empty + # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to + # investigate it a little bit more. (MM) + wlarc='${wl}' + + # ancient GNU ld didn't support --whole-archive et. al. + if eval "`$CC -print-prog-name=ld` --help 2>&1" | + $GREP 'no-whole-archive' > /dev/null; then + whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' + else + whole_archive_flag_spec_CXX= + fi + else + with_gnu_ld=no + wlarc= - # Commands to make compiler produce verbose output that lists - # what "hidden" libraries, object files and flags are used when - # linking a shared library. - output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' + # A generic and very simple default shared library creation + # command for GNU C++ for the case where it uses the native + # linker, instead of GNU ld. If possible, this setting should + # overridden to take advantage of the native linker features on + # the platform it is being used on. + archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' + fi -else - GXX=no - with_gnu_ld=no - wlarc= -fi + # Commands to make compiler produce verbose output that lists + # what "hidden" libraries, object files and flags are used when + # linking a shared library. + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' + + else + GXX=no + with_gnu_ld=no + wlarc= + fi -# PORTME: fill in a description of your system's C++ link characteristics -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 + # PORTME: fill in a description of your system's C++ link characteristics + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } -ld_shlibs_CXX=yes -case $host_os in - aix3*) - # FIXME: insert proper C++ library support - ld_shlibs_CXX=no - ;; - aix[4-9]*) - if test "$host_cpu" = ia64; then - # On IA64, the linker does run time linking by default, so we don't - # have to do anything special. - aix_use_runtimelinking=no - exp_sym_flag='-Bexport' - no_entry_flag="" - else - aix_use_runtimelinking=no - - # Test if we are trying to use run time linking or normal - # AIX style linking. If -brtl is somewhere in LDFLAGS, we - # need to do runtime linking. - case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) - for ld_flag in $LDFLAGS; do - case $ld_flag in - *-brtl*) - aix_use_runtimelinking=yes - break + ld_shlibs_CXX=yes + case $host_os in + aix3*) + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + ;; + aix[4-9]*) + if test "$host_cpu" = ia64; then + # On IA64, the linker does run time linking by default, so we don't + # have to do anything special. + aix_use_runtimelinking=no + exp_sym_flag='-Bexport' + no_entry_flag="" + else + aix_use_runtimelinking=no + + # Test if we are trying to use run time linking or normal + # AIX style linking. If -brtl is somewhere in LDFLAGS, we + # need to do runtime linking. + case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) + for ld_flag in $LDFLAGS; do + case $ld_flag in + *-brtl*) + aix_use_runtimelinking=yes + break + ;; + esac + done ;; - esac - done - ;; - esac + esac - exp_sym_flag='-bexport' - no_entry_flag='-bnoentry' - fi + exp_sym_flag='-bexport' + no_entry_flag='-bnoentry' + fi - # When large executables or shared objects are built, AIX ld can - # have problems creating the table of contents. If linking a library - # or program results in "error TOC overflow" add -mminimal-toc to - # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not - # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. - - archive_cmds_CXX='' - hardcode_direct_CXX=yes - hardcode_libdir_separator_CXX=':' - link_all_deplibs_CXX=yes + # When large executables or shared objects are built, AIX ld can + # have problems creating the table of contents. If linking a library + # or program results in "error TOC overflow" add -mminimal-toc to + # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not + # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. + + archive_cmds_CXX='' + hardcode_direct_CXX=yes + hardcode_direct_absolute_CXX=yes + hardcode_libdir_separator_CXX=':' + link_all_deplibs_CXX=yes + file_list_spec_CXX='${wl}-f,' + + if test "$GXX" = yes; then + case $host_os in aix4.[012]|aix4.[012].*) + # We only want to do this on AIX 4.2 and lower, the check + # below for broken collect2 doesn't work under 4.3+ + collect2name=`${CC} -print-prog-name=collect2` + if test -f "$collect2name" && + strings "$collect2name" | $GREP resolve_lib_name >/dev/null + then + # We have reworked collect2 + : + else + # We have old collect2 + hardcode_direct_CXX=unsupported + # It fails to find uninstalled libraries when the uninstalled + # path is not listed in the libpath. Setting hardcode_minus_L + # to unsupported forces relinking + hardcode_minus_L_CXX=yes + hardcode_libdir_flag_spec_CXX='-L$libdir' + hardcode_libdir_separator_CXX= + fi + esac + shared_flag='-shared' + if test "$aix_use_runtimelinking" = yes; then + shared_flag="$shared_flag "'${wl}-G' + fi + else + # not using gcc + if test "$host_cpu" = ia64; then + # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release + # chokes on -Wl,-G. The following line is correct: + shared_flag='-G' + else + if test "$aix_use_runtimelinking" = yes; then + shared_flag='${wl}-G' + else + shared_flag='${wl}-bM:SRE' + fi + fi + fi - if test "$GXX" = yes; then - case $host_os in aix4.[012]|aix4.[012].*) - # We only want to do this on AIX 4.2 and lower, the check - # below for broken collect2 doesn't work under 4.3+ - collect2name=`${CC} -print-prog-name=collect2` - if test -f "$collect2name" && \ - strings "$collect2name" | grep resolve_lib_name >/dev/null - then - # We have reworked collect2 - : - else - # We have old collect2 - hardcode_direct_CXX=unsupported - # It fails to find uninstalled libraries when the uninstalled - # path is not listed in the libpath. Setting hardcode_minus_L - # to unsupported forces relinking - hardcode_minus_L_CXX=yes - hardcode_libdir_flag_spec_CXX='-L$libdir' - hardcode_libdir_separator_CXX= - fi - ;; - esac - shared_flag='-shared' - if test "$aix_use_runtimelinking" = yes; then - shared_flag="$shared_flag "'${wl}-G' - fi - else - # not using gcc - if test "$host_cpu" = ia64; then - # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release - # chokes on -Wl,-G. The following line is correct: - shared_flag='-G' - else - if test "$aix_use_runtimelinking" = yes; then - shared_flag='${wl}-G' - else - shared_flag='${wl}-bM:SRE' - fi - fi - fi + export_dynamic_flag_spec_CXX='${wl}-bexpall' + # It seems that -bexpall does not export symbols beginning with + # underscore (_), so it is better to generate a list of symbols to + # export. + always_export_symbols_CXX=yes + if test "$aix_use_runtimelinking" = yes; then + # Warning - without using the other runtime loading flags (-brtl), + # -berok will link without error, but may produce a broken library. + allow_undefined_flag_CXX='-berok' + # Determine the default libpath from the value encoded in an empty + # executable. + if test "${lt_cv_aix_libpath+set}" = set; then + aix_libpath=$lt_cv_aix_libpath +else + if ${lt_cv_aix_libpath__CXX+:} false; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ - # It seems that -bexpall does not export symbols beginning with - # underscore (_), so it is better to generate a list of symbols to export. - always_export_symbols_CXX=yes - if test "$aix_use_runtimelinking" = yes; then - # Warning - without using the other runtime loading flags (-brtl), - # -berok will link without error, but may produce a broken library. - allow_undefined_flag_CXX='-berok' - # Determine the default libpath from the value encoded in an empty executable. +int +main () +{ -cat > conftest.$ac_ext <&5 - (eval $ac_link) 2>&5 - ac_status=$? - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 - test $ac_status = 0; } && test -s conftest${ac_exeext}; then + ; + return 0; +} +_ACEOF +if ac_fn_cxx_try_link "$LINENO"; then : -lt_aix_libpath_sed=' - /Import File Strings/,/^$/ { - /^0/ { - s/^0 *\(.*\)$/\1/ - p - } - }' -aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` -# Check for a 64-bit object if we didn't find anything. -if test -z "$aix_libpath"; then - aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` -fi - rm -rf conftest* -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&6 + lt_aix_libpath_sed=' + /Import File Strings/,/^$/ { + /^0/ { + s/^0 *\([^ ]*\) *$/\1/ + p + } + }' + lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` + # Check for a 64-bit object if we didn't find anything. + if test -z "$lt_cv_aix_libpath__CXX"; then + lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` + fi fi -rm -f conftest* -if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + if test -z "$lt_cv_aix_libpath__CXX"; then + lt_cv_aix_libpath__CXX="/usr/lib:/lib" + fi - hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" +fi - archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" - else - if test "$host_cpu" = ia64; then - hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' - allow_undefined_flag_CXX="-z nodefs" - archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols" - else - # Determine the default libpath from the value encoded in an empty executable. + aix_libpath=$lt_cv_aix_libpath__CXX +fi -cat > conftest.$ac_ext <&5 - (eval $ac_link) 2>&5 - ac_status=$? - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 - test $ac_status = 0; } && test -s conftest${ac_exeext}; then + hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" -lt_aix_libpath_sed=' - /Import File Strings/,/^$/ { - /^0/ { - s/^0 *\(.*\)$/\1/ - p - } - }' -aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` -# Check for a 64-bit object if we didn't find anything. -if test -z "$aix_libpath"; then - aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` -fi - rm -rf conftest* + archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" + else + if test "$host_cpu" = ia64; then + hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' + allow_undefined_flag_CXX="-z nodefs" + archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols" + else + # Determine the default libpath from the value encoded in an + # empty executable. + if test "${lt_cv_aix_libpath+set}" = set; then + aix_libpath=$lt_cv_aix_libpath else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&6 -fi -rm -f conftest* -if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi + if ${lt_cv_aix_libpath__CXX+:} false; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ - hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" - # Warning - without using the other run time loading flags, - # -berok will link without error, but may produce a broken library. - no_undefined_flag_CXX=' ${wl}-bernotok' - allow_undefined_flag_CXX=' ${wl}-berok' - # Exported symbols can be pulled into shared objects from archives - whole_archive_flag_spec_CXX='$convenience' - archive_cmds_need_lc_CXX=yes - # This is similar to how AIX traditionally builds its shared libraries. - archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' - fi - fi - ;; +int +main () +{ - beos*) - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then - allow_undefined_flag_CXX=unsupported - # Joseph Beckenbach says some releases of gcc - # support --undefined. This deserves some investigation. FIXME - archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' - else - ld_shlibs_CXX=no - fi - ;; + ; + return 0; +} +_ACEOF +if ac_fn_cxx_try_link "$LINENO"; then : + + lt_aix_libpath_sed=' + /Import File Strings/,/^$/ { + /^0/ { + s/^0 *\([^ ]*\) *$/\1/ + p + } + }' + lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` + # Check for a 64-bit object if we didn't find anything. + if test -z "$lt_cv_aix_libpath__CXX"; then + lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` + fi +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + if test -z "$lt_cv_aix_libpath__CXX"; then + lt_cv_aix_libpath__CXX="/usr/lib:/lib" + fi + +fi - chorus*) - case $cc_basename in - *) - # FIXME: insert proper C++ library support - ld_shlibs_CXX=no - ;; - esac - ;; + aix_libpath=$lt_cv_aix_libpath__CXX +fi - cygwin* | mingw* | pw32*) - # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, - # as there is no search path for DLLs. - hardcode_libdir_flag_spec_CXX='-L$libdir' - allow_undefined_flag_CXX=unsupported - always_export_symbols_CXX=no - enable_shared_with_static_runtimes_CXX=yes - - if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then - archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' - # If the export-symbols file already is a .def file (1st line - # is EXPORTS), use it as is; otherwise, prepend... - archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then - cp $export_symbols $output_objdir/$soname.def; - else - echo EXPORTS > $output_objdir/$soname.def; - cat $export_symbols >> $output_objdir/$soname.def; - fi~ - $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' - else - ld_shlibs_CXX=no - fi - ;; - darwin* | rhapsody*) - archive_cmds_need_lc_CXX=no - hardcode_direct_CXX=no - hardcode_automatic_CXX=yes - hardcode_shlibpath_var_CXX=unsupported - whole_archive_flag_spec_CXX='' - link_all_deplibs_CXX=yes - allow_undefined_flag_CXX="$_lt_dar_allow_undefined" - if test "$GXX" = yes ; then - output_verbose_link_cmd='echo' - archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" - module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" - archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}" - module_expsym_cmds_CXX="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}" - if test "$lt_cv_apple_cc_single_mod" != "yes"; then - archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}" - archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}" - fi - else - case $cc_basename in - xlc*) - output_verbose_link_cmd='echo' - archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring' - module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' - # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds - archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' - module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' - ;; - *) - ld_shlibs_CXX=no - ;; - esac - fi + hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" + # Warning - without using the other run time loading flags, + # -berok will link without error, but may produce a broken library. + no_undefined_flag_CXX=' ${wl}-bernotok' + allow_undefined_flag_CXX=' ${wl}-berok' + if test "$with_gnu_ld" = yes; then + # We only use this code for GNU lds that support --whole-archive. + whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' + else + # Exported symbols can be pulled into shared objects from archives + whole_archive_flag_spec_CXX='$convenience' + fi + archive_cmds_need_lc_CXX=yes + # This is similar to how AIX traditionally builds its shared + # libraries. + archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' + fi + fi ;; - dgux*) - case $cc_basename in - ec++*) - # FIXME: insert proper C++ library support - ld_shlibs_CXX=no - ;; - ghcx*) - # Green Hills C++ Compiler - # FIXME: insert proper C++ library support - ld_shlibs_CXX=no - ;; - *) - # FIXME: insert proper C++ library support - ld_shlibs_CXX=no + beos*) + if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then + allow_undefined_flag_CXX=unsupported + # Joseph Beckenbach says some releases of gcc + # support --undefined. This deserves some investigation. FIXME + archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' + else + ld_shlibs_CXX=no + fi ;; - esac - ;; - freebsd[12]*) - # C++ shared libraries reported to be fairly broken before switch to ELF - ld_shlibs_CXX=no - ;; - freebsd-elf*) - archive_cmds_need_lc_CXX=no - ;; - freebsd* | dragonfly*) - # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF - # conventions - ld_shlibs_CXX=yes - ;; - gnu*) - ;; - hpux9*) - hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' - hardcode_libdir_separator_CXX=: - export_dynamic_flag_spec_CXX='${wl}-E' - hardcode_direct_CXX=yes - hardcode_minus_L_CXX=yes # Not in the search PATH, - # but as the default - # location of the library. - - case $cc_basename in - CC*) - # FIXME: insert proper C++ library support - ld_shlibs_CXX=no - ;; - aCC*) - archive_cmds_CXX='$rm $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' - # Commands to make compiler produce verbose output that lists - # what "hidden" libraries, object files and flags are used when - # linking a shared library. - # - # There doesn't appear to be a way to prevent this compiler from - # explicitly linking system object files so we need to strip them - # from the output so that they don't get included in the library - # dependencies. - output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "[-]L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' - ;; - *) - if test "$GXX" = yes; then - archive_cmds_CXX='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' - else - # FIXME: insert proper C++ library support - ld_shlibs_CXX=no - fi - ;; - esac - ;; - hpux10*|hpux11*) - if test $with_gnu_ld = no; then - hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' - hardcode_libdir_separator_CXX=: - case $host_cpu in - hppa*64*|ia64*) ;; - *) - export_dynamic_flag_spec_CXX='${wl}-E' + chorus*) + case $cc_basename in + *) + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + ;; + esac ;; - esac - fi - case $host_cpu in - hppa*64*|ia64*) - hardcode_direct_CXX=no - hardcode_shlibpath_var_CXX=no - ;; - *) - hardcode_direct_CXX=yes - hardcode_minus_L_CXX=yes # Not in the search PATH, - # but as the default - # location of the library. - ;; - esac - case $cc_basename in - CC*) - # FIXME: insert proper C++ library support - ld_shlibs_CXX=no - ;; - aCC*) - case $host_cpu in - hppa*64*) - archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' - ;; - ia64*) - archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' + cygwin* | mingw* | pw32* | cegcc*) + case $GXX,$cc_basename in + ,cl* | no,cl*) + # Native MSVC + # hardcode_libdir_flag_spec is actually meaningless, as there is + # no search path for DLLs. + hardcode_libdir_flag_spec_CXX=' ' + allow_undefined_flag_CXX=unsupported + always_export_symbols_CXX=yes + file_list_spec_CXX='@' + # Tell ltmain to make .lib files, not .a files. + libext=lib + # Tell ltmain to make .dll files, not .so files. + shrext_cmds=".dll" + # FIXME: Setting linknames here is a bad hack. + archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames=' + archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then + $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp; + else + $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp; + fi~ + $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ + linknames=' + # The linker will not automatically build a static lib if we build a DLL. + # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true' + enable_shared_with_static_runtimes_CXX=yes + # Don't use ranlib + old_postinstall_cmds_CXX='chmod 644 $oldlib' + postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~ + lt_tool_outputfile="@TOOL_OUTPUT@"~ + case $lt_outputfile in + *.exe|*.EXE) ;; + *) + lt_outputfile="$lt_outputfile.exe" + lt_tool_outputfile="$lt_tool_outputfile.exe" + ;; + esac~ + func_to_tool_file "$lt_outputfile"~ + if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then + $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; + $RM "$lt_outputfile.manifest"; + fi' ;; *) - archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' - ;; - esac - # Commands to make compiler produce verbose output that lists - # what "hidden" libraries, object files and flags are used when - # linking a shared library. - # - # There doesn't appear to be a way to prevent this compiler from - # explicitly linking system object files so we need to strip them - # from the output so that they don't get included in the library - # dependencies. - output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' - ;; - *) - if test "$GXX" = yes; then - if test $with_gnu_ld = no; then - case $host_cpu in - hppa*64*) - archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' - ;; - ia64*) - archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' - ;; - *) - archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' - ;; - esac - fi - else - # FIXME: insert proper C++ library support - ld_shlibs_CXX=no - fi - ;; - esac - ;; - interix[3-9]*) - hardcode_direct_CXX=no - hardcode_shlibpath_var_CXX=no - hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' - export_dynamic_flag_spec_CXX='${wl}-E' - # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. - # Instead, shared libraries are loaded at an image base (0x10000000 by - # default) and relocated if they conflict, which is a slow very memory - # consuming and fragmenting process. To avoid this, we pick a random, - # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link - # time. Moving up from 0x10000000 also allows more sbrk(2) space. - archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' - archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' - ;; - irix5* | irix6*) - case $cc_basename in - CC*) - # SGI C++ - archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' - - # Archives containing C++ object files must be created using - # "CC -ar", where "CC" is the IRIX C++ compiler. This is - # necessary to make sure instantiated templates are included - # in the archive. - old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' - ;; - *) - if test "$GXX" = yes; then - if test "$with_gnu_ld" = no; then - archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' + # g++ + # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, + # as there is no search path for DLLs. + hardcode_libdir_flag_spec_CXX='-L$libdir' + export_dynamic_flag_spec_CXX='${wl}--export-all-symbols' + allow_undefined_flag_CXX=unsupported + always_export_symbols_CXX=no + enable_shared_with_static_runtimes_CXX=yes + + if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then + archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' + # If the export-symbols file already is a .def file (1st line + # is EXPORTS), use it as is; otherwise, prepend... + archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then + cp $export_symbols $output_objdir/$soname.def; + else + echo EXPORTS > $output_objdir/$soname.def; + cat $export_symbols >> $output_objdir/$soname.def; + fi~ + $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' else - archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib' + ld_shlibs_CXX=no fi - fi - link_all_deplibs_CXX=yes - ;; - esac - hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' - hardcode_libdir_separator_CXX=: - ;; - linux* | k*bsd*-gnu) - case $cc_basename in - KCC*) - # Kuck and Associates, Inc. (KAI) C++ Compiler - - # KCC will only create a shared library if the output file - # ends with ".so" (or ".sl" for HP-UX), so rename the library - # to its proper name (with version) after linking. - archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' - archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib' - # Commands to make compiler produce verbose output that lists - # what "hidden" libraries, object files and flags are used when - # linking a shared library. - # - # There doesn't appear to be a way to prevent this compiler from - # explicitly linking system object files so we need to strip them - # from the output so that they don't get included in the library - # dependencies. - output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | grep "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' - - hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir' - export_dynamic_flag_spec_CXX='${wl}--export-dynamic' - - # Archives containing C++ object files must be created using - # "CC -Bstatic", where "CC" is the KAI C++ compiler. - old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' - ;; - icpc*) - # Intel C++ - with_gnu_ld=yes - # version 8.0 and above of icpc choke on multiply defined symbols - # if we add $predep_objects and $postdep_objects, however 7.1 and - # earlier do not add the objects themselves. - case `$CC -V 2>&1` in - *"Version 7."*) - archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' - archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' - ;; - *) # Version 8.0 or newer - tmp_idyn= - case $host_cpu in - ia64*) tmp_idyn=' -i_dynamic';; - esac - archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' - archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' ;; esac - archive_cmds_need_lc_CXX=no - hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' - export_dynamic_flag_spec_CXX='${wl}--export-dynamic' - whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' ;; - pgCC* | pgcpp*) - # Portland Group C++ compiler - archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' - archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib' - - hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' - export_dynamic_flag_spec_CXX='${wl}--export-dynamic' - whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' - ;; - cxx*) - # Compaq C++ - archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' - archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols' + darwin* | rhapsody*) - runpath_var=LD_RUN_PATH - hardcode_libdir_flag_spec_CXX='-rpath $libdir' - hardcode_libdir_separator_CXX=: - # Commands to make compiler produce verbose output that lists - # what "hidden" libraries, object files and flags are used when - # linking a shared library. - # - # There doesn't appear to be a way to prevent this compiler from - # explicitly linking system object files so we need to strip them - # from the output so that they don't get included in the library - # dependencies. - output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' - ;; - *) - case `$CC -V 2>&1 | sed 5q` in - *Sun\ C*) - # Sun C++ 5.9 - no_undefined_flag_CXX=' -zdefs' - archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' - archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols' - hardcode_libdir_flag_spec_CXX='-R$libdir' - whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' + archive_cmds_need_lc_CXX=no + hardcode_direct_CXX=no + hardcode_automatic_CXX=yes + hardcode_shlibpath_var_CXX=unsupported + if test "$lt_cv_ld_force_load" = "yes"; then + whole_archive_flag_spec_CXX='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`' - # Not sure whether something based on - # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 - # would be better. - output_verbose_link_cmd='echo' - - # Archives containing C++ object files must be created using - # "CC -xar", where "CC" is the Sun C++ compiler. This is - # necessary to make sure instantiated templates are included - # in the archive. - old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' - ;; - esac - ;; - esac - ;; - lynxos*) - # FIXME: insert proper C++ library support - ld_shlibs_CXX=no - ;; - m88k*) - # FIXME: insert proper C++ library support - ld_shlibs_CXX=no - ;; - mvs*) - case $cc_basename in - cxx*) - # FIXME: insert proper C++ library support - ld_shlibs_CXX=no - ;; - *) - # FIXME: insert proper C++ library support - ld_shlibs_CXX=no - ;; - esac - ;; - netbsd*) - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then - archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' - wlarc= - hardcode_libdir_flag_spec_CXX='-R$libdir' - hardcode_direct_CXX=yes - hardcode_shlibpath_var_CXX=no - fi - # Workaround some broken pre-1.5 toolchains - output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' - ;; - openbsd2*) - # C++ shared libraries are fairly broken - ld_shlibs_CXX=no - ;; - openbsd*) - if test -f /usr/libexec/ld.so; then - hardcode_direct_CXX=yes - hardcode_shlibpath_var_CXX=no - archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' - hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then - archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' - export_dynamic_flag_spec_CXX='${wl}-E' - whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' - fi - output_verbose_link_cmd='echo' - else - ld_shlibs_CXX=no + else + whole_archive_flag_spec_CXX='' + fi + link_all_deplibs_CXX=yes + allow_undefined_flag_CXX="$_lt_dar_allow_undefined" + case $cc_basename in + ifort*) _lt_dar_can_shared=yes ;; + *) _lt_dar_can_shared=$GCC ;; + esac + if test "$_lt_dar_can_shared" = "yes"; then + output_verbose_link_cmd=func_echo_all + archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" + module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" + archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}" + module_expsym_cmds_CXX="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}" + if test "$lt_cv_apple_cc_single_mod" != "yes"; then + archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}" + archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}" fi - ;; - osf3*) - case $cc_basename in - KCC*) - # Kuck and Associates, Inc. (KAI) C++ Compiler - # KCC will only create a shared library if the output file - # ends with ".so" (or ".sl" for HP-UX), so rename the library - # to its proper name (with version) after linking. - archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' + else + ld_shlibs_CXX=no + fi - hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' - hardcode_libdir_separator_CXX=: + ;; - # Archives containing C++ object files must be created using - # "CC -Bstatic", where "CC" is the KAI C++ compiler. - old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' + dgux*) + case $cc_basename in + ec++*) + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + ;; + ghcx*) + # Green Hills C++ Compiler + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + ;; + *) + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + ;; + esac + ;; - ;; - RCC*) - # Rational C++ 2.4.1 - # FIXME: insert proper C++ library support - ld_shlibs_CXX=no - ;; - cxx*) - allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' - archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' - - hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' - hardcode_libdir_separator_CXX=: - - # Commands to make compiler produce verbose output that lists - # what "hidden" libraries, object files and flags are used when - # linking a shared library. - # - # There doesn't appear to be a way to prevent this compiler from - # explicitly linking system object files so we need to strip them - # from the output so that they don't get included in the library - # dependencies. - output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' - ;; - *) - if test "$GXX" = yes && test "$with_gnu_ld" = no; then - allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' - archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' + freebsd2.*) + # C++ shared libraries reported to be fairly broken before + # switch to ELF + ld_shlibs_CXX=no + ;; - hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' - hardcode_libdir_separator_CXX=: + freebsd-elf*) + archive_cmds_need_lc_CXX=no + ;; - # Commands to make compiler produce verbose output that lists - # what "hidden" libraries, object files and flags are used when - # linking a shared library. - output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' + freebsd* | dragonfly*) + # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF + # conventions + ld_shlibs_CXX=yes + ;; + + haiku*) + archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' + link_all_deplibs_CXX=yes + ;; + + hpux9*) + hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' + hardcode_libdir_separator_CXX=: + export_dynamic_flag_spec_CXX='${wl}-E' + hardcode_direct_CXX=yes + hardcode_minus_L_CXX=yes # Not in the search PATH, + # but as the default + # location of the library. + + case $cc_basename in + CC*) + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + ;; + aCC*) + archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' + # Commands to make compiler produce verbose output that lists + # what "hidden" libraries, object files and flags are used when + # linking a shared library. + # + # There doesn't appear to be a way to prevent this compiler from + # explicitly linking system object files so we need to strip them + # from the output so that they don't get included in the library + # dependencies. + output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' + ;; + *) + if test "$GXX" = yes; then + archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' + else + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + fi + ;; + esac + ;; - else - # FIXME: insert proper C++ library support - ld_shlibs_CXX=no - fi - ;; - esac - ;; - osf4* | osf5*) - case $cc_basename in - KCC*) - # Kuck and Associates, Inc. (KAI) C++ Compiler + hpux10*|hpux11*) + if test $with_gnu_ld = no; then + hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' + hardcode_libdir_separator_CXX=: - # KCC will only create a shared library if the output file - # ends with ".so" (or ".sl" for HP-UX), so rename the library - # to its proper name (with version) after linking. - archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' + case $host_cpu in + hppa*64*|ia64*) + ;; + *) + export_dynamic_flag_spec_CXX='${wl}-E' + ;; + esac + fi + case $host_cpu in + hppa*64*|ia64*) + hardcode_direct_CXX=no + hardcode_shlibpath_var_CXX=no + ;; + *) + hardcode_direct_CXX=yes + hardcode_direct_absolute_CXX=yes + hardcode_minus_L_CXX=yes # Not in the search PATH, + # but as the default + # location of the library. + ;; + esac + + case $cc_basename in + CC*) + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + ;; + aCC*) + case $host_cpu in + hppa*64*) + archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' + ;; + ia64*) + archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' + ;; + *) + archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' + ;; + esac + # Commands to make compiler produce verbose output that lists + # what "hidden" libraries, object files and flags are used when + # linking a shared library. + # + # There doesn't appear to be a way to prevent this compiler from + # explicitly linking system object files so we need to strip them + # from the output so that they don't get included in the library + # dependencies. + output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' + ;; + *) + if test "$GXX" = yes; then + if test $with_gnu_ld = no; then + case $host_cpu in + hppa*64*) + archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' + ;; + ia64*) + archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' + ;; + *) + archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' + ;; + esac + fi + else + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + fi + ;; + esac + ;; + interix[3-9]*) + hardcode_direct_CXX=no + hardcode_shlibpath_var_CXX=no hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' - hardcode_libdir_separator_CXX=: - - # Archives containing C++ object files must be created using - # the KAI C++ compiler. - old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' - ;; - RCC*) - # Rational C++ 2.4.1 - # FIXME: insert proper C++ library support - ld_shlibs_CXX=no - ;; - cxx*) - allow_undefined_flag_CXX=' -expect_unresolved \*' - archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' - archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ - echo "-hidden">> $lib.exp~ - $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~ - $rm $lib.exp' - - hardcode_libdir_flag_spec_CXX='-rpath $libdir' - hardcode_libdir_separator_CXX=: - - # Commands to make compiler produce verbose output that lists - # what "hidden" libraries, object files and flags are used when - # linking a shared library. - # - # There doesn't appear to be a way to prevent this compiler from - # explicitly linking system object files so we need to strip them - # from the output so that they don't get included in the library - # dependencies. - output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' + export_dynamic_flag_spec_CXX='${wl}-E' + # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. + # Instead, shared libraries are loaded at an image base (0x10000000 by + # default) and relocated if they conflict, which is a slow very memory + # consuming and fragmenting process. To avoid this, we pick a random, + # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link + # time. Moving up from 0x10000000 also allows more sbrk(2) space. + archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' + archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' ;; - *) - if test "$GXX" = yes && test "$with_gnu_ld" = no; then - allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' - archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' + irix5* | irix6*) + case $cc_basename in + CC*) + # SGI C++ + archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' + + # Archives containing C++ object files must be created using + # "CC -ar", where "CC" is the IRIX C++ compiler. This is + # necessary to make sure instantiated templates are included + # in the archive. + old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' + ;; + *) + if test "$GXX" = yes; then + if test "$with_gnu_ld" = no; then + archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' + else + archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` -o $lib' + fi + fi + link_all_deplibs_CXX=yes + ;; + esac + hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' + hardcode_libdir_separator_CXX=: + inherit_rpath_CXX=yes + ;; + + linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) + case $cc_basename in + KCC*) + # Kuck and Associates, Inc. (KAI) C++ Compiler + + # KCC will only create a shared library if the output file + # ends with ".so" (or ".sl" for HP-UX), so rename the library + # to its proper name (with version) after linking. + archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' + archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib' + # Commands to make compiler produce verbose output that lists + # what "hidden" libraries, object files and flags are used when + # linking a shared library. + # + # There doesn't appear to be a way to prevent this compiler from + # explicitly linking system object files so we need to strip them + # from the output so that they don't get included in the library + # dependencies. + output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' + + hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' + export_dynamic_flag_spec_CXX='${wl}--export-dynamic' + + # Archives containing C++ object files must be created using + # "CC -Bstatic", where "CC" is the KAI C++ compiler. + old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' + ;; + icpc* | ecpc* ) + # Intel C++ + with_gnu_ld=yes + # version 8.0 and above of icpc choke on multiply defined symbols + # if we add $predep_objects and $postdep_objects, however 7.1 and + # earlier do not add the objects themselves. + case `$CC -V 2>&1` in + *"Version 7."*) + archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' + archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' + ;; + *) # Version 8.0 or newer + tmp_idyn= + case $host_cpu in + ia64*) tmp_idyn=' -i_dynamic';; + esac + archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' + archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' + ;; + esac + archive_cmds_need_lc_CXX=no + hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' + export_dynamic_flag_spec_CXX='${wl}--export-dynamic' + whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' + ;; + pgCC* | pgcpp*) + # Portland Group C++ compiler + case `$CC -V` in + *pgCC\ [1-5].* | *pgcpp\ [1-5].*) + prelink_cmds_CXX='tpldir=Template.dir~ + rm -rf $tpldir~ + $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~ + compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"' + old_archive_cmds_CXX='tpldir=Template.dir~ + rm -rf $tpldir~ + $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~ + $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~ + $RANLIB $oldlib' + archive_cmds_CXX='tpldir=Template.dir~ + rm -rf $tpldir~ + $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ + $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' + archive_expsym_cmds_CXX='tpldir=Template.dir~ + rm -rf $tpldir~ + $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ + $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib' + ;; + *) # Version 6 and above use weak symbols + archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' + archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib' + ;; + esac - hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' - hardcode_libdir_separator_CXX=: + hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' + export_dynamic_flag_spec_CXX='${wl}--export-dynamic' + whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' + ;; + cxx*) + # Compaq C++ + archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' + archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols' - # Commands to make compiler produce verbose output that lists - # what "hidden" libraries, object files and flags are used when - # linking a shared library. - output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' + runpath_var=LD_RUN_PATH + hardcode_libdir_flag_spec_CXX='-rpath $libdir' + hardcode_libdir_separator_CXX=: - else - # FIXME: insert proper C++ library support - ld_shlibs_CXX=no - fi - ;; - esac - ;; - psos*) - # FIXME: insert proper C++ library support - ld_shlibs_CXX=no - ;; - sunos4*) - case $cc_basename in - CC*) - # Sun C++ 4.x - # FIXME: insert proper C++ library support - ld_shlibs_CXX=no + # Commands to make compiler produce verbose output that lists + # what "hidden" libraries, object files and flags are used when + # linking a shared library. + # + # There doesn't appear to be a way to prevent this compiler from + # explicitly linking system object files so we need to strip them + # from the output so that they don't get included in the library + # dependencies. + output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed' + ;; + xl* | mpixl* | bgxl*) + # IBM XL 8.0 on PPC, with GNU ld + hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' + export_dynamic_flag_spec_CXX='${wl}--export-dynamic' + archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' + if test "x$supports_anon_versioning" = xyes; then + archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~ + cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ + echo "local: *; };" >> $output_objdir/$libname.ver~ + $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' + fi + ;; + *) + case `$CC -V 2>&1 | sed 5q` in + *Sun\ C*) + # Sun C++ 5.9 + no_undefined_flag_CXX=' -zdefs' + archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' + archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols' + hardcode_libdir_flag_spec_CXX='-R$libdir' + whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' + compiler_needs_object_CXX=yes + + # Not sure whether something based on + # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 + # would be better. + output_verbose_link_cmd='func_echo_all' + + # Archives containing C++ object files must be created using + # "CC -xar", where "CC" is the Sun C++ compiler. This is + # necessary to make sure instantiated templates are included + # in the archive. + old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' + ;; + esac + ;; + esac ;; - lcc*) - # Lucid - # FIXME: insert proper C++ library support + + lynxos*) + # FIXME: insert proper C++ library support ld_shlibs_CXX=no ;; - *) - # FIXME: insert proper C++ library support - ld_shlibs_CXX=no + + m88k*) + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no ;; - esac - ;; - solaris*) - case $cc_basename in - CC*) - # Sun C++ 4.2, 5.x and Centerline C++ - archive_cmds_need_lc_CXX=yes - no_undefined_flag_CXX=' -zdefs' - archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' - archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ - $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' - hardcode_libdir_flag_spec_CXX='-R$libdir' - hardcode_shlibpath_var_CXX=no - case $host_os in - solaris2.[0-5] | solaris2.[0-5].*) ;; + mvs*) + case $cc_basename in + cxx*) + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + ;; *) - # The compiler driver will combine and reorder linker options, - # but understands `-z linker_flag'. - # Supported since Solaris 2.6 (maybe 2.5.1?) - whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract' + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no ;; esac - link_all_deplibs_CXX=yes + ;; - output_verbose_link_cmd='echo' + netbsd*) + if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then + archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' + wlarc= + hardcode_libdir_flag_spec_CXX='-R$libdir' + hardcode_direct_CXX=yes + hardcode_shlibpath_var_CXX=no + fi + # Workaround some broken pre-1.5 toolchains + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' + ;; - # Archives containing C++ object files must be created using - # "CC -xar", where "CC" is the Sun C++ compiler. This is - # necessary to make sure instantiated templates are included - # in the archive. - old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' + *nto* | *qnx*) + ld_shlibs_CXX=yes ;; - gcx*) - # Green Hills C++ Compiler - archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' - # The C++ compiler must be used to create the archive. - old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' + openbsd2*) + # C++ shared libraries are fairly broken + ld_shlibs_CXX=no ;; - *) - # GNU C++ compiler with Solaris linker - if test "$GXX" = yes && test "$with_gnu_ld" = no; then - no_undefined_flag_CXX=' ${wl}-z ${wl}defs' - if $CC --version | grep -v '^2\.7' > /dev/null; then - archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' - archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ - $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' - # Commands to make compiler produce verbose output that lists - # what "hidden" libraries, object files and flags are used when - # linking a shared library. - output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" - else - # g++ 2.7 appears to require `-G' NOT `-shared' on this - # platform. - archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' - archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ - $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' + openbsd*) + if test -f /usr/libexec/ld.so; then + hardcode_direct_CXX=yes + hardcode_shlibpath_var_CXX=no + hardcode_direct_absolute_CXX=yes + archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' + hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' + if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then + archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' + export_dynamic_flag_spec_CXX='${wl}-E' + whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' + fi + output_verbose_link_cmd=func_echo_all + else + ld_shlibs_CXX=no + fi + ;; + + osf3* | osf4* | osf5*) + case $cc_basename in + KCC*) + # Kuck and Associates, Inc. (KAI) C++ Compiler + + # KCC will only create a shared library if the output file + # ends with ".so" (or ".sl" for HP-UX), so rename the library + # to its proper name (with version) after linking. + archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' + + hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' + hardcode_libdir_separator_CXX=: + + # Archives containing C++ object files must be created using + # the KAI C++ compiler. + case $host in + osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;; + *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;; + esac + ;; + RCC*) + # Rational C++ 2.4.1 + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + ;; + cxx*) + case $host in + osf3*) + allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' + archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && func_echo_all "${wl}-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' + hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' + ;; + *) + allow_undefined_flag_CXX=' -expect_unresolved \*' + archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' + archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ + echo "-hidden">> $lib.exp~ + $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~ + $RM $lib.exp' + hardcode_libdir_flag_spec_CXX='-rpath $libdir' + ;; + esac + + hardcode_libdir_separator_CXX=: # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. - output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" - fi + # + # There doesn't appear to be a way to prevent this compiler from + # explicitly linking system object files so we need to strip them + # from the output so that they don't get included in the library + # dependencies. + output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' + ;; + *) + if test "$GXX" = yes && test "$with_gnu_ld" = no; then + allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' + case $host in + osf3*) + archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' + ;; + *) + archive_cmds_CXX='$CC -shared $pic_flag -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' + ;; + esac + + hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' + hardcode_libdir_separator_CXX=: + + # Commands to make compiler produce verbose output that lists + # what "hidden" libraries, object files and flags are used when + # linking a shared library. + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' + + else + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + fi + ;; + esac + ;; - hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir' - case $host_os in - solaris2.[0-5] | solaris2.[0-5].*) ;; + psos*) + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + ;; + + sunos4*) + case $cc_basename in + CC*) + # Sun C++ 4.x + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + ;; + lcc*) + # Lucid + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + ;; + *) + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + ;; + esac + ;; + + solaris*) + case $cc_basename in + CC* | sunCC*) + # Sun C++ 4.2, 5.x and Centerline C++ + archive_cmds_need_lc_CXX=yes + no_undefined_flag_CXX=' -zdefs' + archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' + archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ + $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' + + hardcode_libdir_flag_spec_CXX='-R$libdir' + hardcode_shlibpath_var_CXX=no + case $host_os in + solaris2.[0-5] | solaris2.[0-5].*) ;; + *) + # The compiler driver will combine and reorder linker options, + # but understands `-z linker_flag'. + # Supported since Solaris 2.6 (maybe 2.5.1?) + whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract' + ;; + esac + link_all_deplibs_CXX=yes + + output_verbose_link_cmd='func_echo_all' + + # Archives containing C++ object files must be created using + # "CC -xar", where "CC" is the Sun C++ compiler. This is + # necessary to make sure instantiated templates are included + # in the archive. + old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' + ;; + gcx*) + # Green Hills C++ Compiler + archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' + + # The C++ compiler must be used to create the archive. + old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' + ;; + *) + # GNU C++ compiler with Solaris linker + if test "$GXX" = yes && test "$with_gnu_ld" = no; then + no_undefined_flag_CXX=' ${wl}-z ${wl}defs' + if $CC --version | $GREP -v '^2\.7' > /dev/null; then + archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' + archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ + $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' + + # Commands to make compiler produce verbose output that lists + # what "hidden" libraries, object files and flags are used when + # linking a shared library. + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' + else + # g++ 2.7 appears to require `-G' NOT `-shared' on this + # platform. + archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' + archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ + $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' + + # Commands to make compiler produce verbose output that lists + # what "hidden" libraries, object files and flags are used when + # linking a shared library. + output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' + fi + + hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir' + case $host_os in + solaris2.[0-5] | solaris2.[0-5].*) ;; + *) + whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' + ;; + esac + fi + ;; + esac + ;; + + sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) + no_undefined_flag_CXX='${wl}-z,text' + archive_cmds_need_lc_CXX=no + hardcode_shlibpath_var_CXX=no + runpath_var='LD_RUN_PATH' + + case $cc_basename in + CC*) + archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' + archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' + ;; + *) + archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' + archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' + ;; + esac + ;; + + sysv5* | sco3.2v5* | sco5v6*) + # Note: We can NOT use -z defs as we might desire, because we do not + # link with -lc, and that would cause any symbols used from libc to + # always be unresolved, which means just about no library would + # ever link correctly. If we're not using GNU ld we use -z text + # though, which does catch some bad symbols but isn't as heavy-handed + # as -z defs. + no_undefined_flag_CXX='${wl}-z,text' + allow_undefined_flag_CXX='${wl}-z,nodefs' + archive_cmds_need_lc_CXX=no + hardcode_shlibpath_var_CXX=no + hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir' + hardcode_libdir_separator_CXX=':' + link_all_deplibs_CXX=yes + export_dynamic_flag_spec_CXX='${wl}-Bexport' + runpath_var='LD_RUN_PATH' + + case $cc_basename in + CC*) + archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' + archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' + old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~ + '"$old_archive_cmds_CXX" + reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~ + '"$reload_cmds_CXX" + ;; *) - whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' + archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' + archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' ;; - esac - fi - ;; - esac - ;; - sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) - no_undefined_flag_CXX='${wl}-z,text' - archive_cmds_need_lc_CXX=no - hardcode_shlibpath_var_CXX=no - runpath_var='LD_RUN_PATH' + esac + ;; - case $cc_basename in - CC*) - archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' - archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' - ;; - *) - archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' - archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' - ;; - esac - ;; - sysv5* | sco3.2v5* | sco5v6*) - # Note: We can NOT use -z defs as we might desire, because we do not - # link with -lc, and that would cause any symbols used from libc to - # always be unresolved, which means just about no library would - # ever link correctly. If we're not using GNU ld we use -z text - # though, which does catch some bad symbols but isn't as heavy-handed - # as -z defs. - # For security reasons, it is highly recommended that you always - # use absolute paths for naming shared libraries, and exclude the - # DT_RUNPATH tag from executables and libraries. But doing so - # requires that you compile everything twice, which is a pain. - # So that behaviour is only enabled if SCOABSPATH is set to a - # non-empty value in the environment. Most likely only useful for - # creating official distributions of packages. - # This is a hack until libtool officially supports absolute path - # names for shared libraries. - no_undefined_flag_CXX='${wl}-z,text' - allow_undefined_flag_CXX='${wl}-z,nodefs' - archive_cmds_need_lc_CXX=no - hardcode_shlibpath_var_CXX=no - hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' - hardcode_libdir_separator_CXX=':' - link_all_deplibs_CXX=yes - export_dynamic_flag_spec_CXX='${wl}-Bexport' - runpath_var='LD_RUN_PATH' + tandem*) + case $cc_basename in + NCC*) + # NonStop-UX NCC 3.20 + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + ;; + *) + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + ;; + esac + ;; + + vxworks*) + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + ;; - case $cc_basename in - CC*) - archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' - archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' - ;; - *) - archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' - archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' - ;; - esac - ;; - tandem*) - case $cc_basename in - NCC*) - # NonStop-UX NCC 3.20 - # FIXME: insert proper C++ library support - ld_shlibs_CXX=no - ;; *) - # FIXME: insert proper C++ library support - ld_shlibs_CXX=no - ;; + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + ;; esac - ;; - vxworks*) - # FIXME: insert proper C++ library support - ld_shlibs_CXX=no - ;; - *) - # FIXME: insert proper C++ library support - ld_shlibs_CXX=no - ;; -esac -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 $as_echo "$ld_shlibs_CXX" >&6; } -test "$ld_shlibs_CXX" = no && can_build_shared=no + test "$ld_shlibs_CXX" = no && can_build_shared=no + + GCC_CXX="$GXX" + LD_CXX="$LD" -GCC_CXX="$GXX" -LD_CXX="$LD" + ## CAVEAT EMPTOR: + ## There is no encapsulation within the following macros, do not change + ## the running order or otherwise move them around unless you know exactly + ## what you are doing... + # Dependencies to place before and after the object being linked: +predep_objects_CXX= +postdep_objects_CXX= +predeps_CXX= +postdeps_CXX= +compiler_lib_search_path_CXX= -## CAVEAT EMPTOR: -## There is no encapsulation within the following macros, do not change -## the running order or otherwise move them around unless you know exactly -## what you are doing... -cat > conftest.$ac_ext < conftest.$ac_ext <<_LT_EOF class Foo { public: @@ -111641,7 +114085,15 @@ private: int a; }; -EOF +_LT_EOF + + +_lt_libdeps_save_CFLAGS=$CFLAGS +case "$CC $CFLAGS " in #( +*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;; +*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;; +*\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;; +esac if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 (eval $ac_compile) 2>&5 @@ -111655,28 +114107,32 @@ # the conftest object file. pre_test_object_deps_done=no - # The `*' in the case matches for architectures that use `case' in - # $output_verbose_cmd can trigger glob expansion during the loop - # eval without this substitution. - output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"` - - for p in `eval $output_verbose_link_cmd`; do - case $p in + for p in `eval "$output_verbose_link_cmd"`; do + case ${prev}${p} in -L* | -R* | -l*) # Some compilers place space between "-{L,R}" and the path. # Remove the space. - if test $p = "-L" \ - || test $p = "-R"; then + if test $p = "-L" || + test $p = "-R"; then prev=$p continue - else - prev= fi + # Expand the sysroot to ease extracting the directories later. + if test -z "$prev"; then + case $p in + -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;; + -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;; + -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;; + esac + fi + case $p in + =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;; + esac if test "$pre_test_object_deps_done" = no; then - case $p in - -L* | -R*) + case ${prev} in + -L | -R) # Internal compiler library paths should come after those # provided the user. The postdeps already come after the # user supplied libs so there is no need to process them. @@ -111696,8 +114152,10 @@ postdeps_CXX="${postdeps_CXX} ${prev}${p}" fi fi + prev= ;; + *.lto.$objext) ;; # Ignore GCC LTO objects *.$objext) # This assumes that the test object file only shows up # once in the compiler output. @@ -111732,12 +114190,8 @@ echo "libtool.m4: error: problem compiling CXX test program" fi -$rm -f confest.$objext - -compiler_lib_search_dirs_CXX= -if test -n "$compiler_lib_search_path_CXX"; then - compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'` -fi +$RM -f confest.$objext +CFLAGS=$_lt_libdeps_save_CFLAGS # PORTME: override above test on systems where it is broken case $host_os in @@ -111753,7 +114207,7 @@ case `$CC -V 2>&1 | sed 5q` in *Sun\ C*) # Sun C++ 5.9 - # + # The more standards-conforming stlport4 library is # incompatible with the Cstd library. Avoid specifying # it if it's in CXXFLAGS. Ignore libCrun as @@ -111763,6 +114217,7 @@ solaris_use_stlport4=yes ;; esac + if test "$solaris_use_stlport4" != yes; then postdeps_CXX='-library=Cstd -library=Crun' fi @@ -111772,7 +114227,7 @@ solaris*) case $cc_basename in - CC*) + CC* | sunCC*) # The more standards-conforming stlport4 library is # incompatible with the Cstd library. Avoid specifying # it if it's in CXXFLAGS. Ignore libCrun as @@ -111794,16 +114249,49 @@ ;; esac + case " $postdeps_CXX " in *" -lc "*) archive_cmds_need_lc_CXX=no ;; esac + compiler_lib_search_dirs_CXX= +if test -n "${compiler_lib_search_path_CXX}"; then + compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'` +fi + + + + + + + + + + -lt_prog_compiler_wl_CXX= + + + + + + + + + + + + + + + + + + + + + lt_prog_compiler_wl_CXX= lt_prog_compiler_pic_CXX= lt_prog_compiler_static_CXX= -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 -$as_echo_n "checking for $compiler option to produce PIC... " >&6; } # C++ specific cases for pic, static, wl, etc. if test "$GXX" = yes; then @@ -111818,21 +114306,31 @@ lt_prog_compiler_static_CXX='-Bstatic' fi ;; + amigaos*) - # FIXME: we need at least 68020 code to build shared libraries, but - # adding the `-m68020' flag to GCC prevents building anything better, - # like `-m68040'. - lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' + case $host_cpu in + powerpc) + # see comment about AmigaOS4 .so support + lt_prog_compiler_pic_CXX='-fPIC' + ;; + m68k) + # FIXME: we need at least 68020 code to build shared libraries, but + # adding the `-m68020' flag to GCC prevents building anything better, + # like `-m68040'. + lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' + ;; + esac ;; + beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) # PIC is the default for these OSes. ;; - mingw* | cygwin* | os2* | pw32*) + mingw* | cygwin* | os2* | pw32* | cegcc*) # This hack is so that the source file can tell whether it is being # built for inclusion in a dll (and should export symbols for example). # Although the cygwin gcc ignores -fPIC, still need this for old-style # (--disable-auto-import) libraries - lt_prog_compiler_pic_CXX='-DDLL_EXPORT' + lt_prog_compiler_pic_CXX='-DDLL_EXPORT' ;; darwin* | rhapsody*) # PIC is the default on this platform @@ -111843,6 +114341,11 @@ # DJGPP does not support shared libraries at all lt_prog_compiler_pic_CXX= ;; + haiku*) + # PIC is the default for Haiku. + # The "-static" flag exists, but is broken. + lt_prog_compiler_static_CXX= + ;; interix[3-9]*) # Interix 3.x gcc -fpic/-fPIC options generate broken code. # Instead, we relocate shared libraries at runtime. @@ -111853,16 +114356,22 @@ fi ;; hpux*) - # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but - # not for PA HP-UX. + # PIC is the default for 64-bit PA HP-UX, but not for 32-bit + # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag + # sets the default TLS model and affects inlining. case $host_cpu in - hppa*64*|ia64*) + hppa*64*) ;; *) lt_prog_compiler_pic_CXX='-fPIC' ;; esac ;; + *qnx* | *nto*) + # QNX uses GNU C++, but need to define -shared option too, otherwise + # it will coredump. + lt_prog_compiler_pic_CXX='-fPIC -shared' + ;; *) lt_prog_compiler_pic_CXX='-f