From 8a8741a1fea40972b6d470b4a1a82915357552ee Mon Sep 17 00:00:00 2001 From: foobar Date: Sat, 1 Dec 2001 00:59:43 +0000 Subject: [PATCH] This makes the configure --help output more readable. --- acinclude.m4 | 9 +++++++++ configure.in | 16 ++++++++++++++++ 2 files changed, 25 insertions(+) diff --git a/acinclude.m4 b/acinclude.m4 index 468fa0e47bb..c63db812b86 100644 --- a/acinclude.m4 +++ b/acinclude.m4 @@ -4,6 +4,15 @@ dnl This file contains local autoconf functions. sinclude(dynlib.m4) +dnl +dnl Separator into the configure --help display. +dnl +AC_DEFUN(PHP_HELP_SEPARATOR,[ +AC_ARG_ENABLE([],[ +$1 +],[]) +]) + dnl dnl PHP_TARGET_RDYNAMIC dnl diff --git a/configure.in b/configure.in index 297091d320e..82a4cf93cfa 100644 --- a/configure.in +++ b/configure.in @@ -141,6 +141,7 @@ sinclude(Zend/Zend.m4) sinclude(TSRM/tsrm.m4) divert(2) +PHP_HELP_SEPARATOR([SAPI modules:]) PTHREADS_CHECK @@ -467,6 +468,7 @@ if test $ac_cv_type_in_addr_t = no; then fi divert(4) +PHP_HELP_SEPARATOR([General settings:]) PHP_ARG_ENABLE(debug, whether to include debugging symbols, [ --enable-debug Compile with debugging symbols.], no) @@ -637,6 +639,17 @@ AC_CHECK_LIB(crypt, crypt, [ ]) divert(5) +PHP_HELP_SEPARATOR([Extensions: + + --with-EXTENSION=[shared[,PATH]] + + NOTE: Not all extensions can be build as 'shared'. + + Example: --with-foobar=shared,/usr/local/foobar/ + + o Builds the foobar extension as shared extension. + o foobar package install prefix is /usr/local/foobar/ +]) PHP_CONFIGURE_PART(Configuring extensions) @@ -645,6 +658,9 @@ esyscmd(./scripts/config-stubs ext) PHP_FAST_OUTPUT(sapi/$PHP_SAPI/Makefile) + +PHP_HELP_SEPARATOR([Other settings:]) + AC_MSG_CHECKING([whether to enable versioning]) AC_ARG_ENABLE(versioning, [ --enable-versioning Export only required symbols.