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