[PATCH 11/13] Simplify check for alloca.h

Ruben Kerkhof ruben at rubenkerkhof.com
Sat Mar 18 17:25:41 CET 2017


AC_CHECK_HEADERS_ONCE defines HAVE_ALLOCA_H if it is found.
---
 configure.ac | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/configure.ac b/configure.ac
index ee352790..d8f81d09 100644
--- a/configure.ac
+++ b/configure.ac
@@ -314,7 +314,8 @@ case $sysdesc in
 esac
 
 AC_CHECK_HEADER([syslog.h], [AC_DEFINE([HAVE_SYSLOG], [1], [Define to 1 if you have the <syslog.h> header file])])
-AC_CHECK_HEADER([alloca.h], [AC_DEFINE([HAVE_ALLOCA_H], [1], [Define to 1 if you have the <alloca.h> header file])])
+AC_CHECK_HEADERS_ONCE([alloca.h])
+
 AC_MSG_CHECKING([whether 'struct sockaddr' has sa_len])
 AC_COMPILE_IFELSE([
   AC_LANG_PROGRAM(
-- 
2.12.0



More information about the Bird-users mailing list