aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMikel Olasagasti Uranga <mikel@olasagasti.info>2021-09-23 17:05:36 +0200
committerKrzysztof Kozlowski <krzk@kernel.org>2021-09-23 19:06:17 +0200
commit07e36d001fdca2aa650ddeb92044d47f684ee0ac (patch)
treeb6c5a799299042b8339dc7e7741b7ea916db567c
parentb6bf8cc5de6ed2dde0ddb832ce5e2e5aa1d989cf (diff)
downloadneard-07e36d001fdca2aa650ddeb92044d47f684ee0ac.tar.gz
Check if AX_CHECK_COMPILE_FLAG is available or print error
Resolves warning: AX_CHECK_COMPILE_FLAG is m4_require'd but not m4_defun'd reported by autoreconf: autoreconf -ivf --warnings=all autoreconf: Entering directory `.' autoreconf: configure.ac: not using Gettext autoreconf: running: aclocal --force --warnings=all -I m4 aclocal: warning: couldn't open directory 'm4': No such file or directory configure.ac:43: warning: AX_CHECK_COMPILE_FLAG is m4_require'd but not m4_defun'd accflags.m4:1: NEARD_COMPILER_FLAGS is expanded from... configure.ac:43: the top level configure.ac:43: warning: AX_CHECK_COMPILE_FLAG is m4_require'd but not m4_defun'd accflags.m4:1: NEARD_COMPILER_FLAGS is expanded from... configure.ac:43: the top level autoreconf: configure.ac: tracing configure.ac:43: warning: AX_CHECK_COMPILE_FLAG is m4_require'd but not m4_defun'd
-rw-r--r--accflags.m44
1 files changed, 3 insertions, 1 deletions
diff --git a/accflags.m4 b/accflags.m4
index 0030ac3..83693da 100644
--- a/accflags.m4
+++ b/accflags.m4
@@ -1,7 +1,9 @@
AC_DEFUN([NEARD_COMPILER_FLAGS], [
# AX_CHECK_COMPILE_FLAG comes from autoconf-archive
AC_REQUIRE([AC_PROG_CC])
- AC_REQUIRE([AX_CHECK_COMPILE_FLAG])
+ m4_ifndef([AX_CHECK_COMPILE_FLAG],[
+ AC_MSG_ERROR([You need to install the autoconf-archive package.])
+ ])
if (test "${CFLAGS}" = ""); then
CFLAGS="-Wall -O2 -D_FORTIFY_SOURCE=2"