]> www.ginac.de Git - ginac.git/commitdiff
configure: run important checks first (and bail out if something is missing).
authorAlexei Sheplyakov <varg@theor.jinr.ru>
Sun, 7 Sep 2008 18:53:07 +0000 (22:53 +0400)
committerAlexei Sheplyakov <varg@theor.jinr.ru>
Tue, 9 Sep 2008 10:17:08 +0000 (14:17 +0400)
Don't bother to check for optional stuff if CLN and/or standard C++ headers
are missing.

configure.ac

index 576a72bb46cf364fc0adb85f4543ce2bf74871dd..45fd2d648e46e2815957676caff3fdf67b2b45a8 100644 (file)
@@ -78,6 +78,14 @@ AC_LANG([C++])
 dnl Make sure all the necessary standard headers are installed on the system.
 GINAC_STD_CXX_HEADERS
 
+dnl We need to have Bruno Haible's CLN installed.
+dnl (pkg-config must have installed pkg.m4 at a visible place, which provides
+dnl this macro. CLN >= 1.1.6 must have installed cln.pc at a visible place,
+dnl which provides the actual dependency information.)
+PKG_CHECK_MODULES(CLN, cln >= 1.1.6)
+LIBS="$LIBS $CLN_LIBS"
+CPPFLAGS="$CPPFLAGS $CLN_CFLAGS"
+
 dnl Check for data types which are needed by the hash function 
 dnl (golden_ratio_hash).
 AC_CHECK_TYPE(long long)
@@ -97,13 +105,6 @@ AC_CHECK_LIB(dl, dlopen,
        GINAC_WARNING([libdl not found. GiNaC::compile will be disabled.]))
 AC_SUBST(DL_LIBS)
 
-dnl We need to have Bruno Haible's CLN installed.
-dnl (pkg-config must have installed pkg.m4 at a visible place, which provides
-dnl this macro. CLN >= 1.1.6 must have installed cln.pc at a visible place,
-dnl which provides the actual dependency information.)
-PKG_CHECK_MODULES(CLN, cln >= 1.1.6)
-LIBS="$LIBS $CLN_LIBS"
-CPPFLAGS="$CPPFLAGS $CLN_CFLAGS"
 
 dnl Check for utilities needed by the different kinds of documentation.
 dnl Documentation needs only be built when extending it, so never mind if it