cvs: php4 / configure.in
| From: | Jani Taskinen | Date: | Wed, 17 Jul 2002 21:56:41 +0000 |
| Subject: | cvs: php4 / configure.in | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-12874@lists.php.net to get a copy of this message | ||
sniper Wed Jul 17 17:56:41 2002 EDT
Modified files:
/php4 configure.in
Log:
We have a macro for checking -R, etc. switches. (exactly same code)
Index: php4/configure.in
diff -u php4/configure.in:1.360 php4/configure.in:1.361
--- php4/configure.in:1.360 Fri Jul 5 02:07:53 2002
+++ php4/configure.in Wed Jul 17 17:56:40 2002
@@ -1,4 +1,4 @@
-dnl ## $Id: configure.in,v 1.360 2002/07/05 06:07:53 sas Exp $ -*- sh -*-
+dnl ## $Id: configure.in,v 1.361 2002/07/17 21:56:40 sniper Exp $ -*- sh -*-
dnl ## Process this file with autoconf to produce a configure script.
divert(1)
@@ -153,33 +153,10 @@
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