X-Git-Url: https://www.ginac.de/ginac.git//ginac.git?p=ginac.git;a=blobdiff_plain;f=configure.ac;h=550214817ea51ab91103c94ba379134c843c0dcc;hp=32ba148517f59130c3a098c16beb5491fdd973b2;hb=9c577d1ff8a40e821d214ce875587edfd4325f23;hpb=e937cf43540a47c8163a3f590b2415487a7b8f0a diff --git a/configure.ac b/configure.ac index 32ba1485..55021481 100644 --- a/configure.ac +++ b/configure.ac @@ -11,8 +11,8 @@ m4_define([ginac_lt_current], GINAC_GET_LTVERSION([CURRENT])) m4_define([ginac_lt_age], GINAC_GET_LTVERSION([AGE])) m4_define([ginac_lt_revision], GINAC_GET_LTVERSION([REVISION])) -AC_INIT([GiNaC], ginac_version, [ginac-list@ginac.de], [ginac], [https://www.ginac.de/]) -AC_PREREQ(2.59) +AC_INIT([GiNaC], [ginac_version], [ginac-list@ginac.de], [ginac], [https://www.ginac.de/]) +AC_PREREQ([2.59]) AC_CONFIG_SRCDIR(ginac/basic.cpp) AC_CONFIG_AUX_DIR([config]) AC_CONFIG_HEADERS([config/config.h]) @@ -28,8 +28,8 @@ dnl Check for the compiler and all the utilities needed for the build. AC_PROG_CXX AC_PROG_CXXCPP AC_PROG_INSTALL -AM_PROG_LIBTOOL -AC_PROG_LEX +LT_INIT +AC_PROG_LEX([yywrap]) AC_PROG_YACC AC_PATH_PROG(YACCEXE, $YACC, "") AS_IF([test "x$LEX" = "x:" -a ! -f $srcdir/ginsh/ginsh_lexer.cpp], @@ -41,9 +41,6 @@ dnl Switch to C++ language mode for the following libraries and headers. AC_LANG([C++]) AX_CXX_COMPILE_STDCXX([11]) -dnl Make sure all the necessary standard headers are installed on the system. -GINAC_STD_CXX_HEADERS - dnl We need to have CLN installed. PKG_CHECK_MODULES(CLN, cln >= 1.2.2) AC_LIB_LINKFLAGS_FROM_LIBS([CLN_RPATH], [$CLN_LIBS]) @@ -59,10 +56,9 @@ dnl Check for stuff needed for building the GiNaC interactive shell (ginsh). AC_CHECK_HEADERS(unistd.h) GINAC_HAVE_RUSAGE GINAC_READLINE -dnl Python3 is necessary for building function.{cpp,h} -AC_PATH_PROG(PYTHON3, python3, "") -AS_IF([test -z "$PYTHON3" -a ! -f "$srcdir/ginac/function.cpp"], - [AC_MSG_ERROR([GiNaC will not compile because Python3 is missing])]) +dnl Python is necessary for building function.{cpp,h} +AM_PATH_PYTHON([2.7],, + [AC_MSG_ERROR([GiNaC will not compile because Python is missing])]) dnl Check for dl library (needed for GiNaC::compile). GINAC_EXCOMPILER