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