update obsolete autoconf constructs

Part of #447.

* configure.ac, m4/debug.m4, m4/devel.m4, m4/gccoptim.m4,
m4/ndebug.m4: Replace AC_ERROR and AC_HELP_STRING by
by AC_MSG_ERROR and AS_HELP_STRING.
This commit is contained in:
Alexandre Duret-Lutz 2021-01-12 16:11:12 +01:00
parent e497ee26dd
commit e076645382
5 changed files with 12 additions and 12 deletions

View file

@ -1,6 +1,6 @@
AC_DEFUN([adl_ENABLE_DEBUG],
[AC_ARG_ENABLE([debug],
[AC_HELP_STRING([--enable-debug],[enable debugging symbols])])
[AS_HELP_STRING([--enable-debug],[enable debugging symbols])])
case "${enable_debug}" in
yes)
AC_DEFINE([DEBUG],1,[Define if you want debugging code.])

View file

@ -1,6 +1,6 @@
AC_DEFUN([adl_ENABLE_DEVEL],
[AC_ARG_ENABLE([devel],
[AC_HELP_STRING([--enable-devel],
[AS_HELP_STRING([--enable-devel],
[turn on useful developer options])])
# Turn on devel options for development version, unless
@ -31,7 +31,7 @@ AC_DEFUN([adl_ENABLE_DEVEL],
AC_DEFUN([adl_ENABLE_GLIBCXX_DEBUG],
[AC_ARG_ENABLE([glibcxx-debug],
[AC_HELP_STRING([--enable-glibcxx-debug],
[AS_HELP_STRING([--enable-glibcxx-debug],
[turn on use the libstdc++ debug mode (see README)])])
if test x$enable_glibcxx_debug = xyes; then
CPPFLAGS="$CPPFLAGS -D_GLIBCXX_DEBUG"

View file

@ -1,7 +1,7 @@
dnl Adapted from Akim Demaille <akim@epita.fr> ad_GCC_WARNINGS.
AC_DEFUN([ad_GCC_OPTIM],
[AC_ARG_ENABLE([optimizations],
[AC_HELP_STRING([--disable-optimizations],
[AS_HELP_STRING([--disable-optimizations],
[turn off aggressive optimizations])])
if test -n "$GCC" && test "${enable_optimizations-yes}" = "yes"; then
AC_CACHE_CHECK([for gcc optimization options], ac_cv_prog_gcc_opt_flags,

View file

@ -1,6 +1,6 @@
AC_DEFUN([adl_NDEBUG],
[AC_ARG_ENABLE([assert],
[AC_HELP_STRING([--enable-assert], [turn on assertions])])
[AS_HELP_STRING([--enable-assert], [turn on assertions])])
if test "$enable_assert" != yes; then
CPPFLAGS="$CPPFLAGS -DNDEBUG"
fi])