From 417d2f3b869bf14e00b28d3cb50c70b3b8032fbc Mon Sep 17 00:00:00 2001 From: John Ralls Date: Sat, 28 Mar 2015 09:08:51 +0900 Subject: [PATCH] Protect the function tests from -Werror passed in from CFLAGS. Which happens during make distcheck on Mac. --- configure.ac | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/configure.ac b/configure.ac index 6bc3871789..23e5a355ba 100644 --- a/configure.ac +++ b/configure.ac @@ -170,13 +170,15 @@ AC_PROG_LN_S AC_HEADER_STDC AC_CHECK_HEADERS(limits.h sys/time.h sys/times.h sys/wait.h pow.h) +oldcflags="$CFLAGS" +CFLAGS= AC_CHECK_FUNCS(stpcpy memcpy timegm towupper) AC_CHECK_FUNCS(setenv,,[ AC_CHECK_FUNCS(putenv,,[ AC_MSG_ERROR([Must have one of the setenv or putenv functions.]) ]) ]) - +CFLAGS="$oldcflags" STRUCT_TM_GMTOFF_CHECK cflags_save=${CFLAGS} CFLAGS="${CFLAGS} -Wall -Werror" @@ -615,7 +617,7 @@ then if test $? -eq 0; then EXTRA_SEARCH_LIBS="$(pkg-config --variable=libdir dbi)/dbd" else - EXTRA_SEARCH_LIBS="/usr/lib/dbd:/usr/lib64/dbd:${libdir}/dbd" + EXTRA_SEARCH_LIBS="/usr/lib/dbd:/usr/lib64/dbd:${libdir}/dbd:$(prefix)/lib/dbd" fi]] ) case $host_os in