configure.ac
author alpar
Fri, 04 Nov 2005 15:48:06 +0000
changeset 1766 6c59b1386fe8
parent 1662 8b4d25be4f7a
child 1863 12e0db6b7d0e
permissions -rw-r--r--
Tons of todos have been removed.
     1 dnl Process this file with autoconf to produce a configure script.
     2 AC_INIT([LEMON], [0.5], [etik-ol@cs.elte.hu], [lemon])
     3 AC_CONFIG_AUX_DIR([config])
     4 AM_INIT_AUTOMAKE([1.7])
     5 AC_CONFIG_SRCDIR([lemon/invalid.h])
     6 AC_CONFIG_HEADERS([config.h lemon/config.h])
     7 AC_PREREQ([2.59])
     8 
     9 dnl Checks for programs.
    10 AC_PROG_CXX
    11 AC_PROG_CXXCPP
    12 AC_PROG_INSTALL
    13 AC_DISABLE_SHARED
    14 AC_PROG_LIBTOOL
    15 
    16 if test $CXX != icc -a $CXX != icpc; then
    17   CXXFLAGS="$CXXFLAGS -Wall -W"
    18 fi
    19 
    20 AC_CHECK_PROG([doxygen_found],[doxygen],[yes],[no])
    21 
    22 dnl Checks for libraries.
    23 LX_CHECK_GLPK
    24 LX_CHECK_CPLEX
    25 
    26 LX_ENABLE_DOC
    27 LX_ENABLE_GUI
    28 
    29 dnl Checks for header files.
    30 AC_CHECK_HEADERS(limits.h sys/time.h sys/times.h unistd.h)
    31 
    32 dnl Checks for typedefs, structures, and compiler characteristics.
    33 AC_C_CONST
    34 AC_C_INLINE
    35 AC_TYPE_SIZE_T
    36 AC_HEADER_TIME
    37 AC_STRUCT_TM
    38 
    39 dnl Checks for library functions.
    40 AC_HEADER_STDC
    41 AC_CHECK_FUNCS(gettimeofday times ctime_r)
    42 
    43 AC_CONFIG_FILES([
    44 Makefile
    45 lemon.spec
    46 autopackage/default.apspec
    47 doc/Makefile
    48 doc/Doxyfile
    49 lemon/Makefile
    50 lemon/lemon.pc
    51 benchmark/Makefile
    52 demo/Makefile
    53 test/Makefile
    54 gui/Makefile
    55 gui/icons/Makefile
    56 ])
    57 
    58 AC_OUTPUT
    59 
    60 echo
    61 echo '****************************** SUMMARY ******************************'
    62 echo
    63 echo Package version............... : $PACKAGE-$VERSION
    64 echo
    65 echo C++ compiler.................. : $CXX
    66 echo C++ compiles flags............ : $CXXFLAGS
    67 echo
    68 echo GLPK support.................. : $lx_glpk_found
    69 echo CPLEX support................. : $lx_cplex_found
    70 echo
    71 echo build GUI..................... : $enable_gui
    72 echo
    73 echo The packace will be installed in
    74 echo -n '  '
    75 echo $prefix.
    76 echo
    77 echo The documentation will be installed in
    78 echo -n '  '
    79 eval echo ${datadir}/doc/$PACKAGE.
    80 echo
    81 echo '*********************************************************************'
    82 
    83 echo
    84 echo configure complete, now type \'make\' and then \'make install\'.
    85 echo