diff options
author | Sascha Schumann <sas@php.net> | 1999-12-30 02:59:53 +0000 |
---|---|---|
committer | Sascha Schumann <sas@php.net> | 1999-12-30 02:59:53 +0000 |
commit | f2f8d38efa3ccbaa05affaf8fcab24786ef452de (patch) | |
tree | c546807d61a77a191f89056212a4c40c63f0e83b /pear/pear.m4 | |
parent | 6bf3529919cf60389797a107cab16c826df3e68f (diff) | |
download | php-git-f2f8d38efa3ccbaa05affaf8fcab24786ef452de.tar.gz |
Integration of -ng changes. Changes:
- added support for externally built modules,
- improved support for in-tree shared modules,
- fixed diversion bugs,
- configure displays some informative messages,
- faster static build
(libtool isn't used anymore for compiling non-PIC objects),
- dependencies comparable to automake's without requiring GNU make or GCC,
- working make clean for non-GNU makes.
Diffstat (limited to 'pear/pear.m4')
-rw-r--r-- | pear/pear.m4 | 76 |
1 files changed, 76 insertions, 0 deletions
diff --git a/pear/pear.m4 b/pear/pear.m4 new file mode 100644 index 0000000000..fc552e4acb --- /dev/null +++ b/pear/pear.m4 @@ -0,0 +1,76 @@ + +AC_INIT(Makefile.in) + +AC_DEFUN(PHP_WITH_PHP_CONFIG,[ + AC_ARG_WITH(php-config, +[ --with-php-config=[PATH]],[ + PHP_CONFIG=$withval +],[ + PHP_CONFIG=php-config +]) + + prefix=`$PHP_CONFIG --prefix 2>/dev/null` + INCLUDES=`$PHP_CONFIG --includes 2>/dev/null` + + if test -z "$prefix"; then + AC_MSG_ERROR(Cannot find php-config. Please use --with-php-config=[PATH]) + fi + AC_MSG_CHECKING(PHP prefix) + AC_MSG_RESULT($prefix) + AC_MSG_CHECKING(PHP includes) + AC_MSG_RESULT($INCLUDES) +]) + +php_always_shared=yes + +AC_PROG_CC +AC_PROG_CC_C_O + +PHP_WITH_PHP_CONFIG + +AC_PREFIX_DEFAULT() + +sinclude(config.m4) + +enable_static=no +enable_shared=yes + +AC_PROG_LIBTOOL + +SHLIBTOOL='$(LIBTOOL)' +PHP_COMPILE='$(LIBTOOL) --mode=compile $(COMPILE) -c $<' +phplibdir="`pwd`/modules" + +test "$prefix" = "NONE" && prefix="/usr/local" +test "$exec_prefix" = "NONE" && exec_prefix='$(prefix)' + +PHP_SUBST(prefix) +PHP_SUBST(exec_prefix) +PHP_SUBST(libdir) +PHP_SUBST(prefix) +PHP_SUBST(phplibdir) + +PHP_SUBST(PHP_COMPILE) +PHP_SUBST(CC) +PHP_SUBST(CFLAGS) +PHP_SUBST(CPP) +PHP_SUBST(CPPFLAGS) +PHP_SUBST(CXX) +PHP_SUBST(DEFS) +PHP_SUBST(EXTRA_LDFLAGS) +PHP_SUBST(EXTRA_LIBS) +PHP_SUBST(INCLUDES) +PHP_SUBST(LEX) +PHP_SUBST(LEX_OUTPUT_ROOT) +PHP_SUBST(LFLAGS) +PHP_SUBST(SHLIBTOOL) +PHP_SUBST(LIBTOOL) +PHP_SUBST(SHELL) + +PHP_FAST_OUTPUT(Makefile) + +PHP_FAST_GENERATE + +AC_CONFIG_HEADER(php_config.h) + +AC_OUTPUT() |