From 3352e561e2ad4be506c829711a3ef71a18c0c859 Mon Sep 17 00:00:00 2001 From: Robin Haberkorn Date: Fri, 28 Sep 2012 21:13:08 +0200 Subject: fixed using compat/ headers if BSD headers are not detected during configure could have also used HAVE_BSD_SYS_QUEUE_H define but setting up the build system appropriately is cleaner --- configure.ac | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'configure.ac') diff --git a/configure.ac b/configure.ac index f45d081..d12f2b8 100644 --- a/configure.ac +++ b/configure.ac @@ -74,9 +74,8 @@ AC_CHECK_LIB([m], [ceilf]) # Checks for header files. AC_CHECK_HEADERS([stdlib.h string.h]) -AC_CHECK_HEADERS([bsd/sys/queue.h], , [ - CFLAGS="$CFLAGS -Icompat" -]) +AC_CHECK_HEADERS([bsd/sys/queue.h]) +AM_CONDITIONAL(NEED_COMPAT, [test $ac_cv_header_bsd_sys_queue_h = no]) # Checks for typedefs, structures, and compiler characteristics. AC_HEADER_STDBOOL -- cgit v1.2.3