/ [runasimi] / trunk / configure.ac
To checkout: svn checkout http://svn.gnu.org.ua/sources/runasimi/trunk/configure.ac
Puszcza

Contents of /trunk/configure.ac

Parent Directory Parent Directory | Revision Log Revision Log


Revision 20 - (show annotations)
Fri Sep 30 08:50:32 2005 UTC (15 years, 9 months ago) by gray
File size: 2633 byte(s)
Use lingua instead of eXtrans

1 # This file is part of Runasimi -*- autoconf -*-
2 # Copyright (C) 2004, 2005 Sergey Poznyakoff
3 #
4 # Runasimi is free software; you can redistribute it and/or modify
5 # it under the terms of the GNU General Public License as published by
6 # the Free Software Foundation; either version 2 of the License, or
7 # (at your option) any later version.
8 #
9 # Runasimi is distributed in the hope that it will be useful,
10 # but WITHOUT ANY WARRANTY; without even the implied warranty of
11 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 # GNU General Public License for more details.
13 #
14 # You should have received a copy of the GNU General Public License
15 # along with Runasimi; if not, write to the Free Software
16 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
17 #
18
19 AC_PREREQ(2.59)
20
21 AC_REVISION($Revision$)
22 AC_INIT([runasimi], [1.0], [gray@gnu.org.ua])
23 AC_CONFIG_SRCDIR([cgi-bin/dict.cgi.in])
24 AC_CONFIG_AUX_DIR([scripts])
25 AC_CANONICAL_SYSTEM
26 AM_INIT_AUTOMAKE(no-exeext)
27 AC_CONFIG_HEADERS([config.h])
28
29 ## * Checks for programs.
30
31 M4='`cd $(top_srcdir); pwd`/scripts/missing --run m4'
32 AC_SUBST(M4)
33
34 AM_GNU_GETTEXT(external, need-ngettext)
35 AM_GNU_GETTEXT_VERSION(0.14.1)
36
37 RA_CHECK_GUILE(,
38 [case "$GUILE_VERSION" in
39 14) AC_MSG_ERROR([You need Guile 1.6 or better]);;
40 16|17) GUILE_SNARF_VERSION="1.6";;
41 *) ;;
42 esac],
43 [AC_MSG_ERROR([You need Guile 1.6 or better])])
44
45 RA_CHECK_LIB(mysqlclient,
46 mysql_real_connect,
47 [-lm],
48 [],
49 [AC_MSG_FAILURE([The required library libmysqlclient is not found or is unusable])],
50 [/usr/local/lib/mysql /usr/lib/mysql])
51
52 LIBS="$LIBS $ra_cv_lib_mysqlclient"
53
54 ## **************
55 ## Directories
56 ## **************
57 AC_SUBST(GUILE_BINDIR)
58 GUILE_BINDIR=`guile-config info bindir`
59
60 case `guile -c "(display (member \"$GUILE_SITE\" %load-path))(newline)"` in
61 \#f) GUILE_COMMENT=;;
62 *) GUILE_COMMENT=";;" ;;
63 esac
64
65 AC_SUBST(GUILE_COMMENT)
66 AC_SUBST(GUILE_SITE)
67
68
69 CGIDIR='$(prefix)/cgi-bin'
70 AC_ARG_WITH(cgi-bin,
71 AC_HELP_STRING([--with-cgi-bin=DIR],
72 [install CGI programs in DIR [[PREFIX/cgi-bin]]]),
73 [CGIDIR=$withval])
74 AC_SUBST(CGIDIR)
75
76 HTMLDIR='$(prefix)/runasimi'
77 AC_ARG_WITH(html-dir,
78 AC_HELP_STRING([--with-html-dir=DIR],
79 [install HTML pages in DIR [[PREFIX/runasimi]]]),
80 [HTMLDIR=$withval])
81 AC_SUBST(HTMLDIR)
82
83 AC_SUBST(BASE_HREF)
84 AC_SUBST(TARGET_DIR)
85
86 AC_SUBST(AUTOGENERATED)
87 AUTOGENERATED=";;;; This file is generated automatically. Please do not edit."
88
89 AC_OUTPUT(Makefile
90 cgi-bin/Makefile
91 xml/Makefile
92 po/Makefile.in)

Properties

Name Value
svn:eol-style native
svn:keywords Author Date Id Revision

Send suggestions and bug reports to Sergey Poznyakoff
ViewVC Help
Powered by ViewVC 1.1.20