backport from HEAD
[freeradius.git] / src / modules / rlm_dbm / configure
1 #! /bin/sh
2
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.13 
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
6 #
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9
10 # Defaults:
11 ac_help=
12 ac_default_prefix=/usr/local
13 # Any additions from configure.in:
14 ac_help="$ac_help
15   --with-rlm-dbm-lib-dir=DIR       Directory for DBM library files []"
16 ac_help="$ac_help
17   --with-rlm-dbm-include-dir=DIR   Directory for DBM include files []"
18
19 # Initialize some variables set by options.
20 # The variables have the same names as the options, with
21 # dashes changed to underlines.
22 build=NONE
23 cache_file=./config.cache
24 exec_prefix=NONE
25 host=NONE
26 no_create=
27 nonopt=NONE
28 no_recursion=
29 prefix=NONE
30 program_prefix=NONE
31 program_suffix=NONE
32 program_transform_name=s,x,x,
33 silent=
34 site=
35 srcdir=
36 target=NONE
37 verbose=
38 x_includes=NONE
39 x_libraries=NONE
40 bindir='${exec_prefix}/bin'
41 sbindir='${exec_prefix}/sbin'
42 libexecdir='${exec_prefix}/libexec'
43 datadir='${prefix}/share'
44 sysconfdir='${prefix}/etc'
45 sharedstatedir='${prefix}/com'
46 localstatedir='${prefix}/var'
47 libdir='${exec_prefix}/lib'
48 includedir='${prefix}/include'
49 oldincludedir='/usr/include'
50 infodir='${prefix}/info'
51 mandir='${prefix}/man'
52
53 # Initialize some other variables.
54 subdirs=
55 MFLAGS= MAKEFLAGS=
56 SHELL=${CONFIG_SHELL-/bin/sh}
57 # Maximum number of lines to put in a shell here document.
58 ac_max_here_lines=12
59
60 ac_prev=
61 for ac_option
62 do
63
64   # If the previous option needs an argument, assign it.
65   if test -n "$ac_prev"; then
66     eval "$ac_prev=\$ac_option"
67     ac_prev=
68     continue
69   fi
70
71   case "$ac_option" in
72   -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
73   *) ac_optarg= ;;
74   esac
75
76   # Accept the important Cygnus configure options, so we can diagnose typos.
77
78   case "$ac_option" in
79
80   -bindir | --bindir | --bindi | --bind | --bin | --bi)
81     ac_prev=bindir ;;
82   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
83     bindir="$ac_optarg" ;;
84
85   -build | --build | --buil | --bui | --bu)
86     ac_prev=build ;;
87   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
88     build="$ac_optarg" ;;
89
90   -cache-file | --cache-file | --cache-fil | --cache-fi \
91   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
92     ac_prev=cache_file ;;
93   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
94   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
95     cache_file="$ac_optarg" ;;
96
97   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
98     ac_prev=datadir ;;
99   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
100   | --da=*)
101     datadir="$ac_optarg" ;;
102
103   -disable-* | --disable-*)
104     ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
105     # Reject names that are not valid shell variable names.
106     if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
107       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
108     fi
109     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
110     eval "enable_${ac_feature}=no" ;;
111
112   -enable-* | --enable-*)
113     ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
114     # Reject names that are not valid shell variable names.
115     if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
116       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
117     fi
118     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
119     case "$ac_option" in
120       *=*) ;;
121       *) ac_optarg=yes ;;
122     esac
123     eval "enable_${ac_feature}='$ac_optarg'" ;;
124
125   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
126   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
127   | --exec | --exe | --ex)
128     ac_prev=exec_prefix ;;
129   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
130   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
131   | --exec=* | --exe=* | --ex=*)
132     exec_prefix="$ac_optarg" ;;
133
134   -gas | --gas | --ga | --g)
135     # Obsolete; use --with-gas.
136     with_gas=yes ;;
137
138   -help | --help | --hel | --he)
139     # Omit some internal or obsolete options to make the list less imposing.
140     # This message is too long to be a string in the A/UX 3.1 sh.
141     cat << EOF
142 Usage: configure [options] [host]
143 Options: [defaults in brackets after descriptions]
144 Configuration:
145   --cache-file=FILE       cache test results in FILE
146   --help                  print this message
147   --no-create             do not create output files
148   --quiet, --silent       do not print \`checking...' messages
149   --version               print the version of autoconf that created configure
150 Directory and file names:
151   --prefix=PREFIX         install architecture-independent files in PREFIX
152                           [$ac_default_prefix]
153   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
154                           [same as prefix]
155   --bindir=DIR            user executables in DIR [EPREFIX/bin]
156   --sbindir=DIR           system admin executables in DIR [EPREFIX/sbin]
157   --libexecdir=DIR        program executables in DIR [EPREFIX/libexec]
158   --datadir=DIR           read-only architecture-independent data in DIR
159                           [PREFIX/share]
160   --sysconfdir=DIR        read-only single-machine data in DIR [PREFIX/etc]
161   --sharedstatedir=DIR    modifiable architecture-independent data in DIR
162                           [PREFIX/com]
163   --localstatedir=DIR     modifiable single-machine data in DIR [PREFIX/var]
164   --libdir=DIR            object code libraries in DIR [EPREFIX/lib]
165   --includedir=DIR        C header files in DIR [PREFIX/include]
166   --oldincludedir=DIR     C header files for non-gcc in DIR [/usr/include]
167   --infodir=DIR           info documentation in DIR [PREFIX/info]
168   --mandir=DIR            man documentation in DIR [PREFIX/man]
169   --srcdir=DIR            find the sources in DIR [configure dir or ..]
170   --program-prefix=PREFIX prepend PREFIX to installed program names
171   --program-suffix=SUFFIX append SUFFIX to installed program names
172   --program-transform-name=PROGRAM
173                           run sed PROGRAM on installed program names
174 EOF
175     cat << EOF
176 Host type:
177   --build=BUILD           configure for building on BUILD [BUILD=HOST]
178   --host=HOST             configure for HOST [guessed]
179   --target=TARGET         configure for TARGET [TARGET=HOST]
180 Features and packages:
181   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
182   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
183   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
184   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
185   --x-includes=DIR        X include files are in DIR
186   --x-libraries=DIR       X library files are in DIR
187 EOF
188     if test -n "$ac_help"; then
189       echo "--enable and --with options recognized:$ac_help"
190     fi
191     exit 0 ;;
192
193   -host | --host | --hos | --ho)
194     ac_prev=host ;;
195   -host=* | --host=* | --hos=* | --ho=*)
196     host="$ac_optarg" ;;
197
198   -includedir | --includedir | --includedi | --included | --include \
199   | --includ | --inclu | --incl | --inc)
200     ac_prev=includedir ;;
201   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
202   | --includ=* | --inclu=* | --incl=* | --inc=*)
203     includedir="$ac_optarg" ;;
204
205   -infodir | --infodir | --infodi | --infod | --info | --inf)
206     ac_prev=infodir ;;
207   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
208     infodir="$ac_optarg" ;;
209
210   -libdir | --libdir | --libdi | --libd)
211     ac_prev=libdir ;;
212   -libdir=* | --libdir=* | --libdi=* | --libd=*)
213     libdir="$ac_optarg" ;;
214
215   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
216   | --libexe | --libex | --libe)
217     ac_prev=libexecdir ;;
218   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
219   | --libexe=* | --libex=* | --libe=*)
220     libexecdir="$ac_optarg" ;;
221
222   -localstatedir | --localstatedir | --localstatedi | --localstated \
223   | --localstate | --localstat | --localsta | --localst \
224   | --locals | --local | --loca | --loc | --lo)
225     ac_prev=localstatedir ;;
226   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
227   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
228   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
229     localstatedir="$ac_optarg" ;;
230
231   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
232     ac_prev=mandir ;;
233   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
234     mandir="$ac_optarg" ;;
235
236   -nfp | --nfp | --nf)
237     # Obsolete; use --without-fp.
238     with_fp=no ;;
239
240   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
241   | --no-cr | --no-c)
242     no_create=yes ;;
243
244   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
245   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
246     no_recursion=yes ;;
247
248   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
249   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
250   | --oldin | --oldi | --old | --ol | --o)
251     ac_prev=oldincludedir ;;
252   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
253   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
254   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
255     oldincludedir="$ac_optarg" ;;
256
257   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
258     ac_prev=prefix ;;
259   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
260     prefix="$ac_optarg" ;;
261
262   -program-prefix | --program-prefix | --program-prefi | --program-pref \
263   | --program-pre | --program-pr | --program-p)
264     ac_prev=program_prefix ;;
265   -program-prefix=* | --program-prefix=* | --program-prefi=* \
266   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
267     program_prefix="$ac_optarg" ;;
268
269   -program-suffix | --program-suffix | --program-suffi | --program-suff \
270   | --program-suf | --program-su | --program-s)
271     ac_prev=program_suffix ;;
272   -program-suffix=* | --program-suffix=* | --program-suffi=* \
273   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
274     program_suffix="$ac_optarg" ;;
275
276   -program-transform-name | --program-transform-name \
277   | --program-transform-nam | --program-transform-na \
278   | --program-transform-n | --program-transform- \
279   | --program-transform | --program-transfor \
280   | --program-transfo | --program-transf \
281   | --program-trans | --program-tran \
282   | --progr-tra | --program-tr | --program-t)
283     ac_prev=program_transform_name ;;
284   -program-transform-name=* | --program-transform-name=* \
285   | --program-transform-nam=* | --program-transform-na=* \
286   | --program-transform-n=* | --program-transform-=* \
287   | --program-transform=* | --program-transfor=* \
288   | --program-transfo=* | --program-transf=* \
289   | --program-trans=* | --program-tran=* \
290   | --progr-tra=* | --program-tr=* | --program-t=*)
291     program_transform_name="$ac_optarg" ;;
292
293   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
294   | -silent | --silent | --silen | --sile | --sil)
295     silent=yes ;;
296
297   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
298     ac_prev=sbindir ;;
299   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
300   | --sbi=* | --sb=*)
301     sbindir="$ac_optarg" ;;
302
303   -sharedstatedir | --sharedstatedir | --sharedstatedi \
304   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
305   | --sharedst | --shareds | --shared | --share | --shar \
306   | --sha | --sh)
307     ac_prev=sharedstatedir ;;
308   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
309   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
310   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
311   | --sha=* | --sh=*)
312     sharedstatedir="$ac_optarg" ;;
313
314   -site | --site | --sit)
315     ac_prev=site ;;
316   -site=* | --site=* | --sit=*)
317     site="$ac_optarg" ;;
318
319   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
320     ac_prev=srcdir ;;
321   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
322     srcdir="$ac_optarg" ;;
323
324   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
325   | --syscon | --sysco | --sysc | --sys | --sy)
326     ac_prev=sysconfdir ;;
327   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
328   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
329     sysconfdir="$ac_optarg" ;;
330
331   -target | --target | --targe | --targ | --tar | --ta | --t)
332     ac_prev=target ;;
333   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
334     target="$ac_optarg" ;;
335
336   -v | -verbose | --verbose | --verbos | --verbo | --verb)
337     verbose=yes ;;
338
339   -version | --version | --versio | --versi | --vers)
340     echo "configure generated by autoconf version 2.13"
341     exit 0 ;;
342
343   -with-* | --with-*)
344     ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
345     # Reject names that are not valid shell variable names.
346     if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
347       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
348     fi
349     ac_package=`echo $ac_package| sed 's/-/_/g'`
350     case "$ac_option" in
351       *=*) ;;
352       *) ac_optarg=yes ;;
353     esac
354     eval "with_${ac_package}='$ac_optarg'" ;;
355
356   -without-* | --without-*)
357     ac_package=`echo $ac_option|sed -e 's/-*without-//'`
358     # Reject names that are not valid shell variable names.
359     if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
360       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
361     fi
362     ac_package=`echo $ac_package| sed 's/-/_/g'`
363     eval "with_${ac_package}=no" ;;
364
365   --x)
366     # Obsolete; use --with-x.
367     with_x=yes ;;
368
369   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
370   | --x-incl | --x-inc | --x-in | --x-i)
371     ac_prev=x_includes ;;
372   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
373   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
374     x_includes="$ac_optarg" ;;
375
376   -x-libraries | --x-libraries | --x-librarie | --x-librari \
377   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
378     ac_prev=x_libraries ;;
379   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
380   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
381     x_libraries="$ac_optarg" ;;
382
383   -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
384     ;;
385
386   *)
387     if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
388       echo "configure: warning: $ac_option: invalid host type" 1>&2
389     fi
390     if test "x$nonopt" != xNONE; then
391       { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
392     fi
393     nonopt="$ac_option"
394     ;;
395
396   esac
397 done
398
399 if test -n "$ac_prev"; then
400   { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
401 fi
402
403 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
404
405 # File descriptor usage:
406 # 0 standard input
407 # 1 file creation
408 # 2 errors and warnings
409 # 3 some systems may open it to /dev/tty
410 # 4 used on the Kubota Titan
411 # 6 checking for... messages and results
412 # 5 compiler messages saved in config.log
413 if test "$silent" = yes; then
414   exec 6>/dev/null
415 else
416   exec 6>&1
417 fi
418 exec 5>./config.log
419
420 echo "\
421 This file contains any messages produced by compilers while
422 running configure, to aid debugging if configure makes a mistake.
423 " 1>&5
424
425 # Strip out --no-create and --no-recursion so they do not pile up.
426 # Also quote any args containing shell metacharacters.
427 ac_configure_args=
428 for ac_arg
429 do
430   case "$ac_arg" in
431   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
432   | --no-cr | --no-c) ;;
433   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
434   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
435   *" "*|*"      "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
436   ac_configure_args="$ac_configure_args '$ac_arg'" ;;
437   *) ac_configure_args="$ac_configure_args $ac_arg" ;;
438   esac
439 done
440
441 # NLS nuisances.
442 # Only set these to C if already set.  These must not be set unconditionally
443 # because not all systems understand e.g. LANG=C (notably SCO).
444 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
445 # Non-C LC_CTYPE values break the ctype check.
446 if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi
447 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
448 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
449 if test "${LC_CTYPE+set}"    = set; then LC_CTYPE=C;    export LC_CTYPE;    fi
450
451 # confdefs.h avoids OS command line length limits that DEFS can exceed.
452 rm -rf conftest* confdefs.h
453 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
454 echo > confdefs.h
455
456 # A filename unique to this package, relative to the directory that
457 # configure is in, which we can look for to find out if srcdir is correct.
458 ac_unique_file=rlm_dbm.c
459
460 # Find the source files, if location was not specified.
461 if test -z "$srcdir"; then
462   ac_srcdir_defaulted=yes
463   # Try the directory containing this script, then its parent.
464   ac_prog=$0
465   ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
466   test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
467   srcdir=$ac_confdir
468   if test ! -r $srcdir/$ac_unique_file; then
469     srcdir=..
470   fi
471 else
472   ac_srcdir_defaulted=no
473 fi
474 if test ! -r $srcdir/$ac_unique_file; then
475   if test "$ac_srcdir_defaulted" = yes; then
476     { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
477   else
478     { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
479   fi
480 fi
481 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
482
483 # Prefer explicitly selected file to automatically selected ones.
484 if test -z "$CONFIG_SITE"; then
485   if test "x$prefix" != xNONE; then
486     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
487   else
488     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
489   fi
490 fi
491 for ac_site_file in $CONFIG_SITE; do
492   if test -r "$ac_site_file"; then
493     echo "loading site script $ac_site_file"
494     . "$ac_site_file"
495   fi
496 done
497
498 if test -r "$cache_file"; then
499   echo "loading cache $cache_file"
500   . $cache_file
501 else
502   echo "creating cache $cache_file"
503   > $cache_file
504 fi
505
506 ac_ext=c
507 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
508 ac_cpp='$CPP $CPPFLAGS'
509 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
510 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
511 cross_compiling=$ac_cv_prog_cc_cross
512
513 ac_exeext=
514 ac_objext=o
515 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
516   # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
517   if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
518     ac_n= ac_c='
519 ' ac_t='        '
520   else
521     ac_n=-n ac_c= ac_t=
522   fi
523 else
524   ac_n= ac_c='\c' ac_t=
525 fi
526
527
528 # From configure.in Revision: 1.12 
529
530
531 if test x$with_rlm_dbm != xno; then
532
533         # Extract the first word of "gcc", so it can be a program name with args.
534 set dummy gcc; ac_word=$2
535 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
536 echo "configure:537: checking for $ac_word" >&5
537 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
538   echo $ac_n "(cached) $ac_c" 1>&6
539 else
540   if test -n "$CC"; then
541   ac_cv_prog_CC="$CC" # Let the user override the test.
542 else
543   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
544   ac_dummy="$PATH"
545   for ac_dir in $ac_dummy; do
546     test -z "$ac_dir" && ac_dir=.
547     if test -f $ac_dir/$ac_word; then
548       ac_cv_prog_CC="gcc"
549       break
550     fi
551   done
552   IFS="$ac_save_ifs"
553 fi
554 fi
555 CC="$ac_cv_prog_CC"
556 if test -n "$CC"; then
557   echo "$ac_t""$CC" 1>&6
558 else
559   echo "$ac_t""no" 1>&6
560 fi
561
562 if test -z "$CC"; then
563   # Extract the first word of "cc", so it can be a program name with args.
564 set dummy cc; ac_word=$2
565 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
566 echo "configure:567: checking for $ac_word" >&5
567 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
568   echo $ac_n "(cached) $ac_c" 1>&6
569 else
570   if test -n "$CC"; then
571   ac_cv_prog_CC="$CC" # Let the user override the test.
572 else
573   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
574   ac_prog_rejected=no
575   ac_dummy="$PATH"
576   for ac_dir in $ac_dummy; do
577     test -z "$ac_dir" && ac_dir=.
578     if test -f $ac_dir/$ac_word; then
579       if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
580         ac_prog_rejected=yes
581         continue
582       fi
583       ac_cv_prog_CC="cc"
584       break
585     fi
586   done
587   IFS="$ac_save_ifs"
588 if test $ac_prog_rejected = yes; then
589   # We found a bogon in the path, so make sure we never use it.
590   set dummy $ac_cv_prog_CC
591   shift
592   if test $# -gt 0; then
593     # We chose a different compiler from the bogus one.
594     # However, it has the same basename, so the bogon will be chosen
595     # first if we set CC to just the basename; use the full file name.
596     shift
597     set dummy "$ac_dir/$ac_word" "$@"
598     shift
599     ac_cv_prog_CC="$@"
600   fi
601 fi
602 fi
603 fi
604 CC="$ac_cv_prog_CC"
605 if test -n "$CC"; then
606   echo "$ac_t""$CC" 1>&6
607 else
608   echo "$ac_t""no" 1>&6
609 fi
610
611   if test -z "$CC"; then
612     case "`uname -s`" in
613     *win32* | *WIN32*)
614       # Extract the first word of "cl", so it can be a program name with args.
615 set dummy cl; ac_word=$2
616 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
617 echo "configure:618: checking for $ac_word" >&5
618 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
619   echo $ac_n "(cached) $ac_c" 1>&6
620 else
621   if test -n "$CC"; then
622   ac_cv_prog_CC="$CC" # Let the user override the test.
623 else
624   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
625   ac_dummy="$PATH"
626   for ac_dir in $ac_dummy; do
627     test -z "$ac_dir" && ac_dir=.
628     if test -f $ac_dir/$ac_word; then
629       ac_cv_prog_CC="cl"
630       break
631     fi
632   done
633   IFS="$ac_save_ifs"
634 fi
635 fi
636 CC="$ac_cv_prog_CC"
637 if test -n "$CC"; then
638   echo "$ac_t""$CC" 1>&6
639 else
640   echo "$ac_t""no" 1>&6
641 fi
642  ;;
643     esac
644   fi
645   test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
646 fi
647
648 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
649 echo "configure:650: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
650
651 ac_ext=c
652 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
653 ac_cpp='$CPP $CPPFLAGS'
654 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
655 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
656 cross_compiling=$ac_cv_prog_cc_cross
657
658 cat > conftest.$ac_ext << EOF
659
660 #line 661 "configure"
661 #include "confdefs.h"
662
663 main(){return(0);}
664 EOF
665 if { (eval echo configure:666: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
666   ac_cv_prog_cc_works=yes
667   # If we can't run a trivial program, we are probably using a cross compiler.
668   if (./conftest; exit) 2>/dev/null; then
669     ac_cv_prog_cc_cross=no
670   else
671     ac_cv_prog_cc_cross=yes
672   fi
673 else
674   echo "configure: failed program was:" >&5
675   cat conftest.$ac_ext >&5
676   ac_cv_prog_cc_works=no
677 fi
678 rm -fr conftest*
679 ac_ext=c
680 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
681 ac_cpp='$CPP $CPPFLAGS'
682 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
683 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
684 cross_compiling=$ac_cv_prog_cc_cross
685
686 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
687 if test $ac_cv_prog_cc_works = no; then
688   { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
689 fi
690 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
691 echo "configure:692: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
692 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
693 cross_compiling=$ac_cv_prog_cc_cross
694
695 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
696 echo "configure:697: checking whether we are using GNU C" >&5
697 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
698   echo $ac_n "(cached) $ac_c" 1>&6
699 else
700   cat > conftest.c <<EOF
701 #ifdef __GNUC__
702   yes;
703 #endif
704 EOF
705 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:706: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
706   ac_cv_prog_gcc=yes
707 else
708   ac_cv_prog_gcc=no
709 fi
710 fi
711
712 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
713
714 if test $ac_cv_prog_gcc = yes; then
715   GCC=yes
716 else
717   GCC=
718 fi
719
720 ac_test_CFLAGS="${CFLAGS+set}"
721 ac_save_CFLAGS="$CFLAGS"
722 CFLAGS=
723 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
724 echo "configure:725: checking whether ${CC-cc} accepts -g" >&5
725 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
726   echo $ac_n "(cached) $ac_c" 1>&6
727 else
728   echo 'void f(){}' > conftest.c
729 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
730   ac_cv_prog_cc_g=yes
731 else
732   ac_cv_prog_cc_g=no
733 fi
734 rm -f conftest*
735
736 fi
737
738 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
739 if test "$ac_test_CFLAGS" = set; then
740   CFLAGS="$ac_save_CFLAGS"
741 elif test $ac_cv_prog_cc_g = yes; then
742   if test "$GCC" = yes; then
743     CFLAGS="-g -O2"
744   else
745     CFLAGS="-g"
746   fi
747 else
748   if test "$GCC" = yes; then
749     CFLAGS="-O2"
750   else
751     CFLAGS=
752   fi
753 fi
754
755         echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
756 echo "configure:757: checking how to run the C preprocessor" >&5
757 # On Suns, sometimes $CPP names a directory.
758 if test -n "$CPP" && test -d "$CPP"; then
759   CPP=
760 fi
761 if test -z "$CPP"; then
762 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
763   echo $ac_n "(cached) $ac_c" 1>&6
764 else
765     # This must be in double quotes, not single quotes, because CPP may get
766   # substituted into the Makefile and "${CC-cc}" will confuse make.
767   CPP="${CC-cc} -E"
768   # On the NeXT, cc -E runs the code through the compiler's parser,
769   # not just through cpp.
770   cat > conftest.$ac_ext <<EOF
771 #line 772 "configure"
772 #include "confdefs.h"
773 #include <assert.h>
774 Syntax Error
775 EOF
776 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
777 { (eval echo configure:778: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
778 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
779 if test -z "$ac_err"; then
780   :
781 else
782   echo "$ac_err" >&5
783   echo "configure: failed program was:" >&5
784   cat conftest.$ac_ext >&5
785   rm -rf conftest*
786   CPP="${CC-cc} -E -traditional-cpp"
787   cat > conftest.$ac_ext <<EOF
788 #line 789 "configure"
789 #include "confdefs.h"
790 #include <assert.h>
791 Syntax Error
792 EOF
793 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
794 { (eval echo configure:795: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
795 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
796 if test -z "$ac_err"; then
797   :
798 else
799   echo "$ac_err" >&5
800   echo "configure: failed program was:" >&5
801   cat conftest.$ac_ext >&5
802   rm -rf conftest*
803   CPP="${CC-cc} -nologo -E"
804   cat > conftest.$ac_ext <<EOF
805 #line 806 "configure"
806 #include "confdefs.h"
807 #include <assert.h>
808 Syntax Error
809 EOF
810 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
811 { (eval echo configure:812: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
812 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
813 if test -z "$ac_err"; then
814   :
815 else
816   echo "$ac_err" >&5
817   echo "configure: failed program was:" >&5
818   cat conftest.$ac_ext >&5
819   rm -rf conftest*
820   CPP=/lib/cpp
821 fi
822 rm -f conftest*
823 fi
824 rm -f conftest*
825 fi
826 rm -f conftest*
827   ac_cv_prog_CPP="$CPP"
828 fi
829   CPP="$ac_cv_prog_CPP"
830 else
831   ac_cv_prog_CPP="$CPP"
832 fi
833 echo "$ac_t""$CPP" 1>&6
834
835
836                 rlm_dbm_lib_dir=
837         # Check whether --with-rlm-dbm-lib-dir or --without-rlm-dbm-lib-dir was given.
838 if test "${with_rlm_dbm_lib_dir+set}" = set; then
839   withval="$with_rlm_dbm_lib_dir"
840    case "$withval" in
841             no)
842                 { echo "configure: error: Need rlm-dbm-lib-dir" 1>&2; exit 1; }
843                 ;;
844             yes)
845                 ;;
846             *)
847                 rlm_dbm_lib_dir="$withval"
848                 ;;
849           esac 
850         
851 fi
852
853
854                 rlm_dbm_inc_dir=
855         # Check whether --with-rlm-dbm-include-dir or --without-rlm-dbm-include-dir was given.
856 if test "${with_rlm_dbm_include_dir+set}" = set; then
857   withval="$with_rlm_dbm_include_dir"
858    case "$withval" in
859             no)
860                 { echo "configure: error: Need rlm-dbm-include-dir" 1>&2; exit 1; }
861                 ;;
862             yes)
863                 ;;
864             *)
865                 rlm_dbm_include_dir="$withval"
866                 ;;
867           esac 
868         
869 fi
870
871
872         smart_try_dir=$rlm_dbm_include_dir
873         
874
875 ac_safe=`echo "ndbm.h" | sed 'y%./+-%__pm%'`
876 echo $ac_n "checking for ndbm.h""... $ac_c" 1>&6
877 echo "configure:878: checking for ndbm.h" >&5
878
879 smart_include=
880 smart_include_dir=
881
882   old_CFLAGS="$CFLAGS"
883   cat > conftest.$ac_ext <<EOF
884 #line 885 "configure"
885 #include "confdefs.h"
886
887                   #include <ndbm.h>
888 int main() {
889  int a = 1;
890 ; return 0; }
891 EOF
892 if { (eval echo configure:893: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
893   rm -rf conftest*
894   smart_include=" "
895 else
896   echo "configure: failed program was:" >&5
897   cat conftest.$ac_ext >&5
898   rm -rf conftest*
899   smart_include=
900 fi
901 rm -f conftest*
902
903   if test "x$smart_include" = "x"; then
904     
905
906 if test "x$LOCATE" != "x"; then
907         DIRS=
908   file=ndbm.h
909
910   for x in `${LOCATE} $file 2>/dev/null`; do
911                                         base=`echo $x | sed "s%/${file}%%"`
912     if test "x$x" = "x$base"; then
913       continue;
914     fi
915
916     dir=`${DIRNAME} $x 2>/dev/null`
917                 exclude=`echo ${dir} | ${GREP} /home`
918     if test "x$exclude" != "x"; then
919       continue
920     fi
921
922                     already=`echo \$smart_include_dir ${DIRS} | ${GREP} ${dir}`
923     if test "x$already" = "x"; then
924       DIRS="$DIRS $dir"
925     fi
926   done
927 fi
928
929 eval "smart_include_dir=\"\$smart_include_dir $DIRS\""
930
931
932     for try in $smart_try_dir $smart_include_dir /usr/local/include/ /opt/include; do
933       CFLAGS="$old_CFLAGS -I$try"
934
935       cat > conftest.$ac_ext <<EOF
936 #line 937 "configure"
937 #include "confdefs.h"
938
939                        #include <ndbm.h>
940 int main() {
941  int a = 1;
942 ; return 0; }
943 EOF
944 if { (eval echo configure:945: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
945   rm -rf conftest*
946   smart_include="-I$try"
947 else
948   echo "configure: failed program was:" >&5
949   cat conftest.$ac_ext >&5
950   rm -rf conftest*
951   smart_include=
952 fi
953 rm -f conftest*
954
955       if test "x$smart_include" != "x"; then
956         break;
957       fi
958     done
959     CFLAGS="$old_CFLAGS"
960   fi
961
962         if test "x$smart_include" != "x"; then
963     echo "$ac_t""yes" 1>&6
964     eval "ac_cv_header_$ac_safe=yes"
965     CFLAGS="$old_CFLAGS $smart_include"
966     SMART_CFLAGS="$SMART_CFLAGS $smart_include"
967   else
968     echo "$ac_t""no" 1>&6 
969 fi
970
971         if test "x$ac_cv_header_ndbm_h" = "xyes"; then
972           SMART_CFLAGS="${SMART_CFLAGS} -DHAVE_NDBM_H"
973         else
974                 
975
976 ac_safe=`echo "gdbm/ndbm.h" | sed 'y%./+-%__pm%'`
977 echo $ac_n "checking for gdbm/ndbm.h""... $ac_c" 1>&6
978 echo "configure:979: checking for gdbm/ndbm.h" >&5
979
980 smart_include=
981 smart_include_dir=
982
983   old_CFLAGS="$CFLAGS"
984   cat > conftest.$ac_ext <<EOF
985 #line 986 "configure"
986 #include "confdefs.h"
987
988                   #include <gdbm/ndbm.h>
989 int main() {
990  int a = 1;
991 ; return 0; }
992 EOF
993 if { (eval echo configure:994: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
994   rm -rf conftest*
995   smart_include=" "
996 else
997   echo "configure: failed program was:" >&5
998   cat conftest.$ac_ext >&5
999   rm -rf conftest*
1000   smart_include=
1001 fi
1002 rm -f conftest*
1003
1004   if test "x$smart_include" = "x"; then
1005     
1006
1007 if test "x$LOCATE" != "x"; then
1008         DIRS=
1009   file=gdbm/ndbm.h
1010
1011   for x in `${LOCATE} $file 2>/dev/null`; do
1012                                         base=`echo $x | sed "s%/${file}%%"`
1013     if test "x$x" = "x$base"; then
1014       continue;
1015     fi
1016
1017     dir=`${DIRNAME} $x 2>/dev/null`
1018                 exclude=`echo ${dir} | ${GREP} /home`
1019     if test "x$exclude" != "x"; then
1020       continue
1021     fi
1022
1023                     already=`echo \$smart_include_dir ${DIRS} | ${GREP} ${dir}`
1024     if test "x$already" = "x"; then
1025       DIRS="$DIRS $dir"
1026     fi
1027   done
1028 fi
1029
1030 eval "smart_include_dir=\"\$smart_include_dir $DIRS\""
1031
1032
1033     for try in $smart_try_dir $smart_include_dir /usr/local/include/ /opt/include; do
1034       CFLAGS="$old_CFLAGS -I$try"
1035
1036       cat > conftest.$ac_ext <<EOF
1037 #line 1038 "configure"
1038 #include "confdefs.h"
1039
1040                        #include <gdbm/ndbm.h>
1041 int main() {
1042  int a = 1;
1043 ; return 0; }
1044 EOF
1045 if { (eval echo configure:1046: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1046   rm -rf conftest*
1047   smart_include="-I$try"
1048 else
1049   echo "configure: failed program was:" >&5
1050   cat conftest.$ac_ext >&5
1051   rm -rf conftest*
1052   smart_include=
1053 fi
1054 rm -f conftest*
1055
1056       if test "x$smart_include" != "x"; then
1057         break;
1058       fi
1059     done
1060     CFLAGS="$old_CFLAGS"
1061   fi
1062
1063         if test "x$smart_include" != "x"; then
1064     echo "$ac_t""yes" 1>&6
1065     eval "ac_cv_header_$ac_safe=yes"
1066     CFLAGS="$old_CFLAGS $smart_include"
1067     SMART_CFLAGS="$SMART_CFLAGS $smart_include"
1068   else
1069     echo "$ac_t""no" 1>&6 
1070 fi
1071
1072                 if test "x$ac_cv_header_gdbm_ndbm_h" = "xyes"; then
1073                         SMART_CFLAGS="${SMART_CFLAGS} -DHAVE_GDBM_NDBM_H"
1074                 else
1075                         ac_cv_header_gdbm_ndbm_h="bad autoconf assumption"
1076                         
1077
1078 ac_safe=`echo "gdbm-ndbm.h" | sed 'y%./+-%__pm%'`
1079 echo $ac_n "checking for gdbm-ndbm.h""... $ac_c" 1>&6
1080 echo "configure:1081: checking for gdbm-ndbm.h" >&5
1081
1082 smart_include=
1083 smart_include_dir=
1084
1085   old_CFLAGS="$CFLAGS"
1086   cat > conftest.$ac_ext <<EOF
1087 #line 1088 "configure"
1088 #include "confdefs.h"
1089
1090                   #include <gdbm-ndbm.h>
1091 int main() {
1092  int a = 1;
1093 ; return 0; }
1094 EOF
1095 if { (eval echo configure:1096: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1096   rm -rf conftest*
1097   smart_include=" "
1098 else
1099   echo "configure: failed program was:" >&5
1100   cat conftest.$ac_ext >&5
1101   rm -rf conftest*
1102   smart_include=
1103 fi
1104 rm -f conftest*
1105
1106   if test "x$smart_include" = "x"; then
1107     
1108
1109 if test "x$LOCATE" != "x"; then
1110         DIRS=
1111   file=gdbm-ndbm.h
1112
1113   for x in `${LOCATE} $file 2>/dev/null`; do
1114                                         base=`echo $x | sed "s%/${file}%%"`
1115     if test "x$x" = "x$base"; then
1116       continue;
1117     fi
1118
1119     dir=`${DIRNAME} $x 2>/dev/null`
1120                 exclude=`echo ${dir} | ${GREP} /home`
1121     if test "x$exclude" != "x"; then
1122       continue
1123     fi
1124
1125                     already=`echo \$smart_include_dir ${DIRS} | ${GREP} ${dir}`
1126     if test "x$already" = "x"; then
1127       DIRS="$DIRS $dir"
1128     fi
1129   done
1130 fi
1131
1132 eval "smart_include_dir=\"\$smart_include_dir $DIRS\""
1133
1134
1135     for try in $smart_try_dir $smart_include_dir /usr/local/include/ /opt/include; do
1136       CFLAGS="$old_CFLAGS -I$try"
1137
1138       cat > conftest.$ac_ext <<EOF
1139 #line 1140 "configure"
1140 #include "confdefs.h"
1141
1142                        #include <gdbm-ndbm.h>
1143 int main() {
1144  int a = 1;
1145 ; return 0; }
1146 EOF
1147 if { (eval echo configure:1148: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1148   rm -rf conftest*
1149   smart_include="-I$try"
1150 else
1151   echo "configure: failed program was:" >&5
1152   cat conftest.$ac_ext >&5
1153   rm -rf conftest*
1154   smart_include=
1155 fi
1156 rm -f conftest*
1157
1158       if test "x$smart_include" != "x"; then
1159         break;
1160       fi
1161     done
1162     CFLAGS="$old_CFLAGS"
1163   fi
1164
1165         if test "x$smart_include" != "x"; then
1166     echo "$ac_t""yes" 1>&6
1167     eval "ac_cv_header_$ac_safe=yes"
1168     CFLAGS="$old_CFLAGS $smart_include"
1169     SMART_CFLAGS="$SMART_CFLAGS $smart_include"
1170   else
1171     echo "$ac_t""no" 1>&6 
1172 fi
1173
1174                         if test "x$ac_cv_header_gdbmmndbm_h" = "xyes"; then
1175                                 SMART_CFLAGS="${SMART_CFLAGS} -DHAVE_GDBMNDBM_H"
1176                         else
1177                                 fail="$fail (ndbm.h or gdbm/ndbm.h or gdbm-ndbm.h)"
1178                         fi
1179                 fi
1180         fi
1181         echo $ac_n "checking for dbm in default lib""... $ac_c" 1>&6
1182 echo "configure:1183: checking for dbm in default lib" >&5
1183         cat > conftest.$ac_ext <<EOF
1184 #line 1185 "configure"
1185 #include "confdefs.h"
1186 extern void* dbm_open();
1187 int main() {
1188 dbm_open()
1189 ; return 0; }
1190 EOF
1191 if { (eval echo configure:1192: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1192   rm -rf conftest*
1193   ac_cv_lib_default_dbm_open=yes
1194                 echo "$ac_t""yes" 1>&6
1195 else
1196   echo "configure: failed program was:" >&5
1197   cat conftest.$ac_ext >&5
1198   rm -rf conftest*
1199   echo "$ac_t""no" 1>&6
1200 fi
1201 rm -f conftest*
1202         if test "x$ac_cv_lib_default_dbm_open" != "xyes"; then
1203                 smart_try_dir=$rlm_dbm_lib_dir
1204                 
1205
1206 sm_lib_safe=`echo "ndbm" | sed 'y%./+-%__p_%'`
1207 sm_func_safe=`echo "dbm_open" | sed 'y%./+-%__p_%'`
1208 echo $ac_n "checking for dbm_open in -lndbm""... $ac_c" 1>&6
1209 echo "configure:1210: checking for dbm_open in -lndbm" >&5
1210
1211 smart_lib=
1212 smart_lib_dir=
1213
1214   old_LIBS="$LIBS"
1215   LIBS="$LIBS -lndbm"
1216   cat > conftest.$ac_ext <<EOF
1217 #line 1218 "configure"
1218 #include "confdefs.h"
1219 extern char dbm_open();
1220 int main() {
1221  dbm_open()
1222 ; return 0; }
1223 EOF
1224 if { (eval echo configure:1225: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1225   rm -rf conftest*
1226   smart_lib="-lndbm"
1227 else
1228   echo "configure: failed program was:" >&5
1229   cat conftest.$ac_ext >&5
1230 fi
1231 rm -f conftest*
1232
1233   if test "x$smart_lib" = "x"; then
1234     
1235
1236 if test "x$LOCATE" != "x"; then
1237         DIRS=
1238   file=libndbm${libltdl_cv_shlibext}
1239
1240   for x in `${LOCATE} $file 2>/dev/null`; do
1241                                         base=`echo $x | sed "s%/${file}%%"`
1242     if test "x$x" = "x$base"; then
1243       continue;
1244     fi
1245
1246     dir=`${DIRNAME} $x 2>/dev/null`
1247                 exclude=`echo ${dir} | ${GREP} /home`
1248     if test "x$exclude" != "x"; then
1249       continue
1250     fi
1251
1252                     already=`echo \$smart_lib_dir ${DIRS} | ${GREP} ${dir}`
1253     if test "x$already" = "x"; then
1254       DIRS="$DIRS $dir"
1255     fi
1256   done
1257 fi
1258
1259 eval "smart_lib_dir=\"\$smart_lib_dir $DIRS\""
1260
1261     
1262
1263 if test "x$LOCATE" != "x"; then
1264         DIRS=
1265   file=libndbm.a
1266
1267   for x in `${LOCATE} $file 2>/dev/null`; do
1268                                         base=`echo $x | sed "s%/${file}%%"`
1269     if test "x$x" = "x$base"; then
1270       continue;
1271     fi
1272
1273     dir=`${DIRNAME} $x 2>/dev/null`
1274                 exclude=`echo ${dir} | ${GREP} /home`
1275     if test "x$exclude" != "x"; then
1276       continue
1277     fi
1278
1279                     already=`echo \$smart_lib_dir ${DIRS} | ${GREP} ${dir}`
1280     if test "x$already" = "x"; then
1281       DIRS="$DIRS $dir"
1282     fi
1283   done
1284 fi
1285
1286 eval "smart_lib_dir=\"\$smart_lib_dir $DIRS\""
1287
1288
1289     for try in $smart_try_dir $smart_lib_dir /usr/local/lib/ /opt/lib; do
1290       LIBS="$old_LIBS -L$try -lndbm"
1291
1292       cat > conftest.$ac_ext <<EOF
1293 #line 1294 "configure"
1294 #include "confdefs.h"
1295 extern char dbm_open();
1296 int main() {
1297  dbm_open()
1298 ; return 0; }
1299 EOF
1300 if { (eval echo configure:1301: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1301   rm -rf conftest*
1302   smart_lib="-L$try -lndbm"
1303 else
1304   echo "configure: failed program was:" >&5
1305   cat conftest.$ac_ext >&5
1306 fi
1307 rm -f conftest*
1308       if test "x$smart_lib" != "x"; then
1309         break;
1310       fi
1311     done
1312     LIBS="$old_LIBS"
1313   fi
1314
1315         if test "x$smart_lib" != "x"; then
1316     echo "$ac_t""yes" 1>&6
1317     eval "ac_cv_lib_${sm_lib_safe}_${sm_func_safe}=yes"
1318     LIBS="$old_LIBS $smart_lib"
1319     SMART_LIBS="$SMART_LIBS $smart_lib"
1320   else
1321     echo "$ac_t""no" 1>&6 
1322 fi
1323
1324                 if test "x$ac_cv_lib_ndbm_dbm_open" != "xyes"; then
1325                                                 
1326
1327 sm_lib_safe=`echo "gdbm" | sed 'y%./+-%__p_%'`
1328 sm_func_safe=`echo "dbm_open" | sed 'y%./+-%__p_%'`
1329 echo $ac_n "checking for dbm_open in -lgdbm""... $ac_c" 1>&6
1330 echo "configure:1331: checking for dbm_open in -lgdbm" >&5
1331
1332 smart_lib=
1333 smart_lib_dir=
1334
1335   old_LIBS="$LIBS"
1336   LIBS="$LIBS -lgdbm"
1337   cat > conftest.$ac_ext <<EOF
1338 #line 1339 "configure"
1339 #include "confdefs.h"
1340 extern char dbm_open();
1341 int main() {
1342  dbm_open()
1343 ; return 0; }
1344 EOF
1345 if { (eval echo configure:1346: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1346   rm -rf conftest*
1347   smart_lib="-lgdbm"
1348 else
1349   echo "configure: failed program was:" >&5
1350   cat conftest.$ac_ext >&5
1351 fi
1352 rm -f conftest*
1353
1354   if test "x$smart_lib" = "x"; then
1355     
1356
1357 if test "x$LOCATE" != "x"; then
1358         DIRS=
1359   file=libgdbm${libltdl_cv_shlibext}
1360
1361   for x in `${LOCATE} $file 2>/dev/null`; do
1362                                         base=`echo $x | sed "s%/${file}%%"`
1363     if test "x$x" = "x$base"; then
1364       continue;
1365     fi
1366
1367     dir=`${DIRNAME} $x 2>/dev/null`
1368                 exclude=`echo ${dir} | ${GREP} /home`
1369     if test "x$exclude" != "x"; then
1370       continue
1371     fi
1372
1373                     already=`echo \$smart_lib_dir ${DIRS} | ${GREP} ${dir}`
1374     if test "x$already" = "x"; then
1375       DIRS="$DIRS $dir"
1376     fi
1377   done
1378 fi
1379
1380 eval "smart_lib_dir=\"\$smart_lib_dir $DIRS\""
1381
1382     
1383
1384 if test "x$LOCATE" != "x"; then
1385         DIRS=
1386   file=libgdbm.a
1387
1388   for x in `${LOCATE} $file 2>/dev/null`; do
1389                                         base=`echo $x | sed "s%/${file}%%"`
1390     if test "x$x" = "x$base"; then
1391       continue;
1392     fi
1393
1394     dir=`${DIRNAME} $x 2>/dev/null`
1395                 exclude=`echo ${dir} | ${GREP} /home`
1396     if test "x$exclude" != "x"; then
1397       continue
1398     fi
1399
1400                     already=`echo \$smart_lib_dir ${DIRS} | ${GREP} ${dir}`
1401     if test "x$already" = "x"; then
1402       DIRS="$DIRS $dir"
1403     fi
1404   done
1405 fi
1406
1407 eval "smart_lib_dir=\"\$smart_lib_dir $DIRS\""
1408
1409
1410     for try in $smart_try_dir $smart_lib_dir /usr/local/lib/ /opt/lib; do
1411       LIBS="$old_LIBS -L$try -lgdbm"
1412
1413       cat > conftest.$ac_ext <<EOF
1414 #line 1415 "configure"
1415 #include "confdefs.h"
1416 extern char dbm_open();
1417 int main() {
1418  dbm_open()
1419 ; return 0; }
1420 EOF
1421 if { (eval echo configure:1422: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1422   rm -rf conftest*
1423   smart_lib="-L$try -lgdbm"
1424 else
1425   echo "configure: failed program was:" >&5
1426   cat conftest.$ac_ext >&5
1427 fi
1428 rm -f conftest*
1429       if test "x$smart_lib" != "x"; then
1430         break;
1431       fi
1432     done
1433     LIBS="$old_LIBS"
1434   fi
1435
1436         if test "x$smart_lib" != "x"; then
1437     echo "$ac_t""yes" 1>&6
1438     eval "ac_cv_lib_${sm_lib_safe}_${sm_func_safe}=yes"
1439     LIBS="$old_LIBS $smart_lib"
1440     SMART_LIBS="$SMART_LIBS $smart_lib"
1441   else
1442     echo "$ac_t""no" 1>&6 
1443 fi
1444
1445                         if test "x$ac_cv_lib_gdbm_dbm_open" != "xyes"; then
1446                                                                 
1447
1448 sm_lib_safe=`echo "gdbm_compat" | sed 'y%./+-%__p_%'`
1449 sm_func_safe=`echo "dbm_open" | sed 'y%./+-%__p_%'`
1450 echo $ac_n "checking for dbm_open in -lgdbm_compat""... $ac_c" 1>&6
1451 echo "configure:1452: checking for dbm_open in -lgdbm_compat" >&5
1452
1453 smart_lib=
1454 smart_lib_dir=
1455
1456   old_LIBS="$LIBS"
1457   LIBS="$LIBS -lgdbm_compat"
1458   cat > conftest.$ac_ext <<EOF
1459 #line 1460 "configure"
1460 #include "confdefs.h"
1461 extern char dbm_open();
1462 int main() {
1463  dbm_open()
1464 ; return 0; }
1465 EOF
1466 if { (eval echo configure:1467: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1467   rm -rf conftest*
1468   smart_lib="-lgdbm_compat"
1469 else
1470   echo "configure: failed program was:" >&5
1471   cat conftest.$ac_ext >&5
1472 fi
1473 rm -f conftest*
1474
1475   if test "x$smart_lib" = "x"; then
1476     
1477
1478 if test "x$LOCATE" != "x"; then
1479         DIRS=
1480   file=libgdbm_compat${libltdl_cv_shlibext}
1481
1482   for x in `${LOCATE} $file 2>/dev/null`; do
1483                                         base=`echo $x | sed "s%/${file}%%"`
1484     if test "x$x" = "x$base"; then
1485       continue;
1486     fi
1487
1488     dir=`${DIRNAME} $x 2>/dev/null`
1489                 exclude=`echo ${dir} | ${GREP} /home`
1490     if test "x$exclude" != "x"; then
1491       continue
1492     fi
1493
1494                     already=`echo \$smart_lib_dir ${DIRS} | ${GREP} ${dir}`
1495     if test "x$already" = "x"; then
1496       DIRS="$DIRS $dir"
1497     fi
1498   done
1499 fi
1500
1501 eval "smart_lib_dir=\"\$smart_lib_dir $DIRS\""
1502
1503     
1504
1505 if test "x$LOCATE" != "x"; then
1506         DIRS=
1507   file=libgdbm_compat.a
1508
1509   for x in `${LOCATE} $file 2>/dev/null`; do
1510                                         base=`echo $x | sed "s%/${file}%%"`
1511     if test "x$x" = "x$base"; then
1512       continue;
1513     fi
1514
1515     dir=`${DIRNAME} $x 2>/dev/null`
1516                 exclude=`echo ${dir} | ${GREP} /home`
1517     if test "x$exclude" != "x"; then
1518       continue
1519     fi
1520
1521                     already=`echo \$smart_lib_dir ${DIRS} | ${GREP} ${dir}`
1522     if test "x$already" = "x"; then
1523       DIRS="$DIRS $dir"
1524     fi
1525   done
1526 fi
1527
1528 eval "smart_lib_dir=\"\$smart_lib_dir $DIRS\""
1529
1530
1531     for try in $smart_try_dir $smart_lib_dir /usr/local/lib/ /opt/lib; do
1532       LIBS="$old_LIBS -L$try -lgdbm_compat"
1533
1534       cat > conftest.$ac_ext <<EOF
1535 #line 1536 "configure"
1536 #include "confdefs.h"
1537 extern char dbm_open();
1538 int main() {
1539  dbm_open()
1540 ; return 0; }
1541 EOF
1542 if { (eval echo configure:1543: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1543   rm -rf conftest*
1544   smart_lib="-L$try -lgdbm_compat"
1545 else
1546   echo "configure: failed program was:" >&5
1547   cat conftest.$ac_ext >&5
1548 fi
1549 rm -f conftest*
1550       if test "x$smart_lib" != "x"; then
1551         break;
1552       fi
1553     done
1554     LIBS="$old_LIBS"
1555   fi
1556
1557         if test "x$smart_lib" != "x"; then
1558     echo "$ac_t""yes" 1>&6
1559     eval "ac_cv_lib_${sm_lib_safe}_${sm_func_safe}=yes"
1560     LIBS="$old_LIBS $smart_lib"
1561     SMART_LIBS="$SMART_LIBS $smart_lib"
1562   else
1563     echo "$ac_t""no" 1>&6 
1564 fi
1565
1566                                 if test "x$ac_cv_lib_gdbm_compat_dbm_open" != "xyes"; then
1567                                         fail="$fail (libndbm or libgdbm or libgdbm_compat)"
1568                                 fi
1569                         fi
1570                 fi
1571         fi
1572
1573         targetname=rlm_dbm
1574 else
1575         targetname=
1576         echo \*\*\* module rlm_dbm is disabled.
1577 fi
1578
1579 if test x"$fail" != x""; then
1580         echo "configure: warning: FAILURE: rlm_dbm requires: $fail." 1>&2; 
1581         if test x"${enable_strict_dependencies}" = x"yes"; then
1582                 { echo "configure: error: set --without-rlm_dbm to disable it explicitly." 1>&2; exit 1; }
1583         else
1584                 echo "configure: warning: silently not building rlm_dbm." 1>&2
1585                 targetname=""
1586         fi
1587 fi
1588
1589 if test "x$targetname" != "x"; then
1590         dbm_utils="rlm_dbm_parser rlm_dbm_cat"
1591         dbm_install="rlm_dbm_install"
1592 fi
1593
1594 dbm_ldflags=$SMART_LIBS
1595 dbm_cflags=$SMART_CFLAGS
1596
1597
1598
1599
1600
1601 trap '' 1 2 15
1602 cat > confcache <<\EOF
1603 # This file is a shell script that caches the results of configure
1604 # tests run on this system so they can be shared between configure
1605 # scripts and configure runs.  It is not useful on other systems.
1606 # If it contains results you don't want to keep, you may remove or edit it.
1607 #
1608 # By default, configure uses ./config.cache as the cache file,
1609 # creating it if it does not exist already.  You can give configure
1610 # the --cache-file=FILE option to use a different cache file; that is
1611 # what configure does when it calls configure scripts in
1612 # subdirectories, so they share the cache.
1613 # Giving --cache-file=/dev/null disables caching, for debugging configure.
1614 # config.status only pays attention to the cache file if you give it the
1615 # --recheck option to rerun configure.
1616 #
1617 EOF
1618 # The following way of writing the cache mishandles newlines in values,
1619 # but we know of no workaround that is simple, portable, and efficient.
1620 # So, don't put newlines in cache variables' values.
1621 # Ultrix sh set writes to stderr and can't be redirected directly,
1622 # and sets the high bit in the cache file unless we assign to the vars.
1623 (set) 2>&1 |
1624   case `(ac_space=' '; set | grep ac_space) 2>&1` in
1625   *ac_space=\ *)
1626     # `set' does not quote correctly, so add quotes (double-quote substitution
1627     # turns \\\\ into \\, and sed turns \\ into \).
1628     sed -n \
1629       -e "s/'/'\\\\''/g" \
1630       -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
1631     ;;
1632   *)
1633     # `set' quotes correctly as required by POSIX, so do not add quotes.
1634     sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
1635     ;;
1636   esac >> confcache
1637 if cmp -s $cache_file confcache; then
1638   :
1639 else
1640   if test -w $cache_file; then
1641     echo "updating cache $cache_file"
1642     cat confcache > $cache_file
1643   else
1644     echo "not updating unwritable cache $cache_file"
1645   fi
1646 fi
1647 rm -f confcache
1648
1649 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
1650
1651 test "x$prefix" = xNONE && prefix=$ac_default_prefix
1652 # Let make expand exec_prefix.
1653 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
1654
1655 # Any assignment to VPATH causes Sun make to only execute
1656 # the first set of double-colon rules, so remove it if not needed.
1657 # If there is a colon in the path, we need to keep it.
1658 if test "x$srcdir" = x.; then
1659   ac_vpsub='/^[         ]*VPATH[        ]*=[^:]*$/d'
1660 fi
1661
1662 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
1663
1664 # Transform confdefs.h into DEFS.
1665 # Protect against shell expansion while executing Makefile rules.
1666 # Protect against Makefile macro expansion.
1667 cat > conftest.defs <<\EOF
1668 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g
1669 s%[     `~#$^&*(){}\\|;'"<>?]%\\&%g
1670 s%\[%\\&%g
1671 s%\]%\\&%g
1672 s%\$%$$%g
1673 EOF
1674 DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '`
1675 rm -f conftest.defs
1676
1677
1678 # Without the "./", some shells look in PATH for config.status.
1679 : ${CONFIG_STATUS=./config.status}
1680
1681 echo creating $CONFIG_STATUS
1682 rm -f $CONFIG_STATUS
1683 cat > $CONFIG_STATUS <<EOF
1684 #! /bin/sh
1685 # Generated automatically by configure.
1686 # Run this file to recreate the current configuration.
1687 # This directory was configured as follows,
1688 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
1689 #
1690 # $0 $ac_configure_args
1691 #
1692 # Compiler output produced by configure, useful for debugging
1693 # configure, is in ./config.log if it exists.
1694
1695 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
1696 for ac_option
1697 do
1698   case "\$ac_option" in
1699   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
1700     echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
1701     exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
1702   -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
1703     echo "$CONFIG_STATUS generated by autoconf version 2.13"
1704     exit 0 ;;
1705   -help | --help | --hel | --he | --h)
1706     echo "\$ac_cs_usage"; exit 0 ;;
1707   *) echo "\$ac_cs_usage"; exit 1 ;;
1708   esac
1709 done
1710
1711 ac_given_srcdir=$srcdir
1712
1713 trap 'rm -fr `echo "Makefile" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
1714 EOF
1715 cat >> $CONFIG_STATUS <<EOF
1716
1717 # Protect against being on the right side of a sed subst in config.status.
1718 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
1719  s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
1720 $ac_vpsub
1721 $extrasub
1722 s%@SHELL@%$SHELL%g
1723 s%@CFLAGS@%$CFLAGS%g
1724 s%@CPPFLAGS@%$CPPFLAGS%g
1725 s%@CXXFLAGS@%$CXXFLAGS%g
1726 s%@FFLAGS@%$FFLAGS%g
1727 s%@DEFS@%$DEFS%g
1728 s%@LDFLAGS@%$LDFLAGS%g
1729 s%@LIBS@%$LIBS%g
1730 s%@exec_prefix@%$exec_prefix%g
1731 s%@prefix@%$prefix%g
1732 s%@program_transform_name@%$program_transform_name%g
1733 s%@bindir@%$bindir%g
1734 s%@sbindir@%$sbindir%g
1735 s%@libexecdir@%$libexecdir%g
1736 s%@datadir@%$datadir%g
1737 s%@sysconfdir@%$sysconfdir%g
1738 s%@sharedstatedir@%$sharedstatedir%g
1739 s%@localstatedir@%$localstatedir%g
1740 s%@libdir@%$libdir%g
1741 s%@includedir@%$includedir%g
1742 s%@oldincludedir@%$oldincludedir%g
1743 s%@infodir@%$infodir%g
1744 s%@mandir@%$mandir%g
1745 s%@CC@%$CC%g
1746 s%@CPP@%$CPP%g
1747 s%@dbm_ldflags@%$dbm_ldflags%g
1748 s%@dbm_cflags@%$dbm_cflags%g
1749 s%@targetname@%$targetname%g
1750 s%@dbm_utils@%$dbm_utils%g
1751 s%@dbm_install@%$dbm_install%g
1752
1753 CEOF
1754 EOF
1755
1756 cat >> $CONFIG_STATUS <<\EOF
1757
1758 # Split the substitutions into bite-sized pieces for seds with
1759 # small command number limits, like on Digital OSF/1 and HP-UX.
1760 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
1761 ac_file=1 # Number of current file.
1762 ac_beg=1 # First line for current file.
1763 ac_end=$ac_max_sed_cmds # Line after last line for current file.
1764 ac_more_lines=:
1765 ac_sed_cmds=""
1766 while $ac_more_lines; do
1767   if test $ac_beg -gt 1; then
1768     sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
1769   else
1770     sed "${ac_end}q" conftest.subs > conftest.s$ac_file
1771   fi
1772   if test ! -s conftest.s$ac_file; then
1773     ac_more_lines=false
1774     rm -f conftest.s$ac_file
1775   else
1776     if test -z "$ac_sed_cmds"; then
1777       ac_sed_cmds="sed -f conftest.s$ac_file"
1778     else
1779       ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
1780     fi
1781     ac_file=`expr $ac_file + 1`
1782     ac_beg=$ac_end
1783     ac_end=`expr $ac_end + $ac_max_sed_cmds`
1784   fi
1785 done
1786 if test -z "$ac_sed_cmds"; then
1787   ac_sed_cmds=cat
1788 fi
1789 EOF
1790
1791 cat >> $CONFIG_STATUS <<EOF
1792
1793 CONFIG_FILES=\${CONFIG_FILES-"Makefile"}
1794 EOF
1795 cat >> $CONFIG_STATUS <<\EOF
1796 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
1797   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
1798   case "$ac_file" in
1799   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
1800        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
1801   *) ac_file_in="${ac_file}.in" ;;
1802   esac
1803
1804   # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
1805
1806   # Remove last slash and all that follows it.  Not all systems have dirname.
1807   ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
1808   if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
1809     # The file is in a subdirectory.
1810     test ! -d "$ac_dir" && mkdir "$ac_dir"
1811     ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
1812     # A "../" for each directory in $ac_dir_suffix.
1813     ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
1814   else
1815     ac_dir_suffix= ac_dots=
1816   fi
1817
1818   case "$ac_given_srcdir" in
1819   .)  srcdir=.
1820       if test -z "$ac_dots"; then top_srcdir=.
1821       else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
1822   /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
1823   *) # Relative path.
1824     srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
1825     top_srcdir="$ac_dots$ac_given_srcdir" ;;
1826   esac
1827
1828
1829   echo creating "$ac_file"
1830   rm -f "$ac_file"
1831   configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
1832   case "$ac_file" in
1833   *Makefile*) ac_comsub="1i\\
1834 # $configure_input" ;;
1835   *) ac_comsub= ;;
1836   esac
1837
1838   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
1839   sed -e "$ac_comsub
1840 s%@configure_input@%$configure_input%g
1841 s%@srcdir@%$srcdir%g
1842 s%@top_srcdir@%$top_srcdir%g
1843 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
1844 fi; done
1845 rm -f conftest.s*
1846
1847 EOF
1848 cat >> $CONFIG_STATUS <<EOF
1849
1850 EOF
1851 cat >> $CONFIG_STATUS <<\EOF
1852
1853 exit 0
1854 EOF
1855 chmod +x $CONFIG_STATUS
1856 rm -fr confdefs* $ac_clean_files
1857 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
1858