root/main/trunk/gs2-core/configure @ 21517

Revision 21517, 131.8 KB (checked in by mdewsnip, 10 years ago)

Added AC_CONFIG_SUBDIRS lines for configuring the common-src and runtime-src directories automatically.

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