diff options
Diffstat (limited to 'scripts/phpize.m4')
| -rw-r--r-- | scripts/phpize.m4 | 33 |
1 files changed, 25 insertions, 8 deletions
diff --git a/scripts/phpize.m4 b/scripts/phpize.m4 index a37ea018db..bcd66df6f3 100644 --- a/scripts/phpize.m4 +++ b/scripts/phpize.m4 @@ -1,8 +1,19 @@ dnl This file becomes configure.ac for self-contained extensions. +dnl Include external macro definitions before the AC_INIT to also remove +dnl comments starting with # and empty newlines from the included files. +m4_include([build/ax_check_compile_flag.m4]) +m4_include([build/ax_gcc_func_attribute.m4]) +m4_include([build/libtool.m4]) +m4_include([build/php_cxx_compile_stdcxx.m4]) +m4_include([build/php.m4]) +m4_include([build/pkg.m4]) + AC_PREREQ([2.68]) -AC_INIT(config.m4) -ifdef([AC_PRESERVE_HELP_ORDER], [AC_PRESERVE_HELP_ORDER], []) +AC_INIT +AC_CONFIG_SRCDIR([config.m4]) +AC_CONFIG_AUX_DIR([build]) +AC_PRESERVE_HELP_ORDER PHP_CONFIG_NICE(config.nice) @@ -22,21 +33,28 @@ test -z "$CFLAGS" && auto_cflags=1 abs_srcdir=`(cd $srcdir && pwd)` abs_builddir=`pwd` +PKG_PROG_PKG_CONFIG AC_PROG_CC([cc gcc]) PHP_DETECT_ICC PHP_DETECT_SUNCC -AC_PROG_CC_C_O dnl Support systems with system libraries in e.g. /usr/lib64 -PHP_ARG_WITH(libdir, for system library directory, -[ --with-libdir=NAME Look for libraries in .../NAME rather than .../lib], lib, no) +PHP_ARG_WITH([libdir], + [for system library directory], + [AS_HELP_STRING([--with-libdir=NAME], + [Look for libraries in .../NAME rather than .../lib])], + [lib], + [no]) PHP_RUNPATH_SWITCH PHP_SHLIB_SUFFIX_NAMES dnl Find php-config script -PHP_ARG_WITH(php-config,, -[ --with-php-config=PATH Path to php-config [php-config]], php-config, no) +PHP_ARG_WITH([php-config],, + [AS_HELP_STRING([--with-php-config=PATH], + [Path to php-config [php-config]])], + [php-config], + [no]) dnl For BC PHP_CONFIG=$PHP_PHP_CONFIG @@ -130,7 +148,6 @@ dnl Always shared PHP_BUILD_SHARED dnl Required programs -PHP_PROG_RE2C PHP_PROG_AWK sinclude(config.m4) |
