configure.ac
author athos
Wed, 20 Apr 2005 15:06:42 +0000
changeset 1377 bfbb5b30c5b8
parent 1372 03b52f7db271
child 1380 cb2891afe526
permissions -rw-r--r--
_clearObj instead of _setObj.
     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 
    29 LX_ENABLE_DOCS
    30 
    31 dnl Checks for header files.
    32 AC_CHECK_HEADERS(limits.h sys/time.h sys/times.h unistd.h)
    33 
    34 dnl Checks for typedefs, structures, and compiler characteristics.
    35 AC_C_CONST
    36 AC_C_INLINE
    37 AC_TYPE_SIZE_T
    38 AC_HEADER_TIME
    39 AC_STRUCT_TM
    40 
    41 dnl Checks for library functions.
    42 AC_HEADER_STDC
    43 AC_CHECK_FUNCS(gettimeofday times ctime_r)
    44 
    45 AC_CONFIG_FILES([
    46 Makefile
    47 autopackage/default.apspec
    48 doc/Makefile
    49 doc/Doxyfile
    50 src/Makefile
    51 src/lemon/Makefile
    52 src/lemon/lemon.pc
    53 src/benchmark/Makefile
    54 src/demo/Makefile
    55 src/test/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
    70 echo The packace will be installed in
    71 echo -n '  '
    72 echo $prefix.
    73 echo
    74 echo The documentation will be installed in
    75 echo -n '  '
    76 eval eval eval echo ${datadir}/doc/$PACKAGE-$VERSION/html/index.html.
    77 echo
    78 echo '*********************************************************************'
    79 
    80 echo
    81 echo configure complete, now type \'make\'
    82 echo