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.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
12 ac_default_prefix=/usr/local
13 # Any additions from configure.in:
15 --with-rlm-dbm-lib-dir=DIR Directory for DBM library files []"
17 --with-rlm-dbm-include-dir=DIR Directory for DBM include files []"
19 # Initialize some variables set by options.
20 # The variables have the same names as the options, with
21 # dashes changed to underlines.
23 cache_file=./config.cache
32 program_transform_name=s,x,x,
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'
53 # Initialize some other variables.
56 SHELL=${CONFIG_SHELL-/bin/sh}
57 # Maximum number of lines to put in a shell here document.
64 # If the previous option needs an argument, assign it.
65 if test -n "$ac_prev"; then
66 eval "$ac_prev=\$ac_option"
72 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
76 # Accept the important Cygnus configure options, so we can diagnose typos.
80 -bindir | --bindir | --bindi | --bind | --bin | --bi)
82 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
83 bindir="$ac_optarg" ;;
85 -build | --build | --buil | --bui | --bu)
87 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
90 -cache-file | --cache-file | --cache-fil | --cache-fi \
91 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
93 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
94 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
95 cache_file="$ac_optarg" ;;
97 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
99 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
101 datadir="$ac_optarg" ;;
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; }
109 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
110 eval "enable_${ac_feature}=no" ;;
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; }
118 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
123 eval "enable_${ac_feature}='$ac_optarg'" ;;
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" ;;
134 -gas | --gas | --ga | --g)
135 # Obsolete; use --with-gas.
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.
142 Usage: configure [options] [host]
143 Options: [defaults in brackets after descriptions]
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
153 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
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
160 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
161 --sharedstatedir=DIR modifiable architecture-independent data in DIR
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
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
188 if test -n "$ac_help"; then
189 echo "--enable and --with options recognized:$ac_help"
193 -host | --host | --hos | --ho)
195 -host=* | --host=* | --hos=* | --ho=*)
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" ;;
205 -infodir | --infodir | --infodi | --infod | --info | --inf)
207 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
208 infodir="$ac_optarg" ;;
210 -libdir | --libdir | --libdi | --libd)
212 -libdir=* | --libdir=* | --libdi=* | --libd=*)
213 libdir="$ac_optarg" ;;
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" ;;
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" ;;
231 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
233 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
234 mandir="$ac_optarg" ;;
237 # Obsolete; use --without-fp.
240 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
244 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
245 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
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" ;;
257 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
259 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
260 prefix="$ac_optarg" ;;
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" ;;
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" ;;
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" ;;
293 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
294 | -silent | --silent | --silen | --sile | --sil)
297 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
299 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
301 sbindir="$ac_optarg" ;;
303 -sharedstatedir | --sharedstatedir | --sharedstatedi \
304 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
305 | --sharedst | --shareds | --shared | --share | --shar \
307 ac_prev=sharedstatedir ;;
308 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
309 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
310 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
312 sharedstatedir="$ac_optarg" ;;
314 -site | --site | --sit)
316 -site=* | --site=* | --sit=*)
319 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
321 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
322 srcdir="$ac_optarg" ;;
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" ;;
331 -target | --target | --targe | --targ | --tar | --ta | --t)
333 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
334 target="$ac_optarg" ;;
336 -v | -verbose | --verbose | --verbos | --verbo | --verb)
339 -version | --version | --versio | --versi | --vers)
340 echo "configure generated by autoconf version 2.13"
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; }
349 ac_package=`echo $ac_package| sed 's/-/_/g'`
354 eval "with_${ac_package}='$ac_optarg'" ;;
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; }
362 ac_package=`echo $ac_package| sed 's/-/_/g'`
363 eval "with_${ac_package}=no" ;;
366 # Obsolete; use --with-x.
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" ;;
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" ;;
383 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
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
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; }
399 if test -n "$ac_prev"; then
400 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
403 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
405 # File descriptor usage:
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
421 This file contains any messages produced by compilers while
422 running configure, to aid debugging if configure makes a mistake.
425 # Strip out --no-create and --no-recursion so they do not pile up.
426 # Also quote any args containing shell metacharacters.
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" ;;
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
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.
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
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.
465 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
466 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
468 if test ! -r $srcdir/$ac_unique_file; then
472 ac_srcdir_defaulted=no
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; }
478 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
481 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
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"
488 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
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"
498 if test -r "$cache_file"; then
499 echo "loading cache $cache_file"
502 echo "creating cache $cache_file"
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
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
524 ac_n= ac_c='\c' ac_t=
528 # From configure.in Revision: 1.7
531 if test x$with_rlm_dbm != xno; then
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
540 if test -n "$CC"; then
541 ac_cv_prog_CC="$CC" # Let the user override the test.
543 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
545 for ac_dir in $ac_dummy; do
546 test -z "$ac_dir" && ac_dir=.
547 if test -f $ac_dir/$ac_word; then
556 if test -n "$CC"; then
557 echo "$ac_t""$CC" 1>&6
559 echo "$ac_t""no" 1>&6
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
570 if test -n "$CC"; then
571 ac_cv_prog_CC="$CC" # Let the user override the test.
573 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
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
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
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.
597 set dummy "$ac_dir/$ac_word" "$@"
605 if test -n "$CC"; then
606 echo "$ac_t""$CC" 1>&6
608 echo "$ac_t""no" 1>&6
611 if test -z "$CC"; then
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
621 if test -n "$CC"; then
622 ac_cv_prog_CC="$CC" # Let the user override the test.
624 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
626 for ac_dir in $ac_dummy; do
627 test -z "$ac_dir" && ac_dir=.
628 if test -f $ac_dir/$ac_word; then
637 if test -n "$CC"; then
638 echo "$ac_t""$CC" 1>&6
640 echo "$ac_t""no" 1>&6
645 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
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
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
658 cat > conftest.$ac_ext << EOF
660 #line 661 "configure"
661 #include "confdefs.h"
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
671 ac_cv_prog_cc_cross=yes
674 echo "configure: failed program was:" >&5
675 cat conftest.$ac_ext >&5
676 ac_cv_prog_cc_works=no
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
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; }
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
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
700 cat > conftest.c <<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
712 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
714 if test $ac_cv_prog_gcc = yes; then
720 ac_test_CFLAGS="${CFLAGS+set}"
721 ac_save_CFLAGS="$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
728 echo 'void f(){}' > conftest.c
729 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
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
748 if test "$GCC" = yes; then
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
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
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.
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"
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
783 echo "configure: failed program was:" >&5
784 cat conftest.$ac_ext >&5
786 CPP="${CC-cc} -E -traditional-cpp"
787 cat > conftest.$ac_ext <<EOF
788 #line 789 "configure"
789 #include "confdefs.h"
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
800 echo "configure: failed program was:" >&5
801 cat conftest.$ac_ext >&5
803 CPP="${CC-cc} -nologo -E"
804 cat > conftest.$ac_ext <<EOF
805 #line 806 "configure"
806 #include "confdefs.h"
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
817 echo "configure: failed program was:" >&5
818 cat conftest.$ac_ext >&5
827 ac_cv_prog_CPP="$CPP"
829 CPP="$ac_cv_prog_CPP"
831 ac_cv_prog_CPP="$CPP"
833 echo "$ac_t""$CPP" 1>&6
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"
842 { echo "configure: error: Need rlm-dbm-lib-dir" 1>&2; exit 1; }
847 rlm_dbm_lib_dir="$withval"
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"
860 { echo "configure: error: Need rlm-dbm-include-dir" 1>&2; exit 1; }
865 rlm_dbm_include_dir="$withval"
872 smart_try_dir=$rlm_dbm_include_dir
875 ac_safe=`echo "ndbm.h" | sed 'y%./+-%__p_%'`
876 echo $ac_n "checking for ndbm.h""... $ac_c" 1>&6
877 echo "configure:878: checking for ndbm.h" >&5
883 cat > conftest.$ac_ext <<EOF
884 #line 885 "configure"
885 #include "confdefs.h"
891 if { (eval echo configure:892: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
895 echo "configure: failed program was:" >&5
896 cat conftest.$ac_ext >&5
902 if test "x$smart_include" = "x"; then
905 if test "x$LOCATE" != "x"; then
909 for x in `${LOCATE} $file 2>/dev/null`; do
910 base=`echo $x | sed "s%/${file}%%"`
911 if test "x$x" = "x$base"; then
915 dir=`${DIRNAME} $x 2>/dev/null`
916 exclude=`echo ${dir} | ${GREP} /home`
917 if test "x$exclude" != "x"; then
921 already=`echo \$smart_include_dir ${DIRS} | ${GREP} ${dir}`
922 if test "x$already" = "x"; then
928 eval "smart_include_dir=\"\$smart_include_dir $DIRS\""
931 for try in $smart_try_dir $smart_include_dir /usr/local/include/ /opt/include; do
932 CFLAGS="$old_CFLAGS -I$try"
934 cat > conftest.$ac_ext <<EOF
935 #line 936 "configure"
936 #include "confdefs.h"
942 if { (eval echo configure:943: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
944 smart_include="-I$try"
946 echo "configure: failed program was:" >&5
947 cat conftest.$ac_ext >&5
953 if test "x$smart_include" != "x"; then
960 if test "x$smart_include" != "x"; then
961 echo "$ac_t""yes" 1>&6
962 eval "ac_cv_header_$ac_safe=yes"
963 CFLAGS="$old_CFLAGS $smart_include"
964 SMART_CFLAGS="$SMART_CFLAGS $smart_include"
966 echo "$ac_t""no" 1>&6
969 if test "x$ac_cv_header_ndbm_h" = "xyes"; then
970 SMART_CFLAGS="${SMART_CFLAGS} -DHAVE_NDBM_H"
974 ac_safe=`echo "gdbm/ndbm.h" | sed 'y%./+-%__p_%'`
975 echo $ac_n "checking for gdbm/ndbm.h""... $ac_c" 1>&6
976 echo "configure:977: checking for gdbm/ndbm.h" >&5
982 cat > conftest.$ac_ext <<EOF
983 #line 984 "configure"
984 #include "confdefs.h"
985 #include <gdbm/ndbm.h>
990 if { (eval echo configure:991: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
994 echo "configure: failed program was:" >&5
995 cat conftest.$ac_ext >&5
1001 if test "x$smart_include" = "x"; then
1004 if test "x$LOCATE" != "x"; then
1008 for x in `${LOCATE} $file 2>/dev/null`; do
1009 base=`echo $x | sed "s%/${file}%%"`
1010 if test "x$x" = "x$base"; then
1014 dir=`${DIRNAME} $x 2>/dev/null`
1015 exclude=`echo ${dir} | ${GREP} /home`
1016 if test "x$exclude" != "x"; then
1020 already=`echo \$smart_include_dir ${DIRS} | ${GREP} ${dir}`
1021 if test "x$already" = "x"; then
1027 eval "smart_include_dir=\"\$smart_include_dir $DIRS\""
1030 for try in $smart_try_dir $smart_include_dir /usr/local/include/ /opt/include; do
1031 CFLAGS="$old_CFLAGS -I$try"
1033 cat > conftest.$ac_ext <<EOF
1034 #line 1035 "configure"
1035 #include "confdefs.h"
1036 #include <gdbm/ndbm.h>
1041 if { (eval echo configure:1042: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1043 smart_include="-I$try"
1045 echo "configure: failed program was:" >&5
1046 cat conftest.$ac_ext >&5
1052 if test "x$smart_include" != "x"; then
1056 CFLAGS="$old_CFLAGS"
1059 if test "x$smart_include" != "x"; then
1060 echo "$ac_t""yes" 1>&6
1061 eval "ac_cv_header_$ac_safe=yes"
1062 CFLAGS="$old_CFLAGS $smart_include"
1063 SMART_CFLAGS="$SMART_CFLAGS $smart_include"
1065 echo "$ac_t""no" 1>&6
1068 if test "x$ac_cv_header_gdbm_ndbm_h" = "xyes"; then
1069 SMART_CFLAGS="${SMART_CFLAGS} -DHAVE_GDBM_NDBM_H"
1071 ac_cv_header_gdbm_ndbm_h="bad autoconf assumption"
1074 ac_safe=`echo "gdbm-ndbm.h" | sed 'y%./+-%__p_%'`
1075 echo $ac_n "checking for gdbm-ndbm.h""... $ac_c" 1>&6
1076 echo "configure:1077: checking for gdbm-ndbm.h" >&5
1081 old_CFLAGS="$CFLAGS"
1082 cat > conftest.$ac_ext <<EOF
1083 #line 1084 "configure"
1084 #include "confdefs.h"
1085 #include <gdbm-ndbm.h>
1090 if { (eval echo configure:1091: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1094 echo "configure: failed program was:" >&5
1095 cat conftest.$ac_ext >&5
1101 if test "x$smart_include" = "x"; then
1104 if test "x$LOCATE" != "x"; then
1108 for x in `${LOCATE} $file 2>/dev/null`; do
1109 base=`echo $x | sed "s%/${file}%%"`
1110 if test "x$x" = "x$base"; then
1114 dir=`${DIRNAME} $x 2>/dev/null`
1115 exclude=`echo ${dir} | ${GREP} /home`
1116 if test "x$exclude" != "x"; then
1120 already=`echo \$smart_include_dir ${DIRS} | ${GREP} ${dir}`
1121 if test "x$already" = "x"; then
1127 eval "smart_include_dir=\"\$smart_include_dir $DIRS\""
1130 for try in $smart_try_dir $smart_include_dir /usr/local/include/ /opt/include; do
1131 CFLAGS="$old_CFLAGS -I$try"
1133 cat > conftest.$ac_ext <<EOF
1134 #line 1135 "configure"
1135 #include "confdefs.h"
1136 #include <gdbm-ndbm.h>
1141 if { (eval echo configure:1142: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1143 smart_include="-I$try"
1145 echo "configure: failed program was:" >&5
1146 cat conftest.$ac_ext >&5
1152 if test "x$smart_include" != "x"; then
1156 CFLAGS="$old_CFLAGS"
1159 if test "x$smart_include" != "x"; then
1160 echo "$ac_t""yes" 1>&6
1161 eval "ac_cv_header_$ac_safe=yes"
1162 CFLAGS="$old_CFLAGS $smart_include"
1163 SMART_CFLAGS="$SMART_CFLAGS $smart_include"
1165 echo "$ac_t""no" 1>&6
1168 if test "x$ac_cv_header_gdbm_ndbm_h" = "xyes"; then
1169 SMART_CFLAGS="${SMART_CFLAGS} -DHAVE_GDBMNDBM_H"
1171 fail="$fail (ndbm.h or gdbm/ndbm.h or gdbm-ndbm.h)"
1176 smart_try_dir=$rlm_dbm_lib_dir
1179 sm_lib_safe=`echo "ndbm" | sed 'y%./+-%__p_%'`
1180 sm_func_safe=`echo "dbm_open" | sed 'y%./+-%__p_%'`
1181 echo $ac_n "checking for dbm_open in -lndbm""... $ac_c" 1>&6
1182 echo "configure:1183: checking for dbm_open in -lndbm" >&5
1189 cat > conftest.$ac_ext <<EOF
1190 #line 1191 "configure"
1191 #include "confdefs.h"
1192 extern char dbm_open();
1197 if { (eval echo configure:1198: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1201 echo "configure: failed program was:" >&5
1202 cat conftest.$ac_ext >&5
1206 if test "x$smart_lib" = "x"; then
1209 if test "x$LOCATE" != "x"; then
1211 file=libndbm${libltdl_cv_shlibext}
1213 for x in `${LOCATE} $file 2>/dev/null`; do
1214 base=`echo $x | sed "s%/${file}%%"`
1215 if test "x$x" = "x$base"; then
1219 dir=`${DIRNAME} $x 2>/dev/null`
1220 exclude=`echo ${dir} | ${GREP} /home`
1221 if test "x$exclude" != "x"; then
1225 already=`echo \$smart_lib_dir ${DIRS} | ${GREP} ${dir}`
1226 if test "x$already" = "x"; then
1232 eval "smart_lib_dir=\"\$smart_lib_dir $DIRS\""
1236 if test "x$LOCATE" != "x"; then
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
1246 dir=`${DIRNAME} $x 2>/dev/null`
1247 exclude=`echo ${dir} | ${GREP} /home`
1248 if test "x$exclude" != "x"; then
1252 already=`echo \$smart_lib_dir ${DIRS} | ${GREP} ${dir}`
1253 if test "x$already" = "x"; then
1259 eval "smart_lib_dir=\"\$smart_lib_dir $DIRS\""
1262 for try in $smart_try_dir $smart_lib_dir /usr/local/lib/ /opt/lib; do
1263 LIBS="$old_LIBS -L$try -lndbm"
1265 cat > conftest.$ac_ext <<EOF
1266 #line 1267 "configure"
1267 #include "confdefs.h"
1268 extern char dbm_open();
1273 if { (eval echo configure:1274: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1275 smart_lib="-L$try -lndbm"
1277 echo "configure: failed program was:" >&5
1278 cat conftest.$ac_ext >&5
1281 if test "x$smart_lib" != "x"; then
1288 if test "x$smart_lib" != "x"; then
1289 echo "$ac_t""yes" 1>&6
1290 eval "ac_cv_lib_${sm_lib_safe}_${sm_func_safe}=yes"
1291 LIBS="$old_LIBS $smart_lib"
1292 SMART_LIBS="$SMART_LIBS $smart_lib"
1294 echo "$ac_t""no" 1>&6
1297 if test "x$ac_cv_lib_ndbm_dbm_open" != "xyes"; then
1300 sm_lib_safe=`echo "gdbm" | sed 'y%./+-%__p_%'`
1301 sm_func_safe=`echo "dbm_open" | sed 'y%./+-%__p_%'`
1302 echo $ac_n "checking for dbm_open in -lgdbm""... $ac_c" 1>&6
1303 echo "configure:1304: checking for dbm_open in -lgdbm" >&5
1310 cat > conftest.$ac_ext <<EOF
1311 #line 1312 "configure"
1312 #include "confdefs.h"
1313 extern char dbm_open();
1318 if { (eval echo configure:1319: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1322 echo "configure: failed program was:" >&5
1323 cat conftest.$ac_ext >&5
1327 if test "x$smart_lib" = "x"; then
1330 if test "x$LOCATE" != "x"; then
1332 file=libgdbm${libltdl_cv_shlibext}
1334 for x in `${LOCATE} $file 2>/dev/null`; do
1335 base=`echo $x | sed "s%/${file}%%"`
1336 if test "x$x" = "x$base"; then
1340 dir=`${DIRNAME} $x 2>/dev/null`
1341 exclude=`echo ${dir} | ${GREP} /home`
1342 if test "x$exclude" != "x"; then
1346 already=`echo \$smart_lib_dir ${DIRS} | ${GREP} ${dir}`
1347 if test "x$already" = "x"; then
1353 eval "smart_lib_dir=\"\$smart_lib_dir $DIRS\""
1357 if test "x$LOCATE" != "x"; then
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
1367 dir=`${DIRNAME} $x 2>/dev/null`
1368 exclude=`echo ${dir} | ${GREP} /home`
1369 if test "x$exclude" != "x"; then
1373 already=`echo \$smart_lib_dir ${DIRS} | ${GREP} ${dir}`
1374 if test "x$already" = "x"; then
1380 eval "smart_lib_dir=\"\$smart_lib_dir $DIRS\""
1383 for try in $smart_try_dir $smart_lib_dir /usr/local/lib/ /opt/lib; do
1384 LIBS="$old_LIBS -L$try -lgdbm"
1386 cat > conftest.$ac_ext <<EOF
1387 #line 1388 "configure"
1388 #include "confdefs.h"
1389 extern char dbm_open();
1394 if { (eval echo configure:1395: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1396 smart_lib="-L$try -lgdbm"
1398 echo "configure: failed program was:" >&5
1399 cat conftest.$ac_ext >&5
1402 if test "x$smart_lib" != "x"; then
1409 if test "x$smart_lib" != "x"; then
1410 echo "$ac_t""yes" 1>&6
1411 eval "ac_cv_lib_${sm_lib_safe}_${sm_func_safe}=yes"
1412 LIBS="$old_LIBS $smart_lib"
1413 SMART_LIBS="$SMART_LIBS $smart_lib"
1415 echo "$ac_t""no" 1>&6
1418 if test "x$ac_cv_lib_gdbm_dbm_open" != "xyes"; then
1419 fail="$fail (libndbm or libgdm)"
1426 echo \*\*\* module rlm_dbm is disabled.
1429 if test x"$fail" != x""; then
1430 echo "configure: warning: FAILURE: rlm_dbm requires: $fail." 1>&2;
1431 if test x"${enable_strict_dependencies}" = x"yes"; then
1432 { echo "configure: error: set --without-rlm_dbm to disable it explicitly." 1>&2; exit 1; }
1434 echo "configure: warning: silently not building rlm_dbm." 1>&2
1439 if test "x$targetname" != "x"; then
1440 dbm_utils="rlm_dbm_parser rlm_dbm_cat"
1441 dbm_install="rlm_dbm_install"
1444 dbm_ldflags=$SMART_LIBS
1445 dbm_cflags=$SMART_CFLAGS
1452 cat > confcache <<\EOF
1453 # This file is a shell script that caches the results of configure
1454 # tests run on this system so they can be shared between configure
1455 # scripts and configure runs. It is not useful on other systems.
1456 # If it contains results you don't want to keep, you may remove or edit it.
1458 # By default, configure uses ./config.cache as the cache file,
1459 # creating it if it does not exist already. You can give configure
1460 # the --cache-file=FILE option to use a different cache file; that is
1461 # what configure does when it calls configure scripts in
1462 # subdirectories, so they share the cache.
1463 # Giving --cache-file=/dev/null disables caching, for debugging configure.
1464 # config.status only pays attention to the cache file if you give it the
1465 # --recheck option to rerun configure.
1468 # The following way of writing the cache mishandles newlines in values,
1469 # but we know of no workaround that is simple, portable, and efficient.
1470 # So, don't put newlines in cache variables' values.
1471 # Ultrix sh set writes to stderr and can't be redirected directly,
1472 # and sets the high bit in the cache file unless we assign to the vars.
1474 case `(ac_space=' '; set | grep ac_space) 2>&1` in
1476 # `set' does not quote correctly, so add quotes (double-quote substitution
1477 # turns \\\\ into \\, and sed turns \\ into \).
1479 -e "s/'/'\\\\''/g" \
1480 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
1483 # `set' quotes correctly as required by POSIX, so do not add quotes.
1484 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
1487 if cmp -s $cache_file confcache; then
1490 if test -w $cache_file; then
1491 echo "updating cache $cache_file"
1492 cat confcache > $cache_file
1494 echo "not updating unwritable cache $cache_file"
1499 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
1501 test "x$prefix" = xNONE && prefix=$ac_default_prefix
1502 # Let make expand exec_prefix.
1503 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
1505 # Any assignment to VPATH causes Sun make to only execute
1506 # the first set of double-colon rules, so remove it if not needed.
1507 # If there is a colon in the path, we need to keep it.
1508 if test "x$srcdir" = x.; then
1509 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
1512 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
1514 # Transform confdefs.h into DEFS.
1515 # Protect against shell expansion while executing Makefile rules.
1516 # Protect against Makefile macro expansion.
1517 cat > conftest.defs <<\EOF
1518 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g
1519 s%[ `~#$^&*(){}\\|;'"<>?]%\\&%g
1524 DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '`
1528 # Without the "./", some shells look in PATH for config.status.
1529 : ${CONFIG_STATUS=./config.status}
1531 echo creating $CONFIG_STATUS
1532 rm -f $CONFIG_STATUS
1533 cat > $CONFIG_STATUS <<EOF
1535 # Generated automatically by configure.
1536 # Run this file to recreate the current configuration.
1537 # This directory was configured as follows,
1538 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
1540 # $0 $ac_configure_args
1542 # Compiler output produced by configure, useful for debugging
1543 # configure, is in ./config.log if it exists.
1545 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
1548 case "\$ac_option" in
1549 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
1550 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
1551 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
1552 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
1553 echo "$CONFIG_STATUS generated by autoconf version 2.13"
1555 -help | --help | --hel | --he | --h)
1556 echo "\$ac_cs_usage"; exit 0 ;;
1557 *) echo "\$ac_cs_usage"; exit 1 ;;
1561 ac_given_srcdir=$srcdir
1563 trap 'rm -fr `echo "Makefile" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
1565 cat >> $CONFIG_STATUS <<EOF
1567 # Protect against being on the right side of a sed subst in config.status.
1568 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
1569 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
1573 s%@CFLAGS@%$CFLAGS%g
1574 s%@CPPFLAGS@%$CPPFLAGS%g
1575 s%@CXXFLAGS@%$CXXFLAGS%g
1576 s%@FFLAGS@%$FFLAGS%g
1578 s%@LDFLAGS@%$LDFLAGS%g
1580 s%@exec_prefix@%$exec_prefix%g
1581 s%@prefix@%$prefix%g
1582 s%@program_transform_name@%$program_transform_name%g
1583 s%@bindir@%$bindir%g
1584 s%@sbindir@%$sbindir%g
1585 s%@libexecdir@%$libexecdir%g
1586 s%@datadir@%$datadir%g
1587 s%@sysconfdir@%$sysconfdir%g
1588 s%@sharedstatedir@%$sharedstatedir%g
1589 s%@localstatedir@%$localstatedir%g
1590 s%@libdir@%$libdir%g
1591 s%@includedir@%$includedir%g
1592 s%@oldincludedir@%$oldincludedir%g
1593 s%@infodir@%$infodir%g
1594 s%@mandir@%$mandir%g
1597 s%@dbm_ldflags@%$dbm_ldflags%g
1598 s%@dbm_cflags@%$dbm_cflags%g
1599 s%@targetname@%$targetname%g
1600 s%@dbm_utils@%$dbm_utils%g
1601 s%@dbm_install@%$dbm_install%g
1606 cat >> $CONFIG_STATUS <<\EOF
1608 # Split the substitutions into bite-sized pieces for seds with
1609 # small command number limits, like on Digital OSF/1 and HP-UX.
1610 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
1611 ac_file=1 # Number of current file.
1612 ac_beg=1 # First line for current file.
1613 ac_end=$ac_max_sed_cmds # Line after last line for current file.
1616 while $ac_more_lines; do
1617 if test $ac_beg -gt 1; then
1618 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
1620 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
1622 if test ! -s conftest.s$ac_file; then
1624 rm -f conftest.s$ac_file
1626 if test -z "$ac_sed_cmds"; then
1627 ac_sed_cmds="sed -f conftest.s$ac_file"
1629 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
1631 ac_file=`expr $ac_file + 1`
1633 ac_end=`expr $ac_end + $ac_max_sed_cmds`
1636 if test -z "$ac_sed_cmds"; then
1641 cat >> $CONFIG_STATUS <<EOF
1643 CONFIG_FILES=\${CONFIG_FILES-"Makefile"}
1645 cat >> $CONFIG_STATUS <<\EOF
1646 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
1647 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
1649 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
1650 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
1651 *) ac_file_in="${ac_file}.in" ;;
1654 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
1656 # Remove last slash and all that follows it. Not all systems have dirname.
1657 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
1658 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
1659 # The file is in a subdirectory.
1660 test ! -d "$ac_dir" && mkdir "$ac_dir"
1661 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
1662 # A "../" for each directory in $ac_dir_suffix.
1663 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
1665 ac_dir_suffix= ac_dots=
1668 case "$ac_given_srcdir" in
1670 if test -z "$ac_dots"; then top_srcdir=.
1671 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
1672 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
1674 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
1675 top_srcdir="$ac_dots$ac_given_srcdir" ;;
1679 echo creating "$ac_file"
1681 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
1683 *Makefile*) ac_comsub="1i\\
1684 # $configure_input" ;;
1688 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
1690 s%@configure_input@%$configure_input%g
1691 s%@srcdir@%$srcdir%g
1692 s%@top_srcdir@%$top_srcdir%g
1693 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
1698 cat >> $CONFIG_STATUS <<EOF
1701 cat >> $CONFIG_STATUS <<\EOF
1705 chmod +x $CONFIG_STATUS
1706 rm -fr confdefs* $ac_clean_files
1707 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1