# This file is part of Ellinika -*- autoconf -*- # Copyright (C) 2004, 2005, 2007, 2008, 2010 Sergey Poznyakoff # # Ellinika is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 3 of the License, or # (at your option) any later version. # # Ellinika is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program. If not, see . # AC_PREREQ(2.61) AC_REVISION($Revision: 557 $) AC_INIT(ellinika, 1.99.99, [gray+ellinika@gnu.org.ua]) AC_CONFIG_SRCDIR(src/cgi-bin/dict.scm4) AC_CONFIG_AUX_DIR([build-aux]) AC_CANONICAL_SYSTEM AM_INIT_AUTOMAKE([1.11 no-exeext]) AM_CONFIG_HEADER([config.h]) AC_CONFIG_MACRO_DIR([m4]) ## * Checks for programs. AC_PROG_CC AC_PROG_YACC AM_PROG_LIBTOOL M4='`cd $(top_srcdir); pwd`/scripts/missing --run m4' AC_SUBST(M4) AM_GNU_GETTEXT([external], [need-ngettext]) AM_GNU_GETTEXT_VERSION([0.17]) MU_CHECK_GUILE(,, [AC_MSG_ERROR([You need Guile 1.8 or newer])]) RA_CHECK_LIB(mysqlclient, mysql_real_connect, [-lm], [], [AC_MSG_FAILURE([The required library libmysqlclient is not found or is unusable])], [/usr/local/lib/mysql /usr/lib/mysql]) LIBS="$LIBS $ra_cv_lib_mysqlclient" ## ************** ## Directories ## ************** AC_SUBST(GUILE_BINDIR) GUILE_BINDIR=`guile-config info bindir` case `guile -c "(display (member \"$GUILE_SITE\" %load-path))(newline)"` in \#f) GUILE_COMMENT=;; *) GUILE_COMMENT=";;" ;; esac AC_SUBST(GUILE_COMMENT) AC_SUBST(GUILE_SITE) HTMLDIR='$(prefix)/ellinika' AC_ARG_WITH(html-dir, AC_HELP_STRING([--with-html-dir=DIR], [install HTML pages in DIR [[PREFIX/ellinika]]]), [HTMLDIR=$withval]) AC_SUBST(HTMLDIR) AC_SUBST(APACHE_IFACE,CGI) AC_ARG_ENABLE(cgi, AC_HELP_STRING([--enable-cgi], [Use CGI or SCM]), [case $enableval in yes) APACHE_IFACE=CGI;; no) APACHE_IFACE=SCM;; *) AC_MSG_ERROR([unknown argument to --enable-cgi]) esac]) AC_ARG_VAR([BASE_HREF], [Set default ]) AC_ARG_VAR([TARGET_DIR], [(Deprecated) Set target subdirectory (under prefix)]) AC_ARG_VAR([PROD_URL], [URL for the production site]) AC_ARG_VAR([EXP_URL], [URL for the experimental site]) AC_ARG_VAR([STATE], [EXP for experimental, PROD for production]) AC_SUBST(SCRIPT_SUFFIX) AC_SUBST(SCRIPT_DIR) AC_SUBST(CGIDIR) if test $APACHE_IFACE = "CGI"; then SCRIPT_SUFFIX=cgi if test -n "$TARGET_DIR"; then SCRIPT_DIR=cgi-bin else SCRIPT_DIR=/cgi-bin fi CGIDIR='$(prefix)/cgi-bin' else SCRIPT_SUFFIX=scm SCRIPT_DIR=scm CGIDIR='$(prefix)/scm' fi AC_ARG_WITH(cgi-bin, AC_HELP_STRING([--with-cgi-bin=DIR], [install CGI programs in DIR [[PREFIX/cgi-bin]]]), [CGIDIR=$withval]) dnl Check for Emacs site-lisp directory AM_PATH_LISPDIR if test "$EMACS" != "no"; then lisp_LISP='$(LISPSRC)' fi AC_SUBST(lisp_LISP) AC_SUBST(AUTOGENERATED, ";;;; This file is generated automatically. Please do not edit. -*- buffer-read-only: t -*- vi: set ro:") AC_CONFIG_FILES(Makefile .htaccess src/Makefile src/cgi-bin/Makefile src/ellinika/Makefile elisp/Makefile scm/Makefile data/Makefile data/pl/Makefile data/ru/Makefile xml/Makefile xml/pl/Makefile xml/ru/Makefile xml/uk/Makefile html-files/Makefile po/Makefile.in) AC_OUTPUT