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

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

Undoing the commits of 22058 to the indexer folder: USE_GDBM, USE_JDBM are not relevant here (or USE_SQLITE).

  • Property svn:executable set to *
  • Property svn:keywords set to Author Date Id Revision
File size: 86.8 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_JNI 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-accentfold Disable Accent Folding for MGPP
789 --enable-jni Enable JNI compilation
790 --disable-mg Disable MG compilation
791 --disable-mgpp Disable MGPP compilation
792 --disable-lucene Disable Lucene compilation
793
794Optional Packages:
795 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
796 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
797 --with-unac=dir Use specified unac directory
798 --with-libiconv-prefix=dir Use specified libiconv directory
799
800_ACEOF
801fi
802
803if test "$ac_init_help" = "recursive"; then
804 # If there are subdirs, report their specific --help.
805 ac_popdir=`pwd`
806 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
807 test -d $ac_dir || continue
808 ac_builddir=.
809
810if test "$ac_dir" != .; then
811 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
812 # A "../" for each directory in $ac_dir_suffix.
813 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
814else
815 ac_dir_suffix= ac_top_builddir=
816fi
817
818case $srcdir in
819 .) # No --srcdir option. We are building in place.
820 ac_srcdir=.
821 if test -z "$ac_top_builddir"; then
822 ac_top_srcdir=.
823 else
824 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
825 fi ;;
826 [\\/]* | ?:[\\/]* ) # Absolute path.
827 ac_srcdir=$srcdir$ac_dir_suffix;
828 ac_top_srcdir=$srcdir ;;
829 *) # Relative path.
830 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
831 ac_top_srcdir=$ac_top_builddir$srcdir ;;
832esac
833
834# Do not use `cd foo && pwd` to compute absolute paths, because
835# the directories may not exist.
836case `pwd` in
837.) ac_abs_builddir="$ac_dir";;
838*)
839 case "$ac_dir" in
840 .) ac_abs_builddir=`pwd`;;
841 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
842 *) ac_abs_builddir=`pwd`/"$ac_dir";;
843 esac;;
844esac
845case $ac_abs_builddir in
846.) ac_abs_top_builddir=${ac_top_builddir}.;;
847*)
848 case ${ac_top_builddir}. in
849 .) ac_abs_top_builddir=$ac_abs_builddir;;
850 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
851 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
852 esac;;
853esac
854case $ac_abs_builddir in
855.) ac_abs_srcdir=$ac_srcdir;;
856*)
857 case $ac_srcdir in
858 .) ac_abs_srcdir=$ac_abs_builddir;;
859 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
860 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
861 esac;;
862esac
863case $ac_abs_builddir in
864.) ac_abs_top_srcdir=$ac_top_srcdir;;
865*)
866 case $ac_top_srcdir in
867 .) ac_abs_top_srcdir=$ac_abs_builddir;;
868 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
869 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
870 esac;;
871esac
872
873 cd $ac_dir
874 # Check for guested configure; otherwise get Cygnus style configure.
875 if test -f $ac_srcdir/configure.gnu; then
876 echo
877 $SHELL $ac_srcdir/configure.gnu --help=recursive
878 elif test -f $ac_srcdir/configure; then
879 echo
880 $SHELL $ac_srcdir/configure --help=recursive
881 elif test -f $ac_srcdir/configure.ac ||
882 test -f $ac_srcdir/configure.in; then
883 echo
884 $ac_configure --help
885 else
886 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
887 fi
888 cd $ac_popdir
889 done
890fi
891
892test -n "$ac_init_help" && exit 0
893if $ac_init_version; then
894 cat <<\_ACEOF
895
896Copyright (C) 2003 Free Software Foundation, Inc.
897This configure script is free software; the Free Software Foundation
898gives unlimited permission to copy, distribute and modify it.
899_ACEOF
900 exit 0
901fi
902exec 5>config.log
903cat >&5 <<_ACEOF
904This file contains any messages produced by compilers while
905running configure, to aid debugging if configure makes a mistake.
906
907It was created by $as_me, which was
908generated by GNU Autoconf 2.59. Invocation command line was
909
910 $ $0 $@
911
912_ACEOF
913{
914cat <<_ASUNAME
915## --------- ##
916## Platform. ##
917## --------- ##
918
919hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
920uname -m = `(uname -m) 2>/dev/null || echo unknown`
921uname -r = `(uname -r) 2>/dev/null || echo unknown`
922uname -s = `(uname -s) 2>/dev/null || echo unknown`
923uname -v = `(uname -v) 2>/dev/null || echo unknown`
924
925/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
926/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
927
928/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
929/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
930/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
931hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
932/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
933/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
934/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
935
936_ASUNAME
937
938as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
939for as_dir in $PATH
940do
941 IFS=$as_save_IFS
942 test -z "$as_dir" && as_dir=.
943 echo "PATH: $as_dir"
944done
945
946} >&5
947
948cat >&5 <<_ACEOF
949
950
951## ----------- ##
952## Core tests. ##
953## ----------- ##
954
955_ACEOF
956
957
958# Keep a trace of the command line.
959# Strip out --no-create and --no-recursion so they do not pile up.
960# Strip out --silent because we don't want to record it for future runs.
961# Also quote any args containing shell meta-characters.
962# Make two passes to allow for proper duplicate-argument suppression.
963ac_configure_args=
964ac_configure_args0=
965ac_configure_args1=
966ac_sep=
967ac_must_keep_next=false
968for ac_pass in 1 2
969do
970 for ac_arg
971 do
972 case $ac_arg in
973 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
974 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
975 | -silent | --silent | --silen | --sile | --sil)
976 continue ;;
977 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
978 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
979 esac
980 case $ac_pass in
981 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
982 2)
983 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
984 if test $ac_must_keep_next = true; then
985 ac_must_keep_next=false # Got value, back to normal.
986 else
987 case $ac_arg in
988 *=* | --config-cache | -C | -disable-* | --disable-* \
989 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
990 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
991 | -with-* | --with-* | -without-* | --without-* | --x)
992 case "$ac_configure_args0 " in
993 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
994 esac
995 ;;
996 -* ) ac_must_keep_next=true ;;
997 esac
998 fi
999 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1000 # Get rid of the leading space.
1001 ac_sep=" "
1002 ;;
1003 esac
1004 done
1005done
1006$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1007$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1008
1009# When interrupted or exit'd, cleanup temporary files, and complete
1010# config.log. We remove comments because anyway the quotes in there
1011# would cause problems or look ugly.
1012# WARNING: Be sure not to use single quotes in there, as some shells,
1013# such as our DU 5.0 friend, will then `close' the trap.
1014trap 'exit_status=$?
1015 # Save into config.log some information that might help in debugging.
1016 {
1017 echo
1018
1019 cat <<\_ASBOX
1020## ---------------- ##
1021## Cache variables. ##
1022## ---------------- ##
1023_ASBOX
1024 echo
1025 # The following way of writing the cache mishandles newlines in values,
1026{
1027 (set) 2>&1 |
1028 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1029 *ac_space=\ *)
1030 sed -n \
1031 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1032 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1033 ;;
1034 *)
1035 sed -n \
1036 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1037 ;;
1038 esac;
1039}
1040 echo
1041
1042 cat <<\_ASBOX
1043## ----------------- ##
1044## Output variables. ##
1045## ----------------- ##
1046_ASBOX
1047 echo
1048 for ac_var in $ac_subst_vars
1049 do
1050 eval ac_val=$`echo $ac_var`
1051 echo "$ac_var='"'"'$ac_val'"'"'"
1052 done | sort
1053 echo
1054
1055 if test -n "$ac_subst_files"; then
1056 cat <<\_ASBOX
1057## ------------- ##
1058## Output files. ##
1059## ------------- ##
1060_ASBOX
1061 echo
1062 for ac_var in $ac_subst_files
1063 do
1064 eval ac_val=$`echo $ac_var`
1065 echo "$ac_var='"'"'$ac_val'"'"'"
1066 done | sort
1067 echo
1068 fi
1069
1070 if test -s confdefs.h; then
1071 cat <<\_ASBOX
1072## ----------- ##
1073## confdefs.h. ##
1074## ----------- ##
1075_ASBOX
1076 echo
1077 sed "/^$/d" confdefs.h | sort
1078 echo
1079 fi
1080 test "$ac_signal" != 0 &&
1081 echo "$as_me: caught signal $ac_signal"
1082 echo "$as_me: exit $exit_status"
1083 } >&5
1084 rm -f core *.core &&
1085 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1086 exit $exit_status
1087 ' 0
1088for ac_signal in 1 2 13 15; do
1089 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1090done
1091ac_signal=0
1092
1093# confdefs.h avoids OS command line length limits that DEFS can exceed.
1094rm -rf conftest* confdefs.h
1095# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1096echo >confdefs.h
1097
1098# Predefined preprocessor variables.
1099
1100cat >>confdefs.h <<_ACEOF
1101#define PACKAGE_NAME "$PACKAGE_NAME"
1102_ACEOF
1103
1104
1105cat >>confdefs.h <<_ACEOF
1106#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1107_ACEOF
1108
1109
1110cat >>confdefs.h <<_ACEOF
1111#define PACKAGE_VERSION "$PACKAGE_VERSION"
1112_ACEOF
1113
1114
1115cat >>confdefs.h <<_ACEOF
1116#define PACKAGE_STRING "$PACKAGE_STRING"
1117_ACEOF
1118
1119
1120cat >>confdefs.h <<_ACEOF
1121#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1122_ACEOF
1123
1124
1125# Let the site file select an alternate cache file if it wants to.
1126# Prefer explicitly selected file to automatically selected ones.
1127if test -z "$CONFIG_SITE"; then
1128 if test "x$prefix" != xNONE; then
1129 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1130 else
1131 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1132 fi
1133fi
1134for ac_site_file in $CONFIG_SITE; do
1135 if test -r "$ac_site_file"; then
1136 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1137echo "$as_me: loading site script $ac_site_file" >&6;}
1138 sed 's/^/| /' "$ac_site_file" >&5
1139 . "$ac_site_file"
1140 fi
1141done
1142
1143if test -r "$cache_file"; then
1144 # Some versions of bash will fail to source /dev/null (special
1145 # files actually), so we avoid doing that.
1146 if test -f "$cache_file"; then
1147 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1148echo "$as_me: loading cache $cache_file" >&6;}
1149 case $cache_file in
1150 [\\/]* | ?:[\\/]* ) . $cache_file;;
1151 *) . ./$cache_file;;
1152 esac
1153 fi
1154else
1155 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1156echo "$as_me: creating cache $cache_file" >&6;}
1157 >$cache_file
1158fi
1159
1160# Check that the precious variables saved in the cache have kept the same
1161# value.
1162ac_cache_corrupted=false
1163for ac_var in `(set) 2>&1 |
1164 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1165 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1166 eval ac_new_set=\$ac_env_${ac_var}_set
1167 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1168 eval ac_new_val="\$ac_env_${ac_var}_value"
1169 case $ac_old_set,$ac_new_set in
1170 set,)
1171 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1172echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1173 ac_cache_corrupted=: ;;
1174 ,set)
1175 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1176echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1177 ac_cache_corrupted=: ;;
1178 ,);;
1179 *)
1180 if test "x$ac_old_val" != "x$ac_new_val"; then
1181 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1182echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1183 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1184echo "$as_me: former value: $ac_old_val" >&2;}
1185 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1186echo "$as_me: current value: $ac_new_val" >&2;}
1187 ac_cache_corrupted=:
1188 fi;;
1189 esac
1190 # Pass precious variables to config.status.
1191 if test "$ac_new_set" = set; then
1192 case $ac_new_val in
1193 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1194 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1195 *) ac_arg=$ac_var=$ac_new_val ;;
1196 esac
1197 case " $ac_configure_args " in
1198 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1199 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1200 esac
1201 fi
1202done
1203if $ac_cache_corrupted; then
1204 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1205echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1206 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1207echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1208 { (exit 1); exit 1; }; }
1209fi
1210
1211ac_ext=c
1212ac_cpp='$CPP $CPPFLAGS'
1213ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1214ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1215ac_compiler_gnu=$ac_cv_c_compiler_gnu
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237# Check whether --enable-accentfold or --disable-accentfold was given.
1238if test "${enable_accentfold+set}" = set; then
1239 enableval="$enable_accentfold"
1240 ENABLE_ACCENTFOLD=$enableval
1241else
1242 ENABLE_ACCENTFOLD=yes
1243fi;
1244if test $ENABLE_ACCENTFOLD = "yes" -o $ENABLE_ACCENTFOLD = "1" ; then
1245 ENABLE_ACCENTFOLD=1
1246 cat >>confdefs.h <<\_ACEOF
1247#define ENABLE_ACCENTFOLD
1248_ACEOF
1249
1250else
1251 ENABLE_ACCENTFOLD=0
1252fi
1253
1254
1255
1256# Check whether --enable-jni or --disable-jni was given.
1257if test "${enable_jni+set}" = set; then
1258 enableval="$enable_jni"
1259 ENABLE_JNI=$enableval
1260else
1261 ENABLE_JNI=no
1262fi;
1263if test $ENABLE_JNI = "yes" -o $ENABLE_JNI = "1" ; then
1264 ENABLE_JNI=1
1265 cat >>confdefs.h <<\_ACEOF
1266#define ENABLE_JNI
1267_ACEOF
1268
1269else
1270 ENABLE_JNI=0
1271fi
1272
1273
1274
1275# Check whether --enable-mg or --disable-mg was given.
1276if test "${enable_mg+set}" = set; then
1277 enableval="$enable_mg"
1278 ENABLE_MG=$enableval
1279else
1280 ENABLE_MG=yes
1281fi;
1282if test $ENABLE_MG = "yes" -o $ENABLE_MG = "1" ; then
1283 ENABLE_MG=1
1284 cat >>confdefs.h <<\_ACEOF
1285#define ENABLE_MG
1286_ACEOF
1287
1288else
1289 ENABLE_MG=0
1290fi
1291
1292
1293
1294# Check whether --enable-mgpp or --disable-mgpp was given.
1295if test "${enable_mgpp+set}" = set; then
1296 enableval="$enable_mgpp"
1297 ENABLE_MGPP=$enableval
1298else
1299 ENABLE_MGPP=yes
1300fi;
1301if test $ENABLE_MGPP = "yes" -o $ENABLE_MGPP = "1" ; then
1302 ENABLE_MGPP=1
1303 cat >>confdefs.h <<\_ACEOF
1304#define ENABLE_MGPP
1305_ACEOF
1306
1307else
1308 ENABLE_MGPP=0
1309fi
1310
1311
1312# Check whether --enable-lucene or --disable-lucene was given.
1313if test "${enable_lucene+set}" = set; then
1314 enableval="$enable_lucene"
1315 ENABLE_LUCENE=$enableval
1316else
1317 ENABLE_LUCENE=yes
1318fi;
1319if test $ENABLE_LUCENE = "yes" -o $ENABLE_LUCENE = "1" ; then
1320 ENABLE_LUCENE=1
1321 cat >>confdefs.h <<\_ACEOF
1322#define ENABLE_LUCENE
1323_ACEOF
1324
1325else
1326 ENABLE_LUCENE=0
1327fi
1328
1329
1330
1331cat >>confdefs.h <<_ACEOF
1332#define COMPAT32BITFLAGS $COMPAT32BITFLAGS
1333_ACEOF
1334
1335
1336
1337
1338
1339
1340if test "x$JAVAPREFIX" = x; then
1341 test "x$JAVAC" = x && for ac_prog in javac$EXEEXT
1342do
1343 # Extract the first word of "$ac_prog", so it can be a program name with args.
1344set dummy $ac_prog; ac_word=$2
1345echo "$as_me:$LINENO: checking for $ac_word" >&5
1346echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1347if test "${ac_cv_prog_JAVAC+set}" = set; then
1348 echo $ECHO_N "(cached) $ECHO_C" >&6
1349else
1350 if test -n "$JAVAC"; then
1351 ac_cv_prog_JAVAC="$JAVAC" # Let the user override the test.
1352else
1353as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1354for as_dir in $PATH
1355do
1356 IFS=$as_save_IFS
1357 test -z "$as_dir" && as_dir=.
1358 for ac_exec_ext in '' $ac_executable_extensions; do
1359 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1360 ac_cv_prog_JAVAC="$ac_prog"
1361 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1362 break 2
1363 fi
1364done
1365done
1366
1367fi
1368fi
1369JAVAC=$ac_cv_prog_JAVAC
1370if test -n "$JAVAC"; then
1371 echo "$as_me:$LINENO: result: $JAVAC" >&5
1372echo "${ECHO_T}$JAVAC" >&6
1373else
1374 echo "$as_me:$LINENO: result: no" >&5
1375echo "${ECHO_T}no" >&6
1376fi
1377
1378 test -n "$JAVAC" && break
1379done
1380
1381else
1382 test "x$JAVAC" = x && for ac_prog in javac$EXEEXT
1383do
1384 # Extract the first word of "$ac_prog", so it can be a program name with args.
1385set dummy $ac_prog; ac_word=$2
1386echo "$as_me:$LINENO: checking for $ac_word" >&5
1387echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1388if test "${ac_cv_prog_JAVAC+set}" = set; then
1389 echo $ECHO_N "(cached) $ECHO_C" >&6
1390else
1391 if test -n "$JAVAC"; then
1392 ac_cv_prog_JAVAC="$JAVAC" # Let the user override the test.
1393else
1394as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1395for as_dir in $PATH
1396do
1397 IFS=$as_save_IFS
1398 test -z "$as_dir" && as_dir=.
1399 for ac_exec_ext in '' $ac_executable_extensions; do
1400 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1401 ac_cv_prog_JAVAC="$ac_prog"
1402 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1403 break 2
1404 fi
1405done
1406done
1407
1408fi
1409fi
1410JAVAC=$ac_cv_prog_JAVAC
1411if test -n "$JAVAC"; then
1412 echo "$as_me:$LINENO: result: $JAVAC" >&5
1413echo "${ECHO_T}$JAVAC" >&6
1414else
1415 echo "$as_me:$LINENO: result: no" >&5
1416echo "${ECHO_T}no" >&6
1417fi
1418
1419 test -n "$JAVAC" && break
1420done
1421test -n "$JAVAC" || JAVAC="$JAVAPREFIX"
1422
1423fi
1424test "x$JAVAC" = x && { { echo "$as_me:$LINENO: error: no acceptable Java compiler found in \$PATH" >&5
1425echo "$as_me: error: no acceptable Java compiler found in \$PATH" >&2;}
1426 { (exit 1); exit 1; }; }
1427
1428echo "$as_me:$LINENO: checking if $JAVAC works" >&5
1429echo $ECHO_N "checking if $JAVAC works... $ECHO_C" >&6
1430if test "${ac_cv_prog_javac_works+set}" = set; then
1431 echo $ECHO_N "(cached) $ECHO_C" >&6
1432else
1433
1434JAVA_TEST=Test.java
1435CLASS_TEST=Test.class
1436cat << \EOF > $JAVA_TEST
1437/* #line 1437 "configure" */
1438public class Test {
1439}
1440EOF
1441if { ac_try='$JAVAC $JAVACFLAGS $JAVA_TEST'
1442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1443 (eval $ac_try) 2>&5
1444 ac_status=$?
1445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1446 (exit $ac_status); }; } >/dev/null 2>&1; then
1447 ac_cv_prog_javac_works=yes
1448else
1449 { { echo "$as_me:$LINENO: error: The Java compiler $JAVAC failed (see config.log, check the CLASSPATH?)" >&5
1450echo "$as_me: error: The Java compiler $JAVAC failed (see config.log, check the CLASSPATH?)" >&2;}
1451 { (exit 1); exit 1; }; }
1452 echo "configure: failed program was:" >&5
1453 cat $JAVA_TEST >&5
1454fi
1455rm -f $JAVA_TEST $CLASS_TEST
1456
1457fi
1458echo "$as_me:$LINENO: result: $ac_cv_prog_javac_works" >&5
1459echo "${ECHO_T}$ac_cv_prog_javac_works" >&6
1460
1461
1462
1463if test x$JAVAPREFIX = x; then
1464 test x$JAVA = x && for ac_prog in java$EXEEXT
1465do
1466 # Extract the first word of "$ac_prog", so it can be a program name with args.
1467set dummy $ac_prog; ac_word=$2
1468echo "$as_me:$LINENO: checking for $ac_word" >&5
1469echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1470if test "${ac_cv_prog_JAVA+set}" = set; then
1471 echo $ECHO_N "(cached) $ECHO_C" >&6
1472else
1473 if test -n "$JAVA"; then
1474 ac_cv_prog_JAVA="$JAVA" # Let the user override the test.
1475else
1476as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1477for as_dir in $PATH
1478do
1479 IFS=$as_save_IFS
1480 test -z "$as_dir" && as_dir=.
1481 for ac_exec_ext in '' $ac_executable_extensions; do
1482 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1483 ac_cv_prog_JAVA="$ac_prog"
1484 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1485 break 2
1486 fi
1487done
1488done
1489
1490fi
1491fi
1492JAVA=$ac_cv_prog_JAVA
1493if test -n "$JAVA"; then
1494 echo "$as_me:$LINENO: result: $JAVA" >&5
1495echo "${ECHO_T}$JAVA" >&6
1496else
1497 echo "$as_me:$LINENO: result: no" >&5
1498echo "${ECHO_T}no" >&6
1499fi
1500
1501 test -n "$JAVA" && break
1502done
1503
1504else
1505 test x$JAVA = x && for ac_prog in java$EXEEXT
1506do
1507 # Extract the first word of "$ac_prog", so it can be a program name with args.
1508set dummy $ac_prog; ac_word=$2
1509echo "$as_me:$LINENO: checking for $ac_word" >&5
1510echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1511if test "${ac_cv_prog_JAVA+set}" = set; then
1512 echo $ECHO_N "(cached) $ECHO_C" >&6
1513else
1514 if test -n "$JAVA"; then
1515 ac_cv_prog_JAVA="$JAVA" # Let the user override the test.
1516else
1517as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1518for as_dir in $PATH
1519do
1520 IFS=$as_save_IFS
1521 test -z "$as_dir" && as_dir=.
1522 for ac_exec_ext in '' $ac_executable_extensions; do
1523 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1524 ac_cv_prog_JAVA="$ac_prog"
1525 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1526 break 2
1527 fi
1528done
1529done
1530
1531fi
1532fi
1533JAVA=$ac_cv_prog_JAVA
1534if test -n "$JAVA"; then
1535 echo "$as_me:$LINENO: result: $JAVA" >&5
1536echo "${ECHO_T}$JAVA" >&6
1537else
1538 echo "$as_me:$LINENO: result: no" >&5
1539echo "${ECHO_T}no" >&6
1540fi
1541
1542 test -n "$JAVA" && break
1543done
1544test -n "$JAVA" || JAVA="$JAVAPREFIX"
1545
1546fi
1547test x$JAVA = x && { { echo "$as_me:$LINENO: error: no acceptable Java virtual machine found in \$PATH" >&5
1548echo "$as_me: error: no acceptable Java virtual machine found in \$PATH" >&2;}
1549 { (exit 1); exit 1; }; }
1550
1551# Extract the first word of "uudecode$EXEEXT", so it can be a program name with args.
1552set dummy uudecode$EXEEXT; ac_word=$2
1553echo "$as_me:$LINENO: checking for $ac_word" >&5
1554echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1555if test "${ac_cv_prog_uudecode+set}" = set; then
1556 echo $ECHO_N "(cached) $ECHO_C" >&6
1557else
1558 if test -n "$uudecode"; then
1559 ac_cv_prog_uudecode="$uudecode" # Let the user override the test.
1560else
1561as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1562for as_dir in $PATH
1563do
1564 IFS=$as_save_IFS
1565 test -z "$as_dir" && as_dir=.
1566 for ac_exec_ext in '' $ac_executable_extensions; do
1567 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1568 ac_cv_prog_uudecode="yes"
1569 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1570 break 2
1571 fi
1572done
1573done
1574
1575fi
1576fi
1577uudecode=$ac_cv_prog_uudecode
1578if test -n "$uudecode"; then
1579 echo "$as_me:$LINENO: result: $uudecode" >&5
1580echo "${ECHO_T}$uudecode" >&6
1581else
1582 echo "$as_me:$LINENO: result: no" >&5
1583echo "${ECHO_T}no" >&6
1584fi
1585
1586if test x$uudecode = xyes; then
1587echo "$as_me:$LINENO: checking if uudecode can decode base 64 file" >&5
1588echo $ECHO_N "checking if uudecode can decode base 64 file... $ECHO_C" >&6
1589if test "${ac_cv_prog_uudecode_base64+set}" = set; then
1590 echo $ECHO_N "(cached) $ECHO_C" >&6
1591else
1592
1593cat << \EOF > Test.uue
1594begin-base64 644 Test.class
1595yv66vgADAC0AFQcAAgEABFRlc3QHAAQBABBqYXZhL2xhbmcvT2JqZWN0AQAE
1596bWFpbgEAFihbTGphdmEvbGFuZy9TdHJpbmc7KVYBAARDb2RlAQAPTGluZU51
1597bWJlclRhYmxlDAAKAAsBAARleGl0AQAEKEkpVgoADQAJBwAOAQAQamF2YS9s
1598YW5nL1N5c3RlbQEABjxpbml0PgEAAygpVgwADwAQCgADABEBAApTb3VyY2VG
1599aWxlAQAJVGVzdC5qYXZhACEAAQADAAAAAAACAAkABQAGAAEABwAAACEAAQAB
1600AAAABQO4AAyxAAAAAQAIAAAACgACAAAACgAEAAsAAQAPABAAAQAHAAAAIQAB
1601AAEAAAAFKrcAErEAAAABAAgAAAAKAAIAAAAEAAQABAABABMAAAACABQ=
1602====
1603EOF
1604if uudecode$EXEEXT Test.uue; then
1605 ac_cv_prog_uudecode_base64=yes
1606else
1607 echo "configure: 1607: uudecode had trouble decoding base 64 file 'Test.uue'" >&5
1608 echo "configure: failed file was:" >&5
1609 cat Test.uue >&5
1610 ac_cv_prog_uudecode_base64=no
1611fi
1612rm -f Test.uue
1613fi
1614echo "$as_me:$LINENO: result: $ac_cv_prog_uudecode_base64" >&5
1615echo "${ECHO_T}$ac_cv_prog_uudecode_base64" >&6
1616fi
1617if test x$ac_cv_prog_uudecode_base64 != xyes; then
1618 rm -f Test.class
1619 { echo "$as_me:$LINENO: WARNING: I have to compile Test.class from scratch" >&5
1620echo "$as_me: WARNING: I have to compile Test.class from scratch" >&2;}
1621 if test x$ac_cv_prog_javac_works = xno; then
1622 { { echo "$as_me:$LINENO: error: Cannot compile java source. $JAVAC does not work properly" >&5
1623echo "$as_me: error: Cannot compile java source. $JAVAC does not work properly" >&2;}
1624 { (exit 1); exit 1; }; }
1625 fi
1626 if test x$ac_cv_prog_javac_works = x; then
1627
1628if test "x$JAVAPREFIX" = x; then
1629 test "x$JAVAC" = x && for ac_prog in javac$EXEEXT
1630do
1631 # Extract the first word of "$ac_prog", so it can be a program name with args.
1632set dummy $ac_prog; ac_word=$2
1633echo "$as_me:$LINENO: checking for $ac_word" >&5
1634echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1635if test "${ac_cv_prog_JAVAC+set}" = set; then
1636 echo $ECHO_N "(cached) $ECHO_C" >&6
1637else
1638 if test -n "$JAVAC"; then
1639 ac_cv_prog_JAVAC="$JAVAC" # Let the user override the test.
1640else
1641as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1642for as_dir in $PATH
1643do
1644 IFS=$as_save_IFS
1645 test -z "$as_dir" && as_dir=.
1646 for ac_exec_ext in '' $ac_executable_extensions; do
1647 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1648 ac_cv_prog_JAVAC="$ac_prog"
1649 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1650 break 2
1651 fi
1652done
1653done
1654
1655fi
1656fi
1657JAVAC=$ac_cv_prog_JAVAC
1658if test -n "$JAVAC"; then
1659 echo "$as_me:$LINENO: result: $JAVAC" >&5
1660echo "${ECHO_T}$JAVAC" >&6
1661else
1662 echo "$as_me:$LINENO: result: no" >&5
1663echo "${ECHO_T}no" >&6
1664fi
1665
1666 test -n "$JAVAC" && break
1667done
1668
1669else
1670 test "x$JAVAC" = x && for ac_prog in javac$EXEEXT
1671do
1672 # Extract the first word of "$ac_prog", so it can be a program name with args.
1673set dummy $ac_prog; ac_word=$2
1674echo "$as_me:$LINENO: checking for $ac_word" >&5
1675echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1676if test "${ac_cv_prog_JAVAC+set}" = set; then
1677 echo $ECHO_N "(cached) $ECHO_C" >&6
1678else
1679 if test -n "$JAVAC"; then
1680 ac_cv_prog_JAVAC="$JAVAC" # Let the user override the test.
1681else
1682as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1683for as_dir in $PATH
1684do
1685 IFS=$as_save_IFS
1686 test -z "$as_dir" && as_dir=.
1687 for ac_exec_ext in '' $ac_executable_extensions; do
1688 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1689 ac_cv_prog_JAVAC="$ac_prog"
1690 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1691 break 2
1692 fi
1693done
1694done
1695
1696fi
1697fi
1698JAVAC=$ac_cv_prog_JAVAC
1699if test -n "$JAVAC"; then
1700 echo "$as_me:$LINENO: result: $JAVAC" >&5
1701echo "${ECHO_T}$JAVAC" >&6
1702else
1703 echo "$as_me:$LINENO: result: no" >&5
1704echo "${ECHO_T}no" >&6
1705fi
1706
1707 test -n "$JAVAC" && break
1708done
1709test -n "$JAVAC" || JAVAC="$JAVAPREFIX"
1710
1711fi
1712test "x$JAVAC" = x && { { echo "$as_me:$LINENO: error: no acceptable Java compiler found in \$PATH" >&5
1713echo "$as_me: error: no acceptable Java compiler found in \$PATH" >&2;}
1714 { (exit 1); exit 1; }; }
1715
1716echo "$as_me:$LINENO: checking if $JAVAC works" >&5
1717echo $ECHO_N "checking if $JAVAC works... $ECHO_C" >&6
1718if test "${ac_cv_prog_javac_works+set}" = set; then
1719 echo $ECHO_N "(cached) $ECHO_C" >&6
1720else
1721
1722JAVA_TEST=Test.java
1723CLASS_TEST=Test.class
1724cat << \EOF > $JAVA_TEST
1725/* #line 1725 "configure" */
1726public class Test {
1727}
1728EOF
1729if { ac_try='$JAVAC $JAVACFLAGS $JAVA_TEST'
1730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1731 (eval $ac_try) 2>&5
1732 ac_status=$?
1733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1734 (exit $ac_status); }; } >/dev/null 2>&1; then
1735 ac_cv_prog_javac_works=yes
1736else
1737 { { echo "$as_me:$LINENO: error: The Java compiler $JAVAC failed (see config.log, check the CLASSPATH?)" >&5
1738echo "$as_me: error: The Java compiler $JAVAC failed (see config.log, check the CLASSPATH?)" >&2;}
1739 { (exit 1); exit 1; }; }
1740 echo "configure: failed program was:" >&5
1741 cat $JAVA_TEST >&5
1742fi
1743rm -f $JAVA_TEST $CLASS_TEST
1744
1745fi
1746echo "$as_me:$LINENO: result: $ac_cv_prog_javac_works" >&5
1747echo "${ECHO_T}$ac_cv_prog_javac_works" >&6
1748
1749
1750 fi
1751fi
1752echo "$as_me:$LINENO: checking if $JAVA works" >&5
1753echo $ECHO_N "checking if $JAVA works... $ECHO_C" >&6
1754if test "${ac_cv_prog_java_works+set}" = set; then
1755 echo $ECHO_N "(cached) $ECHO_C" >&6
1756else
1757
1758JAVA_TEST=Test.java
1759CLASS_TEST=Test.class
1760TEST=Test
1761cat << \EOF > $JAVA_TEST
1762/* [#]line 1762 "configure" */
1763public class Test {
1764public static void main (String args[]) {
1765 System.exit (0);
1766} }
1767EOF
1768if test x$ac_cv_prog_uudecode_base64 != xyes; then
1769 if { ac_try='$JAVAC $JAVACFLAGS $JAVA_TEST'
1770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1771 (eval $ac_try) 2>&5
1772 ac_status=$?
1773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1774 (exit $ac_status); }; } && test -s $CLASS_TEST; then
1775 :
1776 else
1777 echo "configure: failed program was:" >&5
1778 cat $JAVA_TEST >&5
1779 { { echo "$as_me:$LINENO: error: The Java compiler $JAVAC failed (see config.log, check the CLASSPATH?)" >&5
1780echo "$as_me: error: The Java compiler $JAVAC failed (see config.log, check the CLASSPATH?)" >&2;}
1781 { (exit 1); exit 1; }; }
1782 fi
1783fi
1784if { ac_try='$JAVA $JAVAFLAGS $TEST'
1785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1786 (eval $ac_try) 2>&5
1787 ac_status=$?
1788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1789 (exit $ac_status); }; } >/dev/null 2>&1; then
1790 ac_cv_prog_java_works=yes
1791else
1792 echo "configure: failed program was:" >&5
1793 cat $JAVA_TEST >&5
1794 { { echo "$as_me:$LINENO: error: The Java VM $JAVA failed (see config.log, check the CLASSPATH?)" >&5
1795echo "$as_me: error: The Java VM $JAVA failed (see config.log, check the CLASSPATH?)" >&2;}
1796 { (exit 1); exit 1; }; }
1797fi
1798rm -fr $JAVA_TEST $CLASS_TEST Test.uue
1799
1800fi
1801echo "$as_me:$LINENO: result: $ac_cv_prog_java_works" >&5
1802echo "${ECHO_T}$ac_cv_prog_java_works" >&6
1803
1804
1805
1806
1807
1808# Check whether --with-unac or --without-unac was given.
1809if test "${with_unac+set}" = set; then
1810 withval="$with_unac"
1811 UNAC_DIR=$withval
1812fi;
1813
1814
1815# Check whether --with-libiconv or --without-libiconv was given.
1816if test "${with_libiconv+set}" = set; then
1817 withval="$with_libiconv"
1818 LIBICONV_DIR=$withval
1819fi;
1820
1821if test $ENABLE_ACCENTFOLD = 1; then
1822ac_aux_dir=
1823for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1824 if test -f $ac_dir/install-sh; then
1825 ac_aux_dir=$ac_dir
1826 ac_install_sh="$ac_aux_dir/install-sh -c"
1827 break
1828 elif test -f $ac_dir/install.sh; then
1829 ac_aux_dir=$ac_dir
1830 ac_install_sh="$ac_aux_dir/install.sh -c"
1831 break
1832 elif test -f $ac_dir/shtool; then
1833 ac_aux_dir=$ac_dir
1834 ac_install_sh="$ac_aux_dir/shtool install -c"
1835 break
1836 fi
1837done
1838if test -z "$ac_aux_dir"; then
1839 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1840echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1841 { (exit 1); exit 1; }; }
1842fi
1843ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1844ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1845ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1846
1847
1848
1849subdirs="$subdirs packages/unac"
1850
1851fi
1852
1853
1854if test $ENABLE_MG = 1; then
1855if test ! -d mg; then
1856echo "***** Folder mg does not exist, cannot ENABLE_MG.";
1857exit 1;
1858fi
1859
1860
1861subdirs="$subdirs mg"
1862
1863fi
1864
1865if test $ENABLE_MGPP = 1; then
1866if test ! -d mgpp; then
1867echo "***** Folder mgpp does not exist, cannot ENABLE_MGPP.";
1868exit 1;
1869fi
1870
1871
1872subdirs="$subdirs mgpp"
1873
1874fi
1875
1876if test $ENABLE_LUCENE = 1; then
1877if test ! -d lucene-gs; then
1878echo "***** Folder lucene-gs does not exist, cannot ENABLE_LUCENE.";
1879exit 1;
1880fi
1881fi
1882
1883 ac_config_files="$ac_config_files Makefile"
1884cat >confcache <<\_ACEOF
1885# This file is a shell script that caches the results of configure
1886# tests run on this system so they can be shared between configure
1887# scripts and configure runs, see configure's option --config-cache.
1888# It is not useful on other systems. If it contains results you don't
1889# want to keep, you may remove or edit it.
1890#
1891# config.status only pays attention to the cache file if you give it
1892# the --recheck option to rerun configure.
1893#
1894# `ac_cv_env_foo' variables (set or unset) will be overridden when
1895# loading this file, other *unset* `ac_cv_foo' will be assigned the
1896# following values.
1897
1898_ACEOF
1899
1900# The following way of writing the cache mishandles newlines in values,
1901# but we know of no workaround that is simple, portable, and efficient.
1902# So, don't put newlines in cache variables' values.
1903# Ultrix sh set writes to stderr and can't be redirected directly,
1904# and sets the high bit in the cache file unless we assign to the vars.
1905{
1906 (set) 2>&1 |
1907 case `(ac_space=' '; set | grep ac_space) 2>&1` in
1908 *ac_space=\ *)
1909 # `set' does not quote correctly, so add quotes (double-quote
1910 # substitution turns \\\\ into \\, and sed turns \\ into \).
1911 sed -n \
1912 "s/'/'\\\\''/g;
1913 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
1914 ;;
1915 *)
1916 # `set' quotes correctly as required by POSIX, so do not add quotes.
1917 sed -n \
1918 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1919 ;;
1920 esac;
1921} |
1922 sed '
1923 t clear
1924 : clear
1925 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
1926 t end
1927 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
1928 : end' >>confcache
1929if diff $cache_file confcache >/dev/null 2>&1; then :; else
1930 if test -w $cache_file; then
1931 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
1932 cat confcache >$cache_file
1933 else
1934 echo "not updating unwritable cache $cache_file"
1935 fi
1936fi
1937rm -f confcache
1938
1939test "x$prefix" = xNONE && prefix=$ac_default_prefix
1940# Let make expand exec_prefix.
1941test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
1942
1943# VPATH may cause trouble with some makes, so we remove $(srcdir),
1944# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
1945# trailing colons and then remove the whole line if VPATH becomes empty
1946# (actually we leave an empty line to preserve line numbers).
1947if test "x$srcdir" = x.; then
1948 ac_vpsub='/^[ ]*VPATH[ ]*=/{
1949s/:*\$(srcdir):*/:/;
1950s/:*\${srcdir}:*/:/;
1951s/:*@srcdir@:*/:/;
1952s/^\([^=]*=[ ]*\):*/\1/;
1953s/:*$//;
1954s/^[^=]*=[ ]*$//;
1955}'
1956fi
1957
1958# Transform confdefs.h into DEFS.
1959# Protect against shell expansion while executing Makefile rules.
1960# Protect against Makefile macro expansion.
1961#
1962# If the first sed substitution is executed (which looks for macros that
1963# take arguments), then we branch to the quote section. Otherwise,
1964# look for a macro that doesn't take arguments.
1965cat >confdef2opt.sed <<\_ACEOF
1966t clear
1967: clear
1968s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\),-D\1=\2,g
1969t quote
1970s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\),-D\1=\2,g
1971t quote
1972d
1973: quote
1974s,[ `~#$^&*(){}\\|;'"<>?],\\&,g
1975s,\[,\\&,g
1976s,\],\\&,g
1977s,\$,$$,g
1978p
1979_ACEOF
1980# We use echo to avoid assuming a particular line-breaking character.
1981# The extra dot is to prevent the shell from consuming trailing
1982# line-breaks from the sub-command output. A line-break within
1983# single-quotes doesn't work because, if this script is created in a
1984# platform that uses two characters for line-breaks (e.g., DOS), tr
1985# would break.
1986ac_LF_and_DOT=`echo; echo .`
1987DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
1988rm -f confdef2opt.sed
1989
1990
1991ac_libobjs=
1992ac_ltlibobjs=
1993for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
1994 # 1. Remove the extension, and $U if already installed.
1995 ac_i=`echo "$ac_i" |
1996 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
1997 # 2. Add them.
1998 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
1999 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
2000done
2001LIBOBJS=$ac_libobjs
2002
2003LTLIBOBJS=$ac_ltlibobjs
2004
2005
2006
2007: ${CONFIG_STATUS=./config.status}
2008ac_clean_files_save=$ac_clean_files
2009ac_clean_files="$ac_clean_files $CONFIG_STATUS"
2010{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
2011echo "$as_me: creating $CONFIG_STATUS" >&6;}
2012cat >$CONFIG_STATUS <<_ACEOF
2013#! $SHELL
2014# Generated by $as_me.
2015# Run this file to recreate the current configuration.
2016# Compiler output produced by configure, useful for debugging
2017# configure, is in config.log if it exists.
2018
2019debug=false
2020ac_cs_recheck=false
2021ac_cs_silent=false
2022SHELL=\${CONFIG_SHELL-$SHELL}
2023_ACEOF
2024
2025cat >>$CONFIG_STATUS <<\_ACEOF
2026## --------------------- ##
2027## M4sh Initialization. ##
2028## --------------------- ##
2029
2030# Be Bourne compatible
2031if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
2032 emulate sh
2033 NULLCMD=:
2034 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
2035 # is contrary to our usage. Disable this feature.
2036 alias -g '${1+"$@"}'='"$@"'
2037elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
2038 set -o posix
2039fi
2040DUALCASE=1; export DUALCASE # for MKS sh
2041
2042# Support unset when possible.
2043if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
2044 as_unset=unset
2045else
2046 as_unset=false
2047fi
2048
2049
2050# Work around bugs in pre-3.0 UWIN ksh.
2051$as_unset ENV MAIL MAILPATH
2052PS1='$ '
2053PS2='> '
2054PS4='+ '
2055
2056# NLS nuisances.
2057for as_var in \
2058 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
2059 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
2060 LC_TELEPHONE LC_TIME
2061do
2062 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
2063 eval $as_var=C; export $as_var
2064 else
2065 $as_unset $as_var
2066 fi
2067done
2068
2069# Required to use basename.
2070if expr a : '\(a\)' >/dev/null 2>&1; then
2071 as_expr=expr
2072else
2073 as_expr=false
2074fi
2075
2076if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
2077 as_basename=basename
2078else
2079 as_basename=false
2080fi
2081
2082
2083# Name of the executable.
2084as_me=`$as_basename "$0" ||
2085$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
2086 X"$0" : 'X\(//\)$' \| \
2087 X"$0" : 'X\(/\)$' \| \
2088 . : '\(.\)' 2>/dev/null ||
2089echo X/"$0" |
2090 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
2091 /^X\/\(\/\/\)$/{ s//\1/; q; }
2092 /^X\/\(\/\).*/{ s//\1/; q; }
2093 s/.*/./; q'`
2094
2095
2096# PATH needs CR, and LINENO needs CR and PATH.
2097# Avoid depending upon Character Ranges.
2098as_cr_letters='abcdefghijklmnopqrstuvwxyz'
2099as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
2100as_cr_Letters=$as_cr_letters$as_cr_LETTERS
2101as_cr_digits='0123456789'
2102as_cr_alnum=$as_cr_Letters$as_cr_digits
2103
2104# The user is always right.
2105if test "${PATH_SEPARATOR+set}" != set; then
2106 echo "#! /bin/sh" >conf$$.sh
2107 echo "exit 0" >>conf$$.sh
2108 chmod +x conf$$.sh
2109 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
2110 PATH_SEPARATOR=';'
2111 else
2112 PATH_SEPARATOR=:
2113 fi
2114 rm -f conf$$.sh
2115fi
2116
2117
2118 as_lineno_1=$LINENO
2119 as_lineno_2=$LINENO
2120 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
2121 test "x$as_lineno_1" != "x$as_lineno_2" &&
2122 test "x$as_lineno_3" = "x$as_lineno_2" || {
2123 # Find who we are. Look in the path if we contain no path at all
2124 # relative or not.
2125 case $0 in
2126 *[\\/]* ) as_myself=$0 ;;
2127 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2128for as_dir in $PATH
2129do
2130 IFS=$as_save_IFS
2131 test -z "$as_dir" && as_dir=.
2132 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
2133done
2134
2135 ;;
2136 esac
2137 # We did not find ourselves, most probably we were run as `sh COMMAND'
2138 # in which case we are not to be found in the path.
2139 if test "x$as_myself" = x; then
2140 as_myself=$0
2141 fi
2142 if test ! -f "$as_myself"; then
2143 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
2144echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
2145 { (exit 1); exit 1; }; }
2146 fi
2147 case $CONFIG_SHELL in
2148 '')
2149 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2150for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
2151do
2152 IFS=$as_save_IFS
2153 test -z "$as_dir" && as_dir=.
2154 for as_base in sh bash ksh sh5; do
2155 case $as_dir in
2156 /*)
2157 if ("$as_dir/$as_base" -c '
2158 as_lineno_1=$LINENO
2159 as_lineno_2=$LINENO
2160 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
2161 test "x$as_lineno_1" != "x$as_lineno_2" &&
2162 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
2163 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
2164 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
2165 CONFIG_SHELL=$as_dir/$as_base
2166 export CONFIG_SHELL
2167 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
2168 fi;;
2169 esac
2170 done
2171done
2172;;
2173 esac
2174
2175 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
2176 # uniformly replaced by the line number. The first 'sed' inserts a
2177 # line-number line before each line; the second 'sed' does the real
2178 # work. The second script uses 'N' to pair each line-number line
2179 # with the numbered line, and appends trailing '-' during
2180 # substitution so that $LINENO is not a special case at line end.
2181 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
2182 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
2183 sed '=' <$as_myself |
2184 sed '
2185 N
2186 s,$,-,
2187 : loop
2188 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
2189 t loop
2190 s,-$,,
2191 s,^['$as_cr_digits']*\n,,
2192 ' >$as_me.lineno &&
2193 chmod +x $as_me.lineno ||
2194 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
2195echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
2196 { (exit 1); exit 1; }; }
2197
2198 # Don't try to exec as it changes $[0], causing all sort of problems
2199 # (the dirname of $[0] is not the place where we might find the
2200 # original and so on. Autoconf is especially sensible to this).
2201 . ./$as_me.lineno
2202 # Exit status is that of the last command.
2203 exit
2204}
2205
2206
2207case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
2208 *c*,-n*) ECHO_N= ECHO_C='
2209' ECHO_T=' ' ;;
2210 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
2211 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
2212esac
2213
2214if expr a : '\(a\)' >/dev/null 2>&1; then
2215 as_expr=expr
2216else
2217 as_expr=false
2218fi
2219
2220rm -f conf$$ conf$$.exe conf$$.file
2221echo >conf$$.file
2222if ln -s conf$$.file conf$$ 2>/dev/null; then
2223 # We could just check for DJGPP; but this test a) works b) is more generic
2224 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
2225 if test -f conf$$.exe; then
2226 # Don't use ln at all; we don't have any links
2227 as_ln_s='cp -p'
2228 else
2229 as_ln_s='ln -s'
2230 fi
2231elif ln conf$$.file conf$$ 2>/dev/null; then
2232 as_ln_s=ln
2233else
2234 as_ln_s='cp -p'
2235fi
2236rm -f conf$$ conf$$.exe conf$$.file
2237
2238if mkdir -p . 2>/dev/null; then
2239 as_mkdir_p=:
2240else
2241 test -d ./-p && rmdir ./-p
2242 as_mkdir_p=false
2243fi
2244
2245as_executable_p="test -f"
2246
2247# Sed expression to map a string onto a valid CPP name.
2248as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
2249
2250# Sed expression to map a string onto a valid variable name.
2251as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
2252
2253
2254# IFS
2255# We need space, tab and new line, in precisely that order.
2256as_nl='
2257'
2258IFS=" $as_nl"
2259
2260# CDPATH.
2261$as_unset CDPATH
2262
2263exec 6>&1
2264
2265# Open the log real soon, to keep \$[0] and so on meaningful, and to
2266# report actual input values of CONFIG_FILES etc. instead of their
2267# values after options handling. Logging --version etc. is OK.
2268exec 5>>config.log
2269{
2270 echo
2271 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
2272## Running $as_me. ##
2273_ASBOX
2274} >&5
2275cat >&5 <<_CSEOF
2276
2277This file was extended by $as_me, which was
2278generated by GNU Autoconf 2.59. Invocation command line was
2279
2280 CONFIG_FILES = $CONFIG_FILES
2281 CONFIG_HEADERS = $CONFIG_HEADERS
2282 CONFIG_LINKS = $CONFIG_LINKS
2283 CONFIG_COMMANDS = $CONFIG_COMMANDS
2284 $ $0 $@
2285
2286_CSEOF
2287echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
2288echo >&5
2289_ACEOF
2290
2291# Files that config.status was made for.
2292if test -n "$ac_config_files"; then
2293 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
2294fi
2295
2296if test -n "$ac_config_headers"; then
2297 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
2298fi
2299
2300if test -n "$ac_config_links"; then
2301 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
2302fi
2303
2304if test -n "$ac_config_commands"; then
2305 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
2306fi
2307
2308cat >>$CONFIG_STATUS <<\_ACEOF
2309
2310ac_cs_usage="\
2311\`$as_me' instantiates files from templates according to the
2312current configuration.
2313
2314Usage: $0 [OPTIONS] [FILE]...
2315
2316 -h, --help print this help, then exit
2317 -V, --version print version number, then exit
2318 -q, --quiet do not print progress messages
2319 -d, --debug don't remove temporary files
2320 --recheck update $as_me by reconfiguring in the same conditions
2321 --file=FILE[:TEMPLATE]
2322 instantiate the configuration file FILE
2323
2324Configuration files:
2325$config_files
2326
2327Report bugs to <[email protected]>."
2328_ACEOF
2329
2330cat >>$CONFIG_STATUS <<_ACEOF
2331ac_cs_version="\\
2332config.status
2333configured by $0, generated by GNU Autoconf 2.59,
2334 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
2335
2336Copyright (C) 2003 Free Software Foundation, Inc.
2337This config.status script is free software; the Free Software Foundation
2338gives unlimited permission to copy, distribute and modify it."
2339srcdir=$srcdir
2340_ACEOF
2341
2342cat >>$CONFIG_STATUS <<\_ACEOF
2343# If no file are specified by the user, then we need to provide default
2344# value. By we need to know if files were specified by the user.
2345ac_need_defaults=:
2346while test $# != 0
2347do
2348 case $1 in
2349 --*=*)
2350 ac_option=`expr "x$1" : 'x\([^=]*\)='`
2351 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
2352 ac_shift=:
2353 ;;
2354 -*)
2355 ac_option=$1
2356 ac_optarg=$2
2357 ac_shift=shift
2358 ;;
2359 *) # This is not an option, so the user has probably given explicit
2360 # arguments.
2361 ac_option=$1
2362 ac_need_defaults=false;;
2363 esac
2364
2365 case $ac_option in
2366 # Handling of the options.
2367_ACEOF
2368cat >>$CONFIG_STATUS <<\_ACEOF
2369 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
2370 ac_cs_recheck=: ;;
2371 --version | --vers* | -V )
2372 echo "$ac_cs_version"; exit 0 ;;
2373 --he | --h)
2374 # Conflict between --help and --header
2375 { { echo "$as_me:$LINENO: error: ambiguous option: $1
2376Try \`$0 --help' for more information." >&5
2377echo "$as_me: error: ambiguous option: $1
2378Try \`$0 --help' for more information." >&2;}
2379 { (exit 1); exit 1; }; };;
2380 --help | --hel | -h )
2381 echo "$ac_cs_usage"; exit 0 ;;
2382 --debug | --d* | -d )
2383 debug=: ;;
2384 --file | --fil | --fi | --f )
2385 $ac_shift
2386 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
2387 ac_need_defaults=false;;
2388 --header | --heade | --head | --hea )
2389 $ac_shift
2390 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
2391 ac_need_defaults=false;;
2392 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2393 | -silent | --silent | --silen | --sile | --sil | --si | --s)
2394 ac_cs_silent=: ;;
2395
2396 # This is an error.
2397 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
2398Try \`$0 --help' for more information." >&5
2399echo "$as_me: error: unrecognized option: $1
2400Try \`$0 --help' for more information." >&2;}
2401 { (exit 1); exit 1; }; } ;;
2402
2403 *) ac_config_targets="$ac_config_targets $1" ;;
2404
2405 esac
2406 shift
2407done
2408
2409ac_configure_extra_args=
2410
2411if $ac_cs_silent; then
2412 exec 6>/dev/null
2413 ac_configure_extra_args="$ac_configure_extra_args --silent"
2414fi
2415
2416_ACEOF
2417cat >>$CONFIG_STATUS <<_ACEOF
2418if \$ac_cs_recheck; then
2419 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
2420 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
2421fi
2422
2423_ACEOF
2424
2425
2426
2427
2428
2429cat >>$CONFIG_STATUS <<\_ACEOF
2430for ac_config_target in $ac_config_targets
2431do
2432 case "$ac_config_target" in
2433 # Handling of arguments.
2434 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
2435 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
2436echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
2437 { (exit 1); exit 1; }; };;
2438 esac
2439done
2440
2441# If the user did not use the arguments to specify the items to instantiate,
2442# then the envvar interface is used. Set only those that are not.
2443# We use the long form for the default assignment because of an extremely
2444# bizarre bug on SunOS 4.1.3.
2445if $ac_need_defaults; then
2446 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
2447fi
2448
2449# Have a temporary directory for convenience. Make it in the build tree
2450# simply because there is no reason to put it here, and in addition,
2451# creating and moving files from /tmp can sometimes cause problems.
2452# Create a temporary directory, and hook for its removal unless debugging.
2453$debug ||
2454{
2455 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
2456 trap '{ (exit 1); exit 1; }' 1 2 13 15
2457}
2458
2459# Create a (secure) tmp directory for tmp files.
2460
2461{
2462 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
2463 test -n "$tmp" && test -d "$tmp"
2464} ||
2465{
2466 tmp=./confstat$$-$RANDOM
2467 (umask 077 && mkdir $tmp)
2468} ||
2469{
2470 echo "$me: cannot create a temporary directory in ." >&2
2471 { (exit 1); exit 1; }
2472}
2473
2474_ACEOF
2475
2476cat >>$CONFIG_STATUS <<_ACEOF
2477
2478#
2479# CONFIG_FILES section.
2480#
2481
2482# No need to generate the scripts if there are no CONFIG_FILES.
2483# This happens for instance when ./config.status config.h
2484if test -n "\$CONFIG_FILES"; then
2485 # Protect against being on the right side of a sed subst in config.status.
2486 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
2487 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
2488s,@SHELL@,$SHELL,;t t
2489s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
2490s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
2491s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
2492s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
2493s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
2494s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
2495s,@exec_prefix@,$exec_prefix,;t t
2496s,@prefix@,$prefix,;t t
2497s,@program_transform_name@,$program_transform_name,;t t
2498s,@bindir@,$bindir,;t t
2499s,@sbindir@,$sbindir,;t t
2500s,@libexecdir@,$libexecdir,;t t
2501s,@datadir@,$datadir,;t t
2502s,@sysconfdir@,$sysconfdir,;t t
2503s,@sharedstatedir@,$sharedstatedir,;t t
2504s,@localstatedir@,$localstatedir,;t t
2505s,@libdir@,$libdir,;t t
2506s,@includedir@,$includedir,;t t
2507s,@oldincludedir@,$oldincludedir,;t t
2508s,@infodir@,$infodir,;t t
2509s,@mandir@,$mandir,;t t
2510s,@build_alias@,$build_alias,;t t
2511s,@host_alias@,$host_alias,;t t
2512s,@target_alias@,$target_alias,;t t
2513s,@DEFS@,$DEFS,;t t
2514s,@ECHO_C@,$ECHO_C,;t t
2515s,@ECHO_N@,$ECHO_N,;t t
2516s,@ECHO_T@,$ECHO_T,;t t
2517s,@LIBS@,$LIBS,;t t
2518s,@ENABLE_ACCENTFOLD@,$ENABLE_ACCENTFOLD,;t t
2519s,@ENABLE_JNI@,$ENABLE_JNI,;t t
2520s,@ENABLE_MG@,$ENABLE_MG,;t t
2521s,@ENABLE_MGPP@,$ENABLE_MGPP,;t t
2522s,@ENABLE_LUCENE@,$ENABLE_LUCENE,;t t
2523s,@COMPAT32BITFLAGS@,$COMPAT32BITFLAGS,;t t
2524s,@JAVAC@,$JAVAC,;t t
2525s,@JAVA@,$JAVA,;t t
2526s,@uudecode@,$uudecode,;t t
2527s,@subdirs@,$subdirs,;t t
2528s,@LIBOBJS@,$LIBOBJS,;t t
2529s,@LTLIBOBJS@,$LTLIBOBJS,;t t
2530CEOF
2531
2532_ACEOF
2533
2534 cat >>$CONFIG_STATUS <<\_ACEOF
2535 # Split the substitutions into bite-sized pieces for seds with
2536 # small command number limits, like on Digital OSF/1 and HP-UX.
2537 ac_max_sed_lines=48
2538 ac_sed_frag=1 # Number of current file.
2539 ac_beg=1 # First line for current file.
2540 ac_end=$ac_max_sed_lines # Line after last line for current file.
2541 ac_more_lines=:
2542 ac_sed_cmds=
2543 while $ac_more_lines; do
2544 if test $ac_beg -gt 1; then
2545 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
2546 else
2547 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
2548 fi
2549 if test ! -s $tmp/subs.frag; then
2550 ac_more_lines=false
2551 else
2552 # The purpose of the label and of the branching condition is to
2553 # speed up the sed processing (if there are no `@' at all, there
2554 # is no need to browse any of the substitutions).
2555 # These are the two extra sed commands mentioned above.
2556 (echo ':t
2557 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
2558 if test -z "$ac_sed_cmds"; then
2559 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
2560 else
2561 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
2562 fi
2563 ac_sed_frag=`expr $ac_sed_frag + 1`
2564 ac_beg=$ac_end
2565 ac_end=`expr $ac_end + $ac_max_sed_lines`
2566 fi
2567 done
2568 if test -z "$ac_sed_cmds"; then
2569 ac_sed_cmds=cat
2570 fi
2571fi # test -n "$CONFIG_FILES"
2572
2573_ACEOF
2574cat >>$CONFIG_STATUS <<\_ACEOF
2575for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
2576 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
2577 case $ac_file in
2578 - | *:- | *:-:* ) # input from stdin
2579 cat >$tmp/stdin
2580 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
2581 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
2582 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
2583 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
2584 * ) ac_file_in=$ac_file.in ;;
2585 esac
2586
2587 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
2588 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
2589$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
2590 X"$ac_file" : 'X\(//\)[^/]' \| \
2591 X"$ac_file" : 'X\(//\)$' \| \
2592 X"$ac_file" : 'X\(/\)' \| \
2593 . : '\(.\)' 2>/dev/null ||
2594echo X"$ac_file" |
2595 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
2596 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
2597 /^X\(\/\/\)$/{ s//\1/; q; }
2598 /^X\(\/\).*/{ s//\1/; q; }
2599 s/.*/./; q'`
2600 { if $as_mkdir_p; then
2601 mkdir -p "$ac_dir"
2602 else
2603 as_dir="$ac_dir"
2604 as_dirs=
2605 while test ! -d "$as_dir"; do
2606 as_dirs="$as_dir $as_dirs"
2607 as_dir=`(dirname "$as_dir") 2>/dev/null ||
2608$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
2609 X"$as_dir" : 'X\(//\)[^/]' \| \
2610 X"$as_dir" : 'X\(//\)$' \| \
2611 X"$as_dir" : 'X\(/\)' \| \
2612 . : '\(.\)' 2>/dev/null ||
2613echo X"$as_dir" |
2614 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
2615 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
2616 /^X\(\/\/\)$/{ s//\1/; q; }
2617 /^X\(\/\).*/{ s//\1/; q; }
2618 s/.*/./; q'`
2619 done
2620 test ! -n "$as_dirs" || mkdir $as_dirs
2621 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
2622echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
2623 { (exit 1); exit 1; }; }; }
2624
2625 ac_builddir=.
2626
2627if test "$ac_dir" != .; then
2628 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
2629 # A "../" for each directory in $ac_dir_suffix.
2630 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
2631else
2632 ac_dir_suffix= ac_top_builddir=
2633fi
2634
2635case $srcdir in
2636 .) # No --srcdir option. We are building in place.
2637 ac_srcdir=.
2638 if test -z "$ac_top_builddir"; then
2639 ac_top_srcdir=.
2640 else
2641 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
2642 fi ;;
2643 [\\/]* | ?:[\\/]* ) # Absolute path.
2644 ac_srcdir=$srcdir$ac_dir_suffix;
2645 ac_top_srcdir=$srcdir ;;
2646 *) # Relative path.
2647 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
2648 ac_top_srcdir=$ac_top_builddir$srcdir ;;
2649esac
2650
2651# Do not use `cd foo && pwd` to compute absolute paths, because
2652# the directories may not exist.
2653case `pwd` in
2654.) ac_abs_builddir="$ac_dir";;
2655*)
2656 case "$ac_dir" in
2657 .) ac_abs_builddir=`pwd`;;
2658 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
2659 *) ac_abs_builddir=`pwd`/"$ac_dir";;
2660 esac;;
2661esac
2662case $ac_abs_builddir in
2663.) ac_abs_top_builddir=${ac_top_builddir}.;;
2664*)
2665 case ${ac_top_builddir}. in
2666 .) ac_abs_top_builddir=$ac_abs_builddir;;
2667 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
2668 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
2669 esac;;
2670esac
2671case $ac_abs_builddir in
2672.) ac_abs_srcdir=$ac_srcdir;;
2673*)
2674 case $ac_srcdir in
2675 .) ac_abs_srcdir=$ac_abs_builddir;;
2676 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
2677 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
2678 esac;;
2679esac
2680case $ac_abs_builddir in
2681.) ac_abs_top_srcdir=$ac_top_srcdir;;
2682*)
2683 case $ac_top_srcdir in
2684 .) ac_abs_top_srcdir=$ac_abs_builddir;;
2685 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
2686 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
2687 esac;;
2688esac
2689
2690
2691
2692 if test x"$ac_file" != x-; then
2693 { echo "$as_me:$LINENO: creating $ac_file" >&5
2694echo "$as_me: creating $ac_file" >&6;}
2695 rm -f "$ac_file"
2696 fi
2697 # Let's still pretend it is `configure' which instantiates (i.e., don't
2698 # use $as_me), people would be surprised to read:
2699 # /* config.h. Generated by config.status. */
2700 if test x"$ac_file" = x-; then
2701 configure_input=
2702 else
2703 configure_input="$ac_file. "
2704 fi
2705 configure_input=$configure_input"Generated from `echo $ac_file_in |
2706 sed 's,.*/,,'` by configure."
2707
2708 # First look for the input files in the build tree, otherwise in the
2709 # src tree.
2710 ac_file_inputs=`IFS=:
2711 for f in $ac_file_in; do
2712 case $f in
2713 -) echo $tmp/stdin ;;
2714 [\\/$]*)
2715 # Absolute (can't be DOS-style, as IFS=:)
2716 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
2717echo "$as_me: error: cannot find input file: $f" >&2;}
2718 { (exit 1); exit 1; }; }
2719 echo "$f";;
2720 *) # Relative
2721 if test -f "$f"; then
2722 # Build tree
2723 echo "$f"
2724 elif test -f "$srcdir/$f"; then
2725 # Source tree
2726 echo "$srcdir/$f"
2727 else
2728 # /dev/null tree
2729 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
2730echo "$as_me: error: cannot find input file: $f" >&2;}
2731 { (exit 1); exit 1; }; }
2732 fi;;
2733 esac
2734 done` || { (exit 1); exit 1; }
2735_ACEOF
2736cat >>$CONFIG_STATUS <<_ACEOF
2737 sed "$ac_vpsub
2738$extrasub
2739_ACEOF
2740cat >>$CONFIG_STATUS <<\_ACEOF
2741:t
2742/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
2743s,@configure_input@,$configure_input,;t t
2744s,@srcdir@,$ac_srcdir,;t t
2745s,@abs_srcdir@,$ac_abs_srcdir,;t t
2746s,@top_srcdir@,$ac_top_srcdir,;t t
2747s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
2748s,@builddir@,$ac_builddir,;t t
2749s,@abs_builddir@,$ac_abs_builddir,;t t
2750s,@top_builddir@,$ac_top_builddir,;t t
2751s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
2752" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
2753 rm -f $tmp/stdin
2754 if test x"$ac_file" != x-; then
2755 mv $tmp/out $ac_file
2756 else
2757 cat $tmp/out
2758 rm -f $tmp/out
2759 fi
2760
2761done
2762_ACEOF
2763
2764cat >>$CONFIG_STATUS <<\_ACEOF
2765
2766{ (exit 0); exit 0; }
2767_ACEOF
2768chmod +x $CONFIG_STATUS
2769ac_clean_files=$ac_clean_files_save
2770
2771
2772# configure is writing to config.log, and then calls config.status.
2773# config.status does its own redirection, appending to config.log.
2774# Unfortunately, on DOS this fails, as config.log is still kept open
2775# by configure, so config.status won't be able to write to it; its
2776# output is simply discarded. So we exec the FD to /dev/null,
2777# effectively closing config.log, so it can be properly (re)opened and
2778# appended to by config.status. When coming back to configure, we
2779# need to make the FD available again.
2780if test "$no_create" != yes; then
2781 ac_cs_success=:
2782 ac_config_status_args=
2783 test "$silent" = yes &&
2784 ac_config_status_args="$ac_config_status_args --quiet"
2785 exec 5>/dev/null
2786 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
2787 exec 5>>config.log
2788 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
2789 # would make configure fail if this is the last instruction.
2790 $ac_cs_success || { (exit 1); exit 1; }
2791fi
2792
2793#
2794# CONFIG_SUBDIRS section.
2795#
2796if test "$no_recursion" != yes; then
2797
2798 # Remove --cache-file and --srcdir arguments so they do not pile up.
2799 ac_sub_configure_args=
2800 ac_prev=
2801 for ac_arg in $ac_configure_args; do
2802 if test -n "$ac_prev"; then
2803 ac_prev=
2804 continue
2805 fi
2806 case $ac_arg in
2807 -cache-file | --cache-file | --cache-fil | --cache-fi \
2808 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
2809 ac_prev=cache_file ;;
2810 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
2811 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
2812 | --c=*)
2813 ;;
2814 --config-cache | -C)
2815 ;;
2816 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
2817 ac_prev=srcdir ;;
2818 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
2819 ;;
2820 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
2821 ac_prev=prefix ;;
2822 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
2823 ;;
2824 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
2825 esac
2826 done
2827
2828 # Always prepend --prefix to ensure using the same prefix
2829 # in subdir configurations.
2830 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
2831
2832 ac_popdir=`pwd`
2833 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
2834
2835 # Do not complain, so a configure script can configure whichever
2836 # parts of a large source tree are present.
2837 test -d $srcdir/$ac_dir || continue
2838
2839 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
2840echo "$as_me: configuring in $ac_dir" >&6;}
2841 { if $as_mkdir_p; then
2842 mkdir -p "$ac_dir"
2843 else
2844 as_dir="$ac_dir"
2845 as_dirs=
2846 while test ! -d "$as_dir"; do
2847 as_dirs="$as_dir $as_dirs"
2848 as_dir=`(dirname "$as_dir") 2>/dev/null ||
2849$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
2850 X"$as_dir" : 'X\(//\)[^/]' \| \
2851 X"$as_dir" : 'X\(//\)$' \| \
2852 X"$as_dir" : 'X\(/\)' \| \
2853 . : '\(.\)' 2>/dev/null ||
2854echo X"$as_dir" |
2855 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
2856 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
2857 /^X\(\/\/\)$/{ s//\1/; q; }
2858 /^X\(\/\).*/{ s//\1/; q; }
2859 s/.*/./; q'`
2860 done
2861 test ! -n "$as_dirs" || mkdir $as_dirs
2862 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
2863echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
2864 { (exit 1); exit 1; }; }; }
2865
2866 ac_builddir=.
2867
2868if test "$ac_dir" != .; then
2869 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
2870 # A "../" for each directory in $ac_dir_suffix.
2871 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
2872else
2873 ac_dir_suffix= ac_top_builddir=
2874fi
2875
2876case $srcdir in
2877 .) # No --srcdir option. We are building in place.
2878 ac_srcdir=.
2879 if test -z "$ac_top_builddir"; then
2880 ac_top_srcdir=.
2881 else
2882 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
2883 fi ;;
2884 [\\/]* | ?:[\\/]* ) # Absolute path.
2885 ac_srcdir=$srcdir$ac_dir_suffix;
2886 ac_top_srcdir=$srcdir ;;
2887 *) # Relative path.
2888 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
2889 ac_top_srcdir=$ac_top_builddir$srcdir ;;
2890esac
2891
2892# Do not use `cd foo && pwd` to compute absolute paths, because
2893# the directories may not exist.
2894case `pwd` in
2895.) ac_abs_builddir="$ac_dir";;
2896*)
2897 case "$ac_dir" in
2898 .) ac_abs_builddir=`pwd`;;
2899 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
2900 *) ac_abs_builddir=`pwd`/"$ac_dir";;
2901 esac;;
2902esac
2903case $ac_abs_builddir in
2904.) ac_abs_top_builddir=${ac_top_builddir}.;;
2905*)
2906 case ${ac_top_builddir}. in
2907 .) ac_abs_top_builddir=$ac_abs_builddir;;
2908 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
2909 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
2910 esac;;
2911esac
2912case $ac_abs_builddir in
2913.) ac_abs_srcdir=$ac_srcdir;;
2914*)
2915 case $ac_srcdir in
2916 .) ac_abs_srcdir=$ac_abs_builddir;;
2917 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
2918 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
2919 esac;;
2920esac
2921case $ac_abs_builddir in
2922.) ac_abs_top_srcdir=$ac_top_srcdir;;
2923*)
2924 case $ac_top_srcdir in
2925 .) ac_abs_top_srcdir=$ac_abs_builddir;;
2926 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
2927 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
2928 esac;;
2929esac
2930
2931
2932 cd $ac_dir
2933
2934 # Check for guested configure; otherwise get Cygnus style configure.
2935 if test -f $ac_srcdir/configure.gnu; then
2936 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
2937 elif test -f $ac_srcdir/configure; then
2938 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
2939 elif test -f $ac_srcdir/configure.in; then
2940 ac_sub_configure=$ac_configure
2941 else
2942 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
2943echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
2944 ac_sub_configure=
2945 fi
2946
2947 # The recursion is here.
2948 if test -n "$ac_sub_configure"; then
2949 # Make the cache file name correct relative to the subdirectory.
2950 case $cache_file in
2951 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
2952 *) # Relative path.
2953 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
2954 esac
2955
2956 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
2957echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
2958 # The eval makes quoting arguments work.
2959 eval $ac_sub_configure $ac_sub_configure_args \
2960 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
2961 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
2962echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
2963 { (exit 1); exit 1; }; }
2964 fi
2965
2966 cd $ac_popdir
2967 done
2968fi
2969
Note: See TracBrowser for help on using the repository browser.