@@ -531,7 +531,7 @@ dnl -------------------------------------------------------------------------
531531PHP_HELP_SEPARATOR([General settings:])
532532
533533PHP_ARG_ENABLE(debug, whether to include debugging symbols,
534- [ --enable-debug Compile with debugging symbols.], no)
534+ [ --enable-debug Compile with debugging symbols.], no, no )
535535
536536if test "$PHP_DEBUG" = "yes"; then
537537 PHP_DEBUG=1
543543
544544PHP_ARG_WITH(layout,[layout of installed files],
545545[ --with-layout=TYPE Sets how installed files will be laid out. Type is
546- one of "PHP" (default) or "GNU"], PHP)
546+ one of "PHP" (default) or "GNU"], PHP, no )
547547
548548case $PHP_LAYOUT in
549549 GNU)
557557PHP_ARG_WITH(config-file-path,[path to configuration file],
558558[ --with-config-file-path=PATH
559559 Sets the path in which to look for php.ini,
560- defaults to PREFIX/lib], DEFAULT)
560+ defaults to PREFIX/lib], DEFAULT, no )
561561
562562if test "$PHP_CONFIG_FILE_PATH" = "DEFAULT"; then
563563 case $PHP_LAYOUT in
577577
578578PHP_ARG_WITH(pear, [whether to install PEAR, and where],
579579[ --with-pear=DIR Install PEAR in DIR (default PREFIX/lib/php)
580- --without-pear Do not install PEAR], DEFAULT)
580+ --without-pear Do not install PEAR], DEFAULT, no )
581581
582582if test "$PHP_PEAR" != "no" && test "$disable_cli" != "1"; then
583583 install_pear="install-pear install-build install-headers install-programs"
594594test -n "$DEBUG_CFLAGS" && CFLAGS="$CFLAGS $DEBUG_CFLAGS"
595595
596596PHP_ARG_ENABLE(safe-mode, whether to enable safe mode by default,
597- [ --enable-safe-mode Enable safe mode by default.])
597+ [ --enable-safe-mode Enable safe mode by default.], no, no )
598598
599599if test "$PHP_SAFE_MODE" = "yes"; then
600600 AC_DEFINE(PHP_SAFE_MODE,1,[ ])
@@ -624,16 +624,8 @@ AC_ARG_WITH(exec-dir,
624624 AC_MSG_RESULT([/usr/local/php/bin])
625625])
626626
627- PHP_ARG_WITH(openssl,for OpenSSL support,
628- [ --with-openssl[=DIR] Include OpenSSL support (requires OpenSSL >= 0.9.5) ])
629-
630- if test "$PHP_OPENSSL" != "no"; then
631- ext_openssl_shared=$ext_shared
632- PHP_SETUP_OPENSSL
633- fi
634-
635627PHP_ARG_ENABLE(sigchild,whether to enable PHP' s own SIGCHLD handler,
636- [ --enable-sigchild Enable PHP' s own SIGCHLD handler.],no)
628+ [ --enable-sigchild Enable PHP' s own SIGCHLD handler.], no, no)
637629
638630if test "$PHP_SIGCHILD" = "yes"; then
639631 AC_DEFINE(PHP_SIGCHILD, 1, [ ])
642634fi
643635
644636PHP_ARG_ENABLE(magic-quotes,whether to enable magic quotes by default,
645- [ --enable-magic-quotes Enable magic quotes by default.])
637+ [ --enable-magic-quotes Enable magic quotes by default.], no, no )
646638
647639if test "$PHP_MAGIC_QUOTES" = "yes"; then
648640 AC_DEFINE(MAGIC_QUOTES, 1, [ ])
652644
653645PHP_ARG_ENABLE(rpath, whether to enable runpaths,
654646[ --disable-rpath Disable passing additional runtime library
655- search paths], yes)
647+ search paths], yes, no )
656648
657649PHP_ARG_ENABLE(libgcc, whether to explicitly link against libgcc,
658- [ --enable-libgcc Enable explicitly linking against libgcc])
650+ [ --enable-libgcc Enable explicitly linking against libgcc], no, no )
659651
660652if test "$PHP_LIBGCC" = "yes"; then
661653 PHP_LIBGCC_LIBPATH(gcc)
@@ -667,17 +659,16 @@ if test "$PHP_LIBGCC" = "yes"; then
667659fi
668660
669661PHP_ARG_ENABLE(short-tags,whether to enable short tags by default,
670- [ --disable-short-tags Disable the short-form <? start tag by default.],yes)
662+ [ --disable-short-tags Disable the short-form <? start tag by default.],yes, no )
671663
672664if test "$PHP_SHORT_TAGS" = "yes"; then
673665 AC_DEFINE(DEFAULT_SHORT_OPEN_TAG,"1",[ ])
674666else
675667 AC_DEFINE(DEFAULT_SHORT_OPEN_TAG,"0",[ ])
676668fi
677669
678-
679670PHP_ARG_ENABLE(dmalloc,whether to enable dmalloc,
680- [ --enable-dmalloc Enable dmalloc])
671+ [ --enable-dmalloc Enable dmalloc], no, no )
681672
682673if test "$PHP_DMALLOC" = "yes"; then
683674
@@ -691,27 +682,36 @@ if test "$PHP_DMALLOC" = "yes"; then
691682fi
692683
693684PHP_ARG_ENABLE(ipv6,whether to enable IPv6 support,
694- [ --disable-ipv6 Disable IPv6 support],yes)
685+ [ --disable-ipv6 Disable IPv6 support], yes, no )
695686
696687if test "$PHP_IPV6" != "no" && test "$ac_cv_ipv6_support" = yes; then
697688 AC_DEFINE(HAVE_IPV6,1,[Whether to enable IPv6 support])
698689fi
699690
691+
692+ dnl
693+ dnl OpenSSL configure
694+ dnl
695+ PHP_ARG_WITH(openssl,for OpenSSL support,
696+ [ --with-openssl[=DIR] Include OpenSSL support (requires OpenSSL >= 0.9.5) ])
697+
698+ if test "$PHP_OPENSSL" != "no"; then
699+ ext_openssl_shared=$ext_shared
700+ PHP_SETUP_OPENSSL
701+ fi
702+
703+
700704AC_CHECK_LIB(crypt, crypt, [
701705 PHP_ADD_LIBRARY(crypt)
702706 PHP_ADD_LIBRARY(crypt, 1)
703707 AC_DEFINE(HAVE_CRYPT,1,[ ])
704708])
705709
706-
707-
708710divert(5)
709711
710712dnl ## In diversion 5 we check which extensions should be compiled.
711713dnl ## All of these are normally in the extension directories.
712714
713-
714-
715715dnl Extension configuration.
716716dnl -------------------------------------------------------------------------
717717
@@ -729,6 +729,17 @@ PHP_HELP_SEPARATOR([Extensions:
729729
730730PHP_CONFIGURE_PART(Configuring extensions)
731731
732+ dnl
733+ dnl Check if all enabled by default extensions should be disabled
734+ dnl
735+
736+ AC_ARG_ENABLE(all,
737+ [ --disable-all Disable all extensions enabled by default.
738+ --enable-all Enable all extensions.
739+ ], [
740+ PHP_ENABLE_ALL=$enableval
741+ ])
742+
732743# reading config stubs
733744esyscmd(./scripts/config-stubs ext)
734745
0 commit comments