From ada7161d8d3ab0250eb766b51f42247c0dc75999 Mon Sep 17 00:00:00 2001 From: Wade Berrier Date: Sat, 26 Jan 2013 00:00:36 -0700 Subject: [PATCH] autoconf: add remaining parameter for AC_SEARCH_LIBS According to: http://www.gnu.org/software/autoconf/manual/autoconf-2.67/html_node/Libraries.html Found this while trying to compile for RHEL6. Otherwise, configure failed. --- configure.ac | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index d8acbebe..6820f150 100644 --- a/configure.ac +++ b/configure.ac @@ -165,7 +165,8 @@ AC_ARG_ENABLE([boehm-gc], AS_IF([test "x$with_boehm_gc" = "xyes"], AC_SEARCH_LIBS([GC_malloc], [gc], [AC_DEFINE(USE_BOEHM_GC, 1, [Define if Boehm GC is to be used])], - [AC_MSG_FAILURE([--enable-boehm-gc specified but test for libgc failed])] + [AC_MSG_FAILURE([--enable-boehm-gc specified but test for libgc failed])], + [] ) ) @@ -210,10 +211,12 @@ AC_ARG_WITH([libbsd], tmp_libs=$LIBS AC_SEARCH_LIBS([strlcat],[$with_libbsd], [AC_DEFINE(HAVE_STRLCAT, 1, [Define if strlcat is available])], + [], [] ) AC_SEARCH_LIBS([strlcpy],[$with_libbsd], [AC_DEFINE(HAVE_STRLCAT, 1, [Define if strlcpy is available])], + [], [] ) LIBS=$tmp_libs