Fix: Don't try to include zncconfig.h when it doesn't exist yet

This commit is contained in:
Alexey Sokolov
2013-10-13 21:08:43 +04:00
parent 256be59ffe
commit 1c06af3b38
+3 -1
View File
@@ -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])