]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[3119] added descriptive error message if compiler/botan are out of sync
authorKean Johnston <kean@isc.org>
Tue, 17 Sep 2013 11:56:12 +0000 (13:56 +0200)
committerKean Johnston <kean@isc.org>
Tue, 17 Sep 2013 11:56:12 +0000 (13:56 +0200)
configure.ac

index 8098a8ff4d03f03cf7978c3b704512730a5ea420..4438cbbef49a1d5bca4325c1e1870399dfaa6195 100644 (file)
@@ -754,7 +754,17 @@ CPPFLAGS_SAVED=$CPPFLAGS
 CPPFLAGS="$BOTAN_INCLUDES $CPPFLAGS"
 LIBS_SAVED="$LIBS"
 LIBS="$LIBS $BOTAN_LIBS"
-AC_CHECK_HEADERS([botan/botan.h],,AC_MSG_ERROR([Missing required header files.]))
+AC_CHECK_HEADERS([botan/botan.h],,[
+if test "x$ac_header_preproc" = "xyes"; then
+  AC_MSG_ERROR([
+botan/botan.h was found but is unusable. The most common cause of this problem
+is attempting to use an updated C++ compiler with older C++ libraries, such as
+the version of Botan that comes with your distribution. If you have updated
+your C++ compiler we highly recommend that you use support libraries such as
+Boost and Botan that were compiled with the same compiler version.])
+else
+  AC_MSG_ERROR([Missing required header files.])
+fi])
 AC_LINK_IFELSE(
         [AC_LANG_PROGRAM([#include <botan/botan.h>
                           #include <botan/hash.h>