@@ -179,12 +179,19 @@ AC_USE_SYSTEM_EXTENSIONS
179
179
AC_PROG_LN_S
180
180
181
181
dnl Support systems with system libraries in e.g. /usr/lib64
182
- PHP_ARG_WITH(libdir, for system library directory,
183
- [ --with-libdir=NAME Look for libraries in .../NAME rather than .../lib] ,lib,no)
184
-
185
- PHP_ARG_ENABLE(rpath, whether to enable runpaths,
186
- [ --disable-rpath Disable passing additional runtime library
187
- search paths] , yes, no)
182
+ PHP_ARG_WITH([ libdir] ,
183
+ [ for system library directory] ,
184
+ [ AS_HELP_STRING ( [ --with-libdir=NAME] ,
185
+ [ Look for libraries in .../NAME rather than .../lib] ) ] ,
186
+ [ lib] ,
187
+ [ no] )
188
+
189
+ PHP_ARG_ENABLE([ rpath] ,
190
+ [ whether to enable runpaths] ,
191
+ [ AS_HELP_STRING ( [ --disable-rpath] ,
192
+ [ Disable passing additional runtime library search paths] ) ] ,
193
+ [ yes] ,
194
+ [ no] )
188
195
189
196
dnl check for -R, etc. switch
190
197
PHP_RUNPATH_SWITCH
@@ -203,8 +210,12 @@ case $php_cv_bison_version in
203
210
;;
204
211
esac
205
212
206
- PHP_ARG_ENABLE(re2c-cgoto, whether to enable computed goto gcc extension with re2c,
207
- [ --enable-re2c-cgoto Enable -g flag to re2c to use computed goto gcc extension] , no, no)
213
+ PHP_ARG_ENABLE([ re2c-cgoto] ,
214
+ [ whether to enable computed goto gcc extension with re2c] ,
215
+ [ AS_HELP_STRING ( [ --enable-re2c-cgoto] ,
216
+ [ Enable -g flag to re2c to use computed goto gcc extension] ) ] ,
217
+ [ no] ,
218
+ [ no] )
208
219
209
220
if test "$PHP_RE2C_CGOTO" = "no"; then
210
221
RE2C_FLAGS=""
@@ -763,8 +774,12 @@ if test "$ac_cv__compiler_c99_vla" = yes; then
763
774
fi
764
775
765
776
dnl Check valgrind support
766
- PHP_ARG_WITH(valgrind, [ whether to enable valgrind support] ,
767
- [ --with-valgrind=DIR Enable valgrind support] , yes, no)
777
+ PHP_ARG_WITH([ valgrind] ,
778
+ [ whether to enable valgrind support] ,
779
+ [ AS_HELP_STRING ( [ --with-valgrind=DIR] ,
780
+ [ Enable valgrind support] ) ] ,
781
+ [ yes] ,
782
+ [ no] )
768
783
769
784
if test "$PHP_VALGRIND" != "no"; then
770
785
@@ -798,8 +813,12 @@ PHP_CONFIGURE_PART(General settings)
798
813
799
814
PHP_HELP_SEPARATOR([ General settings:] )
800
815
801
- PHP_ARG_ENABLE(gcov, whether to include gcov symbols,
802
- [ --enable-gcov Enable GCOV code coverage (requires LTP) - FOR DEVELOPERS ONLY!!] , no, no)
816
+ PHP_ARG_ENABLE([ gcov] ,
817
+ [ whether to include gcov symbols] ,
818
+ [ AS_HELP_STRING ( [ --enable-gcov] ,
819
+ [ Enable GCOV code coverage (requires LTP) - FOR DEVELOPERS ONLY!!] ) ] ,
820
+ [ no] ,
821
+ [ no] )
803
822
804
823
if test "$PHP_GCOV" = "yes"; then
805
824
@@ -879,8 +898,12 @@ if test "$PHP_GCOV" = "yes"; then
879
898
CXXFLAGS="$CXXFLAGS -O0 -fprofile-arcs -ftest-coverage"
880
899
fi
881
900
882
- PHP_ARG_ENABLE(debug, whether to include debugging symbols,
883
- [ --enable-debug Compile with debugging symbols] , no, no)
901
+ PHP_ARG_ENABLE([ debug] ,
902
+ [ whether to include debugging symbols] ,
903
+ [ AS_HELP_STRING ( [ --enable-debug] ,
904
+ [ Compile with debugging symbols] ) ] ,
905
+ [ no] ,
906
+ [ no] )
884
907
885
908
if test "$PHP_DEBUG" = "yes"; then
886
909
PHP_DEBUG=1
@@ -908,9 +931,12 @@ else
908
931
ZEND_DEBUG=no
909
932
fi
910
933
911
- PHP_ARG_WITH(layout, layout of installed files,
912
- [ --with-layout=TYPE Set how installed files will be laid out. Type can
913
- be either PHP or GNU @<:@ PHP@:>@ ] , PHP, no)
934
+ PHP_ARG_WITH([ layout] ,
935
+ [ layout of installed files] ,
936
+ [ AS_HELP_STRING ( [ --with-layout=TYPE] ,
937
+ [ Set how installed files will be laid out. Type can be either PHP or GNU [ PHP] ] ) ] ,
938
+ [ PHP] ,
939
+ [ no] )
914
940
915
941
case $PHP_LAYOUT in
916
942
GNU)
@@ -921,9 +947,12 @@ case $PHP_LAYOUT in
921
947
;;
922
948
esac
923
949
924
- PHP_ARG_WITH(config-file-path, path to configuration file,
925
- [ --with-config-file-path=PATH
926
- Set the path in which to look for php.ini @<:@ PREFIX/lib@:>@ ] , DEFAULT, no)
950
+ PHP_ARG_WITH([ config-file-path] ,
951
+ [ path to configuration file] ,
952
+ [ AS_HELP_STRING ( [ --with-config-file-path=PATH] ,
953
+ [ Set the path in which to look for php.ini [ PREFIX/lib] ] ) ] ,
954
+ [ DEFAULT] ,
955
+ [ no] )
927
956
928
957
if test "$PHP_CONFIG_FILE_PATH" = "DEFAULT"; then
929
958
case $PHP_LAYOUT in
@@ -937,27 +966,38 @@ if test "$PHP_CONFIG_FILE_PATH" = "DEFAULT"; then
937
966
fi
938
967
939
968
AC_MSG_CHECKING ( [ where to scan for configuration files] )
940
- PHP_ARG_WITH(config-file-scan-dir,,
941
- [ --with-config-file-scan-dir=PATH
942
- Set the path where to scan for configuration files] , DEFAULT, no)
969
+ PHP_ARG_WITH([ config-file-scan-dir] ,,
970
+ [ AS_HELP_STRING ( [ --with-config-file-scan-dir=PATH] ,
971
+ [ Set the path where to scan for configuration files] ) ] ,
972
+ [ DEFAULT] ,
973
+ [ no] )
974
+
943
975
if test "$PHP_CONFIG_FILE_SCAN_DIR" = "DEFAULT"; then
944
976
PHP_CONFIG_FILE_SCAN_DIR=
945
977
fi
946
978
AC_MSG_RESULT ( [ $PHP_CONFIG_FILE_SCAN_DIR] )
947
979
948
980
test -n "$DEBUG_CFLAGS" && CFLAGS="$CFLAGS $DEBUG_CFLAGS"
949
981
950
- PHP_ARG_ENABLE(sigchild, whether to enable PHP's own SIGCHLD handler,
951
- [ --enable-sigchild Enable PHP's own SIGCHLD handler] , no, no)
982
+ PHP_ARG_ENABLE([ sigchild] ,
983
+ [ whether to enable PHP's own SIGCHLD handler] ,
984
+ [ AS_HELP_STRING ( [ --enable-sigchild] ,
985
+ [ Enable PHP's own SIGCHLD handler] ) ] ,
986
+ [ no] ,
987
+ [ no] )
952
988
953
989
if test "$PHP_SIGCHILD" = "yes"; then
954
990
AC_DEFINE ( PHP_SIGCHILD , 1 , [ ] )
955
991
else
956
992
AC_DEFINE ( PHP_SIGCHILD , 0 , [ ] )
957
993
fi
958
994
959
- PHP_ARG_ENABLE(libgcc, whether to explicitly link against libgcc,
960
- [ --enable-libgcc Enable explicitly linking against libgcc] , no, no)
995
+ PHP_ARG_ENABLE([ libgcc] ,
996
+ [ whether to explicitly link against libgcc] ,
997
+ [ AS_HELP_STRING ( [ --enable-libgcc] ,
998
+ [ Enable explicitly linking against libgcc] ) ] ,
999
+ [ no] ,
1000
+ [ no] )
961
1001
962
1002
if test "$PHP_LIBGCC" = "yes"; then
963
1003
PHP_LIBGCC_LIBPATH(gcc)
@@ -968,17 +1008,25 @@ if test "$PHP_LIBGCC" = "yes"; then
968
1008
PHP_ADD_LIBRARY(gcc, yes)
969
1009
fi
970
1010
971
- PHP_ARG_ENABLE(short-tags, whether to enable short tags by default,
972
- [ --disable-short-tags Disable the short-form <? start tag by default] , yes, no)
1011
+ PHP_ARG_ENABLE([ short-tags] ,
1012
+ [ whether to enable short tags by default] ,
1013
+ [ AS_HELP_STRING ( [ --disable-short-tags] ,
1014
+ [ Disable the short-form <? start tag by default] ) ] ,
1015
+ [ yes] ,
1016
+ [ no] )
973
1017
974
1018
if test "$PHP_SHORT_TAGS" = "yes"; then
975
1019
AC_DEFINE ( DEFAULT_SHORT_OPEN_TAG , "1" , [ ] )
976
1020
else
977
1021
AC_DEFINE ( DEFAULT_SHORT_OPEN_TAG , "0" , [ ] )
978
1022
fi
979
1023
980
- PHP_ARG_ENABLE(dmalloc, whether to enable dmalloc,
981
- [ --enable-dmalloc Enable dmalloc] , no, no)
1024
+ PHP_ARG_ENABLE([ dmalloc] ,
1025
+ [ whether to enable dmalloc] ,
1026
+ [ AS_HELP_STRING ( [ --enable-dmalloc] ,
1027
+ [ Enable dmalloc] ) ] ,
1028
+ [ no] ,
1029
+ [ no] )
982
1030
983
1031
if test "$PHP_DMALLOC" = "yes"; then
984
1032
AC_CHECK_LIB ( dmalloc , dmalloc_error , [
@@ -990,8 +1038,12 @@ if test "$PHP_DMALLOC" = "yes"; then
990
1038
] )
991
1039
fi
992
1040
993
- PHP_ARG_ENABLE(ipv6, whether to enable IPv6 support,
994
- [ --disable-ipv6 Disable IPv6 support] , yes, no)
1041
+ PHP_ARG_ENABLE([ ipv6] ,
1042
+ [ whether to enable IPv6 support] ,
1043
+ [ AS_HELP_STRING ( [ --disable-ipv6] ,
1044
+ [ Disable IPv6 support] ) ] ,
1045
+ [ yes] ,
1046
+ [ no] )
995
1047
996
1048
if test "$PHP_IPV6" != "no" && test "$ac_cv_ipv6_support" = yes; then
997
1049
AC_DEFINE ( HAVE_IPV6 , 1 , [ Whether to enable IPv6 support] )
@@ -1001,8 +1053,12 @@ dnl ##
1001
1053
dnl ## DTRACE CHECKS
1002
1054
dnl ## Note: this has to be done after SAPI configuration!
1003
1055
dnl ##
1004
- PHP_ARG_ENABLE(dtrace, whether to enable DTrace support,
1005
- [ --enable-dtrace Enable DTrace support] , no, no)
1056
+ PHP_ARG_ENABLE([ dtrace] ,
1057
+ [ whether to enable DTrace support] ,
1058
+ [ AS_HELP_STRING ( [ --enable-dtrace] ,
1059
+ [ Enable DTrace support] ) ] ,
1060
+ [ no] ,
1061
+ [ no] )
1006
1062
1007
1063
if test "$PHP_DTRACE" = "yes"; then
1008
1064
AC_CHECK_HEADERS ( [ sys/sdt.h] , [
@@ -1017,8 +1073,11 @@ if test "$PHP_DTRACE" = "yes"; then
1017
1073
fi
1018
1074
1019
1075
AC_MSG_CHECKING ( [ how big to make fd sets] )
1020
- PHP_ARG_ENABLE(fd-setsize,,
1021
- [ --enable-fd-setsize Set size of descriptor sets] , no, no)
1076
+ PHP_ARG_ENABLE([ fd-setsize] ,,
1077
+ [ AS_HELP_STRING ( [ --enable-fd-setsize] ,
1078
+ [ Set size of descriptor sets] ) ] ,
1079
+ [ no] ,
1080
+ [ no] )
1022
1081
1023
1082
if test "$PHP_FD_SETSIZE" != "no"; then
1024
1083
if test "0$PHP_FD_SETSIZE" -gt 0 2>/dev/null; then
@@ -1052,11 +1111,10 @@ dnl
1052
1111
dnl Check if all enabled by default extensions should be disabled
1053
1112
dnl
1054
1113
1055
- AC_ARG_ENABLE ( all ,
1056
- [ --disable-all Disable all extensions which are enabled by default
1057
- ] , [
1058
- PHP_ENABLE_ALL=$enableval
1059
- ] )
1114
+ AC_ARG_ENABLE ( [ all] ,
1115
+ [ AS_HELP_STRING ( [ --disable-all] ,
1116
+ [ Disable all extensions which are enabled by default] ) ] ,
1117
+ [ PHP_ENABLE_ALL=$enableval] )
1060
1118
1061
1119
# reading config stubs
1062
1120
esyscmd ( ./build/config-stubs ext )
@@ -1114,8 +1172,12 @@ if test "$PHP_CLI" = "no"; then
1114
1172
with_pear=no
1115
1173
fi
1116
1174
1117
- PHP_ARG_WITH(pear, [ whether to install PEAR] ,
1118
- [ --with-pear=DIR Install PEAR in DIR @<:@ PREFIX/lib/php@:>@ ] , no, yes)
1175
+ PHP_ARG_WITH([ pear] ,
1176
+ [ whether to install PEAR] ,
1177
+ [ AS_HELP_STRING ( [ [ --with-pear[ =DIR] ] ] ,
1178
+ [ Install PEAR in DIR [ PREFIX/lib/php] ] ) ] ,
1179
+ [ no] ,
1180
+ [ yes] )
1119
1181
1120
1182
if test "$PHP_PEAR" != "no"; then
1121
1183
0 commit comments