configure.ac
author hegyi
Mon, 25 Sep 2006 15:30:04 +0000
changeset 154 65c1b103443d
parent 139 56dd34430f07
child 159 7ea73c90a7f0
permissions -rw-r--r--
Node view
     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 PKG_CHECK_MODULES([LEMON_0_5], [lemon >= 0.5],
    19   [lemon_0_5_found=yes], [
    20     AC_MSG_RESULT([no])
    21     lemon_0_5_found=no])
    22 PKG_CHECK_MODULES([LEMON_SVN_HEAD], [lemon = svn-head],
    23   [lemon_svn_head_found=yes], [
    24     AC_MSG_RESULT([no])
    25     lemon_svn_head_found=no])
    26 if test x"$lemon_0_5_found" = x"no" -a x"$lemon_svn_head_found" = x"no"; then
    27   AC_MSG_ERROR([LEMON not found.])
    28 else
    29   if test x"$lemon_svn_head_found" = x"yes"; then
    30     LEMON_CFLAGS="$LEMON_SVN_HEAD_CFLAGS"
    31     LEMON_LIBS="$LEMON_SVN_HEAD_LIBS"
    32   else
    33     LEMON_CFLAGS="$LEMON_0_5_CFLAGS"
    34     LEMON_LIBS="$LEMON_0_5_LIBS"
    35   fi
    36   AC_SUBST(LEMON_CFLAGS)
    37   AC_SUBST(LEMON_LIBS)
    38 fi
    39 
    40 dnl Checks for header files.
    41 AC_CHECK_HEADERS([libintl.h locale.h])
    42 
    43 dnl Checks for typedefs, structures, and compiler characteristics.
    44 AC_HEADER_STDBOOL
    45 AC_C_CONST
    46 
    47 dnl Checks for library functions.
    48 AC_CHECK_FUNCS([setlocale sqrt])
    49 
    50 AC_CONFIG_FILES([
    51 Makefile
    52 po/Makefile.in
    53 m4/Makefile
    54 ])
    55 
    56 AC_OUTPUT