summaryrefslogtreecommitdiffstats
path: root/configure.ac
diff options
context:
space:
mode:
authorPatrick McHardy <kaber@trash.net>2010-09-03 05:20:44 +0200
committerPatrick McHardy <kaber@trash.net>2010-09-03 05:20:44 +0200
commit54f5b57e97e3429054fc6426980e341db84fd86f (patch)
tree679fba7e88374192d174799ffbc15e08000cef06 /configure.ac
parent1038f1b083bf27cb8ca66ed97f9202ec90b75f75 (diff)
build: properly quote all arguments in configure.ac
Fixes: checking event.h usability... yes checking event.h presence... yes checking for event.h... yes configure: line 4346: syntax error near unexpected token `newline' configure: line 4346: ` yes:no:' with autoconf 2.61-8 and dash 0.5.5.1-7 on Debian. Signed-off-by: Patrick McHardy <kaber@trash.net>
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac34
1 files changed, 17 insertions, 17 deletions
diff --git a/configure.ac b/configure.ac
index 250aa31..8a7d814 100644
--- a/configure.ac
+++ b/configure.ac
@@ -14,7 +14,7 @@ AC_DEFINE([_GNU_SOURCE], [], [Enable various GNU extensions])
AC_DEFINE([_STDC_FORMAT_MACROS], [], [printf-style format macros])
AC_ARG_ENABLE([debug],
- AS_HELP_STRING([--enable-debug], [enable debugging [yes]]),
+ [AS_HELP_STRING([--enable-debug], [enable debugging [yes]])],
[CONFIG_DEBUG="$(echo $enableval | cut -b1)"],
[CONFIG_DEBUG="y"])
AC_SUBST([CONFIG_DEBUG])
@@ -27,23 +27,23 @@ AC_PROG_LN_S
AC_PROG_SED
AC_ARG_ENABLE([doc],
- AS_HELP_STRING([--enable-doc], [build documentation [no]]),
- AC_CHECK_PROG(DOXYGEN, doxygen, doxygen),
- AC_MSG_NOTICE([Documentation build disabled])
- DOXYGEN=/bin/true)
+ [AS_HELP_STRING([--enable-doc], [build documentation [no]])],
+ [AC_CHECK_PROG(DOXYGEN, doxygen, doxygen)],
+ [AC_MSG_NOTICE([Documentation build disabled])]
+ [DOXYGEN=/bin/true])
# Checks for libraries.
AC_CHECK_LIB([nl], [nl_socket_alloc], ,
- AC_MSG_ERROR([No suitable version of libnl found]))
+ [AC_MSG_ERROR([No suitable version of libnl found])])
AC_CHECK_LIB([nl-dect], [nl_dect_cluster_alloc], ,
- AC_MSG_ERROR([No suitable version of libnl-dect found]))
+ [AC_MSG_ERROR([No suitable version of libnl-dect found])])
-AC_CHECK_LIB(ev, event_init,
+AC_CHECK_LIB([ev], [event_init],
[EVENTLIB="-lev"],
- AC_CHECK_LIB(event, event_init,
- [EVENTLIB="-levent"],
- AC_ERROR(libev or libevent not found)))
+ [AC_CHECK_LIB([event], [event_init],
+ [EVENTLIB="-levent"],
+ [AC_ERROR([libev or libevent not found])])])
EVENT_LDFLAGS=$EVENTLIB
AC_SUBST(EVENT_LDFLAGS)
@@ -53,16 +53,16 @@ AC_HEADER_ASSERT
AC_CHECK_HEADERS([fcntl.h inttypes.h libintl.h limits.h malloc.h \
stddef.h stdint.h stdlib.h string.h unistd.h \
sys/socket.h], ,
- AC_MSG_ERROR([Header file not found]))
+ [AC_MSG_ERROR([Header file not found])])
AC_CHECK_HEADERS([linux/dect.h linux/dect_netlink.h], ,
- AC_MSG_ERROR([DECT kernel header files not found]),
+ [AC_MSG_ERROR([DECT kernel header files not found])],
[#include <sys/socket.h>])
-AC_CHECK_HEADER(event.h,
+AC_CHECK_HEADER([event.h],
[EVENTINC="-include event.h"],
- AC_CHECK_HEADER(libev/event.h,
- [EVENTINC="-include libev/event.h"],
- AC_MSG_ERROR([event.h not found])))
+ [AC_CHECK_HEADER([libev/event.h],
+ [EVENTINC="-include libev/event.h"],
+ [AC_MSG_ERROR([event.h not found])])])
EVENT_CFLAGS=$EVENTINC
AC_SUBST(EVENT_CFLAGS)