diff options
author | Luiz Augusto von Dentz <luiz.von.dentz@intel.com> | 2022-01-05 14:02:05 -0800 |
---|---|---|
committer | Luiz Augusto von Dentz <luiz.von.dentz@intel.com> | 2022-01-05 15:06:40 -0800 |
commit | ac33d95d2944c089707eadbd2933442ceaeedab1 (patch) | |
tree | 0a4d4cdb2c85a6dda238024d9695f70e76028906 /acinclude.m4 | |
parent | da07239606d62526287d55f35a778770b04196ea (diff) | |
download | bluez-ac33d95d2944c089707eadbd2933442ceaeedab1.tar.gz |
configure: Fix use of obsolete macros
This fixes the following warnings when using autoconf >= 2.70:
configure.ac:19: warning: The macro `AC_LANG_C' is obsolete.
configure.ac:45: warning: The macro `AC_HELP_STRING' is obsolete.
configure.ac:440: warning: AC_OUTPUT should be used without arguments.
The macros are replacing following the autoconf documentation:
https://www.gnu.org/software/autoconf/manual/autoconf-2.70/html_node/Obsolete-Macros.html
Fixes: https://github.com/bluez/bluez/issues/246
Diffstat (limited to 'acinclude.m4')
-rw-r--r-- | acinclude.m4 | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/acinclude.m4 b/acinclude.m4 index b388dfc11..c5d6de7b3 100644 --- a/acinclude.m4 +++ b/acinclude.m4 @@ -71,13 +71,13 @@ AC_DEFUN([COMPILER_FLAGS], [ AC_DEFUN([MISC_FLAGS], [ misc_cflags="" misc_ldflags="" - AC_ARG_ENABLE(optimization, AC_HELP_STRING([--disable-optimization], + AC_ARG_ENABLE(optimization, AS_HELP_STRING([--disable-optimization], [disable code optimization through compiler]), [ if (test "${enableval}" = "no"); then misc_cflags="$misc_cflags -O0" fi ]) - AC_ARG_ENABLE(asan, AC_HELP_STRING([--enable-asan], + AC_ARG_ENABLE(asan, AS_HELP_STRING([--enable-asan], [enable linking with address sanitizer]), [ save_LIBS=$LIBS AC_CHECK_LIB(asan, _init) @@ -90,7 +90,7 @@ AC_DEFUN([MISC_FLAGS], [ AC_SUBST([ASAN_LIB], ${ac_cv_lib_asan__init}) fi ]) - AC_ARG_ENABLE(lsan, AC_HELP_STRING([--enable-lsan], + AC_ARG_ENABLE(lsan, AS_HELP_STRING([--enable-lsan], [enable linking with address sanitizer]), [ save_LIBS=$LIBS AC_CHECK_LIB(lsan, _init) @@ -103,7 +103,7 @@ AC_DEFUN([MISC_FLAGS], [ AC_SUBST([ASAN_LIB], ${ac_cv_lib_lsan__init}) fi ]) - AC_ARG_ENABLE(ubsan, AC_HELP_STRING([--enable-ubsan], + AC_ARG_ENABLE(ubsan, AS_HELP_STRING([--enable-ubsan], [enable linking with address sanitizer]), [ save_LIBS=$LIBS AC_CHECK_LIB(ubsan, _init) @@ -115,14 +115,14 @@ AC_DEFUN([MISC_FLAGS], [ misc_ldflags="$misc_ldflags -fsanitize=undefined"; fi ]) - AC_ARG_ENABLE(debug, AC_HELP_STRING([--enable-debug], + AC_ARG_ENABLE(debug, AS_HELP_STRING([--enable-debug], [enable compiling with debugging information]), [ if (test "${enableval}" = "yes" && test "${ac_cv_prog_cc_g}" = "yes"); then misc_cflags="$misc_cflags -g" fi ]) - AC_ARG_ENABLE(pie, AC_HELP_STRING([--enable-pie], + AC_ARG_ENABLE(pie, AS_HELP_STRING([--enable-pie], [enable position independent executables flag]), [ if (test "${enableval}" = "yes" && test "${ac_cv_prog_cc_pie}" = "yes"); then |