1 | dnl Process this file with autoconf to produce a configure script.
|
---|
2 | dnl Use autoconf-2.59 or later... it might not work anymore with
|
---|
3 | dnl the older 2.1x versions - jrm21 12/2004
|
---|
4 | AC_INIT()
|
---|
5 | AC_CONFIG_HEADER(config.h)
|
---|
6 |
|
---|
7 |
|
---|
8 |
|
---|
9 | PACKAGE=gsdl
|
---|
10 | VERSION=2.x-svn
|
---|
11 | AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE")
|
---|
12 | AC_DEFINE_UNQUOTED(VERSION, "$VERSION")
|
---|
13 | AC_SUBST(PACKAGE)
|
---|
14 | AC_SUBST(VERSION)
|
---|
15 |
|
---|
16 | dnl
|
---|
17 | dnl Set use of fast cgi
|
---|
18 | dnl
|
---|
19 | USE_FASTCGI=0
|
---|
20 | if test USE_FASTCGI = 1; then
|
---|
21 | AC_DEFINE(USE_FASTCGI)
|
---|
22 | AC_SUBST(USE_FASTCGI)
|
---|
23 | fi
|
---|
24 |
|
---|
25 | dnl
|
---|
26 | dnl Set use of langaction
|
---|
27 | dnl
|
---|
28 | dnl USE_LANGACTION=0
|
---|
29 | if test USE_LANGACTION = 1; then
|
---|
30 | AC_DEFINE(USE_LANGACTION)
|
---|
31 | AC_SUBST(USE_LANGACTION)
|
---|
32 | fi
|
---|
33 |
|
---|
34 | dnl
|
---|
35 | dnl Set use of corba
|
---|
36 | dnl
|
---|
37 | AC_ARG_ENABLE(corba, [ --enable-corba Enable CORBA support], USE_CORBA=$enableval, USE_CORBA=no)
|
---|
38 | if test $USE_CORBA = "yes" -o $USE_CORBA = "1" ; then
|
---|
39 | USE_CORBA=1
|
---|
40 | AC_DEFINE(USE_CORBA,[])
|
---|
41 | else
|
---|
42 | USE_CORBA=0
|
---|
43 | fi
|
---|
44 | AC_SUBST(USE_CORBA)
|
---|
45 |
|
---|
46 | AC_ARG_WITH(micodir, [ --with-micodir Use installed MICO directory], MICO_DIR=$withval, MICO_DIR="default")
|
---|
47 | AC_DEFINE_UNQUOTED(MICO_DIR, "$MICO_DIR")
|
---|
48 | AC_SUBST(MICO_DIR)
|
---|
49 |
|
---|
50 | dnl
|
---|
51 | dnl Set use of z39.50
|
---|
52 | dnl
|
---|
53 | AC_ARG_ENABLE(z3950, [ --enable-z3950 Enable Z39.50 client support], USE_Z3950=$enableval, USE_Z3950=no)
|
---|
54 | if test $USE_Z3950 = "yes" -o $USE_Z3950 = "1" ; then
|
---|
55 | USE_Z3950=1
|
---|
56 | AC_DEFINE(USE_Z3950,[])
|
---|
57 | else
|
---|
58 | USE_Z3950=0
|
---|
59 | fi
|
---|
60 | AC_SUBST(USE_Z3950)
|
---|
61 |
|
---|
62 | dnl
|
---|
63 | dnl Set use of yaz - now compiled by default even when z3950 support not required
|
---|
64 | dnl
|
---|
65 | AC_ARG_ENABLE(yaz, [ --disable-yaz Disable YAZ compilation], USE_YAZ=$enableval, USE_YAZ=yes)
|
---|
66 | if test $USE_YAZ = "yes" -o $USE_YAZ = "1" ; then
|
---|
67 | USE_YAZ=1
|
---|
68 | AC_DEFINE(USE_YAZ,[])
|
---|
69 | else
|
---|
70 | USE_YAZ=0
|
---|
71 | fi
|
---|
72 | AC_SUBST(USE_YAZ)
|
---|
73 |
|
---|
74 | dnl
|
---|
75 | dnl Disable all Java compilation
|
---|
76 | dnl
|
---|
77 | AC_ARG_ENABLE(java, [ --disable-java Disable Java compilation], ENABLE_JAVA=$enableval, ENABLE_JAVA=yes)
|
---|
78 | if test $ENABLE_JAVA = "yes" -o $ENABLE_JAVA = "1" ; then
|
---|
79 | ENABLE_JAVA=1
|
---|
80 | if test "x$JAVA_HOME" != "x" ; then
|
---|
81 | echo "Detected JAVA_HOME is set, however this will not be used during compilation"
|
---|
82 | echo "To control the version of 'javac' and 'java' set environment variables JAVAC"
|
---|
83 | echo "and JAVA respectively"
|
---|
84 | export JAVA_HOME=
|
---|
85 | fi
|
---|
86 | else
|
---|
87 | ENABLE_JAVA=0
|
---|
88 | fi
|
---|
89 | AC_SUBST(ENABLE_JAVA)
|
---|
90 |
|
---|
91 | dnl
|
---|
92 | dnl Set use of JDBM (enabled by default)
|
---|
93 | dnl
|
---|
94 | AC_ARG_ENABLE(jdbm, [ --disable-jdbm Disable JDBM compilation], USE_JDBM=$enableval, USE_JDBM=yes)
|
---|
95 | if test $ENABLE_JAVA = "1" -a \( $USE_JDBM = "yes" -o $USE_JDBM = "1" \) ; then
|
---|
96 | USE_JDBM=1
|
---|
97 | AC_DEFINE(USE_JDBM,[])
|
---|
98 | else
|
---|
99 | USE_JDBM=0
|
---|
100 | fi
|
---|
101 | AC_SUBST(USE_JDBM)
|
---|
102 |
|
---|
103 | dnl
|
---|
104 | dnl Set use of GDBM (enabled by default)
|
---|
105 | dnl
|
---|
106 | AC_ARG_ENABLE(gdbm, [ --disable-gdbm Disable GDBM compilation], USE_GDBM=$enableval, USE_GDBM=yes)
|
---|
107 | if test $USE_GDBM = "yes" -o $USE_GDBM = "1" ; then
|
---|
108 | USE_GDBM=1
|
---|
109 | AC_DEFINE(USE_GDBM,[])
|
---|
110 | else
|
---|
111 | USE_GDBM=0
|
---|
112 | fi
|
---|
113 | AC_SUBST(USE_GDBM)
|
---|
114 |
|
---|
115 | dnl
|
---|
116 | dnl disable compilation of accent folding stuff for mgpp (and one day mg)
|
---|
117 | dnl
|
---|
118 | AC_ARG_ENABLE(accentfold, [ --disable-accentfold Disable Accent Folding for MGPP], ENABLE_ACCENTFOLD=$enableval, ENABLE_ACCENTFOLD=yes)
|
---|
119 | if test $ENABLE_ACCENTFOLD = "yes" -o $ENABLE_ACCENTFOLD = "1" ; then
|
---|
120 | ENABLE_ACCENTFOLD=1
|
---|
121 | AC_DEFINE(ENABLE_ACCENTFOLD,[])
|
---|
122 | else
|
---|
123 | ENABLE_ACCENTFOLD=0
|
---|
124 | fi
|
---|
125 | AC_SUBST(ENABLE_ACCENTFOLD)
|
---|
126 |
|
---|
127 | dnl
|
---|
128 | dnl Set use of SQLite (enabled by default)
|
---|
129 | dnl
|
---|
130 | AC_ARG_ENABLE(sqlite, [ --disable-sqlite Disable SQLite support], USE_SQLITE=$enableval, USE_SQLITE=yes)
|
---|
131 | if test $USE_SQLITE = "yes" -o $USE_SQLITE = "1" ; then
|
---|
132 | USE_SQLITE=1
|
---|
133 | AC_DEFINE(USE_SQLITE,[])
|
---|
134 | else
|
---|
135 | USE_SQLITE=0
|
---|
136 | fi
|
---|
137 | AC_SUBST(USE_SQLITE)
|
---|
138 |
|
---|
139 | dnl
|
---|
140 | dnl Set use of RSS (enabled by default)
|
---|
141 | dnl
|
---|
142 | AC_ARG_ENABLE(rss, [ --disable-rss Disable RSS support], USE_RSS=$enableval, USE_RSS=yes)
|
---|
143 | if test $USE_RSS = "yes" -o $USE_RSS = "1" ; then
|
---|
144 | USE_RSS=1
|
---|
145 | AC_DEFINE(USE_RSS,[])
|
---|
146 | else
|
---|
147 | USE_RSS=0
|
---|
148 | fi
|
---|
149 | AC_SUBST(USE_RSS)
|
---|
150 |
|
---|
151 |
|
---|
152 | dnl
|
---|
153 | dnl Set use of Apache httpd (disabled by default)
|
---|
154 | dnl
|
---|
155 | AC_ARG_ENABLE(apache-httpd, [ --enable-apache-httpd Enable Apache httpd support], USE_APACHE_HTTPD=$enableval, USE_APACHE_HTTPD=no)
|
---|
156 | if test $USE_APACHE_HTTPD = "yes" -o $USE_APACHE_HTTPD = "1" ; then
|
---|
157 | USE_APACHE_HTTPD=1
|
---|
158 | AC_DEFINE(USE_APACHE_HTTPD,[])
|
---|
159 | else
|
---|
160 | USE_APACHE_HTTPD=0
|
---|
161 | fi
|
---|
162 | AC_SUBST(USE_APACHE_HTTPD)
|
---|
163 |
|
---|
164 |
|
---|
165 | dnl
|
---|
166 | dnl Set compilation of MG (enabled by default)
|
---|
167 | dnl
|
---|
168 | AC_ARG_ENABLE(mg, [ --disable-mg Disable MG compilation], ENABLE_MG=$enableval, ENABLE_MG=yes)
|
---|
169 | if test $ENABLE_MG = "yes" -o $ENABLE_MG = "1" ; then
|
---|
170 | ENABLE_MG=1
|
---|
171 | AC_DEFINE(ENABLE_MG,[])
|
---|
172 | else
|
---|
173 | ENABLE_MG=0
|
---|
174 | fi
|
---|
175 | AC_SUBST(ENABLE_MG)
|
---|
176 |
|
---|
177 | dnl
|
---|
178 | dnl Set compilation of MGPP (enabled by default)
|
---|
179 | dnl
|
---|
180 | AC_ARG_ENABLE(mgpp, [ --disable-mgpp Disable MGPP compilation], ENABLE_MGPP=$enableval, ENABLE_MGPP=yes)
|
---|
181 | if test $ENABLE_MGPP = "yes" -o $ENABLE_MGPP = "1" ; then
|
---|
182 | ENABLE_MGPP=1
|
---|
183 | AC_DEFINE(ENABLE_MGPP,[])
|
---|
184 | else
|
---|
185 | ENABLE_MGPP=0
|
---|
186 | fi
|
---|
187 | AC_SUBST(ENABLE_MGPP)
|
---|
188 |
|
---|
189 | dnl
|
---|
190 | dnl Set compilation of lucene (enabled by default)
|
---|
191 | dnl
|
---|
192 | AC_ARG_ENABLE(lucene, [ --disable-lucene Disable Lucene compilation], ENABLE_LUCENE=$enableval, ENABLE_LUCENE=yes)
|
---|
193 | if test $ENABLE_JAVA = "1" -a \( $ENABLE_LUCENE = "yes" -o $ENABLE_LUCENE = "1" \) ; then
|
---|
194 | ENABLE_LUCENE=1
|
---|
195 | AC_DEFINE(ENABLE_LUCENE,[])
|
---|
196 | else
|
---|
197 | ENABLE_LUCENE=0
|
---|
198 | fi
|
---|
199 | AC_SUBST(ENABLE_LUCENE)
|
---|
200 |
|
---|
201 | dnl Checks for programs.
|
---|
202 | LDFLAGS=$LDFLAGS
|
---|
203 | AC_SUBST(LDFLAGS)
|
---|
204 | dnl only set CFLAGS if not already set in environment
|
---|
205 | if test -z "$CFLAGS"; then
|
---|
206 | CFLAGS=-O2
|
---|
207 | fi
|
---|
208 | AC_SUBST(CFLAGS)
|
---|
209 |
|
---|
210 |
|
---|
211 | AC_PROG_CC
|
---|
212 | AC_PROG_CXX
|
---|
213 | if test $ENABLE_JAVA = "1" ; then
|
---|
214 | AC_PROG_JAVAC
|
---|
215 | AC_PROG_JAVA
|
---|
216 | fi
|
---|
217 | AC_PROG_AWK
|
---|
218 | AC_PROG_YACC
|
---|
219 | dnl get $target_cpu, $target_vendor, and $target_os
|
---|
220 | dnl (as well as host_*)
|
---|
221 | AC_CANONICAL_SYSTEM
|
---|
222 | dnl do we actually want this? It adds a prefix based on host, system etc
|
---|
223 | dnl AC_ARG_PROGRAM
|
---|
224 | AC_PROG_INSTALL
|
---|
225 | AC_PROG_LN_S
|
---|
226 | AC_PROG_MAKE_SET
|
---|
227 | AC_PROG_RANLIB
|
---|
228 |
|
---|
229 | AC_MSG_CHECKING(to see if architecture is 64-bit)
|
---|
230 | arch_64bit=no
|
---|
231 | case "$host_cpu" in
|
---|
232 | x86_64) arch_64bit=yes ;;
|
---|
233 | esac
|
---|
234 |
|
---|
235 | if test "$arch_64bit" = yes; then
|
---|
236 | AC_MSG_RESULT(yes)
|
---|
237 | if test -z "$ARCH_DEP_FLAGS" ; then
|
---|
238 | ARCH_DEP_FLAGS="-fPIC"
|
---|
239 | gsdlarch='64'
|
---|
240 | fi
|
---|
241 | else
|
---|
242 | AC_MSG_RESULT(no)
|
---|
243 | if test -z "$ARCH_DEP_FLAGS" ; then
|
---|
244 | ARCH_DEP_FLAGS=
|
---|
245 | gsdlarch='32'
|
---|
246 | fi
|
---|
247 | fi
|
---|
248 |
|
---|
249 | export ARCH_DEP_FLAGS
|
---|
250 | AC_SUBST(ARCH_DEP_FLAGS)
|
---|
251 |
|
---|
252 |
|
---|
253 | #moved CORBA MICO directory test to get version of MICO
|
---|
254 | if test $USE_CORBA = 1; then
|
---|
255 |
|
---|
256 | if test $MICO_DIR = "default"; then
|
---|
257 | #do something
|
---|
258 | MICO_INC="-I packages/mico/mico/include"
|
---|
259 | else
|
---|
260 | #build the micotest program
|
---|
261 | MICO_INC= ""
|
---|
262 | if test $MICO_DIR != yes; then
|
---|
263 | MICO_INC="-I $MICO_DIR"
|
---|
264 | fi
|
---|
265 | fi
|
---|
266 |
|
---|
267 | #get MICO_VER value
|
---|
268 | sh -c "$CC -c micotest.cpp -o micotest.o $MICO_INC 2>&1" > /dev/null
|
---|
269 | sh -c "$CC -o micotest micotest.o -lstdc++ 2>&1" > /dev/null
|
---|
270 | MICO_VER=`./micotest` || MICO_VER=2.3.13
|
---|
271 | sh -c "rm micotest"
|
---|
272 | sh -c "rm micotest.o"
|
---|
273 |
|
---|
274 | #do test of MICO_VER
|
---|
275 | if test MICO_VER != 0; then
|
---|
276 | AC_DEFINE(MICO_VER)
|
---|
277 | AC_SUBST(MICO_VER)
|
---|
278 | fi
|
---|
279 | #end USE_CORBA test
|
---|
280 | fi
|
---|
281 |
|
---|
282 | dnl Checks for typedefs, structures, and compiler characteristics.
|
---|
283 | AC_AIX
|
---|
284 | AC_ISC_POSIX
|
---|
285 | AC_MINIX
|
---|
286 | fp_C_PROTOTYPES
|
---|
287 | AC_C_CONST
|
---|
288 | AC_TYPE_OFF_T
|
---|
289 | AC_TYPE_SIZE_T
|
---|
290 | AC_HEADER_TIME
|
---|
291 | AC_STRUCT_TM
|
---|
292 |
|
---|
293 | dnl --- This should be in the stdc checking -----------------
|
---|
294 | if test "$ac_cv_prog_cc_stdc" = '-Xc'; then
|
---|
295 | dnl The Pyramids running SMP_DC.OSx on MIPS r3000 chips with
|
---|
296 | dnl /usr/opt/cc3.11/bin/cc treat -Xc as full ANSI mode - no POSIX or
|
---|
297 | dnl XOPEN extensions (like popen).
|
---|
298 | dnl Unfortunately -D_{XOPEN,POSIX}_SOURCE can't provide all that mg
|
---|
299 | dnl needs. So drop back to -Xa
|
---|
300 | AC_TRY_COMPILE(
|
---|
301 | [#include <stdio.h>
|
---|
302 | ], [ FILE *rubbish = popen("yes", "r"); ],,
|
---|
303 | [CC="`echo $CC | sed 's/-Xc/-Xa/'`" ac_cv_prog_cc_stdc='-Xa'])
|
---|
304 | fi
|
---|
305 | dnl ----------------------
|
---|
306 |
|
---|
307 |
|
---|
308 | dnl Checks for libraries.
|
---|
309 | dnl check for -lg:
|
---|
310 | AC_HAVE_LIBRARY(g)
|
---|
311 | dnl check for -lm:
|
---|
312 | AC_HAVE_LIBRARY(m)
|
---|
313 | dnl check for -lcrypt:
|
---|
314 | AC_HAVE_LIBRARY(crypt)
|
---|
315 | #if test $ENABLE_ACCENTFOLD = 1; then
|
---|
316 | #AC_HAVE_LIBRARY(iconv)
|
---|
317 | #fi
|
---|
318 |
|
---|
319 | dnl Checks for header files.
|
---|
320 | AC_HEADER_DIRENT
|
---|
321 | AC_HEADER_STDC
|
---|
322 | AC_CHECK_HEADERS(fcntl.h limits.h sys/time.h unistd.h crypt.h string.h memory.h sys/procfs.h sys/stat.h)
|
---|
323 | AC_EGREP_HEADER(fread, stdio.h, AC_DEFINE(HAVE_FREAD_DECL))
|
---|
324 | AC_EGREP_HEADER(fgetc, stdio.h, AC_DEFINE(HAVE_FGETC_DECL))
|
---|
325 | AC_EGREP_HEADER(pr_brksize, sys/procfs.h, AC_DEFINE(HAVE_PR_BRKSIZE))
|
---|
326 |
|
---|
327 | dnl Checks for library functions.
|
---|
328 | AC_FUNC_ALLOCA
|
---|
329 | AC_PROG_GCC_TRADITIONAL
|
---|
330 | AC_TYPE_SIGNAL
|
---|
331 | AC_FUNC_VPRINTF
|
---|
332 | AC_CHECK_FUNCS(ftime select strftime strtol getrusage times mallinfo setbuffer getpagesize strerror)
|
---|
333 | AC_REPLACE_FUNCS(ftruncate strstr strcasecmp)
|
---|
334 |
|
---|
335 | dnl see if gettext is in libc. (try the textdomain() function).
|
---|
336 | AC_CHECK_FUNC(textdomain, AC_DEFINE(ENABLE_NLS ,1) )
|
---|
337 |
|
---|
338 | # *** Custom checking (based on GNU tar configure.in) ***
|
---|
339 | # ---------------------------------------------------------------------------
|
---|
340 | AC_MSG_CHECKING(for HP-UX needing gmalloc)
|
---|
341 | if test "`(uname -s) 2> /dev/null`" = 'HP-UX'; then
|
---|
342 | AC_MSG_RESULT(yes)
|
---|
343 | AC_LIBOBJ([gmalloc])
|
---|
344 | AC_DEFINE(HAVE_VALLOC)
|
---|
345 | else
|
---|
346 | AC_MSG_RESULT(no)
|
---|
347 | AC_CHECK_FUNCS(valloc)
|
---|
348 | fi
|
---|
349 |
|
---|
350 | # we cannot generate static libraries under Darwin
|
---|
351 | AC_MSG_CHECKING(for Apple MacOS X/Darwin)
|
---|
352 | if test "`(uname -s) 2> /dev/null`" = 'Darwin'; then
|
---|
353 | AC_MSG_RESULT(yes)
|
---|
354 | STATIC=""
|
---|
355 | else
|
---|
356 | AC_MSG_RESULT(no)
|
---|
357 | STATIC="-static "
|
---|
358 | fi
|
---|
359 | AC_SUBST(STATIC)
|
---|
360 |
|
---|
361 | fp_WITH_DMALLOC
|
---|
362 | fp_WITH_REGEX
|
---|
363 |
|
---|
364 | # ---------------------------------------------------------------------------
|
---|
365 | if test "$ac_cv_func_alloca" = 'no'; then
|
---|
366 | dnl support functions for alloca.c
|
---|
367 | AC_LIBOBJ([xmalloc])
|
---|
368 | AC_LIBOBJ([error])
|
---|
369 | fi
|
---|
370 |
|
---|
371 |
|
---|
372 | # ---------------------------------------------------------------------------
|
---|
373 |
|
---|
374 | dnl
|
---|
375 | dnl Switch into C++
|
---|
376 | dnl
|
---|
377 | AC_LANG_CPLUSPLUS
|
---|
378 |
|
---|
379 | dnl
|
---|
380 | dnl Now check that Perl is actually around, and can be found
|
---|
381 | dnl
|
---|
382 | AC_MSG_CHECKING(that Perl 5 is available)
|
---|
383 | success="no"
|
---|
384 | pl_path="$PATH"
|
---|
385 | IFS="${IFS= }"; pl_save_ifs="$IFS"; IFS=":"
|
---|
386 | for pl_dir in $pl_path; do
|
---|
387 | test -z "$pl_dir" && pl_dir=.
|
---|
388 | if test -x $pl_dir/perl; then
|
---|
389 | success="yes"
|
---|
390 | break
|
---|
391 | fi
|
---|
392 | done
|
---|
393 | IFS="$pl_save_ifs"
|
---|
394 |
|
---|
395 | dnl
|
---|
396 | dnl Check if the STL library has any known faults;
|
---|
397 | dnl In GCC 2.7.2.x series, some STL library headers are missing
|
---|
398 | dnl a file called "new" which is referred to by other headers
|
---|
399 | dnl (eg. vector/vector.h); if this applies, then all use of the
|
---|
400 | dnl STL will cause a compile fail, so we'd better let the user
|
---|
401 | dnl know now, before things really go wrong!
|
---|
402 | dnl
|
---|
403 | success=no
|
---|
404 | AC_MSG_CHECKING("whether STL library has known faults")
|
---|
405 |
|
---|
406 | dnl - first shot, try simple good old vector on its own
|
---|
407 | AC_TRY_COMPILE(
|
---|
408 | [#include <vector>
|
---|
409 | ],
|
---|
410 | [],
|
---|
411 | success=yes,
|
---|
412 | )
|
---|
413 |
|
---|
414 | dnl - try using the .h equivalent
|
---|
415 | if test $success = "no"; then
|
---|
416 | AC_TRY_COMPILE(
|
---|
417 | [#include <vector.h>
|
---|
418 | ],
|
---|
419 | [],
|
---|
420 | success="yes",
|
---|
421 | )
|
---|
422 | fi
|
---|
423 |
|
---|
424 | dnl - now try for the objectspace headers
|
---|
425 | if test $success = "no"; then
|
---|
426 | AC_TRY_COMPILE(
|
---|
427 | [#include <ospace\\std\\vector>
|
---|
428 | ],
|
---|
429 | [],
|
---|
430 | success="yes",
|
---|
431 | )
|
---|
432 | fi
|
---|
433 |
|
---|
434 | if test $success = yes; then
|
---|
435 | AC_MSG_RESULT("no")
|
---|
436 | else
|
---|
437 | AC_MSG_RESULT("yes")
|
---|
438 | AC_MSG_ERROR("STL Broken - Obtain newer version of GNU C Compiler")
|
---|
439 | fi
|
---|
440 |
|
---|
441 | gsdlos=`uname | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz`
|
---|
442 | # check for running bash under cygwin
|
---|
443 | if test "`echo $gsdlos | sed 's/cygwin//'`" != "$gsdlos" ;
|
---|
444 | then
|
---|
445 | gsdlos=windows
|
---|
446 | fi
|
---|
447 | AC_SUBST(gsdlos)
|
---|
448 |
|
---|
449 | # Make gsdlarch empty if the OS bit value (32 or 64) is not used in naming
|
---|
450 | # directories already or if runtime-src is compiled up on its own.
|
---|
451 | # E.g. 32/64 bit won't be used in the SVN version if only bin/linux exists.
|
---|
452 | if test -d "../bin/$gsdlos" -o ! -f "../setup.bash" ; then
|
---|
453 | gsdlarch=""
|
---|
454 | fi
|
---|
455 | AC_SUBST(gsdlarch)
|
---|
456 |
|
---|
457 | # check for endianness
|
---|
458 | AC_C_BIGENDIAN
|
---|
459 | # ---------------------------------------------------------------------------
|
---|
460 | if test "$ac_cv_func_alloca" = 'no'; then
|
---|
461 | dnl support functions for alloca.c
|
---|
462 | AC_LIBOBJ([xmalloc.o])
|
---|
463 | AC_LIBOBJ([error])
|
---|
464 | fi
|
---|
465 |
|
---|
466 | # ---------------------------------------------------------------------------
|
---|
467 |
|
---|
468 |
|
---|
469 | dnl
|
---|
470 | dnl Locate all children of the modules folder
|
---|
471 | dnl
|
---|
472 | moduleDirs=""
|
---|
473 | MODULEDIRS=""
|
---|
474 | if test -d modules ; then
|
---|
475 | for x in `find modules -mindepth 1 -maxdepth 2`; do
|
---|
476 | if test -d "$x"; then
|
---|
477 | d="$x/Makefile.in"
|
---|
478 | if test -e "$d"; then
|
---|
479 | dnl echo $d
|
---|
480 | moduleDirs="$moduleDirs $x/Makefile"
|
---|
481 | MODULEDIRS="$MODULEDIRS $x"
|
---|
482 | fi
|
---|
483 | fi
|
---|
484 | done
|
---|
485 | echo "Making $moduleDirs in modules directory"
|
---|
486 | AC_SUBST(MODULEDIRS)
|
---|
487 | fi
|
---|
488 |
|
---|
489 |
|
---|
490 | AC_CONFIG_SUBDIRS(packages)
|
---|
491 |
|
---|
492 | # the list of folders in the src folder
|
---|
493 | srclist="src/colservr/Makefile \
|
---|
494 | src/corba/Makefile \
|
---|
495 | src/protocol/Makefile \
|
---|
496 | src/recpt/Makefile \
|
---|
497 | src/oaiservr/Makefile \
|
---|
498 | src/z3950/Makefile \
|
---|
499 | src/java/org/nzdl/gsdl/GsdlCollageApplet/Makefile \
|
---|
500 | src/java/org/nzdl/gsdl/Phind/Makefile"
|
---|
501 |
|
---|
502 | AC_OUTPUT(packages/Makefile Makefile $srclist $moduleDirs)
|
---|
503 |
|
---|
504 |
|
---|