cvs: php-src /build build2.mk buildcheck.sh /scripts Makefile.frag phpize.in

From: Date: Thu, 20 Jan 2005 01:41:20 +0000
Subject: cvs: php-src /build build2.mk buildcheck.sh /scripts Makefile.frag phpize.in
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-30007@lists.php.net to get a copy of this message
sniper Wed Jan 19 20:41:20 2005 EDT Modified files: /php-src/build build2.mk buildcheck.sh /php-src/scripts Makefile.frag phpize.in Log: - Changed phpize not to require automake and libtool. - Fixed build system to always use bundled libtool files. http://cvs.php.net/diff.php/php-src/build/build2.mk?r1=1.33&r2=1.34&ty=u Index: php-src/build/build2.mk diff -u php-src/build/build2.mk:1.33 php-src/build/build2.mk:1.34 --- php-src/build/build2.mk:1.33 Wed Jan 19 18:03:29 2005 +++ php-src/build/build2.mk Wed Jan 19 20:41:19 2005 @@ -14,7 +14,7 @@ # | Author: Sascha Schumann <sascha@schumann.cx> | # +----------------------------------------------------------------------+ # -# $Id: build2.mk,v 1.33 2005/01/19 23:03:29 sniper Exp $ +# $Id: build2.mk,v 1.34 2005/01/20 01:41:19 sniper Exp $ # include generated_lists @@ -34,11 +34,12 @@ ifeq ($(SHOW_WARNINGS), no) SUPPRESS_WARNINGS = 2>&1 | (egrep -v '(AC_TRY_RUN called without default to allow cross compiling|AC_PROG_CXXCPP was called before AC_PROG_CXX|defined in acinclude.m4 but never used|AC_PROG_LEX invoked multiple times|AC_DECL_YYTEXT is expanded from...|the top level)'||true) - libtoolize_flags = --automake +else + debug_target = debugging endif -all: $(targets) +all: $(targets) $(debug_target) acconfig.h: $(acconfig_h_SOURCES) @echo rebuilding $@ @@ -49,19 +50,19 @@ # correctly otherwise (timestamps are not updated) @echo rebuilding $@ @rm -f $@ - @autoheader $(SUPPRESS_WARNINGS) + autoheader $(SUPPRESS_WARNINGS) $(TOUCH_FILES): touch $(TOUCH_FILES) aclocal.m4: configure.in acinclude.m4 @echo rebuilding $@ - @libtoolize=./build/shtool path glibtoolize libtoolize; \ - $$libtoolize --copy $(libtoolize_flags); \ - ltpath=dirname $$libtoolize; \ - ltfile=cd $$ltpath/../share/aclocal; pwd/libtool.m4; \ - cat acinclude.m4 $$ltfile > $@ + cat acinclude.m4 ./build/libtool.m4 > $@ configure: aclocal.m4 configure.in $(config_m4_files) @echo rebuilding $@ - @autoconf $(SUPPRESS_WARNINGS) + autoconf $(SUPPRESS_WARNINGS) + +debugging: + @libtoolize=./build/shtool path glibtoolize libtoolize; \ + $$libtoolize http://cvs.php.net/diff.php/php-src/build/buildcheck.sh?r1=1.33&r2=1.34&ty=u Index: php-src/build/buildcheck.sh diff -u php-src/build/buildcheck.sh:1.33 php-src/build/buildcheck.sh:1.34 --- php-src/build/buildcheck.sh:1.33 Wed Jan 19 17:27:39 2005 +++ php-src/build/buildcheck.sh Wed Jan 19 20:41:19 2005 @@ -16,7 +16,7 @@ # | Sascha Schumann <sascha@schumann.cx> | # +----------------------------------------------------------------------+ # -# $Id: buildcheck.sh,v 1.33 2005/01/19 22:27:39 sniper Exp $ +# $Id: buildcheck.sh,v 1.34 2005/01/20 01:41:19 sniper Exp $ # echo "buildconf: checking installation..." @@ -41,7 +41,6 @@ echo "buildconf: autoconf version $ac_version (ok)" fi - if test "$1" = "2" && test "$2" -ge "50"; then echo "buildconf: Your version of autoconf likely contains buggy cache code." echo " Running cvsclean for you." @@ -50,44 +49,6 @@ stamp= fi -# libtoolize 1.4.3 or newer -# Prefer glibtoolize over libtoolize for Mac OS X compatibility -libtoolize=./build/shtool path glibtoolize libtoolize 2> /dev/null -lt_pversion=$libtoolize --version 2>/dev/null|head -n 1|awk -F' ' '{print $NF}' -if test "$lt_pversion" = ""; then -echo "buildconf: libtool not found." -echo " You need libtool version 1.4.3 or newer installed" -echo " to build PHP from CVS." -exit 1 -fi -IFS=.; set $lt_pversion; IFS=' ' - -if test "$3" = ""; then - third=0 -else - third=$3 -fi - -if test "$1" -gt "1" || test "$2" -ge "5" || (test "$2" -ge "4" && test "$third" -ge "3") -then -echo "buildconf: libtool version $lt_pversion (ok)" -else -echo "buildconf: libtool version $lt_pversion found." -echo " You need libtool version 1.4.3 or newer installed" -echo " to build PHP from CVS." -exit 1 -fi - -ltpath=echo $libtoolize | sed -e 's#/[^/]*/[^/]*$##' -ltfile="$ltpath/share/aclocal/libtool.m4" -if test -r "$ltfile"; then - : -else - echo "buildconf: $ltfile does not exist." - echo " Please reinstall libtool." - exit 1 -fi - test -n "$stamp" && touch $stamp exit 0 http://cvs.php.net/diff.php/php-src/scripts/Makefile.frag?r1=1.13&r2=1.14&ty=u Index: php-src/scripts/Makefile.frag diff -u php-src/scripts/Makefile.frag:1.13 php-src/scripts/Makefile.frag:1.14 --- php-src/scripts/Makefile.frag:1.13 Tue Dec 28 10:20:42 2004 +++ php-src/scripts/Makefile.frag Wed Jan 19 20:41:20 2005 @@ -10,11 +10,15 @@ scripts/phpize.m4 \ build/mkdep.awk \ build/scan_makefile_in.awk \ + build/libtool.m4 \ Makefile.global \ - acinclude.m4 + acinclude.m4 \ + ltmain.sh BUILD_FILES_EXEC = \ - build/shtool + build/shtool \ + config.guess \ + config.sub bin_SCRIPTS = phpize php-config bin_src_SCRIPTS = phpextdist http://cvs.php.net/diff.php/php-src/scripts/phpize.in?r1=1.15&r2=1.16&ty=u Index: php-src/scripts/phpize.in diff -u php-src/scripts/phpize.in:1.15 php-src/scripts/phpize.in:1.16 --- php-src/scripts/phpize.in:1.15 Sat Jun 19 16:32:07 2004 +++ php-src/scripts/phpize.in Wed Jan 19 20:41:20 2005 @@ -6,9 +6,9 @@ includedir="$prefix/include/php" builddir="pwd" -FILES_BUILD="mkdep.awk scan_makefile_in.awk shtool" -FILES="acinclude.m4 Makefile.global" -CLEAN_FILES="$FILES *.lo *.la *.o .deps .libs/ build/ include/ modules/ install-sh \ +FILES_BUILD="mkdep.awk scan_makefile_in.awk shtool libtool.m4" +FILES="acinclude.m4 Makefile.global config.sub config.guess ltmain.sh" +CLEAN_FILES="$FILES *.o *.lo *.la .deps .libs/ build/ include/ modules/ install-sh \ mkinstalldirs missing config.nice config.sub config.guess configure configure.in \ aclocal.m4 config.h config.h.in conftest* ltmain.sh libtool config.cache \ config.log config.status Makefile Makefile.fragments Makefile.objects confdefs.h" @@ -101,17 +101,11 @@ phpize_autotools() { - aclocal || exit 1 + cat acinclude.m4 ./build/libtool.m4 > aclocal.m4 || exit 1 autoconf || exit 1 autoheader || exit 1 } -phpize_libtoolize() -{ - libtoolize=$builddir/build/shtool path glibtoolize libtoolize - $libtoolize -f -c || exit 1 -} - # Main script case "$1" in @@ -150,7 +144,6 @@ phpize_check_shtool - phpize_libtoolize ;; esac

« previous php.cvs (#30007) next »