source: main/trunk/greenstone2/common-src/indexers/configure@ 21328

Last change on this file since 21328 was 21328, checked in by ak19, 14 years ago

Changes to makefiles, configure files, and source code to work with the new configure flags that allow indexers to be individually compiled up by setting each indexer to be enabled or disabled (enable-mg, enable-mgpp, enable-lucene).

  • Property svn:executable set to *
  • Property svn:keywords set to Author Date Id Revision
File size: 86.3 KB
Line 
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.59.
4#
5# Copyright (C) 2003 Free Software Foundation, Inc.
6# This configure script is free software; the Free Software Foundation
7# gives unlimited permission to copy, distribute and modify it.
8## --------------------- ##
9## M4sh Initialization. ##
10## --------------------- ##
11
12# Be Bourne compatible
13if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14 emulate sh
15 NULLCMD=:
16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17 # is contrary to our usage. Disable this feature.
18 alias -g '${1+"$@"}'='"$@"'
19elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20 set -o posix
21fi
22DUALCASE=1; export DUALCASE # for MKS sh
23
24# Support unset when possible.
25if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26 as_unset=unset
27else
28 as_unset=false
29fi
30
31
32# Work around bugs in pre-3.0 UWIN ksh.
33$as_unset ENV MAIL MAILPATH
34PS1='$ '
35PS2='> '
36PS4='+ '
37
38# NLS nuisances.
39for as_var in \
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42 LC_TELEPHONE LC_TIME
43do
44 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C; export $as_var
46 else
47 $as_unset $as_var
48 fi
49done
50
51# Required to use basename.
52if expr a : '\(a\)' >/dev/null 2>&1; then
53 as_expr=expr
54else
55 as_expr=false
56fi
57
58if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59 as_basename=basename
60else
61 as_basename=false
62fi
63
64
65# Name of the executable.
66as_me=`$as_basename "$0" ||
67$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
71echo X/"$0" |
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
75 s/.*/./; q'`
76
77
78# PATH needs CR, and LINENO needs CR and PATH.
79# Avoid depending upon Character Ranges.
80as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83as_cr_digits='0123456789'
84as_cr_alnum=$as_cr_Letters$as_cr_digits
85
86# The user is always right.
87if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
90 chmod +x conf$$.sh
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92 PATH_SEPARATOR=';'
93 else
94 PATH_SEPARATOR=:
95 fi
96 rm -f conf$$.sh
97fi
98
99
100 as_lineno_1=$LINENO
101 as_lineno_2=$LINENO
102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" || {
105 # Find who we are. Look in the path if we contain no path at all
106 # relative or not.
107 case $0 in
108 *[\\/]* ) as_myself=$0 ;;
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110for as_dir in $PATH
111do
112 IFS=$as_save_IFS
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115done
116
117 ;;
118 esac
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x; then
122 as_myself=$0
123 fi
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
127 fi
128 case $CONFIG_SHELL in
129 '')
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132do
133 IFS=$as_save_IFS
134 test -z "$as_dir" && as_dir=.
135 for as_base in sh bash ksh sh5; do
136 case $as_dir in
137 /*)
138 if ("$as_dir/$as_base" -c '
139 as_lineno_1=$LINENO
140 as_lineno_2=$LINENO
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146 CONFIG_SHELL=$as_dir/$as_base
147 export CONFIG_SHELL
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149 fi;;
150 esac
151 done
152done
153;;
154 esac
155
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
165 sed '
166 N
167 s,$,-,
168 : loop
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170 t loop
171 s,-$,,
172 s,^['$as_cr_digits']*\n,,
173 ' >$as_me.lineno &&
174 chmod +x $as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
177
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
181 . ./$as_me.lineno
182 # Exit status is that of the last command.
183 exit
184}
185
186
187case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c*,-n*) ECHO_N= ECHO_C='
189' ECHO_T=' ' ;;
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
192esac
193
194if expr a : '\(a\)' >/dev/null 2>&1; then
195 as_expr=expr
196else
197 as_expr=false
198fi
199
200rm -f conf$$ conf$$.exe conf$$.file
201echo >conf$$.file
202if ln -s conf$$.file conf$$ 2>/dev/null; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe; then
206 # Don't use ln at all; we don't have any links
207 as_ln_s='cp -p'
208 else
209 as_ln_s='ln -s'
210 fi
211elif ln conf$$.file conf$$ 2>/dev/null; then
212 as_ln_s=ln
213else
214 as_ln_s='cp -p'
215fi
216rm -f conf$$ conf$$.exe conf$$.file
217
218if mkdir -p . 2>/dev/null; then
219 as_mkdir_p=:
220else
221 test -d ./-p && rmdir ./-p
222 as_mkdir_p=false
223fi
224
225as_executable_p="test -f"
226
227# Sed expression to map a string onto a valid CPP name.
228as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
229
230# Sed expression to map a string onto a valid variable name.
231as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
232
233
234# IFS
235# We need space, tab and new line, in precisely that order.
236as_nl='
237'
238IFS=" $as_nl"
239
240# CDPATH.
241$as_unset CDPATH
242
243
244# Name of the host.
245# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246# so uname gets run too.
247ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
248
249exec 6>&1
250
251#
252# Initializations.
253#
254ac_default_prefix=/usr/local
255ac_config_libobj_dir=.
256cross_compiling=no
257subdirs=
258MFLAGS=
259MAKEFLAGS=
260SHELL=${CONFIG_SHELL-/bin/sh}
261
262# Maximum number of lines to put in a shell here document.
263# This variable seems obsolete. It should probably be removed, and
264# only ac_max_sed_lines should be used.
265: ${ac_max_here_lines=38}
266
267# Identity of this package.
268PACKAGE_NAME=
269PACKAGE_TARNAME=
270PACKAGE_VERSION=
271PACKAGE_STRING=
272PACKAGE_BUGREPORT=
273
274ac_subdirs_all="$ac_subdirs_all packages/unac"
275ac_subdirs_all="$ac_subdirs_all mg"
276ac_subdirs_all="$ac_subdirs_all mgpp"
277ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS ENABLE_ACCENTFOLD ENABLE_MG ENABLE_MGPP ENABLE_LUCENE COMPAT32BITFLAGS JAVAC JAVA uudecode subdirs LIBOBJS LTLIBOBJS'
278ac_subst_files=''
279
280# Initialize some variables set by options.
281ac_init_help=
282ac_init_version=false
283# The variables have the same names as the options, with
284# dashes changed to underlines.
285cache_file=/dev/null
286exec_prefix=NONE
287no_create=
288no_recursion=
289prefix=NONE
290program_prefix=NONE
291program_suffix=NONE
292program_transform_name=s,x,x,
293silent=
294site=
295srcdir=
296verbose=
297x_includes=NONE
298x_libraries=NONE
299
300# Installation directory options.
301# These are left unexpanded so users can "make install exec_prefix=/foo"
302# and all the variables that are supposed to be based on exec_prefix
303# by default will actually change.
304# Use braces instead of parens because sh, perl, etc. also accept them.
305bindir='${exec_prefix}/bin'
306sbindir='${exec_prefix}/sbin'
307libexecdir='${exec_prefix}/libexec'
308datadir='${prefix}/share'
309sysconfdir='${prefix}/etc'
310sharedstatedir='${prefix}/com'
311localstatedir='${prefix}/var'
312libdir='${exec_prefix}/lib'
313includedir='${prefix}/include'
314oldincludedir='/usr/include'
315infodir='${prefix}/info'
316mandir='${prefix}/man'
317
318ac_prev=
319for ac_option
320do
321 # If the previous option needs an argument, assign it.
322 if test -n "$ac_prev"; then
323 eval "$ac_prev=\$ac_option"
324 ac_prev=
325 continue
326 fi
327
328 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
329
330 # Accept the important Cygnus configure options, so we can diagnose typos.
331
332 case $ac_option in
333
334 -bindir | --bindir | --bindi | --bind | --bin | --bi)
335 ac_prev=bindir ;;
336 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
337 bindir=$ac_optarg ;;
338
339 -build | --build | --buil | --bui | --bu)
340 ac_prev=build_alias ;;
341 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
342 build_alias=$ac_optarg ;;
343
344 -cache-file | --cache-file | --cache-fil | --cache-fi \
345 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
346 ac_prev=cache_file ;;
347 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
348 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
349 cache_file=$ac_optarg ;;
350
351 --config-cache | -C)
352 cache_file=config.cache ;;
353
354 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
355 ac_prev=datadir ;;
356 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
357 | --da=*)
358 datadir=$ac_optarg ;;
359
360 -disable-* | --disable-*)
361 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
362 # Reject names that are not valid shell variable names.
363 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
364 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
365 { (exit 1); exit 1; }; }
366 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
367 eval "enable_$ac_feature=no" ;;
368
369 -enable-* | --enable-*)
370 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
371 # Reject names that are not valid shell variable names.
372 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
373 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
374 { (exit 1); exit 1; }; }
375 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
376 case $ac_option in
377 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
378 *) ac_optarg=yes ;;
379 esac
380 eval "enable_$ac_feature='$ac_optarg'" ;;
381
382 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
383 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
384 | --exec | --exe | --ex)
385 ac_prev=exec_prefix ;;
386 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
387 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
388 | --exec=* | --exe=* | --ex=*)
389 exec_prefix=$ac_optarg ;;
390
391 -gas | --gas | --ga | --g)
392 # Obsolete; use --with-gas.
393 with_gas=yes ;;
394
395 -help | --help | --hel | --he | -h)
396 ac_init_help=long ;;
397 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
398 ac_init_help=recursive ;;
399 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
400 ac_init_help=short ;;
401
402 -host | --host | --hos | --ho)
403 ac_prev=host_alias ;;
404 -host=* | --host=* | --hos=* | --ho=*)
405 host_alias=$ac_optarg ;;
406
407 -includedir | --includedir | --includedi | --included | --include \
408 | --includ | --inclu | --incl | --inc)
409 ac_prev=includedir ;;
410 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
411 | --includ=* | --inclu=* | --incl=* | --inc=*)
412 includedir=$ac_optarg ;;
413
414 -infodir | --infodir | --infodi | --infod | --info | --inf)
415 ac_prev=infodir ;;
416 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
417 infodir=$ac_optarg ;;
418
419 -libdir | --libdir | --libdi | --libd)
420 ac_prev=libdir ;;
421 -libdir=* | --libdir=* | --libdi=* | --libd=*)
422 libdir=$ac_optarg ;;
423
424 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
425 | --libexe | --libex | --libe)
426 ac_prev=libexecdir ;;
427 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
428 | --libexe=* | --libex=* | --libe=*)
429 libexecdir=$ac_optarg ;;
430
431 -localstatedir | --localstatedir | --localstatedi | --localstated \
432 | --localstate | --localstat | --localsta | --localst \
433 | --locals | --local | --loca | --loc | --lo)
434 ac_prev=localstatedir ;;
435 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
436 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
437 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
438 localstatedir=$ac_optarg ;;
439
440 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
441 ac_prev=mandir ;;
442 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
443 mandir=$ac_optarg ;;
444
445 -nfp | --nfp | --nf)
446 # Obsolete; use --without-fp.
447 with_fp=no ;;
448
449 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
450 | --no-cr | --no-c | -n)
451 no_create=yes ;;
452
453 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
454 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
455 no_recursion=yes ;;
456
457 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
458 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
459 | --oldin | --oldi | --old | --ol | --o)
460 ac_prev=oldincludedir ;;
461 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
462 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
463 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
464 oldincludedir=$ac_optarg ;;
465
466 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
467 ac_prev=prefix ;;
468 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
469 prefix=$ac_optarg ;;
470
471 -program-prefix | --program-prefix | --program-prefi | --program-pref \
472 | --program-pre | --program-pr | --program-p)
473 ac_prev=program_prefix ;;
474 -program-prefix=* | --program-prefix=* | --program-prefi=* \
475 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
476 program_prefix=$ac_optarg ;;
477
478 -program-suffix | --program-suffix | --program-suffi | --program-suff \
479 | --program-suf | --program-su | --program-s)
480 ac_prev=program_suffix ;;
481 -program-suffix=* | --program-suffix=* | --program-suffi=* \
482 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
483 program_suffix=$ac_optarg ;;
484
485 -program-transform-name | --program-transform-name \
486 | --program-transform-nam | --program-transform-na \
487 | --program-transform-n | --program-transform- \
488 | --program-transform | --program-transfor \
489 | --program-transfo | --program-transf \
490 | --program-trans | --program-tran \
491 | --progr-tra | --program-tr | --program-t)
492 ac_prev=program_transform_name ;;
493 -program-transform-name=* | --program-transform-name=* \
494 | --program-transform-nam=* | --program-transform-na=* \
495 | --program-transform-n=* | --program-transform-=* \
496 | --program-transform=* | --program-transfor=* \
497 | --program-transfo=* | --program-transf=* \
498 | --program-trans=* | --program-tran=* \
499 | --progr-tra=* | --program-tr=* | --program-t=*)
500 program_transform_name=$ac_optarg ;;
501
502 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
503 | -silent | --silent | --silen | --sile | --sil)
504 silent=yes ;;
505
506 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
507 ac_prev=sbindir ;;
508 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
509 | --sbi=* | --sb=*)
510 sbindir=$ac_optarg ;;
511
512 -sharedstatedir | --sharedstatedir | --sharedstatedi \
513 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
514 | --sharedst | --shareds | --shared | --share | --shar \
515 | --sha | --sh)
516 ac_prev=sharedstatedir ;;
517 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
518 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
519 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
520 | --sha=* | --sh=*)
521 sharedstatedir=$ac_optarg ;;
522
523 -site | --site | --sit)
524 ac_prev=site ;;
525 -site=* | --site=* | --sit=*)
526 site=$ac_optarg ;;
527
528 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
529 ac_prev=srcdir ;;
530 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
531 srcdir=$ac_optarg ;;
532
533 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
534 | --syscon | --sysco | --sysc | --sys | --sy)
535 ac_prev=sysconfdir ;;
536 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
537 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
538 sysconfdir=$ac_optarg ;;
539
540 -target | --target | --targe | --targ | --tar | --ta | --t)
541 ac_prev=target_alias ;;
542 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
543 target_alias=$ac_optarg ;;
544
545 -v | -verbose | --verbose | --verbos | --verbo | --verb)
546 verbose=yes ;;
547
548 -version | --version | --versio | --versi | --vers | -V)
549 ac_init_version=: ;;
550
551 -with-* | --with-*)
552 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
553 # Reject names that are not valid shell variable names.
554 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
555 { echo "$as_me: error: invalid package name: $ac_package" >&2
556 { (exit 1); exit 1; }; }
557 ac_package=`echo $ac_package| sed 's/-/_/g'`
558 case $ac_option in
559 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
560 *) ac_optarg=yes ;;
561 esac
562 eval "with_$ac_package='$ac_optarg'" ;;
563
564 -without-* | --without-*)
565 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
566 # Reject names that are not valid shell variable names.
567 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
568 { echo "$as_me: error: invalid package name: $ac_package" >&2
569 { (exit 1); exit 1; }; }
570 ac_package=`echo $ac_package | sed 's/-/_/g'`
571 eval "with_$ac_package=no" ;;
572
573 --x)
574 # Obsolete; use --with-x.
575 with_x=yes ;;
576
577 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
578 | --x-incl | --x-inc | --x-in | --x-i)
579 ac_prev=x_includes ;;
580 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
581 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
582 x_includes=$ac_optarg ;;
583
584 -x-libraries | --x-libraries | --x-librarie | --x-librari \
585 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
586 ac_prev=x_libraries ;;
587 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
588 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
589 x_libraries=$ac_optarg ;;
590
591 -*) { echo "$as_me: error: unrecognized option: $ac_option
592Try \`$0 --help' for more information." >&2
593 { (exit 1); exit 1; }; }
594 ;;
595
596 *=*)
597 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
598 # Reject names that are not valid shell variable names.
599 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
600 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
601 { (exit 1); exit 1; }; }
602 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
603 eval "$ac_envvar='$ac_optarg'"
604 export $ac_envvar ;;
605
606 *)
607 # FIXME: should be removed in autoconf 3.0.
608 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
609 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
610 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
611 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
612 ;;
613
614 esac
615done
616
617if test -n "$ac_prev"; then
618 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
619 { echo "$as_me: error: missing argument to $ac_option" >&2
620 { (exit 1); exit 1; }; }
621fi
622
623# Be sure to have absolute paths.
624for ac_var in exec_prefix prefix
625do
626 eval ac_val=$`echo $ac_var`
627 case $ac_val in
628 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
629 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
630 { (exit 1); exit 1; }; };;
631 esac
632done
633
634# Be sure to have absolute paths.
635for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
636 localstatedir libdir includedir oldincludedir infodir mandir
637do
638 eval ac_val=$`echo $ac_var`
639 case $ac_val in
640 [\\/$]* | ?:[\\/]* ) ;;
641 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
642 { (exit 1); exit 1; }; };;
643 esac
644done
645
646# There might be people who depend on the old broken behavior: `$host'
647# used to hold the argument of --host etc.
648# FIXME: To remove some day.
649build=$build_alias
650host=$host_alias
651target=$target_alias
652
653# FIXME: To remove some day.
654if test "x$host_alias" != x; then
655 if test "x$build_alias" = x; then
656 cross_compiling=maybe
657 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
658 If a cross compiler is detected then cross compile mode will be used." >&2
659 elif test "x$build_alias" != "x$host_alias"; then
660 cross_compiling=yes
661 fi
662fi
663
664ac_tool_prefix=
665test -n "$host_alias" && ac_tool_prefix=$host_alias-
666
667test "$silent" = yes && exec 6>/dev/null
668
669
670# Find the source files, if location was not specified.
671if test -z "$srcdir"; then
672 ac_srcdir_defaulted=yes
673 # Try the directory containing this script, then its parent.
674 ac_confdir=`(dirname "$0") 2>/dev/null ||
675$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
676 X"$0" : 'X\(//\)[^/]' \| \
677 X"$0" : 'X\(//\)$' \| \
678 X"$0" : 'X\(/\)' \| \
679 . : '\(.\)' 2>/dev/null ||
680echo X"$0" |
681 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
682 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
683 /^X\(\/\/\)$/{ s//\1/; q; }
684 /^X\(\/\).*/{ s//\1/; q; }
685 s/.*/./; q'`
686 srcdir=$ac_confdir
687 if test ! -r $srcdir/$ac_unique_file; then
688 srcdir=..
689 fi
690else
691 ac_srcdir_defaulted=no
692fi
693if test ! -r $srcdir/$ac_unique_file; then
694 if test "$ac_srcdir_defaulted" = yes; then
695 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
696 { (exit 1); exit 1; }; }
697 else
698 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
699 { (exit 1); exit 1; }; }
700 fi
701fi
702(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
703 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
704 { (exit 1); exit 1; }; }
705srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
706ac_env_build_alias_set=${build_alias+set}
707ac_env_build_alias_value=$build_alias
708ac_cv_env_build_alias_set=${build_alias+set}
709ac_cv_env_build_alias_value=$build_alias
710ac_env_host_alias_set=${host_alias+set}
711ac_env_host_alias_value=$host_alias
712ac_cv_env_host_alias_set=${host_alias+set}
713ac_cv_env_host_alias_value=$host_alias
714ac_env_target_alias_set=${target_alias+set}
715ac_env_target_alias_value=$target_alias
716ac_cv_env_target_alias_set=${target_alias+set}
717ac_cv_env_target_alias_value=$target_alias
718
719#
720# Report the --help message.
721#
722if test "$ac_init_help" = "long"; then
723 # Omit some internal or obsolete options to make the list less imposing.
724 # This message is too long to be a string in the A/UX 3.1 sh.
725 cat <<_ACEOF
726\`configure' configures this package to adapt to many kinds of systems.
727
728Usage: $0 [OPTION]... [VAR=VALUE]...
729
730To assign environment variables (e.g., CC, CFLAGS...), specify them as
731VAR=VALUE. See below for descriptions of some of the useful variables.
732
733Defaults for the options are specified in brackets.
734
735Configuration:
736 -h, --help display this help and exit
737 --help=short display options specific to this package
738 --help=recursive display the short help of all the included packages
739 -V, --version display version information and exit
740 -q, --quiet, --silent do not print \`checking...' messages
741 --cache-file=FILE cache test results in FILE [disabled]
742 -C, --config-cache alias for \`--cache-file=config.cache'
743 -n, --no-create do not create output files
744 --srcdir=DIR find the sources in DIR [configure dir or \`..']
745
746_ACEOF
747
748 cat <<_ACEOF
749Installation directories:
750 --prefix=PREFIX install architecture-independent files in PREFIX
751 [$ac_default_prefix]
752 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
753 [PREFIX]
754
755By default, \`make install' will install all the files in
756\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
757an installation prefix other than \`$ac_default_prefix' using \`--prefix',
758for instance \`--prefix=\$HOME'.
759
760For better control, use the options below.
761
762Fine tuning of the installation directories:
763 --bindir=DIR user executables [EPREFIX/bin]
764 --sbindir=DIR system admin executables [EPREFIX/sbin]
765 --libexecdir=DIR program executables [EPREFIX/libexec]
766 --datadir=DIR read-only architecture-independent data [PREFIX/share]
767 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
768 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
769 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
770 --libdir=DIR object code libraries [EPREFIX/lib]
771 --includedir=DIR C header files [PREFIX/include]
772 --oldincludedir=DIR C header files for non-gcc [/usr/include]
773 --infodir=DIR info documentation [PREFIX/info]
774 --mandir=DIR man documentation [PREFIX/man]
775_ACEOF
776
777 cat <<\_ACEOF
778_ACEOF
779fi
780
781if test -n "$ac_init_help"; then
782
783 cat <<\_ACEOF
784
785Optional Features:
786 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
787 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
788 --disable-accentfolding Disable Accent Folding support
789 --disable-mg Disable MG compilation
790 --disable-mgpp Disable MGPP compilation
791 --disable-lucene Disable Lucene compilation
792
793Optional Packages:
794 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
795 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
796 --with-unac=dir Use specified unac directory
797 --with-libiconv-prefix=dir Use specified libiconv directory
798
799_ACEOF
800fi
801
802if test "$ac_init_help" = "recursive"; then
803 # If there are subdirs, report their specific --help.
804 ac_popdir=`pwd`
805 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
806 test -d $ac_dir || continue
807 ac_builddir=.
808
809if test "$ac_dir" != .; then
810 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
811 # A "../" for each directory in $ac_dir_suffix.
812 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
813else
814 ac_dir_suffix= ac_top_builddir=
815fi
816
817case $srcdir in
818 .) # No --srcdir option. We are building in place.
819 ac_srcdir=.
820 if test -z "$ac_top_builddir"; then
821 ac_top_srcdir=.
822 else
823 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
824 fi ;;
825 [\\/]* | ?:[\\/]* ) # Absolute path.
826 ac_srcdir=$srcdir$ac_dir_suffix;
827 ac_top_srcdir=$srcdir ;;
828 *) # Relative path.
829 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
830 ac_top_srcdir=$ac_top_builddir$srcdir ;;
831esac
832
833# Do not use `cd foo && pwd` to compute absolute paths, because
834# the directories may not exist.
835case `pwd` in
836.) ac_abs_builddir="$ac_dir";;
837*)
838 case "$ac_dir" in
839 .) ac_abs_builddir=`pwd`;;
840 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
841 *) ac_abs_builddir=`pwd`/"$ac_dir";;
842 esac;;
843esac
844case $ac_abs_builddir in
845.) ac_abs_top_builddir=${ac_top_builddir}.;;
846*)
847 case ${ac_top_builddir}. in
848 .) ac_abs_top_builddir=$ac_abs_builddir;;
849 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
850 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
851 esac;;
852esac
853case $ac_abs_builddir in
854.) ac_abs_srcdir=$ac_srcdir;;
855*)
856 case $ac_srcdir in
857 .) ac_abs_srcdir=$ac_abs_builddir;;
858 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
859 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
860 esac;;
861esac
862case $ac_abs_builddir in
863.) ac_abs_top_srcdir=$ac_top_srcdir;;
864*)
865 case $ac_top_srcdir in
866 .) ac_abs_top_srcdir=$ac_abs_builddir;;
867 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
868 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
869 esac;;
870esac
871
872 cd $ac_dir
873 # Check for guested configure; otherwise get Cygnus style configure.
874 if test -f $ac_srcdir/configure.gnu; then
875 echo
876 $SHELL $ac_srcdir/configure.gnu --help=recursive
877 elif test -f $ac_srcdir/configure; then
878 echo
879 $SHELL $ac_srcdir/configure --help=recursive
880 elif test -f $ac_srcdir/configure.ac ||
881 test -f $ac_srcdir/configure.in; then
882 echo
883 $ac_configure --help
884 else
885 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
886 fi
887 cd $ac_popdir
888 done
889fi
890
891test -n "$ac_init_help" && exit 0
892if $ac_init_version; then
893 cat <<\_ACEOF
894
895Copyright (C) 2003 Free Software Foundation, Inc.
896This configure script is free software; the Free Software Foundation
897gives unlimited permission to copy, distribute and modify it.
898_ACEOF
899 exit 0
900fi
901exec 5>config.log
902cat >&5 <<_ACEOF
903This file contains any messages produced by compilers while
904running configure, to aid debugging if configure makes a mistake.
905
906It was created by $as_me, which was
907generated by GNU Autoconf 2.59. Invocation command line was
908
909 $ $0 $@
910
911_ACEOF
912{
913cat <<_ASUNAME
914## --------- ##
915## Platform. ##
916## --------- ##
917
918hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
919uname -m = `(uname -m) 2>/dev/null || echo unknown`
920uname -r = `(uname -r) 2>/dev/null || echo unknown`
921uname -s = `(uname -s) 2>/dev/null || echo unknown`
922uname -v = `(uname -v) 2>/dev/null || echo unknown`
923
924/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
925/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
926
927/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
928/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
929/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
930hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
931/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
932/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
933/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
934
935_ASUNAME
936
937as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
938for as_dir in $PATH
939do
940 IFS=$as_save_IFS
941 test -z "$as_dir" && as_dir=.
942 echo "PATH: $as_dir"
943done
944
945} >&5
946
947cat >&5 <<_ACEOF
948
949
950## ----------- ##
951## Core tests. ##
952## ----------- ##
953
954_ACEOF
955
956
957# Keep a trace of the command line.
958# Strip out --no-create and --no-recursion so they do not pile up.
959# Strip out --silent because we don't want to record it for future runs.
960# Also quote any args containing shell meta-characters.
961# Make two passes to allow for proper duplicate-argument suppression.
962ac_configure_args=
963ac_configure_args0=
964ac_configure_args1=
965ac_sep=
966ac_must_keep_next=false
967for ac_pass in 1 2
968do
969 for ac_arg
970 do
971 case $ac_arg in
972 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
973 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
974 | -silent | --silent | --silen | --sile | --sil)
975 continue ;;
976 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
977 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
978 esac
979 case $ac_pass in
980 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
981 2)
982 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
983 if test $ac_must_keep_next = true; then
984 ac_must_keep_next=false # Got value, back to normal.
985 else
986 case $ac_arg in
987 *=* | --config-cache | -C | -disable-* | --disable-* \
988 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
989 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
990 | -with-* | --with-* | -without-* | --without-* | --x)
991 case "$ac_configure_args0 " in
992 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
993 esac
994 ;;
995 -* ) ac_must_keep_next=true ;;
996 esac
997 fi
998 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
999 # Get rid of the leading space.
1000 ac_sep=" "
1001 ;;
1002 esac
1003 done
1004done
1005$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1006$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1007
1008# When interrupted or exit'd, cleanup temporary files, and complete
1009# config.log. We remove comments because anyway the quotes in there
1010# would cause problems or look ugly.
1011# WARNING: Be sure not to use single quotes in there, as some shells,
1012# such as our DU 5.0 friend, will then `close' the trap.
1013trap 'exit_status=$?
1014 # Save into config.log some information that might help in debugging.
1015 {
1016 echo
1017
1018 cat <<\_ASBOX
1019## ---------------- ##
1020## Cache variables. ##
1021## ---------------- ##
1022_ASBOX
1023 echo
1024 # The following way of writing the cache mishandles newlines in values,
1025{
1026 (set) 2>&1 |
1027 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1028 *ac_space=\ *)
1029 sed -n \
1030 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1031 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1032 ;;
1033 *)
1034 sed -n \
1035 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1036 ;;
1037 esac;
1038}
1039 echo
1040
1041 cat <<\_ASBOX
1042## ----------------- ##
1043## Output variables. ##
1044## ----------------- ##
1045_ASBOX
1046 echo
1047 for ac_var in $ac_subst_vars
1048 do
1049 eval ac_val=$`echo $ac_var`
1050 echo "$ac_var='"'"'$ac_val'"'"'"
1051 done | sort
1052 echo
1053
1054 if test -n "$ac_subst_files"; then
1055 cat <<\_ASBOX
1056## ------------- ##
1057## Output files. ##
1058## ------------- ##
1059_ASBOX
1060 echo
1061 for ac_var in $ac_subst_files
1062 do
1063 eval ac_val=$`echo $ac_var`
1064 echo "$ac_var='"'"'$ac_val'"'"'"
1065 done | sort
1066 echo
1067 fi
1068
1069 if test -s confdefs.h; then
1070 cat <<\_ASBOX
1071## ----------- ##
1072## confdefs.h. ##
1073## ----------- ##
1074_ASBOX
1075 echo
1076 sed "/^$/d" confdefs.h | sort
1077 echo
1078 fi
1079 test "$ac_signal" != 0 &&
1080 echo "$as_me: caught signal $ac_signal"
1081 echo "$as_me: exit $exit_status"
1082 } >&5
1083 rm -f core *.core &&
1084 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1085 exit $exit_status
1086 ' 0
1087for ac_signal in 1 2 13 15; do
1088 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1089done
1090ac_signal=0
1091
1092# confdefs.h avoids OS command line length limits that DEFS can exceed.
1093rm -rf conftest* confdefs.h
1094# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1095echo >confdefs.h
1096
1097# Predefined preprocessor variables.
1098
1099cat >>confdefs.h <<_ACEOF
1100#define PACKAGE_NAME "$PACKAGE_NAME"
1101_ACEOF
1102
1103
1104cat >>confdefs.h <<_ACEOF
1105#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1106_ACEOF
1107
1108
1109cat >>confdefs.h <<_ACEOF
1110#define PACKAGE_VERSION "$PACKAGE_VERSION"
1111_ACEOF
1112
1113
1114cat >>confdefs.h <<_ACEOF
1115#define PACKAGE_STRING "$PACKAGE_STRING"
1116_ACEOF
1117
1118
1119cat >>confdefs.h <<_ACEOF
1120#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1121_ACEOF
1122
1123
1124# Let the site file select an alternate cache file if it wants to.
1125# Prefer explicitly selected file to automatically selected ones.
1126if test -z "$CONFIG_SITE"; then
1127 if test "x$prefix" != xNONE; then
1128 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1129 else
1130 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1131 fi
1132fi
1133for ac_site_file in $CONFIG_SITE; do
1134 if test -r "$ac_site_file"; then
1135 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1136echo "$as_me: loading site script $ac_site_file" >&6;}
1137 sed 's/^/| /' "$ac_site_file" >&5
1138 . "$ac_site_file"
1139 fi
1140done
1141
1142if test -r "$cache_file"; then
1143 # Some versions of bash will fail to source /dev/null (special
1144 # files actually), so we avoid doing that.
1145 if test -f "$cache_file"; then
1146 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1147echo "$as_me: loading cache $cache_file" >&6;}
1148 case $cache_file in
1149 [\\/]* | ?:[\\/]* ) . $cache_file;;
1150 *) . ./$cache_file;;
1151 esac
1152 fi
1153else
1154 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1155echo "$as_me: creating cache $cache_file" >&6;}
1156 >$cache_file
1157fi
1158
1159# Check that the precious variables saved in the cache have kept the same
1160# value.
1161ac_cache_corrupted=false
1162for ac_var in `(set) 2>&1 |
1163 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1164 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1165 eval ac_new_set=\$ac_env_${ac_var}_set
1166 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1167 eval ac_new_val="\$ac_env_${ac_var}_value"
1168 case $ac_old_set,$ac_new_set in
1169 set,)
1170 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1171echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1172 ac_cache_corrupted=: ;;
1173 ,set)
1174 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1175echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1176 ac_cache_corrupted=: ;;
1177 ,);;
1178 *)
1179 if test "x$ac_old_val" != "x$ac_new_val"; then
1180 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1181echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1182 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1183echo "$as_me: former value: $ac_old_val" >&2;}
1184 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1185echo "$as_me: current value: $ac_new_val" >&2;}
1186 ac_cache_corrupted=:
1187 fi;;
1188 esac
1189 # Pass precious variables to config.status.
1190 if test "$ac_new_set" = set; then
1191 case $ac_new_val in
1192 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1193 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1194 *) ac_arg=$ac_var=$ac_new_val ;;
1195 esac
1196 case " $ac_configure_args " in
1197 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1198 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1199 esac
1200 fi
1201done
1202if $ac_cache_corrupted; then
1203 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1204echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1205 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1206echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1207 { (exit 1); exit 1; }; }
1208fi
1209
1210ac_ext=c
1211ac_cpp='$CPP $CPPFLAGS'
1212ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1213ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1214ac_compiler_gnu=$ac_cv_c_compiler_gnu
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234# Check whether --enable-accentfolding or --disable-accentfolding was given.
1235if test "${enable_accentfolding+set}" = set; then
1236 enableval="$enable_accentfolding"
1237 ENABLE_ACCENTFOLD=0
1238else
1239 ENABLE_ACCENTFOLD=1
1240fi;
1241cat >>confdefs.h <<_ACEOF
1242#define ENABLE_ACCENTFOLD $ENABLE_ACCENTFOLD
1243_ACEOF
1244
1245
1246
1247
1248# Check whether --enable-mg or --disable-mg was given.
1249if test "${enable_mg+set}" = set; then
1250 enableval="$enable_mg"
1251 ENABLE_MG=$enableval
1252else
1253 ENABLE_MG=yes
1254fi;
1255if test $ENABLE_MG = "yes" -o $ENABLE_MG = "1" ; then
1256 ENABLE_MG=1
1257 cat >>confdefs.h <<\_ACEOF
1258#define ENABLE_MG
1259_ACEOF
1260
1261else
1262 ENABLE_MG=0
1263fi
1264
1265
1266
1267# Check whether --enable-mgpp or --disable-mgpp was given.
1268if test "${enable_mgpp+set}" = set; then
1269 enableval="$enable_mgpp"
1270 ENABLE_MGPP=$enableval
1271else
1272 ENABLE_MGPP=yes
1273fi;
1274if test $ENABLE_MGPP = "yes" -o $ENABLE_MGPP = "1" ; then
1275 ENABLE_MGPP=1
1276 cat >>confdefs.h <<\_ACEOF
1277#define ENABLE_MGPP
1278_ACEOF
1279
1280else
1281 ENABLE_MGPP=0
1282fi
1283
1284
1285# Check whether --enable-lucene or --disable-lucene was given.
1286if test "${enable_lucene+set}" = set; then
1287 enableval="$enable_lucene"
1288 ENABLE_LUCENE=$enableval
1289else
1290 ENABLE_LUCENE=yes
1291fi;
1292if test $ENABLE_LUCENE = "yes" -o $ENABLE_LUCENE = "1" ; then
1293 ENABLE_LUCENE=1
1294 cat >>confdefs.h <<\_ACEOF
1295#define ENABLE_LUCENE
1296_ACEOF
1297
1298else
1299 ENABLE_LUCENE=0
1300fi
1301
1302
1303
1304cat >>confdefs.h <<_ACEOF
1305#define COMPAT32BITFLAGS $COMPAT32BITFLAGS
1306_ACEOF
1307
1308
1309
1310
1311
1312
1313if test "x$JAVAPREFIX" = x; then
1314 test "x$JAVAC" = x && for ac_prog in javac$EXEEXT
1315do
1316 # Extract the first word of "$ac_prog", so it can be a program name with args.
1317set dummy $ac_prog; ac_word=$2
1318echo "$as_me:$LINENO: checking for $ac_word" >&5
1319echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1320if test "${ac_cv_prog_JAVAC+set}" = set; then
1321 echo $ECHO_N "(cached) $ECHO_C" >&6
1322else
1323 if test -n "$JAVAC"; then
1324 ac_cv_prog_JAVAC="$JAVAC" # Let the user override the test.
1325else
1326as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1327for as_dir in $PATH
1328do
1329 IFS=$as_save_IFS
1330 test -z "$as_dir" && as_dir=.
1331 for ac_exec_ext in '' $ac_executable_extensions; do
1332 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1333 ac_cv_prog_JAVAC="$ac_prog"
1334 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1335 break 2
1336 fi
1337done
1338done
1339
1340fi
1341fi
1342JAVAC=$ac_cv_prog_JAVAC
1343if test -n "$JAVAC"; then
1344 echo "$as_me:$LINENO: result: $JAVAC" >&5
1345echo "${ECHO_T}$JAVAC" >&6
1346else
1347 echo "$as_me:$LINENO: result: no" >&5
1348echo "${ECHO_T}no" >&6
1349fi
1350
1351 test -n "$JAVAC" && break
1352done
1353
1354else
1355 test "x$JAVAC" = x && for ac_prog in javac$EXEEXT
1356do
1357 # Extract the first word of "$ac_prog", so it can be a program name with args.
1358set dummy $ac_prog; ac_word=$2
1359echo "$as_me:$LINENO: checking for $ac_word" >&5
1360echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1361if test "${ac_cv_prog_JAVAC+set}" = set; then
1362 echo $ECHO_N "(cached) $ECHO_C" >&6
1363else
1364 if test -n "$JAVAC"; then
1365 ac_cv_prog_JAVAC="$JAVAC" # Let the user override the test.
1366else
1367as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1368for as_dir in $PATH
1369do
1370 IFS=$as_save_IFS
1371 test -z "$as_dir" && as_dir=.
1372 for ac_exec_ext in '' $ac_executable_extensions; do
1373 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1374 ac_cv_prog_JAVAC="$ac_prog"
1375 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1376 break 2
1377 fi
1378done
1379done
1380
1381fi
1382fi
1383JAVAC=$ac_cv_prog_JAVAC
1384if test -n "$JAVAC"; then
1385 echo "$as_me:$LINENO: result: $JAVAC" >&5
1386echo "${ECHO_T}$JAVAC" >&6
1387else
1388 echo "$as_me:$LINENO: result: no" >&5
1389echo "${ECHO_T}no" >&6
1390fi
1391
1392 test -n "$JAVAC" && break
1393done
1394test -n "$JAVAC" || JAVAC="$JAVAPREFIX"
1395
1396fi
1397test "x$JAVAC" = x && { { echo "$as_me:$LINENO: error: no acceptable Java compiler found in \$PATH" >&5
1398echo "$as_me: error: no acceptable Java compiler found in \$PATH" >&2;}
1399 { (exit 1); exit 1; }; }
1400
1401echo "$as_me:$LINENO: checking if $JAVAC works" >&5
1402echo $ECHO_N "checking if $JAVAC works... $ECHO_C" >&6
1403if test "${ac_cv_prog_javac_works+set}" = set; then
1404 echo $ECHO_N "(cached) $ECHO_C" >&6
1405else
1406
1407JAVA_TEST=Test.java
1408CLASS_TEST=Test.class
1409cat << \EOF > $JAVA_TEST
1410/* #line 1410 "configure" */
1411public class Test {
1412}
1413EOF
1414if { ac_try='$JAVAC $JAVACFLAGS $JAVA_TEST'
1415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1416 (eval $ac_try) 2>&5
1417 ac_status=$?
1418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1419 (exit $ac_status); }; } >/dev/null 2>&1; then
1420 ac_cv_prog_javac_works=yes
1421else
1422 { { echo "$as_me:$LINENO: error: The Java compiler $JAVAC failed (see config.log, check the CLASSPATH?)" >&5
1423echo "$as_me: error: The Java compiler $JAVAC failed (see config.log, check the CLASSPATH?)" >&2;}
1424 { (exit 1); exit 1; }; }
1425 echo "configure: failed program was:" >&5
1426 cat $JAVA_TEST >&5
1427fi
1428rm -f $JAVA_TEST $CLASS_TEST
1429
1430fi
1431echo "$as_me:$LINENO: result: $ac_cv_prog_javac_works" >&5
1432echo "${ECHO_T}$ac_cv_prog_javac_works" >&6
1433
1434
1435
1436if test x$JAVAPREFIX = x; then
1437 test x$JAVA = x && for ac_prog in java$EXEEXT
1438do
1439 # Extract the first word of "$ac_prog", so it can be a program name with args.
1440set dummy $ac_prog; ac_word=$2
1441echo "$as_me:$LINENO: checking for $ac_word" >&5
1442echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1443if test "${ac_cv_prog_JAVA+set}" = set; then
1444 echo $ECHO_N "(cached) $ECHO_C" >&6
1445else
1446 if test -n "$JAVA"; then
1447 ac_cv_prog_JAVA="$JAVA" # Let the user override the test.
1448else
1449as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1450for as_dir in $PATH
1451do
1452 IFS=$as_save_IFS
1453 test -z "$as_dir" && as_dir=.
1454 for ac_exec_ext in '' $ac_executable_extensions; do
1455 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1456 ac_cv_prog_JAVA="$ac_prog"
1457 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1458 break 2
1459 fi
1460done
1461done
1462
1463fi
1464fi
1465JAVA=$ac_cv_prog_JAVA
1466if test -n "$JAVA"; then
1467 echo "$as_me:$LINENO: result: $JAVA" >&5
1468echo "${ECHO_T}$JAVA" >&6
1469else
1470 echo "$as_me:$LINENO: result: no" >&5
1471echo "${ECHO_T}no" >&6
1472fi
1473
1474 test -n "$JAVA" && break
1475done
1476
1477else
1478 test x$JAVA = x && for ac_prog in java$EXEEXT
1479do
1480 # Extract the first word of "$ac_prog", so it can be a program name with args.
1481set dummy $ac_prog; ac_word=$2
1482echo "$as_me:$LINENO: checking for $ac_word" >&5
1483echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1484if test "${ac_cv_prog_JAVA+set}" = set; then
1485 echo $ECHO_N "(cached) $ECHO_C" >&6
1486else
1487 if test -n "$JAVA"; then
1488 ac_cv_prog_JAVA="$JAVA" # Let the user override the test.
1489else
1490as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1491for as_dir in $PATH
1492do
1493 IFS=$as_save_IFS
1494 test -z "$as_dir" && as_dir=.
1495 for ac_exec_ext in '' $ac_executable_extensions; do
1496 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1497 ac_cv_prog_JAVA="$ac_prog"
1498 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1499 break 2
1500 fi
1501done
1502done
1503
1504fi
1505fi
1506JAVA=$ac_cv_prog_JAVA
1507if test -n "$JAVA"; then
1508 echo "$as_me:$LINENO: result: $JAVA" >&5
1509echo "${ECHO_T}$JAVA" >&6
1510else
1511 echo "$as_me:$LINENO: result: no" >&5
1512echo "${ECHO_T}no" >&6
1513fi
1514
1515 test -n "$JAVA" && break
1516done
1517test -n "$JAVA" || JAVA="$JAVAPREFIX"
1518
1519fi
1520test x$JAVA = x && { { echo "$as_me:$LINENO: error: no acceptable Java virtual machine found in \$PATH" >&5
1521echo "$as_me: error: no acceptable Java virtual machine found in \$PATH" >&2;}
1522 { (exit 1); exit 1; }; }
1523
1524# Extract the first word of "uudecode$EXEEXT", so it can be a program name with args.
1525set dummy uudecode$EXEEXT; ac_word=$2
1526echo "$as_me:$LINENO: checking for $ac_word" >&5
1527echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1528if test "${ac_cv_prog_uudecode+set}" = set; then
1529 echo $ECHO_N "(cached) $ECHO_C" >&6
1530else
1531 if test -n "$uudecode"; then
1532 ac_cv_prog_uudecode="$uudecode" # Let the user override the test.
1533else
1534as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1535for as_dir in $PATH
1536do
1537 IFS=$as_save_IFS
1538 test -z "$as_dir" && as_dir=.
1539 for ac_exec_ext in '' $ac_executable_extensions; do
1540 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1541 ac_cv_prog_uudecode="yes"
1542 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1543 break 2
1544 fi
1545done
1546done
1547
1548fi
1549fi
1550uudecode=$ac_cv_prog_uudecode
1551if test -n "$uudecode"; then
1552 echo "$as_me:$LINENO: result: $uudecode" >&5
1553echo "${ECHO_T}$uudecode" >&6
1554else
1555 echo "$as_me:$LINENO: result: no" >&5
1556echo "${ECHO_T}no" >&6
1557fi
1558
1559if test x$uudecode = xyes; then
1560echo "$as_me:$LINENO: checking if uudecode can decode base 64 file" >&5
1561echo $ECHO_N "checking if uudecode can decode base 64 file... $ECHO_C" >&6
1562if test "${ac_cv_prog_uudecode_base64+set}" = set; then
1563 echo $ECHO_N "(cached) $ECHO_C" >&6
1564else
1565
1566cat << \EOF > Test.uue
1567begin-base64 644 Test.class
1568yv66vgADAC0AFQcAAgEABFRlc3QHAAQBABBqYXZhL2xhbmcvT2JqZWN0AQAE
1569bWFpbgEAFihbTGphdmEvbGFuZy9TdHJpbmc7KVYBAARDb2RlAQAPTGluZU51
1570bWJlclRhYmxlDAAKAAsBAARleGl0AQAEKEkpVgoADQAJBwAOAQAQamF2YS9s
1571YW5nL1N5c3RlbQEABjxpbml0PgEAAygpVgwADwAQCgADABEBAApTb3VyY2VG
1572aWxlAQAJVGVzdC5qYXZhACEAAQADAAAAAAACAAkABQAGAAEABwAAACEAAQAB
1573AAAABQO4AAyxAAAAAQAIAAAACgACAAAACgAEAAsAAQAPABAAAQAHAAAAIQAB
1574AAEAAAAFKrcAErEAAAABAAgAAAAKAAIAAAAEAAQABAABABMAAAACABQ=
1575====
1576EOF
1577if uudecode$EXEEXT Test.uue; then
1578 ac_cv_prog_uudecode_base64=yes
1579else
1580 echo "configure: 1580: uudecode had trouble decoding base 64 file 'Test.uue'" >&5
1581 echo "configure: failed file was:" >&5
1582 cat Test.uue >&5
1583 ac_cv_prog_uudecode_base64=no
1584fi
1585rm -f Test.uue
1586fi
1587echo "$as_me:$LINENO: result: $ac_cv_prog_uudecode_base64" >&5
1588echo "${ECHO_T}$ac_cv_prog_uudecode_base64" >&6
1589fi
1590if test x$ac_cv_prog_uudecode_base64 != xyes; then
1591 rm -f Test.class
1592 { echo "$as_me:$LINENO: WARNING: I have to compile Test.class from scratch" >&5
1593echo "$as_me: WARNING: I have to compile Test.class from scratch" >&2;}
1594 if test x$ac_cv_prog_javac_works = xno; then
1595 { { echo "$as_me:$LINENO: error: Cannot compile java source. $JAVAC does not work properly" >&5
1596echo "$as_me: error: Cannot compile java source. $JAVAC does not work properly" >&2;}
1597 { (exit 1); exit 1; }; }
1598 fi
1599 if test x$ac_cv_prog_javac_works = x; then
1600
1601if test "x$JAVAPREFIX" = x; then
1602 test "x$JAVAC" = x && for ac_prog in javac$EXEEXT
1603do
1604 # Extract the first word of "$ac_prog", so it can be a program name with args.
1605set dummy $ac_prog; ac_word=$2
1606echo "$as_me:$LINENO: checking for $ac_word" >&5
1607echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1608if test "${ac_cv_prog_JAVAC+set}" = set; then
1609 echo $ECHO_N "(cached) $ECHO_C" >&6
1610else
1611 if test -n "$JAVAC"; then
1612 ac_cv_prog_JAVAC="$JAVAC" # Let the user override the test.
1613else
1614as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1615for as_dir in $PATH
1616do
1617 IFS=$as_save_IFS
1618 test -z "$as_dir" && as_dir=.
1619 for ac_exec_ext in '' $ac_executable_extensions; do
1620 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1621 ac_cv_prog_JAVAC="$ac_prog"
1622 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1623 break 2
1624 fi
1625done
1626done
1627
1628fi
1629fi
1630JAVAC=$ac_cv_prog_JAVAC
1631if test -n "$JAVAC"; then
1632 echo "$as_me:$LINENO: result: $JAVAC" >&5
1633echo "${ECHO_T}$JAVAC" >&6
1634else
1635 echo "$as_me:$LINENO: result: no" >&5
1636echo "${ECHO_T}no" >&6
1637fi
1638
1639 test -n "$JAVAC" && break
1640done
1641
1642else
1643 test "x$JAVAC" = x && for ac_prog in javac$EXEEXT
1644do
1645 # Extract the first word of "$ac_prog", so it can be a program name with args.
1646set dummy $ac_prog; ac_word=$2
1647echo "$as_me:$LINENO: checking for $ac_word" >&5
1648echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1649if test "${ac_cv_prog_JAVAC+set}" = set; then
1650 echo $ECHO_N "(cached) $ECHO_C" >&6
1651else
1652 if test -n "$JAVAC"; then
1653 ac_cv_prog_JAVAC="$JAVAC" # Let the user override the test.
1654else
1655as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1656for as_dir in $PATH
1657do
1658 IFS=$as_save_IFS
1659 test -z "$as_dir" && as_dir=.
1660 for ac_exec_ext in '' $ac_executable_extensions; do
1661 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1662 ac_cv_prog_JAVAC="$ac_prog"
1663 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1664 break 2
1665 fi
1666done
1667done
1668
1669fi
1670fi
1671JAVAC=$ac_cv_prog_JAVAC
1672if test -n "$JAVAC"; then
1673 echo "$as_me:$LINENO: result: $JAVAC" >&5
1674echo "${ECHO_T}$JAVAC" >&6
1675else
1676 echo "$as_me:$LINENO: result: no" >&5
1677echo "${ECHO_T}no" >&6
1678fi
1679
1680 test -n "$JAVAC" && break
1681done
1682test -n "$JAVAC" || JAVAC="$JAVAPREFIX"
1683
1684fi
1685test "x$JAVAC" = x && { { echo "$as_me:$LINENO: error: no acceptable Java compiler found in \$PATH" >&5
1686echo "$as_me: error: no acceptable Java compiler found in \$PATH" >&2;}
1687 { (exit 1); exit 1; }; }
1688
1689echo "$as_me:$LINENO: checking if $JAVAC works" >&5
1690echo $ECHO_N "checking if $JAVAC works... $ECHO_C" >&6
1691if test "${ac_cv_prog_javac_works+set}" = set; then
1692 echo $ECHO_N "(cached) $ECHO_C" >&6
1693else
1694
1695JAVA_TEST=Test.java
1696CLASS_TEST=Test.class
1697cat << \EOF > $JAVA_TEST
1698/* #line 1698 "configure" */
1699public class Test {
1700}
1701EOF
1702if { ac_try='$JAVAC $JAVACFLAGS $JAVA_TEST'
1703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1704 (eval $ac_try) 2>&5
1705 ac_status=$?
1706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1707 (exit $ac_status); }; } >/dev/null 2>&1; then
1708 ac_cv_prog_javac_works=yes
1709else
1710 { { echo "$as_me:$LINENO: error: The Java compiler $JAVAC failed (see config.log, check the CLASSPATH?)" >&5
1711echo "$as_me: error: The Java compiler $JAVAC failed (see config.log, check the CLASSPATH?)" >&2;}
1712 { (exit 1); exit 1; }; }
1713 echo "configure: failed program was:" >&5
1714 cat $JAVA_TEST >&5
1715fi
1716rm -f $JAVA_TEST $CLASS_TEST
1717
1718fi
1719echo "$as_me:$LINENO: result: $ac_cv_prog_javac_works" >&5
1720echo "${ECHO_T}$ac_cv_prog_javac_works" >&6
1721
1722
1723 fi
1724fi
1725echo "$as_me:$LINENO: checking if $JAVA works" >&5
1726echo $ECHO_N "checking if $JAVA works... $ECHO_C" >&6
1727if test "${ac_cv_prog_java_works+set}" = set; then
1728 echo $ECHO_N "(cached) $ECHO_C" >&6
1729else
1730
1731JAVA_TEST=Test.java
1732CLASS_TEST=Test.class
1733TEST=Test
1734cat << \EOF > $JAVA_TEST
1735/* [#]line 1735 "configure" */
1736public class Test {
1737public static void main (String args[]) {
1738 System.exit (0);
1739} }
1740EOF
1741if test x$ac_cv_prog_uudecode_base64 != xyes; then
1742 if { ac_try='$JAVAC $JAVACFLAGS $JAVA_TEST'
1743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1744 (eval $ac_try) 2>&5
1745 ac_status=$?
1746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1747 (exit $ac_status); }; } && test -s $CLASS_TEST; then
1748 :
1749 else
1750 echo "configure: failed program was:" >&5
1751 cat $JAVA_TEST >&5
1752 { { echo "$as_me:$LINENO: error: The Java compiler $JAVAC failed (see config.log, check the CLASSPATH?)" >&5
1753echo "$as_me: error: The Java compiler $JAVAC failed (see config.log, check the CLASSPATH?)" >&2;}
1754 { (exit 1); exit 1; }; }
1755 fi
1756fi
1757if { ac_try='$JAVA $JAVAFLAGS $TEST'
1758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1759 (eval $ac_try) 2>&5
1760 ac_status=$?
1761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1762 (exit $ac_status); }; } >/dev/null 2>&1; then
1763 ac_cv_prog_java_works=yes
1764else
1765 echo "configure: failed program was:" >&5
1766 cat $JAVA_TEST >&5
1767 { { echo "$as_me:$LINENO: error: The Java VM $JAVA failed (see config.log, check the CLASSPATH?)" >&5
1768echo "$as_me: error: The Java VM $JAVA failed (see config.log, check the CLASSPATH?)" >&2;}
1769 { (exit 1); exit 1; }; }
1770fi
1771rm -fr $JAVA_TEST $CLASS_TEST Test.uue
1772
1773fi
1774echo "$as_me:$LINENO: result: $ac_cv_prog_java_works" >&5
1775echo "${ECHO_T}$ac_cv_prog_java_works" >&6
1776
1777
1778
1779
1780
1781# Check whether --with-unac or --without-unac was given.
1782if test "${with_unac+set}" = set; then
1783 withval="$with_unac"
1784 UNAC_DIR=$withval
1785fi;
1786
1787
1788# Check whether --with-libiconv or --without-libiconv was given.
1789if test "${with_libiconv+set}" = set; then
1790 withval="$with_libiconv"
1791 LIBICONV_DIR=$withval
1792fi;
1793
1794if test $ENABLE_ACCENTFOLD = 1; then
1795ac_aux_dir=
1796for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1797 if test -f $ac_dir/install-sh; then
1798 ac_aux_dir=$ac_dir
1799 ac_install_sh="$ac_aux_dir/install-sh -c"
1800 break
1801 elif test -f $ac_dir/install.sh; then
1802 ac_aux_dir=$ac_dir
1803 ac_install_sh="$ac_aux_dir/install.sh -c"
1804 break
1805 elif test -f $ac_dir/shtool; then
1806 ac_aux_dir=$ac_dir
1807 ac_install_sh="$ac_aux_dir/shtool install -c"
1808 break
1809 fi
1810done
1811if test -z "$ac_aux_dir"; then
1812 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1813echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1814 { (exit 1); exit 1; }; }
1815fi
1816ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1817ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1818ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1819
1820
1821
1822subdirs="$subdirs packages/unac"
1823
1824fi
1825
1826
1827if test $ENABLE_MG = 1; then
1828if test ! -d mg; then
1829echo "***** Folder mg does not exist, cannot ENABLE_MG.";
1830exit 1;
1831fi
1832
1833
1834subdirs="$subdirs mg"
1835
1836fi
1837
1838if test $ENABLE_MGPP = 1; then
1839if test ! -d mgpp; then
1840echo "***** Folder mgpp does not exist, cannot ENABLE_MGPP.";
1841exit 1;
1842fi
1843
1844
1845subdirs="$subdirs mgpp"
1846
1847fi
1848
1849if test $ENABLE_LUCENE = 1; then
1850if test ! -d lucene-gs; then
1851echo "***** Folder lucene-gs does not exist, cannot ENABLE_LUCENE.";
1852exit 1;
1853fi
1854fi
1855
1856 ac_config_files="$ac_config_files Makefile"
1857cat >confcache <<\_ACEOF
1858# This file is a shell script that caches the results of configure
1859# tests run on this system so they can be shared between configure
1860# scripts and configure runs, see configure's option --config-cache.
1861# It is not useful on other systems. If it contains results you don't
1862# want to keep, you may remove or edit it.
1863#
1864# config.status only pays attention to the cache file if you give it
1865# the --recheck option to rerun configure.
1866#
1867# `ac_cv_env_foo' variables (set or unset) will be overridden when
1868# loading this file, other *unset* `ac_cv_foo' will be assigned the
1869# following values.
1870
1871_ACEOF
1872
1873# The following way of writing the cache mishandles newlines in values,
1874# but we know of no workaround that is simple, portable, and efficient.
1875# So, don't put newlines in cache variables' values.
1876# Ultrix sh set writes to stderr and can't be redirected directly,
1877# and sets the high bit in the cache file unless we assign to the vars.
1878{
1879 (set) 2>&1 |
1880 case `(ac_space=' '; set | grep ac_space) 2>&1` in
1881 *ac_space=\ *)
1882 # `set' does not quote correctly, so add quotes (double-quote
1883 # substitution turns \\\\ into \\, and sed turns \\ into \).
1884 sed -n \
1885 "s/'/'\\\\''/g;
1886 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
1887 ;;
1888 *)
1889 # `set' quotes correctly as required by POSIX, so do not add quotes.
1890 sed -n \
1891 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1892 ;;
1893 esac;
1894} |
1895 sed '
1896 t clear
1897 : clear
1898 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
1899 t end
1900 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
1901 : end' >>confcache
1902if diff $cache_file confcache >/dev/null 2>&1; then :; else
1903 if test -w $cache_file; then
1904 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
1905 cat confcache >$cache_file
1906 else
1907 echo "not updating unwritable cache $cache_file"
1908 fi
1909fi
1910rm -f confcache
1911
1912test "x$prefix" = xNONE && prefix=$ac_default_prefix
1913# Let make expand exec_prefix.
1914test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
1915
1916# VPATH may cause trouble with some makes, so we remove $(srcdir),
1917# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
1918# trailing colons and then remove the whole line if VPATH becomes empty
1919# (actually we leave an empty line to preserve line numbers).
1920if test "x$srcdir" = x.; then
1921 ac_vpsub='/^[ ]*VPATH[ ]*=/{
1922s/:*\$(srcdir):*/:/;
1923s/:*\${srcdir}:*/:/;
1924s/:*@srcdir@:*/:/;
1925s/^\([^=]*=[ ]*\):*/\1/;
1926s/:*$//;
1927s/^[^=]*=[ ]*$//;
1928}'
1929fi
1930
1931# Transform confdefs.h into DEFS.
1932# Protect against shell expansion while executing Makefile rules.
1933# Protect against Makefile macro expansion.
1934#
1935# If the first sed substitution is executed (which looks for macros that
1936# take arguments), then we branch to the quote section. Otherwise,
1937# look for a macro that doesn't take arguments.
1938cat >confdef2opt.sed <<\_ACEOF
1939t clear
1940: clear
1941s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\),-D\1=\2,g
1942t quote
1943s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\),-D\1=\2,g
1944t quote
1945d
1946: quote
1947s,[ `~#$^&*(){}\\|;'"<>?],\\&,g
1948s,\[,\\&,g
1949s,\],\\&,g
1950s,\$,$$,g
1951p
1952_ACEOF
1953# We use echo to avoid assuming a particular line-breaking character.
1954# The extra dot is to prevent the shell from consuming trailing
1955# line-breaks from the sub-command output. A line-break within
1956# single-quotes doesn't work because, if this script is created in a
1957# platform that uses two characters for line-breaks (e.g., DOS), tr
1958# would break.
1959ac_LF_and_DOT=`echo; echo .`
1960DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
1961rm -f confdef2opt.sed
1962
1963
1964ac_libobjs=
1965ac_ltlibobjs=
1966for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
1967 # 1. Remove the extension, and $U if already installed.
1968 ac_i=`echo "$ac_i" |
1969 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
1970 # 2. Add them.
1971 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
1972 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
1973done
1974LIBOBJS=$ac_libobjs
1975
1976LTLIBOBJS=$ac_ltlibobjs
1977
1978
1979
1980: ${CONFIG_STATUS=./config.status}
1981ac_clean_files_save=$ac_clean_files
1982ac_clean_files="$ac_clean_files $CONFIG_STATUS"
1983{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
1984echo "$as_me: creating $CONFIG_STATUS" >&6;}
1985cat >$CONFIG_STATUS <<_ACEOF
1986#! $SHELL
1987# Generated by $as_me.
1988# Run this file to recreate the current configuration.
1989# Compiler output produced by configure, useful for debugging
1990# configure, is in config.log if it exists.
1991
1992debug=false
1993ac_cs_recheck=false
1994ac_cs_silent=false
1995SHELL=\${CONFIG_SHELL-$SHELL}
1996_ACEOF
1997
1998cat >>$CONFIG_STATUS <<\_ACEOF
1999## --------------------- ##
2000## M4sh Initialization. ##
2001## --------------------- ##
2002
2003# Be Bourne compatible
2004if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
2005 emulate sh
2006 NULLCMD=:
2007 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
2008 # is contrary to our usage. Disable this feature.
2009 alias -g '${1+"$@"}'='"$@"'
2010elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
2011 set -o posix
2012fi
2013DUALCASE=1; export DUALCASE # for MKS sh
2014
2015# Support unset when possible.
2016if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
2017 as_unset=unset
2018else
2019 as_unset=false
2020fi
2021
2022
2023# Work around bugs in pre-3.0 UWIN ksh.
2024$as_unset ENV MAIL MAILPATH
2025PS1='$ '
2026PS2='> '
2027PS4='+ '
2028
2029# NLS nuisances.
2030for as_var in \
2031 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
2032 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
2033 LC_TELEPHONE LC_TIME
2034do
2035 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
2036 eval $as_var=C; export $as_var
2037 else
2038 $as_unset $as_var
2039 fi
2040done
2041
2042# Required to use basename.
2043if expr a : '\(a\)' >/dev/null 2>&1; then
2044 as_expr=expr
2045else
2046 as_expr=false
2047fi
2048
2049if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
2050 as_basename=basename
2051else
2052 as_basename=false
2053fi
2054
2055
2056# Name of the executable.
2057as_me=`$as_basename "$0" ||
2058$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
2059 X"$0" : 'X\(//\)$' \| \
2060 X"$0" : 'X\(/\)$' \| \
2061 . : '\(.\)' 2>/dev/null ||
2062echo X/"$0" |
2063 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
2064 /^X\/\(\/\/\)$/{ s//\1/; q; }
2065 /^X\/\(\/\).*/{ s//\1/; q; }
2066 s/.*/./; q'`
2067
2068
2069# PATH needs CR, and LINENO needs CR and PATH.
2070# Avoid depending upon Character Ranges.
2071as_cr_letters='abcdefghijklmnopqrstuvwxyz'
2072as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
2073as_cr_Letters=$as_cr_letters$as_cr_LETTERS
2074as_cr_digits='0123456789'
2075as_cr_alnum=$as_cr_Letters$as_cr_digits
2076
2077# The user is always right.
2078if test "${PATH_SEPARATOR+set}" != set; then
2079 echo "#! /bin/sh" >conf$$.sh
2080 echo "exit 0" >>conf$$.sh
2081 chmod +x conf$$.sh
2082 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
2083 PATH_SEPARATOR=';'
2084 else
2085 PATH_SEPARATOR=:
2086 fi
2087 rm -f conf$$.sh
2088fi
2089
2090
2091 as_lineno_1=$LINENO
2092 as_lineno_2=$LINENO
2093 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
2094 test "x$as_lineno_1" != "x$as_lineno_2" &&
2095 test "x$as_lineno_3" = "x$as_lineno_2" || {
2096 # Find who we are. Look in the path if we contain no path at all
2097 # relative or not.
2098 case $0 in
2099 *[\\/]* ) as_myself=$0 ;;
2100 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2101for as_dir in $PATH
2102do
2103 IFS=$as_save_IFS
2104 test -z "$as_dir" && as_dir=.
2105 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
2106done
2107
2108 ;;
2109 esac
2110 # We did not find ourselves, most probably we were run as `sh COMMAND'
2111 # in which case we are not to be found in the path.
2112 if test "x$as_myself" = x; then
2113 as_myself=$0
2114 fi
2115 if test ! -f "$as_myself"; then
2116 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
2117echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
2118 { (exit 1); exit 1; }; }
2119 fi
2120 case $CONFIG_SHELL in
2121 '')
2122 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2123for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
2124do
2125 IFS=$as_save_IFS
2126 test -z "$as_dir" && as_dir=.
2127 for as_base in sh bash ksh sh5; do
2128 case $as_dir in
2129 /*)
2130 if ("$as_dir/$as_base" -c '
2131 as_lineno_1=$LINENO
2132 as_lineno_2=$LINENO
2133 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
2134 test "x$as_lineno_1" != "x$as_lineno_2" &&
2135 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
2136 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
2137 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
2138 CONFIG_SHELL=$as_dir/$as_base
2139 export CONFIG_SHELL
2140 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
2141 fi;;
2142 esac
2143 done
2144done
2145;;
2146 esac
2147
2148 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
2149 # uniformly replaced by the line number. The first 'sed' inserts a
2150 # line-number line before each line; the second 'sed' does the real
2151 # work. The second script uses 'N' to pair each line-number line
2152 # with the numbered line, and appends trailing '-' during
2153 # substitution so that $LINENO is not a special case at line end.
2154 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
2155 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
2156 sed '=' <$as_myself |
2157 sed '
2158 N
2159 s,$,-,
2160 : loop
2161 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
2162 t loop
2163 s,-$,,
2164 s,^['$as_cr_digits']*\n,,
2165 ' >$as_me.lineno &&
2166 chmod +x $as_me.lineno ||
2167 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
2168echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
2169 { (exit 1); exit 1; }; }
2170
2171 # Don't try to exec as it changes $[0], causing all sort of problems
2172 # (the dirname of $[0] is not the place where we might find the
2173 # original and so on. Autoconf is especially sensible to this).
2174 . ./$as_me.lineno
2175 # Exit status is that of the last command.
2176 exit
2177}
2178
2179
2180case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
2181 *c*,-n*) ECHO_N= ECHO_C='
2182' ECHO_T=' ' ;;
2183 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
2184 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
2185esac
2186
2187if expr a : '\(a\)' >/dev/null 2>&1; then
2188 as_expr=expr
2189else
2190 as_expr=false
2191fi
2192
2193rm -f conf$$ conf$$.exe conf$$.file
2194echo >conf$$.file
2195if ln -s conf$$.file conf$$ 2>/dev/null; then
2196 # We could just check for DJGPP; but this test a) works b) is more generic
2197 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
2198 if test -f conf$$.exe; then
2199 # Don't use ln at all; we don't have any links
2200 as_ln_s='cp -p'
2201 else
2202 as_ln_s='ln -s'
2203 fi
2204elif ln conf$$.file conf$$ 2>/dev/null; then
2205 as_ln_s=ln
2206else
2207 as_ln_s='cp -p'
2208fi
2209rm -f conf$$ conf$$.exe conf$$.file
2210
2211if mkdir -p . 2>/dev/null; then
2212 as_mkdir_p=:
2213else
2214 test -d ./-p && rmdir ./-p
2215 as_mkdir_p=false
2216fi
2217
2218as_executable_p="test -f"
2219
2220# Sed expression to map a string onto a valid CPP name.
2221as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
2222
2223# Sed expression to map a string onto a valid variable name.
2224as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
2225
2226
2227# IFS
2228# We need space, tab and new line, in precisely that order.
2229as_nl='
2230'
2231IFS=" $as_nl"
2232
2233# CDPATH.
2234$as_unset CDPATH
2235
2236exec 6>&1
2237
2238# Open the log real soon, to keep \$[0] and so on meaningful, and to
2239# report actual input values of CONFIG_FILES etc. instead of their
2240# values after options handling. Logging --version etc. is OK.
2241exec 5>>config.log
2242{
2243 echo
2244 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
2245## Running $as_me. ##
2246_ASBOX
2247} >&5
2248cat >&5 <<_CSEOF
2249
2250This file was extended by $as_me, which was
2251generated by GNU Autoconf 2.59. Invocation command line was
2252
2253 CONFIG_FILES = $CONFIG_FILES
2254 CONFIG_HEADERS = $CONFIG_HEADERS
2255 CONFIG_LINKS = $CONFIG_LINKS
2256 CONFIG_COMMANDS = $CONFIG_COMMANDS
2257 $ $0 $@
2258
2259_CSEOF
2260echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
2261echo >&5
2262_ACEOF
2263
2264# Files that config.status was made for.
2265if test -n "$ac_config_files"; then
2266 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
2267fi
2268
2269if test -n "$ac_config_headers"; then
2270 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
2271fi
2272
2273if test -n "$ac_config_links"; then
2274 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
2275fi
2276
2277if test -n "$ac_config_commands"; then
2278 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
2279fi
2280
2281cat >>$CONFIG_STATUS <<\_ACEOF
2282
2283ac_cs_usage="\
2284\`$as_me' instantiates files from templates according to the
2285current configuration.
2286
2287Usage: $0 [OPTIONS] [FILE]...
2288
2289 -h, --help print this help, then exit
2290 -V, --version print version number, then exit
2291 -q, --quiet do not print progress messages
2292 -d, --debug don't remove temporary files
2293 --recheck update $as_me by reconfiguring in the same conditions
2294 --file=FILE[:TEMPLATE]
2295 instantiate the configuration file FILE
2296
2297Configuration files:
2298$config_files
2299
2300Report bugs to <[email protected]>."
2301_ACEOF
2302
2303cat >>$CONFIG_STATUS <<_ACEOF
2304ac_cs_version="\\
2305config.status
2306configured by $0, generated by GNU Autoconf 2.59,
2307 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
2308
2309Copyright (C) 2003 Free Software Foundation, Inc.
2310This config.status script is free software; the Free Software Foundation
2311gives unlimited permission to copy, distribute and modify it."
2312srcdir=$srcdir
2313_ACEOF
2314
2315cat >>$CONFIG_STATUS <<\_ACEOF
2316# If no file are specified by the user, then we need to provide default
2317# value. By we need to know if files were specified by the user.
2318ac_need_defaults=:
2319while test $# != 0
2320do
2321 case $1 in
2322 --*=*)
2323 ac_option=`expr "x$1" : 'x\([^=]*\)='`
2324 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
2325 ac_shift=:
2326 ;;
2327 -*)
2328 ac_option=$1
2329 ac_optarg=$2
2330 ac_shift=shift
2331 ;;
2332 *) # This is not an option, so the user has probably given explicit
2333 # arguments.
2334 ac_option=$1
2335 ac_need_defaults=false;;
2336 esac
2337
2338 case $ac_option in
2339 # Handling of the options.
2340_ACEOF
2341cat >>$CONFIG_STATUS <<\_ACEOF
2342 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
2343 ac_cs_recheck=: ;;
2344 --version | --vers* | -V )
2345 echo "$ac_cs_version"; exit 0 ;;
2346 --he | --h)
2347 # Conflict between --help and --header
2348 { { echo "$as_me:$LINENO: error: ambiguous option: $1
2349Try \`$0 --help' for more information." >&5
2350echo "$as_me: error: ambiguous option: $1
2351Try \`$0 --help' for more information." >&2;}
2352 { (exit 1); exit 1; }; };;
2353 --help | --hel | -h )
2354 echo "$ac_cs_usage"; exit 0 ;;
2355 --debug | --d* | -d )
2356 debug=: ;;
2357 --file | --fil | --fi | --f )
2358 $ac_shift
2359 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
2360 ac_need_defaults=false;;
2361 --header | --heade | --head | --hea )
2362 $ac_shift
2363 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
2364 ac_need_defaults=false;;
2365 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2366 | -silent | --silent | --silen | --sile | --sil | --si | --s)
2367 ac_cs_silent=: ;;
2368
2369 # This is an error.
2370 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
2371Try \`$0 --help' for more information." >&5
2372echo "$as_me: error: unrecognized option: $1
2373Try \`$0 --help' for more information." >&2;}
2374 { (exit 1); exit 1; }; } ;;
2375
2376 *) ac_config_targets="$ac_config_targets $1" ;;
2377
2378 esac
2379 shift
2380done
2381
2382ac_configure_extra_args=
2383
2384if $ac_cs_silent; then
2385 exec 6>/dev/null
2386 ac_configure_extra_args="$ac_configure_extra_args --silent"
2387fi
2388
2389_ACEOF
2390cat >>$CONFIG_STATUS <<_ACEOF
2391if \$ac_cs_recheck; then
2392 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
2393 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
2394fi
2395
2396_ACEOF
2397
2398
2399
2400
2401
2402cat >>$CONFIG_STATUS <<\_ACEOF
2403for ac_config_target in $ac_config_targets
2404do
2405 case "$ac_config_target" in
2406 # Handling of arguments.
2407 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
2408 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
2409echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
2410 { (exit 1); exit 1; }; };;
2411 esac
2412done
2413
2414# If the user did not use the arguments to specify the items to instantiate,
2415# then the envvar interface is used. Set only those that are not.
2416# We use the long form for the default assignment because of an extremely
2417# bizarre bug on SunOS 4.1.3.
2418if $ac_need_defaults; then
2419 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
2420fi
2421
2422# Have a temporary directory for convenience. Make it in the build tree
2423# simply because there is no reason to put it here, and in addition,
2424# creating and moving files from /tmp can sometimes cause problems.
2425# Create a temporary directory, and hook for its removal unless debugging.
2426$debug ||
2427{
2428 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
2429 trap '{ (exit 1); exit 1; }' 1 2 13 15
2430}
2431
2432# Create a (secure) tmp directory for tmp files.
2433
2434{
2435 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
2436 test -n "$tmp" && test -d "$tmp"
2437} ||
2438{
2439 tmp=./confstat$$-$RANDOM
2440 (umask 077 && mkdir $tmp)
2441} ||
2442{
2443 echo "$me: cannot create a temporary directory in ." >&2
2444 { (exit 1); exit 1; }
2445}
2446
2447_ACEOF
2448
2449cat >>$CONFIG_STATUS <<_ACEOF
2450
2451#
2452# CONFIG_FILES section.
2453#
2454
2455# No need to generate the scripts if there are no CONFIG_FILES.
2456# This happens for instance when ./config.status config.h
2457if test -n "\$CONFIG_FILES"; then
2458 # Protect against being on the right side of a sed subst in config.status.
2459 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
2460 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
2461s,@SHELL@,$SHELL,;t t
2462s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
2463s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
2464s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
2465s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
2466s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
2467s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
2468s,@exec_prefix@,$exec_prefix,;t t
2469s,@prefix@,$prefix,;t t
2470s,@program_transform_name@,$program_transform_name,;t t
2471s,@bindir@,$bindir,;t t
2472s,@sbindir@,$sbindir,;t t
2473s,@libexecdir@,$libexecdir,;t t
2474s,@datadir@,$datadir,;t t
2475s,@sysconfdir@,$sysconfdir,;t t
2476s,@sharedstatedir@,$sharedstatedir,;t t
2477s,@localstatedir@,$localstatedir,;t t
2478s,@libdir@,$libdir,;t t
2479s,@includedir@,$includedir,;t t
2480s,@oldincludedir@,$oldincludedir,;t t
2481s,@infodir@,$infodir,;t t
2482s,@mandir@,$mandir,;t t
2483s,@build_alias@,$build_alias,;t t
2484s,@host_alias@,$host_alias,;t t
2485s,@target_alias@,$target_alias,;t t
2486s,@DEFS@,$DEFS,;t t
2487s,@ECHO_C@,$ECHO_C,;t t
2488s,@ECHO_N@,$ECHO_N,;t t
2489s,@ECHO_T@,$ECHO_T,;t t
2490s,@LIBS@,$LIBS,;t t
2491s,@ENABLE_ACCENTFOLD@,$ENABLE_ACCENTFOLD,;t t
2492s,@ENABLE_MG@,$ENABLE_MG,;t t
2493s,@ENABLE_MGPP@,$ENABLE_MGPP,;t t
2494s,@ENABLE_LUCENE@,$ENABLE_LUCENE,;t t
2495s,@COMPAT32BITFLAGS@,$COMPAT32BITFLAGS,;t t
2496s,@JAVAC@,$JAVAC,;t t
2497s,@JAVA@,$JAVA,;t t
2498s,@uudecode@,$uudecode,;t t
2499s,@subdirs@,$subdirs,;t t
2500s,@LIBOBJS@,$LIBOBJS,;t t
2501s,@LTLIBOBJS@,$LTLIBOBJS,;t t
2502CEOF
2503
2504_ACEOF
2505
2506 cat >>$CONFIG_STATUS <<\_ACEOF
2507 # Split the substitutions into bite-sized pieces for seds with
2508 # small command number limits, like on Digital OSF/1 and HP-UX.
2509 ac_max_sed_lines=48
2510 ac_sed_frag=1 # Number of current file.
2511 ac_beg=1 # First line for current file.
2512 ac_end=$ac_max_sed_lines # Line after last line for current file.
2513 ac_more_lines=:
2514 ac_sed_cmds=
2515 while $ac_more_lines; do
2516 if test $ac_beg -gt 1; then
2517 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
2518 else
2519 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
2520 fi
2521 if test ! -s $tmp/subs.frag; then
2522 ac_more_lines=false
2523 else
2524 # The purpose of the label and of the branching condition is to
2525 # speed up the sed processing (if there are no `@' at all, there
2526 # is no need to browse any of the substitutions).
2527 # These are the two extra sed commands mentioned above.
2528 (echo ':t
2529 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
2530 if test -z "$ac_sed_cmds"; then
2531 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
2532 else
2533 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
2534 fi
2535 ac_sed_frag=`expr $ac_sed_frag + 1`
2536 ac_beg=$ac_end
2537 ac_end=`expr $ac_end + $ac_max_sed_lines`
2538 fi
2539 done
2540 if test -z "$ac_sed_cmds"; then
2541 ac_sed_cmds=cat
2542 fi
2543fi # test -n "$CONFIG_FILES"
2544
2545_ACEOF
2546cat >>$CONFIG_STATUS <<\_ACEOF
2547for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
2548 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
2549 case $ac_file in
2550 - | *:- | *:-:* ) # input from stdin
2551 cat >$tmp/stdin
2552 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
2553 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
2554 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
2555 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
2556 * ) ac_file_in=$ac_file.in ;;
2557 esac
2558
2559 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
2560 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
2561$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
2562 X"$ac_file" : 'X\(//\)[^/]' \| \
2563 X"$ac_file" : 'X\(//\)$' \| \
2564 X"$ac_file" : 'X\(/\)' \| \
2565 . : '\(.\)' 2>/dev/null ||
2566echo X"$ac_file" |
2567 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
2568 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
2569 /^X\(\/\/\)$/{ s//\1/; q; }
2570 /^X\(\/\).*/{ s//\1/; q; }
2571 s/.*/./; q'`
2572 { if $as_mkdir_p; then
2573 mkdir -p "$ac_dir"
2574 else
2575 as_dir="$ac_dir"
2576 as_dirs=
2577 while test ! -d "$as_dir"; do
2578 as_dirs="$as_dir $as_dirs"
2579 as_dir=`(dirname "$as_dir") 2>/dev/null ||
2580$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
2581 X"$as_dir" : 'X\(//\)[^/]' \| \
2582 X"$as_dir" : 'X\(//\)$' \| \
2583 X"$as_dir" : 'X\(/\)' \| \
2584 . : '\(.\)' 2>/dev/null ||
2585echo X"$as_dir" |
2586 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
2587 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
2588 /^X\(\/\/\)$/{ s//\1/; q; }
2589 /^X\(\/\).*/{ s//\1/; q; }
2590 s/.*/./; q'`
2591 done
2592 test ! -n "$as_dirs" || mkdir $as_dirs
2593 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
2594echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
2595 { (exit 1); exit 1; }; }; }
2596
2597 ac_builddir=.
2598
2599if test "$ac_dir" != .; then
2600 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
2601 # A "../" for each directory in $ac_dir_suffix.
2602 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
2603else
2604 ac_dir_suffix= ac_top_builddir=
2605fi
2606
2607case $srcdir in
2608 .) # No --srcdir option. We are building in place.
2609 ac_srcdir=.
2610 if test -z "$ac_top_builddir"; then
2611 ac_top_srcdir=.
2612 else
2613 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
2614 fi ;;
2615 [\\/]* | ?:[\\/]* ) # Absolute path.
2616 ac_srcdir=$srcdir$ac_dir_suffix;
2617 ac_top_srcdir=$srcdir ;;
2618 *) # Relative path.
2619 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
2620 ac_top_srcdir=$ac_top_builddir$srcdir ;;
2621esac
2622
2623# Do not use `cd foo && pwd` to compute absolute paths, because
2624# the directories may not exist.
2625case `pwd` in
2626.) ac_abs_builddir="$ac_dir";;
2627*)
2628 case "$ac_dir" in
2629 .) ac_abs_builddir=`pwd`;;
2630 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
2631 *) ac_abs_builddir=`pwd`/"$ac_dir";;
2632 esac;;
2633esac
2634case $ac_abs_builddir in
2635.) ac_abs_top_builddir=${ac_top_builddir}.;;
2636*)
2637 case ${ac_top_builddir}. in
2638 .) ac_abs_top_builddir=$ac_abs_builddir;;
2639 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
2640 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
2641 esac;;
2642esac
2643case $ac_abs_builddir in
2644.) ac_abs_srcdir=$ac_srcdir;;
2645*)
2646 case $ac_srcdir in
2647 .) ac_abs_srcdir=$ac_abs_builddir;;
2648 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
2649 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
2650 esac;;
2651esac
2652case $ac_abs_builddir in
2653.) ac_abs_top_srcdir=$ac_top_srcdir;;
2654*)
2655 case $ac_top_srcdir in
2656 .) ac_abs_top_srcdir=$ac_abs_builddir;;
2657 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
2658 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
2659 esac;;
2660esac
2661
2662
2663
2664 if test x"$ac_file" != x-; then
2665 { echo "$as_me:$LINENO: creating $ac_file" >&5
2666echo "$as_me: creating $ac_file" >&6;}
2667 rm -f "$ac_file"
2668 fi
2669 # Let's still pretend it is `configure' which instantiates (i.e., don't
2670 # use $as_me), people would be surprised to read:
2671 # /* config.h. Generated by config.status. */
2672 if test x"$ac_file" = x-; then
2673 configure_input=
2674 else
2675 configure_input="$ac_file. "
2676 fi
2677 configure_input=$configure_input"Generated from `echo $ac_file_in |
2678 sed 's,.*/,,'` by configure."
2679
2680 # First look for the input files in the build tree, otherwise in the
2681 # src tree.
2682 ac_file_inputs=`IFS=:
2683 for f in $ac_file_in; do
2684 case $f in
2685 -) echo $tmp/stdin ;;
2686 [\\/$]*)
2687 # Absolute (can't be DOS-style, as IFS=:)
2688 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
2689echo "$as_me: error: cannot find input file: $f" >&2;}
2690 { (exit 1); exit 1; }; }
2691 echo "$f";;
2692 *) # Relative
2693 if test -f "$f"; then
2694 # Build tree
2695 echo "$f"
2696 elif test -f "$srcdir/$f"; then
2697 # Source tree
2698 echo "$srcdir/$f"
2699 else
2700 # /dev/null tree
2701 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
2702echo "$as_me: error: cannot find input file: $f" >&2;}
2703 { (exit 1); exit 1; }; }
2704 fi;;
2705 esac
2706 done` || { (exit 1); exit 1; }
2707_ACEOF
2708cat >>$CONFIG_STATUS <<_ACEOF
2709 sed "$ac_vpsub
2710$extrasub
2711_ACEOF
2712cat >>$CONFIG_STATUS <<\_ACEOF
2713:t
2714/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
2715s,@configure_input@,$configure_input,;t t
2716s,@srcdir@,$ac_srcdir,;t t
2717s,@abs_srcdir@,$ac_abs_srcdir,;t t
2718s,@top_srcdir@,$ac_top_srcdir,;t t
2719s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
2720s,@builddir@,$ac_builddir,;t t
2721s,@abs_builddir@,$ac_abs_builddir,;t t
2722s,@top_builddir@,$ac_top_builddir,;t t
2723s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
2724" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
2725 rm -f $tmp/stdin
2726 if test x"$ac_file" != x-; then
2727 mv $tmp/out $ac_file
2728 else
2729 cat $tmp/out
2730 rm -f $tmp/out
2731 fi
2732
2733done
2734_ACEOF
2735
2736cat >>$CONFIG_STATUS <<\_ACEOF
2737
2738{ (exit 0); exit 0; }
2739_ACEOF
2740chmod +x $CONFIG_STATUS
2741ac_clean_files=$ac_clean_files_save
2742
2743
2744# configure is writing to config.log, and then calls config.status.
2745# config.status does its own redirection, appending to config.log.
2746# Unfortunately, on DOS this fails, as config.log is still kept open
2747# by configure, so config.status won't be able to write to it; its
2748# output is simply discarded. So we exec the FD to /dev/null,
2749# effectively closing config.log, so it can be properly (re)opened and
2750# appended to by config.status. When coming back to configure, we
2751# need to make the FD available again.
2752if test "$no_create" != yes; then
2753 ac_cs_success=:
2754 ac_config_status_args=
2755 test "$silent" = yes &&
2756 ac_config_status_args="$ac_config_status_args --quiet"
2757 exec 5>/dev/null
2758 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
2759 exec 5>>config.log
2760 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
2761 # would make configure fail if this is the last instruction.
2762 $ac_cs_success || { (exit 1); exit 1; }
2763fi
2764
2765#
2766# CONFIG_SUBDIRS section.
2767#
2768if test "$no_recursion" != yes; then
2769
2770 # Remove --cache-file and --srcdir arguments so they do not pile up.
2771 ac_sub_configure_args=
2772 ac_prev=
2773 for ac_arg in $ac_configure_args; do
2774 if test -n "$ac_prev"; then
2775 ac_prev=
2776 continue
2777 fi
2778 case $ac_arg in
2779 -cache-file | --cache-file | --cache-fil | --cache-fi \
2780 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
2781 ac_prev=cache_file ;;
2782 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
2783 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
2784 | --c=*)
2785 ;;
2786 --config-cache | -C)
2787 ;;
2788 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
2789 ac_prev=srcdir ;;
2790 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
2791 ;;
2792 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
2793 ac_prev=prefix ;;
2794 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
2795 ;;
2796 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
2797 esac
2798 done
2799
2800 # Always prepend --prefix to ensure using the same prefix
2801 # in subdir configurations.
2802 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
2803
2804 ac_popdir=`pwd`
2805 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
2806
2807 # Do not complain, so a configure script can configure whichever
2808 # parts of a large source tree are present.
2809 test -d $srcdir/$ac_dir || continue
2810
2811 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
2812echo "$as_me: configuring in $ac_dir" >&6;}
2813 { if $as_mkdir_p; then
2814 mkdir -p "$ac_dir"
2815 else
2816 as_dir="$ac_dir"
2817 as_dirs=
2818 while test ! -d "$as_dir"; do
2819 as_dirs="$as_dir $as_dirs"
2820 as_dir=`(dirname "$as_dir") 2>/dev/null ||
2821$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
2822 X"$as_dir" : 'X\(//\)[^/]' \| \
2823 X"$as_dir" : 'X\(//\)$' \| \
2824 X"$as_dir" : 'X\(/\)' \| \
2825 . : '\(.\)' 2>/dev/null ||
2826echo X"$as_dir" |
2827 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
2828 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
2829 /^X\(\/\/\)$/{ s//\1/; q; }
2830 /^X\(\/\).*/{ s//\1/; q; }
2831 s/.*/./; q'`
2832 done
2833 test ! -n "$as_dirs" || mkdir $as_dirs
2834 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
2835echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
2836 { (exit 1); exit 1; }; }; }
2837
2838 ac_builddir=.
2839
2840if test "$ac_dir" != .; then
2841 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
2842 # A "../" for each directory in $ac_dir_suffix.
2843 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
2844else
2845 ac_dir_suffix= ac_top_builddir=
2846fi
2847
2848case $srcdir in
2849 .) # No --srcdir option. We are building in place.
2850 ac_srcdir=.
2851 if test -z "$ac_top_builddir"; then
2852 ac_top_srcdir=.
2853 else
2854 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
2855 fi ;;
2856 [\\/]* | ?:[\\/]* ) # Absolute path.
2857 ac_srcdir=$srcdir$ac_dir_suffix;
2858 ac_top_srcdir=$srcdir ;;
2859 *) # Relative path.
2860 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
2861 ac_top_srcdir=$ac_top_builddir$srcdir ;;
2862esac
2863
2864# Do not use `cd foo && pwd` to compute absolute paths, because
2865# the directories may not exist.
2866case `pwd` in
2867.) ac_abs_builddir="$ac_dir";;
2868*)
2869 case "$ac_dir" in
2870 .) ac_abs_builddir=`pwd`;;
2871 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
2872 *) ac_abs_builddir=`pwd`/"$ac_dir";;
2873 esac;;
2874esac
2875case $ac_abs_builddir in
2876.) ac_abs_top_builddir=${ac_top_builddir}.;;
2877*)
2878 case ${ac_top_builddir}. in
2879 .) ac_abs_top_builddir=$ac_abs_builddir;;
2880 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
2881 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
2882 esac;;
2883esac
2884case $ac_abs_builddir in
2885.) ac_abs_srcdir=$ac_srcdir;;
2886*)
2887 case $ac_srcdir in
2888 .) ac_abs_srcdir=$ac_abs_builddir;;
2889 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
2890 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
2891 esac;;
2892esac
2893case $ac_abs_builddir in
2894.) ac_abs_top_srcdir=$ac_top_srcdir;;
2895*)
2896 case $ac_top_srcdir in
2897 .) ac_abs_top_srcdir=$ac_abs_builddir;;
2898 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
2899 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
2900 esac;;
2901esac
2902
2903
2904 cd $ac_dir
2905
2906 # Check for guested configure; otherwise get Cygnus style configure.
2907 if test -f $ac_srcdir/configure.gnu; then
2908 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
2909 elif test -f $ac_srcdir/configure; then
2910 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
2911 elif test -f $ac_srcdir/configure.in; then
2912 ac_sub_configure=$ac_configure
2913 else
2914 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
2915echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
2916 ac_sub_configure=
2917 fi
2918
2919 # The recursion is here.
2920 if test -n "$ac_sub_configure"; then
2921 # Make the cache file name correct relative to the subdirectory.
2922 case $cache_file in
2923 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
2924 *) # Relative path.
2925 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
2926 esac
2927
2928 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
2929echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
2930 # The eval makes quoting arguments work.
2931 eval $ac_sub_configure $ac_sub_configure_args \
2932 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
2933 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
2934echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
2935 { (exit 1); exit 1; }; }
2936 fi
2937
2938 cd $ac_popdir
2939 done
2940fi
2941
Note: See TracBrowser for help on using the repository browser.