build: Make --without-phonenumber work
authorMathias Hasselmann <mathias@openismus.com>
Tue, 26 Feb 2013 15:02:15 +0000 (16:02 +0100)
committerMathias Hasselmann <mathias@openismus.com>
Tue, 26 Feb 2013 15:11:30 +0000 (16:11 +0100)
Explicitly initialize the am__fastdepCXX conditional if needed.
Apparently autoconf/automake forgets that if AC_PROG_CXX doesn't
get called.

configure.ac

index 7147e56..5f81db0 100644 (file)
@@ -223,6 +223,12 @@ if test "x$evo_with_cxx" = xyes; then
        AM_CXXFLAGS="$CXX_WARNING_FLAGS"
        AC_SUBST(AM_CXXFLAGS)
        AC_LANG_POP([C++])
+else
+       dnl Autoconf requires those automake conditionals to be defined when
+       dnl generating the config files, but apparently it forgets to initialize
+       dnl them dnl if AC_PROG_CXX never gets called. Therefore we do it manually.
+       am__fastdepCXX_TRUE='#'
+       am__fastdepCXX_FALSE=
 fi
 
 dnl *******************************