########################################################################### # # configure -- Configure script for top-level # # A component of the Greenstone digital library software # from the New Zealand Digital Library Project at the # University of Waikato, New Zealand. # # Copyright (C) 1999-2010 The New Zealand Digital Library Project # # This program 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 2 of the License, or # (at your option) any later version. # # This program 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, write to the Free Software # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. # ########################################################################### AC_INIT([greenstone2], [2.84-svn], [greenstone@cs.waikato.ac.nz]) AC_CONFIG_AUX_DIR([.]) AM_CONFIG_HEADER([config.h]) AM_INIT_AUTOMAKE([-Wall -Werror foreign no-define]) # This package requires C++ compilation and library creation AC_PROG_CXX AC_PROG_INSTALL AC_PROG_RANLIB # Check for 64-bit machines AC_CANONICAL_HOST AC_MSG_CHECKING(if architecture is 64-bit) arch_64bit=no case "$host_cpu" in x86_64) arch_64bit=yes ;; esac if test "$arch_64bit" = yes; then AC_MSG_RESULT(yes) if test -z "$COMPAT32BITFLAGS" ; then COMPAT32BITFLAGS="-m32" fi else AC_MSG_RESULT(no) fi AC_SUBST(COMPAT32BITFLAGS) # Option: SQLite support AC_ARG_ENABLE(sqlite, [ --enable-sqlite Enable SQLite support], USE_SQLITE=1 && AC_DEFINE(USE_SQLITE, 1, [SQLite support]), USE_SQLITE=0) AM_CONDITIONAL(USE_SQLITE, test "$USE_SQLITE" = 1) # Configure the common-src subdirectory if test -d "$srcdir/common-src"; then AC_CONFIG_SUBDIRS([common-src]) fi # Configure the runtime-src subdirectory if test -d "$srcdir/runtime-src"; then AC_CONFIG_SUBDIRS([runtime-src]) fi # Generate the Makefiles for this package AC_OUTPUT(Makefile)