[1] | 1 | dnl Process this file with autoconf to produce a configure script. |
---|
| 2 | |
---|
| 3 | dnl Version information. |
---|
| 4 | m4_define([glemon_version_major], [0]) |
---|
| 5 | m4_define([glemon_version_minor], [5]) |
---|
| 6 | m4_define([glemon_version_micro], [90]) |
---|
| 7 | m4_define([glemon_version_nano], []) |
---|
| 8 | m4_define([glemon_version_tag], [svn]) |
---|
| 9 | m4_define([glemon_svn_revision], [m4_normalize(esyscmd([svn info |grep ^Revision |cut -d ' ' -f 2]))]) |
---|
| 10 | m4_define([glemon_version], [glemon_version_major().glemon_version_minor()ifelse(glemon_version_micro(), [], [], [.glemon_version_micro()])ifelse(glemon_version_nano(), [], [], [.glemon_version_nano()])ifelse(glemon_version_tag(), [], [], glemon_version_tag(), [svn], [[_]glemon_version_tag()[]glemon_svn_revision()], [[_]glemon_version_tag()])]) |
---|
| 11 | |
---|
| 12 | AC_PREREQ([2.59]) |
---|
| 13 | AC_INIT([gLEMON], [glemon_version()], [etik-ol@cs.elte.hu], [glemon]) |
---|
| 14 | AC_CONFIG_AUX_DIR([build-aux]) |
---|
| 15 | AC_CONFIG_MACRO_DIR([m4]) |
---|
| 16 | AM_INIT_AUTOMAKE([-Wall -Werror foreign]) |
---|
| 17 | AC_CONFIG_SRCDIR([main_win.h]) |
---|
| 18 | AC_CONFIG_HEADERS([config.h]) |
---|
| 19 | |
---|
| 20 | dnl Checks for programs. |
---|
| 21 | AC_PROG_CXX |
---|
| 22 | AC_PROG_CC |
---|
| 23 | AM_GNU_GETTEXT_VERSION([0.14.2]) |
---|
| 24 | AM_GNU_GETTEXT([external]) |
---|
| 25 | |
---|
| 26 | dnl Checks for libraries. |
---|
| 27 | PKG_CHECK_MODULES([GTK], [libgnomecanvasmm-2.6 >= 2.6.0 gtkmm-2.4 >= 2.6]) |
---|
| 28 | |
---|
| 29 | AC_ARG_WITH([lemon], |
---|
| 30 | AS_HELP_STRING([--with-lemon@<:@=PREFIX@:>@], [search for LEMON under PREFIX]), [], [with_lemon=no]) |
---|
| 31 | if test x"$with_lemon" != x"no"; then |
---|
| 32 | export PKG_CONFIG_PATH="$with_lemon/lib/pkgconfig/:$PKG_CONFIG_PATH" |
---|
| 33 | fi |
---|
| 34 | |
---|
| 35 | PKG_CHECK_MODULES([LEMON], [lemon >= 0.6.90]) |
---|
| 36 | |
---|
| 37 | dnl Checks for header files. |
---|
| 38 | AC_CHECK_HEADERS([libintl.h locale.h]) |
---|
| 39 | |
---|
| 40 | dnl Checks for typedefs, structures, and compiler characteristics. |
---|
| 41 | AC_HEADER_STDBOOL |
---|
| 42 | AC_C_CONST |
---|
| 43 | |
---|
| 44 | dnl Checks for library functions. |
---|
| 45 | AC_CHECK_FUNCS([setlocale sqrt]) |
---|
| 46 | |
---|
| 47 | AC_CONFIG_FILES([ |
---|
| 48 | Makefile |
---|
| 49 | glemon.spec |
---|
| 50 | autopackage/default.apspec |
---|
| 51 | po/Makefile.in |
---|
| 52 | m4/Makefile |
---|
| 53 | ]) |
---|
| 54 | |
---|
| 55 | AC_OUTPUT |
---|
| 56 | |
---|
| 57 | echo |
---|
| 58 | echo '****************************** SUMMARY ******************************' |
---|
| 59 | echo |
---|
| 60 | echo Package version............... : $PACKAGE-$VERSION |
---|
| 61 | echo |
---|
| 62 | echo C++ compiler.................. : $CXX |
---|
| 63 | echo C++ compiles flags............ : $CXXFLAGS |
---|
| 64 | echo |
---|
| 65 | echo LEMON CFLAGS.................. : $LEMON_CFLAGS |
---|
| 66 | echo LEMON LIBS.................... : $LEMON_LIBS |
---|
| 67 | echo |
---|
| 68 | echo The packace will be installed in |
---|
| 69 | echo -n ' ' |
---|
| 70 | echo $prefix. |
---|
| 71 | echo |
---|
| 72 | echo '*********************************************************************' |
---|
| 73 | |
---|
| 74 | echo |
---|
| 75 | echo configure complete, now type \'make\' and then \'make install\'. |
---|
| 76 | echo |
---|