Made it 2.0.0, and removed the changes that are in 1.1.x, as
[freeradius.git] / src / modules / rlm_dbm / configure
1 #! /bin/sh
2 # From configure.in Revision: 1.13 .
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"                   || test ! -s conftest.err'
1831   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1832   (eval $ac_try) 2>&5
1833   ac_status=$?
1834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1835   (exit $ac_status); }; } &&
1836          { ac_try='test -s conftest.$ac_objext'
1837   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1838   (eval $ac_try) 2>&5
1839   ac_status=$?
1840   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1841   (exit $ac_status); }; }; then
1842   ac_compiler_gnu=yes
1843 else
1844   echo "$as_me: failed program was:" >&5
1845 sed 's/^/| /' conftest.$ac_ext >&5
1846
1847 ac_compiler_gnu=no
1848 fi
1849 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1850 ac_cv_c_compiler_gnu=$ac_compiler_gnu
1851
1852 fi
1853 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
1854 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1855 GCC=`test $ac_compiler_gnu = yes && echo yes`
1856 ac_test_CFLAGS=${CFLAGS+set}
1857 ac_save_CFLAGS=$CFLAGS
1858 CFLAGS="-g"
1859 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
1860 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1861 if test "${ac_cv_prog_cc_g+set}" = set; then
1862   echo $ECHO_N "(cached) $ECHO_C" >&6
1863 else
1864   cat >conftest.$ac_ext <<_ACEOF
1865 /* confdefs.h.  */
1866 _ACEOF
1867 cat confdefs.h >>conftest.$ac_ext
1868 cat >>conftest.$ac_ext <<_ACEOF
1869 /* end confdefs.h.  */
1870
1871 int
1872 main ()
1873 {
1874
1875   ;
1876   return 0;
1877 }
1878 _ACEOF
1879 rm -f conftest.$ac_objext
1880 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1881   (eval $ac_compile) 2>conftest.er1
1882   ac_status=$?
1883   grep -v '^ *+' conftest.er1 >conftest.err
1884   rm -f conftest.er1
1885   cat conftest.err >&5
1886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1887   (exit $ac_status); } &&
1888          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
1889   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1890   (eval $ac_try) 2>&5
1891   ac_status=$?
1892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1893   (exit $ac_status); }; } &&
1894          { ac_try='test -s conftest.$ac_objext'
1895   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1896   (eval $ac_try) 2>&5
1897   ac_status=$?
1898   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1899   (exit $ac_status); }; }; then
1900   ac_cv_prog_cc_g=yes
1901 else
1902   echo "$as_me: failed program was:" >&5
1903 sed 's/^/| /' conftest.$ac_ext >&5
1904
1905 ac_cv_prog_cc_g=no
1906 fi
1907 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1908 fi
1909 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
1910 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1911 if test "$ac_test_CFLAGS" = set; then
1912   CFLAGS=$ac_save_CFLAGS
1913 elif test $ac_cv_prog_cc_g = yes; then
1914   if test "$GCC" = yes; then
1915     CFLAGS="-g -O2"
1916   else
1917     CFLAGS="-g"
1918   fi
1919 else
1920   if test "$GCC" = yes; then
1921     CFLAGS="-O2"
1922   else
1923     CFLAGS=
1924   fi
1925 fi
1926 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
1927 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
1928 if test "${ac_cv_prog_cc_stdc+set}" = set; then
1929   echo $ECHO_N "(cached) $ECHO_C" >&6
1930 else
1931   ac_cv_prog_cc_stdc=no
1932 ac_save_CC=$CC
1933 cat >conftest.$ac_ext <<_ACEOF
1934 /* confdefs.h.  */
1935 _ACEOF
1936 cat confdefs.h >>conftest.$ac_ext
1937 cat >>conftest.$ac_ext <<_ACEOF
1938 /* end confdefs.h.  */
1939 #include <stdarg.h>
1940 #include <stdio.h>
1941 #include <sys/types.h>
1942 #include <sys/stat.h>
1943 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
1944 struct buf { int x; };
1945 FILE * (*rcsopen) (struct buf *, struct stat *, int);
1946 static char *e (p, i)
1947      char **p;
1948      int i;
1949 {
1950   return p[i];
1951 }
1952 static char *f (char * (*g) (char **, int), char **p, ...)
1953 {
1954   char *s;
1955   va_list v;
1956   va_start (v,p);
1957   s = g (p, va_arg (v,int));
1958   va_end (v);
1959   return s;
1960 }
1961
1962 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
1963    function prototypes and stuff, but not '\xHH' hex character constants.
1964    These don't provoke an error unfortunately, instead are silently treated
1965    as 'x'.  The following induces an error, until -std1 is added to get
1966    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
1967    array size at least.  It's necessary to write '\x00'==0 to get something
1968    that's true only with -std1.  */
1969 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
1970
1971 int test (int i, double x);
1972 struct s1 {int (*f) (int a);};
1973 struct s2 {int (*f) (double a);};
1974 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
1975 int argc;
1976 char **argv;
1977 int
1978 main ()
1979 {
1980 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
1981   ;
1982   return 0;
1983 }
1984 _ACEOF
1985 # Don't try gcc -ansi; that turns off useful extensions and
1986 # breaks some systems' header files.
1987 # AIX                   -qlanglvl=ansi
1988 # Ultrix and OSF/1      -std1
1989 # HP-UX 10.20 and later -Ae
1990 # HP-UX older versions  -Aa -D_HPUX_SOURCE
1991 # SVR4                  -Xc -D__EXTENSIONS__
1992 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
1993 do
1994   CC="$ac_save_CC $ac_arg"
1995   rm -f conftest.$ac_objext
1996 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1997   (eval $ac_compile) 2>conftest.er1
1998   ac_status=$?
1999   grep -v '^ *+' conftest.er1 >conftest.err
2000   rm -f conftest.er1
2001   cat conftest.err >&5
2002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2003   (exit $ac_status); } &&
2004          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2005   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2006   (eval $ac_try) 2>&5
2007   ac_status=$?
2008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2009   (exit $ac_status); }; } &&
2010          { ac_try='test -s conftest.$ac_objext'
2011   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2012   (eval $ac_try) 2>&5
2013   ac_status=$?
2014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2015   (exit $ac_status); }; }; then
2016   ac_cv_prog_cc_stdc=$ac_arg
2017 break
2018 else
2019   echo "$as_me: failed program was:" >&5
2020 sed 's/^/| /' conftest.$ac_ext >&5
2021
2022 fi
2023 rm -f conftest.err conftest.$ac_objext
2024 done
2025 rm -f conftest.$ac_ext conftest.$ac_objext
2026 CC=$ac_save_CC
2027
2028 fi
2029
2030 case "x$ac_cv_prog_cc_stdc" in
2031   x|xno)
2032     echo "$as_me:$LINENO: result: none needed" >&5
2033 echo "${ECHO_T}none needed" >&6 ;;
2034   *)
2035     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2036 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2037     CC="$CC $ac_cv_prog_cc_stdc" ;;
2038 esac
2039
2040 # Some people use a C++ compiler to compile C.  Since we use `exit',
2041 # in C++ we need to declare it.  In case someone uses the same compiler
2042 # for both compiling C and C++ we need to have the C++ compiler decide
2043 # the declaration of exit, since it's the most demanding environment.
2044 cat >conftest.$ac_ext <<_ACEOF
2045 #ifndef __cplusplus
2046   choke me
2047 #endif
2048 _ACEOF
2049 rm -f conftest.$ac_objext
2050 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2051   (eval $ac_compile) 2>conftest.er1
2052   ac_status=$?
2053   grep -v '^ *+' conftest.er1 >conftest.err
2054   rm -f conftest.er1
2055   cat conftest.err >&5
2056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2057   (exit $ac_status); } &&
2058          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2059   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2060   (eval $ac_try) 2>&5
2061   ac_status=$?
2062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2063   (exit $ac_status); }; } &&
2064          { ac_try='test -s conftest.$ac_objext'
2065   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2066   (eval $ac_try) 2>&5
2067   ac_status=$?
2068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2069   (exit $ac_status); }; }; then
2070   for ac_declaration in \
2071    '' \
2072    'extern "C" void std::exit (int) throw (); using std::exit;' \
2073    'extern "C" void std::exit (int); using std::exit;' \
2074    'extern "C" void exit (int) throw ();' \
2075    'extern "C" void exit (int);' \
2076    'void exit (int);'
2077 do
2078   cat >conftest.$ac_ext <<_ACEOF
2079 /* confdefs.h.  */
2080 _ACEOF
2081 cat confdefs.h >>conftest.$ac_ext
2082 cat >>conftest.$ac_ext <<_ACEOF
2083 /* end confdefs.h.  */
2084 $ac_declaration
2085 #include <stdlib.h>
2086 int
2087 main ()
2088 {
2089 exit (42);
2090   ;
2091   return 0;
2092 }
2093 _ACEOF
2094 rm -f conftest.$ac_objext
2095 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2096   (eval $ac_compile) 2>conftest.er1
2097   ac_status=$?
2098   grep -v '^ *+' conftest.er1 >conftest.err
2099   rm -f conftest.er1
2100   cat conftest.err >&5
2101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2102   (exit $ac_status); } &&
2103          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2104   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2105   (eval $ac_try) 2>&5
2106   ac_status=$?
2107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2108   (exit $ac_status); }; } &&
2109          { ac_try='test -s conftest.$ac_objext'
2110   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2111   (eval $ac_try) 2>&5
2112   ac_status=$?
2113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2114   (exit $ac_status); }; }; then
2115   :
2116 else
2117   echo "$as_me: failed program was:" >&5
2118 sed 's/^/| /' conftest.$ac_ext >&5
2119
2120 continue
2121 fi
2122 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2123   cat >conftest.$ac_ext <<_ACEOF
2124 /* confdefs.h.  */
2125 _ACEOF
2126 cat confdefs.h >>conftest.$ac_ext
2127 cat >>conftest.$ac_ext <<_ACEOF
2128 /* end confdefs.h.  */
2129 $ac_declaration
2130 int
2131 main ()
2132 {
2133 exit (42);
2134   ;
2135   return 0;
2136 }
2137 _ACEOF
2138 rm -f conftest.$ac_objext
2139 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2140   (eval $ac_compile) 2>conftest.er1
2141   ac_status=$?
2142   grep -v '^ *+' conftest.er1 >conftest.err
2143   rm -f conftest.er1
2144   cat conftest.err >&5
2145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2146   (exit $ac_status); } &&
2147          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2148   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2149   (eval $ac_try) 2>&5
2150   ac_status=$?
2151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2152   (exit $ac_status); }; } &&
2153          { ac_try='test -s conftest.$ac_objext'
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); }; }; then
2159   break
2160 else
2161   echo "$as_me: failed program was:" >&5
2162 sed 's/^/| /' conftest.$ac_ext >&5
2163
2164 fi
2165 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2166 done
2167 rm -f conftest*
2168 if test -n "$ac_declaration"; then
2169   echo '#ifdef __cplusplus' >>confdefs.h
2170   echo $ac_declaration      >>confdefs.h
2171   echo '#endif'             >>confdefs.h
2172 fi
2173
2174 else
2175   echo "$as_me: failed program was:" >&5
2176 sed 's/^/| /' conftest.$ac_ext >&5
2177
2178 fi
2179 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2180 ac_ext=c
2181 ac_cpp='$CPP $CPPFLAGS'
2182 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2183 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2184 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2185
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 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2192 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2193 # On Suns, sometimes $CPP names a directory.
2194 if test -n "$CPP" && test -d "$CPP"; then
2195   CPP=
2196 fi
2197 if test -z "$CPP"; then
2198   if test "${ac_cv_prog_CPP+set}" = set; then
2199   echo $ECHO_N "(cached) $ECHO_C" >&6
2200 else
2201       # Double quotes because CPP needs to be expanded
2202     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2203     do
2204       ac_preproc_ok=false
2205 for ac_c_preproc_warn_flag in '' yes
2206 do
2207   # Use a header file that comes with gcc, so configuring glibc
2208   # with a fresh cross-compiler works.
2209   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2210   # <limits.h> exists even on freestanding compilers.
2211   # On the NeXT, cc -E runs the code through the compiler's parser,
2212   # not just through cpp. "Syntax error" is here to catch this case.
2213   cat >conftest.$ac_ext <<_ACEOF
2214 /* confdefs.h.  */
2215 _ACEOF
2216 cat confdefs.h >>conftest.$ac_ext
2217 cat >>conftest.$ac_ext <<_ACEOF
2218 /* end confdefs.h.  */
2219 #ifdef __STDC__
2220 # include <limits.h>
2221 #else
2222 # include <assert.h>
2223 #endif
2224                      Syntax error
2225 _ACEOF
2226 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2227   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2228   ac_status=$?
2229   grep -v '^ *+' conftest.er1 >conftest.err
2230   rm -f conftest.er1
2231   cat conftest.err >&5
2232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2233   (exit $ac_status); } >/dev/null; then
2234   if test -s conftest.err; then
2235     ac_cpp_err=$ac_c_preproc_warn_flag
2236     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2237   else
2238     ac_cpp_err=
2239   fi
2240 else
2241   ac_cpp_err=yes
2242 fi
2243 if test -z "$ac_cpp_err"; then
2244   :
2245 else
2246   echo "$as_me: failed program was:" >&5
2247 sed 's/^/| /' conftest.$ac_ext >&5
2248
2249   # Broken: fails on valid input.
2250 continue
2251 fi
2252 rm -f conftest.err conftest.$ac_ext
2253
2254   # OK, works on sane cases.  Now check whether non-existent headers
2255   # can be detected and how.
2256   cat >conftest.$ac_ext <<_ACEOF
2257 /* confdefs.h.  */
2258 _ACEOF
2259 cat confdefs.h >>conftest.$ac_ext
2260 cat >>conftest.$ac_ext <<_ACEOF
2261 /* end confdefs.h.  */
2262 #include <ac_nonexistent.h>
2263 _ACEOF
2264 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2265   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2266   ac_status=$?
2267   grep -v '^ *+' conftest.er1 >conftest.err
2268   rm -f conftest.er1
2269   cat conftest.err >&5
2270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2271   (exit $ac_status); } >/dev/null; then
2272   if test -s conftest.err; then
2273     ac_cpp_err=$ac_c_preproc_warn_flag
2274     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2275   else
2276     ac_cpp_err=
2277   fi
2278 else
2279   ac_cpp_err=yes
2280 fi
2281 if test -z "$ac_cpp_err"; then
2282   # Broken: success on invalid input.
2283 continue
2284 else
2285   echo "$as_me: failed program was:" >&5
2286 sed 's/^/| /' conftest.$ac_ext >&5
2287
2288   # Passes both tests.
2289 ac_preproc_ok=:
2290 break
2291 fi
2292 rm -f conftest.err conftest.$ac_ext
2293
2294 done
2295 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2296 rm -f conftest.err conftest.$ac_ext
2297 if $ac_preproc_ok; then
2298   break
2299 fi
2300
2301     done
2302     ac_cv_prog_CPP=$CPP
2303
2304 fi
2305   CPP=$ac_cv_prog_CPP
2306 else
2307   ac_cv_prog_CPP=$CPP
2308 fi
2309 echo "$as_me:$LINENO: result: $CPP" >&5
2310 echo "${ECHO_T}$CPP" >&6
2311 ac_preproc_ok=false
2312 for ac_c_preproc_warn_flag in '' yes
2313 do
2314   # Use a header file that comes with gcc, so configuring glibc
2315   # with a fresh cross-compiler works.
2316   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2317   # <limits.h> exists even on freestanding compilers.
2318   # On the NeXT, cc -E runs the code through the compiler's parser,
2319   # not just through cpp. "Syntax error" is here to catch this case.
2320   cat >conftest.$ac_ext <<_ACEOF
2321 /* confdefs.h.  */
2322 _ACEOF
2323 cat confdefs.h >>conftest.$ac_ext
2324 cat >>conftest.$ac_ext <<_ACEOF
2325 /* end confdefs.h.  */
2326 #ifdef __STDC__
2327 # include <limits.h>
2328 #else
2329 # include <assert.h>
2330 #endif
2331                      Syntax error
2332 _ACEOF
2333 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2334   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2335   ac_status=$?
2336   grep -v '^ *+' conftest.er1 >conftest.err
2337   rm -f conftest.er1
2338   cat conftest.err >&5
2339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2340   (exit $ac_status); } >/dev/null; then
2341   if test -s conftest.err; then
2342     ac_cpp_err=$ac_c_preproc_warn_flag
2343     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2344   else
2345     ac_cpp_err=
2346   fi
2347 else
2348   ac_cpp_err=yes
2349 fi
2350 if test -z "$ac_cpp_err"; then
2351   :
2352 else
2353   echo "$as_me: failed program was:" >&5
2354 sed 's/^/| /' conftest.$ac_ext >&5
2355
2356   # Broken: fails on valid input.
2357 continue
2358 fi
2359 rm -f conftest.err conftest.$ac_ext
2360
2361   # OK, works on sane cases.  Now check whether non-existent headers
2362   # can be detected and how.
2363   cat >conftest.$ac_ext <<_ACEOF
2364 /* confdefs.h.  */
2365 _ACEOF
2366 cat confdefs.h >>conftest.$ac_ext
2367 cat >>conftest.$ac_ext <<_ACEOF
2368 /* end confdefs.h.  */
2369 #include <ac_nonexistent.h>
2370 _ACEOF
2371 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2372   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2373   ac_status=$?
2374   grep -v '^ *+' conftest.er1 >conftest.err
2375   rm -f conftest.er1
2376   cat conftest.err >&5
2377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2378   (exit $ac_status); } >/dev/null; then
2379   if test -s conftest.err; then
2380     ac_cpp_err=$ac_c_preproc_warn_flag
2381     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2382   else
2383     ac_cpp_err=
2384   fi
2385 else
2386   ac_cpp_err=yes
2387 fi
2388 if test -z "$ac_cpp_err"; then
2389   # Broken: success on invalid input.
2390 continue
2391 else
2392   echo "$as_me: failed program was:" >&5
2393 sed 's/^/| /' conftest.$ac_ext >&5
2394
2395   # Passes both tests.
2396 ac_preproc_ok=:
2397 break
2398 fi
2399 rm -f conftest.err conftest.$ac_ext
2400
2401 done
2402 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2403 rm -f conftest.err conftest.$ac_ext
2404 if $ac_preproc_ok; then
2405   :
2406 else
2407   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2408 See \`config.log' for more details." >&5
2409 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2410 See \`config.log' for more details." >&2;}
2411    { (exit 1); exit 1; }; }
2412 fi
2413
2414 ac_ext=c
2415 ac_cpp='$CPP $CPPFLAGS'
2416 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2417 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2418 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2419
2420
2421                 rlm_dbm_lib_dir=
2422
2423 # Check whether --with-rlm-dbm-lib-dir or --without-rlm-dbm-lib-dir was given.
2424 if test "${with_rlm_dbm_lib_dir+set}" = set; then
2425   withval="$with_rlm_dbm_lib_dir"
2426    case "$withval" in
2427             no)
2428                 { { echo "$as_me:$LINENO: error: Need rlm-dbm-lib-dir" >&5
2429 echo "$as_me: error: Need rlm-dbm-lib-dir" >&2;}
2430    { (exit 1); exit 1; }; }
2431                 ;;
2432             yes)
2433                 ;;
2434             *)
2435                 rlm_dbm_lib_dir="$withval"
2436                 ;;
2437           esac
2438
2439 fi;
2440
2441                 rlm_dbm_inc_dir=
2442
2443 # Check whether --with-rlm-dbm-include-dir or --without-rlm-dbm-include-dir was given.
2444 if test "${with_rlm_dbm_include_dir+set}" = set; then
2445   withval="$with_rlm_dbm_include_dir"
2446    case "$withval" in
2447             no)
2448                 { { echo "$as_me:$LINENO: error: Need rlm-dbm-include-dir" >&5
2449 echo "$as_me: error: Need rlm-dbm-include-dir" >&2;}
2450    { (exit 1); exit 1; }; }
2451                 ;;
2452             yes)
2453                 ;;
2454             *)
2455                 rlm_dbm_include_dir="$withval"
2456                 ;;
2457           esac
2458
2459 fi;
2460
2461         smart_try_dir=$rlm_dbm_include_dir
2462
2463
2464
2465 ac_safe=`echo "ndbm.h" | sed 'y%./+-%__pm%'`
2466 echo "$as_me:$LINENO: checking for ndbm.h" >&5
2467 echo $ECHO_N "checking for ndbm.h... $ECHO_C" >&6
2468
2469 old_CFLAGS="$CFLAGS"
2470 smart_include=
2471 smart_include_dir=
2472
2473 if test "x$smart_try_dir" != "x"; then
2474   for try in $smart_try_dir; do
2475     CFLAGS="$old_CFLAGS -I$try"
2476     cat >conftest.$ac_ext <<_ACEOF
2477 /* confdefs.h.  */
2478 _ACEOF
2479 cat confdefs.h >>conftest.$ac_ext
2480 cat >>conftest.$ac_ext <<_ACEOF
2481 /* end confdefs.h.  */
2482
2483                     #include <ndbm.h>
2484 int
2485 main ()
2486 {
2487  int a = 1;
2488   ;
2489   return 0;
2490 }
2491 _ACEOF
2492 rm -f conftest.$ac_objext
2493 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2494   (eval $ac_compile) 2>conftest.er1
2495   ac_status=$?
2496   grep -v '^ *+' conftest.er1 >conftest.err
2497   rm -f conftest.er1
2498   cat conftest.err >&5
2499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2500   (exit $ac_status); } &&
2501          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2502   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2503   (eval $ac_try) 2>&5
2504   ac_status=$?
2505   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2506   (exit $ac_status); }; } &&
2507          { ac_try='test -s conftest.$ac_objext'
2508   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2509   (eval $ac_try) 2>&5
2510   ac_status=$?
2511   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2512   (exit $ac_status); }; }; then
2513   smart_include="-I$try"
2514 else
2515   echo "$as_me: failed program was:" >&5
2516 sed 's/^/| /' conftest.$ac_ext >&5
2517
2518 smart_include=
2519 fi
2520 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2521     if test "x$smart_include" != "x"; then
2522       break;
2523     fi
2524     CFLAGS="$old_CFLAGS"
2525   done
2526 fi
2527
2528 if test "x$smart_include" = "x"; then
2529   cat >conftest.$ac_ext <<_ACEOF
2530 /* confdefs.h.  */
2531 _ACEOF
2532 cat confdefs.h >>conftest.$ac_ext
2533 cat >>conftest.$ac_ext <<_ACEOF
2534 /* end confdefs.h.  */
2535
2536                   #include <ndbm.h>
2537 int
2538 main ()
2539 {
2540  int a = 1;
2541   ;
2542   return 0;
2543 }
2544 _ACEOF
2545 rm -f conftest.$ac_objext
2546 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2547   (eval $ac_compile) 2>conftest.er1
2548   ac_status=$?
2549   grep -v '^ *+' conftest.er1 >conftest.err
2550   rm -f conftest.er1
2551   cat conftest.err >&5
2552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2553   (exit $ac_status); } &&
2554          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2555   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2556   (eval $ac_try) 2>&5
2557   ac_status=$?
2558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2559   (exit $ac_status); }; } &&
2560          { ac_try='test -s conftest.$ac_objext'
2561   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2562   (eval $ac_try) 2>&5
2563   ac_status=$?
2564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2565   (exit $ac_status); }; }; then
2566   smart_include=" "
2567 else
2568   echo "$as_me: failed program was:" >&5
2569 sed 's/^/| /' conftest.$ac_ext >&5
2570
2571 smart_include=
2572 fi
2573 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2574 fi
2575
2576 if test "x$smart_include" = "x"; then
2577
2578
2579 if test "x$LOCATE" != "x"; then
2580         DIRS=
2581   file=ndbm.h
2582
2583   for x in `${LOCATE} $file 2>/dev/null`; do
2584                                         base=`echo $x | sed "s%/${file}%%"`
2585     if test "x$x" = "x$base"; then
2586       continue;
2587     fi
2588
2589     dir=`${DIRNAME} $x 2>/dev/null`
2590                 exclude=`echo ${dir} | ${GREP} /home`
2591     if test "x$exclude" != "x"; then
2592       continue
2593     fi
2594
2595                     already=`echo \$smart_include_dir ${DIRS} | ${GREP} ${dir}`
2596     if test "x$already" = "x"; then
2597       DIRS="$DIRS $dir"
2598     fi
2599   done
2600 fi
2601
2602 eval "smart_include_dir=\"\$smart_include_dir $DIRS\""
2603
2604
2605   for try in $smart_include_dir /usr/local/include /opt/include; do
2606     CFLAGS="$old_CFLAGS -I$try"
2607     cat >conftest.$ac_ext <<_ACEOF
2608 /* confdefs.h.  */
2609 _ACEOF
2610 cat confdefs.h >>conftest.$ac_ext
2611 cat >>conftest.$ac_ext <<_ACEOF
2612 /* end confdefs.h.  */
2613
2614                     #include <ndbm.h>
2615 int
2616 main ()
2617 {
2618  int a = 1;
2619   ;
2620   return 0;
2621 }
2622 _ACEOF
2623 rm -f conftest.$ac_objext
2624 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2625   (eval $ac_compile) 2>conftest.er1
2626   ac_status=$?
2627   grep -v '^ *+' conftest.er1 >conftest.err
2628   rm -f conftest.er1
2629   cat conftest.err >&5
2630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2631   (exit $ac_status); } &&
2632          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2633   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2634   (eval $ac_try) 2>&5
2635   ac_status=$?
2636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2637   (exit $ac_status); }; } &&
2638          { ac_try='test -s conftest.$ac_objext'
2639   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2640   (eval $ac_try) 2>&5
2641   ac_status=$?
2642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2643   (exit $ac_status); }; }; then
2644   smart_include="-I$try"
2645 else
2646   echo "$as_me: failed program was:" >&5
2647 sed 's/^/| /' conftest.$ac_ext >&5
2648
2649 smart_include=
2650 fi
2651 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2652     if test "x$smart_include" != "x"; then
2653       break;
2654     fi
2655     CFLAGS="$old_CFLAGS"
2656   done
2657 fi
2658
2659 if test "x$smart_include" != "x"; then
2660   echo "$as_me:$LINENO: result: yes" >&5
2661 echo "${ECHO_T}yes" >&6
2662   eval "ac_cv_header_$ac_safe=yes"
2663   CFLAGS="$old_CFLAGS $smart_include"
2664   SMART_CFLAGS="$SMART_CFLAGS $smart_include"
2665 else
2666   echo "$as_me:$LINENO: result: no" >&5
2667 echo "${ECHO_T}no" >&6
2668 fi
2669
2670         if test "x$ac_cv_header_ndbm_h" = "xyes"; then
2671           SMART_CFLAGS="${SMART_CFLAGS} -DHAVE_NDBM_H"
2672         else
2673
2674
2675 ac_safe=`echo "gdbm/ndbm.h" | sed 'y%./+-%__pm%'`
2676 echo "$as_me:$LINENO: checking for gdbm/ndbm.h" >&5
2677 echo $ECHO_N "checking for gdbm/ndbm.h... $ECHO_C" >&6
2678
2679 old_CFLAGS="$CFLAGS"
2680 smart_include=
2681 smart_include_dir=
2682
2683 if test "x$smart_try_dir" != "x"; then
2684   for try in $smart_try_dir; do
2685     CFLAGS="$old_CFLAGS -I$try"
2686     cat >conftest.$ac_ext <<_ACEOF
2687 /* confdefs.h.  */
2688 _ACEOF
2689 cat confdefs.h >>conftest.$ac_ext
2690 cat >>conftest.$ac_ext <<_ACEOF
2691 /* end confdefs.h.  */
2692
2693                     #include <gdbm/ndbm.h>
2694 int
2695 main ()
2696 {
2697  int a = 1;
2698   ;
2699   return 0;
2700 }
2701 _ACEOF
2702 rm -f conftest.$ac_objext
2703 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2704   (eval $ac_compile) 2>conftest.er1
2705   ac_status=$?
2706   grep -v '^ *+' conftest.er1 >conftest.err
2707   rm -f conftest.er1
2708   cat conftest.err >&5
2709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2710   (exit $ac_status); } &&
2711          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2712   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2713   (eval $ac_try) 2>&5
2714   ac_status=$?
2715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2716   (exit $ac_status); }; } &&
2717          { ac_try='test -s conftest.$ac_objext'
2718   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2719   (eval $ac_try) 2>&5
2720   ac_status=$?
2721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2722   (exit $ac_status); }; }; then
2723   smart_include="-I$try"
2724 else
2725   echo "$as_me: failed program was:" >&5
2726 sed 's/^/| /' conftest.$ac_ext >&5
2727
2728 smart_include=
2729 fi
2730 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2731     if test "x$smart_include" != "x"; then
2732       break;
2733     fi
2734     CFLAGS="$old_CFLAGS"
2735   done
2736 fi
2737
2738 if test "x$smart_include" = "x"; then
2739   cat >conftest.$ac_ext <<_ACEOF
2740 /* confdefs.h.  */
2741 _ACEOF
2742 cat confdefs.h >>conftest.$ac_ext
2743 cat >>conftest.$ac_ext <<_ACEOF
2744 /* end confdefs.h.  */
2745
2746                   #include <gdbm/ndbm.h>
2747 int
2748 main ()
2749 {
2750  int a = 1;
2751   ;
2752   return 0;
2753 }
2754 _ACEOF
2755 rm -f conftest.$ac_objext
2756 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2757   (eval $ac_compile) 2>conftest.er1
2758   ac_status=$?
2759   grep -v '^ *+' conftest.er1 >conftest.err
2760   rm -f conftest.er1
2761   cat conftest.err >&5
2762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2763   (exit $ac_status); } &&
2764          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2765   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2766   (eval $ac_try) 2>&5
2767   ac_status=$?
2768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2769   (exit $ac_status); }; } &&
2770          { ac_try='test -s conftest.$ac_objext'
2771   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2772   (eval $ac_try) 2>&5
2773   ac_status=$?
2774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2775   (exit $ac_status); }; }; then
2776   smart_include=" "
2777 else
2778   echo "$as_me: failed program was:" >&5
2779 sed 's/^/| /' conftest.$ac_ext >&5
2780
2781 smart_include=
2782 fi
2783 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2784 fi
2785
2786 if test "x$smart_include" = "x"; then
2787
2788
2789 if test "x$LOCATE" != "x"; then
2790         DIRS=
2791   file=gdbm/ndbm.h
2792
2793   for x in `${LOCATE} $file 2>/dev/null`; do
2794                                         base=`echo $x | sed "s%/${file}%%"`
2795     if test "x$x" = "x$base"; then
2796       continue;
2797     fi
2798
2799     dir=`${DIRNAME} $x 2>/dev/null`
2800                 exclude=`echo ${dir} | ${GREP} /home`
2801     if test "x$exclude" != "x"; then
2802       continue
2803     fi
2804
2805                     already=`echo \$smart_include_dir ${DIRS} | ${GREP} ${dir}`
2806     if test "x$already" = "x"; then
2807       DIRS="$DIRS $dir"
2808     fi
2809   done
2810 fi
2811
2812 eval "smart_include_dir=\"\$smart_include_dir $DIRS\""
2813
2814
2815   for try in $smart_include_dir /usr/local/include /opt/include; do
2816     CFLAGS="$old_CFLAGS -I$try"
2817     cat >conftest.$ac_ext <<_ACEOF
2818 /* confdefs.h.  */
2819 _ACEOF
2820 cat confdefs.h >>conftest.$ac_ext
2821 cat >>conftest.$ac_ext <<_ACEOF
2822 /* end confdefs.h.  */
2823
2824                     #include <gdbm/ndbm.h>
2825 int
2826 main ()
2827 {
2828  int a = 1;
2829   ;
2830   return 0;
2831 }
2832 _ACEOF
2833 rm -f conftest.$ac_objext
2834 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2835   (eval $ac_compile) 2>conftest.er1
2836   ac_status=$?
2837   grep -v '^ *+' conftest.er1 >conftest.err
2838   rm -f conftest.er1
2839   cat conftest.err >&5
2840   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2841   (exit $ac_status); } &&
2842          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2843   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2844   (eval $ac_try) 2>&5
2845   ac_status=$?
2846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2847   (exit $ac_status); }; } &&
2848          { ac_try='test -s conftest.$ac_objext'
2849   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2850   (eval $ac_try) 2>&5
2851   ac_status=$?
2852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2853   (exit $ac_status); }; }; then
2854   smart_include="-I$try"
2855 else
2856   echo "$as_me: failed program was:" >&5
2857 sed 's/^/| /' conftest.$ac_ext >&5
2858
2859 smart_include=
2860 fi
2861 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2862     if test "x$smart_include" != "x"; then
2863       break;
2864     fi
2865     CFLAGS="$old_CFLAGS"
2866   done
2867 fi
2868
2869 if test "x$smart_include" != "x"; then
2870   echo "$as_me:$LINENO: result: yes" >&5
2871 echo "${ECHO_T}yes" >&6
2872   eval "ac_cv_header_$ac_safe=yes"
2873   CFLAGS="$old_CFLAGS $smart_include"
2874   SMART_CFLAGS="$SMART_CFLAGS $smart_include"
2875 else
2876   echo "$as_me:$LINENO: result: no" >&5
2877 echo "${ECHO_T}no" >&6
2878 fi
2879
2880                 if test "x$ac_cv_header_gdbm_ndbm_h" = "xyes"; then
2881                         SMART_CFLAGS="${SMART_CFLAGS} -DHAVE_GDBM_NDBM_H"
2882                 else
2883                         ac_cv_header_gdbm_ndbm_h="bad autoconf assumption"
2884
2885
2886 ac_safe=`echo "gdbm-ndbm.h" | sed 'y%./+-%__pm%'`
2887 echo "$as_me:$LINENO: checking for gdbm-ndbm.h" >&5
2888 echo $ECHO_N "checking for gdbm-ndbm.h... $ECHO_C" >&6
2889
2890 old_CFLAGS="$CFLAGS"
2891 smart_include=
2892 smart_include_dir=
2893
2894 if test "x$smart_try_dir" != "x"; then
2895   for try in $smart_try_dir; do
2896     CFLAGS="$old_CFLAGS -I$try"
2897     cat >conftest.$ac_ext <<_ACEOF
2898 /* confdefs.h.  */
2899 _ACEOF
2900 cat confdefs.h >>conftest.$ac_ext
2901 cat >>conftest.$ac_ext <<_ACEOF
2902 /* end confdefs.h.  */
2903
2904                     #include <gdbm-ndbm.h>
2905 int
2906 main ()
2907 {
2908  int a = 1;
2909   ;
2910   return 0;
2911 }
2912 _ACEOF
2913 rm -f conftest.$ac_objext
2914 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2915   (eval $ac_compile) 2>conftest.er1
2916   ac_status=$?
2917   grep -v '^ *+' conftest.er1 >conftest.err
2918   rm -f conftest.er1
2919   cat conftest.err >&5
2920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2921   (exit $ac_status); } &&
2922          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2923   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2924   (eval $ac_try) 2>&5
2925   ac_status=$?
2926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2927   (exit $ac_status); }; } &&
2928          { ac_try='test -s conftest.$ac_objext'
2929   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2930   (eval $ac_try) 2>&5
2931   ac_status=$?
2932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2933   (exit $ac_status); }; }; then
2934   smart_include="-I$try"
2935 else
2936   echo "$as_me: failed program was:" >&5
2937 sed 's/^/| /' conftest.$ac_ext >&5
2938
2939 smart_include=
2940 fi
2941 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2942     if test "x$smart_include" != "x"; then
2943       break;
2944     fi
2945     CFLAGS="$old_CFLAGS"
2946   done
2947 fi
2948
2949 if test "x$smart_include" = "x"; then
2950   cat >conftest.$ac_ext <<_ACEOF
2951 /* confdefs.h.  */
2952 _ACEOF
2953 cat confdefs.h >>conftest.$ac_ext
2954 cat >>conftest.$ac_ext <<_ACEOF
2955 /* end confdefs.h.  */
2956
2957                   #include <gdbm-ndbm.h>
2958 int
2959 main ()
2960 {
2961  int a = 1;
2962   ;
2963   return 0;
2964 }
2965 _ACEOF
2966 rm -f conftest.$ac_objext
2967 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2968   (eval $ac_compile) 2>conftest.er1
2969   ac_status=$?
2970   grep -v '^ *+' conftest.er1 >conftest.err
2971   rm -f conftest.er1
2972   cat conftest.err >&5
2973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2974   (exit $ac_status); } &&
2975          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2976   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2977   (eval $ac_try) 2>&5
2978   ac_status=$?
2979   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2980   (exit $ac_status); }; } &&
2981          { ac_try='test -s conftest.$ac_objext'
2982   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2983   (eval $ac_try) 2>&5
2984   ac_status=$?
2985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2986   (exit $ac_status); }; }; then
2987   smart_include=" "
2988 else
2989   echo "$as_me: failed program was:" >&5
2990 sed 's/^/| /' conftest.$ac_ext >&5
2991
2992 smart_include=
2993 fi
2994 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2995 fi
2996
2997 if test "x$smart_include" = "x"; then
2998
2999
3000 if test "x$LOCATE" != "x"; then
3001         DIRS=
3002   file=gdbm-ndbm.h
3003
3004   for x in `${LOCATE} $file 2>/dev/null`; do
3005                                         base=`echo $x | sed "s%/${file}%%"`
3006     if test "x$x" = "x$base"; then
3007       continue;
3008     fi
3009
3010     dir=`${DIRNAME} $x 2>/dev/null`
3011                 exclude=`echo ${dir} | ${GREP} /home`
3012     if test "x$exclude" != "x"; then
3013       continue
3014     fi
3015
3016                     already=`echo \$smart_include_dir ${DIRS} | ${GREP} ${dir}`
3017     if test "x$already" = "x"; then
3018       DIRS="$DIRS $dir"
3019     fi
3020   done
3021 fi
3022
3023 eval "smart_include_dir=\"\$smart_include_dir $DIRS\""
3024
3025
3026   for try in $smart_include_dir /usr/local/include /opt/include; do
3027     CFLAGS="$old_CFLAGS -I$try"
3028     cat >conftest.$ac_ext <<_ACEOF
3029 /* confdefs.h.  */
3030 _ACEOF
3031 cat confdefs.h >>conftest.$ac_ext
3032 cat >>conftest.$ac_ext <<_ACEOF
3033 /* end confdefs.h.  */
3034
3035                     #include <gdbm-ndbm.h>
3036 int
3037 main ()
3038 {
3039  int a = 1;
3040   ;
3041   return 0;
3042 }
3043 _ACEOF
3044 rm -f conftest.$ac_objext
3045 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3046   (eval $ac_compile) 2>conftest.er1
3047   ac_status=$?
3048   grep -v '^ *+' conftest.er1 >conftest.err
3049   rm -f conftest.er1
3050   cat conftest.err >&5
3051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3052   (exit $ac_status); } &&
3053          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3054   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3055   (eval $ac_try) 2>&5
3056   ac_status=$?
3057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3058   (exit $ac_status); }; } &&
3059          { ac_try='test -s conftest.$ac_objext'
3060   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3061   (eval $ac_try) 2>&5
3062   ac_status=$?
3063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3064   (exit $ac_status); }; }; then
3065   smart_include="-I$try"
3066 else
3067   echo "$as_me: failed program was:" >&5
3068 sed 's/^/| /' conftest.$ac_ext >&5
3069
3070 smart_include=
3071 fi
3072 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3073     if test "x$smart_include" != "x"; then
3074       break;
3075     fi
3076     CFLAGS="$old_CFLAGS"
3077   done
3078 fi
3079
3080 if test "x$smart_include" != "x"; then
3081   echo "$as_me:$LINENO: result: yes" >&5
3082 echo "${ECHO_T}yes" >&6
3083   eval "ac_cv_header_$ac_safe=yes"
3084   CFLAGS="$old_CFLAGS $smart_include"
3085   SMART_CFLAGS="$SMART_CFLAGS $smart_include"
3086 else
3087   echo "$as_me:$LINENO: result: no" >&5
3088 echo "${ECHO_T}no" >&6
3089 fi
3090
3091                         if test "x$ac_cv_header_gdbmmndbm_h" = "xyes"; then
3092                                 SMART_CFLAGS="${SMART_CFLAGS} -DHAVE_GDBMNDBM_H"
3093                         else
3094                                 fail="$fail (ndbm.h or gdbm/ndbm.h or gdbm-ndbm.h)"
3095                         fi
3096                 fi
3097         fi
3098         echo "$as_me:$LINENO: checking for dbm in default lib" >&5
3099 echo $ECHO_N "checking for dbm in default lib... $ECHO_C" >&6
3100         cat >conftest.$ac_ext <<_ACEOF
3101 /* confdefs.h.  */
3102 _ACEOF
3103 cat confdefs.h >>conftest.$ac_ext
3104 cat >>conftest.$ac_ext <<_ACEOF
3105 /* end confdefs.h.  */
3106 extern void* dbm_open();
3107 int
3108 main ()
3109 {
3110 dbm_open()
3111   ;
3112   return 0;
3113 }
3114 _ACEOF
3115 rm -f conftest.$ac_objext conftest$ac_exeext
3116 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3117   (eval $ac_link) 2>conftest.er1
3118   ac_status=$?
3119   grep -v '^ *+' conftest.er1 >conftest.err
3120   rm -f conftest.er1
3121   cat conftest.err >&5
3122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3123   (exit $ac_status); } &&
3124          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3125   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3126   (eval $ac_try) 2>&5
3127   ac_status=$?
3128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3129   (exit $ac_status); }; } &&
3130          { ac_try='test -s conftest$ac_exeext'
3131   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3132   (eval $ac_try) 2>&5
3133   ac_status=$?
3134   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3135   (exit $ac_status); }; }; then
3136   ac_cv_lib_default_dbm_open=yes
3137                 echo "$as_me:$LINENO: result: yes" >&5
3138 echo "${ECHO_T}yes" >&6
3139 else
3140   echo "$as_me: failed program was:" >&5
3141 sed 's/^/| /' conftest.$ac_ext >&5
3142
3143 echo "$as_me:$LINENO: result: no" >&5
3144 echo "${ECHO_T}no" >&6
3145 fi
3146 rm -f conftest.err conftest.$ac_objext \
3147       conftest$ac_exeext conftest.$ac_ext
3148         if test "x$ac_cv_lib_default_dbm_open" != "xyes"; then
3149                 smart_try_dir=$rlm_dbm_lib_dir
3150
3151
3152 sm_lib_safe=`echo "ndbm" | sed 'y%./+-%__p_%'`
3153 sm_func_safe=`echo "dbm_open" | sed 'y%./+-%__p_%'`
3154 echo "$as_me:$LINENO: checking for dbm_open in -lndbm" >&5
3155 echo $ECHO_N "checking for dbm_open in -lndbm... $ECHO_C" >&6
3156
3157 old_LIBS="$LIBS"
3158 smart_lib=
3159 smart_lib_dir=
3160
3161 if test "x$smart_try_dir" != "x"; then
3162   for try in $smart_try_dir; do
3163     LIBS="-L$try -lndbm $old_LIBS"
3164     cat >conftest.$ac_ext <<_ACEOF
3165 /* confdefs.h.  */
3166 _ACEOF
3167 cat confdefs.h >>conftest.$ac_ext
3168 cat >>conftest.$ac_ext <<_ACEOF
3169 /* end confdefs.h.  */
3170 extern char dbm_open();
3171 int
3172 main ()
3173 {
3174  dbm_open()
3175   ;
3176   return 0;
3177 }
3178 _ACEOF
3179 rm -f conftest.$ac_objext conftest$ac_exeext
3180 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3181   (eval $ac_link) 2>conftest.er1
3182   ac_status=$?
3183   grep -v '^ *+' conftest.er1 >conftest.err
3184   rm -f conftest.er1
3185   cat conftest.err >&5
3186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3187   (exit $ac_status); } &&
3188          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3189   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3190   (eval $ac_try) 2>&5
3191   ac_status=$?
3192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3193   (exit $ac_status); }; } &&
3194          { ac_try='test -s conftest$ac_exeext'
3195   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3196   (eval $ac_try) 2>&5
3197   ac_status=$?
3198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3199   (exit $ac_status); }; }; then
3200   smart_lib="-L$try -lndbm"
3201 else
3202   echo "$as_me: failed program was:" >&5
3203 sed 's/^/| /' conftest.$ac_ext >&5
3204
3205 fi
3206 rm -f conftest.err conftest.$ac_objext \
3207       conftest$ac_exeext conftest.$ac_ext
3208     if test "x$smart_lib" != "x"; then
3209       break;
3210     fi
3211     LIBS="$old_LIBS"
3212   done
3213 fi
3214
3215 if test "x$smart_lib" = "x"; then
3216   LIBS="-lndbm $old_LIBS"
3217   cat >conftest.$ac_ext <<_ACEOF
3218 /* confdefs.h.  */
3219 _ACEOF
3220 cat confdefs.h >>conftest.$ac_ext
3221 cat >>conftest.$ac_ext <<_ACEOF
3222 /* end confdefs.h.  */
3223 extern char dbm_open();
3224 int
3225 main ()
3226 {
3227  dbm_open()
3228   ;
3229   return 0;
3230 }
3231 _ACEOF
3232 rm -f conftest.$ac_objext conftest$ac_exeext
3233 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3234   (eval $ac_link) 2>conftest.er1
3235   ac_status=$?
3236   grep -v '^ *+' conftest.er1 >conftest.err
3237   rm -f conftest.er1
3238   cat conftest.err >&5
3239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3240   (exit $ac_status); } &&
3241          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3242   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3243   (eval $ac_try) 2>&5
3244   ac_status=$?
3245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3246   (exit $ac_status); }; } &&
3247          { ac_try='test -s conftest$ac_exeext'
3248   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3249   (eval $ac_try) 2>&5
3250   ac_status=$?
3251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3252   (exit $ac_status); }; }; then
3253   smart_lib="-lndbm"
3254 else
3255   echo "$as_me: failed program was:" >&5
3256 sed 's/^/| /' conftest.$ac_ext >&5
3257
3258 fi
3259 rm -f conftest.err conftest.$ac_objext \
3260       conftest$ac_exeext conftest.$ac_ext
3261   LIBS="$old_LIBS"
3262 fi
3263
3264 if test "x$smart_lib" = "x"; then
3265
3266
3267 if test "x$LOCATE" != "x"; then
3268         DIRS=
3269   file=libndbm${libltdl_cv_shlibext}
3270
3271   for x in `${LOCATE} $file 2>/dev/null`; do
3272                                         base=`echo $x | sed "s%/${file}%%"`
3273     if test "x$x" = "x$base"; then
3274       continue;
3275     fi
3276
3277     dir=`${DIRNAME} $x 2>/dev/null`
3278                 exclude=`echo ${dir} | ${GREP} /home`
3279     if test "x$exclude" != "x"; then
3280       continue
3281     fi
3282
3283                     already=`echo \$smart_lib_dir ${DIRS} | ${GREP} ${dir}`
3284     if test "x$already" = "x"; then
3285       DIRS="$DIRS $dir"
3286     fi
3287   done
3288 fi
3289
3290 eval "smart_lib_dir=\"\$smart_lib_dir $DIRS\""
3291
3292
3293
3294 if test "x$LOCATE" != "x"; then
3295         DIRS=
3296   file=libndbm.a
3297
3298   for x in `${LOCATE} $file 2>/dev/null`; do
3299                                         base=`echo $x | sed "s%/${file}%%"`
3300     if test "x$x" = "x$base"; then
3301       continue;
3302     fi
3303
3304     dir=`${DIRNAME} $x 2>/dev/null`
3305                 exclude=`echo ${dir} | ${GREP} /home`
3306     if test "x$exclude" != "x"; then
3307       continue
3308     fi
3309
3310                     already=`echo \$smart_lib_dir ${DIRS} | ${GREP} ${dir}`
3311     if test "x$already" = "x"; then
3312       DIRS="$DIRS $dir"
3313     fi
3314   done
3315 fi
3316
3317 eval "smart_lib_dir=\"\$smart_lib_dir $DIRS\""
3318
3319
3320   for try in $smart_lib_dir /usr/local/lib /opt/lib; do
3321     LIBS="-L$try -lndbm $old_LIBS"
3322     cat >conftest.$ac_ext <<_ACEOF
3323 /* confdefs.h.  */
3324 _ACEOF
3325 cat confdefs.h >>conftest.$ac_ext
3326 cat >>conftest.$ac_ext <<_ACEOF
3327 /* end confdefs.h.  */
3328 extern char dbm_open();
3329 int
3330 main ()
3331 {
3332  dbm_open()
3333   ;
3334   return 0;
3335 }
3336 _ACEOF
3337 rm -f conftest.$ac_objext conftest$ac_exeext
3338 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3339   (eval $ac_link) 2>conftest.er1
3340   ac_status=$?
3341   grep -v '^ *+' conftest.er1 >conftest.err
3342   rm -f conftest.er1
3343   cat conftest.err >&5
3344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3345   (exit $ac_status); } &&
3346          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3347   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3348   (eval $ac_try) 2>&5
3349   ac_status=$?
3350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3351   (exit $ac_status); }; } &&
3352          { ac_try='test -s conftest$ac_exeext'
3353   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3354   (eval $ac_try) 2>&5
3355   ac_status=$?
3356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3357   (exit $ac_status); }; }; then
3358   smart_lib="-L$try -lndbm"
3359 else
3360   echo "$as_me: failed program was:" >&5
3361 sed 's/^/| /' conftest.$ac_ext >&5
3362
3363 fi
3364 rm -f conftest.err conftest.$ac_objext \
3365       conftest$ac_exeext conftest.$ac_ext
3366     if test "x$smart_lib" != "x"; then
3367       break;
3368     fi
3369     LIBS="$old_LIBS"
3370   done
3371 fi
3372
3373 if test "x$smart_lib" != "x"; then
3374   echo "$as_me:$LINENO: result: yes" >&5
3375 echo "${ECHO_T}yes" >&6
3376   eval "ac_cv_lib_${sm_lib_safe}_${sm_func_safe}=yes"
3377   LIBS="$smart_lib $old_LIBS"
3378   SMART_LIBS="$smart_lib $SMART_LIBS"
3379 else
3380   echo "$as_me:$LINENO: result: no" >&5
3381 echo "${ECHO_T}no" >&6
3382 fi
3383
3384                 if test "x$ac_cv_lib_ndbm_dbm_open" != "xyes"; then
3385
3386
3387 sm_lib_safe=`echo "gdbm" | sed 'y%./+-%__p_%'`
3388 sm_func_safe=`echo "dbm_open" | sed 'y%./+-%__p_%'`
3389 echo "$as_me:$LINENO: checking for dbm_open in -lgdbm" >&5
3390 echo $ECHO_N "checking for dbm_open in -lgdbm... $ECHO_C" >&6
3391
3392 old_LIBS="$LIBS"
3393 smart_lib=
3394 smart_lib_dir=
3395
3396 if test "x$smart_try_dir" != "x"; then
3397   for try in $smart_try_dir; do
3398     LIBS="-L$try -lgdbm $old_LIBS"
3399     cat >conftest.$ac_ext <<_ACEOF
3400 /* confdefs.h.  */
3401 _ACEOF
3402 cat confdefs.h >>conftest.$ac_ext
3403 cat >>conftest.$ac_ext <<_ACEOF
3404 /* end confdefs.h.  */
3405 extern char dbm_open();
3406 int
3407 main ()
3408 {
3409  dbm_open()
3410   ;
3411   return 0;
3412 }
3413 _ACEOF
3414 rm -f conftest.$ac_objext conftest$ac_exeext
3415 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3416   (eval $ac_link) 2>conftest.er1
3417   ac_status=$?
3418   grep -v '^ *+' conftest.er1 >conftest.err
3419   rm -f conftest.er1
3420   cat conftest.err >&5
3421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3422   (exit $ac_status); } &&
3423          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3424   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3425   (eval $ac_try) 2>&5
3426   ac_status=$?
3427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3428   (exit $ac_status); }; } &&
3429          { ac_try='test -s conftest$ac_exeext'
3430   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3431   (eval $ac_try) 2>&5
3432   ac_status=$?
3433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3434   (exit $ac_status); }; }; then
3435   smart_lib="-L$try -lgdbm"
3436 else
3437   echo "$as_me: failed program was:" >&5
3438 sed 's/^/| /' conftest.$ac_ext >&5
3439
3440 fi
3441 rm -f conftest.err conftest.$ac_objext \
3442       conftest$ac_exeext conftest.$ac_ext
3443     if test "x$smart_lib" != "x"; then
3444       break;
3445     fi
3446     LIBS="$old_LIBS"
3447   done
3448 fi
3449
3450 if test "x$smart_lib" = "x"; then
3451   LIBS="-lgdbm $old_LIBS"
3452   cat >conftest.$ac_ext <<_ACEOF
3453 /* confdefs.h.  */
3454 _ACEOF
3455 cat confdefs.h >>conftest.$ac_ext
3456 cat >>conftest.$ac_ext <<_ACEOF
3457 /* end confdefs.h.  */
3458 extern char dbm_open();
3459 int
3460 main ()
3461 {
3462  dbm_open()
3463   ;
3464   return 0;
3465 }
3466 _ACEOF
3467 rm -f conftest.$ac_objext conftest$ac_exeext
3468 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3469   (eval $ac_link) 2>conftest.er1
3470   ac_status=$?
3471   grep -v '^ *+' conftest.er1 >conftest.err
3472   rm -f conftest.er1
3473   cat conftest.err >&5
3474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3475   (exit $ac_status); } &&
3476          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3477   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3478   (eval $ac_try) 2>&5
3479   ac_status=$?
3480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3481   (exit $ac_status); }; } &&
3482          { ac_try='test -s conftest$ac_exeext'
3483   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3484   (eval $ac_try) 2>&5
3485   ac_status=$?
3486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3487   (exit $ac_status); }; }; then
3488   smart_lib="-lgdbm"
3489 else
3490   echo "$as_me: failed program was:" >&5
3491 sed 's/^/| /' conftest.$ac_ext >&5
3492
3493 fi
3494 rm -f conftest.err conftest.$ac_objext \
3495       conftest$ac_exeext conftest.$ac_ext
3496   LIBS="$old_LIBS"
3497 fi
3498
3499 if test "x$smart_lib" = "x"; then
3500
3501
3502 if test "x$LOCATE" != "x"; then
3503         DIRS=
3504   file=libgdbm${libltdl_cv_shlibext}
3505
3506   for x in `${LOCATE} $file 2>/dev/null`; do
3507                                         base=`echo $x | sed "s%/${file}%%"`
3508     if test "x$x" = "x$base"; then
3509       continue;
3510     fi
3511
3512     dir=`${DIRNAME} $x 2>/dev/null`
3513                 exclude=`echo ${dir} | ${GREP} /home`
3514     if test "x$exclude" != "x"; then
3515       continue
3516     fi
3517
3518                     already=`echo \$smart_lib_dir ${DIRS} | ${GREP} ${dir}`
3519     if test "x$already" = "x"; then
3520       DIRS="$DIRS $dir"
3521     fi
3522   done
3523 fi
3524
3525 eval "smart_lib_dir=\"\$smart_lib_dir $DIRS\""
3526
3527
3528
3529 if test "x$LOCATE" != "x"; then
3530         DIRS=
3531   file=libgdbm.a
3532
3533   for x in `${LOCATE} $file 2>/dev/null`; do
3534                                         base=`echo $x | sed "s%/${file}%%"`
3535     if test "x$x" = "x$base"; then
3536       continue;
3537     fi
3538
3539     dir=`${DIRNAME} $x 2>/dev/null`
3540                 exclude=`echo ${dir} | ${GREP} /home`
3541     if test "x$exclude" != "x"; then
3542       continue
3543     fi
3544
3545                     already=`echo \$smart_lib_dir ${DIRS} | ${GREP} ${dir}`
3546     if test "x$already" = "x"; then
3547       DIRS="$DIRS $dir"
3548     fi
3549   done
3550 fi
3551
3552 eval "smart_lib_dir=\"\$smart_lib_dir $DIRS\""
3553
3554
3555   for try in $smart_lib_dir /usr/local/lib /opt/lib; do
3556     LIBS="-L$try -lgdbm $old_LIBS"
3557     cat >conftest.$ac_ext <<_ACEOF
3558 /* confdefs.h.  */
3559 _ACEOF
3560 cat confdefs.h >>conftest.$ac_ext
3561 cat >>conftest.$ac_ext <<_ACEOF
3562 /* end confdefs.h.  */
3563 extern char dbm_open();
3564 int
3565 main ()
3566 {
3567  dbm_open()
3568   ;
3569   return 0;
3570 }
3571 _ACEOF
3572 rm -f conftest.$ac_objext conftest$ac_exeext
3573 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3574   (eval $ac_link) 2>conftest.er1
3575   ac_status=$?
3576   grep -v '^ *+' conftest.er1 >conftest.err
3577   rm -f conftest.er1
3578   cat conftest.err >&5
3579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3580   (exit $ac_status); } &&
3581          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3582   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3583   (eval $ac_try) 2>&5
3584   ac_status=$?
3585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3586   (exit $ac_status); }; } &&
3587          { ac_try='test -s conftest$ac_exeext'
3588   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3589   (eval $ac_try) 2>&5
3590   ac_status=$?
3591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3592   (exit $ac_status); }; }; then
3593   smart_lib="-L$try -lgdbm"
3594 else
3595   echo "$as_me: failed program was:" >&5
3596 sed 's/^/| /' conftest.$ac_ext >&5
3597
3598 fi
3599 rm -f conftest.err conftest.$ac_objext \
3600       conftest$ac_exeext conftest.$ac_ext
3601     if test "x$smart_lib" != "x"; then
3602       break;
3603     fi
3604     LIBS="$old_LIBS"
3605   done
3606 fi
3607
3608 if test "x$smart_lib" != "x"; then
3609   echo "$as_me:$LINENO: result: yes" >&5
3610 echo "${ECHO_T}yes" >&6
3611   eval "ac_cv_lib_${sm_lib_safe}_${sm_func_safe}=yes"
3612   LIBS="$smart_lib $old_LIBS"
3613   SMART_LIBS="$smart_lib $SMART_LIBS"
3614 else
3615   echo "$as_me:$LINENO: result: no" >&5
3616 echo "${ECHO_T}no" >&6
3617 fi
3618
3619                         if test "x$ac_cv_lib_gdbm_dbm_open" != "xyes"; then
3620
3621
3622 sm_lib_safe=`echo "gdbm_compat" | sed 'y%./+-%__p_%'`
3623 sm_func_safe=`echo "dbm_open" | sed 'y%./+-%__p_%'`
3624 echo "$as_me:$LINENO: checking for dbm_open in -lgdbm_compat" >&5
3625 echo $ECHO_N "checking for dbm_open in -lgdbm_compat... $ECHO_C" >&6
3626
3627 old_LIBS="$LIBS"
3628 smart_lib=
3629 smart_lib_dir=
3630
3631 if test "x$smart_try_dir" != "x"; then
3632   for try in $smart_try_dir; do
3633     LIBS="-L$try -lgdbm_compat $old_LIBS"
3634     cat >conftest.$ac_ext <<_ACEOF
3635 /* confdefs.h.  */
3636 _ACEOF
3637 cat confdefs.h >>conftest.$ac_ext
3638 cat >>conftest.$ac_ext <<_ACEOF
3639 /* end confdefs.h.  */
3640 extern char dbm_open();
3641 int
3642 main ()
3643 {
3644  dbm_open()
3645   ;
3646   return 0;
3647 }
3648 _ACEOF
3649 rm -f conftest.$ac_objext conftest$ac_exeext
3650 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3651   (eval $ac_link) 2>conftest.er1
3652   ac_status=$?
3653   grep -v '^ *+' conftest.er1 >conftest.err
3654   rm -f conftest.er1
3655   cat conftest.err >&5
3656   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3657   (exit $ac_status); } &&
3658          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3659   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3660   (eval $ac_try) 2>&5
3661   ac_status=$?
3662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3663   (exit $ac_status); }; } &&
3664          { ac_try='test -s conftest$ac_exeext'
3665   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3666   (eval $ac_try) 2>&5
3667   ac_status=$?
3668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3669   (exit $ac_status); }; }; then
3670   smart_lib="-L$try -lgdbm_compat"
3671 else
3672   echo "$as_me: failed program was:" >&5
3673 sed 's/^/| /' conftest.$ac_ext >&5
3674
3675 fi
3676 rm -f conftest.err conftest.$ac_objext \
3677       conftest$ac_exeext conftest.$ac_ext
3678     if test "x$smart_lib" != "x"; then
3679       break;
3680     fi
3681     LIBS="$old_LIBS"
3682   done
3683 fi
3684
3685 if test "x$smart_lib" = "x"; then
3686   LIBS="-lgdbm_compat $old_LIBS"
3687   cat >conftest.$ac_ext <<_ACEOF
3688 /* confdefs.h.  */
3689 _ACEOF
3690 cat confdefs.h >>conftest.$ac_ext
3691 cat >>conftest.$ac_ext <<_ACEOF
3692 /* end confdefs.h.  */
3693 extern char dbm_open();
3694 int
3695 main ()
3696 {
3697  dbm_open()
3698   ;
3699   return 0;
3700 }
3701 _ACEOF
3702 rm -f conftest.$ac_objext conftest$ac_exeext
3703 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3704   (eval $ac_link) 2>conftest.er1
3705   ac_status=$?
3706   grep -v '^ *+' conftest.er1 >conftest.err
3707   rm -f conftest.er1
3708   cat conftest.err >&5
3709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3710   (exit $ac_status); } &&
3711          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3712   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3713   (eval $ac_try) 2>&5
3714   ac_status=$?
3715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3716   (exit $ac_status); }; } &&
3717          { ac_try='test -s conftest$ac_exeext'
3718   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3719   (eval $ac_try) 2>&5
3720   ac_status=$?
3721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3722   (exit $ac_status); }; }; then
3723   smart_lib="-lgdbm_compat"
3724 else
3725   echo "$as_me: failed program was:" >&5
3726 sed 's/^/| /' conftest.$ac_ext >&5
3727
3728 fi
3729 rm -f conftest.err conftest.$ac_objext \
3730       conftest$ac_exeext conftest.$ac_ext
3731   LIBS="$old_LIBS"
3732 fi
3733
3734 if test "x$smart_lib" = "x"; then
3735
3736
3737 if test "x$LOCATE" != "x"; then
3738         DIRS=
3739   file=libgdbm_compat${libltdl_cv_shlibext}
3740
3741   for x in `${LOCATE} $file 2>/dev/null`; do
3742                                         base=`echo $x | sed "s%/${file}%%"`
3743     if test "x$x" = "x$base"; then
3744       continue;
3745     fi
3746
3747     dir=`${DIRNAME} $x 2>/dev/null`
3748                 exclude=`echo ${dir} | ${GREP} /home`
3749     if test "x$exclude" != "x"; then
3750       continue
3751     fi
3752
3753                     already=`echo \$smart_lib_dir ${DIRS} | ${GREP} ${dir}`
3754     if test "x$already" = "x"; then
3755       DIRS="$DIRS $dir"
3756     fi
3757   done
3758 fi
3759
3760 eval "smart_lib_dir=\"\$smart_lib_dir $DIRS\""
3761
3762
3763
3764 if test "x$LOCATE" != "x"; then
3765         DIRS=
3766   file=libgdbm_compat.a
3767
3768   for x in `${LOCATE} $file 2>/dev/null`; do
3769                                         base=`echo $x | sed "s%/${file}%%"`
3770     if test "x$x" = "x$base"; then
3771       continue;
3772     fi
3773
3774     dir=`${DIRNAME} $x 2>/dev/null`
3775                 exclude=`echo ${dir} | ${GREP} /home`
3776     if test "x$exclude" != "x"; then
3777       continue
3778     fi
3779
3780                     already=`echo \$smart_lib_dir ${DIRS} | ${GREP} ${dir}`
3781     if test "x$already" = "x"; then
3782       DIRS="$DIRS $dir"
3783     fi
3784   done
3785 fi
3786
3787 eval "smart_lib_dir=\"\$smart_lib_dir $DIRS\""
3788
3789
3790   for try in $smart_lib_dir /usr/local/lib /opt/lib; do
3791     LIBS="-L$try -lgdbm_compat $old_LIBS"
3792     cat >conftest.$ac_ext <<_ACEOF
3793 /* confdefs.h.  */
3794 _ACEOF
3795 cat confdefs.h >>conftest.$ac_ext
3796 cat >>conftest.$ac_ext <<_ACEOF
3797 /* end confdefs.h.  */
3798 extern char dbm_open();
3799 int
3800 main ()
3801 {
3802  dbm_open()
3803   ;
3804   return 0;
3805 }
3806 _ACEOF
3807 rm -f conftest.$ac_objext conftest$ac_exeext
3808 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3809   (eval $ac_link) 2>conftest.er1
3810   ac_status=$?
3811   grep -v '^ *+' conftest.er1 >conftest.err
3812   rm -f conftest.er1
3813   cat conftest.err >&5
3814   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3815   (exit $ac_status); } &&
3816          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3817   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3818   (eval $ac_try) 2>&5
3819   ac_status=$?
3820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3821   (exit $ac_status); }; } &&
3822          { ac_try='test -s conftest$ac_exeext'
3823   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3824   (eval $ac_try) 2>&5
3825   ac_status=$?
3826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3827   (exit $ac_status); }; }; then
3828   smart_lib="-L$try -lgdbm_compat"
3829 else
3830   echo "$as_me: failed program was:" >&5
3831 sed 's/^/| /' conftest.$ac_ext >&5
3832
3833 fi
3834 rm -f conftest.err conftest.$ac_objext \
3835       conftest$ac_exeext conftest.$ac_ext
3836     if test "x$smart_lib" != "x"; then
3837       break;
3838     fi
3839     LIBS="$old_LIBS"
3840   done
3841 fi
3842
3843 if test "x$smart_lib" != "x"; then
3844   echo "$as_me:$LINENO: result: yes" >&5
3845 echo "${ECHO_T}yes" >&6
3846   eval "ac_cv_lib_${sm_lib_safe}_${sm_func_safe}=yes"
3847   LIBS="$smart_lib $old_LIBS"
3848   SMART_LIBS="$smart_lib $SMART_LIBS"
3849 else
3850   echo "$as_me:$LINENO: result: no" >&5
3851 echo "${ECHO_T}no" >&6
3852 fi
3853
3854                                 if test "x$ac_cv_lib_gdbm_compat_dbm_open" != "xyes"; then
3855                                         fail="$fail (libndbm or libgdbm or libgdbm_compat)"
3856                                 fi
3857                         fi
3858                 fi
3859         fi
3860
3861         targetname=rlm_dbm
3862 else
3863         targetname=
3864         echo \*\*\* module rlm_dbm is disabled.
3865 fi
3866
3867 if test x"$fail" != x""; then
3868         { echo "$as_me:$LINENO: WARNING: FAILURE: rlm_dbm requires: $fail." >&5
3869 echo "$as_me: WARNING: FAILURE: rlm_dbm requires: $fail." >&2;};
3870         if test x"${enable_strict_dependencies}" = x"yes"; then
3871                 { { echo "$as_me:$LINENO: error: set --without-rlm_dbm to disable it explicitly." >&5
3872 echo "$as_me: error: set --without-rlm_dbm to disable it explicitly." >&2;}
3873    { (exit 1); exit 1; }; }
3874         else
3875                 { echo "$as_me:$LINENO: WARNING: silently not building rlm_dbm." >&5
3876 echo "$as_me: WARNING: silently not building rlm_dbm." >&2;}
3877                 targetname=""
3878         fi
3879 fi
3880
3881 if test "x$targetname" != "x"; then
3882         dbm_utils="rlm_dbm_parser rlm_dbm_cat"
3883         dbm_install="rlm_dbm_install"
3884 fi
3885
3886 dbm_ldflags=$SMART_LIBS
3887 dbm_cflags=$SMART_CFLAGS
3888
3889
3890
3891
3892
3893           ac_config_files="$ac_config_files Makefile"
3894 cat >confcache <<\_ACEOF
3895 # This file is a shell script that caches the results of configure
3896 # tests run on this system so they can be shared between configure
3897 # scripts and configure runs, see configure's option --config-cache.
3898 # It is not useful on other systems.  If it contains results you don't
3899 # want to keep, you may remove or edit it.
3900 #
3901 # config.status only pays attention to the cache file if you give it
3902 # the --recheck option to rerun configure.
3903 #
3904 # `ac_cv_env_foo' variables (set or unset) will be overridden when
3905 # loading this file, other *unset* `ac_cv_foo' will be assigned the
3906 # following values.
3907
3908 _ACEOF
3909
3910 # The following way of writing the cache mishandles newlines in values,
3911 # but we know of no workaround that is simple, portable, and efficient.
3912 # So, don't put newlines in cache variables' values.
3913 # Ultrix sh set writes to stderr and can't be redirected directly,
3914 # and sets the high bit in the cache file unless we assign to the vars.
3915 {
3916   (set) 2>&1 |
3917     case `(ac_space=' '; set | grep ac_space) 2>&1` in
3918     *ac_space=\ *)
3919       # `set' does not quote correctly, so add quotes (double-quote
3920       # substitution turns \\\\ into \\, and sed turns \\ into \).
3921       sed -n \
3922         "s/'/'\\\\''/g;
3923           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
3924       ;;
3925     *)
3926       # `set' quotes correctly as required by POSIX, so do not add quotes.
3927       sed -n \
3928         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
3929       ;;
3930     esac;
3931 } |
3932   sed '
3933      t clear
3934      : clear
3935      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
3936      t end
3937      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
3938      : end' >>confcache
3939 if diff $cache_file confcache >/dev/null 2>&1; then :; else
3940   if test -w $cache_file; then
3941     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
3942     cat confcache >$cache_file
3943   else
3944     echo "not updating unwritable cache $cache_file"
3945   fi
3946 fi
3947 rm -f confcache
3948
3949 test "x$prefix" = xNONE && prefix=$ac_default_prefix
3950 # Let make expand exec_prefix.
3951 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
3952
3953 # VPATH may cause trouble with some makes, so we remove $(srcdir),
3954 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
3955 # trailing colons and then remove the whole line if VPATH becomes empty
3956 # (actually we leave an empty line to preserve line numbers).
3957 if test "x$srcdir" = x.; then
3958   ac_vpsub='/^[  ]*VPATH[        ]*=/{
3959 s/:*\$(srcdir):*/:/;
3960 s/:*\${srcdir}:*/:/;
3961 s/:*@srcdir@:*/:/;
3962 s/^\([^=]*=[     ]*\):*/\1/;
3963 s/:*$//;
3964 s/^[^=]*=[       ]*$//;
3965 }'
3966 fi
3967
3968 # Transform confdefs.h into DEFS.
3969 # Protect against shell expansion while executing Makefile rules.
3970 # Protect against Makefile macro expansion.
3971 #
3972 # If the first sed substitution is executed (which looks for macros that
3973 # take arguments), then we branch to the quote section.  Otherwise,
3974 # look for a macro that doesn't take arguments.
3975 cat >confdef2opt.sed <<\_ACEOF
3976 t clear
3977 : clear
3978 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*([^)]*)\)[   ]*\(.*\),-D\1=\2,g
3979 t quote
3980 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\),-D\1=\2,g
3981 t quote
3982 d
3983 : quote
3984 s,[      `~#$^&*(){}\\|;'"<>?],\\&,g
3985 s,\[,\\&,g
3986 s,\],\\&,g
3987 s,\$,$$,g
3988 p
3989 _ACEOF
3990 # We use echo to avoid assuming a particular line-breaking character.
3991 # The extra dot is to prevent the shell from consuming trailing
3992 # line-breaks from the sub-command output.  A line-break within
3993 # single-quotes doesn't work because, if this script is created in a
3994 # platform that uses two characters for line-breaks (e.g., DOS), tr
3995 # would break.
3996 ac_LF_and_DOT=`echo; echo .`
3997 DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
3998 rm -f confdef2opt.sed
3999
4000
4001 ac_libobjs=
4002 ac_ltlibobjs=
4003 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
4004   # 1. Remove the extension, and $U if already installed.
4005   ac_i=`echo "$ac_i" |
4006          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
4007   # 2. Add them.
4008   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
4009   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
4010 done
4011 LIBOBJS=$ac_libobjs
4012
4013 LTLIBOBJS=$ac_ltlibobjs
4014
4015
4016
4017 : ${CONFIG_STATUS=./config.status}
4018 ac_clean_files_save=$ac_clean_files
4019 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
4020 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
4021 echo "$as_me: creating $CONFIG_STATUS" >&6;}
4022 cat >$CONFIG_STATUS <<_ACEOF
4023 #! $SHELL
4024 # Generated by $as_me.
4025 # Run this file to recreate the current configuration.
4026 # Compiler output produced by configure, useful for debugging
4027 # configure, is in config.log if it exists.
4028
4029 debug=false
4030 ac_cs_recheck=false
4031 ac_cs_silent=false
4032 SHELL=\${CONFIG_SHELL-$SHELL}
4033 _ACEOF
4034
4035 cat >>$CONFIG_STATUS <<\_ACEOF
4036 ## --------------------- ##
4037 ## M4sh Initialization.  ##
4038 ## --------------------- ##
4039
4040 # Be Bourne compatible
4041 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
4042   emulate sh
4043   NULLCMD=:
4044   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
4045   # is contrary to our usage.  Disable this feature.
4046   alias -g '${1+"$@"}'='"$@"'
4047 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
4048   set -o posix
4049 fi
4050 DUALCASE=1; export DUALCASE # for MKS sh
4051
4052 # Support unset when possible.
4053 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4054   as_unset=unset
4055 else
4056   as_unset=false
4057 fi
4058
4059
4060 # Work around bugs in pre-3.0 UWIN ksh.
4061 $as_unset ENV MAIL MAILPATH
4062 PS1='$ '
4063 PS2='> '
4064 PS4='+ '
4065
4066 # NLS nuisances.
4067 for as_var in \
4068   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
4069   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
4070   LC_TELEPHONE LC_TIME
4071 do
4072   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
4073     eval $as_var=C; export $as_var
4074   else
4075     $as_unset $as_var
4076   fi
4077 done
4078
4079 # Required to use basename.
4080 if expr a : '\(a\)' >/dev/null 2>&1; then
4081   as_expr=expr
4082 else
4083   as_expr=false
4084 fi
4085
4086 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
4087   as_basename=basename
4088 else
4089   as_basename=false
4090 fi
4091
4092
4093 # Name of the executable.
4094 as_me=`$as_basename "$0" ||
4095 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
4096          X"$0" : 'X\(//\)$' \| \
4097          X"$0" : 'X\(/\)$' \| \
4098          .     : '\(.\)' 2>/dev/null ||
4099 echo X/"$0" |
4100     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
4101           /^X\/\(\/\/\)$/{ s//\1/; q; }
4102           /^X\/\(\/\).*/{ s//\1/; q; }
4103           s/.*/./; q'`
4104
4105
4106 # PATH needs CR, and LINENO needs CR and PATH.
4107 # Avoid depending upon Character Ranges.
4108 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
4109 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
4110 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
4111 as_cr_digits='0123456789'
4112 as_cr_alnum=$as_cr_Letters$as_cr_digits
4113
4114 # The user is always right.
4115 if test "${PATH_SEPARATOR+set}" != set; then
4116   echo "#! /bin/sh" >conf$$.sh
4117   echo  "exit 0"   >>conf$$.sh
4118   chmod +x conf$$.sh
4119   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4120     PATH_SEPARATOR=';'
4121   else
4122     PATH_SEPARATOR=:
4123   fi
4124   rm -f conf$$.sh
4125 fi
4126
4127
4128   as_lineno_1=$LINENO
4129   as_lineno_2=$LINENO
4130   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
4131   test "x$as_lineno_1" != "x$as_lineno_2" &&
4132   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
4133   # Find who we are.  Look in the path if we contain no path at all
4134   # relative or not.
4135   case $0 in
4136     *[\\/]* ) as_myself=$0 ;;
4137     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4138 for as_dir in $PATH
4139 do
4140   IFS=$as_save_IFS
4141   test -z "$as_dir" && as_dir=.
4142   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
4143 done
4144
4145        ;;
4146   esac
4147   # We did not find ourselves, most probably we were run as `sh COMMAND'
4148   # in which case we are not to be found in the path.
4149   if test "x$as_myself" = x; then
4150     as_myself=$0
4151   fi
4152   if test ! -f "$as_myself"; then
4153     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
4154 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
4155    { (exit 1); exit 1; }; }
4156   fi
4157   case $CONFIG_SHELL in
4158   '')
4159     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4160 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
4161 do
4162   IFS=$as_save_IFS
4163   test -z "$as_dir" && as_dir=.
4164   for as_base in sh bash ksh sh5; do
4165          case $as_dir in
4166          /*)
4167            if ("$as_dir/$as_base" -c '
4168   as_lineno_1=$LINENO
4169   as_lineno_2=$LINENO
4170   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
4171   test "x$as_lineno_1" != "x$as_lineno_2" &&
4172   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
4173              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
4174              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
4175              CONFIG_SHELL=$as_dir/$as_base
4176              export CONFIG_SHELL
4177              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
4178            fi;;
4179          esac
4180        done
4181 done
4182 ;;
4183   esac
4184
4185   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
4186   # uniformly replaced by the line number.  The first 'sed' inserts a
4187   # line-number line before each line; the second 'sed' does the real
4188   # work.  The second script uses 'N' to pair each line-number line
4189   # with the numbered line, and appends trailing '-' during
4190   # substitution so that $LINENO is not a special case at line end.
4191   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
4192   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
4193   sed '=' <$as_myself |
4194     sed '
4195       N
4196       s,$,-,
4197       : loop
4198       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
4199       t loop
4200       s,-$,,
4201       s,^['$as_cr_digits']*\n,,
4202     ' >$as_me.lineno &&
4203   chmod +x $as_me.lineno ||
4204     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
4205 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
4206    { (exit 1); exit 1; }; }
4207
4208   # Don't try to exec as it changes $[0], causing all sort of problems
4209   # (the dirname of $[0] is not the place where we might find the
4210   # original and so on.  Autoconf is especially sensible to this).
4211   . ./$as_me.lineno
4212   # Exit status is that of the last command.
4213   exit
4214 }
4215
4216
4217 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
4218   *c*,-n*) ECHO_N= ECHO_C='
4219 ' ECHO_T='      ' ;;
4220   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
4221   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
4222 esac
4223
4224 if expr a : '\(a\)' >/dev/null 2>&1; then
4225   as_expr=expr
4226 else
4227   as_expr=false
4228 fi
4229
4230 rm -f conf$$ conf$$.exe conf$$.file
4231 echo >conf$$.file
4232 if ln -s conf$$.file conf$$ 2>/dev/null; then
4233   # We could just check for DJGPP; but this test a) works b) is more generic
4234   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
4235   if test -f conf$$.exe; then
4236     # Don't use ln at all; we don't have any links
4237     as_ln_s='cp -p'
4238   else
4239     as_ln_s='ln -s'
4240   fi
4241 elif ln conf$$.file conf$$ 2>/dev/null; then
4242   as_ln_s=ln
4243 else
4244   as_ln_s='cp -p'
4245 fi
4246 rm -f conf$$ conf$$.exe conf$$.file
4247
4248 if mkdir -p . 2>/dev/null; then
4249   as_mkdir_p=:
4250 else
4251   test -d ./-p && rmdir ./-p
4252   as_mkdir_p=false
4253 fi
4254
4255 as_executable_p="test -f"
4256
4257 # Sed expression to map a string onto a valid CPP name.
4258 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
4259
4260 # Sed expression to map a string onto a valid variable name.
4261 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
4262
4263
4264 # IFS
4265 # We need space, tab and new line, in precisely that order.
4266 as_nl='
4267 '
4268 IFS="   $as_nl"
4269
4270 # CDPATH.
4271 $as_unset CDPATH
4272
4273 exec 6>&1
4274
4275 # Open the log real soon, to keep \$[0] and so on meaningful, and to
4276 # report actual input values of CONFIG_FILES etc. instead of their
4277 # values after options handling.  Logging --version etc. is OK.
4278 exec 5>>config.log
4279 {
4280   echo
4281   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
4282 ## Running $as_me. ##
4283 _ASBOX
4284 } >&5
4285 cat >&5 <<_CSEOF
4286
4287 This file was extended by $as_me, which was
4288 generated by GNU Autoconf 2.59.  Invocation command line was
4289
4290   CONFIG_FILES    = $CONFIG_FILES
4291   CONFIG_HEADERS  = $CONFIG_HEADERS
4292   CONFIG_LINKS    = $CONFIG_LINKS
4293   CONFIG_COMMANDS = $CONFIG_COMMANDS
4294   $ $0 $@
4295
4296 _CSEOF
4297 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
4298 echo >&5
4299 _ACEOF
4300
4301 # Files that config.status was made for.
4302 if test -n "$ac_config_files"; then
4303   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
4304 fi
4305
4306 if test -n "$ac_config_headers"; then
4307   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
4308 fi
4309
4310 if test -n "$ac_config_links"; then
4311   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
4312 fi
4313
4314 if test -n "$ac_config_commands"; then
4315   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
4316 fi
4317
4318 cat >>$CONFIG_STATUS <<\_ACEOF
4319
4320 ac_cs_usage="\
4321 \`$as_me' instantiates files from templates according to the
4322 current configuration.
4323
4324 Usage: $0 [OPTIONS] [FILE]...
4325
4326   -h, --help       print this help, then exit
4327   -V, --version    print version number, then exit
4328   -q, --quiet      do not print progress messages
4329   -d, --debug      don't remove temporary files
4330       --recheck    update $as_me by reconfiguring in the same conditions
4331   --file=FILE[:TEMPLATE]
4332                    instantiate the configuration file FILE
4333
4334 Configuration files:
4335 $config_files
4336
4337 Report bugs to <bug-autoconf@gnu.org>."
4338 _ACEOF
4339
4340 cat >>$CONFIG_STATUS <<_ACEOF
4341 ac_cs_version="\\
4342 config.status
4343 configured by $0, generated by GNU Autoconf 2.59,
4344   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
4345
4346 Copyright (C) 2003 Free Software Foundation, Inc.
4347 This config.status script is free software; the Free Software Foundation
4348 gives unlimited permission to copy, distribute and modify it."
4349 srcdir=$srcdir
4350 _ACEOF
4351
4352 cat >>$CONFIG_STATUS <<\_ACEOF
4353 # If no file are specified by the user, then we need to provide default
4354 # value.  By we need to know if files were specified by the user.
4355 ac_need_defaults=:
4356 while test $# != 0
4357 do
4358   case $1 in
4359   --*=*)
4360     ac_option=`expr "x$1" : 'x\([^=]*\)='`
4361     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
4362     ac_shift=:
4363     ;;
4364   -*)
4365     ac_option=$1
4366     ac_optarg=$2
4367     ac_shift=shift
4368     ;;
4369   *) # This is not an option, so the user has probably given explicit
4370      # arguments.
4371      ac_option=$1
4372      ac_need_defaults=false;;
4373   esac
4374
4375   case $ac_option in
4376   # Handling of the options.
4377 _ACEOF
4378 cat >>$CONFIG_STATUS <<\_ACEOF
4379   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
4380     ac_cs_recheck=: ;;
4381   --version | --vers* | -V )
4382     echo "$ac_cs_version"; exit 0 ;;
4383   --he | --h)
4384     # Conflict between --help and --header
4385     { { echo "$as_me:$LINENO: error: ambiguous option: $1
4386 Try \`$0 --help' for more information." >&5
4387 echo "$as_me: error: ambiguous option: $1
4388 Try \`$0 --help' for more information." >&2;}
4389    { (exit 1); exit 1; }; };;
4390   --help | --hel | -h )
4391     echo "$ac_cs_usage"; exit 0 ;;
4392   --debug | --d* | -d )
4393     debug=: ;;
4394   --file | --fil | --fi | --f )
4395     $ac_shift
4396     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
4397     ac_need_defaults=false;;
4398   --header | --heade | --head | --hea )
4399     $ac_shift
4400     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
4401     ac_need_defaults=false;;
4402   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
4403   | -silent | --silent | --silen | --sile | --sil | --si | --s)
4404     ac_cs_silent=: ;;
4405
4406   # This is an error.
4407   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
4408 Try \`$0 --help' for more information." >&5
4409 echo "$as_me: error: unrecognized option: $1
4410 Try \`$0 --help' for more information." >&2;}
4411    { (exit 1); exit 1; }; } ;;
4412
4413   *) ac_config_targets="$ac_config_targets $1" ;;
4414
4415   esac
4416   shift
4417 done
4418
4419 ac_configure_extra_args=
4420
4421 if $ac_cs_silent; then
4422   exec 6>/dev/null
4423   ac_configure_extra_args="$ac_configure_extra_args --silent"
4424 fi
4425
4426 _ACEOF
4427 cat >>$CONFIG_STATUS <<_ACEOF
4428 if \$ac_cs_recheck; then
4429   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
4430   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
4431 fi
4432
4433 _ACEOF
4434
4435
4436
4437
4438
4439 cat >>$CONFIG_STATUS <<\_ACEOF
4440 for ac_config_target in $ac_config_targets
4441 do
4442   case "$ac_config_target" in
4443   # Handling of arguments.
4444   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
4445   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
4446 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
4447    { (exit 1); exit 1; }; };;
4448   esac
4449 done
4450
4451 # If the user did not use the arguments to specify the items to instantiate,
4452 # then the envvar interface is used.  Set only those that are not.
4453 # We use the long form for the default assignment because of an extremely
4454 # bizarre bug on SunOS 4.1.3.
4455 if $ac_need_defaults; then
4456   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
4457 fi
4458
4459 # Have a temporary directory for convenience.  Make it in the build tree
4460 # simply because there is no reason to put it here, and in addition,
4461 # creating and moving files from /tmp can sometimes cause problems.
4462 # Create a temporary directory, and hook for its removal unless debugging.
4463 $debug ||
4464 {
4465   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
4466   trap '{ (exit 1); exit 1; }' 1 2 13 15
4467 }
4468
4469 # Create a (secure) tmp directory for tmp files.
4470
4471 {
4472   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
4473   test -n "$tmp" && test -d "$tmp"
4474 }  ||
4475 {
4476   tmp=./confstat$$-$RANDOM
4477   (umask 077 && mkdir $tmp)
4478 } ||
4479 {
4480    echo "$me: cannot create a temporary directory in ." >&2
4481    { (exit 1); exit 1; }
4482 }
4483
4484 _ACEOF
4485
4486 cat >>$CONFIG_STATUS <<_ACEOF
4487
4488 #
4489 # CONFIG_FILES section.
4490 #
4491
4492 # No need to generate the scripts if there are no CONFIG_FILES.
4493 # This happens for instance when ./config.status config.h
4494 if test -n "\$CONFIG_FILES"; then
4495   # Protect against being on the right side of a sed subst in config.status.
4496   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
4497    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
4498 s,@SHELL@,$SHELL,;t t
4499 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
4500 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
4501 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
4502 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
4503 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
4504 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
4505 s,@exec_prefix@,$exec_prefix,;t t
4506 s,@prefix@,$prefix,;t t
4507 s,@program_transform_name@,$program_transform_name,;t t
4508 s,@bindir@,$bindir,;t t
4509 s,@sbindir@,$sbindir,;t t
4510 s,@libexecdir@,$libexecdir,;t t
4511 s,@datadir@,$datadir,;t t
4512 s,@sysconfdir@,$sysconfdir,;t t
4513 s,@sharedstatedir@,$sharedstatedir,;t t
4514 s,@localstatedir@,$localstatedir,;t t
4515 s,@libdir@,$libdir,;t t
4516 s,@includedir@,$includedir,;t t
4517 s,@oldincludedir@,$oldincludedir,;t t
4518 s,@infodir@,$infodir,;t t
4519 s,@mandir@,$mandir,;t t
4520 s,@build_alias@,$build_alias,;t t
4521 s,@host_alias@,$host_alias,;t t
4522 s,@target_alias@,$target_alias,;t t
4523 s,@DEFS@,$DEFS,;t t
4524 s,@ECHO_C@,$ECHO_C,;t t
4525 s,@ECHO_N@,$ECHO_N,;t t
4526 s,@ECHO_T@,$ECHO_T,;t t
4527 s,@LIBS@,$LIBS,;t t
4528 s,@CC@,$CC,;t t
4529 s,@CFLAGS@,$CFLAGS,;t t
4530 s,@LDFLAGS@,$LDFLAGS,;t t
4531 s,@CPPFLAGS@,$CPPFLAGS,;t t
4532 s,@ac_ct_CC@,$ac_ct_CC,;t t
4533 s,@EXEEXT@,$EXEEXT,;t t
4534 s,@OBJEXT@,$OBJEXT,;t t
4535 s,@CPP@,$CPP,;t t
4536 s,@dbm_ldflags@,$dbm_ldflags,;t t
4537 s,@dbm_cflags@,$dbm_cflags,;t t
4538 s,@targetname@,$targetname,;t t
4539 s,@dbm_utils@,$dbm_utils,;t t
4540 s,@dbm_install@,$dbm_install,;t t
4541 s,@LIBOBJS@,$LIBOBJS,;t t
4542 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
4543 CEOF
4544
4545 _ACEOF
4546
4547   cat >>$CONFIG_STATUS <<\_ACEOF
4548   # Split the substitutions into bite-sized pieces for seds with
4549   # small command number limits, like on Digital OSF/1 and HP-UX.
4550   ac_max_sed_lines=48
4551   ac_sed_frag=1 # Number of current file.
4552   ac_beg=1 # First line for current file.
4553   ac_end=$ac_max_sed_lines # Line after last line for current file.
4554   ac_more_lines=:
4555   ac_sed_cmds=
4556   while $ac_more_lines; do
4557     if test $ac_beg -gt 1; then
4558       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
4559     else
4560       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
4561     fi
4562     if test ! -s $tmp/subs.frag; then
4563       ac_more_lines=false
4564     else
4565       # The purpose of the label and of the branching condition is to
4566       # speed up the sed processing (if there are no `@' at all, there
4567       # is no need to browse any of the substitutions).
4568       # These are the two extra sed commands mentioned above.
4569       (echo ':t
4570   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
4571       if test -z "$ac_sed_cmds"; then
4572         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
4573       else
4574         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
4575       fi
4576       ac_sed_frag=`expr $ac_sed_frag + 1`
4577       ac_beg=$ac_end
4578       ac_end=`expr $ac_end + $ac_max_sed_lines`
4579     fi
4580   done
4581   if test -z "$ac_sed_cmds"; then
4582     ac_sed_cmds=cat
4583   fi
4584 fi # test -n "$CONFIG_FILES"
4585
4586 _ACEOF
4587 cat >>$CONFIG_STATUS <<\_ACEOF
4588 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
4589   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4590   case $ac_file in
4591   - | *:- | *:-:* ) # input from stdin
4592         cat >$tmp/stdin
4593         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
4594         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
4595   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
4596         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
4597   * )   ac_file_in=$ac_file.in ;;
4598   esac
4599
4600   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
4601   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
4602 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4603          X"$ac_file" : 'X\(//\)[^/]' \| \
4604          X"$ac_file" : 'X\(//\)$' \| \
4605          X"$ac_file" : 'X\(/\)' \| \
4606          .     : '\(.\)' 2>/dev/null ||
4607 echo X"$ac_file" |
4608     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
4609           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
4610           /^X\(\/\/\)$/{ s//\1/; q; }
4611           /^X\(\/\).*/{ s//\1/; q; }
4612           s/.*/./; q'`
4613   { if $as_mkdir_p; then
4614     mkdir -p "$ac_dir"
4615   else
4616     as_dir="$ac_dir"
4617     as_dirs=
4618     while test ! -d "$as_dir"; do
4619       as_dirs="$as_dir $as_dirs"
4620       as_dir=`(dirname "$as_dir") 2>/dev/null ||
4621 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4622          X"$as_dir" : 'X\(//\)[^/]' \| \
4623          X"$as_dir" : 'X\(//\)$' \| \
4624          X"$as_dir" : 'X\(/\)' \| \
4625          .     : '\(.\)' 2>/dev/null ||
4626 echo X"$as_dir" |
4627     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
4628           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
4629           /^X\(\/\/\)$/{ s//\1/; q; }
4630           /^X\(\/\).*/{ s//\1/; q; }
4631           s/.*/./; q'`
4632     done
4633     test ! -n "$as_dirs" || mkdir $as_dirs
4634   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
4635 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
4636    { (exit 1); exit 1; }; }; }
4637
4638   ac_builddir=.
4639
4640 if test "$ac_dir" != .; then
4641   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
4642   # A "../" for each directory in $ac_dir_suffix.
4643   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
4644 else
4645   ac_dir_suffix= ac_top_builddir=
4646 fi
4647
4648 case $srcdir in
4649   .)  # No --srcdir option.  We are building in place.
4650     ac_srcdir=.
4651     if test -z "$ac_top_builddir"; then
4652        ac_top_srcdir=.
4653     else
4654        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
4655     fi ;;
4656   [\\/]* | ?:[\\/]* )  # Absolute path.
4657     ac_srcdir=$srcdir$ac_dir_suffix;
4658     ac_top_srcdir=$srcdir ;;
4659   *) # Relative path.
4660     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
4661     ac_top_srcdir=$ac_top_builddir$srcdir ;;
4662 esac
4663
4664 # Do not use `cd foo && pwd` to compute absolute paths, because
4665 # the directories may not exist.
4666 case `pwd` in
4667 .) ac_abs_builddir="$ac_dir";;
4668 *)
4669   case "$ac_dir" in
4670   .) ac_abs_builddir=`pwd`;;
4671   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
4672   *) ac_abs_builddir=`pwd`/"$ac_dir";;
4673   esac;;
4674 esac
4675 case $ac_abs_builddir in
4676 .) ac_abs_top_builddir=${ac_top_builddir}.;;
4677 *)
4678   case ${ac_top_builddir}. in
4679   .) ac_abs_top_builddir=$ac_abs_builddir;;
4680   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
4681   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
4682   esac;;
4683 esac
4684 case $ac_abs_builddir in
4685 .) ac_abs_srcdir=$ac_srcdir;;
4686 *)
4687   case $ac_srcdir in
4688   .) ac_abs_srcdir=$ac_abs_builddir;;
4689   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
4690   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
4691   esac;;
4692 esac
4693 case $ac_abs_builddir in
4694 .) ac_abs_top_srcdir=$ac_top_srcdir;;
4695 *)
4696   case $ac_top_srcdir in
4697   .) ac_abs_top_srcdir=$ac_abs_builddir;;
4698   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
4699   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
4700   esac;;
4701 esac
4702
4703
4704
4705   # Let's still pretend it is `configure' which instantiates (i.e., don't
4706   # use $as_me), people would be surprised to read:
4707   #    /* config.h.  Generated by config.status.  */
4708   if test x"$ac_file" = x-; then
4709     configure_input=
4710   else
4711     configure_input="$ac_file.  "
4712   fi
4713   configure_input=$configure_input"Generated from `echo $ac_file_in |
4714                                      sed 's,.*/,,'` by configure."
4715
4716   # First look for the input files in the build tree, otherwise in the
4717   # src tree.
4718   ac_file_inputs=`IFS=:
4719     for f in $ac_file_in; do
4720       case $f in
4721       -) echo $tmp/stdin ;;
4722       [\\/$]*)
4723          # Absolute (can't be DOS-style, as IFS=:)
4724          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
4725 echo "$as_me: error: cannot find input file: $f" >&2;}
4726    { (exit 1); exit 1; }; }
4727          echo "$f";;
4728       *) # Relative
4729          if test -f "$f"; then
4730            # Build tree
4731            echo "$f"
4732          elif test -f "$srcdir/$f"; then
4733            # Source tree
4734            echo "$srcdir/$f"
4735          else
4736            # /dev/null tree
4737            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
4738 echo "$as_me: error: cannot find input file: $f" >&2;}
4739    { (exit 1); exit 1; }; }
4740          fi;;
4741       esac
4742     done` || { (exit 1); exit 1; }
4743
4744   if test x"$ac_file" != x-; then
4745     { echo "$as_me:$LINENO: creating $ac_file" >&5
4746 echo "$as_me: creating $ac_file" >&6;}
4747     rm -f "$ac_file"
4748   fi
4749 _ACEOF
4750 cat >>$CONFIG_STATUS <<_ACEOF
4751   sed "$ac_vpsub
4752 $extrasub
4753 _ACEOF
4754 cat >>$CONFIG_STATUS <<\_ACEOF
4755 :t
4756 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
4757 s,@configure_input@,$configure_input,;t t
4758 s,@srcdir@,$ac_srcdir,;t t
4759 s,@abs_srcdir@,$ac_abs_srcdir,;t t
4760 s,@top_srcdir@,$ac_top_srcdir,;t t
4761 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
4762 s,@builddir@,$ac_builddir,;t t
4763 s,@abs_builddir@,$ac_abs_builddir,;t t
4764 s,@top_builddir@,$ac_top_builddir,;t t
4765 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
4766 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
4767   rm -f $tmp/stdin
4768   if test x"$ac_file" != x-; then
4769     mv $tmp/out $ac_file
4770   else
4771     cat $tmp/out
4772     rm -f $tmp/out
4773   fi
4774
4775 done
4776 _ACEOF
4777
4778 cat >>$CONFIG_STATUS <<\_ACEOF
4779
4780 { (exit 0); exit 0; }
4781 _ACEOF
4782 chmod +x $CONFIG_STATUS
4783 ac_clean_files=$ac_clean_files_save
4784
4785
4786 # configure is writing to config.log, and then calls config.status.
4787 # config.status does its own redirection, appending to config.log.
4788 # Unfortunately, on DOS this fails, as config.log is still kept open
4789 # by configure, so config.status won't be able to write to it; its
4790 # output is simply discarded.  So we exec the FD to /dev/null,
4791 # effectively closing config.log, so it can be properly (re)opened and
4792 # appended to by config.status.  When coming back to configure, we
4793 # need to make the FD available again.
4794 if test "$no_create" != yes; then
4795   ac_cs_success=:
4796   ac_config_status_args=
4797   test "$silent" = yes &&
4798     ac_config_status_args="$ac_config_status_args --quiet"
4799   exec 5>/dev/null
4800   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
4801   exec 5>>config.log
4802   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
4803   # would make configure fail if this is the last instruction.
4804   $ac_cs_success || { (exit 1); exit 1; }
4805 fi
4806