From: Antony Dovgal Date: Mon, 25 Dec 2006 15:42:35 +0000 (+0000) Subject: MFH: fix bug #39890 (using autoconf 2.6x and --with-layout=GNU breaks PEAR install... X-Git-Tag: php-4.4.5RC1~26 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=5f92ac3bab8fdec623cee08d3a33786b31c56788;p=php MFH: fix bug #39890 (using autoconf 2.6x and --with-layout=GNU breaks PEAR install path) --- diff --git a/NEWS b/NEWS index 2003d4bb5c..c77a39c2f6 100644 --- a/NEWS +++ b/NEWS @@ -5,6 +5,8 @@ PHP 4 NEWS indexing the page. (Ilia) - Updated PCRE to version 6.7. (Ilia) - Fixed missing open_basedir check inside chdir() function. (Ilia) +- Fixed bug #39890 (using autoconf 2.6x and --with-layout=GNU breaks PEAR + install path). (Tony) - Fixed bug #39653 (ext/dba doesn't check for db-4.5 and db-4.4 when db4 support is enabled). (Tony) - Fixed bug #39583 (ftp_put() does not change transfer mode to ASCII). (Tony) diff --git a/configure.in b/configure.in index e6fa64e726..adcb09fb1f 100644 --- a/configure.in +++ b/configure.in @@ -1045,6 +1045,15 @@ if test -z "$EXTENSION_DIR"; then fi fi +case $PHP_LAYOUT in + GNU) + datarootdir=$prefix/share + ;; + *) + datarootdir=$prefix/php + ;; +esac + dnl Expand all directory names for use in macros/constants EXPANDED_PEAR_INSTALLDIR=`eval echo $PEAR_INSTALLDIR` EXPANDED_EXTENSION_DIR=`eval echo $EXTENSION_DIR` @@ -1135,6 +1144,7 @@ PHP_SUBST(phptempdir) PHP_SUBST(prefix) PHP_SUBST(localstatedir) PHP_SUBST(datadir) +PHP_SUBST(datarootdir) PHP_SUBST(sysconfdir) PHP_SUBST(AWK)