|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
?? ?? 1999, Version 4.0 Beta 3
+- Added '--disable-rpath' option (Sascha)
- Added AOLserver SAPI module (Sascha)
- Fixed XML Callbacks. (Thies)
- Updated ODBC to use the new high-performance Zend function API (kara)
AC_EXPAND_PATH($1, ai_p)
AC_PHP_ONCE(LIBPATH, $ai_p, [
EXTRA_LIBS="$EXTRA_LIBS -L$ai_p"
- if test -n "$APXS" ; then
- RPATHS="$RPATHS ${apxs_runpath_switch}$ai_p'"
+ PHP_RPATHS="$PHP_RPATHS $ai_p"
+ ])
+])
+
+dnl
+dnl AC_BUILD_RPATH()
+dnl
+dnl builds RPATH from PHP_RPATHS
+dnl
+AC_DEFUN(AC_BUILD_RPATH,[
+ if test "$enable_rpath" = "yes"; then
+ if test -n "$AXPS"; then
+ for i in $PHP_RPATHS; do
+ RPATHS="$RPATHS ${apxs_runpath_switch}$i'"
+ done
else
- RPATHS="$RPATHS ${ld_runpath_switch}$ai_p"
+ for i in $PHP_RPATHS; do
+ RPATHS="$RPATHS ${ld_runpath_switch}$i"
+ done
fi
- ])
+ fi
])
dnl
AC_DEFINE(HAVE_AOLSERVER)
BINNAME=php4_aol.so
INSTALL_IT="\$(SHELL) \$(srcdir)/install-sh -m 0755 $BINNAME $NS_DIR/root/bin/$BINNAME"
- CFLAGS="$CFLAGS -rdynamic"
RESULT=yes
])
AC_MSG_RESULT($RESULT)
AC_SUBST(TSRM_DIR)
AC_SUBST(TSRM_LIB)
+AC_MSG_CHECKING(whether to enable runpaths)
+AC_ARG_ENABLE(rpath,
+[ --disable-rpath Disable passing additional runtime library
+ search paths],
+[
+ if test "$enableval" = "no"; then
+ enable_rpath=no
+ else
+ enable_rpath=yes
+ fi
+],[
+ enable_rpath=yes
+])
+AC_MSG_RESULT($enable_rpath)
+
dnl AC_MSG_CHECKING(whether to enable PHP RPC support)
dnl AC_ARG_ENABLE(php-rpc,
dnl [ --enable-php-rpc Compile with PHP RPC support.],
dnl add -fPIC option on Solaris if we are building dynamic extensions
PHP_SOLARIS_PIC_WEIRDNESS
+AC_BUILD_RPATH
+
AC_SUBST(CFLAGS)
AC_SUBST(PROG_SENDMAIL)
AC_SUBST(CFLAGS_SHLIB)