COIN-OR::LEMON - Graph Library

source: glemon-0.x/configure.ac @ 170:bff6d1c63cff

Last change on this file since 170:bff6d1c63cff was 170:bff6d1c63cff, checked in by Alpar Juttner, 14 years ago

Fix the compilation environment:

  • svn-head -> svnhead
  • put -lemon to the right place
File size: 2.2 KB
Line 
1dnl Process this file with autoconf to produce a configure script.
2AC_PREREQ([2.59])
3AC_INIT([gLEMON], [svnhead], [etik-ol@cs.elte.hu], [glemon])
4AC_CONFIG_AUX_DIR([build-aux])
5AC_CONFIG_MACRO_DIR([m4])
6AM_INIT_AUTOMAKE([-Wall -Werror foreign])
7AC_CONFIG_SRCDIR([main_win.h])
8AC_CONFIG_HEADERS([config.h])
9
10dnl Checks for programs.
11AC_PROG_CXX
12AC_PROG_CC
13AM_GNU_GETTEXT_VERSION([0.14.2])
14AM_GNU_GETTEXT([external])
15
16dnl Checks for libraries.
17PKG_CHECK_MODULES([GTK], [libgnomecanvasmm-2.6 >= 2.6.0 gtkmm-2.4 >= 2.6])
18
19AC_ARG_WITH([lemon-prefix],
20AS_HELP_STRING([--with-lemon-prefix@<:@=PREFIX@:>@], [search for LEMON under PREFIX]), [], [with_lemon_prefix=no])
21if test x"$with_lemon_prefix" != x"no"; then
22  PKG_CONFIG_PATH="$with_lemon_prefix/lib/pkgconfig/"
23fi
24
25PKG_CHECK_MODULES([LEMON_0_5], [lemon >= 0.5],
26  [lemon_0_5_found=yes], [
27    AC_MSG_RESULT([no])
28    lemon_0_5_found=no])
29PKG_CHECK_MODULES([LEMON_SVNHEAD], [lemon = svnhead],
30  [lemon_svn_head_found=yes], [
31    AC_MSG_RESULT([no])
32    lemon_svn_head_found=no])
33if test x"$lemon_0_5_found" = x"no" -a x"$lemon_svn_head_found" = x"no"; then
34  AC_MSG_ERROR([LEMON not found.])
35else
36  if test x"$lemon_svn_head_found" = x"yes"; then
37    LEMON_CFLAGS="$LEMON_SVNHEAD_CFLAGS"
38    LEMON_LIBS="$LEMON_SVNHEAD_LIBS"
39  else
40    LEMON_CFLAGS="$LEMON_0_5_CFLAGS"
41    LEMON_LIBS="$LEMON_0_5_LIBS"
42  fi
43  AC_SUBST(LEMON_CFLAGS)
44  AC_SUBST(LEMON_LIBS)
45fi
46
47dnl Checks for header files.
48AC_CHECK_HEADERS([libintl.h locale.h])
49
50dnl Checks for typedefs, structures, and compiler characteristics.
51AC_HEADER_STDBOOL
52AC_C_CONST
53
54dnl Checks for library functions.
55AC_CHECK_FUNCS([setlocale sqrt])
56
57AC_CONFIG_FILES([
58Makefile
59glemon.spec
60po/Makefile.in
61m4/Makefile
62])
63
64AC_OUTPUT
65
66echo
67echo '****************************** SUMMARY ******************************'
68echo
69echo Package version............... : $PACKAGE-$VERSION
70echo
71echo C++ compiler.................. : $CXX
72echo C++ compiles flags............ : $CXXFLAGS
73echo
74echo LEMON CFLAGS.................. : $LEMON_CFLAGS
75echo LEMON LIBS.................... : $LEMON_LIBS
76echo
77echo The packace will be installed in
78echo -n '  '
79echo $prefix.
80echo
81echo '*********************************************************************'
82
83echo
84echo configure complete, now type \'make\' and then \'make install\'.
85echo
Note: See TracBrowser for help on using the repository browser.