ladanyi@542: dnl Process this file with autoconf to produce a configure script. alpar@1163: AC_INIT([LEMON], [0.4], [etik-ol@cs.elte.hu], [lemon]) ladanyi@542: AC_CONFIG_AUX_DIR([config]) ladanyi@1348: AM_INIT_AUTOMAKE alpar@921: AC_CONFIG_SRCDIR([src/lemon/invalid.h]) ladanyi@1348: AM_CONFIG_HEADER([config.h]) ladanyi@1349: AC_PREREQ([2.53]) ladanyi@542: ladanyi@1350: dnl Save user defined CXXFLAGS ladanyi@1350: dnl lx_user_cxxflags="$CXXFLAGS" ladanyi@1350: ladanyi@542: dnl Checks for programs. ladanyi@542: AC_PROG_CXX ladanyi@1350: AC_PROG_CXXCPP ladanyi@1304: AC_PROG_INSTALL alpar@1327: AC_DISABLE_SHARED ladanyi@1304: AC_PROG_LIBTOOL ladanyi@542: ladanyi@1348: if test $CXX != icc -a $CXX != icpc; then ladanyi@1349: CXXFLAGS="$CXXFLAGS -Wall -W" ladanyi@1348: fi alpar@716: alpar@1400: AC_CHECK_PROG([doxygen_found],[doxygen],[yes],[no]) alpar@1400: ladanyi@1350: dnl This is tested only with gcc-3.4 and icc-8.0 ladanyi@1350: dnl LX_SET_CXXFLAGS ladanyi@1350: ladanyi@542: dnl Checks for libraries. ladanyi@1349: LX_CHECK_GLPK ladanyi@1380: LX_CHECK_CPLEX ladanyi@542: ladanyi@1370: LX_ENABLE_DOCS ladanyi@1404: LX_ENABLE_GUI ladanyi@1370: ladanyi@542: dnl Checks for header files. alpar@774: AC_CHECK_HEADERS(limits.h sys/time.h sys/times.h unistd.h) ladanyi@542: ladanyi@542: dnl Checks for typedefs, structures, and compiler characteristics. ladanyi@542: AC_C_CONST ladanyi@542: AC_C_INLINE ladanyi@542: AC_TYPE_SIZE_T ladanyi@542: AC_HEADER_TIME ladanyi@542: AC_STRUCT_TM ladanyi@542: ladanyi@542: dnl Checks for library functions. ladanyi@542: AC_HEADER_STDC alpar@1108: AC_CHECK_FUNCS(gettimeofday times ctime_r) ladanyi@542: ladanyi@1304: AC_CONFIG_FILES([ ladanyi@1304: Makefile ladanyi@1304: autopackage/default.apspec ladanyi@1304: doc/Makefile ladanyi@1304: doc/Doxyfile ladanyi@1304: src/Makefile ladanyi@1304: src/lemon/Makefile ladanyi@1304: src/lemon/lemon.pc ladanyi@1304: src/benchmark/Makefile ladanyi@1304: src/demo/Makefile ladanyi@1304: src/test/Makefile ladanyi@1404: src/gui/Makefile ladanyi@1404: src/gui/src/Makefile ladanyi@1304: ]) ladanyi@1349: ladanyi@542: AC_OUTPUT alpar@1372: alpar@1372: echo alpar@1372: echo '****************************** SUMMARY ******************************' alpar@1372: echo alpar@1372: echo Package version............... : $PACKAGE-$VERSION alpar@1372: echo alpar@1372: echo C++ compiler.................. : $CXX alpar@1372: echo C++ compiles flags............ : $CXXFLAGS alpar@1372: echo alpar@1373: echo GLPK support.................. : $lx_glpk_found ladanyi@1380: echo CPLEX support................. : $lx_cplex_found alpar@1372: echo ladanyi@1404: echo build GUI..................... : $enable_gui ladanyi@1404: echo alpar@1372: echo The packace will be installed in alpar@1372: echo -n ' ' alpar@1372: echo $prefix. alpar@1372: echo alpar@1372: echo The documentation will be installed in alpar@1372: echo -n ' ' alpar@1372: eval eval eval echo ${datadir}/doc/$PACKAGE-$VERSION/html/index.html. alpar@1372: echo alpar@1372: echo '*********************************************************************' alpar@1372: alpar@1372: echo alpar@1372: echo configure complete, now type \'make\' alpar@1372: echo