summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorPeter Kokot <peterkokot@gmail.com>2019-03-03 16:44:16 +0100
committerPeter Kokot <peterkokot@gmail.com>2019-03-07 20:36:59 +0100
commit9df6a1e4dd84a39bfaec70d7d008b61f7bbae347 (patch)
treee2fab1605436e20d798d7b8c17ec84aa8c28d25b /scripts
parent2580a7ba092b4ed9f4a9860d911e2e17ec545ef5 (diff)
downloadphp-git-9df6a1e4dd84a39bfaec70d7d008b61f7bbae347.tar.gz
Add AS_HELP_STRING to *nix build configure options
The Autoconf's default AS_HELP_STRING macro can properly format help strings [1] so watching out if columns are aligned manually is not anymore. [1] https://www.gnu.org/software/autoconf/manual/autoconf.html#Pretty-Help-Strings
Diffstat (limited to 'scripts')
-rw-r--r--scripts/phpize.m415
1 files changed, 11 insertions, 4 deletions
diff --git a/scripts/phpize.m4 b/scripts/phpize.m4
index 6af13982cd..76559d0c87 100644
--- a/scripts/phpize.m4
+++ b/scripts/phpize.m4
@@ -28,15 +28,22 @@ PHP_DETECT_ICC
PHP_DETECT_SUNCC
dnl Support systems with system libraries in e.g. /usr/lib64
-PHP_ARG_WITH(libdir, for system library directory,
-[ --with-libdir=NAME Look for libraries in .../NAME rather than .../lib], lib, no)
+PHP_ARG_WITH([libdir],
+ [for system library directory],
+ [AS_HELP_STRING([--with-libdir=NAME],
+ [Look for libraries in .../NAME rather than .../lib])],
+ [lib],
+ [no])
PHP_RUNPATH_SWITCH
PHP_SHLIB_SUFFIX_NAMES
dnl Find php-config script
-PHP_ARG_WITH(php-config,,
-[ --with-php-config=PATH Path to php-config [php-config]], php-config, no)
+PHP_ARG_WITH([php-config],,
+ [AS_HELP_STRING([--with-php-config=PATH],
+ [Path to php-config [php-config]])],
+ [php-config],
+ [no])
dnl For BC
PHP_CONFIG=$PHP_PHP_CONFIG