[21473] | 1 | ###########################################################################
|
---|
| 2 | #
|
---|
| 3 | # configure -- Configure script for runtime-src
|
---|
| 4 | #
|
---|
| 5 | # A component of the Greenstone digital library software
|
---|
| 6 | # from the New Zealand Digital Library Project at the
|
---|
| 7 | # University of Waikato, New Zealand.
|
---|
| 8 | #
|
---|
| 9 | # Copyright (C) 1999-2010 The New Zealand Digital Library Project
|
---|
| 10 | #
|
---|
| 11 | # This program is free software; you can redistribute it and/or modify
|
---|
| 12 | # it under the terms of the GNU General Public License as published by
|
---|
| 13 | # the Free Software Foundation; either version 2 of the License, or
|
---|
| 14 | # (at your option) any later version.
|
---|
| 15 | #
|
---|
| 16 | # This program is distributed in the hope that it will be useful,
|
---|
| 17 | # but WITHOUT ANY WARRANTY; without even the implied warranty of
|
---|
| 18 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
---|
| 19 | # GNU General Public License for more details.
|
---|
| 20 | #
|
---|
| 21 | # You should have received a copy of the GNU General Public License
|
---|
| 22 | # along with this program; if not, write to the Free Software
|
---|
| 23 | # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
---|
| 24 | #
|
---|
| 25 | ###########################################################################
|
---|
| 26 |
|
---|
| 27 |
|
---|
| 28 | AC_INIT([greenstone2-runtime-src], [2.84], [[email protected]])
|
---|
| 29 | AC_CONFIG_AUX_DIR([.])
|
---|
| 30 | AM_CONFIG_HEADER([config.h])
|
---|
| 31 | AM_INIT_AUTOMAKE([-Wall -Werror foreign no-define])
|
---|
| 32 |
|
---|
[21494] | 33 | # This package requires the crypt library
|
---|
| 34 | AC_HAVE_LIBRARY(crypt)
|
---|
| 35 |
|
---|
[21473] | 36 | # This package requires C++ compilation and library creation
|
---|
| 37 | AC_PROG_CXX
|
---|
| 38 | AC_PROG_INSTALL
|
---|
| 39 | AC_PROG_RANLIB
|
---|
| 40 |
|
---|
| 41 | # Check for 64-bit machines
|
---|
| 42 | AC_CANONICAL_HOST
|
---|
| 43 | AC_MSG_CHECKING(if architecture is 64-bit)
|
---|
| 44 | arch_64bit=no
|
---|
| 45 | case "$host_cpu" in
|
---|
| 46 | x86_64) arch_64bit=yes ;;
|
---|
| 47 | esac
|
---|
| 48 | if test "$arch_64bit" = yes; then
|
---|
| 49 | AC_MSG_RESULT(yes)
|
---|
| 50 | if test -z "$COMPAT32BITFLAGS" ; then
|
---|
| 51 | COMPAT32BITFLAGS="-m32"
|
---|
| 52 | fi
|
---|
| 53 | else
|
---|
| 54 | AC_MSG_RESULT(no)
|
---|
| 55 | fi
|
---|
| 56 | AC_SUBST(COMPAT32BITFLAGS)
|
---|
| 57 |
|
---|
[21519] | 58 | # Option: SQLite support (enabled by default)
|
---|
| 59 | AC_ARG_ENABLE([sqlite], [AS_HELP_STRING([--disable-sqlite], [Disable SQLite support])], [], [enable_sqlite=yes])
|
---|
| 60 | if test "x$enable_sqlite" != xno; then
|
---|
| 61 | AC_DEFINE(USE_SQLITE, 1, [SQLite support])
|
---|
| 62 | fi
|
---|
| 63 | AM_CONDITIONAL(USE_SQLITE, test "x$enable_sqlite" != xno)
|
---|
[21473] | 64 |
|
---|
| 65 | # Generate the Makefiles for this package
|
---|
[21505] | 66 | AC_OUTPUT(Makefile src/colservr/Makefile src/protocol/Makefile src/recpt/Makefile src/oaiservr/Makefile)
|
---|