configure.ac
author deba
Tue, 31 Jan 2006 20:14:52 +0000
changeset 1934 272fa8a0b680
parent 1863 12e0db6b7d0e
child 1941 9fe177e0437d
permissions -rw-r--r--
Bug fix

ANodeIt/BNodeIt should not be inherited from ANode/BNode

The reason:
assert(graph.id(ANodeIt(graph)) == graph.id((Node)ANodeIt(graph)));
ladanyi@542
     1
dnl Process this file with autoconf to produce a configure script.
alpar@1662
     2
AC_INIT([LEMON], [0.5], [etik-ol@cs.elte.hu], [lemon])
ladanyi@542
     3
AC_CONFIG_AUX_DIR([config])
ladanyi@1482
     4
AM_INIT_AUTOMAKE([1.7])
ladanyi@1435
     5
AC_CONFIG_SRCDIR([lemon/invalid.h])
ladanyi@1435
     6
AC_CONFIG_HEADERS([config.h lemon/config.h])
ladanyi@1482
     7
AC_PREREQ([2.59])
ladanyi@542
     8
ladanyi@1905
     9
lx_cmdline_cxxflags_set=${CXXFLAGS+set}
ladanyi@1905
    10
ladanyi@542
    11
dnl Checks for programs.
ladanyi@542
    12
AC_PROG_CXX
ladanyi@1350
    13
AC_PROG_CXXCPP
ladanyi@1304
    14
AC_PROG_INSTALL
alpar@1327
    15
AC_DISABLE_SHARED
ladanyi@1304
    16
AC_PROG_LIBTOOL
ladanyi@542
    17
ladanyi@1905
    18
if test x"$lx_cmdline_cxxflags_set" != x"set" -a "$GXX" = yes; then
ladanyi@1349
    19
  CXXFLAGS="$CXXFLAGS -Wall -W"
ladanyi@1348
    20
fi
alpar@716
    21
alpar@1400
    22
AC_CHECK_PROG([doxygen_found],[doxygen],[yes],[no])
alpar@1400
    23
ladanyi@542
    24
dnl Checks for libraries.
ladanyi@1349
    25
LX_CHECK_GLPK
ladanyi@1380
    26
LX_CHECK_CPLEX
ladanyi@542
    27
ladanyi@1863
    28
dnl Enable/disable installing the documentation
ladanyi@1863
    29
AC_ARG_ENABLE([doc],
ladanyi@1863
    30
AS_HELP_STRING([--enable-doc@<:@=yes|no|full@:>@], [build the documentation (full enables internal documentation too) @<:@default=yes@:>@])
ladanyi@1863
    31
AS_HELP_STRING([--disable-doc], [do not build the documentation]),
ladanyi@1863
    32
              [], [enable_doc=yes])
ladanyi@1863
    33
ladanyi@1863
    34
AC_MSG_CHECKING([whether to build the documention])
ladanyi@1863
    35
case "$enable_doc" in
ladanyi@1863
    36
  yes)
ladanyi@1863
    37
    DOXYGEN_INTERNAL_DOCS=NO
ladanyi@1863
    38
    AC_MSG_RESULT([yes])
ladanyi@1863
    39
    ;;
ladanyi@1863
    40
  full)
ladanyi@1863
    41
    DOXYGEN_INTERNAL_DOCS=YES
ladanyi@1863
    42
    AC_MSG_RESULT([full])
ladanyi@1863
    43
    ;;
ladanyi@1863
    44
  no)
ladanyi@1863
    45
    DOXYGEN_INTERNAL_DOCS=NO
ladanyi@1863
    46
    AC_MSG_RESULT([no])
ladanyi@1863
    47
    ;;
ladanyi@1863
    48
  *)
ladanyi@1863
    49
    AC_MSG_ERROR([bad value $enable_doc for option --enable-doc])
ladanyi@1863
    50
    ;;
ladanyi@1863
    51
esac
ladanyi@1863
    52
AC_SUBST(DOXYGEN_INTERNAL_DOCS)
ladanyi@1863
    53
AM_CONDITIONAL([WANT_DOC], [test x"$enable_doc" != x"no"])
ladanyi@1863
    54
ladanyi@1863
    55
dnl Disable/enable building the GUI
ladanyi@1863
    56
AC_ARG_ENABLE([gui],
ladanyi@1863
    57
AS_HELP_STRING([--enable-gui], [build the GUI])
ladanyi@1863
    58
AS_HELP_STRING([--disable-gui], [do not build the GUI @<:@default@:>@]),
ladanyi@1863
    59
              [], [enable_gui=no])
ladanyi@1863
    60
AC_MSG_CHECKING([whether to build the GUI])
ladanyi@1863
    61
if test x"$enable_gui" != x"no"; then
ladanyi@1863
    62
  AC_MSG_RESULT([yes])
ladanyi@1863
    63
else
ladanyi@1863
    64
  AC_MSG_RESULT([no])
ladanyi@1863
    65
fi
ladanyi@1863
    66
if test x"$enable_gui" != x"no"; then
ladanyi@1863
    67
  PKG_CHECK_MODULES([GTK], [libgnomecanvasmm-2.6 >= 2.6.0])
ladanyi@1863
    68
fi
ladanyi@1863
    69
AM_CONDITIONAL([WANT_GUI], [test x"$enable_gui" != x"no"])
ladanyi@1863
    70
ladanyi@1863
    71
dnl Disable/enable building the demo programs
ladanyi@1863
    72
AC_ARG_ENABLE([demo],
ladanyi@1863
    73
AS_HELP_STRING([--enable-demo], [build the demo programs])
ladanyi@1863
    74
AS_HELP_STRING([--disable-demo], [do not build the demo programs @<:@default@:>@]),
ladanyi@1863
    75
              [], [enable_demo=no])
ladanyi@1863
    76
AC_MSG_CHECKING([whether to build the demo programs])
ladanyi@1863
    77
if test x"$enable_demo" != x"no"; then
ladanyi@1863
    78
  AC_MSG_RESULT([yes])
ladanyi@1863
    79
else
ladanyi@1863
    80
  AC_MSG_RESULT([no])
ladanyi@1863
    81
fi
ladanyi@1863
    82
AM_CONDITIONAL([WANT_DEMO], [test x"$enable_demo" != x"no"])
ladanyi@1863
    83
ladanyi@1863
    84
dnl Disable/enable building the benchmarks
ladanyi@1863
    85
AC_ARG_ENABLE([benchmark],
ladanyi@1863
    86
AS_HELP_STRING([--enable-benchmark], [build the benchmarks])
ladanyi@1863
    87
AS_HELP_STRING([--disable-benchmark], [do not build the benchmarks @<:@default@:>@]),
ladanyi@1863
    88
              [], [enable_benchmark=no])
ladanyi@1863
    89
AC_MSG_CHECKING([whether to build the benchmarks])
ladanyi@1863
    90
if test x"$enable_benchmark" != x"no"; then
ladanyi@1863
    91
  AC_MSG_RESULT([yes])
ladanyi@1863
    92
else
ladanyi@1863
    93
  AC_MSG_RESULT([no])
ladanyi@1863
    94
fi
ladanyi@1863
    95
AM_CONDITIONAL([WANT_BENCHMARK], [test x"$enable_benchmark" != x"no"])
ladanyi@1863
    96
ladanyi@1863
    97
dnl Checks for header files.
ladanyi@1863
    98
AC_CHECK_HEADERS(limits.h sys/time.h sys/times.h unistd.h)
ladanyi@1370
    99
ladanyi@542
   100
dnl Checks for header files.
alpar@774
   101
AC_CHECK_HEADERS(limits.h sys/time.h sys/times.h unistd.h)
ladanyi@542
   102
ladanyi@542
   103
dnl Checks for typedefs, structures, and compiler characteristics.
ladanyi@542
   104
AC_C_CONST
ladanyi@542
   105
AC_C_INLINE
ladanyi@542
   106
AC_TYPE_SIZE_T
ladanyi@542
   107
AC_HEADER_TIME
ladanyi@542
   108
AC_STRUCT_TM
ladanyi@542
   109
ladanyi@542
   110
dnl Checks for library functions.
ladanyi@542
   111
AC_HEADER_STDC
alpar@1108
   112
AC_CHECK_FUNCS(gettimeofday times ctime_r)
ladanyi@542
   113
ladanyi@1304
   114
AC_CONFIG_FILES([
ladanyi@1304
   115
Makefile
ladanyi@1483
   116
lemon.spec
ladanyi@1304
   117
autopackage/default.apspec
ladanyi@1304
   118
doc/Makefile
ladanyi@1304
   119
doc/Doxyfile
ladanyi@1435
   120
lemon/Makefile
ladanyi@1435
   121
lemon/lemon.pc
ladanyi@1435
   122
benchmark/Makefile
ladanyi@1435
   123
demo/Makefile
ladanyi@1435
   124
test/Makefile
ladanyi@1435
   125
gui/Makefile
ladanyi@1304
   126
])
ladanyi@1349
   127
ladanyi@542
   128
AC_OUTPUT
alpar@1372
   129
alpar@1372
   130
echo
alpar@1372
   131
echo '****************************** SUMMARY ******************************'
alpar@1372
   132
echo
alpar@1372
   133
echo Package version............... : $PACKAGE-$VERSION
alpar@1372
   134
echo
alpar@1372
   135
echo C++ compiler.................. : $CXX
alpar@1372
   136
echo C++ compiles flags............ : $CXXFLAGS
alpar@1372
   137
echo
alpar@1373
   138
echo GLPK support.................. : $lx_glpk_found
ladanyi@1380
   139
echo CPLEX support................. : $lx_cplex_found
alpar@1372
   140
echo
ladanyi@1863
   141
echo build benchmarks.............. : $enable_benchmark
ladanyi@1863
   142
echo build demo programs........... : $enable_demo
ladanyi@1404
   143
echo build GUI..................... : $enable_gui
ladanyi@1404
   144
echo
alpar@1372
   145
echo The packace will be installed in
alpar@1372
   146
echo -n '  '
alpar@1372
   147
echo $prefix.
alpar@1372
   148
echo
alpar@1372
   149
echo The documentation will be installed in
alpar@1372
   150
echo -n '  '
ladanyi@1671
   151
eval echo ${datadir}/doc/$PACKAGE.
alpar@1372
   152
echo
alpar@1372
   153
echo '*********************************************************************'
alpar@1372
   154
alpar@1372
   155
echo
alpar@1572
   156
echo configure complete, now type \'make\' and then \'make install\'.
alpar@1372
   157
echo