diff options
author | foobar <sniper@php.net> | 2002-07-17 21:56:40 +0000 |
---|---|---|
committer | foobar <sniper@php.net> | 2002-07-17 21:56:40 +0000 |
commit | 60ad61def7d274d1497efb563eafcb1b17fa4602 (patch) | |
tree | 84c5f82bfedada2423fde4ac62e0652b8bb360b0 /configure.in | |
parent | 8e71a98cc9552024375ad92f47821014d76be4a4 (diff) | |
download | php-git-60ad61def7d274d1497efb563eafcb1b17fa4602.tar.gz |
We have a macro for checking -R, etc. switches. (exactly same code)
Diffstat (limited to 'configure.in')
-rw-r--r-- | configure.in | 29 |
1 files changed, 3 insertions, 26 deletions
diff --git a/configure.in b/configure.in index 27abd7e948..398dc60ba8 100644 --- a/configure.in +++ b/configure.in @@ -153,33 +153,10 @@ AC_AIX dnl AC_PROG_CXX dnl AC_PROG_CXXCPP + dnl check for -R, etc. switch -AC_MSG_CHECKING([whether compiler supports -R]) -AC_CACHE_VAL(php_cv_cc_dashr,[ - SAVE_LIBS=$LIBS - LIBS="-R /usr/lib $LIBS" - AC_TRY_LINK([], [], php_cv_cc_dashr=yes, php_cv_cc_dashr=no) - LIBS=$SAVE_LIBS -]) -AC_MSG_RESULT([$php_cv_cc_dashr]) -if test $php_cv_cc_dashr = "yes"; then - ld_runpath_switch=-R -else - AC_MSG_CHECKING([whether compiler supports -Wl,-rpath,]) - AC_CACHE_VAL(php_cv_cc_rpath, [ - SAVE_LIBS=$LIBS - LIBS="-Wl,-rpath,/usr/lib $LIBS" - AC_TRY_LINK([], [], php_cv_cc_rpath=yes, php_cv_cc_rpath=no) - LIBS=$SAVE_LIBS - ]) - AC_MSG_RESULT([$php_cv_cc_rpath]) - if test $php_cv_cc_rpath = "yes"; then - ld_runpath_switch=-Wl,-rpath, - else - dnl something innocuous - ld_runpath_switch=-L - fi -fi +PHP_RUNPATH_SWITCH + AC_PROG_RANLIB AC_PROG_LN_S AC_PROG_AWK |