1 | dnl
|
---|
2 | dnl Disable accent folding
|
---|
3 | dnl
|
---|
4 |
|
---|
5 | dnl AC_INIT(mgpp/text/MGQuery.cpp)
|
---|
6 | dnl http://www.gnu.org/software/hello/manual/autoconf/Initializing-configure.html
|
---|
7 | AC_INIT()
|
---|
8 | AC_ARG_ENABLE(accentfold, [ --disable-accentfold Disable Accent Folding for MGPP], ENABLE_ACCENTFOLD=$enableval, ENABLE_ACCENTFOLD=yes)
|
---|
9 | if test $ENABLE_ACCENTFOLD = "yes" -o $ENABLE_ACCENTFOLD = "1" ; then
|
---|
10 | ENABLE_ACCENTFOLD=1
|
---|
11 | AC_DEFINE(ENABLE_ACCENTFOLD,[])
|
---|
12 | else
|
---|
13 | ENABLE_ACCENTFOLD=0
|
---|
14 | fi
|
---|
15 | AC_SUBST(ENABLE_ACCENTFOLD)
|
---|
16 |
|
---|
17 |
|
---|
18 | dnl
|
---|
19 | dnl Set compilation of JNI parts of MG and MGPP indexers (disabled by default, which is GS2's default behaviour)
|
---|
20 | dnl
|
---|
21 | AC_ARG_ENABLE(jni, [ --enable-jni Enable JNI compilation], ENABLE_JNI=$enableval, ENABLE_JNI=no)
|
---|
22 | if test $ENABLE_JNI = "yes" -o $ENABLE_JNI = "1" ; then
|
---|
23 | ENABLE_JNI=1
|
---|
24 | AC_DEFINE(ENABLE_JNI,[])
|
---|
25 | else
|
---|
26 | ENABLE_JNI=0
|
---|
27 | fi
|
---|
28 | AC_SUBST(ENABLE_JNI)
|
---|
29 |
|
---|
30 |
|
---|
31 | dnl
|
---|
32 | dnl Set compilation of MG (enabled by default)
|
---|
33 | dnl
|
---|
34 | AC_ARG_ENABLE(mg, [ --disable-mg Disable MG compilation], ENABLE_MG=$enableval, ENABLE_MG=yes)
|
---|
35 | if test $ENABLE_MG = "yes" -o $ENABLE_MG = "1" ; then
|
---|
36 | ENABLE_MG=1
|
---|
37 | AC_DEFINE(ENABLE_MG,[])
|
---|
38 | else
|
---|
39 | ENABLE_MG=0
|
---|
40 | fi
|
---|
41 | AC_SUBST(ENABLE_MG)
|
---|
42 |
|
---|
43 |
|
---|
44 | dnl
|
---|
45 | dnl Set compilation of MGPP (enabled by default)
|
---|
46 | dnl
|
---|
47 | AC_ARG_ENABLE(mgpp, [ --disable-mgpp Disable MGPP compilation], ENABLE_MGPP=$enableval, ENABLE_MGPP=yes)
|
---|
48 | if test $ENABLE_MGPP = "yes" -o $ENABLE_MGPP = "1" ; then
|
---|
49 | ENABLE_MGPP=1
|
---|
50 | AC_DEFINE(ENABLE_MGPP,[])
|
---|
51 | else
|
---|
52 | ENABLE_MGPP=0
|
---|
53 | fi
|
---|
54 | AC_SUBST(ENABLE_MGPP)
|
---|
55 |
|
---|
56 | dnl
|
---|
57 | dnl Set compilation of Lucene (enabled by default)
|
---|
58 | dnl
|
---|
59 | AC_ARG_ENABLE(lucene, [ --disable-lucene Disable Lucene compilation], ENABLE_LUCENE=$enableval, ENABLE_LUCENE=yes)
|
---|
60 | if test $ENABLE_LUCENE = "yes" -o $ENABLE_LUCENE = "1" ; then
|
---|
61 | ENABLE_LUCENE=1
|
---|
62 | AC_DEFINE(ENABLE_LUCENE,[])
|
---|
63 | else
|
---|
64 | ENABLE_LUCENE=0
|
---|
65 | fi
|
---|
66 | AC_SUBST(ENABLE_LUCENE)
|
---|
67 |
|
---|
68 |
|
---|
69 | AC_DEFINE_UNQUOTED(COMPAT32BITFLAGS, $COMPAT32BITFLAGS)
|
---|
70 | AC_SUBST(COMPAT32BITFLAGS)
|
---|
71 |
|
---|
72 | dnl
|
---|
73 | dnl Make sure Javac and Java are available
|
---|
74 | dnl
|
---|
75 |
|
---|
76 | AC_PROG_JAVAC
|
---|
77 | AC_PROG_JAVA
|
---|
78 |
|
---|
79 | dnl
|
---|
80 | dnl Specify location of unac - if specified, will be passed to cascading configures
|
---|
81 | dnl
|
---|
82 | AC_ARG_WITH(unac, [ --with-unac=dir Use specified unac directory], UNAC_DIR=$withval)
|
---|
83 |
|
---|
84 | dnl
|
---|
85 | dnl Specify location of libiconv - if specified, will be passed to cascading configures
|
---|
86 | dnl
|
---|
87 | AC_ARG_WITH(libiconv, [ --with-libiconv-prefix=dir Use specified libiconv directory], LIBICONV_DIR=$withval)
|
---|
88 |
|
---|
89 | if test $ENABLE_ACCENTFOLD = 1; then
|
---|
90 | AC_CONFIG_SUBDIRS(packages/unac)
|
---|
91 | fi
|
---|
92 |
|
---|
93 | dnl AC_CONFIG_SUBDIRS(mg mgpp)
|
---|
94 |
|
---|
95 | if test $ENABLE_MG = 1; then
|
---|
96 | if test ! -d mg; then
|
---|
97 | echo "***** Folder mg does not exist, cannot ENABLE_MG.";
|
---|
98 | exit 1;
|
---|
99 | fi
|
---|
100 | AC_CONFIG_SUBDIRS(mg)
|
---|
101 | fi
|
---|
102 |
|
---|
103 | if test $ENABLE_MGPP = 1; then
|
---|
104 | if test ! -d mgpp; then
|
---|
105 | echo "***** Folder mgpp does not exist, cannot ENABLE_MGPP.";
|
---|
106 | exit 1;
|
---|
107 | fi
|
---|
108 | AC_CONFIG_SUBDIRS(mgpp)
|
---|
109 | fi
|
---|
110 |
|
---|
111 | if test $ENABLE_LUCENE = 1; then
|
---|
112 | if test ! -d lucene-gs; then
|
---|
113 | echo "***** Folder lucene-gs does not exist, cannot ENABLE_LUCENE.";
|
---|
114 | exit 1;
|
---|
115 | fi
|
---|
116 | fi
|
---|
117 |
|
---|
118 | AC_OUTPUT(Makefile)
|
---|