]> granicus.if.org Git - php/commitdiff
merge in some autoconf stuff
authorSascha Schumann <sas@php.net>
Sun, 11 Jul 1999 10:51:41 +0000 (10:51 +0000)
committerSascha Schumann <sas@php.net>
Sun, 11 Jul 1999 10:51:41 +0000 (10:51 +0000)
acinclude.m4
configure.in.in
libphp4.module.in

index 57dd78e742662fa59c57ee0de4009b83868016e9..581adbb79e815229e7736313e59034a14cbaa382 100644 (file)
@@ -38,6 +38,8 @@ AC_DEFUN(AC_ADD_LIBPATH,[
   AC_EXPAND_PATH($1, ai_p)
   AC_PHP_ONCE(LIBPATH, $ai_p, [
     EXTRA_LIBS="$EXTRA_LIBS -L$ai_p"
+    if test -n "$rpath_raw" ; then
+      RPATHS="$RPATHS ${raw_runpath_switch}$ai_p"
     if test -n "$APXS" ; then
       RPATHS="$RPATHS ${apxs_runpath_switch}$ai_p'"
     else
index 06f345941a855c17629f861d53aa0a61d7562c17..2e7be3840e6d1197f7e44bf05439aed246116209 100644 (file)
@@ -123,6 +123,7 @@ AC_CACHE_VAL(php_cv_cc_dashr,[
 AC_MSG_RESULT($php_cv_cc_dashr)
 if test $php_cv_cc_dashr = "yes"; then
        ld_runpath_switch="-R"
+       raw_runpath_switch="-R"
        apxs_runpath_switch="-Wl,-R'"
 else
        AC_MSG_CHECKING([if compiler supports -Wl,-rpath,])
@@ -134,10 +135,12 @@ else
        AC_MSG_RESULT($php_cv_cc_rpath)
        if test $php_cv_cc_rpath = "yes"; then
                ld_runpath_switch="-Wl,-rpath,"
+               raw_runpath_switch="-rpath "
                apxs_runpath_switch="-Wl,'-rpath "
        else
                dnl something innocuous
                ld_runpath_switch="-L"
+               raw_runpath_switch="-L"
                apxs_runpath_switch="-L'"
        fi
 fi
@@ -416,6 +419,7 @@ AC_ARG_WITH(shared-apache,
          withval=/usr/local/etc/httpd
        fi
        if test "$withval" != "no"; then
+      rpath_raw=yes
          if test -f $withval/src/include/httpd.h; then
         AC_EXPAND_PATH($withval, withval)
            APACHE_INCLUDE="-I$withval/src/include -I$withval/src/os/unix"
@@ -474,6 +478,7 @@ AC_ARG_WITH(apache,
          withval=/usr/local/etc/httpd
        fi
        if test "$withval" != "no"; then
+      rpath_raw=yes
 # For Apache 1.2.x
       AC_EXPAND_PATH($withval, withval)
          if test -f $withval/src/httpd.h; then 
index b0dc8ac46a0181c9560840818333eb4716b14921..cdc3c7567752b1f14e0bcfa4716bfd21c70ed13b 100644 (file)
@@ -1,6 +1,7 @@
 Name: php4_module
 ConfigStart
        RULE_WANTHSREGEX=@HSREGEX@
+       LDFLAGS_SHLIB="@RPATHS@ $LDFLAGS_SHLIB"
        LIBS="@PHP_LIBS@ @EXTRA_LIBS@ @LIBS@ @RDYNAMIC_LFLAGS@ $LIBS"
        RULE_HIDE=yes
        CFLAGS="$CFLAGS -I@abs_srcdir@ -I@abs_srcdir@/libzend -I@abs_builddir@/libzend -I@abs_builddir@"