1 | ###########################################################################
|
---|
2 | #
|
---|
3 | # configure -- Configure script for runtime-src
|
---|
4 | #
|
---|
5 | # By Michael Dewsnip
|
---|
6 | #
|
---|
7 | # Copyright (C) 2010 DL Consulting Ltd.
|
---|
8 | #
|
---|
9 | ###########################################################################
|
---|
10 |
|
---|
11 |
|
---|
12 | AC_INIT([greenstone2-runtime-src], [2.84], [[email protected]])
|
---|
13 | AC_CONFIG_AUX_DIR([.])
|
---|
14 | AC_CONFIG_HEADERS([config.h])
|
---|
15 | AM_INIT_AUTOMAKE([-Wall -Werror foreign no-define])
|
---|
16 |
|
---|
17 | # This package requires the crypt library
|
---|
18 | AC_HAVE_LIBRARY(crypt)
|
---|
19 |
|
---|
20 | # This package requires C++ compilation and library creation
|
---|
21 | AC_PROG_CXX
|
---|
22 | AC_PROG_INSTALL
|
---|
23 | AC_PROG_RANLIB
|
---|
24 |
|
---|
25 | # Check for 64-bit machines
|
---|
26 | AC_CANONICAL_HOST
|
---|
27 | AC_MSG_CHECKING(if architecture is 64-bit)
|
---|
28 | arch_64bit=no
|
---|
29 | case "$host_cpu" in
|
---|
30 | x86_64) arch_64bit=yes ;;
|
---|
31 | esac
|
---|
32 | if test "$arch_64bit" = yes; then
|
---|
33 | AC_MSG_RESULT(yes)
|
---|
34 | if test -z "$COMPAT32BITFLAGS" ; then
|
---|
35 | COMPAT32BITFLAGS="-m32"
|
---|
36 | fi
|
---|
37 | else
|
---|
38 | AC_MSG_RESULT(no)
|
---|
39 | fi
|
---|
40 | AC_SUBST(COMPAT32BITFLAGS)
|
---|
41 |
|
---|
42 | # Option: Lucene support (enabled by default)
|
---|
43 | AC_ARG_ENABLE([lucene], [AS_HELP_STRING([--disable-lucene], [Disable Lucene support])], [], [enable_lucene=yes])
|
---|
44 | if test "x$enable_lucene" != xno; then
|
---|
45 | AC_DEFINE(ENABLE_LUCENE, 1, [Lucene support])
|
---|
46 | fi
|
---|
47 | AM_CONDITIONAL(ENABLE_LUCENE, test "x$enable_lucene" != xno)
|
---|
48 |
|
---|
49 | # Option: SQLite support (enabled by default)
|
---|
50 | AC_ARG_ENABLE([sqlite], [AS_HELP_STRING([--disable-sqlite], [Disable SQLite support])], [], [enable_sqlite=yes])
|
---|
51 | if test "x$enable_sqlite" != xno; then
|
---|
52 | AC_DEFINE(USE_SQLITE, 1, [SQLite support])
|
---|
53 | fi
|
---|
54 | AM_CONDITIONAL(USE_SQLITE, test "x$enable_sqlite" != xno)
|
---|
55 |
|
---|
56 | # Generate the Makefiles for this package
|
---|
57 | AC_OUTPUT(Makefile src/colservr/Makefile src/protocol/Makefile src/recpt/Makefile src/oaiservr/Makefile)
|
---|