@@ -531,7 +531,7 @@ dnl -------------------------------------------------------------------------
531
531
PHP_HELP_SEPARATOR([General settings:])
532
532
533
533
PHP_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 )
535
535
536
536
if test "$PHP_DEBUG" = "yes"; then
537
537
PHP_DEBUG=1
543
543
544
544
PHP_ARG_WITH(layout,[layout of installed files],
545
545
[ --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 )
547
547
548
548
case $PHP_LAYOUT in
549
549
GNU)
557
557
PHP_ARG_WITH(config-file-path,[path to configuration file],
558
558
[ --with-config-file-path=PATH
559
559
Sets the path in which to look for php.ini,
560
- defaults to PREFIX/lib], DEFAULT)
560
+ defaults to PREFIX/lib], DEFAULT, no )
561
561
562
562
if test "$PHP_CONFIG_FILE_PATH" = "DEFAULT"; then
563
563
case $PHP_LAYOUT in
577
577
578
578
PHP_ARG_WITH(pear, [whether to install PEAR, and where],
579
579
[ --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 )
581
581
582
582
if test "$PHP_PEAR" != "no" && test "$disable_cli" != "1"; then
583
583
install_pear="install-pear install-build install-headers install-programs"
594
594
test -n "$DEBUG_CFLAGS" && CFLAGS="$CFLAGS $DEBUG_CFLAGS"
595
595
596
596
PHP_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 )
598
598
599
599
if test "$PHP_SAFE_MODE" = "yes"; then
600
600
AC_DEFINE(PHP_SAFE_MODE,1,[ ])
@@ -624,16 +624,8 @@ AC_ARG_WITH(exec-dir,
624
624
AC_MSG_RESULT([/usr/local/php/bin])
625
625
])
626
626
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
-
635
627
PHP_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)
637
629
638
630
if test "$PHP_SIGCHILD" = "yes"; then
639
631
AC_DEFINE(PHP_SIGCHILD, 1, [ ])
642
634
fi
643
635
644
636
PHP_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 )
646
638
647
639
if test "$PHP_MAGIC_QUOTES" = "yes"; then
648
640
AC_DEFINE(MAGIC_QUOTES, 1, [ ])
652
644
653
645
PHP_ARG_ENABLE(rpath, whether to enable runpaths,
654
646
[ --disable-rpath Disable passing additional runtime library
655
- search paths], yes)
647
+ search paths], yes, no )
656
648
657
649
PHP_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 )
659
651
660
652
if test "$PHP_LIBGCC" = "yes"; then
661
653
PHP_LIBGCC_LIBPATH(gcc)
@@ -667,17 +659,16 @@ if test "$PHP_LIBGCC" = "yes"; then
667
659
fi
668
660
669
661
PHP_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 )
671
663
672
664
if test "$PHP_SHORT_TAGS" = "yes"; then
673
665
AC_DEFINE(DEFAULT_SHORT_OPEN_TAG,"1",[ ])
674
666
else
675
667
AC_DEFINE(DEFAULT_SHORT_OPEN_TAG,"0",[ ])
676
668
fi
677
669
678
-
679
670
PHP_ARG_ENABLE(dmalloc,whether to enable dmalloc,
680
- [ --enable-dmalloc Enable dmalloc])
671
+ [ --enable-dmalloc Enable dmalloc], no, no )
681
672
682
673
if test "$PHP_DMALLOC" = "yes"; then
683
674
@@ -691,27 +682,36 @@ if test "$PHP_DMALLOC" = "yes"; then
691
682
fi
692
683
693
684
PHP_ARG_ENABLE(ipv6,whether to enable IPv6 support,
694
- [ --disable-ipv6 Disable IPv6 support],yes)
685
+ [ --disable-ipv6 Disable IPv6 support], yes, no )
695
686
696
687
if test "$PHP_IPV6" != "no" && test "$ac_cv_ipv6_support" = yes; then
697
688
AC_DEFINE(HAVE_IPV6,1,[Whether to enable IPv6 support])
698
689
fi
699
690
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
+
700
704
AC_CHECK_LIB(crypt, crypt, [
701
705
PHP_ADD_LIBRARY(crypt)
702
706
PHP_ADD_LIBRARY(crypt, 1)
703
707
AC_DEFINE(HAVE_CRYPT,1,[ ])
704
708
])
705
709
706
-
707
-
708
710
divert(5)
709
711
710
712
dnl ## In diversion 5 we check which extensions should be compiled.
711
713
dnl ## All of these are normally in the extension directories.
712
714
713
-
714
-
715
715
dnl Extension configuration.
716
716
dnl -------------------------------------------------------------------------
717
717
@@ -729,6 +729,17 @@ PHP_HELP_SEPARATOR([Extensions:
729
729
730
730
PHP_CONFIGURE_PART(Configuring extensions)
731
731
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
+
732
743
# reading config stubs
733
744
esyscmd(./scripts/config-stubs ext)
734
745
0 commit comments