source: main/trunk/gs2-core/runtime-src/configure@ 21697

Last change on this file since 21697 was 21534, checked in by mdewsnip, 14 years ago

Added --disable-lucene option to configure scripts, and make Lucene enabled by default. ENABLE_LUCENE is defined for use in the C++ code and Makefiles.

  • Property svn:executable set to *
File size: 153.5 KB
Line 
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.59 for greenstone2-runtime-src 2.84.
4#
5# Report bugs to <[email protected]>.
6#
7# Copyright (C) 2003 Free Software Foundation, Inc.
8# This configure script is free software; the Free Software Foundation
9# gives unlimited permission to copy, distribute and modify it.
10## --------------------- ##
11## M4sh Initialization. ##
12## --------------------- ##
13
14# Be Bourne compatible
15if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16 emulate sh
17 NULLCMD=:
18 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
21elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22 set -o posix
23fi
24DUALCASE=1; export DUALCASE # for MKS sh
25
26# Support unset when possible.
27if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
28 as_unset=unset
29else
30 as_unset=false
31fi
32
33
34# Work around bugs in pre-3.0 UWIN ksh.
35$as_unset ENV MAIL MAILPATH
36PS1='$ '
37PS2='> '
38PS4='+ '
39
40# NLS nuisances.
41for as_var in \
42 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
43 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44 LC_TELEPHONE LC_TIME
45do
46 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
47 eval $as_var=C; export $as_var
48 else
49 $as_unset $as_var
50 fi
51done
52
53# Required to use basename.
54if expr a : '\(a\)' >/dev/null 2>&1; then
55 as_expr=expr
56else
57 as_expr=false
58fi
59
60if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
61 as_basename=basename
62else
63 as_basename=false
64fi
65
66
67# Name of the executable.
68as_me=`$as_basename "$0" ||
69$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
70 X"$0" : 'X\(//\)$' \| \
71 X"$0" : 'X\(/\)$' \| \
72 . : '\(.\)' 2>/dev/null ||
73echo X/"$0" |
74 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
75 /^X\/\(\/\/\)$/{ s//\1/; q; }
76 /^X\/\(\/\).*/{ s//\1/; q; }
77 s/.*/./; q'`
78
79
80# PATH needs CR, and LINENO needs CR and PATH.
81# Avoid depending upon Character Ranges.
82as_cr_letters='abcdefghijklmnopqrstuvwxyz'
83as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
84as_cr_Letters=$as_cr_letters$as_cr_LETTERS
85as_cr_digits='0123456789'
86as_cr_alnum=$as_cr_Letters$as_cr_digits
87
88# The user is always right.
89if test "${PATH_SEPARATOR+set}" != set; then
90 echo "#! /bin/sh" >conf$$.sh
91 echo "exit 0" >>conf$$.sh
92 chmod +x conf$$.sh
93 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
94 PATH_SEPARATOR=';'
95 else
96 PATH_SEPARATOR=:
97 fi
98 rm -f conf$$.sh
99fi
100
101
102 as_lineno_1=$LINENO
103 as_lineno_2=$LINENO
104 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
105 test "x$as_lineno_1" != "x$as_lineno_2" &&
106 test "x$as_lineno_3" = "x$as_lineno_2" || {
107 # Find who we are. Look in the path if we contain no path at all
108 # relative or not.
109 case $0 in
110 *[\\/]* ) as_myself=$0 ;;
111 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
112for as_dir in $PATH
113do
114 IFS=$as_save_IFS
115 test -z "$as_dir" && as_dir=.
116 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
117done
118
119 ;;
120 esac
121 # We did not find ourselves, most probably we were run as `sh COMMAND'
122 # in which case we are not to be found in the path.
123 if test "x$as_myself" = x; then
124 as_myself=$0
125 fi
126 if test ! -f "$as_myself"; then
127 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
128 { (exit 1); exit 1; }; }
129 fi
130 case $CONFIG_SHELL in
131 '')
132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
133for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
134do
135 IFS=$as_save_IFS
136 test -z "$as_dir" && as_dir=.
137 for as_base in sh bash ksh sh5; do
138 case $as_dir in
139 /*)
140 if ("$as_dir/$as_base" -c '
141 as_lineno_1=$LINENO
142 as_lineno_2=$LINENO
143 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
144 test "x$as_lineno_1" != "x$as_lineno_2" &&
145 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
146 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
147 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
148 CONFIG_SHELL=$as_dir/$as_base
149 export CONFIG_SHELL
150 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
151 fi;;
152 esac
153 done
154done
155;;
156 esac
157
158 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
159 # uniformly replaced by the line number. The first 'sed' inserts a
160 # line-number line before each line; the second 'sed' does the real
161 # work. The second script uses 'N' to pair each line-number line
162 # with the numbered line, and appends trailing '-' during
163 # substitution so that $LINENO is not a special case at line end.
164 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
165 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
166 sed '=' <$as_myself |
167 sed '
168 N
169 s,$,-,
170 : loop
171 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172 t loop
173 s,-$,,
174 s,^['$as_cr_digits']*\n,,
175 ' >$as_me.lineno &&
176 chmod +x $as_me.lineno ||
177 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
178 { (exit 1); exit 1; }; }
179
180 # Don't try to exec as it changes $[0], causing all sort of problems
181 # (the dirname of $[0] is not the place where we might find the
182 # original and so on. Autoconf is especially sensible to this).
183 . ./$as_me.lineno
184 # Exit status is that of the last command.
185 exit
186}
187
188
189case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
190 *c*,-n*) ECHO_N= ECHO_C='
191' ECHO_T=' ' ;;
192 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
193 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
194esac
195
196if expr a : '\(a\)' >/dev/null 2>&1; then
197 as_expr=expr
198else
199 as_expr=false
200fi
201
202rm -f conf$$ conf$$.exe conf$$.file
203echo >conf$$.file
204if ln -s conf$$.file conf$$ 2>/dev/null; then
205 # We could just check for DJGPP; but this test a) works b) is more generic
206 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
207 if test -f conf$$.exe; then
208 # Don't use ln at all; we don't have any links
209 as_ln_s='cp -p'
210 else
211 as_ln_s='ln -s'
212 fi
213elif ln conf$$.file conf$$ 2>/dev/null; then
214 as_ln_s=ln
215else
216 as_ln_s='cp -p'
217fi
218rm -f conf$$ conf$$.exe conf$$.file
219
220if mkdir -p . 2>/dev/null; then
221 as_mkdir_p=:
222else
223 test -d ./-p && rmdir ./-p
224 as_mkdir_p=false
225fi
226
227as_executable_p="test -f"
228
229# Sed expression to map a string onto a valid CPP name.
230as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
231
232# Sed expression to map a string onto a valid variable name.
233as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
234
235
236# IFS
237# We need space, tab and new line, in precisely that order.
238as_nl='
239'
240IFS=" $as_nl"
241
242# CDPATH.
243$as_unset CDPATH
244
245
246# Name of the host.
247# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
248# so uname gets run too.
249ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
250
251exec 6>&1
252
253#
254# Initializations.
255#
256ac_default_prefix=/usr/local
257ac_config_libobj_dir=.
258cross_compiling=no
259subdirs=
260MFLAGS=
261MAKEFLAGS=
262SHELL=${CONFIG_SHELL-/bin/sh}
263
264# Maximum number of lines to put in a shell here document.
265# This variable seems obsolete. It should probably be removed, and
266# only ac_max_sed_lines should be used.
267: ${ac_max_here_lines=38}
268
269# Identity of this package.
270PACKAGE_NAME='greenstone2-runtime-src'
271PACKAGE_TARNAME='greenstone2-runtime-src'
272PACKAGE_VERSION='2.84'
273PACKAGE_STRING='greenstone2-runtime-src 2.84'
274PACKAGE_BUGREPORT='[email protected]'
275
276ac_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 INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE RANLIB ac_ct_RANLIB build build_cpu build_vendor build_os host host_cpu host_vendor host_os COMPAT32BITFLAGS ENABLE_LUCENE_TRUE ENABLE_LUCENE_FALSE USE_SQLITE_TRUE USE_SQLITE_FALSE LIBOBJS LTLIBOBJS'
277ac_subst_files=''
278
279# Initialize some variables set by options.
280ac_init_help=
281ac_init_version=false
282# The variables have the same names as the options, with
283# dashes changed to underlines.
284cache_file=/dev/null
285exec_prefix=NONE
286no_create=
287no_recursion=
288prefix=NONE
289program_prefix=NONE
290program_suffix=NONE
291program_transform_name=s,x,x,
292silent=
293site=
294srcdir=
295verbose=
296x_includes=NONE
297x_libraries=NONE
298
299# Installation directory options.
300# These are left unexpanded so users can "make install exec_prefix=/foo"
301# and all the variables that are supposed to be based on exec_prefix
302# by default will actually change.
303# Use braces instead of parens because sh, perl, etc. also accept them.
304bindir='${exec_prefix}/bin'
305sbindir='${exec_prefix}/sbin'
306libexecdir='${exec_prefix}/libexec'
307datadir='${prefix}/share'
308sysconfdir='${prefix}/etc'
309sharedstatedir='${prefix}/com'
310localstatedir='${prefix}/var'
311libdir='${exec_prefix}/lib'
312includedir='${prefix}/include'
313oldincludedir='/usr/include'
314infodir='${prefix}/info'
315mandir='${prefix}/man'
316
317ac_prev=
318for ac_option
319do
320 # If the previous option needs an argument, assign it.
321 if test -n "$ac_prev"; then
322 eval "$ac_prev=\$ac_option"
323 ac_prev=
324 continue
325 fi
326
327 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
328
329 # Accept the important Cygnus configure options, so we can diagnose typos.
330
331 case $ac_option in
332
333 -bindir | --bindir | --bindi | --bind | --bin | --bi)
334 ac_prev=bindir ;;
335 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
336 bindir=$ac_optarg ;;
337
338 -build | --build | --buil | --bui | --bu)
339 ac_prev=build_alias ;;
340 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
341 build_alias=$ac_optarg ;;
342
343 -cache-file | --cache-file | --cache-fil | --cache-fi \
344 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
345 ac_prev=cache_file ;;
346 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
347 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
348 cache_file=$ac_optarg ;;
349
350 --config-cache | -C)
351 cache_file=config.cache ;;
352
353 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
354 ac_prev=datadir ;;
355 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
356 | --da=*)
357 datadir=$ac_optarg ;;
358
359 -disable-* | --disable-*)
360 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
361 # Reject names that are not valid shell variable names.
362 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
363 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
364 { (exit 1); exit 1; }; }
365 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
366 eval "enable_$ac_feature=no" ;;
367
368 -enable-* | --enable-*)
369 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
370 # Reject names that are not valid shell variable names.
371 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
372 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
373 { (exit 1); exit 1; }; }
374 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
375 case $ac_option in
376 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
377 *) ac_optarg=yes ;;
378 esac
379 eval "enable_$ac_feature='$ac_optarg'" ;;
380
381 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
382 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
383 | --exec | --exe | --ex)
384 ac_prev=exec_prefix ;;
385 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
386 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
387 | --exec=* | --exe=* | --ex=*)
388 exec_prefix=$ac_optarg ;;
389
390 -gas | --gas | --ga | --g)
391 # Obsolete; use --with-gas.
392 with_gas=yes ;;
393
394 -help | --help | --hel | --he | -h)
395 ac_init_help=long ;;
396 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
397 ac_init_help=recursive ;;
398 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
399 ac_init_help=short ;;
400
401 -host | --host | --hos | --ho)
402 ac_prev=host_alias ;;
403 -host=* | --host=* | --hos=* | --ho=*)
404 host_alias=$ac_optarg ;;
405
406 -includedir | --includedir | --includedi | --included | --include \
407 | --includ | --inclu | --incl | --inc)
408 ac_prev=includedir ;;
409 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
410 | --includ=* | --inclu=* | --incl=* | --inc=*)
411 includedir=$ac_optarg ;;
412
413 -infodir | --infodir | --infodi | --infod | --info | --inf)
414 ac_prev=infodir ;;
415 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
416 infodir=$ac_optarg ;;
417
418 -libdir | --libdir | --libdi | --libd)
419 ac_prev=libdir ;;
420 -libdir=* | --libdir=* | --libdi=* | --libd=*)
421 libdir=$ac_optarg ;;
422
423 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
424 | --libexe | --libex | --libe)
425 ac_prev=libexecdir ;;
426 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
427 | --libexe=* | --libex=* | --libe=*)
428 libexecdir=$ac_optarg ;;
429
430 -localstatedir | --localstatedir | --localstatedi | --localstated \
431 | --localstate | --localstat | --localsta | --localst \
432 | --locals | --local | --loca | --loc | --lo)
433 ac_prev=localstatedir ;;
434 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
435 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
436 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
437 localstatedir=$ac_optarg ;;
438
439 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
440 ac_prev=mandir ;;
441 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
442 mandir=$ac_optarg ;;
443
444 -nfp | --nfp | --nf)
445 # Obsolete; use --without-fp.
446 with_fp=no ;;
447
448 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
449 | --no-cr | --no-c | -n)
450 no_create=yes ;;
451
452 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
453 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
454 no_recursion=yes ;;
455
456 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
457 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
458 | --oldin | --oldi | --old | --ol | --o)
459 ac_prev=oldincludedir ;;
460 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
461 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
462 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
463 oldincludedir=$ac_optarg ;;
464
465 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
466 ac_prev=prefix ;;
467 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
468 prefix=$ac_optarg ;;
469
470 -program-prefix | --program-prefix | --program-prefi | --program-pref \
471 | --program-pre | --program-pr | --program-p)
472 ac_prev=program_prefix ;;
473 -program-prefix=* | --program-prefix=* | --program-prefi=* \
474 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
475 program_prefix=$ac_optarg ;;
476
477 -program-suffix | --program-suffix | --program-suffi | --program-suff \
478 | --program-suf | --program-su | --program-s)
479 ac_prev=program_suffix ;;
480 -program-suffix=* | --program-suffix=* | --program-suffi=* \
481 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
482 program_suffix=$ac_optarg ;;
483
484 -program-transform-name | --program-transform-name \
485 | --program-transform-nam | --program-transform-na \
486 | --program-transform-n | --program-transform- \
487 | --program-transform | --program-transfor \
488 | --program-transfo | --program-transf \
489 | --program-trans | --program-tran \
490 | --progr-tra | --program-tr | --program-t)
491 ac_prev=program_transform_name ;;
492 -program-transform-name=* | --program-transform-name=* \
493 | --program-transform-nam=* | --program-transform-na=* \
494 | --program-transform-n=* | --program-transform-=* \
495 | --program-transform=* | --program-transfor=* \
496 | --program-transfo=* | --program-transf=* \
497 | --program-trans=* | --program-tran=* \
498 | --progr-tra=* | --program-tr=* | --program-t=*)
499 program_transform_name=$ac_optarg ;;
500
501 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
502 | -silent | --silent | --silen | --sile | --sil)
503 silent=yes ;;
504
505 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
506 ac_prev=sbindir ;;
507 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
508 | --sbi=* | --sb=*)
509 sbindir=$ac_optarg ;;
510
511 -sharedstatedir | --sharedstatedir | --sharedstatedi \
512 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
513 | --sharedst | --shareds | --shared | --share | --shar \
514 | --sha | --sh)
515 ac_prev=sharedstatedir ;;
516 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
517 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
518 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
519 | --sha=* | --sh=*)
520 sharedstatedir=$ac_optarg ;;
521
522 -site | --site | --sit)
523 ac_prev=site ;;
524 -site=* | --site=* | --sit=*)
525 site=$ac_optarg ;;
526
527 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
528 ac_prev=srcdir ;;
529 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
530 srcdir=$ac_optarg ;;
531
532 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
533 | --syscon | --sysco | --sysc | --sys | --sy)
534 ac_prev=sysconfdir ;;
535 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
536 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
537 sysconfdir=$ac_optarg ;;
538
539 -target | --target | --targe | --targ | --tar | --ta | --t)
540 ac_prev=target_alias ;;
541 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
542 target_alias=$ac_optarg ;;
543
544 -v | -verbose | --verbose | --verbos | --verbo | --verb)
545 verbose=yes ;;
546
547 -version | --version | --versio | --versi | --vers | -V)
548 ac_init_version=: ;;
549
550 -with-* | --with-*)
551 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
552 # Reject names that are not valid shell variable names.
553 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
554 { echo "$as_me: error: invalid package name: $ac_package" >&2
555 { (exit 1); exit 1; }; }
556 ac_package=`echo $ac_package| sed 's/-/_/g'`
557 case $ac_option in
558 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
559 *) ac_optarg=yes ;;
560 esac
561 eval "with_$ac_package='$ac_optarg'" ;;
562
563 -without-* | --without-*)
564 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
565 # Reject names that are not valid shell variable names.
566 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
567 { echo "$as_me: error: invalid package name: $ac_package" >&2
568 { (exit 1); exit 1; }; }
569 ac_package=`echo $ac_package | sed 's/-/_/g'`
570 eval "with_$ac_package=no" ;;
571
572 --x)
573 # Obsolete; use --with-x.
574 with_x=yes ;;
575
576 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
577 | --x-incl | --x-inc | --x-in | --x-i)
578 ac_prev=x_includes ;;
579 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
580 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
581 x_includes=$ac_optarg ;;
582
583 -x-libraries | --x-libraries | --x-librarie | --x-librari \
584 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
585 ac_prev=x_libraries ;;
586 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
587 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
588 x_libraries=$ac_optarg ;;
589
590 -*) { echo "$as_me: error: unrecognized option: $ac_option
591Try \`$0 --help' for more information." >&2
592 { (exit 1); exit 1; }; }
593 ;;
594
595 *=*)
596 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
597 # Reject names that are not valid shell variable names.
598 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
599 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
600 { (exit 1); exit 1; }; }
601 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
602 eval "$ac_envvar='$ac_optarg'"
603 export $ac_envvar ;;
604
605 *)
606 # FIXME: should be removed in autoconf 3.0.
607 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
608 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
609 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
610 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
611 ;;
612
613 esac
614done
615
616if test -n "$ac_prev"; then
617 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
618 { echo "$as_me: error: missing argument to $ac_option" >&2
619 { (exit 1); exit 1; }; }
620fi
621
622# Be sure to have absolute paths.
623for ac_var in exec_prefix prefix
624do
625 eval ac_val=$`echo $ac_var`
626 case $ac_val in
627 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
628 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
629 { (exit 1); exit 1; }; };;
630 esac
631done
632
633# Be sure to have absolute paths.
634for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
635 localstatedir libdir includedir oldincludedir infodir mandir
636do
637 eval ac_val=$`echo $ac_var`
638 case $ac_val in
639 [\\/$]* | ?:[\\/]* ) ;;
640 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
641 { (exit 1); exit 1; }; };;
642 esac
643done
644
645# There might be people who depend on the old broken behavior: `$host'
646# used to hold the argument of --host etc.
647# FIXME: To remove some day.
648build=$build_alias
649host=$host_alias
650target=$target_alias
651
652# FIXME: To remove some day.
653if test "x$host_alias" != x; then
654 if test "x$build_alias" = x; then
655 cross_compiling=maybe
656 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
657 If a cross compiler is detected then cross compile mode will be used." >&2
658 elif test "x$build_alias" != "x$host_alias"; then
659 cross_compiling=yes
660 fi
661fi
662
663ac_tool_prefix=
664test -n "$host_alias" && ac_tool_prefix=$host_alias-
665
666test "$silent" = yes && exec 6>/dev/null
667
668
669# Find the source files, if location was not specified.
670if test -z "$srcdir"; then
671 ac_srcdir_defaulted=yes
672 # Try the directory containing this script, then its parent.
673 ac_confdir=`(dirname "$0") 2>/dev/null ||
674$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
675 X"$0" : 'X\(//\)[^/]' \| \
676 X"$0" : 'X\(//\)$' \| \
677 X"$0" : 'X\(/\)' \| \
678 . : '\(.\)' 2>/dev/null ||
679echo X"$0" |
680 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
681 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
682 /^X\(\/\/\)$/{ s//\1/; q; }
683 /^X\(\/\).*/{ s//\1/; q; }
684 s/.*/./; q'`
685 srcdir=$ac_confdir
686 if test ! -r $srcdir/$ac_unique_file; then
687 srcdir=..
688 fi
689else
690 ac_srcdir_defaulted=no
691fi
692if test ! -r $srcdir/$ac_unique_file; then
693 if test "$ac_srcdir_defaulted" = yes; then
694 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
695 { (exit 1); exit 1; }; }
696 else
697 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
698 { (exit 1); exit 1; }; }
699 fi
700fi
701(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
702 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
703 { (exit 1); exit 1; }; }
704srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
705ac_env_build_alias_set=${build_alias+set}
706ac_env_build_alias_value=$build_alias
707ac_cv_env_build_alias_set=${build_alias+set}
708ac_cv_env_build_alias_value=$build_alias
709ac_env_host_alias_set=${host_alias+set}
710ac_env_host_alias_value=$host_alias
711ac_cv_env_host_alias_set=${host_alias+set}
712ac_cv_env_host_alias_value=$host_alias
713ac_env_target_alias_set=${target_alias+set}
714ac_env_target_alias_value=$target_alias
715ac_cv_env_target_alias_set=${target_alias+set}
716ac_cv_env_target_alias_value=$target_alias
717ac_env_CC_set=${CC+set}
718ac_env_CC_value=$CC
719ac_cv_env_CC_set=${CC+set}
720ac_cv_env_CC_value=$CC
721ac_env_CFLAGS_set=${CFLAGS+set}
722ac_env_CFLAGS_value=$CFLAGS
723ac_cv_env_CFLAGS_set=${CFLAGS+set}
724ac_cv_env_CFLAGS_value=$CFLAGS
725ac_env_LDFLAGS_set=${LDFLAGS+set}
726ac_env_LDFLAGS_value=$LDFLAGS
727ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
728ac_cv_env_LDFLAGS_value=$LDFLAGS
729ac_env_CPPFLAGS_set=${CPPFLAGS+set}
730ac_env_CPPFLAGS_value=$CPPFLAGS
731ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
732ac_cv_env_CPPFLAGS_value=$CPPFLAGS
733ac_env_CXX_set=${CXX+set}
734ac_env_CXX_value=$CXX
735ac_cv_env_CXX_set=${CXX+set}
736ac_cv_env_CXX_value=$CXX
737ac_env_CXXFLAGS_set=${CXXFLAGS+set}
738ac_env_CXXFLAGS_value=$CXXFLAGS
739ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
740ac_cv_env_CXXFLAGS_value=$CXXFLAGS
741
742#
743# Report the --help message.
744#
745if test "$ac_init_help" = "long"; then
746 # Omit some internal or obsolete options to make the list less imposing.
747 # This message is too long to be a string in the A/UX 3.1 sh.
748 cat <<_ACEOF
749\`configure' configures greenstone2-runtime-src 2.84 to adapt to many kinds of systems.
750
751Usage: $0 [OPTION]... [VAR=VALUE]...
752
753To assign environment variables (e.g., CC, CFLAGS...), specify them as
754VAR=VALUE. See below for descriptions of some of the useful variables.
755
756Defaults for the options are specified in brackets.
757
758Configuration:
759 -h, --help display this help and exit
760 --help=short display options specific to this package
761 --help=recursive display the short help of all the included packages
762 -V, --version display version information and exit
763 -q, --quiet, --silent do not print \`checking...' messages
764 --cache-file=FILE cache test results in FILE [disabled]
765 -C, --config-cache alias for \`--cache-file=config.cache'
766 -n, --no-create do not create output files
767 --srcdir=DIR find the sources in DIR [configure dir or \`..']
768
769_ACEOF
770
771 cat <<_ACEOF
772Installation directories:
773 --prefix=PREFIX install architecture-independent files in PREFIX
774 [$ac_default_prefix]
775 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
776 [PREFIX]
777
778By default, \`make install' will install all the files in
779\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
780an installation prefix other than \`$ac_default_prefix' using \`--prefix',
781for instance \`--prefix=\$HOME'.
782
783For better control, use the options below.
784
785Fine tuning of the installation directories:
786 --bindir=DIR user executables [EPREFIX/bin]
787 --sbindir=DIR system admin executables [EPREFIX/sbin]
788 --libexecdir=DIR program executables [EPREFIX/libexec]
789 --datadir=DIR read-only architecture-independent data [PREFIX/share]
790 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
791 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
792 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
793 --libdir=DIR object code libraries [EPREFIX/lib]
794 --includedir=DIR C header files [PREFIX/include]
795 --oldincludedir=DIR C header files for non-gcc [/usr/include]
796 --infodir=DIR info documentation [PREFIX/info]
797 --mandir=DIR man documentation [PREFIX/man]
798_ACEOF
799
800 cat <<\_ACEOF
801
802Program names:
803 --program-prefix=PREFIX prepend PREFIX to installed program names
804 --program-suffix=SUFFIX append SUFFIX to installed program names
805 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
806
807System types:
808 --build=BUILD configure for building on BUILD [guessed]
809 --host=HOST cross-compile to build programs to run on HOST [BUILD]
810_ACEOF
811fi
812
813if test -n "$ac_init_help"; then
814 case $ac_init_help in
815 short | recursive ) echo "Configuration of greenstone2-runtime-src 2.84:";;
816 esac
817 cat <<\_ACEOF
818
819Optional Features:
820 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
821 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
822 --disable-dependency-tracking speeds up one-time build
823 --enable-dependency-tracking do not reject slow dependency extractors
824 --disable-lucene Disable Lucene support
825 --disable-sqlite Disable SQLite support
826
827Some influential environment variables:
828 CC C compiler command
829 CFLAGS C compiler flags
830 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
831 nonstandard directory <lib dir>
832 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
833 headers in a nonstandard directory <include dir>
834 CXX C++ compiler command
835 CXXFLAGS C++ compiler flags
836
837Use these variables to override the choices made by `configure' or to help
838it to find libraries and programs with nonstandard names/locations.
839
840Report bugs to <[email protected]>.
841_ACEOF
842fi
843
844if test "$ac_init_help" = "recursive"; then
845 # If there are subdirs, report their specific --help.
846 ac_popdir=`pwd`
847 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
848 test -d $ac_dir || continue
849 ac_builddir=.
850
851if test "$ac_dir" != .; then
852 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
853 # A "../" for each directory in $ac_dir_suffix.
854 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
855else
856 ac_dir_suffix= ac_top_builddir=
857fi
858
859case $srcdir in
860 .) # No --srcdir option. We are building in place.
861 ac_srcdir=.
862 if test -z "$ac_top_builddir"; then
863 ac_top_srcdir=.
864 else
865 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
866 fi ;;
867 [\\/]* | ?:[\\/]* ) # Absolute path.
868 ac_srcdir=$srcdir$ac_dir_suffix;
869 ac_top_srcdir=$srcdir ;;
870 *) # Relative path.
871 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
872 ac_top_srcdir=$ac_top_builddir$srcdir ;;
873esac
874
875# Do not use `cd foo && pwd` to compute absolute paths, because
876# the directories may not exist.
877case `pwd` in
878.) ac_abs_builddir="$ac_dir";;
879*)
880 case "$ac_dir" in
881 .) ac_abs_builddir=`pwd`;;
882 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
883 *) ac_abs_builddir=`pwd`/"$ac_dir";;
884 esac;;
885esac
886case $ac_abs_builddir in
887.) ac_abs_top_builddir=${ac_top_builddir}.;;
888*)
889 case ${ac_top_builddir}. in
890 .) ac_abs_top_builddir=$ac_abs_builddir;;
891 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
892 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
893 esac;;
894esac
895case $ac_abs_builddir in
896.) ac_abs_srcdir=$ac_srcdir;;
897*)
898 case $ac_srcdir in
899 .) ac_abs_srcdir=$ac_abs_builddir;;
900 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
901 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
902 esac;;
903esac
904case $ac_abs_builddir in
905.) ac_abs_top_srcdir=$ac_top_srcdir;;
906*)
907 case $ac_top_srcdir in
908 .) ac_abs_top_srcdir=$ac_abs_builddir;;
909 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
910 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
911 esac;;
912esac
913
914 cd $ac_dir
915 # Check for guested configure; otherwise get Cygnus style configure.
916 if test -f $ac_srcdir/configure.gnu; then
917 echo
918 $SHELL $ac_srcdir/configure.gnu --help=recursive
919 elif test -f $ac_srcdir/configure; then
920 echo
921 $SHELL $ac_srcdir/configure --help=recursive
922 elif test -f $ac_srcdir/configure.ac ||
923 test -f $ac_srcdir/configure.in; then
924 echo
925 $ac_configure --help
926 else
927 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
928 fi
929 cd $ac_popdir
930 done
931fi
932
933test -n "$ac_init_help" && exit 0
934if $ac_init_version; then
935 cat <<\_ACEOF
936greenstone2-runtime-src configure 2.84
937generated by GNU Autoconf 2.59
938
939Copyright (C) 2003 Free Software Foundation, Inc.
940This configure script is free software; the Free Software Foundation
941gives unlimited permission to copy, distribute and modify it.
942_ACEOF
943 exit 0
944fi
945exec 5>config.log
946cat >&5 <<_ACEOF
947This file contains any messages produced by compilers while
948running configure, to aid debugging if configure makes a mistake.
949
950It was created by greenstone2-runtime-src $as_me 2.84, which was
951generated by GNU Autoconf 2.59. Invocation command line was
952
953 $ $0 $@
954
955_ACEOF
956{
957cat <<_ASUNAME
958## --------- ##
959## Platform. ##
960## --------- ##
961
962hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
963uname -m = `(uname -m) 2>/dev/null || echo unknown`
964uname -r = `(uname -r) 2>/dev/null || echo unknown`
965uname -s = `(uname -s) 2>/dev/null || echo unknown`
966uname -v = `(uname -v) 2>/dev/null || echo unknown`
967
968/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
969/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
970
971/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
972/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
973/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
974hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
975/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
976/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
977/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
978
979_ASUNAME
980
981as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
982for as_dir in $PATH
983do
984 IFS=$as_save_IFS
985 test -z "$as_dir" && as_dir=.
986 echo "PATH: $as_dir"
987done
988
989} >&5
990
991cat >&5 <<_ACEOF
992
993
994## ----------- ##
995## Core tests. ##
996## ----------- ##
997
998_ACEOF
999
1000
1001# Keep a trace of the command line.
1002# Strip out --no-create and --no-recursion so they do not pile up.
1003# Strip out --silent because we don't want to record it for future runs.
1004# Also quote any args containing shell meta-characters.
1005# Make two passes to allow for proper duplicate-argument suppression.
1006ac_configure_args=
1007ac_configure_args0=
1008ac_configure_args1=
1009ac_sep=
1010ac_must_keep_next=false
1011for ac_pass in 1 2
1012do
1013 for ac_arg
1014 do
1015 case $ac_arg in
1016 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1017 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1018 | -silent | --silent | --silen | --sile | --sil)
1019 continue ;;
1020 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1021 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1022 esac
1023 case $ac_pass in
1024 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1025 2)
1026 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1027 if test $ac_must_keep_next = true; then
1028 ac_must_keep_next=false # Got value, back to normal.
1029 else
1030 case $ac_arg in
1031 *=* | --config-cache | -C | -disable-* | --disable-* \
1032 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1033 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1034 | -with-* | --with-* | -without-* | --without-* | --x)
1035 case "$ac_configure_args0 " in
1036 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1037 esac
1038 ;;
1039 -* ) ac_must_keep_next=true ;;
1040 esac
1041 fi
1042 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1043 # Get rid of the leading space.
1044 ac_sep=" "
1045 ;;
1046 esac
1047 done
1048done
1049$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1050$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1051
1052# When interrupted or exit'd, cleanup temporary files, and complete
1053# config.log. We remove comments because anyway the quotes in there
1054# would cause problems or look ugly.
1055# WARNING: Be sure not to use single quotes in there, as some shells,
1056# such as our DU 5.0 friend, will then `close' the trap.
1057trap 'exit_status=$?
1058 # Save into config.log some information that might help in debugging.
1059 {
1060 echo
1061
1062 cat <<\_ASBOX
1063## ---------------- ##
1064## Cache variables. ##
1065## ---------------- ##
1066_ASBOX
1067 echo
1068 # The following way of writing the cache mishandles newlines in values,
1069{
1070 (set) 2>&1 |
1071 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1072 *ac_space=\ *)
1073 sed -n \
1074 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1075 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1076 ;;
1077 *)
1078 sed -n \
1079 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1080 ;;
1081 esac;
1082}
1083 echo
1084
1085 cat <<\_ASBOX
1086## ----------------- ##
1087## Output variables. ##
1088## ----------------- ##
1089_ASBOX
1090 echo
1091 for ac_var in $ac_subst_vars
1092 do
1093 eval ac_val=$`echo $ac_var`
1094 echo "$ac_var='"'"'$ac_val'"'"'"
1095 done | sort
1096 echo
1097
1098 if test -n "$ac_subst_files"; then
1099 cat <<\_ASBOX
1100## ------------- ##
1101## Output files. ##
1102## ------------- ##
1103_ASBOX
1104 echo
1105 for ac_var in $ac_subst_files
1106 do
1107 eval ac_val=$`echo $ac_var`
1108 echo "$ac_var='"'"'$ac_val'"'"'"
1109 done | sort
1110 echo
1111 fi
1112
1113 if test -s confdefs.h; then
1114 cat <<\_ASBOX
1115## ----------- ##
1116## confdefs.h. ##
1117## ----------- ##
1118_ASBOX
1119 echo
1120 sed "/^$/d" confdefs.h | sort
1121 echo
1122 fi
1123 test "$ac_signal" != 0 &&
1124 echo "$as_me: caught signal $ac_signal"
1125 echo "$as_me: exit $exit_status"
1126 } >&5
1127 rm -f core *.core &&
1128 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1129 exit $exit_status
1130 ' 0
1131for ac_signal in 1 2 13 15; do
1132 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1133done
1134ac_signal=0
1135
1136# confdefs.h avoids OS command line length limits that DEFS can exceed.
1137rm -rf conftest* confdefs.h
1138# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1139echo >confdefs.h
1140
1141# Predefined preprocessor variables.
1142
1143cat >>confdefs.h <<_ACEOF
1144#define PACKAGE_NAME "$PACKAGE_NAME"
1145_ACEOF
1146
1147
1148cat >>confdefs.h <<_ACEOF
1149#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1150_ACEOF
1151
1152
1153cat >>confdefs.h <<_ACEOF
1154#define PACKAGE_VERSION "$PACKAGE_VERSION"
1155_ACEOF
1156
1157
1158cat >>confdefs.h <<_ACEOF
1159#define PACKAGE_STRING "$PACKAGE_STRING"
1160_ACEOF
1161
1162
1163cat >>confdefs.h <<_ACEOF
1164#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1165_ACEOF
1166
1167
1168# Let the site file select an alternate cache file if it wants to.
1169# Prefer explicitly selected file to automatically selected ones.
1170if test -z "$CONFIG_SITE"; then
1171 if test "x$prefix" != xNONE; then
1172 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1173 else
1174 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1175 fi
1176fi
1177for ac_site_file in $CONFIG_SITE; do
1178 if test -r "$ac_site_file"; then
1179 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1180echo "$as_me: loading site script $ac_site_file" >&6;}
1181 sed 's/^/| /' "$ac_site_file" >&5
1182 . "$ac_site_file"
1183 fi
1184done
1185
1186if test -r "$cache_file"; then
1187 # Some versions of bash will fail to source /dev/null (special
1188 # files actually), so we avoid doing that.
1189 if test -f "$cache_file"; then
1190 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1191echo "$as_me: loading cache $cache_file" >&6;}
1192 case $cache_file in
1193 [\\/]* | ?:[\\/]* ) . $cache_file;;
1194 *) . ./$cache_file;;
1195 esac
1196 fi
1197else
1198 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1199echo "$as_me: creating cache $cache_file" >&6;}
1200 >$cache_file
1201fi
1202
1203# Check that the precious variables saved in the cache have kept the same
1204# value.
1205ac_cache_corrupted=false
1206for ac_var in `(set) 2>&1 |
1207 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1208 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1209 eval ac_new_set=\$ac_env_${ac_var}_set
1210 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1211 eval ac_new_val="\$ac_env_${ac_var}_value"
1212 case $ac_old_set,$ac_new_set in
1213 set,)
1214 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1215echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1216 ac_cache_corrupted=: ;;
1217 ,set)
1218 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1219echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1220 ac_cache_corrupted=: ;;
1221 ,);;
1222 *)
1223 if test "x$ac_old_val" != "x$ac_new_val"; then
1224 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1225echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1226 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1227echo "$as_me: former value: $ac_old_val" >&2;}
1228 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1229echo "$as_me: current value: $ac_new_val" >&2;}
1230 ac_cache_corrupted=:
1231 fi;;
1232 esac
1233 # Pass precious variables to config.status.
1234 if test "$ac_new_set" = set; then
1235 case $ac_new_val in
1236 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1237 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1238 *) ac_arg=$ac_var=$ac_new_val ;;
1239 esac
1240 case " $ac_configure_args " in
1241 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1242 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1243 esac
1244 fi
1245done
1246if $ac_cache_corrupted; then
1247 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1248echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1249 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1250echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1251 { (exit 1); exit 1; }; }
1252fi
1253
1254ac_ext=c
1255ac_cpp='$CPP $CPPFLAGS'
1256ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1257ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1258ac_compiler_gnu=$ac_cv_c_compiler_gnu
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286ac_aux_dir=
1287for ac_dir in . $srcdir/.; do
1288 if test -f $ac_dir/install-sh; then
1289 ac_aux_dir=$ac_dir
1290 ac_install_sh="$ac_aux_dir/install-sh -c"
1291 break
1292 elif test -f $ac_dir/install.sh; then
1293 ac_aux_dir=$ac_dir
1294 ac_install_sh="$ac_aux_dir/install.sh -c"
1295 break
1296 elif test -f $ac_dir/shtool; then
1297 ac_aux_dir=$ac_dir
1298 ac_install_sh="$ac_aux_dir/shtool install -c"
1299 break
1300 fi
1301done
1302if test -z "$ac_aux_dir"; then
1303 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in . $srcdir/." >&5
1304echo "$as_me: error: cannot find install-sh or install.sh in . $srcdir/." >&2;}
1305 { (exit 1); exit 1; }; }
1306fi
1307ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1308ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1309ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1310
1311 ac_config_headers="$ac_config_headers config.h"
1312
1313am__api_version="1.9"
1314# Find a good install program. We prefer a C program (faster),
1315# so one script is as good as another. But avoid the broken or
1316# incompatible versions:
1317# SysV /etc/install, /usr/sbin/install
1318# SunOS /usr/etc/install
1319# IRIX /sbin/install
1320# AIX /bin/install
1321# AmigaOS /C/install, which installs bootblocks on floppy discs
1322# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1323# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1324# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1325# OS/2's system install, which has a completely different semantic
1326# ./install, which can be erroneously created by make from ./install.sh.
1327echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1328echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1329if test -z "$INSTALL"; then
1330if test "${ac_cv_path_install+set}" = set; then
1331 echo $ECHO_N "(cached) $ECHO_C" >&6
1332else
1333 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1334for as_dir in $PATH
1335do
1336 IFS=$as_save_IFS
1337 test -z "$as_dir" && as_dir=.
1338 # Account for people who put trailing slashes in PATH elements.
1339case $as_dir/ in
1340 ./ | .// | /cC/* | \
1341 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1342 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1343 /usr/ucb/* ) ;;
1344 *)
1345 # OSF1 and SCO ODT 3.0 have their own names for install.
1346 # Don't use installbsd from OSF since it installs stuff as root
1347 # by default.
1348 for ac_prog in ginstall scoinst install; do
1349 for ac_exec_ext in '' $ac_executable_extensions; do
1350 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1351 if test $ac_prog = install &&
1352 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1353 # AIX install. It has an incompatible calling convention.
1354 :
1355 elif test $ac_prog = install &&
1356 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1357 # program-specific install script used by HP pwplus--don't use.
1358 :
1359 else
1360 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1361 break 3
1362 fi
1363 fi
1364 done
1365 done
1366 ;;
1367esac
1368done
1369
1370
1371fi
1372 if test "${ac_cv_path_install+set}" = set; then
1373 INSTALL=$ac_cv_path_install
1374 else
1375 # As a last resort, use the slow shell script. We don't cache a
1376 # path for INSTALL within a source directory, because that will
1377 # break other packages using the cache if that directory is
1378 # removed, or if the path is relative.
1379 INSTALL=$ac_install_sh
1380 fi
1381fi
1382echo "$as_me:$LINENO: result: $INSTALL" >&5
1383echo "${ECHO_T}$INSTALL" >&6
1384
1385# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1386# It thinks the first close brace ends the variable substitution.
1387test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1388
1389test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1390
1391test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1392
1393echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1394echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1395# Just in case
1396sleep 1
1397echo timestamp > conftest.file
1398# Do `set' in a subshell so we don't clobber the current shell's
1399# arguments. Must try -L first in case configure is actually a
1400# symlink; some systems play weird games with the mod time of symlinks
1401# (eg FreeBSD returns the mod time of the symlink's containing
1402# directory).
1403if (
1404 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1405 if test "$*" = "X"; then
1406 # -L didn't work.
1407 set X `ls -t $srcdir/configure conftest.file`
1408 fi
1409 rm -f conftest.file
1410 if test "$*" != "X $srcdir/configure conftest.file" \
1411 && test "$*" != "X conftest.file $srcdir/configure"; then
1412
1413 # If neither matched, then we have a broken ls. This can happen
1414 # if, for instance, CONFIG_SHELL is bash and it inherits a
1415 # broken ls alias from the environment. This has actually
1416 # happened. Such a system could not be considered "sane".
1417 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1418alias in your environment" >&5
1419echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1420alias in your environment" >&2;}
1421 { (exit 1); exit 1; }; }
1422 fi
1423
1424 test "$2" = conftest.file
1425 )
1426then
1427 # Ok.
1428 :
1429else
1430 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1431Check your system clock" >&5
1432echo "$as_me: error: newly created file is older than distributed files!
1433Check your system clock" >&2;}
1434 { (exit 1); exit 1; }; }
1435fi
1436echo "$as_me:$LINENO: result: yes" >&5
1437echo "${ECHO_T}yes" >&6
1438test "$program_prefix" != NONE &&
1439 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1440# Use a double $ so make ignores it.
1441test "$program_suffix" != NONE &&
1442 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1443# Double any \ or $. echo might interpret backslashes.
1444# By default was `s,x,x', remove it if useless.
1445cat <<\_ACEOF >conftest.sed
1446s/[\\$]/&&/g;s/;s,x,x,$//
1447_ACEOF
1448program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1449rm conftest.sed
1450
1451# expand $ac_aux_dir to an absolute path
1452am_aux_dir=`cd $ac_aux_dir && pwd`
1453
1454test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1455# Use eval to expand $SHELL
1456if eval "$MISSING --run true"; then
1457 am_missing_run="$MISSING --run "
1458else
1459 am_missing_run=
1460 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1461echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1462fi
1463
1464if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1465 # We used to keeping the `.' as first argument, in order to
1466 # allow $(mkdir_p) to be used without argument. As in
1467 # $(mkdir_p) $(somedir)
1468 # where $(somedir) is conditionally defined. However this is wrong
1469 # for two reasons:
1470 # 1. if the package is installed by a user who cannot write `.'
1471 # make install will fail,
1472 # 2. the above comment should most certainly read
1473 # $(mkdir_p) $(DESTDIR)$(somedir)
1474 # so it does not work when $(somedir) is undefined and
1475 # $(DESTDIR) is not.
1476 # To support the latter case, we have to write
1477 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1478 # so the `.' trick is pointless.
1479 mkdir_p='mkdir -p --'
1480else
1481 # On NextStep and OpenStep, the `mkdir' command does not
1482 # recognize any option. It will interpret all options as
1483 # directories to create, and then abort because `.' already
1484 # exists.
1485 for d in ./-p ./--version;
1486 do
1487 test -d $d && rmdir $d
1488 done
1489 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1490 if test -f "$ac_aux_dir/mkinstalldirs"; then
1491 mkdir_p='$(mkinstalldirs)'
1492 else
1493 mkdir_p='$(install_sh) -d'
1494 fi
1495fi
1496
1497for ac_prog in gawk mawk nawk awk
1498do
1499 # Extract the first word of "$ac_prog", so it can be a program name with args.
1500set dummy $ac_prog; ac_word=$2
1501echo "$as_me:$LINENO: checking for $ac_word" >&5
1502echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1503if test "${ac_cv_prog_AWK+set}" = set; then
1504 echo $ECHO_N "(cached) $ECHO_C" >&6
1505else
1506 if test -n "$AWK"; then
1507 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1508else
1509as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1510for as_dir in $PATH
1511do
1512 IFS=$as_save_IFS
1513 test -z "$as_dir" && as_dir=.
1514 for ac_exec_ext in '' $ac_executable_extensions; do
1515 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1516 ac_cv_prog_AWK="$ac_prog"
1517 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1518 break 2
1519 fi
1520done
1521done
1522
1523fi
1524fi
1525AWK=$ac_cv_prog_AWK
1526if test -n "$AWK"; then
1527 echo "$as_me:$LINENO: result: $AWK" >&5
1528echo "${ECHO_T}$AWK" >&6
1529else
1530 echo "$as_me:$LINENO: result: no" >&5
1531echo "${ECHO_T}no" >&6
1532fi
1533
1534 test -n "$AWK" && break
1535done
1536
1537echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1538echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1539set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1540if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1541 echo $ECHO_N "(cached) $ECHO_C" >&6
1542else
1543 cat >conftest.make <<\_ACEOF
1544all:
1545 @echo 'ac_maketemp="$(MAKE)"'
1546_ACEOF
1547# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1548eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1549if test -n "$ac_maketemp"; then
1550 eval ac_cv_prog_make_${ac_make}_set=yes
1551else
1552 eval ac_cv_prog_make_${ac_make}_set=no
1553fi
1554rm -f conftest.make
1555fi
1556if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1557 echo "$as_me:$LINENO: result: yes" >&5
1558echo "${ECHO_T}yes" >&6
1559 SET_MAKE=
1560else
1561 echo "$as_me:$LINENO: result: no" >&5
1562echo "${ECHO_T}no" >&6
1563 SET_MAKE="MAKE=${MAKE-make}"
1564fi
1565
1566rm -rf .tst 2>/dev/null
1567mkdir .tst 2>/dev/null
1568if test -d .tst; then
1569 am__leading_dot=.
1570else
1571 am__leading_dot=_
1572fi
1573rmdir .tst 2>/dev/null
1574
1575# test to see if srcdir already configured
1576if test "`cd $srcdir && pwd`" != "`pwd`" &&
1577 test -f $srcdir/config.status; then
1578 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1579echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1580 { (exit 1); exit 1; }; }
1581fi
1582
1583# test whether we have cygpath
1584if test -z "$CYGPATH_W"; then
1585 if (cygpath --version) >/dev/null 2>/dev/null; then
1586 CYGPATH_W='cygpath -w'
1587 else
1588 CYGPATH_W=echo
1589 fi
1590fi
1591
1592
1593# Define the identity of the package.
1594 PACKAGE='greenstone2-runtime-src'
1595 VERSION='2.84'
1596
1597
1598# Some tools Automake needs.
1599
1600ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1601
1602
1603AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1604
1605
1606AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1607
1608
1609AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1610
1611
1612MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1613
1614install_sh=${install_sh-"$am_aux_dir/install-sh"}
1615
1616# Installed binaries are usually stripped using `strip' when the user
1617# run `make install-strip'. However `strip' might not be the right
1618# tool to use in cross-compilation environments, therefore Automake
1619# will honor the `STRIP' environment variable to overrule this program.
1620if test "$cross_compiling" != no; then
1621 if test -n "$ac_tool_prefix"; then
1622 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1623set dummy ${ac_tool_prefix}strip; ac_word=$2
1624echo "$as_me:$LINENO: checking for $ac_word" >&5
1625echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1626if test "${ac_cv_prog_STRIP+set}" = set; then
1627 echo $ECHO_N "(cached) $ECHO_C" >&6
1628else
1629 if test -n "$STRIP"; then
1630 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1631else
1632as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1633for as_dir in $PATH
1634do
1635 IFS=$as_save_IFS
1636 test -z "$as_dir" && as_dir=.
1637 for ac_exec_ext in '' $ac_executable_extensions; do
1638 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1639 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1640 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1641 break 2
1642 fi
1643done
1644done
1645
1646fi
1647fi
1648STRIP=$ac_cv_prog_STRIP
1649if test -n "$STRIP"; then
1650 echo "$as_me:$LINENO: result: $STRIP" >&5
1651echo "${ECHO_T}$STRIP" >&6
1652else
1653 echo "$as_me:$LINENO: result: no" >&5
1654echo "${ECHO_T}no" >&6
1655fi
1656
1657fi
1658if test -z "$ac_cv_prog_STRIP"; then
1659 ac_ct_STRIP=$STRIP
1660 # Extract the first word of "strip", so it can be a program name with args.
1661set dummy strip; ac_word=$2
1662echo "$as_me:$LINENO: checking for $ac_word" >&5
1663echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1664if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1665 echo $ECHO_N "(cached) $ECHO_C" >&6
1666else
1667 if test -n "$ac_ct_STRIP"; then
1668 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1669else
1670as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1671for as_dir in $PATH
1672do
1673 IFS=$as_save_IFS
1674 test -z "$as_dir" && as_dir=.
1675 for ac_exec_ext in '' $ac_executable_extensions; do
1676 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1677 ac_cv_prog_ac_ct_STRIP="strip"
1678 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1679 break 2
1680 fi
1681done
1682done
1683
1684 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1685fi
1686fi
1687ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1688if test -n "$ac_ct_STRIP"; then
1689 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1690echo "${ECHO_T}$ac_ct_STRIP" >&6
1691else
1692 echo "$as_me:$LINENO: result: no" >&5
1693echo "${ECHO_T}no" >&6
1694fi
1695
1696 STRIP=$ac_ct_STRIP
1697else
1698 STRIP="$ac_cv_prog_STRIP"
1699fi
1700
1701fi
1702INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1703
1704# We need awk for the "check" target. The system "awk" is bad on
1705# some platforms.
1706# Always define AMTAR for backward compatibility.
1707
1708AMTAR=${AMTAR-"${am_missing_run}tar"}
1709
1710am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
1711
1712
1713
1714
1715
1716
1717# This package requires the crypt library
1718DEPDIR="${am__leading_dot}deps"
1719
1720 ac_config_commands="$ac_config_commands depfiles"
1721
1722
1723am_make=${MAKE-make}
1724cat > confinc << 'END'
1725am__doit:
1726 @echo done
1727.PHONY: am__doit
1728END
1729# If we don't find an include directive, just comment out the code.
1730echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
1731echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
1732am__include="#"
1733am__quote=
1734_am_result=none
1735# First try GNU make style include.
1736echo "include confinc" > confmf
1737# We grep out `Entering directory' and `Leaving directory'
1738# messages which can occur if `w' ends up in MAKEFLAGS.
1739# In particular we don't look at `^make:' because GNU make might
1740# be invoked under some other name (usually "gmake"), in which
1741# case it prints its new name instead of `make'.
1742if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
1743 am__include=include
1744 am__quote=
1745 _am_result=GNU
1746fi
1747# Now try BSD make style include.
1748if test "$am__include" = "#"; then
1749 echo '.include "confinc"' > confmf
1750 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
1751 am__include=.include
1752 am__quote="\""
1753 _am_result=BSD
1754 fi
1755fi
1756
1757
1758echo "$as_me:$LINENO: result: $_am_result" >&5
1759echo "${ECHO_T}$_am_result" >&6
1760rm -f confinc confmf
1761
1762# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
1763if test "${enable_dependency_tracking+set}" = set; then
1764 enableval="$enable_dependency_tracking"
1765
1766fi;
1767if test "x$enable_dependency_tracking" != xno; then
1768 am_depcomp="$ac_aux_dir/depcomp"
1769 AMDEPBACKSLASH='\'
1770fi
1771
1772
1773if test "x$enable_dependency_tracking" != xno; then
1774 AMDEP_TRUE=
1775 AMDEP_FALSE='#'
1776else
1777 AMDEP_TRUE='#'
1778 AMDEP_FALSE=
1779fi
1780
1781
1782
1783ac_ext=c
1784ac_cpp='$CPP $CPPFLAGS'
1785ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1786ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1787ac_compiler_gnu=$ac_cv_c_compiler_gnu
1788if test -n "$ac_tool_prefix"; then
1789 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1790set dummy ${ac_tool_prefix}gcc; ac_word=$2
1791echo "$as_me:$LINENO: checking for $ac_word" >&5
1792echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1793if test "${ac_cv_prog_CC+set}" = set; then
1794 echo $ECHO_N "(cached) $ECHO_C" >&6
1795else
1796 if test -n "$CC"; then
1797 ac_cv_prog_CC="$CC" # Let the user override the test.
1798else
1799as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1800for as_dir in $PATH
1801do
1802 IFS=$as_save_IFS
1803 test -z "$as_dir" && as_dir=.
1804 for ac_exec_ext in '' $ac_executable_extensions; do
1805 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1806 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1807 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1808 break 2
1809 fi
1810done
1811done
1812
1813fi
1814fi
1815CC=$ac_cv_prog_CC
1816if test -n "$CC"; then
1817 echo "$as_me:$LINENO: result: $CC" >&5
1818echo "${ECHO_T}$CC" >&6
1819else
1820 echo "$as_me:$LINENO: result: no" >&5
1821echo "${ECHO_T}no" >&6
1822fi
1823
1824fi
1825if test -z "$ac_cv_prog_CC"; then
1826 ac_ct_CC=$CC
1827 # Extract the first word of "gcc", so it can be a program name with args.
1828set dummy gcc; ac_word=$2
1829echo "$as_me:$LINENO: checking for $ac_word" >&5
1830echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1831if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1832 echo $ECHO_N "(cached) $ECHO_C" >&6
1833else
1834 if test -n "$ac_ct_CC"; then
1835 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1836else
1837as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1838for as_dir in $PATH
1839do
1840 IFS=$as_save_IFS
1841 test -z "$as_dir" && as_dir=.
1842 for ac_exec_ext in '' $ac_executable_extensions; do
1843 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1844 ac_cv_prog_ac_ct_CC="gcc"
1845 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1846 break 2
1847 fi
1848done
1849done
1850
1851fi
1852fi
1853ac_ct_CC=$ac_cv_prog_ac_ct_CC
1854if test -n "$ac_ct_CC"; then
1855 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1856echo "${ECHO_T}$ac_ct_CC" >&6
1857else
1858 echo "$as_me:$LINENO: result: no" >&5
1859echo "${ECHO_T}no" >&6
1860fi
1861
1862 CC=$ac_ct_CC
1863else
1864 CC="$ac_cv_prog_CC"
1865fi
1866
1867if test -z "$CC"; then
1868 if test -n "$ac_tool_prefix"; then
1869 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1870set dummy ${ac_tool_prefix}cc; ac_word=$2
1871echo "$as_me:$LINENO: checking for $ac_word" >&5
1872echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1873if test "${ac_cv_prog_CC+set}" = set; then
1874 echo $ECHO_N "(cached) $ECHO_C" >&6
1875else
1876 if test -n "$CC"; then
1877 ac_cv_prog_CC="$CC" # Let the user override the test.
1878else
1879as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1880for as_dir in $PATH
1881do
1882 IFS=$as_save_IFS
1883 test -z "$as_dir" && as_dir=.
1884 for ac_exec_ext in '' $ac_executable_extensions; do
1885 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1886 ac_cv_prog_CC="${ac_tool_prefix}cc"
1887 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1888 break 2
1889 fi
1890done
1891done
1892
1893fi
1894fi
1895CC=$ac_cv_prog_CC
1896if test -n "$CC"; then
1897 echo "$as_me:$LINENO: result: $CC" >&5
1898echo "${ECHO_T}$CC" >&6
1899else
1900 echo "$as_me:$LINENO: result: no" >&5
1901echo "${ECHO_T}no" >&6
1902fi
1903
1904fi
1905if test -z "$ac_cv_prog_CC"; then
1906 ac_ct_CC=$CC
1907 # Extract the first word of "cc", so it can be a program name with args.
1908set dummy cc; ac_word=$2
1909echo "$as_me:$LINENO: checking for $ac_word" >&5
1910echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1911if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1912 echo $ECHO_N "(cached) $ECHO_C" >&6
1913else
1914 if test -n "$ac_ct_CC"; then
1915 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1916else
1917as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1918for as_dir in $PATH
1919do
1920 IFS=$as_save_IFS
1921 test -z "$as_dir" && as_dir=.
1922 for ac_exec_ext in '' $ac_executable_extensions; do
1923 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1924 ac_cv_prog_ac_ct_CC="cc"
1925 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1926 break 2
1927 fi
1928done
1929done
1930
1931fi
1932fi
1933ac_ct_CC=$ac_cv_prog_ac_ct_CC
1934if test -n "$ac_ct_CC"; then
1935 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1936echo "${ECHO_T}$ac_ct_CC" >&6
1937else
1938 echo "$as_me:$LINENO: result: no" >&5
1939echo "${ECHO_T}no" >&6
1940fi
1941
1942 CC=$ac_ct_CC
1943else
1944 CC="$ac_cv_prog_CC"
1945fi
1946
1947fi
1948if test -z "$CC"; then
1949 # Extract the first word of "cc", so it can be a program name with args.
1950set dummy cc; ac_word=$2
1951echo "$as_me:$LINENO: checking for $ac_word" >&5
1952echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1953if test "${ac_cv_prog_CC+set}" = set; then
1954 echo $ECHO_N "(cached) $ECHO_C" >&6
1955else
1956 if test -n "$CC"; then
1957 ac_cv_prog_CC="$CC" # Let the user override the test.
1958else
1959 ac_prog_rejected=no
1960as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1961for as_dir in $PATH
1962do
1963 IFS=$as_save_IFS
1964 test -z "$as_dir" && as_dir=.
1965 for ac_exec_ext in '' $ac_executable_extensions; do
1966 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1967 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1968 ac_prog_rejected=yes
1969 continue
1970 fi
1971 ac_cv_prog_CC="cc"
1972 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1973 break 2
1974 fi
1975done
1976done
1977
1978if test $ac_prog_rejected = yes; then
1979 # We found a bogon in the path, so make sure we never use it.
1980 set dummy $ac_cv_prog_CC
1981 shift
1982 if test $# != 0; then
1983 # We chose a different compiler from the bogus one.
1984 # However, it has the same basename, so the bogon will be chosen
1985 # first if we set CC to just the basename; use the full file name.
1986 shift
1987 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1988 fi
1989fi
1990fi
1991fi
1992CC=$ac_cv_prog_CC
1993if test -n "$CC"; then
1994 echo "$as_me:$LINENO: result: $CC" >&5
1995echo "${ECHO_T}$CC" >&6
1996else
1997 echo "$as_me:$LINENO: result: no" >&5
1998echo "${ECHO_T}no" >&6
1999fi
2000
2001fi
2002if test -z "$CC"; then
2003 if test -n "$ac_tool_prefix"; then
2004 for ac_prog in cl
2005 do
2006 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2007set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2008echo "$as_me:$LINENO: checking for $ac_word" >&5
2009echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2010if test "${ac_cv_prog_CC+set}" = set; then
2011 echo $ECHO_N "(cached) $ECHO_C" >&6
2012else
2013 if test -n "$CC"; then
2014 ac_cv_prog_CC="$CC" # Let the user override the test.
2015else
2016as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2017for as_dir in $PATH
2018do
2019 IFS=$as_save_IFS
2020 test -z "$as_dir" && as_dir=.
2021 for ac_exec_ext in '' $ac_executable_extensions; do
2022 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2023 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2024 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2025 break 2
2026 fi
2027done
2028done
2029
2030fi
2031fi
2032CC=$ac_cv_prog_CC
2033if test -n "$CC"; then
2034 echo "$as_me:$LINENO: result: $CC" >&5
2035echo "${ECHO_T}$CC" >&6
2036else
2037 echo "$as_me:$LINENO: result: no" >&5
2038echo "${ECHO_T}no" >&6
2039fi
2040
2041 test -n "$CC" && break
2042 done
2043fi
2044if test -z "$CC"; then
2045 ac_ct_CC=$CC
2046 for ac_prog in cl
2047do
2048 # Extract the first word of "$ac_prog", so it can be a program name with args.
2049set dummy $ac_prog; ac_word=$2
2050echo "$as_me:$LINENO: checking for $ac_word" >&5
2051echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2052if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2053 echo $ECHO_N "(cached) $ECHO_C" >&6
2054else
2055 if test -n "$ac_ct_CC"; then
2056 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2057else
2058as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2059for as_dir in $PATH
2060do
2061 IFS=$as_save_IFS
2062 test -z "$as_dir" && as_dir=.
2063 for ac_exec_ext in '' $ac_executable_extensions; do
2064 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2065 ac_cv_prog_ac_ct_CC="$ac_prog"
2066 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2067 break 2
2068 fi
2069done
2070done
2071
2072fi
2073fi
2074ac_ct_CC=$ac_cv_prog_ac_ct_CC
2075if test -n "$ac_ct_CC"; then
2076 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2077echo "${ECHO_T}$ac_ct_CC" >&6
2078else
2079 echo "$as_me:$LINENO: result: no" >&5
2080echo "${ECHO_T}no" >&6
2081fi
2082
2083 test -n "$ac_ct_CC" && break
2084done
2085
2086 CC=$ac_ct_CC
2087fi
2088
2089fi
2090
2091
2092test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2093See \`config.log' for more details." >&5
2094echo "$as_me: error: no acceptable C compiler found in \$PATH
2095See \`config.log' for more details." >&2;}
2096 { (exit 1); exit 1; }; }
2097
2098# Provide some information about the compiler.
2099echo "$as_me:$LINENO:" \
2100 "checking for C compiler version" >&5
2101ac_compiler=`set X $ac_compile; echo $2`
2102{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2103 (eval $ac_compiler --version </dev/null >&5) 2>&5
2104 ac_status=$?
2105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2106 (exit $ac_status); }
2107{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2108 (eval $ac_compiler -v </dev/null >&5) 2>&5
2109 ac_status=$?
2110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2111 (exit $ac_status); }
2112{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2113 (eval $ac_compiler -V </dev/null >&5) 2>&5
2114 ac_status=$?
2115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2116 (exit $ac_status); }
2117
2118cat >conftest.$ac_ext <<_ACEOF
2119/* confdefs.h. */
2120_ACEOF
2121cat confdefs.h >>conftest.$ac_ext
2122cat >>conftest.$ac_ext <<_ACEOF
2123/* end confdefs.h. */
2124
2125int
2126main ()
2127{
2128
2129 ;
2130 return 0;
2131}
2132_ACEOF
2133ac_clean_files_save=$ac_clean_files
2134ac_clean_files="$ac_clean_files a.out a.exe b.out"
2135# Try to create an executable without -o first, disregard a.out.
2136# It will help us diagnose broken compilers, and finding out an intuition
2137# of exeext.
2138echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2139echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2140ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2141if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2142 (eval $ac_link_default) 2>&5
2143 ac_status=$?
2144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2145 (exit $ac_status); }; then
2146 # Find the output, starting from the most likely. This scheme is
2147# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2148# resort.
2149
2150# Be careful to initialize this variable, since it used to be cached.
2151# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2152ac_cv_exeext=
2153# b.out is created by i960 compilers.
2154for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2155do
2156 test -f "$ac_file" || continue
2157 case $ac_file in
2158 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2159 ;;
2160 conftest.$ac_ext )
2161 # This is the source file.
2162 ;;
2163 [ab].out )
2164 # We found the default executable, but exeext='' is most
2165 # certainly right.
2166 break;;
2167 *.* )
2168 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2169 # FIXME: I believe we export ac_cv_exeext for Libtool,
2170 # but it would be cool to find out if it's true. Does anybody
2171 # maintain Libtool? --akim.
2172 export ac_cv_exeext
2173 break;;
2174 * )
2175 break;;
2176 esac
2177done
2178else
2179 echo "$as_me: failed program was:" >&5
2180sed 's/^/| /' conftest.$ac_ext >&5
2181
2182{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2183See \`config.log' for more details." >&5
2184echo "$as_me: error: C compiler cannot create executables
2185See \`config.log' for more details." >&2;}
2186 { (exit 77); exit 77; }; }
2187fi
2188
2189ac_exeext=$ac_cv_exeext
2190echo "$as_me:$LINENO: result: $ac_file" >&5
2191echo "${ECHO_T}$ac_file" >&6
2192
2193# Check the compiler produces executables we can run. If not, either
2194# the compiler is broken, or we cross compile.
2195echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2196echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2197# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2198# If not cross compiling, check that we can run a simple program.
2199if test "$cross_compiling" != yes; then
2200 if { ac_try='./$ac_file'
2201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2202 (eval $ac_try) 2>&5
2203 ac_status=$?
2204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2205 (exit $ac_status); }; }; then
2206 cross_compiling=no
2207 else
2208 if test "$cross_compiling" = maybe; then
2209 cross_compiling=yes
2210 else
2211 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2212If you meant to cross compile, use \`--host'.
2213See \`config.log' for more details." >&5
2214echo "$as_me: error: cannot run C compiled programs.
2215If you meant to cross compile, use \`--host'.
2216See \`config.log' for more details." >&2;}
2217 { (exit 1); exit 1; }; }
2218 fi
2219 fi
2220fi
2221echo "$as_me:$LINENO: result: yes" >&5
2222echo "${ECHO_T}yes" >&6
2223
2224rm -f a.out a.exe conftest$ac_cv_exeext b.out
2225ac_clean_files=$ac_clean_files_save
2226# Check the compiler produces executables we can run. If not, either
2227# the compiler is broken, or we cross compile.
2228echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2229echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2230echo "$as_me:$LINENO: result: $cross_compiling" >&5
2231echo "${ECHO_T}$cross_compiling" >&6
2232
2233echo "$as_me:$LINENO: checking for suffix of executables" >&5
2234echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2235if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2236 (eval $ac_link) 2>&5
2237 ac_status=$?
2238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2239 (exit $ac_status); }; then
2240 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2241# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2242# work properly (i.e., refer to `conftest.exe'), while it won't with
2243# `rm'.
2244for ac_file in conftest.exe conftest conftest.*; do
2245 test -f "$ac_file" || continue
2246 case $ac_file in
2247 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2248 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2249 export ac_cv_exeext
2250 break;;
2251 * ) break;;
2252 esac
2253done
2254else
2255 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2256See \`config.log' for more details." >&5
2257echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2258See \`config.log' for more details." >&2;}
2259 { (exit 1); exit 1; }; }
2260fi
2261
2262rm -f conftest$ac_cv_exeext
2263echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2264echo "${ECHO_T}$ac_cv_exeext" >&6
2265
2266rm -f conftest.$ac_ext
2267EXEEXT=$ac_cv_exeext
2268ac_exeext=$EXEEXT
2269echo "$as_me:$LINENO: checking for suffix of object files" >&5
2270echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2271if test "${ac_cv_objext+set}" = set; then
2272 echo $ECHO_N "(cached) $ECHO_C" >&6
2273else
2274 cat >conftest.$ac_ext <<_ACEOF
2275/* confdefs.h. */
2276_ACEOF
2277cat confdefs.h >>conftest.$ac_ext
2278cat >>conftest.$ac_ext <<_ACEOF
2279/* end confdefs.h. */
2280
2281int
2282main ()
2283{
2284
2285 ;
2286 return 0;
2287}
2288_ACEOF
2289rm -f conftest.o conftest.obj
2290if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2291 (eval $ac_compile) 2>&5
2292 ac_status=$?
2293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2294 (exit $ac_status); }; then
2295 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2296 case $ac_file in
2297 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2298 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2299 break;;
2300 esac
2301done
2302else
2303 echo "$as_me: failed program was:" >&5
2304sed 's/^/| /' conftest.$ac_ext >&5
2305
2306{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2307See \`config.log' for more details." >&5
2308echo "$as_me: error: cannot compute suffix of object files: cannot compile
2309See \`config.log' for more details." >&2;}
2310 { (exit 1); exit 1; }; }
2311fi
2312
2313rm -f conftest.$ac_cv_objext conftest.$ac_ext
2314fi
2315echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2316echo "${ECHO_T}$ac_cv_objext" >&6
2317OBJEXT=$ac_cv_objext
2318ac_objext=$OBJEXT
2319echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2320echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2321if test "${ac_cv_c_compiler_gnu+set}" = set; then
2322 echo $ECHO_N "(cached) $ECHO_C" >&6
2323else
2324 cat >conftest.$ac_ext <<_ACEOF
2325/* confdefs.h. */
2326_ACEOF
2327cat confdefs.h >>conftest.$ac_ext
2328cat >>conftest.$ac_ext <<_ACEOF
2329/* end confdefs.h. */
2330
2331int
2332main ()
2333{
2334#ifndef __GNUC__
2335 choke me
2336#endif
2337
2338 ;
2339 return 0;
2340}
2341_ACEOF
2342rm -f conftest.$ac_objext
2343if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2344 (eval $ac_compile) 2>conftest.er1
2345 ac_status=$?
2346 grep -v '^ *+' conftest.er1 >conftest.err
2347 rm -f conftest.er1
2348 cat conftest.err >&5
2349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2350 (exit $ac_status); } &&
2351 { ac_try='test -z "$ac_c_werror_flag"
2352 || test ! -s conftest.err'
2353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2354 (eval $ac_try) 2>&5
2355 ac_status=$?
2356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2357 (exit $ac_status); }; } &&
2358 { ac_try='test -s conftest.$ac_objext'
2359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2360 (eval $ac_try) 2>&5
2361 ac_status=$?
2362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2363 (exit $ac_status); }; }; then
2364 ac_compiler_gnu=yes
2365else
2366 echo "$as_me: failed program was:" >&5
2367sed 's/^/| /' conftest.$ac_ext >&5
2368
2369ac_compiler_gnu=no
2370fi
2371rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2372ac_cv_c_compiler_gnu=$ac_compiler_gnu
2373
2374fi
2375echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2376echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2377GCC=`test $ac_compiler_gnu = yes && echo yes`
2378ac_test_CFLAGS=${CFLAGS+set}
2379ac_save_CFLAGS=$CFLAGS
2380CFLAGS="-g"
2381echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2382echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2383if test "${ac_cv_prog_cc_g+set}" = set; then
2384 echo $ECHO_N "(cached) $ECHO_C" >&6
2385else
2386 cat >conftest.$ac_ext <<_ACEOF
2387/* confdefs.h. */
2388_ACEOF
2389cat confdefs.h >>conftest.$ac_ext
2390cat >>conftest.$ac_ext <<_ACEOF
2391/* end confdefs.h. */
2392
2393int
2394main ()
2395{
2396
2397 ;
2398 return 0;
2399}
2400_ACEOF
2401rm -f conftest.$ac_objext
2402if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2403 (eval $ac_compile) 2>conftest.er1
2404 ac_status=$?
2405 grep -v '^ *+' conftest.er1 >conftest.err
2406 rm -f conftest.er1
2407 cat conftest.err >&5
2408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2409 (exit $ac_status); } &&
2410 { ac_try='test -z "$ac_c_werror_flag"
2411 || test ! -s conftest.err'
2412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2413 (eval $ac_try) 2>&5
2414 ac_status=$?
2415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2416 (exit $ac_status); }; } &&
2417 { ac_try='test -s conftest.$ac_objext'
2418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2419 (eval $ac_try) 2>&5
2420 ac_status=$?
2421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2422 (exit $ac_status); }; }; then
2423 ac_cv_prog_cc_g=yes
2424else
2425 echo "$as_me: failed program was:" >&5
2426sed 's/^/| /' conftest.$ac_ext >&5
2427
2428ac_cv_prog_cc_g=no
2429fi
2430rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2431fi
2432echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2433echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2434if test "$ac_test_CFLAGS" = set; then
2435 CFLAGS=$ac_save_CFLAGS
2436elif test $ac_cv_prog_cc_g = yes; then
2437 if test "$GCC" = yes; then
2438 CFLAGS="-g -O2"
2439 else
2440 CFLAGS="-g"
2441 fi
2442else
2443 if test "$GCC" = yes; then
2444 CFLAGS="-O2"
2445 else
2446 CFLAGS=
2447 fi
2448fi
2449echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2450echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2451if test "${ac_cv_prog_cc_stdc+set}" = set; then
2452 echo $ECHO_N "(cached) $ECHO_C" >&6
2453else
2454 ac_cv_prog_cc_stdc=no
2455ac_save_CC=$CC
2456cat >conftest.$ac_ext <<_ACEOF
2457/* confdefs.h. */
2458_ACEOF
2459cat confdefs.h >>conftest.$ac_ext
2460cat >>conftest.$ac_ext <<_ACEOF
2461/* end confdefs.h. */
2462#include <stdarg.h>
2463#include <stdio.h>
2464#include <sys/types.h>
2465#include <sys/stat.h>
2466/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2467struct buf { int x; };
2468FILE * (*rcsopen) (struct buf *, struct stat *, int);
2469static char *e (p, i)
2470 char **p;
2471 int i;
2472{
2473 return p[i];
2474}
2475static char *f (char * (*g) (char **, int), char **p, ...)
2476{
2477 char *s;
2478 va_list v;
2479 va_start (v,p);
2480 s = g (p, va_arg (v,int));
2481 va_end (v);
2482 return s;
2483}
2484
2485/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2486 function prototypes and stuff, but not '\xHH' hex character constants.
2487 These don't provoke an error unfortunately, instead are silently treated
2488 as 'x'. The following induces an error, until -std1 is added to get
2489 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2490 array size at least. It's necessary to write '\x00'==0 to get something
2491 that's true only with -std1. */
2492int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2493
2494int test (int i, double x);
2495struct s1 {int (*f) (int a);};
2496struct s2 {int (*f) (double a);};
2497int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2498int argc;
2499char **argv;
2500int
2501main ()
2502{
2503return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2504 ;
2505 return 0;
2506}
2507_ACEOF
2508# Don't try gcc -ansi; that turns off useful extensions and
2509# breaks some systems' header files.
2510# AIX -qlanglvl=ansi
2511# Ultrix and OSF/1 -std1
2512# HP-UX 10.20 and later -Ae
2513# HP-UX older versions -Aa -D_HPUX_SOURCE
2514# SVR4 -Xc -D__EXTENSIONS__
2515for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2516do
2517 CC="$ac_save_CC $ac_arg"
2518 rm -f conftest.$ac_objext
2519if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2520 (eval $ac_compile) 2>conftest.er1
2521 ac_status=$?
2522 grep -v '^ *+' conftest.er1 >conftest.err
2523 rm -f conftest.er1
2524 cat conftest.err >&5
2525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2526 (exit $ac_status); } &&
2527 { ac_try='test -z "$ac_c_werror_flag"
2528 || test ! -s conftest.err'
2529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2530 (eval $ac_try) 2>&5
2531 ac_status=$?
2532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2533 (exit $ac_status); }; } &&
2534 { ac_try='test -s conftest.$ac_objext'
2535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2536 (eval $ac_try) 2>&5
2537 ac_status=$?
2538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2539 (exit $ac_status); }; }; then
2540 ac_cv_prog_cc_stdc=$ac_arg
2541break
2542else
2543 echo "$as_me: failed program was:" >&5
2544sed 's/^/| /' conftest.$ac_ext >&5
2545
2546fi
2547rm -f conftest.err conftest.$ac_objext
2548done
2549rm -f conftest.$ac_ext conftest.$ac_objext
2550CC=$ac_save_CC
2551
2552fi
2553
2554case "x$ac_cv_prog_cc_stdc" in
2555 x|xno)
2556 echo "$as_me:$LINENO: result: none needed" >&5
2557echo "${ECHO_T}none needed" >&6 ;;
2558 *)
2559 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2560echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2561 CC="$CC $ac_cv_prog_cc_stdc" ;;
2562esac
2563
2564# Some people use a C++ compiler to compile C. Since we use `exit',
2565# in C++ we need to declare it. In case someone uses the same compiler
2566# for both compiling C and C++ we need to have the C++ compiler decide
2567# the declaration of exit, since it's the most demanding environment.
2568cat >conftest.$ac_ext <<_ACEOF
2569#ifndef __cplusplus
2570 choke me
2571#endif
2572_ACEOF
2573rm -f conftest.$ac_objext
2574if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2575 (eval $ac_compile) 2>conftest.er1
2576 ac_status=$?
2577 grep -v '^ *+' conftest.er1 >conftest.err
2578 rm -f conftest.er1
2579 cat conftest.err >&5
2580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2581 (exit $ac_status); } &&
2582 { ac_try='test -z "$ac_c_werror_flag"
2583 || test ! -s conftest.err'
2584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2585 (eval $ac_try) 2>&5
2586 ac_status=$?
2587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2588 (exit $ac_status); }; } &&
2589 { ac_try='test -s conftest.$ac_objext'
2590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2591 (eval $ac_try) 2>&5
2592 ac_status=$?
2593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2594 (exit $ac_status); }; }; then
2595 for ac_declaration in \
2596 '' \
2597 'extern "C" void std::exit (int) throw (); using std::exit;' \
2598 'extern "C" void std::exit (int); using std::exit;' \
2599 'extern "C" void exit (int) throw ();' \
2600 'extern "C" void exit (int);' \
2601 'void exit (int);'
2602do
2603 cat >conftest.$ac_ext <<_ACEOF
2604/* confdefs.h. */
2605_ACEOF
2606cat confdefs.h >>conftest.$ac_ext
2607cat >>conftest.$ac_ext <<_ACEOF
2608/* end confdefs.h. */
2609$ac_declaration
2610#include <stdlib.h>
2611int
2612main ()
2613{
2614exit (42);
2615 ;
2616 return 0;
2617}
2618_ACEOF
2619rm -f conftest.$ac_objext
2620if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2621 (eval $ac_compile) 2>conftest.er1
2622 ac_status=$?
2623 grep -v '^ *+' conftest.er1 >conftest.err
2624 rm -f conftest.er1
2625 cat conftest.err >&5
2626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2627 (exit $ac_status); } &&
2628 { ac_try='test -z "$ac_c_werror_flag"
2629 || test ! -s conftest.err'
2630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2631 (eval $ac_try) 2>&5
2632 ac_status=$?
2633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2634 (exit $ac_status); }; } &&
2635 { ac_try='test -s conftest.$ac_objext'
2636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2637 (eval $ac_try) 2>&5
2638 ac_status=$?
2639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2640 (exit $ac_status); }; }; then
2641 :
2642else
2643 echo "$as_me: failed program was:" >&5
2644sed 's/^/| /' conftest.$ac_ext >&5
2645
2646continue
2647fi
2648rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2649 cat >conftest.$ac_ext <<_ACEOF
2650/* confdefs.h. */
2651_ACEOF
2652cat confdefs.h >>conftest.$ac_ext
2653cat >>conftest.$ac_ext <<_ACEOF
2654/* end confdefs.h. */
2655$ac_declaration
2656int
2657main ()
2658{
2659exit (42);
2660 ;
2661 return 0;
2662}
2663_ACEOF
2664rm -f conftest.$ac_objext
2665if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2666 (eval $ac_compile) 2>conftest.er1
2667 ac_status=$?
2668 grep -v '^ *+' conftest.er1 >conftest.err
2669 rm -f conftest.er1
2670 cat conftest.err >&5
2671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2672 (exit $ac_status); } &&
2673 { ac_try='test -z "$ac_c_werror_flag"
2674 || test ! -s conftest.err'
2675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2676 (eval $ac_try) 2>&5
2677 ac_status=$?
2678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2679 (exit $ac_status); }; } &&
2680 { ac_try='test -s conftest.$ac_objext'
2681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2682 (eval $ac_try) 2>&5
2683 ac_status=$?
2684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2685 (exit $ac_status); }; }; then
2686 break
2687else
2688 echo "$as_me: failed program was:" >&5
2689sed 's/^/| /' conftest.$ac_ext >&5
2690
2691fi
2692rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2693done
2694rm -f conftest*
2695if test -n "$ac_declaration"; then
2696 echo '#ifdef __cplusplus' >>confdefs.h
2697 echo $ac_declaration >>confdefs.h
2698 echo '#endif' >>confdefs.h
2699fi
2700
2701else
2702 echo "$as_me: failed program was:" >&5
2703sed 's/^/| /' conftest.$ac_ext >&5
2704
2705fi
2706rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2707ac_ext=c
2708ac_cpp='$CPP $CPPFLAGS'
2709ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2710ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2711ac_compiler_gnu=$ac_cv_c_compiler_gnu
2712
2713depcc="$CC" am_compiler_list=
2714
2715echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2716echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2717if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2718 echo $ECHO_N "(cached) $ECHO_C" >&6
2719else
2720 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2721 # We make a subdir and do the tests there. Otherwise we can end up
2722 # making bogus files that we don't know about and never remove. For
2723 # instance it was reported that on HP-UX the gcc test will end up
2724 # making a dummy file named `D' -- because `-MD' means `put the output
2725 # in D'.
2726 mkdir conftest.dir
2727 # Copy depcomp to subdir because otherwise we won't find it if we're
2728 # using a relative directory.
2729 cp "$am_depcomp" conftest.dir
2730 cd conftest.dir
2731 # We will build objects and dependencies in a subdirectory because
2732 # it helps to detect inapplicable dependency modes. For instance
2733 # both Tru64's cc and ICC support -MD to output dependencies as a
2734 # side effect of compilation, but ICC will put the dependencies in
2735 # the current directory while Tru64 will put them in the object
2736 # directory.
2737 mkdir sub
2738
2739 am_cv_CC_dependencies_compiler_type=none
2740 if test "$am_compiler_list" = ""; then
2741 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2742 fi
2743 for depmode in $am_compiler_list; do
2744 # Setup a source with many dependencies, because some compilers
2745 # like to wrap large dependency lists on column 80 (with \), and
2746 # we should not choose a depcomp mode which is confused by this.
2747 #
2748 # We need to recreate these files for each test, as the compiler may
2749 # overwrite some of them when testing with obscure command lines.
2750 # This happens at least with the AIX C compiler.
2751 : > sub/conftest.c
2752 for i in 1 2 3 4 5 6; do
2753 echo '#include "conftst'$i'.h"' >> sub/conftest.c
2754 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
2755 # Solaris 8's {/usr,}/bin/sh.
2756 touch sub/conftst$i.h
2757 done
2758 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
2759
2760 case $depmode in
2761 nosideeffect)
2762 # after this tag, mechanisms are not by side-effect, so they'll
2763 # only be used when explicitly requested
2764 if test "x$enable_dependency_tracking" = xyes; then
2765 continue
2766 else
2767 break
2768 fi
2769 ;;
2770 none) break ;;
2771 esac
2772 # We check with `-c' and `-o' for the sake of the "dashmstdout"
2773 # mode. It turns out that the SunPro C++ compiler does not properly
2774 # handle `-M -o', and we need to detect this.
2775 if depmode=$depmode \
2776 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
2777 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
2778 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
2779 >/dev/null 2>conftest.err &&
2780 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
2781 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
2782 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2783 # icc doesn't choke on unknown options, it will just issue warnings
2784 # or remarks (even with -Werror). So we grep stderr for any message
2785 # that says an option was ignored or not supported.
2786 # When given -MP, icc 7.0 and 7.1 complain thusly:
2787 # icc: Command line warning: ignoring option '-M'; no argument required
2788 # The diagnosis changed in icc 8.0:
2789 # icc: Command line remark: option '-MP' not supported
2790 if (grep 'ignoring option' conftest.err ||
2791 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
2792 am_cv_CC_dependencies_compiler_type=$depmode
2793 break
2794 fi
2795 fi
2796 done
2797
2798 cd ..
2799 rm -rf conftest.dir
2800else
2801 am_cv_CC_dependencies_compiler_type=none
2802fi
2803
2804fi
2805echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
2806echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
2807CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
2808
2809
2810
2811if
2812 test "x$enable_dependency_tracking" != xno \
2813 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
2814 am__fastdepCC_TRUE=
2815 am__fastdepCC_FALSE='#'
2816else
2817 am__fastdepCC_TRUE='#'
2818 am__fastdepCC_FALSE=
2819fi
2820
2821
2822
2823
2824echo "$as_me:$LINENO: checking for main in -lcrypt" >&5
2825echo $ECHO_N "checking for main in -lcrypt... $ECHO_C" >&6
2826if test "${ac_cv_lib_crypt_main+set}" = set; then
2827 echo $ECHO_N "(cached) $ECHO_C" >&6
2828else
2829 ac_check_lib_save_LIBS=$LIBS
2830LIBS="-lcrypt $LIBS"
2831cat >conftest.$ac_ext <<_ACEOF
2832/* confdefs.h. */
2833_ACEOF
2834cat confdefs.h >>conftest.$ac_ext
2835cat >>conftest.$ac_ext <<_ACEOF
2836/* end confdefs.h. */
2837
2838
2839int
2840main ()
2841{
2842main ();
2843 ;
2844 return 0;
2845}
2846_ACEOF
2847rm -f conftest.$ac_objext conftest$ac_exeext
2848if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2849 (eval $ac_link) 2>conftest.er1
2850 ac_status=$?
2851 grep -v '^ *+' conftest.er1 >conftest.err
2852 rm -f conftest.er1
2853 cat conftest.err >&5
2854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2855 (exit $ac_status); } &&
2856 { ac_try='test -z "$ac_c_werror_flag"
2857 || test ! -s conftest.err'
2858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2859 (eval $ac_try) 2>&5
2860 ac_status=$?
2861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2862 (exit $ac_status); }; } &&
2863 { ac_try='test -s conftest$ac_exeext'
2864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2865 (eval $ac_try) 2>&5
2866 ac_status=$?
2867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2868 (exit $ac_status); }; }; then
2869 ac_cv_lib_crypt_main=yes
2870else
2871 echo "$as_me: failed program was:" >&5
2872sed 's/^/| /' conftest.$ac_ext >&5
2873
2874ac_cv_lib_crypt_main=no
2875fi
2876rm -f conftest.err conftest.$ac_objext \
2877 conftest$ac_exeext conftest.$ac_ext
2878LIBS=$ac_check_lib_save_LIBS
2879fi
2880echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_main" >&5
2881echo "${ECHO_T}$ac_cv_lib_crypt_main" >&6
2882if test $ac_cv_lib_crypt_main = yes; then
2883 cat >>confdefs.h <<_ACEOF
2884#define HAVE_LIBCRYPT 1
2885_ACEOF
2886
2887 LIBS="-lcrypt $LIBS"
2888
2889fi
2890ac_cv_lib_crypt=ac_cv_lib_crypt_main
2891
2892
2893# This package requires C++ compilation and library creation
2894ac_ext=cc
2895ac_cpp='$CXXCPP $CPPFLAGS'
2896ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2897ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2898ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2899if test -n "$ac_tool_prefix"; then
2900 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2901 do
2902 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2903set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2904echo "$as_me:$LINENO: checking for $ac_word" >&5
2905echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2906if test "${ac_cv_prog_CXX+set}" = set; then
2907 echo $ECHO_N "(cached) $ECHO_C" >&6
2908else
2909 if test -n "$CXX"; then
2910 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2911else
2912as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2913for as_dir in $PATH
2914do
2915 IFS=$as_save_IFS
2916 test -z "$as_dir" && as_dir=.
2917 for ac_exec_ext in '' $ac_executable_extensions; do
2918 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2919 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2920 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2921 break 2
2922 fi
2923done
2924done
2925
2926fi
2927fi
2928CXX=$ac_cv_prog_CXX
2929if test -n "$CXX"; then
2930 echo "$as_me:$LINENO: result: $CXX" >&5
2931echo "${ECHO_T}$CXX" >&6
2932else
2933 echo "$as_me:$LINENO: result: no" >&5
2934echo "${ECHO_T}no" >&6
2935fi
2936
2937 test -n "$CXX" && break
2938 done
2939fi
2940if test -z "$CXX"; then
2941 ac_ct_CXX=$CXX
2942 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2943do
2944 # Extract the first word of "$ac_prog", so it can be a program name with args.
2945set dummy $ac_prog; ac_word=$2
2946echo "$as_me:$LINENO: checking for $ac_word" >&5
2947echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2948if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2949 echo $ECHO_N "(cached) $ECHO_C" >&6
2950else
2951 if test -n "$ac_ct_CXX"; then
2952 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2953else
2954as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2955for as_dir in $PATH
2956do
2957 IFS=$as_save_IFS
2958 test -z "$as_dir" && as_dir=.
2959 for ac_exec_ext in '' $ac_executable_extensions; do
2960 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2961 ac_cv_prog_ac_ct_CXX="$ac_prog"
2962 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2963 break 2
2964 fi
2965done
2966done
2967
2968fi
2969fi
2970ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2971if test -n "$ac_ct_CXX"; then
2972 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2973echo "${ECHO_T}$ac_ct_CXX" >&6
2974else
2975 echo "$as_me:$LINENO: result: no" >&5
2976echo "${ECHO_T}no" >&6
2977fi
2978
2979 test -n "$ac_ct_CXX" && break
2980done
2981test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2982
2983 CXX=$ac_ct_CXX
2984fi
2985
2986
2987# Provide some information about the compiler.
2988echo "$as_me:$LINENO:" \
2989 "checking for C++ compiler version" >&5
2990ac_compiler=`set X $ac_compile; echo $2`
2991{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2992 (eval $ac_compiler --version </dev/null >&5) 2>&5
2993 ac_status=$?
2994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2995 (exit $ac_status); }
2996{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2997 (eval $ac_compiler -v </dev/null >&5) 2>&5
2998 ac_status=$?
2999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3000 (exit $ac_status); }
3001{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3002 (eval $ac_compiler -V </dev/null >&5) 2>&5
3003 ac_status=$?
3004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3005 (exit $ac_status); }
3006
3007echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3008echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
3009if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3010 echo $ECHO_N "(cached) $ECHO_C" >&6
3011else
3012 cat >conftest.$ac_ext <<_ACEOF
3013/* confdefs.h. */
3014_ACEOF
3015cat confdefs.h >>conftest.$ac_ext
3016cat >>conftest.$ac_ext <<_ACEOF
3017/* end confdefs.h. */
3018
3019int
3020main ()
3021{
3022#ifndef __GNUC__
3023 choke me
3024#endif
3025
3026 ;
3027 return 0;
3028}
3029_ACEOF
3030rm -f conftest.$ac_objext
3031if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3032 (eval $ac_compile) 2>conftest.er1
3033 ac_status=$?
3034 grep -v '^ *+' conftest.er1 >conftest.err
3035 rm -f conftest.er1
3036 cat conftest.err >&5
3037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3038 (exit $ac_status); } &&
3039 { ac_try='test -z "$ac_cxx_werror_flag"
3040 || test ! -s conftest.err'
3041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3042 (eval $ac_try) 2>&5
3043 ac_status=$?
3044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3045 (exit $ac_status); }; } &&
3046 { ac_try='test -s conftest.$ac_objext'
3047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3048 (eval $ac_try) 2>&5
3049 ac_status=$?
3050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3051 (exit $ac_status); }; }; then
3052 ac_compiler_gnu=yes
3053else
3054 echo "$as_me: failed program was:" >&5
3055sed 's/^/| /' conftest.$ac_ext >&5
3056
3057ac_compiler_gnu=no
3058fi
3059rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3060ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3061
3062fi
3063echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3064echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
3065GXX=`test $ac_compiler_gnu = yes && echo yes`
3066ac_test_CXXFLAGS=${CXXFLAGS+set}
3067ac_save_CXXFLAGS=$CXXFLAGS
3068CXXFLAGS="-g"
3069echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3070echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
3071if test "${ac_cv_prog_cxx_g+set}" = set; then
3072 echo $ECHO_N "(cached) $ECHO_C" >&6
3073else
3074 cat >conftest.$ac_ext <<_ACEOF
3075/* confdefs.h. */
3076_ACEOF
3077cat confdefs.h >>conftest.$ac_ext
3078cat >>conftest.$ac_ext <<_ACEOF
3079/* end confdefs.h. */
3080
3081int
3082main ()
3083{
3084
3085 ;
3086 return 0;
3087}
3088_ACEOF
3089rm -f conftest.$ac_objext
3090if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3091 (eval $ac_compile) 2>conftest.er1
3092 ac_status=$?
3093 grep -v '^ *+' conftest.er1 >conftest.err
3094 rm -f conftest.er1
3095 cat conftest.err >&5
3096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3097 (exit $ac_status); } &&
3098 { ac_try='test -z "$ac_cxx_werror_flag"
3099 || test ! -s conftest.err'
3100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3101 (eval $ac_try) 2>&5
3102 ac_status=$?
3103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3104 (exit $ac_status); }; } &&
3105 { ac_try='test -s conftest.$ac_objext'
3106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3107 (eval $ac_try) 2>&5
3108 ac_status=$?
3109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3110 (exit $ac_status); }; }; then
3111 ac_cv_prog_cxx_g=yes
3112else
3113 echo "$as_me: failed program was:" >&5
3114sed 's/^/| /' conftest.$ac_ext >&5
3115
3116ac_cv_prog_cxx_g=no
3117fi
3118rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3119fi
3120echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3121echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
3122if test "$ac_test_CXXFLAGS" = set; then
3123 CXXFLAGS=$ac_save_CXXFLAGS
3124elif test $ac_cv_prog_cxx_g = yes; then
3125 if test "$GXX" = yes; then
3126 CXXFLAGS="-g -O2"
3127 else
3128 CXXFLAGS="-g"
3129 fi
3130else
3131 if test "$GXX" = yes; then
3132 CXXFLAGS="-O2"
3133 else
3134 CXXFLAGS=
3135 fi
3136fi
3137for ac_declaration in \
3138 '' \
3139 'extern "C" void std::exit (int) throw (); using std::exit;' \
3140 'extern "C" void std::exit (int); using std::exit;' \
3141 'extern "C" void exit (int) throw ();' \
3142 'extern "C" void exit (int);' \
3143 'void exit (int);'
3144do
3145 cat >conftest.$ac_ext <<_ACEOF
3146/* confdefs.h. */
3147_ACEOF
3148cat confdefs.h >>conftest.$ac_ext
3149cat >>conftest.$ac_ext <<_ACEOF
3150/* end confdefs.h. */
3151$ac_declaration
3152#include <stdlib.h>
3153int
3154main ()
3155{
3156exit (42);
3157 ;
3158 return 0;
3159}
3160_ACEOF
3161rm -f conftest.$ac_objext
3162if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3163 (eval $ac_compile) 2>conftest.er1
3164 ac_status=$?
3165 grep -v '^ *+' conftest.er1 >conftest.err
3166 rm -f conftest.er1
3167 cat conftest.err >&5
3168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3169 (exit $ac_status); } &&
3170 { ac_try='test -z "$ac_cxx_werror_flag"
3171 || test ! -s conftest.err'
3172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3173 (eval $ac_try) 2>&5
3174 ac_status=$?
3175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3176 (exit $ac_status); }; } &&
3177 { ac_try='test -s conftest.$ac_objext'
3178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3179 (eval $ac_try) 2>&5
3180 ac_status=$?
3181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3182 (exit $ac_status); }; }; then
3183 :
3184else
3185 echo "$as_me: failed program was:" >&5
3186sed 's/^/| /' conftest.$ac_ext >&5
3187
3188continue
3189fi
3190rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3191 cat >conftest.$ac_ext <<_ACEOF
3192/* confdefs.h. */
3193_ACEOF
3194cat confdefs.h >>conftest.$ac_ext
3195cat >>conftest.$ac_ext <<_ACEOF
3196/* end confdefs.h. */
3197$ac_declaration
3198int
3199main ()
3200{
3201exit (42);
3202 ;
3203 return 0;
3204}
3205_ACEOF
3206rm -f conftest.$ac_objext
3207if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3208 (eval $ac_compile) 2>conftest.er1
3209 ac_status=$?
3210 grep -v '^ *+' conftest.er1 >conftest.err
3211 rm -f conftest.er1
3212 cat conftest.err >&5
3213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3214 (exit $ac_status); } &&
3215 { ac_try='test -z "$ac_cxx_werror_flag"
3216 || test ! -s conftest.err'
3217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3218 (eval $ac_try) 2>&5
3219 ac_status=$?
3220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3221 (exit $ac_status); }; } &&
3222 { ac_try='test -s conftest.$ac_objext'
3223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3224 (eval $ac_try) 2>&5
3225 ac_status=$?
3226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3227 (exit $ac_status); }; }; then
3228 break
3229else
3230 echo "$as_me: failed program was:" >&5
3231sed 's/^/| /' conftest.$ac_ext >&5
3232
3233fi
3234rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3235done
3236rm -f conftest*
3237if test -n "$ac_declaration"; then
3238 echo '#ifdef __cplusplus' >>confdefs.h
3239 echo $ac_declaration >>confdefs.h
3240 echo '#endif' >>confdefs.h
3241fi
3242
3243ac_ext=c
3244ac_cpp='$CPP $CPPFLAGS'
3245ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3246ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3247ac_compiler_gnu=$ac_cv_c_compiler_gnu
3248
3249depcc="$CXX" am_compiler_list=
3250
3251echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3252echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3253if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
3254 echo $ECHO_N "(cached) $ECHO_C" >&6
3255else
3256 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3257 # We make a subdir and do the tests there. Otherwise we can end up
3258 # making bogus files that we don't know about and never remove. For
3259 # instance it was reported that on HP-UX the gcc test will end up
3260 # making a dummy file named `D' -- because `-MD' means `put the output
3261 # in D'.
3262 mkdir conftest.dir
3263 # Copy depcomp to subdir because otherwise we won't find it if we're
3264 # using a relative directory.
3265 cp "$am_depcomp" conftest.dir
3266 cd conftest.dir
3267 # We will build objects and dependencies in a subdirectory because
3268 # it helps to detect inapplicable dependency modes. For instance
3269 # both Tru64's cc and ICC support -MD to output dependencies as a
3270 # side effect of compilation, but ICC will put the dependencies in
3271 # the current directory while Tru64 will put them in the object
3272 # directory.
3273 mkdir sub
3274
3275 am_cv_CXX_dependencies_compiler_type=none
3276 if test "$am_compiler_list" = ""; then
3277 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3278 fi
3279 for depmode in $am_compiler_list; do
3280 # Setup a source with many dependencies, because some compilers
3281 # like to wrap large dependency lists on column 80 (with \), and
3282 # we should not choose a depcomp mode which is confused by this.
3283 #
3284 # We need to recreate these files for each test, as the compiler may
3285 # overwrite some of them when testing with obscure command lines.
3286 # This happens at least with the AIX C compiler.
3287 : > sub/conftest.c
3288 for i in 1 2 3 4 5 6; do
3289 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3290 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3291 # Solaris 8's {/usr,}/bin/sh.
3292 touch sub/conftst$i.h
3293 done
3294 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3295
3296 case $depmode in
3297 nosideeffect)
3298 # after this tag, mechanisms are not by side-effect, so they'll
3299 # only be used when explicitly requested
3300 if test "x$enable_dependency_tracking" = xyes; then
3301 continue
3302 else
3303 break
3304 fi
3305 ;;
3306 none) break ;;
3307 esac
3308 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3309 # mode. It turns out that the SunPro C++ compiler does not properly
3310 # handle `-M -o', and we need to detect this.
3311 if depmode=$depmode \
3312 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3313 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3314 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3315 >/dev/null 2>conftest.err &&
3316 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3317 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3318 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3319 # icc doesn't choke on unknown options, it will just issue warnings
3320 # or remarks (even with -Werror). So we grep stderr for any message
3321 # that says an option was ignored or not supported.
3322 # When given -MP, icc 7.0 and 7.1 complain thusly:
3323 # icc: Command line warning: ignoring option '-M'; no argument required
3324 # The diagnosis changed in icc 8.0:
3325 # icc: Command line remark: option '-MP' not supported
3326 if (grep 'ignoring option' conftest.err ||
3327 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3328 am_cv_CXX_dependencies_compiler_type=$depmode
3329 break
3330 fi
3331 fi
3332 done
3333
3334 cd ..
3335 rm -rf conftest.dir
3336else
3337 am_cv_CXX_dependencies_compiler_type=none
3338fi
3339
3340fi
3341echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
3342echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
3343CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
3344
3345
3346
3347if
3348 test "x$enable_dependency_tracking" != xno \
3349 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
3350 am__fastdepCXX_TRUE=
3351 am__fastdepCXX_FALSE='#'
3352else
3353 am__fastdepCXX_TRUE='#'
3354 am__fastdepCXX_FALSE=
3355fi
3356
3357
3358# Find a good install program. We prefer a C program (faster),
3359# so one script is as good as another. But avoid the broken or
3360# incompatible versions:
3361# SysV /etc/install, /usr/sbin/install
3362# SunOS /usr/etc/install
3363# IRIX /sbin/install
3364# AIX /bin/install
3365# AmigaOS /C/install, which installs bootblocks on floppy discs
3366# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3367# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3368# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3369# OS/2's system install, which has a completely different semantic
3370# ./install, which can be erroneously created by make from ./install.sh.
3371echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3372echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3373if test -z "$INSTALL"; then
3374if test "${ac_cv_path_install+set}" = set; then
3375 echo $ECHO_N "(cached) $ECHO_C" >&6
3376else
3377 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3378for as_dir in $PATH
3379do
3380 IFS=$as_save_IFS
3381 test -z "$as_dir" && as_dir=.
3382 # Account for people who put trailing slashes in PATH elements.
3383case $as_dir/ in
3384 ./ | .// | /cC/* | \
3385 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3386 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3387 /usr/ucb/* ) ;;
3388 *)
3389 # OSF1 and SCO ODT 3.0 have their own names for install.
3390 # Don't use installbsd from OSF since it installs stuff as root
3391 # by default.
3392 for ac_prog in ginstall scoinst install; do
3393 for ac_exec_ext in '' $ac_executable_extensions; do
3394 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3395 if test $ac_prog = install &&
3396 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3397 # AIX install. It has an incompatible calling convention.
3398 :
3399 elif test $ac_prog = install &&
3400 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3401 # program-specific install script used by HP pwplus--don't use.
3402 :
3403 else
3404 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3405 break 3
3406 fi
3407 fi
3408 done
3409 done
3410 ;;
3411esac
3412done
3413
3414
3415fi
3416 if test "${ac_cv_path_install+set}" = set; then
3417 INSTALL=$ac_cv_path_install
3418 else
3419 # As a last resort, use the slow shell script. We don't cache a
3420 # path for INSTALL within a source directory, because that will
3421 # break other packages using the cache if that directory is
3422 # removed, or if the path is relative.
3423 INSTALL=$ac_install_sh
3424 fi
3425fi
3426echo "$as_me:$LINENO: result: $INSTALL" >&5
3427echo "${ECHO_T}$INSTALL" >&6
3428
3429# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3430# It thinks the first close brace ends the variable substitution.
3431test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3432
3433test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3434
3435test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3436
3437if test -n "$ac_tool_prefix"; then
3438 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3439set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3440echo "$as_me:$LINENO: checking for $ac_word" >&5
3441echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3442if test "${ac_cv_prog_RANLIB+set}" = set; then
3443 echo $ECHO_N "(cached) $ECHO_C" >&6
3444else
3445 if test -n "$RANLIB"; then
3446 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3447else
3448as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3449for as_dir in $PATH
3450do
3451 IFS=$as_save_IFS
3452 test -z "$as_dir" && as_dir=.
3453 for ac_exec_ext in '' $ac_executable_extensions; do
3454 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3455 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3456 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3457 break 2
3458 fi
3459done
3460done
3461
3462fi
3463fi
3464RANLIB=$ac_cv_prog_RANLIB
3465if test -n "$RANLIB"; then
3466 echo "$as_me:$LINENO: result: $RANLIB" >&5
3467echo "${ECHO_T}$RANLIB" >&6
3468else
3469 echo "$as_me:$LINENO: result: no" >&5
3470echo "${ECHO_T}no" >&6
3471fi
3472
3473fi
3474if test -z "$ac_cv_prog_RANLIB"; then
3475 ac_ct_RANLIB=$RANLIB
3476 # Extract the first word of "ranlib", so it can be a program name with args.
3477set dummy ranlib; ac_word=$2
3478echo "$as_me:$LINENO: checking for $ac_word" >&5
3479echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3480if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3481 echo $ECHO_N "(cached) $ECHO_C" >&6
3482else
3483 if test -n "$ac_ct_RANLIB"; then
3484 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3485else
3486as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3487for as_dir in $PATH
3488do
3489 IFS=$as_save_IFS
3490 test -z "$as_dir" && as_dir=.
3491 for ac_exec_ext in '' $ac_executable_extensions; do
3492 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3493 ac_cv_prog_ac_ct_RANLIB="ranlib"
3494 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3495 break 2
3496 fi
3497done
3498done
3499
3500 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3501fi
3502fi
3503ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3504if test -n "$ac_ct_RANLIB"; then
3505 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3506echo "${ECHO_T}$ac_ct_RANLIB" >&6
3507else
3508 echo "$as_me:$LINENO: result: no" >&5
3509echo "${ECHO_T}no" >&6
3510fi
3511
3512 RANLIB=$ac_ct_RANLIB
3513else
3514 RANLIB="$ac_cv_prog_RANLIB"
3515fi
3516
3517
3518# Check for 64-bit machines
3519# Make sure we can run config.sub.
3520$ac_config_sub sun4 >/dev/null 2>&1 ||
3521 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
3522echo "$as_me: error: cannot run $ac_config_sub" >&2;}
3523 { (exit 1); exit 1; }; }
3524
3525echo "$as_me:$LINENO: checking build system type" >&5
3526echo $ECHO_N "checking build system type... $ECHO_C" >&6
3527if test "${ac_cv_build+set}" = set; then
3528 echo $ECHO_N "(cached) $ECHO_C" >&6
3529else
3530 ac_cv_build_alias=$build_alias
3531test -z "$ac_cv_build_alias" &&
3532 ac_cv_build_alias=`$ac_config_guess`
3533test -z "$ac_cv_build_alias" &&
3534 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3535echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3536 { (exit 1); exit 1; }; }
3537ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
3538 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
3539echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
3540 { (exit 1); exit 1; }; }
3541
3542fi
3543echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3544echo "${ECHO_T}$ac_cv_build" >&6
3545build=$ac_cv_build
3546build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3547build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3548build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3549
3550
3551echo "$as_me:$LINENO: checking host system type" >&5
3552echo $ECHO_N "checking host system type... $ECHO_C" >&6
3553if test "${ac_cv_host+set}" = set; then
3554 echo $ECHO_N "(cached) $ECHO_C" >&6
3555else
3556 ac_cv_host_alias=$host_alias
3557test -z "$ac_cv_host_alias" &&
3558 ac_cv_host_alias=$ac_cv_build_alias
3559ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
3560 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
3561echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
3562 { (exit 1); exit 1; }; }
3563
3564fi
3565echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3566echo "${ECHO_T}$ac_cv_host" >&6
3567host=$ac_cv_host
3568host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3569host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3570host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3571
3572
3573echo "$as_me:$LINENO: checking if architecture is 64-bit" >&5
3574echo $ECHO_N "checking if architecture is 64-bit... $ECHO_C" >&6
3575arch_64bit=no
3576case "$host_cpu" in
3577 x86_64) arch_64bit=yes ;;
3578esac
3579if test "$arch_64bit" = yes; then
3580 echo "$as_me:$LINENO: result: yes" >&5
3581echo "${ECHO_T}yes" >&6
3582 if test -z "$COMPAT32BITFLAGS" ; then
3583 COMPAT32BITFLAGS="-m32"
3584 fi
3585else
3586 echo "$as_me:$LINENO: result: no" >&5
3587echo "${ECHO_T}no" >&6
3588fi
3589
3590
3591# Option: Lucene support (enabled by default)
3592# Check whether --enable-lucene or --disable-lucene was given.
3593if test "${enable_lucene+set}" = set; then
3594 enableval="$enable_lucene"
3595
3596else
3597 enable_lucene=yes
3598fi;
3599if test "x$enable_lucene" != xno; then
3600
3601cat >>confdefs.h <<\_ACEOF
3602#define ENABLE_LUCENE 1
3603_ACEOF
3604
3605fi
3606
3607
3608if test "x$enable_lucene" != xno; then
3609 ENABLE_LUCENE_TRUE=
3610 ENABLE_LUCENE_FALSE='#'
3611else
3612 ENABLE_LUCENE_TRUE='#'
3613 ENABLE_LUCENE_FALSE=
3614fi
3615
3616
3617# Option: SQLite support (enabled by default)
3618# Check whether --enable-sqlite or --disable-sqlite was given.
3619if test "${enable_sqlite+set}" = set; then
3620 enableval="$enable_sqlite"
3621
3622else
3623 enable_sqlite=yes
3624fi;
3625if test "x$enable_sqlite" != xno; then
3626
3627cat >>confdefs.h <<\_ACEOF
3628#define USE_SQLITE 1
3629_ACEOF
3630
3631fi
3632
3633
3634if test "x$enable_sqlite" != xno; then
3635 USE_SQLITE_TRUE=
3636 USE_SQLITE_FALSE='#'
3637else
3638 USE_SQLITE_TRUE='#'
3639 USE_SQLITE_FALSE=
3640fi
3641
3642
3643# Generate the Makefiles for this package
3644 ac_config_files="$ac_config_files Makefile src/colservr/Makefile src/protocol/Makefile src/recpt/Makefile src/oaiservr/Makefile"
3645cat >confcache <<\_ACEOF
3646# This file is a shell script that caches the results of configure
3647# tests run on this system so they can be shared between configure
3648# scripts and configure runs, see configure's option --config-cache.
3649# It is not useful on other systems. If it contains results you don't
3650# want to keep, you may remove or edit it.
3651#
3652# config.status only pays attention to the cache file if you give it
3653# the --recheck option to rerun configure.
3654#
3655# `ac_cv_env_foo' variables (set or unset) will be overridden when
3656# loading this file, other *unset* `ac_cv_foo' will be assigned the
3657# following values.
3658
3659_ACEOF
3660
3661# The following way of writing the cache mishandles newlines in values,
3662# but we know of no workaround that is simple, portable, and efficient.
3663# So, don't put newlines in cache variables' values.
3664# Ultrix sh set writes to stderr and can't be redirected directly,
3665# and sets the high bit in the cache file unless we assign to the vars.
3666{
3667 (set) 2>&1 |
3668 case `(ac_space=' '; set | grep ac_space) 2>&1` in
3669 *ac_space=\ *)
3670 # `set' does not quote correctly, so add quotes (double-quote
3671 # substitution turns \\\\ into \\, and sed turns \\ into \).
3672 sed -n \
3673 "s/'/'\\\\''/g;
3674 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
3675 ;;
3676 *)
3677 # `set' quotes correctly as required by POSIX, so do not add quotes.
3678 sed -n \
3679 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
3680 ;;
3681 esac;
3682} |
3683 sed '
3684 t clear
3685 : clear
3686 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
3687 t end
3688 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
3689 : end' >>confcache
3690if diff $cache_file confcache >/dev/null 2>&1; then :; else
3691 if test -w $cache_file; then
3692 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
3693 cat confcache >$cache_file
3694 else
3695 echo "not updating unwritable cache $cache_file"
3696 fi
3697fi
3698rm -f confcache
3699
3700test "x$prefix" = xNONE && prefix=$ac_default_prefix
3701# Let make expand exec_prefix.
3702test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
3703
3704# VPATH may cause trouble with some makes, so we remove $(srcdir),
3705# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
3706# trailing colons and then remove the whole line if VPATH becomes empty
3707# (actually we leave an empty line to preserve line numbers).
3708if test "x$srcdir" = x.; then
3709 ac_vpsub='/^[ ]*VPATH[ ]*=/{
3710s/:*\$(srcdir):*/:/;
3711s/:*\${srcdir}:*/:/;
3712s/:*@srcdir@:*/:/;
3713s/^\([^=]*=[ ]*\):*/\1/;
3714s/:*$//;
3715s/^[^=]*=[ ]*$//;
3716}'
3717fi
3718
3719DEFS=-DHAVE_CONFIG_H
3720
3721ac_libobjs=
3722ac_ltlibobjs=
3723for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
3724 # 1. Remove the extension, and $U if already installed.
3725 ac_i=`echo "$ac_i" |
3726 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
3727 # 2. Add them.
3728 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
3729 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
3730done
3731LIBOBJS=$ac_libobjs
3732
3733LTLIBOBJS=$ac_ltlibobjs
3734
3735
3736if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
3737 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
3738Usually this means the macro was only invoked conditionally." >&5
3739echo "$as_me: error: conditional \"AMDEP\" was never defined.
3740Usually this means the macro was only invoked conditionally." >&2;}
3741 { (exit 1); exit 1; }; }
3742fi
3743if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
3744 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
3745Usually this means the macro was only invoked conditionally." >&5
3746echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
3747Usually this means the macro was only invoked conditionally." >&2;}
3748 { (exit 1); exit 1; }; }
3749fi
3750if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
3751 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
3752Usually this means the macro was only invoked conditionally." >&5
3753echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
3754Usually this means the macro was only invoked conditionally." >&2;}
3755 { (exit 1); exit 1; }; }
3756fi
3757if test -z "${ENABLE_LUCENE_TRUE}" && test -z "${ENABLE_LUCENE_FALSE}"; then
3758 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_LUCENE\" was never defined.
3759Usually this means the macro was only invoked conditionally." >&5
3760echo "$as_me: error: conditional \"ENABLE_LUCENE\" was never defined.
3761Usually this means the macro was only invoked conditionally." >&2;}
3762 { (exit 1); exit 1; }; }
3763fi
3764if test -z "${USE_SQLITE_TRUE}" && test -z "${USE_SQLITE_FALSE}"; then
3765 { { echo "$as_me:$LINENO: error: conditional \"USE_SQLITE\" was never defined.
3766Usually this means the macro was only invoked conditionally." >&5
3767echo "$as_me: error: conditional \"USE_SQLITE\" was never defined.
3768Usually this means the macro was only invoked conditionally." >&2;}
3769 { (exit 1); exit 1; }; }
3770fi
3771
3772: ${CONFIG_STATUS=./config.status}
3773ac_clean_files_save=$ac_clean_files
3774ac_clean_files="$ac_clean_files $CONFIG_STATUS"
3775{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
3776echo "$as_me: creating $CONFIG_STATUS" >&6;}
3777cat >$CONFIG_STATUS <<_ACEOF
3778#! $SHELL
3779# Generated by $as_me.
3780# Run this file to recreate the current configuration.
3781# Compiler output produced by configure, useful for debugging
3782# configure, is in config.log if it exists.
3783
3784debug=false
3785ac_cs_recheck=false
3786ac_cs_silent=false
3787SHELL=\${CONFIG_SHELL-$SHELL}
3788_ACEOF
3789
3790cat >>$CONFIG_STATUS <<\_ACEOF
3791## --------------------- ##
3792## M4sh Initialization. ##
3793## --------------------- ##
3794
3795# Be Bourne compatible
3796if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
3797 emulate sh
3798 NULLCMD=:
3799 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
3800 # is contrary to our usage. Disable this feature.
3801 alias -g '${1+"$@"}'='"$@"'
3802elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
3803 set -o posix
3804fi
3805DUALCASE=1; export DUALCASE # for MKS sh
3806
3807# Support unset when possible.
3808if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
3809 as_unset=unset
3810else
3811 as_unset=false
3812fi
3813
3814
3815# Work around bugs in pre-3.0 UWIN ksh.
3816$as_unset ENV MAIL MAILPATH
3817PS1='$ '
3818PS2='> '
3819PS4='+ '
3820
3821# NLS nuisances.
3822for as_var in \
3823 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
3824 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
3825 LC_TELEPHONE LC_TIME
3826do
3827 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
3828 eval $as_var=C; export $as_var
3829 else
3830 $as_unset $as_var
3831 fi
3832done
3833
3834# Required to use basename.
3835if expr a : '\(a\)' >/dev/null 2>&1; then
3836 as_expr=expr
3837else
3838 as_expr=false
3839fi
3840
3841if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
3842 as_basename=basename
3843else
3844 as_basename=false
3845fi
3846
3847
3848# Name of the executable.
3849as_me=`$as_basename "$0" ||
3850$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
3851 X"$0" : 'X\(//\)$' \| \
3852 X"$0" : 'X\(/\)$' \| \
3853 . : '\(.\)' 2>/dev/null ||
3854echo X/"$0" |
3855 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
3856 /^X\/\(\/\/\)$/{ s//\1/; q; }
3857 /^X\/\(\/\).*/{ s//\1/; q; }
3858 s/.*/./; q'`
3859
3860
3861# PATH needs CR, and LINENO needs CR and PATH.
3862# Avoid depending upon Character Ranges.
3863as_cr_letters='abcdefghijklmnopqrstuvwxyz'
3864as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
3865as_cr_Letters=$as_cr_letters$as_cr_LETTERS
3866as_cr_digits='0123456789'
3867as_cr_alnum=$as_cr_Letters$as_cr_digits
3868
3869# The user is always right.
3870if test "${PATH_SEPARATOR+set}" != set; then
3871 echo "#! /bin/sh" >conf$$.sh
3872 echo "exit 0" >>conf$$.sh
3873 chmod +x conf$$.sh
3874 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
3875 PATH_SEPARATOR=';'
3876 else
3877 PATH_SEPARATOR=:
3878 fi
3879 rm -f conf$$.sh
3880fi
3881
3882
3883 as_lineno_1=$LINENO
3884 as_lineno_2=$LINENO
3885 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
3886 test "x$as_lineno_1" != "x$as_lineno_2" &&
3887 test "x$as_lineno_3" = "x$as_lineno_2" || {
3888 # Find who we are. Look in the path if we contain no path at all
3889 # relative or not.
3890 case $0 in
3891 *[\\/]* ) as_myself=$0 ;;
3892 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3893for as_dir in $PATH
3894do
3895 IFS=$as_save_IFS
3896 test -z "$as_dir" && as_dir=.
3897 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
3898done
3899
3900 ;;
3901 esac
3902 # We did not find ourselves, most probably we were run as `sh COMMAND'
3903 # in which case we are not to be found in the path.
3904 if test "x$as_myself" = x; then
3905 as_myself=$0
3906 fi
3907 if test ! -f "$as_myself"; then
3908 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
3909echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
3910 { (exit 1); exit 1; }; }
3911 fi
3912 case $CONFIG_SHELL in
3913 '')
3914 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3915for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
3916do
3917 IFS=$as_save_IFS
3918 test -z "$as_dir" && as_dir=.
3919 for as_base in sh bash ksh sh5; do
3920 case $as_dir in
3921 /*)
3922 if ("$as_dir/$as_base" -c '
3923 as_lineno_1=$LINENO
3924 as_lineno_2=$LINENO
3925 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
3926 test "x$as_lineno_1" != "x$as_lineno_2" &&
3927 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
3928 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
3929 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
3930 CONFIG_SHELL=$as_dir/$as_base
3931 export CONFIG_SHELL
3932 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
3933 fi;;
3934 esac
3935 done
3936done
3937;;
3938 esac
3939
3940 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
3941 # uniformly replaced by the line number. The first 'sed' inserts a
3942 # line-number line before each line; the second 'sed' does the real
3943 # work. The second script uses 'N' to pair each line-number line
3944 # with the numbered line, and appends trailing '-' during
3945 # substitution so that $LINENO is not a special case at line end.
3946 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
3947 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
3948 sed '=' <$as_myself |
3949 sed '
3950 N
3951 s,$,-,
3952 : loop
3953 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
3954 t loop
3955 s,-$,,
3956 s,^['$as_cr_digits']*\n,,
3957 ' >$as_me.lineno &&
3958 chmod +x $as_me.lineno ||
3959 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
3960echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
3961 { (exit 1); exit 1; }; }
3962
3963 # Don't try to exec as it changes $[0], causing all sort of problems
3964 # (the dirname of $[0] is not the place where we might find the
3965 # original and so on. Autoconf is especially sensible to this).
3966 . ./$as_me.lineno
3967 # Exit status is that of the last command.
3968 exit
3969}
3970
3971
3972case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
3973 *c*,-n*) ECHO_N= ECHO_C='
3974' ECHO_T=' ' ;;
3975 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
3976 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
3977esac
3978
3979if expr a : '\(a\)' >/dev/null 2>&1; then
3980 as_expr=expr
3981else
3982 as_expr=false
3983fi
3984
3985rm -f conf$$ conf$$.exe conf$$.file
3986echo >conf$$.file
3987if ln -s conf$$.file conf$$ 2>/dev/null; then
3988 # We could just check for DJGPP; but this test a) works b) is more generic
3989 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
3990 if test -f conf$$.exe; then
3991 # Don't use ln at all; we don't have any links
3992 as_ln_s='cp -p'
3993 else
3994 as_ln_s='ln -s'
3995 fi
3996elif ln conf$$.file conf$$ 2>/dev/null; then
3997 as_ln_s=ln
3998else
3999 as_ln_s='cp -p'
4000fi
4001rm -f conf$$ conf$$.exe conf$$.file
4002
4003if mkdir -p . 2>/dev/null; then
4004 as_mkdir_p=:
4005else
4006 test -d ./-p && rmdir ./-p
4007 as_mkdir_p=false
4008fi
4009
4010as_executable_p="test -f"
4011
4012# Sed expression to map a string onto a valid CPP name.
4013as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
4014
4015# Sed expression to map a string onto a valid variable name.
4016as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
4017
4018
4019# IFS
4020# We need space, tab and new line, in precisely that order.
4021as_nl='
4022'
4023IFS=" $as_nl"
4024
4025# CDPATH.
4026$as_unset CDPATH
4027
4028exec 6>&1
4029
4030# Open the log real soon, to keep \$[0] and so on meaningful, and to
4031# report actual input values of CONFIG_FILES etc. instead of their
4032# values after options handling. Logging --version etc. is OK.
4033exec 5>>config.log
4034{
4035 echo
4036 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
4037## Running $as_me. ##
4038_ASBOX
4039} >&5
4040cat >&5 <<_CSEOF
4041
4042This file was extended by greenstone2-runtime-src $as_me 2.84, which was
4043generated by GNU Autoconf 2.59. Invocation command line was
4044
4045 CONFIG_FILES = $CONFIG_FILES
4046 CONFIG_HEADERS = $CONFIG_HEADERS
4047 CONFIG_LINKS = $CONFIG_LINKS
4048 CONFIG_COMMANDS = $CONFIG_COMMANDS
4049 $ $0 $@
4050
4051_CSEOF
4052echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
4053echo >&5
4054_ACEOF
4055
4056# Files that config.status was made for.
4057if test -n "$ac_config_files"; then
4058 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
4059fi
4060
4061if test -n "$ac_config_headers"; then
4062 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
4063fi
4064
4065if test -n "$ac_config_links"; then
4066 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
4067fi
4068
4069if test -n "$ac_config_commands"; then
4070 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
4071fi
4072
4073cat >>$CONFIG_STATUS <<\_ACEOF
4074
4075ac_cs_usage="\
4076\`$as_me' instantiates files from templates according to the
4077current configuration.
4078
4079Usage: $0 [OPTIONS] [FILE]...
4080
4081 -h, --help print this help, then exit
4082 -V, --version print version number, then exit
4083 -q, --quiet do not print progress messages
4084 -d, --debug don't remove temporary files
4085 --recheck update $as_me by reconfiguring in the same conditions
4086 --file=FILE[:TEMPLATE]
4087 instantiate the configuration file FILE
4088 --header=FILE[:TEMPLATE]
4089 instantiate the configuration header FILE
4090
4091Configuration files:
4092$config_files
4093
4094Configuration headers:
4095$config_headers
4096
4097Configuration commands:
4098$config_commands
4099
4100Report bugs to <[email protected]>."
4101_ACEOF
4102
4103cat >>$CONFIG_STATUS <<_ACEOF
4104ac_cs_version="\\
4105greenstone2-runtime-src config.status 2.84
4106configured by $0, generated by GNU Autoconf 2.59,
4107 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
4108
4109Copyright (C) 2003 Free Software Foundation, Inc.
4110This config.status script is free software; the Free Software Foundation
4111gives unlimited permission to copy, distribute and modify it."
4112srcdir=$srcdir
4113INSTALL="$INSTALL"
4114_ACEOF
4115
4116cat >>$CONFIG_STATUS <<\_ACEOF
4117# If no file are specified by the user, then we need to provide default
4118# value. By we need to know if files were specified by the user.
4119ac_need_defaults=:
4120while test $# != 0
4121do
4122 case $1 in
4123 --*=*)
4124 ac_option=`expr "x$1" : 'x\([^=]*\)='`
4125 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
4126 ac_shift=:
4127 ;;
4128 -*)
4129 ac_option=$1
4130 ac_optarg=$2
4131 ac_shift=shift
4132 ;;
4133 *) # This is not an option, so the user has probably given explicit
4134 # arguments.
4135 ac_option=$1
4136 ac_need_defaults=false;;
4137 esac
4138
4139 case $ac_option in
4140 # Handling of the options.
4141_ACEOF
4142cat >>$CONFIG_STATUS <<\_ACEOF
4143 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
4144 ac_cs_recheck=: ;;
4145 --version | --vers* | -V )
4146 echo "$ac_cs_version"; exit 0 ;;
4147 --he | --h)
4148 # Conflict between --help and --header
4149 { { echo "$as_me:$LINENO: error: ambiguous option: $1
4150Try \`$0 --help' for more information." >&5
4151echo "$as_me: error: ambiguous option: $1
4152Try \`$0 --help' for more information." >&2;}
4153 { (exit 1); exit 1; }; };;
4154 --help | --hel | -h )
4155 echo "$ac_cs_usage"; exit 0 ;;
4156 --debug | --d* | -d )
4157 debug=: ;;
4158 --file | --fil | --fi | --f )
4159 $ac_shift
4160 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
4161 ac_need_defaults=false;;
4162 --header | --heade | --head | --hea )
4163 $ac_shift
4164 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
4165 ac_need_defaults=false;;
4166 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
4167 | -silent | --silent | --silen | --sile | --sil | --si | --s)
4168 ac_cs_silent=: ;;
4169
4170 # This is an error.
4171 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
4172Try \`$0 --help' for more information." >&5
4173echo "$as_me: error: unrecognized option: $1
4174Try \`$0 --help' for more information." >&2;}
4175 { (exit 1); exit 1; }; } ;;
4176
4177 *) ac_config_targets="$ac_config_targets $1" ;;
4178
4179 esac
4180 shift
4181done
4182
4183ac_configure_extra_args=
4184
4185if $ac_cs_silent; then
4186 exec 6>/dev/null
4187 ac_configure_extra_args="$ac_configure_extra_args --silent"
4188fi
4189
4190_ACEOF
4191cat >>$CONFIG_STATUS <<_ACEOF
4192if \$ac_cs_recheck; then
4193 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
4194 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
4195fi
4196
4197_ACEOF
4198
4199cat >>$CONFIG_STATUS <<_ACEOF
4200#
4201# INIT-COMMANDS section.
4202#
4203
4204AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
4205
4206_ACEOF
4207
4208
4209
4210cat >>$CONFIG_STATUS <<\_ACEOF
4211for ac_config_target in $ac_config_targets
4212do
4213 case "$ac_config_target" in
4214 # Handling of arguments.
4215 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
4216 "src/colservr/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/colservr/Makefile" ;;
4217 "src/protocol/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/protocol/Makefile" ;;
4218 "src/recpt/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/recpt/Makefile" ;;
4219 "src/oaiservr/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/oaiservr/Makefile" ;;
4220 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
4221 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
4222 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
4223echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
4224 { (exit 1); exit 1; }; };;
4225 esac
4226done
4227
4228# If the user did not use the arguments to specify the items to instantiate,
4229# then the envvar interface is used. Set only those that are not.
4230# We use the long form for the default assignment because of an extremely
4231# bizarre bug on SunOS 4.1.3.
4232if $ac_need_defaults; then
4233 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
4234 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
4235 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
4236fi
4237
4238# Have a temporary directory for convenience. Make it in the build tree
4239# simply because there is no reason to put it here, and in addition,
4240# creating and moving files from /tmp can sometimes cause problems.
4241# Create a temporary directory, and hook for its removal unless debugging.
4242$debug ||
4243{
4244 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
4245 trap '{ (exit 1); exit 1; }' 1 2 13 15
4246}
4247
4248# Create a (secure) tmp directory for tmp files.
4249
4250{
4251 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
4252 test -n "$tmp" && test -d "$tmp"
4253} ||
4254{
4255 tmp=./confstat$$-$RANDOM
4256 (umask 077 && mkdir $tmp)
4257} ||
4258{
4259 echo "$me: cannot create a temporary directory in ." >&2
4260 { (exit 1); exit 1; }
4261}
4262
4263_ACEOF
4264
4265cat >>$CONFIG_STATUS <<_ACEOF
4266
4267#
4268# CONFIG_FILES section.
4269#
4270
4271# No need to generate the scripts if there are no CONFIG_FILES.
4272# This happens for instance when ./config.status config.h
4273if test -n "\$CONFIG_FILES"; then
4274 # Protect against being on the right side of a sed subst in config.status.
4275 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
4276 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
4277s,@SHELL@,$SHELL,;t t
4278s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
4279s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
4280s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
4281s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
4282s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
4283s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
4284s,@exec_prefix@,$exec_prefix,;t t
4285s,@prefix@,$prefix,;t t
4286s,@program_transform_name@,$program_transform_name,;t t
4287s,@bindir@,$bindir,;t t
4288s,@sbindir@,$sbindir,;t t
4289s,@libexecdir@,$libexecdir,;t t
4290s,@datadir@,$datadir,;t t
4291s,@sysconfdir@,$sysconfdir,;t t
4292s,@sharedstatedir@,$sharedstatedir,;t t
4293s,@localstatedir@,$localstatedir,;t t
4294s,@libdir@,$libdir,;t t
4295s,@includedir@,$includedir,;t t
4296s,@oldincludedir@,$oldincludedir,;t t
4297s,@infodir@,$infodir,;t t
4298s,@mandir@,$mandir,;t t
4299s,@build_alias@,$build_alias,;t t
4300s,@host_alias@,$host_alias,;t t
4301s,@target_alias@,$target_alias,;t t
4302s,@DEFS@,$DEFS,;t t
4303s,@ECHO_C@,$ECHO_C,;t t
4304s,@ECHO_N@,$ECHO_N,;t t
4305s,@ECHO_T@,$ECHO_T,;t t
4306s,@LIBS@,$LIBS,;t t
4307s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
4308s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
4309s,@INSTALL_DATA@,$INSTALL_DATA,;t t
4310s,@CYGPATH_W@,$CYGPATH_W,;t t
4311s,@PACKAGE@,$PACKAGE,;t t
4312s,@VERSION@,$VERSION,;t t
4313s,@ACLOCAL@,$ACLOCAL,;t t
4314s,@AUTOCONF@,$AUTOCONF,;t t
4315s,@AUTOMAKE@,$AUTOMAKE,;t t
4316s,@AUTOHEADER@,$AUTOHEADER,;t t
4317s,@MAKEINFO@,$MAKEINFO,;t t
4318s,@install_sh@,$install_sh,;t t
4319s,@STRIP@,$STRIP,;t t
4320s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
4321s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
4322s,@mkdir_p@,$mkdir_p,;t t
4323s,@AWK@,$AWK,;t t
4324s,@SET_MAKE@,$SET_MAKE,;t t
4325s,@am__leading_dot@,$am__leading_dot,;t t
4326s,@AMTAR@,$AMTAR,;t t
4327s,@am__tar@,$am__tar,;t t
4328s,@am__untar@,$am__untar,;t t
4329s,@CC@,$CC,;t t
4330s,@CFLAGS@,$CFLAGS,;t t
4331s,@LDFLAGS@,$LDFLAGS,;t t
4332s,@CPPFLAGS@,$CPPFLAGS,;t t
4333s,@ac_ct_CC@,$ac_ct_CC,;t t
4334s,@EXEEXT@,$EXEEXT,;t t
4335s,@OBJEXT@,$OBJEXT,;t t
4336s,@DEPDIR@,$DEPDIR,;t t
4337s,@am__include@,$am__include,;t t
4338s,@am__quote@,$am__quote,;t t
4339s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
4340s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
4341s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
4342s,@CCDEPMODE@,$CCDEPMODE,;t t
4343s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
4344s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
4345s,@CXX@,$CXX,;t t
4346s,@CXXFLAGS@,$CXXFLAGS,;t t
4347s,@ac_ct_CXX@,$ac_ct_CXX,;t t
4348s,@CXXDEPMODE@,$CXXDEPMODE,;t t
4349s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
4350s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
4351s,@RANLIB@,$RANLIB,;t t
4352s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
4353s,@build@,$build,;t t
4354s,@build_cpu@,$build_cpu,;t t
4355s,@build_vendor@,$build_vendor,;t t
4356s,@build_os@,$build_os,;t t
4357s,@host@,$host,;t t
4358s,@host_cpu@,$host_cpu,;t t
4359s,@host_vendor@,$host_vendor,;t t
4360s,@host_os@,$host_os,;t t
4361s,@COMPAT32BITFLAGS@,$COMPAT32BITFLAGS,;t t
4362s,@ENABLE_LUCENE_TRUE@,$ENABLE_LUCENE_TRUE,;t t
4363s,@ENABLE_LUCENE_FALSE@,$ENABLE_LUCENE_FALSE,;t t
4364s,@USE_SQLITE_TRUE@,$USE_SQLITE_TRUE,;t t
4365s,@USE_SQLITE_FALSE@,$USE_SQLITE_FALSE,;t t
4366s,@LIBOBJS@,$LIBOBJS,;t t
4367s,@LTLIBOBJS@,$LTLIBOBJS,;t t
4368CEOF
4369
4370_ACEOF
4371
4372 cat >>$CONFIG_STATUS <<\_ACEOF
4373 # Split the substitutions into bite-sized pieces for seds with
4374 # small command number limits, like on Digital OSF/1 and HP-UX.
4375 ac_max_sed_lines=48
4376 ac_sed_frag=1 # Number of current file.
4377 ac_beg=1 # First line for current file.
4378 ac_end=$ac_max_sed_lines # Line after last line for current file.
4379 ac_more_lines=:
4380 ac_sed_cmds=
4381 while $ac_more_lines; do
4382 if test $ac_beg -gt 1; then
4383 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
4384 else
4385 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
4386 fi
4387 if test ! -s $tmp/subs.frag; then
4388 ac_more_lines=false
4389 else
4390 # The purpose of the label and of the branching condition is to
4391 # speed up the sed processing (if there are no `@' at all, there
4392 # is no need to browse any of the substitutions).
4393 # These are the two extra sed commands mentioned above.
4394 (echo ':t
4395 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
4396 if test -z "$ac_sed_cmds"; then
4397 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
4398 else
4399 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
4400 fi
4401 ac_sed_frag=`expr $ac_sed_frag + 1`
4402 ac_beg=$ac_end
4403 ac_end=`expr $ac_end + $ac_max_sed_lines`
4404 fi
4405 done
4406 if test -z "$ac_sed_cmds"; then
4407 ac_sed_cmds=cat
4408 fi
4409fi # test -n "$CONFIG_FILES"
4410
4411_ACEOF
4412cat >>$CONFIG_STATUS <<\_ACEOF
4413for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
4414 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4415 case $ac_file in
4416 - | *:- | *:-:* ) # input from stdin
4417 cat >$tmp/stdin
4418 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
4419 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
4420 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
4421 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
4422 * ) ac_file_in=$ac_file.in ;;
4423 esac
4424
4425 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
4426 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
4427$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4428 X"$ac_file" : 'X\(//\)[^/]' \| \
4429 X"$ac_file" : 'X\(//\)$' \| \
4430 X"$ac_file" : 'X\(/\)' \| \
4431 . : '\(.\)' 2>/dev/null ||
4432echo X"$ac_file" |
4433 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
4434 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
4435 /^X\(\/\/\)$/{ s//\1/; q; }
4436 /^X\(\/\).*/{ s//\1/; q; }
4437 s/.*/./; q'`
4438 { if $as_mkdir_p; then
4439 mkdir -p "$ac_dir"
4440 else
4441 as_dir="$ac_dir"
4442 as_dirs=
4443 while test ! -d "$as_dir"; do
4444 as_dirs="$as_dir $as_dirs"
4445 as_dir=`(dirname "$as_dir") 2>/dev/null ||
4446$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4447 X"$as_dir" : 'X\(//\)[^/]' \| \
4448 X"$as_dir" : 'X\(//\)$' \| \
4449 X"$as_dir" : 'X\(/\)' \| \
4450 . : '\(.\)' 2>/dev/null ||
4451echo X"$as_dir" |
4452 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
4453 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
4454 /^X\(\/\/\)$/{ s//\1/; q; }
4455 /^X\(\/\).*/{ s//\1/; q; }
4456 s/.*/./; q'`
4457 done
4458 test ! -n "$as_dirs" || mkdir $as_dirs
4459 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
4460echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
4461 { (exit 1); exit 1; }; }; }
4462
4463 ac_builddir=.
4464
4465if test "$ac_dir" != .; then
4466 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
4467 # A "../" for each directory in $ac_dir_suffix.
4468 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
4469else
4470 ac_dir_suffix= ac_top_builddir=
4471fi
4472
4473case $srcdir in
4474 .) # No --srcdir option. We are building in place.
4475 ac_srcdir=.
4476 if test -z "$ac_top_builddir"; then
4477 ac_top_srcdir=.
4478 else
4479 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
4480 fi ;;
4481 [\\/]* | ?:[\\/]* ) # Absolute path.
4482 ac_srcdir=$srcdir$ac_dir_suffix;
4483 ac_top_srcdir=$srcdir ;;
4484 *) # Relative path.
4485 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
4486 ac_top_srcdir=$ac_top_builddir$srcdir ;;
4487esac
4488
4489# Do not use `cd foo && pwd` to compute absolute paths, because
4490# the directories may not exist.
4491case `pwd` in
4492.) ac_abs_builddir="$ac_dir";;
4493*)
4494 case "$ac_dir" in
4495 .) ac_abs_builddir=`pwd`;;
4496 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
4497 *) ac_abs_builddir=`pwd`/"$ac_dir";;
4498 esac;;
4499esac
4500case $ac_abs_builddir in
4501.) ac_abs_top_builddir=${ac_top_builddir}.;;
4502*)
4503 case ${ac_top_builddir}. in
4504 .) ac_abs_top_builddir=$ac_abs_builddir;;
4505 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
4506 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
4507 esac;;
4508esac
4509case $ac_abs_builddir in
4510.) ac_abs_srcdir=$ac_srcdir;;
4511*)
4512 case $ac_srcdir in
4513 .) ac_abs_srcdir=$ac_abs_builddir;;
4514 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
4515 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
4516 esac;;
4517esac
4518case $ac_abs_builddir in
4519.) ac_abs_top_srcdir=$ac_top_srcdir;;
4520*)
4521 case $ac_top_srcdir in
4522 .) ac_abs_top_srcdir=$ac_abs_builddir;;
4523 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
4524 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
4525 esac;;
4526esac
4527
4528
4529 case $INSTALL in
4530 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
4531 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
4532 esac
4533
4534 if test x"$ac_file" != x-; then
4535 { echo "$as_me:$LINENO: creating $ac_file" >&5
4536echo "$as_me: creating $ac_file" >&6;}
4537 rm -f "$ac_file"
4538 fi
4539 # Let's still pretend it is `configure' which instantiates (i.e., don't
4540 # use $as_me), people would be surprised to read:
4541 # /* config.h. Generated by config.status. */
4542 if test x"$ac_file" = x-; then
4543 configure_input=
4544 else
4545 configure_input="$ac_file. "
4546 fi
4547 configure_input=$configure_input"Generated from `echo $ac_file_in |
4548 sed 's,.*/,,'` by configure."
4549
4550 # First look for the input files in the build tree, otherwise in the
4551 # src tree.
4552 ac_file_inputs=`IFS=:
4553 for f in $ac_file_in; do
4554 case $f in
4555 -) echo $tmp/stdin ;;
4556 [\\/$]*)
4557 # Absolute (can't be DOS-style, as IFS=:)
4558 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
4559echo "$as_me: error: cannot find input file: $f" >&2;}
4560 { (exit 1); exit 1; }; }
4561 echo "$f";;
4562 *) # Relative
4563 if test -f "$f"; then
4564 # Build tree
4565 echo "$f"
4566 elif test -f "$srcdir/$f"; then
4567 # Source tree
4568 echo "$srcdir/$f"
4569 else
4570 # /dev/null tree
4571 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
4572echo "$as_me: error: cannot find input file: $f" >&2;}
4573 { (exit 1); exit 1; }; }
4574 fi;;
4575 esac
4576 done` || { (exit 1); exit 1; }
4577_ACEOF
4578cat >>$CONFIG_STATUS <<_ACEOF
4579 sed "$ac_vpsub
4580$extrasub
4581_ACEOF
4582cat >>$CONFIG_STATUS <<\_ACEOF
4583:t
4584/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
4585s,@configure_input@,$configure_input,;t t
4586s,@srcdir@,$ac_srcdir,;t t
4587s,@abs_srcdir@,$ac_abs_srcdir,;t t
4588s,@top_srcdir@,$ac_top_srcdir,;t t
4589s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
4590s,@builddir@,$ac_builddir,;t t
4591s,@abs_builddir@,$ac_abs_builddir,;t t
4592s,@top_builddir@,$ac_top_builddir,;t t
4593s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
4594s,@INSTALL@,$ac_INSTALL,;t t
4595" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
4596 rm -f $tmp/stdin
4597 if test x"$ac_file" != x-; then
4598 mv $tmp/out $ac_file
4599 else
4600 cat $tmp/out
4601 rm -f $tmp/out
4602 fi
4603
4604done
4605_ACEOF
4606cat >>$CONFIG_STATUS <<\_ACEOF
4607
4608#
4609# CONFIG_HEADER section.
4610#
4611
4612# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
4613# NAME is the cpp macro being defined and VALUE is the value it is being given.
4614#
4615# ac_d sets the value in "#define NAME VALUE" lines.
4616ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
4617ac_dB='[ ].*$,\1#\2'
4618ac_dC=' '
4619ac_dD=',;t'
4620# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
4621ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
4622ac_uB='$,\1#\2define\3'
4623ac_uC=' '
4624ac_uD=',;t'
4625
4626for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
4627 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4628 case $ac_file in
4629 - | *:- | *:-:* ) # input from stdin
4630 cat >$tmp/stdin
4631 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
4632 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
4633 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
4634 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
4635 * ) ac_file_in=$ac_file.in ;;
4636 esac
4637
4638 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
4639echo "$as_me: creating $ac_file" >&6;}
4640
4641 # First look for the input files in the build tree, otherwise in the
4642 # src tree.
4643 ac_file_inputs=`IFS=:
4644 for f in $ac_file_in; do
4645 case $f in
4646 -) echo $tmp/stdin ;;
4647 [\\/$]*)
4648 # Absolute (can't be DOS-style, as IFS=:)
4649 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
4650echo "$as_me: error: cannot find input file: $f" >&2;}
4651 { (exit 1); exit 1; }; }
4652 # Do quote $f, to prevent DOS paths from being IFS'd.
4653 echo "$f";;
4654 *) # Relative
4655 if test -f "$f"; then
4656 # Build tree
4657 echo "$f"
4658 elif test -f "$srcdir/$f"; then
4659 # Source tree
4660 echo "$srcdir/$f"
4661 else
4662 # /dev/null tree
4663 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
4664echo "$as_me: error: cannot find input file: $f" >&2;}
4665 { (exit 1); exit 1; }; }
4666 fi;;
4667 esac
4668 done` || { (exit 1); exit 1; }
4669 # Remove the trailing spaces.
4670 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
4671
4672_ACEOF
4673
4674# Transform confdefs.h into two sed scripts, `conftest.defines' and
4675# `conftest.undefs', that substitutes the proper values into
4676# config.h.in to produce config.h. The first handles `#define'
4677# templates, and the second `#undef' templates.
4678# And first: Protect against being on the right side of a sed subst in
4679# config.status. Protect against being in an unquoted here document
4680# in config.status.
4681rm -f conftest.defines conftest.undefs
4682# Using a here document instead of a string reduces the quoting nightmare.
4683# Putting comments in sed scripts is not portable.
4684#
4685# `end' is used to avoid that the second main sed command (meant for
4686# 0-ary CPP macros) applies to n-ary macro definitions.
4687# See the Autoconf documentation for `clear'.
4688cat >confdef2sed.sed <<\_ACEOF
4689s/[\\&,]/\\&/g
4690s,[\\$`],\\&,g
4691t clear
4692: clear
4693s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
4694t end
4695s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
4696: end
4697_ACEOF
4698# If some macros were called several times there might be several times
4699# the same #defines, which is useless. Nevertheless, we may not want to
4700# sort them, since we want the *last* AC-DEFINE to be honored.
4701uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
4702sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
4703rm -f confdef2sed.sed
4704
4705# This sed command replaces #undef with comments. This is necessary, for
4706# example, in the case of _POSIX_SOURCE, which is predefined and required
4707# on some systems where configure will not decide to define it.
4708cat >>conftest.undefs <<\_ACEOF
4709s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
4710_ACEOF
4711
4712# Break up conftest.defines because some shells have a limit on the size
4713# of here documents, and old seds have small limits too (100 cmds).
4714echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
4715echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
4716echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
4717echo ' :' >>$CONFIG_STATUS
4718rm -f conftest.tail
4719while grep . conftest.defines >/dev/null
4720do
4721 # Write a limited-size here document to $tmp/defines.sed.
4722 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
4723 # Speed up: don't consider the non `#define' lines.
4724 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
4725 # Work around the forget-to-reset-the-flag bug.
4726 echo 't clr' >>$CONFIG_STATUS
4727 echo ': clr' >>$CONFIG_STATUS
4728 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
4729 echo 'CEOF
4730 sed -f $tmp/defines.sed $tmp/in >$tmp/out
4731 rm -f $tmp/in
4732 mv $tmp/out $tmp/in
4733' >>$CONFIG_STATUS
4734 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
4735 rm -f conftest.defines
4736 mv conftest.tail conftest.defines
4737done
4738rm -f conftest.defines
4739echo ' fi # grep' >>$CONFIG_STATUS
4740echo >>$CONFIG_STATUS
4741
4742# Break up conftest.undefs because some shells have a limit on the size
4743# of here documents, and old seds have small limits too (100 cmds).
4744echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
4745rm -f conftest.tail
4746while grep . conftest.undefs >/dev/null
4747do
4748 # Write a limited-size here document to $tmp/undefs.sed.
4749 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
4750 # Speed up: don't consider the non `#undef'
4751 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
4752 # Work around the forget-to-reset-the-flag bug.
4753 echo 't clr' >>$CONFIG_STATUS
4754 echo ': clr' >>$CONFIG_STATUS
4755 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
4756 echo 'CEOF
4757 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
4758 rm -f $tmp/in
4759 mv $tmp/out $tmp/in
4760' >>$CONFIG_STATUS
4761 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
4762 rm -f conftest.undefs
4763 mv conftest.tail conftest.undefs
4764done
4765rm -f conftest.undefs
4766
4767cat >>$CONFIG_STATUS <<\_ACEOF
4768 # Let's still pretend it is `configure' which instantiates (i.e., don't
4769 # use $as_me), people would be surprised to read:
4770 # /* config.h. Generated by config.status. */
4771 if test x"$ac_file" = x-; then
4772 echo "/* Generated by configure. */" >$tmp/config.h
4773 else
4774 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
4775 fi
4776 cat $tmp/in >>$tmp/config.h
4777 rm -f $tmp/in
4778 if test x"$ac_file" != x-; then
4779 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
4780 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
4781echo "$as_me: $ac_file is unchanged" >&6;}
4782 else
4783 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
4784$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4785 X"$ac_file" : 'X\(//\)[^/]' \| \
4786 X"$ac_file" : 'X\(//\)$' \| \
4787 X"$ac_file" : 'X\(/\)' \| \
4788 . : '\(.\)' 2>/dev/null ||
4789echo X"$ac_file" |
4790 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
4791 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
4792 /^X\(\/\/\)$/{ s//\1/; q; }
4793 /^X\(\/\).*/{ s//\1/; q; }
4794 s/.*/./; q'`
4795 { if $as_mkdir_p; then
4796 mkdir -p "$ac_dir"
4797 else
4798 as_dir="$ac_dir"
4799 as_dirs=
4800 while test ! -d "$as_dir"; do
4801 as_dirs="$as_dir $as_dirs"
4802 as_dir=`(dirname "$as_dir") 2>/dev/null ||
4803$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4804 X"$as_dir" : 'X\(//\)[^/]' \| \
4805 X"$as_dir" : 'X\(//\)$' \| \
4806 X"$as_dir" : 'X\(/\)' \| \
4807 . : '\(.\)' 2>/dev/null ||
4808echo X"$as_dir" |
4809 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
4810 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
4811 /^X\(\/\/\)$/{ s//\1/; q; }
4812 /^X\(\/\).*/{ s//\1/; q; }
4813 s/.*/./; q'`
4814 done
4815 test ! -n "$as_dirs" || mkdir $as_dirs
4816 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
4817echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
4818 { (exit 1); exit 1; }; }; }
4819
4820 rm -f $ac_file
4821 mv $tmp/config.h $ac_file
4822 fi
4823 else
4824 cat $tmp/config.h
4825 rm -f $tmp/config.h
4826 fi
4827# Compute $ac_file's index in $config_headers.
4828_am_stamp_count=1
4829for _am_header in $config_headers :; do
4830 case $_am_header in
4831 $ac_file | $ac_file:* )
4832 break ;;
4833 * )
4834 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
4835 esac
4836done
4837echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
4838$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4839 X$ac_file : 'X\(//\)[^/]' \| \
4840 X$ac_file : 'X\(//\)$' \| \
4841 X$ac_file : 'X\(/\)' \| \
4842 . : '\(.\)' 2>/dev/null ||
4843echo X$ac_file |
4844 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
4845 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
4846 /^X\(\/\/\)$/{ s//\1/; q; }
4847 /^X\(\/\).*/{ s//\1/; q; }
4848 s/.*/./; q'`/stamp-h$_am_stamp_count
4849done
4850_ACEOF
4851cat >>$CONFIG_STATUS <<\_ACEOF
4852
4853#
4854# CONFIG_COMMANDS section.
4855#
4856for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
4857 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
4858 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
4859 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
4860$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4861 X"$ac_dest" : 'X\(//\)[^/]' \| \
4862 X"$ac_dest" : 'X\(//\)$' \| \
4863 X"$ac_dest" : 'X\(/\)' \| \
4864 . : '\(.\)' 2>/dev/null ||
4865echo X"$ac_dest" |
4866 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
4867 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
4868 /^X\(\/\/\)$/{ s//\1/; q; }
4869 /^X\(\/\).*/{ s//\1/; q; }
4870 s/.*/./; q'`
4871 { if $as_mkdir_p; then
4872 mkdir -p "$ac_dir"
4873 else
4874 as_dir="$ac_dir"
4875 as_dirs=
4876 while test ! -d "$as_dir"; do
4877 as_dirs="$as_dir $as_dirs"
4878 as_dir=`(dirname "$as_dir") 2>/dev/null ||
4879$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4880 X"$as_dir" : 'X\(//\)[^/]' \| \
4881 X"$as_dir" : 'X\(//\)$' \| \
4882 X"$as_dir" : 'X\(/\)' \| \
4883 . : '\(.\)' 2>/dev/null ||
4884echo X"$as_dir" |
4885 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
4886 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
4887 /^X\(\/\/\)$/{ s//\1/; q; }
4888 /^X\(\/\).*/{ s//\1/; q; }
4889 s/.*/./; q'`
4890 done
4891 test ! -n "$as_dirs" || mkdir $as_dirs
4892 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
4893echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
4894 { (exit 1); exit 1; }; }; }
4895
4896 ac_builddir=.
4897
4898if test "$ac_dir" != .; then
4899 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
4900 # A "../" for each directory in $ac_dir_suffix.
4901 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
4902else
4903 ac_dir_suffix= ac_top_builddir=
4904fi
4905
4906case $srcdir in
4907 .) # No --srcdir option. We are building in place.
4908 ac_srcdir=.
4909 if test -z "$ac_top_builddir"; then
4910 ac_top_srcdir=.
4911 else
4912 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
4913 fi ;;
4914 [\\/]* | ?:[\\/]* ) # Absolute path.
4915 ac_srcdir=$srcdir$ac_dir_suffix;
4916 ac_top_srcdir=$srcdir ;;
4917 *) # Relative path.
4918 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
4919 ac_top_srcdir=$ac_top_builddir$srcdir ;;
4920esac
4921
4922# Do not use `cd foo && pwd` to compute absolute paths, because
4923# the directories may not exist.
4924case `pwd` in
4925.) ac_abs_builddir="$ac_dir";;
4926*)
4927 case "$ac_dir" in
4928 .) ac_abs_builddir=`pwd`;;
4929 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
4930 *) ac_abs_builddir=`pwd`/"$ac_dir";;
4931 esac;;
4932esac
4933case $ac_abs_builddir in
4934.) ac_abs_top_builddir=${ac_top_builddir}.;;
4935*)
4936 case ${ac_top_builddir}. in
4937 .) ac_abs_top_builddir=$ac_abs_builddir;;
4938 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
4939 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
4940 esac;;
4941esac
4942case $ac_abs_builddir in
4943.) ac_abs_srcdir=$ac_srcdir;;
4944*)
4945 case $ac_srcdir in
4946 .) ac_abs_srcdir=$ac_abs_builddir;;
4947 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
4948 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
4949 esac;;
4950esac
4951case $ac_abs_builddir in
4952.) ac_abs_top_srcdir=$ac_top_srcdir;;
4953*)
4954 case $ac_top_srcdir in
4955 .) ac_abs_top_srcdir=$ac_abs_builddir;;
4956 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
4957 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
4958 esac;;
4959esac
4960
4961
4962 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
4963echo "$as_me: executing $ac_dest commands" >&6;}
4964 case $ac_dest in
4965 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
4966 # Strip MF so we end up with the name of the file.
4967 mf=`echo "$mf" | sed -e 's/:.*$//'`
4968 # Check whether this is an Automake generated Makefile or not.
4969 # We used to match only the files named `Makefile.in', but
4970 # some people rename them; so instead we look at the file content.
4971 # Grep'ing the first line is not enough: some people post-process
4972 # each Makefile.in and add a new line on top of each file to say so.
4973 # So let's grep whole file.
4974 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
4975 dirpart=`(dirname "$mf") 2>/dev/null ||
4976$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4977 X"$mf" : 'X\(//\)[^/]' \| \
4978 X"$mf" : 'X\(//\)$' \| \
4979 X"$mf" : 'X\(/\)' \| \
4980 . : '\(.\)' 2>/dev/null ||
4981echo X"$mf" |
4982 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
4983 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
4984 /^X\(\/\/\)$/{ s//\1/; q; }
4985 /^X\(\/\).*/{ s//\1/; q; }
4986 s/.*/./; q'`
4987 else
4988 continue
4989 fi
4990 # Extract the definition of DEPDIR, am__include, and am__quote
4991 # from the Makefile without running `make'.
4992 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
4993 test -z "$DEPDIR" && continue
4994 am__include=`sed -n 's/^am__include = //p' < "$mf"`
4995 test -z "am__include" && continue
4996 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
4997 # When using ansi2knr, U may be empty or an underscore; expand it
4998 U=`sed -n 's/^U = //p' < "$mf"`
4999 # Find all dependency output files, they are included files with
5000 # $(DEPDIR) in their names. We invoke sed twice because it is the
5001 # simplest approach to changing $(DEPDIR) to its actual value in the
5002 # expansion.
5003 for file in `sed -n "
5004 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
5005 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
5006 # Make sure the directory exists.
5007 test -f "$dirpart/$file" && continue
5008 fdir=`(dirname "$file") 2>/dev/null ||
5009$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5010 X"$file" : 'X\(//\)[^/]' \| \
5011 X"$file" : 'X\(//\)$' \| \
5012 X"$file" : 'X\(/\)' \| \
5013 . : '\(.\)' 2>/dev/null ||
5014echo X"$file" |
5015 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5016 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5017 /^X\(\/\/\)$/{ s//\1/; q; }
5018 /^X\(\/\).*/{ s//\1/; q; }
5019 s/.*/./; q'`
5020 { if $as_mkdir_p; then
5021 mkdir -p $dirpart/$fdir
5022 else
5023 as_dir=$dirpart/$fdir
5024 as_dirs=
5025 while test ! -d "$as_dir"; do
5026 as_dirs="$as_dir $as_dirs"
5027 as_dir=`(dirname "$as_dir") 2>/dev/null ||
5028$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5029 X"$as_dir" : 'X\(//\)[^/]' \| \
5030 X"$as_dir" : 'X\(//\)$' \| \
5031 X"$as_dir" : 'X\(/\)' \| \
5032 . : '\(.\)' 2>/dev/null ||
5033echo X"$as_dir" |
5034 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5035 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5036 /^X\(\/\/\)$/{ s//\1/; q; }
5037 /^X\(\/\).*/{ s//\1/; q; }
5038 s/.*/./; q'`
5039 done
5040 test ! -n "$as_dirs" || mkdir $as_dirs
5041 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
5042echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
5043 { (exit 1); exit 1; }; }; }
5044
5045 # echo "creating $dirpart/$file"
5046 echo '# dummy' > "$dirpart/$file"
5047 done
5048done
5049 ;;
5050 esac
5051done
5052_ACEOF
5053
5054cat >>$CONFIG_STATUS <<\_ACEOF
5055
5056{ (exit 0); exit 0; }
5057_ACEOF
5058chmod +x $CONFIG_STATUS
5059ac_clean_files=$ac_clean_files_save
5060
5061
5062# configure is writing to config.log, and then calls config.status.
5063# config.status does its own redirection, appending to config.log.
5064# Unfortunately, on DOS this fails, as config.log is still kept open
5065# by configure, so config.status won't be able to write to it; its
5066# output is simply discarded. So we exec the FD to /dev/null,
5067# effectively closing config.log, so it can be properly (re)opened and
5068# appended to by config.status. When coming back to configure, we
5069# need to make the FD available again.
5070if test "$no_create" != yes; then
5071 ac_cs_success=:
5072 ac_config_status_args=
5073 test "$silent" = yes &&
5074 ac_config_status_args="$ac_config_status_args --quiet"
5075 exec 5>/dev/null
5076 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
5077 exec 5>>config.log
5078 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
5079 # would make configure fail if this is the last instruction.
5080 $ac_cs_success || { (exit 1); exit 1; }
5081fi
5082
Note: See TracBrowser for help on using the repository browser.