Add AS_HELP_STRING to config.m4

This beautifies and simplifies the configure help output a bit.
This commit is contained in:
Peter Kokot
2019-04-24 18:30:25 +02:00
parent 603515394c
commit 848a5aa23e

View File

@@ -1,11 +1,10 @@
PHP_ARG_ENABLE(uploadprogress, whether to enable uploadprogress functions,
[ --enable-uploadprogress Disable uploadprogress support])
PHP_ARG_ENABLE([uploadprogress],
[whether to enable uploadprogress functions],
[AS_HELP_STRING([--enable-uploadprogress],
[Enable uploadprogress support [default=yes]])])
if test "$PHP_UPLOADPROGRESS" != "no"; then
PHP_SUBST(UPLOADPROGRESS_SHARED_LIBADD)
AC_DEFINE(HAVE_UPLOADPROGRESS, 1, [ ])
AC_DEFINE(HAVE_UPLOADPROGRESS, 1, [Whether the uploadprogress extension is enabled])
PHP_NEW_EXTENSION(uploadprogress, uploadprogress.c , $ext_shared)
fi