]> granicus.if.org Git - php/commitdiff
We have a macro for checking -R, etc. switches. (exactly same code)
authorfoobar <sniper@php.net>
Wed, 17 Jul 2002 21:56:40 +0000 (21:56 +0000)
committerfoobar <sniper@php.net>
Wed, 17 Jul 2002 21:56:40 +0000 (21:56 +0000)
configure.in

index 27abd7e948ed126d2d2217976bf9d58ae5bce329..398dc60ba81c3a890037348f64eb1d092d7c1443 100644 (file)
@@ -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