ld_runpath_switch=-L
fi
fi
+if test "$PHP_RPATH" = "no"; then
+ ld_runpath_switch=
+fi
])
dnl
_PHP_ADD_LIBPATH_GLOBAL([$ai_p])
],[
if test "$ext_shared" = "yes"; then
- $2="$ld_runpath_switch$ai_p -L$ai_p [$]$2"
+ $2="-L$ai_p [$]$2"
+ test -n "$ld_runpath_switch" && $2="$ld_runpath_switch$ai_p [$]$2"
else
_PHP_ADD_LIBPATH_GLOBAL([$ai_p])
fi
PHP_ARG_WITH(libdir, for system library directory,
[ --with-libdir=NAME Look for libraries in .../NAME rather than .../lib],lib,no)
+PHP_ARG_ENABLE(rpath, whether to enable runpaths,
+[ --disable-rpath Disable passing additional runtime library
+ search paths], yes, no)
+
dnl check for -R, etc. switch
PHP_RUNPATH_SWITCH
AC_DEFINE(MAGIC_QUOTES, 0, [ ])
fi
-PHP_ARG_ENABLE(rpath, whether to enable runpaths,
-[ --disable-rpath Disable passing additional runtime library
- search paths], yes, no)
-
PHP_ARG_ENABLE(libgcc, whether to explicitly link against libgcc,
[ --enable-libgcc Enable explicitly linking against libgcc], no, no)