mirror of
https://github.com/php/php-src.git
synced 2025-08-15 13:38:49 +02:00
@buildconf now uses build.mk
Removed redundancy in buildconf/build.mk, buildconf now runs "make -f build.mk"
This commit is contained in:
parent
0ab2c37540
commit
263c6856dd
2 changed files with 18 additions and 40 deletions
2
build.mk
2
build.mk
|
@ -36,7 +36,7 @@ targets = $(makefile_in_files) configure $(config_h_in)
|
||||||
all: $(targets)
|
all: $(targets)
|
||||||
@for i in $(SUBDIRS); do \
|
@for i in $(SUBDIRS); do \
|
||||||
test -d $$i || (test -d ../$$i && ln -s ../$$i $$i); \
|
test -d $$i || (test -d ../$$i && ln -s ../$$i $$i); \
|
||||||
(cd $$i && $(MAKE) -f build.mk AMFLAGS=$(AMFLAGS)); \
|
(cd $$i>/dev/null && $(MAKE) -f build.mk AMFLAGS=$(AMFLAGS)); \
|
||||||
done
|
done
|
||||||
|
|
||||||
all: $(STAMP)
|
all: $(STAMP)
|
||||||
|
|
56
buildconf
56
buildconf
|
@ -6,7 +6,7 @@ supplied_flag=$1
|
||||||
if test "$1" = "--force"; then
|
if test "$1" = "--force"; then
|
||||||
shift
|
shift
|
||||||
# this is a posix correct "test -nt"
|
# this is a posix correct "test -nt"
|
||||||
elif test "`ls -t buildconf buildconf.stamp 2>/dev/null |head -1`" != "buildconf"; then
|
elif test "`ls -t build.mk buildconf buildconf.stamp 2>/dev/null |head -1`" = "buildconf.stamp"; then
|
||||||
:
|
:
|
||||||
else
|
else
|
||||||
echo "buildconf: checking installation..."
|
echo "buildconf: checking installation..."
|
||||||
|
@ -112,45 +112,23 @@ if test ! -d TSRM; then
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
./scripts/preconfig
|
## build.mk does not check automake/libtool prefixes yet.
|
||||||
|
##
|
||||||
|
#mv aclocal.m4 aclocal.m4.old 2>/dev/null
|
||||||
|
#aclocal
|
||||||
|
#if test "$?" != "0" -a "$am_prefix" != "$lt_prefix"; then
|
||||||
|
# echo "buildconf: ERROR: aclocal failed, probably because automake and"
|
||||||
|
# echo " libtool are installed with different prefixes;"
|
||||||
|
# echo " automake is installed in $am_prefix, but libtool in $lt_prefix."
|
||||||
|
# echo " Please re-install automake and/or libtool with a common prefix"
|
||||||
|
# echo " and try again."
|
||||||
|
# exit 1
|
||||||
|
#fi
|
||||||
|
|
||||||
mv aclocal.m4 aclocal.m4.old 2>/dev/null
|
if test "$supplied_flag" = "--local"; then
|
||||||
aclocal
|
subdirs='SUBDIRS='
|
||||||
if test "$?" != "0" -a "$am_prefix" != "$lt_prefix"; then
|
|
||||||
echo "buildconf: ERROR: aclocal failed, probably because automake and"
|
|
||||||
echo " libtool are installed with different prefixes;"
|
|
||||||
echo " automake is installed in $am_prefix, but libtool in $lt_prefix."
|
|
||||||
echo " Please re-install automake and/or libtool with a common prefix"
|
|
||||||
echo " and try again."
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
if cmp aclocal.m4.old aclocal.m4 > /dev/null 2>&1; then
|
|
||||||
echo "buildconf: keeping aclocal.m4"
|
|
||||||
mv aclocal.m4.old aclocal.m4
|
|
||||||
else
|
else
|
||||||
echo "buildconf: created or modified aclocal.m4"
|
subdirs=''
|
||||||
fi
|
fi
|
||||||
|
|
||||||
autoheader
|
make -s -f build.mk AMFLAGS="$automake_flags" $subdirs
|
||||||
|
|
||||||
# find all Makefile.ams
|
|
||||||
files="Makefile `find ext sapi regex pecl -name Makefile.am | sed 's#\.am##' | tr '\n' ' '`"
|
|
||||||
|
|
||||||
# suppress stupid automake warning
|
|
||||||
automake --add-missing --include-deps $automake_flags $files 2>&1 | grep -v \$PHP_OUTPUT_FILES >&2
|
|
||||||
|
|
||||||
|
|
||||||
mv configure configure.old 2>/dev/null
|
|
||||||
autoconf
|
|
||||||
if cmp configure.old configure > /dev/null 2>&1; then
|
|
||||||
echo "buildconf: keeping configure"
|
|
||||||
mv configure.old configure
|
|
||||||
else
|
|
||||||
echo "buildconf: created or modified configure"
|
|
||||||
fi
|
|
||||||
|
|
||||||
if test "$supplied_flag" != "--local"; then
|
|
||||||
(cd libzend; ./buildconf $automake_flags libzend/)
|
|
||||||
(cd TSRM; ./buildconf $automake_flags TSRM/)
|
|
||||||
fi
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue