configure.ac
author deba
Wed, 27 Apr 2005 10:44:58 +0000
changeset 1394 f0c48d7fa73d
parent 1373 284841d50d63
child 1400 d12508c2a007
permissions -rw-r--r--
Modifying the interface.
add -> read, write
     1 dnl Process this file with autoconf to produce a configure script.
     2 AC_INIT([LEMON], [0.4], [etik-ol@cs.elte.hu], [lemon])
     3 AC_CONFIG_AUX_DIR([config])
     4 AM_INIT_AUTOMAKE
     5 AC_CONFIG_SRCDIR([src/lemon/invalid.h])
     6 AM_CONFIG_HEADER([config.h])
     7 AC_PREREQ([2.53])
     8 
     9 dnl Save user defined CXXFLAGS
    10 dnl lx_user_cxxflags="$CXXFLAGS"
    11 
    12 dnl Checks for programs.
    13 AC_PROG_CXX
    14 AC_PROG_CXXCPP
    15 AC_PROG_INSTALL
    16 AC_DISABLE_SHARED
    17 AC_PROG_LIBTOOL
    18 
    19 if test $CXX != icc -a $CXX != icpc; then
    20   CXXFLAGS="$CXXFLAGS -Wall -W"
    21 fi
    22 
    23 dnl This is tested only with gcc-3.4 and icc-8.0
    24 dnl LX_SET_CXXFLAGS
    25 
    26 dnl Checks for libraries.
    27 LX_CHECK_GLPK
    28 LX_CHECK_CPLEX
    29 
    30 LX_ENABLE_DOCS
    31 
    32 dnl Checks for header files.
    33 AC_CHECK_HEADERS(limits.h sys/time.h sys/times.h unistd.h)
    34 
    35 dnl Checks for typedefs, structures, and compiler characteristics.
    36 AC_C_CONST
    37 AC_C_INLINE
    38 AC_TYPE_SIZE_T
    39 AC_HEADER_TIME
    40 AC_STRUCT_TM
    41 
    42 dnl Checks for library functions.
    43 AC_HEADER_STDC
    44 AC_CHECK_FUNCS(gettimeofday times ctime_r)
    45 
    46 AC_CONFIG_FILES([
    47 Makefile
    48 autopackage/default.apspec
    49 doc/Makefile
    50 doc/Doxyfile
    51 src/Makefile
    52 src/lemon/Makefile
    53 src/lemon/lemon.pc
    54 src/benchmark/Makefile
    55 src/demo/Makefile
    56 src/test/Makefile
    57 ])
    58 
    59 AC_OUTPUT
    60 
    61 echo
    62 echo '****************************** SUMMARY ******************************'
    63 echo
    64 echo Package version............... : $PACKAGE-$VERSION
    65 echo
    66 echo C++ compiler.................. : $CXX
    67 echo C++ compiles flags............ : $CXXFLAGS
    68 echo
    69 echo GLPK support.................. : $lx_glpk_found
    70 echo CPLEX support................. : $lx_cplex_found
    71 echo
    72 echo The packace will be installed in
    73 echo -n '  '
    74 echo $prefix.
    75 echo
    76 echo The documentation will be installed in
    77 echo -n '  '
    78 eval eval eval echo ${datadir}/doc/$PACKAGE-$VERSION/html/index.html.
    79 echo
    80 echo '*********************************************************************'
    81 
    82 echo
    83 echo configure complete, now type \'make\'
    84 echo