Skip to content

Commit

Permalink
Adding the ability to override the autotools executables used by the
Browse files Browse the repository at this point in the history
buildconf script via the PHP_AUTOCONF and PHP_AUTOHEADER environmental
variables.
  • Loading branch information
jparise committed Apr 4, 2005
1 parent b30fd67 commit 3ac5ec3
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 4 deletions.
2 changes: 2 additions & 0 deletions NEWS
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ PHP NEWS
. added spl_autoload*() functions
. converted several 5.0 examples into c code
. added class File
- Added the ability to override the autotools executables used by the buildconf
script via the PHP_AUTOCONF and PHP_AUTOHEADER environmental variables. (Jon)
- Added several new functions to support the PostgreSQL v3 protocol introduced
in PostgreSQL 7.4. (Christopher)
. pg_transaction_status() - in-transaction status of a database connection.
Expand Down
7 changes: 5 additions & 2 deletions build/build2.mk
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,9 @@ acconfig_h_SOURCES = acconfig.h.in $(config_h_files)

targets = $(TOUCH_FILES) configure $(config_h_in)

PHP_AUTOCONF ?= 'autoconf'
PHP_AUTOHEADER ?= 'autoheader'

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)

all: $(targets)
Expand All @@ -45,7 +48,7 @@ $(config_h_in): configure acconfig.h
# correctly otherwise (timestamps are not updated)
@echo rebuilding $@
@rm -f $@
autoheader $(SUPPRESS_WARNINGS)
$(PHP_AUTOHEADER) $(SUPPRESS_WARNINGS)

$(TOUCH_FILES):
touch $(TOUCH_FILES)
Expand All @@ -56,5 +59,5 @@ aclocal.m4: configure.in acinclude.m4

configure: aclocal.m4 configure.in $(config_m4_files)
@echo rebuilding $@
autoconf $(SUPPRESS_WARNINGS)
$(PHP_AUTOCONF) $(SUPPRESS_WARNINGS)

9 changes: 7 additions & 2 deletions build/buildcheck.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,20 @@
# | Sascha Schumann <[email protected]> |
# +----------------------------------------------------------------------+
#
# $Id: buildcheck.sh,v 1.34 2005-01-20 01:41:19 sniper Exp $
# $Id: buildcheck.sh,v 1.35 2005-04-04 07:16:01 jon Exp $
#

echo "buildconf: checking installation..."

stamp=$1

# Allow the autoconf executable to be overriden by $PHP_AUTOCONF.
if test -z "$PHP_AUTOCONF"; then
PHP_AUTOCONF='autoconf'
fi

# autoconf 2.13 or newer
ac_version=`autoconf --version 2>/dev/null|head -n 1|sed -e 's/^[^0-9]*//' -e 's/[a-z]* *$//'`
ac_version=`$PHP_AUTOCONF --version 2>/dev/null|head -n 1|sed -e 's/^[^0-9]*//' -e 's/[a-z]* *$//'`
if test -z "$ac_version"; then
echo "buildconf: autoconf not found."
echo " You need autoconf version 2.13 or newer installed"
Expand Down

0 comments on commit 3ac5ec3

Please sign in to comment.