mirror of
https://github.com/webmproject/libwebp.git
synced 2024-12-25 13:18:22 +01:00
configure: AC_ARG_* use AS_HELP_STRING
properly formats --help output Change-Id: I18fad9039400df8415ef192a41c0295019c52775
This commit is contained in:
parent
231ec1fb6d
commit
bfbcc60a18
27
configure.ac
27
configure.ac
@ -11,8 +11,8 @@ dnl === If an older aclocal exits with an error comment these lines out.
|
||||
m4_define_default([AM_SILENT_RULES], [])
|
||||
AM_SILENT_RULES
|
||||
|
||||
AC_ARG_WITH([pkgconfigdir], AS_HELP_STRING([--with-pkgconfigdir=PATH],
|
||||
[Path to the pkgconfig directory [[LIBDIR/pkgconfig]]]),
|
||||
AC_ARG_WITH([pkgconfigdir], AS_HELP_STRING([--with-pkgconfigdir=DIR],
|
||||
[Path to the pkgconfig directory @<:@LIBDIR/pkgconfig@:>@]),
|
||||
[pkgconfigdir="$withval"], [pkgconfigdir='${libdir}/pkgconfig'])
|
||||
AC_SUBST([pkgconfigdir])
|
||||
|
||||
@ -34,11 +34,13 @@ if test -n "$LIBPNG_CONFIG"; then
|
||||
fi
|
||||
fi
|
||||
|
||||
AC_ARG_WITH(pngincludedir,
|
||||
[--with-pngincludedir=DIR use PNG includes from DIR],
|
||||
AC_ARG_WITH([pngincludedir],
|
||||
AS_HELP_STRING([--with-pngincludedir=DIR],
|
||||
[use PNG includes from DIR]),
|
||||
PNG_INCLUDES="-I$withval")
|
||||
AC_ARG_WITH(pnglibdir,
|
||||
[--with-pnglibdir=DIR use PNG libraries from DIR],
|
||||
AC_ARG_WITH([pnglibdir],
|
||||
AS_HELP_STRING([--with-pnglibdir=DIR],
|
||||
[use PNG libraries from DIR]),
|
||||
[PNG_LIBS="-L$withval"])
|
||||
|
||||
SAVED_CPPFLAGS=$CPPFLAGS
|
||||
@ -66,11 +68,13 @@ dnl === check for JPEG support ===
|
||||
|
||||
JPEG_INCLUDES=""
|
||||
JPEG_LIBS=""
|
||||
AC_ARG_WITH(jpegincludedir,
|
||||
[--with-jpegincludedir=DIR use JPEG includes from DIR],
|
||||
AC_ARG_WITH([jpegincludedir],
|
||||
[AS_HELP_STRING([--with-jpegincludedir=DIR],
|
||||
[use JPEG includes from DIR])],
|
||||
JPEG_INCLUDES="-I$withval")
|
||||
AC_ARG_WITH(jpeglibdir,
|
||||
[--with-jpeglibdir=DIR use JPEG libraries from DIR],
|
||||
AC_ARG_WITH([jpeglibdir],
|
||||
AS_HELP_STRING([--with-jpeglibdir=DIR],
|
||||
[use JPEG libraries from DIR]),
|
||||
[JPEG_LIBS="-L$withval"])
|
||||
|
||||
SAVED_CPPFLAGS=$CPPFLAGS
|
||||
@ -141,7 +145,8 @@ dnl === If --enable-experimental is defined, add the flag WEBP_EXPERIMENTAL_FEAT
|
||||
|
||||
USE_EXPERIMENTAL_CODE=""
|
||||
AC_MSG_CHECKING(if --enable-experimental option is specified)
|
||||
AC_ARG_ENABLE(experimental, [ --enable-experimental Activate experimental features])
|
||||
AC_ARG_ENABLE([experimental], AS_HELP_STRING([--enable-experimental],
|
||||
[Activate experimental features]))
|
||||
if test "$enable_experimental" = "yes"; then
|
||||
AC_DEFINE(EXPERIMENTAL,,[Enable experimental code])
|
||||
USE_EXPERIMENTAL_CODE="-DWEBP_EXPERIMENTAL_FEATURES"
|
||||
|
Loading…
Reference in New Issue
Block a user