source: main/trunk/gs2-core/runtime-src/configure.ac@ 21505

Last change on this file since 21505 was 21505, checked in by mdewsnip, 14 years ago

Now compiles src/oaiservr directory too.

File size: 2.1 KB
Line 
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
28AC_INIT([greenstone2-runtime-src], [2.84], [[email protected]])
29AC_CONFIG_AUX_DIR([.])
30AM_CONFIG_HEADER([config.h])
31AM_INIT_AUTOMAKE([-Wall -Werror foreign no-define])
32
33# This package requires the crypt library
34AC_HAVE_LIBRARY(crypt)
35
36# This package requires C++ compilation and library creation
37AC_PROG_CXX
38AC_PROG_INSTALL
39AC_PROG_RANLIB
40
41# Check for 64-bit machines
42AC_CANONICAL_HOST
43AC_MSG_CHECKING(if architecture is 64-bit)
44arch_64bit=no
45case "$host_cpu" in
46 x86_64) arch_64bit=yes ;;
47esac
48if test "$arch_64bit" = yes; then
49 AC_MSG_RESULT(yes)
50 if test -z "$COMPAT32BITFLAGS" ; then
51 COMPAT32BITFLAGS="-m32"
52 fi
53else
54 AC_MSG_RESULT(no)
55fi
56AC_SUBST(COMPAT32BITFLAGS)
57
58# Option: SQLite support
59AC_ARG_ENABLE(sqlite, [ --enable-sqlite Enable SQLite support], USE_SQLITE=1 && AC_DEFINE(USE_SQLITE, 1, [SQLite support]), USE_SQLITE=0)
60AM_CONDITIONAL(USE_SQLITE, test "$USE_SQLITE" = 1)
61
62# Generate the Makefiles for this package
63AC_OUTPUT(Makefile src/colservr/Makefile src/protocol/Makefile src/recpt/Makefile src/oaiservr/Makefile)
Note: See TracBrowser for help on using the repository browser.