From 60ad61def7d274d1497efb563eafcb1b17fa4602 Mon Sep 17 00:00:00 2001 From: foobar Date: Wed, 17 Jul 2002 21:56:40 +0000 Subject: [PATCH] We have a macro for checking -R, etc. switches. (exactly same code) --- configure.in | 29 +++-------------------------- 1 file 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 -- 2.40.0