summaryrefslogtreecommitdiff
path: root/ext/mysqlnd
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 /ext/mysqlnd
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 'ext/mysqlnd')
-rw-r--r--ext/mysqlnd/config9.m429
1 files changed, 20 insertions, 9 deletions
diff --git a/ext/mysqlnd/config9.m4 b/ext/mysqlnd/config9.m4
index 573190fa43..e0e2da602d 100644
--- a/ext/mysqlnd/config9.m4
+++ b/ext/mysqlnd/config9.m4
@@ -1,16 +1,27 @@
dnl config.m4 for mysqlnd driver
-PHP_ARG_ENABLE(mysqlnd, whether to enable mysqlnd,
- [ --enable-mysqlnd Enable mysqlnd explicitly, will be done implicitly
- when required by other extensions], no, yes)
-
-PHP_ARG_ENABLE(mysqlnd_compression_support, whether to disable compressed protocol support in mysqlnd,
-[ --disable-mysqlnd-compression-support
- Disable support for the MySQL compressed protocol in mysqlnd], yes, no)
+PHP_ARG_ENABLE([mysqlnd],
+ [whether to enable mysqlnd],
+ [AS_HELP_STRING([--enable-mysqlnd],
+ [Enable mysqlnd explicitly, will be done implicitly when required by other
+ extensions])],
+ [no],
+ [yes])
+
+PHP_ARG_ENABLE([mysqlnd_compression_support],
+ [whether to disable compressed protocol support in mysqlnd],
+ [AS_HELP_STRING([--disable-mysqlnd-compression-support],
+ [Disable support for the MySQL compressed protocol in mysqlnd])],
+ [yes],
+ [no])
if test -z "$PHP_ZLIB_DIR"; then
- PHP_ARG_WITH(zlib-dir, for the location of libz,
- [ --with-zlib-dir[=DIR] mysqlnd: Set the path to libz install prefix], no, no)
+ PHP_ARG_WITH([zlib-dir],
+ [for the location of libz],
+ [AS_HELP_STRING([[--with-zlib-dir[=DIR]]],
+ [mysqlnd: Set the path to libz install prefix])],
+ [no],
+ [no])
fi
dnl If some extension uses mysqlnd it will get compiled in PHP core