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