cvs: php-src(PHP_5_0) / configure.in

From: Date: Mon, 10 Jan 2005 01:11:26 +0000
Subject: cvs: php-src(PHP_5_0) / configure.in
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-29840@lists.php.net to get a copy of this message
sniper Sun Jan 9 20:11:26 2005 EDT Modified files: (Branch: PHP_5_0) /php-src configure.in Log: - The pic/no-pic patch by Joe Orton. http://cvs.php.net/diff.php/php-src/configure.in?r1=1.514.2.31&r2=1.514.2.32&ty=u Index: php-src/configure.in diff -u php-src/configure.in:1.514.2.31 php-src/configure.in:1.514.2.32 --- php-src/configure.in:1.514.2.31 Sun Jan 9 16:05:16 2005 +++ php-src/configure.in Sun Jan 9 20:11:26 2005 @@ -1,4 +1,4 @@ -dnl ## $Id: configure.in,v 1.514.2.31 2005/01/09 21:05:16 sniper Exp $ -*- sh -*- +dnl ## $Id: configure.in,v 1.514.2.32 2005/01/10 01:11:26 sniper Exp $ -*- sh -*- dnl ## Process this file with autoconf to produce a configure script. divert(1) @@ -202,6 +202,21 @@ ;; esac +# Disable PIC mode by default where it is known to be safe to do so, +# to avoid the performance hit from the lost register +AC_MSG_CHECKING([whether to force non-PIC code in shared modules]) +case $host_alias in +i?86-*-linux*|i?86-*-freebsd*) + if test "${with_pic+set}" != "set"; then + with_pic=no + AC_MSG_RESULT(yes) + else + AC_MSG_RESULT(no) + fi + ;; +*) AC_MSG_RESULT(no) ;; +esac + dnl Include Zend and TSRM configurations. dnl ------------------------------------------------------------------------- @@ -849,7 +864,6 @@ enable_shared=yes enable_static=yes -unset with_pic case $php_build_target in program|static) @@ -860,7 +874,9 @@ ;; shared) enable_static=no - standard_libtool_flag=-prefer-pic + if test "${with_pic+set}" != "set"; then + standard_libtool_flag='-prefer-pic' + fi EXTRA_LDFLAGS="$EXTRA_LDFLAGS -avoid-version -module" ;; esac

« previous php.cvs (#29840) next »