From 1c06af3b389d5a38a2c1b2addfaf94b4e8c309a7 Mon Sep 17 00:00:00 2001 From: Alexey Sokolov Date: Sun, 13 Oct 2013 21:08:43 +0400 Subject: [PATCH] Fix: Don't try to include zncconfig.h when it doesn't exist yet --- configure.ac | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index 1ee83b6e..34819f49 100644 --- a/configure.ac +++ b/configure.ac @@ -70,7 +70,6 @@ appendLD () { } appendCXX "-D_FORTIFY_SOURCE=2" -appendCXX "-include znc/zncconfig.h" case "${host_os}" in freebsd*) @@ -554,6 +553,9 @@ AC_CACHE_CHECK([for GNU make], [ac_cv_path_GNUMAKE], [ GNUMAKE_DIRNAME=`AS_DIRNAME(["$ac_cv_path_GNUMAKE"])` GNUMAKE=`echo $ac_cv_path_GNUMAKE | $SED "s%$GNUMAKE_DIRNAME/%%"` +# this is in the end, for not trying to include it when it doesn't exist yet +appendCXX "-include znc/zncconfig.h" + AC_SUBST([CXXFLAGS]) AC_SUBST([CPPFLAGS]) AC_SUBST([MODFLAGS])