configure.ac
author hegyi
Thu, 12 Oct 2006 11:39:29 +0000
changeset 160 14a76109b561
parent 144 887cd09ea943
child 164 70e3c3646283
permissions -rw-r--r--
Node antigravity and edge elasticity based graph layout redesigner.
     1 dnl Process this file with autoconf to produce a configure script.
     2 AC_PREREQ([2.59])
     3 AC_INIT([gLEMON], [svn-head], [etik-ol@cs.elte.hu], [glemon])
     4 AC_CONFIG_AUX_DIR([build-aux])
     5 AC_CONFIG_MACRO_DIR([m4])
     6 AM_INIT_AUTOMAKE([-Wall -Werror foreign])
     7 AC_CONFIG_SRCDIR([main_win.h])
     8 AC_CONFIG_HEADERS([config.h])
     9 
    10 dnl Checks for programs.
    11 AC_PROG_CXX
    12 AC_PROG_CC
    13 AM_GNU_GETTEXT_VERSION([0.14.2])
    14 AM_GNU_GETTEXT([external])
    15 
    16 dnl Checks for libraries.
    17 PKG_CHECK_MODULES([GTK], [libgnomecanvasmm-2.6 >= 2.6.0 gtkmm-2.4 >= 2.6])
    18 
    19 AC_ARG_WITH([lemon-prefix],
    20 AS_HELP_STRING([--with-lemon-prefix@<:@=PREFIX@:>@], [search for LEMON under PREFIX]), [], [with_lemon_prefix=no])
    21 if test x"$with_lemon_prefix" != x"no"; then
    22   PKG_CONFIG_PATH="$with_lemon_prefix/lib/pkgconfig/"
    23 fi
    24 
    25 PKG_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])
    29 PKG_CHECK_MODULES([LEMON_SVN_HEAD], [lemon = svn-head],
    30   [lemon_svn_head_found=yes], [
    31     AC_MSG_RESULT([no])
    32     lemon_svn_head_found=no])
    33 if test x"$lemon_0_5_found" = x"no" -a x"$lemon_svn_head_found" = x"no"; then
    34   AC_MSG_ERROR([LEMON not found.])
    35 else
    36   if test x"$lemon_svn_head_found" = x"yes"; then
    37     LEMON_CFLAGS="$LEMON_SVN_HEAD_CFLAGS"
    38     LEMON_LIBS="$LEMON_SVN_HEAD_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)
    45 fi
    46 
    47 dnl Checks for header files.
    48 AC_CHECK_HEADERS([libintl.h locale.h])
    49 
    50 dnl Checks for typedefs, structures, and compiler characteristics.
    51 AC_HEADER_STDBOOL
    52 AC_C_CONST
    53 
    54 dnl Checks for library functions.
    55 AC_CHECK_FUNCS([setlocale sqrt])
    56 
    57 AC_CONFIG_FILES([
    58 Makefile
    59 po/Makefile.in
    60 m4/Makefile
    61 ])
    62 
    63 AC_OUTPUT