configure.ac
author ladanyi
Mon, 23 May 2005 04:48:14 +0000
changeset 1435 8e85e6bbefdf
parent 1433 e0ec5ce0771e
child 1482 b9818eea0550
permissions -rw-r--r--
trunk/src/* move to trunk/
     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([lemon/invalid.h])
     6 AC_CONFIG_HEADERS([config.h lemon/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 AC_CHECK_PROG([doxygen_found],[doxygen],[yes],[no])
    24 
    25 dnl This is tested only with gcc-3.4 and icc-8.0
    26 dnl LX_SET_CXXFLAGS
    27 
    28 dnl Checks for libraries.
    29 LX_CHECK_GLPK
    30 LX_CHECK_CPLEX
    31 
    32 LX_ENABLE_DOCS
    33 LX_ENABLE_GUI
    34 
    35 dnl Checks for header files.
    36 AC_CHECK_HEADERS(limits.h sys/time.h sys/times.h unistd.h)
    37 
    38 dnl Checks for typedefs, structures, and compiler characteristics.
    39 AC_C_CONST
    40 AC_C_INLINE
    41 AC_TYPE_SIZE_T
    42 AC_HEADER_TIME
    43 AC_STRUCT_TM
    44 
    45 dnl Checks for library functions.
    46 AC_HEADER_STDC
    47 AC_CHECK_FUNCS(gettimeofday times ctime_r)
    48 
    49 AC_CONFIG_FILES([
    50 Makefile
    51 autopackage/default.apspec
    52 doc/Makefile
    53 doc/Doxyfile
    54 lemon/Makefile
    55 lemon/lemon.pc
    56 benchmark/Makefile
    57 demo/Makefile
    58 test/Makefile
    59 gui/Makefile
    60 ])
    61 
    62 AC_OUTPUT
    63 
    64 echo
    65 echo '****************************** SUMMARY ******************************'
    66 echo
    67 echo Package version............... : $PACKAGE-$VERSION
    68 echo
    69 echo C++ compiler.................. : $CXX
    70 echo C++ compiles flags............ : $CXXFLAGS
    71 echo
    72 echo GLPK support.................. : $lx_glpk_found
    73 echo CPLEX support................. : $lx_cplex_found
    74 echo
    75 echo build GUI..................... : $enable_gui
    76 echo
    77 echo The packace will be installed in
    78 echo -n '  '
    79 echo $prefix.
    80 echo
    81 echo The documentation will be installed in
    82 echo -n '  '
    83 eval eval eval echo ${datadir}/doc/$PACKAGE-$VERSION/html/index.html.
    84 echo
    85 echo '*********************************************************************'
    86 
    87 echo
    88 echo configure complete, now type \'make\'
    89 echo