0.9.1 Release complete: Autogenerated files built.
[freeradius.git] / src / modules / rlm_sql / 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-experimental-modules      Use experimental and unstable modules. (default=no) "
16
17 # Initialize some variables set by options.
18 # The variables have the same names as the options, with
19 # dashes changed to underlines.
20 build=NONE
21 cache_file=./config.cache
22 exec_prefix=NONE
23 host=NONE
24 no_create=
25 nonopt=NONE
26 no_recursion=
27 prefix=NONE
28 program_prefix=NONE
29 program_suffix=NONE
30 program_transform_name=s,x,x,
31 silent=
32 site=
33 srcdir=
34 target=NONE
35 verbose=
36 x_includes=NONE
37 x_libraries=NONE
38 bindir='${exec_prefix}/bin'
39 sbindir='${exec_prefix}/sbin'
40 libexecdir='${exec_prefix}/libexec'
41 datadir='${prefix}/share'
42 sysconfdir='${prefix}/etc'
43 sharedstatedir='${prefix}/com'
44 localstatedir='${prefix}/var'
45 libdir='${exec_prefix}/lib'
46 includedir='${prefix}/include'
47 oldincludedir='/usr/include'
48 infodir='${prefix}/info'
49 mandir='${prefix}/man'
50
51 # Initialize some other variables.
52 subdirs=
53 MFLAGS= MAKEFLAGS=
54 SHELL=${CONFIG_SHELL-/bin/sh}
55 # Maximum number of lines to put in a shell here document.
56 ac_max_here_lines=12
57
58 ac_prev=
59 for ac_option
60 do
61
62   # If the previous option needs an argument, assign it.
63   if test -n "$ac_prev"; then
64     eval "$ac_prev=\$ac_option"
65     ac_prev=
66     continue
67   fi
68
69   case "$ac_option" in
70   -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
71   *) ac_optarg= ;;
72   esac
73
74   # Accept the important Cygnus configure options, so we can diagnose typos.
75
76   case "$ac_option" in
77
78   -bindir | --bindir | --bindi | --bind | --bin | --bi)
79     ac_prev=bindir ;;
80   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
81     bindir="$ac_optarg" ;;
82
83   -build | --build | --buil | --bui | --bu)
84     ac_prev=build ;;
85   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
86     build="$ac_optarg" ;;
87
88   -cache-file | --cache-file | --cache-fil | --cache-fi \
89   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
90     ac_prev=cache_file ;;
91   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
92   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
93     cache_file="$ac_optarg" ;;
94
95   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
96     ac_prev=datadir ;;
97   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
98   | --da=*)
99     datadir="$ac_optarg" ;;
100
101   -disable-* | --disable-*)
102     ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
103     # Reject names that are not valid shell variable names.
104     if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
105       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
106     fi
107     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
108     eval "enable_${ac_feature}=no" ;;
109
110   -enable-* | --enable-*)
111     ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
112     # Reject names that are not valid shell variable names.
113     if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
114       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
115     fi
116     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
117     case "$ac_option" in
118       *=*) ;;
119       *) ac_optarg=yes ;;
120     esac
121     eval "enable_${ac_feature}='$ac_optarg'" ;;
122
123   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
124   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
125   | --exec | --exe | --ex)
126     ac_prev=exec_prefix ;;
127   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
128   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
129   | --exec=* | --exe=* | --ex=*)
130     exec_prefix="$ac_optarg" ;;
131
132   -gas | --gas | --ga | --g)
133     # Obsolete; use --with-gas.
134     with_gas=yes ;;
135
136   -help | --help | --hel | --he)
137     # Omit some internal or obsolete options to make the list less imposing.
138     # This message is too long to be a string in the A/UX 3.1 sh.
139     cat << EOF
140 Usage: configure [options] [host]
141 Options: [defaults in brackets after descriptions]
142 Configuration:
143   --cache-file=FILE       cache test results in FILE
144   --help                  print this message
145   --no-create             do not create output files
146   --quiet, --silent       do not print \`checking...' messages
147   --version               print the version of autoconf that created configure
148 Directory and file names:
149   --prefix=PREFIX         install architecture-independent files in PREFIX
150                           [$ac_default_prefix]
151   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
152                           [same as prefix]
153   --bindir=DIR            user executables in DIR [EPREFIX/bin]
154   --sbindir=DIR           system admin executables in DIR [EPREFIX/sbin]
155   --libexecdir=DIR        program executables in DIR [EPREFIX/libexec]
156   --datadir=DIR           read-only architecture-independent data in DIR
157                           [PREFIX/share]
158   --sysconfdir=DIR        read-only single-machine data in DIR [PREFIX/etc]
159   --sharedstatedir=DIR    modifiable architecture-independent data in DIR
160                           [PREFIX/com]
161   --localstatedir=DIR     modifiable single-machine data in DIR [PREFIX/var]
162   --libdir=DIR            object code libraries in DIR [EPREFIX/lib]
163   --includedir=DIR        C header files in DIR [PREFIX/include]
164   --oldincludedir=DIR     C header files for non-gcc in DIR [/usr/include]
165   --infodir=DIR           info documentation in DIR [PREFIX/info]
166   --mandir=DIR            man documentation in DIR [PREFIX/man]
167   --srcdir=DIR            find the sources in DIR [configure dir or ..]
168   --program-prefix=PREFIX prepend PREFIX to installed program names
169   --program-suffix=SUFFIX append SUFFIX to installed program names
170   --program-transform-name=PROGRAM
171                           run sed PROGRAM on installed program names
172 EOF
173     cat << EOF
174 Host type:
175   --build=BUILD           configure for building on BUILD [BUILD=HOST]
176   --host=HOST             configure for HOST [guessed]
177   --target=TARGET         configure for TARGET [TARGET=HOST]
178 Features and packages:
179   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
180   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
181   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
182   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
183   --x-includes=DIR        X include files are in DIR
184   --x-libraries=DIR       X library files are in DIR
185 EOF
186     if test -n "$ac_help"; then
187       echo "--enable and --with options recognized:$ac_help"
188     fi
189     exit 0 ;;
190
191   -host | --host | --hos | --ho)
192     ac_prev=host ;;
193   -host=* | --host=* | --hos=* | --ho=*)
194     host="$ac_optarg" ;;
195
196   -includedir | --includedir | --includedi | --included | --include \
197   | --includ | --inclu | --incl | --inc)
198     ac_prev=includedir ;;
199   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
200   | --includ=* | --inclu=* | --incl=* | --inc=*)
201     includedir="$ac_optarg" ;;
202
203   -infodir | --infodir | --infodi | --infod | --info | --inf)
204     ac_prev=infodir ;;
205   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
206     infodir="$ac_optarg" ;;
207
208   -libdir | --libdir | --libdi | --libd)
209     ac_prev=libdir ;;
210   -libdir=* | --libdir=* | --libdi=* | --libd=*)
211     libdir="$ac_optarg" ;;
212
213   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
214   | --libexe | --libex | --libe)
215     ac_prev=libexecdir ;;
216   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
217   | --libexe=* | --libex=* | --libe=*)
218     libexecdir="$ac_optarg" ;;
219
220   -localstatedir | --localstatedir | --localstatedi | --localstated \
221   | --localstate | --localstat | --localsta | --localst \
222   | --locals | --local | --loca | --loc | --lo)
223     ac_prev=localstatedir ;;
224   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
225   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
226   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
227     localstatedir="$ac_optarg" ;;
228
229   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
230     ac_prev=mandir ;;
231   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
232     mandir="$ac_optarg" ;;
233
234   -nfp | --nfp | --nf)
235     # Obsolete; use --without-fp.
236     with_fp=no ;;
237
238   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
239   | --no-cr | --no-c)
240     no_create=yes ;;
241
242   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
243   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
244     no_recursion=yes ;;
245
246   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
247   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
248   | --oldin | --oldi | --old | --ol | --o)
249     ac_prev=oldincludedir ;;
250   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
251   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
252   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
253     oldincludedir="$ac_optarg" ;;
254
255   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
256     ac_prev=prefix ;;
257   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
258     prefix="$ac_optarg" ;;
259
260   -program-prefix | --program-prefix | --program-prefi | --program-pref \
261   | --program-pre | --program-pr | --program-p)
262     ac_prev=program_prefix ;;
263   -program-prefix=* | --program-prefix=* | --program-prefi=* \
264   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
265     program_prefix="$ac_optarg" ;;
266
267   -program-suffix | --program-suffix | --program-suffi | --program-suff \
268   | --program-suf | --program-su | --program-s)
269     ac_prev=program_suffix ;;
270   -program-suffix=* | --program-suffix=* | --program-suffi=* \
271   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
272     program_suffix="$ac_optarg" ;;
273
274   -program-transform-name | --program-transform-name \
275   | --program-transform-nam | --program-transform-na \
276   | --program-transform-n | --program-transform- \
277   | --program-transform | --program-transfor \
278   | --program-transfo | --program-transf \
279   | --program-trans | --program-tran \
280   | --progr-tra | --program-tr | --program-t)
281     ac_prev=program_transform_name ;;
282   -program-transform-name=* | --program-transform-name=* \
283   | --program-transform-nam=* | --program-transform-na=* \
284   | --program-transform-n=* | --program-transform-=* \
285   | --program-transform=* | --program-transfor=* \
286   | --program-transfo=* | --program-transf=* \
287   | --program-trans=* | --program-tran=* \
288   | --progr-tra=* | --program-tr=* | --program-t=*)
289     program_transform_name="$ac_optarg" ;;
290
291   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
292   | -silent | --silent | --silen | --sile | --sil)
293     silent=yes ;;
294
295   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
296     ac_prev=sbindir ;;
297   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
298   | --sbi=* | --sb=*)
299     sbindir="$ac_optarg" ;;
300
301   -sharedstatedir | --sharedstatedir | --sharedstatedi \
302   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
303   | --sharedst | --shareds | --shared | --share | --shar \
304   | --sha | --sh)
305     ac_prev=sharedstatedir ;;
306   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
307   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
308   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
309   | --sha=* | --sh=*)
310     sharedstatedir="$ac_optarg" ;;
311
312   -site | --site | --sit)
313     ac_prev=site ;;
314   -site=* | --site=* | --sit=*)
315     site="$ac_optarg" ;;
316
317   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
318     ac_prev=srcdir ;;
319   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
320     srcdir="$ac_optarg" ;;
321
322   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
323   | --syscon | --sysco | --sysc | --sys | --sy)
324     ac_prev=sysconfdir ;;
325   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
326   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
327     sysconfdir="$ac_optarg" ;;
328
329   -target | --target | --targe | --targ | --tar | --ta | --t)
330     ac_prev=target ;;
331   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
332     target="$ac_optarg" ;;
333
334   -v | -verbose | --verbose | --verbos | --verbo | --verb)
335     verbose=yes ;;
336
337   -version | --version | --versio | --versi | --vers)
338     echo "configure generated by autoconf version 2.13"
339     exit 0 ;;
340
341   -with-* | --with-*)
342     ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
343     # Reject names that are not valid shell variable names.
344     if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
345       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
346     fi
347     ac_package=`echo $ac_package| sed 's/-/_/g'`
348     case "$ac_option" in
349       *=*) ;;
350       *) ac_optarg=yes ;;
351     esac
352     eval "with_${ac_package}='$ac_optarg'" ;;
353
354   -without-* | --without-*)
355     ac_package=`echo $ac_option|sed -e 's/-*without-//'`
356     # Reject names that are not valid shell variable names.
357     if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
358       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
359     fi
360     ac_package=`echo $ac_package| sed 's/-/_/g'`
361     eval "with_${ac_package}=no" ;;
362
363   --x)
364     # Obsolete; use --with-x.
365     with_x=yes ;;
366
367   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
368   | --x-incl | --x-inc | --x-in | --x-i)
369     ac_prev=x_includes ;;
370   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
371   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
372     x_includes="$ac_optarg" ;;
373
374   -x-libraries | --x-libraries | --x-librarie | --x-librari \
375   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
376     ac_prev=x_libraries ;;
377   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
378   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
379     x_libraries="$ac_optarg" ;;
380
381   -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
382     ;;
383
384   *)
385     if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
386       echo "configure: warning: $ac_option: invalid host type" 1>&2
387     fi
388     if test "x$nonopt" != xNONE; then
389       { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
390     fi
391     nonopt="$ac_option"
392     ;;
393
394   esac
395 done
396
397 if test -n "$ac_prev"; then
398   { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
399 fi
400
401 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
402
403 # File descriptor usage:
404 # 0 standard input
405 # 1 file creation
406 # 2 errors and warnings
407 # 3 some systems may open it to /dev/tty
408 # 4 used on the Kubota Titan
409 # 6 checking for... messages and results
410 # 5 compiler messages saved in config.log
411 if test "$silent" = yes; then
412   exec 6>/dev/null
413 else
414   exec 6>&1
415 fi
416 exec 5>./config.log
417
418 echo "\
419 This file contains any messages produced by compilers while
420 running configure, to aid debugging if configure makes a mistake.
421 " 1>&5
422
423 # Strip out --no-create and --no-recursion so they do not pile up.
424 # Also quote any args containing shell metacharacters.
425 ac_configure_args=
426 for ac_arg
427 do
428   case "$ac_arg" in
429   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
430   | --no-cr | --no-c) ;;
431   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
432   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
433   *" "*|*"      "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
434   ac_configure_args="$ac_configure_args '$ac_arg'" ;;
435   *) ac_configure_args="$ac_configure_args $ac_arg" ;;
436   esac
437 done
438
439 # NLS nuisances.
440 # Only set these to C if already set.  These must not be set unconditionally
441 # because not all systems understand e.g. LANG=C (notably SCO).
442 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
443 # Non-C LC_CTYPE values break the ctype check.
444 if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi
445 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
446 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
447 if test "${LC_CTYPE+set}"    = set; then LC_CTYPE=C;    export LC_CTYPE;    fi
448
449 # confdefs.h avoids OS command line length limits that DEFS can exceed.
450 rm -rf conftest* confdefs.h
451 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
452 echo > confdefs.h
453
454 # A filename unique to this package, relative to the directory that
455 # configure is in, which we can look for to find out if srcdir is correct.
456 ac_unique_file=rlm_sql.c
457
458 # Find the source files, if location was not specified.
459 if test -z "$srcdir"; then
460   ac_srcdir_defaulted=yes
461   # Try the directory containing this script, then its parent.
462   ac_prog=$0
463   ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
464   test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
465   srcdir=$ac_confdir
466   if test ! -r $srcdir/$ac_unique_file; then
467     srcdir=..
468   fi
469 else
470   ac_srcdir_defaulted=no
471 fi
472 if test ! -r $srcdir/$ac_unique_file; then
473   if test "$ac_srcdir_defaulted" = yes; then
474     { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
475   else
476     { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
477   fi
478 fi
479 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
480
481 # Prefer explicitly selected file to automatically selected ones.
482 if test -z "$CONFIG_SITE"; then
483   if test "x$prefix" != xNONE; then
484     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
485   else
486     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
487   fi
488 fi
489 for ac_site_file in $CONFIG_SITE; do
490   if test -r "$ac_site_file"; then
491     echo "loading site script $ac_site_file"
492     . "$ac_site_file"
493   fi
494 done
495
496 if test -r "$cache_file"; then
497   echo "loading cache $cache_file"
498   . $cache_file
499 else
500   echo "creating cache $cache_file"
501   > $cache_file
502 fi
503
504 ac_ext=c
505 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
506 ac_cpp='$CPP $CPPFLAGS'
507 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
508 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
509 cross_compiling=$ac_cv_prog_cc_cross
510
511 ac_exeext=
512 ac_objext=o
513 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
514   # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
515   if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
516     ac_n= ac_c='
517 ' ac_t='        '
518   else
519     ac_n=-n ac_c= ac_t=
520   fi
521 else
522   ac_n= ac_c='\c' ac_t=
523 fi
524
525
526 # From configure.in Revision: 1.2 
527
528
529 fail=
530 SMART_LIBS=
531 SMART_CLFAGS=
532 if test x$with_rlm_sql != xno; then
533
534         # Extract the first word of "gcc", so it can be a program name with args.
535 set dummy gcc; ac_word=$2
536 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
537 echo "configure:538: checking for $ac_word" >&5
538 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
539   echo $ac_n "(cached) $ac_c" 1>&6
540 else
541   if test -n "$CC"; then
542   ac_cv_prog_CC="$CC" # Let the user override the test.
543 else
544   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
545   ac_dummy="$PATH"
546   for ac_dir in $ac_dummy; do
547     test -z "$ac_dir" && ac_dir=.
548     if test -f $ac_dir/$ac_word; then
549       ac_cv_prog_CC="gcc"
550       break
551     fi
552   done
553   IFS="$ac_save_ifs"
554 fi
555 fi
556 CC="$ac_cv_prog_CC"
557 if test -n "$CC"; then
558   echo "$ac_t""$CC" 1>&6
559 else
560   echo "$ac_t""no" 1>&6
561 fi
562
563 if test -z "$CC"; then
564   # Extract the first word of "cc", so it can be a program name with args.
565 set dummy cc; ac_word=$2
566 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
567 echo "configure:568: checking for $ac_word" >&5
568 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
569   echo $ac_n "(cached) $ac_c" 1>&6
570 else
571   if test -n "$CC"; then
572   ac_cv_prog_CC="$CC" # Let the user override the test.
573 else
574   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
575   ac_prog_rejected=no
576   ac_dummy="$PATH"
577   for ac_dir in $ac_dummy; do
578     test -z "$ac_dir" && ac_dir=.
579     if test -f $ac_dir/$ac_word; then
580       if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
581         ac_prog_rejected=yes
582         continue
583       fi
584       ac_cv_prog_CC="cc"
585       break
586     fi
587   done
588   IFS="$ac_save_ifs"
589 if test $ac_prog_rejected = yes; then
590   # We found a bogon in the path, so make sure we never use it.
591   set dummy $ac_cv_prog_CC
592   shift
593   if test $# -gt 0; then
594     # We chose a different compiler from the bogus one.
595     # However, it has the same basename, so the bogon will be chosen
596     # first if we set CC to just the basename; use the full file name.
597     shift
598     set dummy "$ac_dir/$ac_word" "$@"
599     shift
600     ac_cv_prog_CC="$@"
601   fi
602 fi
603 fi
604 fi
605 CC="$ac_cv_prog_CC"
606 if test -n "$CC"; then
607   echo "$ac_t""$CC" 1>&6
608 else
609   echo "$ac_t""no" 1>&6
610 fi
611
612   if test -z "$CC"; then
613     case "`uname -s`" in
614     *win32* | *WIN32*)
615       # Extract the first word of "cl", so it can be a program name with args.
616 set dummy cl; ac_word=$2
617 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
618 echo "configure:619: checking for $ac_word" >&5
619 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
620   echo $ac_n "(cached) $ac_c" 1>&6
621 else
622   if test -n "$CC"; then
623   ac_cv_prog_CC="$CC" # Let the user override the test.
624 else
625   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
626   ac_dummy="$PATH"
627   for ac_dir in $ac_dummy; do
628     test -z "$ac_dir" && ac_dir=.
629     if test -f $ac_dir/$ac_word; then
630       ac_cv_prog_CC="cl"
631       break
632     fi
633   done
634   IFS="$ac_save_ifs"
635 fi
636 fi
637 CC="$ac_cv_prog_CC"
638 if test -n "$CC"; then
639   echo "$ac_t""$CC" 1>&6
640 else
641   echo "$ac_t""no" 1>&6
642 fi
643  ;;
644     esac
645   fi
646   test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
647 fi
648
649 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
650 echo "configure:651: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
651
652 ac_ext=c
653 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
654 ac_cpp='$CPP $CPPFLAGS'
655 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
656 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
657 cross_compiling=$ac_cv_prog_cc_cross
658
659 cat > conftest.$ac_ext << EOF
660
661 #line 662 "configure"
662 #include "confdefs.h"
663
664 main(){return(0);}
665 EOF
666 if { (eval echo configure:667: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
667   ac_cv_prog_cc_works=yes
668   # If we can't run a trivial program, we are probably using a cross compiler.
669   if (./conftest; exit) 2>/dev/null; then
670     ac_cv_prog_cc_cross=no
671   else
672     ac_cv_prog_cc_cross=yes
673   fi
674 else
675   echo "configure: failed program was:" >&5
676   cat conftest.$ac_ext >&5
677   ac_cv_prog_cc_works=no
678 fi
679 rm -fr conftest*
680 ac_ext=c
681 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
682 ac_cpp='$CPP $CPPFLAGS'
683 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
684 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
685 cross_compiling=$ac_cv_prog_cc_cross
686
687 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
688 if test $ac_cv_prog_cc_works = no; then
689   { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
690 fi
691 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
692 echo "configure:693: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
693 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
694 cross_compiling=$ac_cv_prog_cc_cross
695
696 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
697 echo "configure:698: checking whether we are using GNU C" >&5
698 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
699   echo $ac_n "(cached) $ac_c" 1>&6
700 else
701   cat > conftest.c <<EOF
702 #ifdef __GNUC__
703   yes;
704 #endif
705 EOF
706 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:707: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
707   ac_cv_prog_gcc=yes
708 else
709   ac_cv_prog_gcc=no
710 fi
711 fi
712
713 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
714
715 if test $ac_cv_prog_gcc = yes; then
716   GCC=yes
717 else
718   GCC=
719 fi
720
721 ac_test_CFLAGS="${CFLAGS+set}"
722 ac_save_CFLAGS="$CFLAGS"
723 CFLAGS=
724 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
725 echo "configure:726: checking whether ${CC-cc} accepts -g" >&5
726 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
727   echo $ac_n "(cached) $ac_c" 1>&6
728 else
729   echo 'void f(){}' > conftest.c
730 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
731   ac_cv_prog_cc_g=yes
732 else
733   ac_cv_prog_cc_g=no
734 fi
735 rm -f conftest*
736
737 fi
738
739 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
740 if test "$ac_test_CFLAGS" = set; then
741   CFLAGS="$ac_save_CFLAGS"
742 elif test $ac_cv_prog_cc_g = yes; then
743   if test "$GCC" = yes; then
744     CFLAGS="-g -O2"
745   else
746     CFLAGS="-g"
747   fi
748 else
749   if test "$GCC" = yes; then
750     CFLAGS="-O2"
751   else
752     CFLAGS=
753   fi
754 fi
755
756
757                 EXPERIMENTAL=
758         # Check whether --with-experimental-modules or --without-experimental-modules was given.
759 if test "${with_experimental_modules+set}" = set; then
760   withval="$with_experimental_modules"
761    case "$withval" in
762                 yes)
763                         EXPERIMENTAL=yes
764                         ;;
765                 *)
766         esac 
767         
768 fi
769
770
771         mysubdirs=
772         if test "x$EXPERIMENTAL" = "xyes"; then
773           for foo in `find ./drivers -name configure -print`; do
774             bar=`echo $foo | sed 's%/configure$%%g'`
775             mysubdirs="$mysubdirs $bar"
776           done
777         else
778           for foo in `cat stable`; do
779             mysubdirs="$mysubdirs ./drivers/$foo"
780           done
781         fi
782
783         SQL_MODULES=
784         if test "x$EXPERIMENTAL" = "xyes"; then
785           for foo in `ls ./drivers | grep rlm`; do
786             SQL_MODULES="$SQL_MODULES $foo"
787           done
788         else
789           for foo in `cat stable`; do
790             SQL_MODULES="$SQL_MODULES $foo"
791           done
792         fi
793
794                 ln -s ../../../install-sh install-sh
795
796                                         ac_aux_dir=
797 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
798   if test -f $ac_dir/install-sh; then
799     ac_aux_dir=$ac_dir
800     ac_install_sh="$ac_aux_dir/install-sh -c"
801     break
802   elif test -f $ac_dir/install.sh; then
803     ac_aux_dir=$ac_dir
804     ac_install_sh="$ac_aux_dir/install.sh -c"
805     break
806   fi
807 done
808 if test -z "$ac_aux_dir"; then
809   { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
810 fi
811 ac_config_guess=$ac_aux_dir/config.guess
812 ac_config_sub=$ac_aux_dir/config.sub
813 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
814
815 subdirs="$mysubdirs"
816
817         rm install-sh
818
819                         
820         targetname=rlm_sql
821 else
822         targetname=
823         echo \*\*\* module rlm_sql is disabled.
824 fi
825
826 if test x"$fail" != x""; then
827         if test x"${enable_strict_dependencies}" = x"yes"; then
828                 { echo "configure: error: set --without-rlm_sql to disable it explicitly." 1>&2; exit 1; }
829         else
830                 echo "configure: warning: silently not building rlm_sql." 1>&2
831                 echo "configure: warning: FAILURE: rlm_sql requires: $fail." 1>&2
832                 if test x"$headersuggestion" != x; then
833                         echo "configure: warning: $headersuggestion" 1>&2 
834                 fi
835                 if test x"$libsuggestion" != x; then
836                         echo "configure: warning: $libsuggestion" 1>&2 
837                 fi
838                 targetname=""
839         fi
840 fi
841
842
843 sql_ldflags=$SMART_LIBS
844 sql_cflags=$SMART_CFLAGS
845
846
847
848
849 trap '' 1 2 15
850 cat > confcache <<\EOF
851 # This file is a shell script that caches the results of configure
852 # tests run on this system so they can be shared between configure
853 # scripts and configure runs.  It is not useful on other systems.
854 # If it contains results you don't want to keep, you may remove or edit it.
855 #
856 # By default, configure uses ./config.cache as the cache file,
857 # creating it if it does not exist already.  You can give configure
858 # the --cache-file=FILE option to use a different cache file; that is
859 # what configure does when it calls configure scripts in
860 # subdirectories, so they share the cache.
861 # Giving --cache-file=/dev/null disables caching, for debugging configure.
862 # config.status only pays attention to the cache file if you give it the
863 # --recheck option to rerun configure.
864 #
865 EOF
866 # The following way of writing the cache mishandles newlines in values,
867 # but we know of no workaround that is simple, portable, and efficient.
868 # So, don't put newlines in cache variables' values.
869 # Ultrix sh set writes to stderr and can't be redirected directly,
870 # and sets the high bit in the cache file unless we assign to the vars.
871 (set) 2>&1 |
872   case `(ac_space=' '; set | grep ac_space) 2>&1` in
873   *ac_space=\ *)
874     # `set' does not quote correctly, so add quotes (double-quote substitution
875     # turns \\\\ into \\, and sed turns \\ into \).
876     sed -n \
877       -e "s/'/'\\\\''/g" \
878       -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
879     ;;
880   *)
881     # `set' quotes correctly as required by POSIX, so do not add quotes.
882     sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
883     ;;
884   esac >> confcache
885 if cmp -s $cache_file confcache; then
886   :
887 else
888   if test -w $cache_file; then
889     echo "updating cache $cache_file"
890     cat confcache > $cache_file
891   else
892     echo "not updating unwritable cache $cache_file"
893   fi
894 fi
895 rm -f confcache
896
897 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
898
899 test "x$prefix" = xNONE && prefix=$ac_default_prefix
900 # Let make expand exec_prefix.
901 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
902
903 # Any assignment to VPATH causes Sun make to only execute
904 # the first set of double-colon rules, so remove it if not needed.
905 # If there is a colon in the path, we need to keep it.
906 if test "x$srcdir" = x.; then
907   ac_vpsub='/^[         ]*VPATH[        ]*=[^:]*$/d'
908 fi
909
910 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
911
912 # Transform confdefs.h into DEFS.
913 # Protect against shell expansion while executing Makefile rules.
914 # Protect against Makefile macro expansion.
915 cat > conftest.defs <<\EOF
916 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g
917 s%[     `~#$^&*(){}\\|;'"<>?]%\\&%g
918 s%\[%\\&%g
919 s%\]%\\&%g
920 s%\$%$$%g
921 EOF
922 DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '`
923 rm -f conftest.defs
924
925
926 # Without the "./", some shells look in PATH for config.status.
927 : ${CONFIG_STATUS=./config.status}
928
929 echo creating $CONFIG_STATUS
930 rm -f $CONFIG_STATUS
931 cat > $CONFIG_STATUS <<EOF
932 #! /bin/sh
933 # Generated automatically by configure.
934 # Run this file to recreate the current configuration.
935 # This directory was configured as follows,
936 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
937 #
938 # $0 $ac_configure_args
939 #
940 # Compiler output produced by configure, useful for debugging
941 # configure, is in ./config.log if it exists.
942
943 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
944 for ac_option
945 do
946   case "\$ac_option" in
947   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
948     echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
949     exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
950   -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
951     echo "$CONFIG_STATUS generated by autoconf version 2.13"
952     exit 0 ;;
953   -help | --help | --hel | --he | --h)
954     echo "\$ac_cs_usage"; exit 0 ;;
955   *) echo "\$ac_cs_usage"; exit 1 ;;
956   esac
957 done
958
959 ac_given_srcdir=$srcdir
960
961 trap 'rm -fr `echo "\
962         ./Makefile \
963         ./drivers/Makefile
964 " | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
965 EOF
966 cat >> $CONFIG_STATUS <<EOF
967
968 # Protect against being on the right side of a sed subst in config.status.
969 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
970  s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
971 $ac_vpsub
972 $extrasub
973 s%@SHELL@%$SHELL%g
974 s%@CFLAGS@%$CFLAGS%g
975 s%@CPPFLAGS@%$CPPFLAGS%g
976 s%@CXXFLAGS@%$CXXFLAGS%g
977 s%@FFLAGS@%$FFLAGS%g
978 s%@DEFS@%$DEFS%g
979 s%@LDFLAGS@%$LDFLAGS%g
980 s%@LIBS@%$LIBS%g
981 s%@exec_prefix@%$exec_prefix%g
982 s%@prefix@%$prefix%g
983 s%@program_transform_name@%$program_transform_name%g
984 s%@bindir@%$bindir%g
985 s%@sbindir@%$sbindir%g
986 s%@libexecdir@%$libexecdir%g
987 s%@datadir@%$datadir%g
988 s%@sysconfdir@%$sysconfdir%g
989 s%@sharedstatedir@%$sharedstatedir%g
990 s%@localstatedir@%$localstatedir%g
991 s%@libdir@%$libdir%g
992 s%@includedir@%$includedir%g
993 s%@oldincludedir@%$oldincludedir%g
994 s%@infodir@%$infodir%g
995 s%@mandir@%$mandir%g
996 s%@CC@%$CC%g
997 s%@subdirs@%$subdirs%g
998 s%@sql_ldflags@%$sql_ldflags%g
999 s%@sql_cflags@%$sql_cflags%g
1000 s%@targetname@%$targetname%g
1001 s%@SQL_MODULES@%$SQL_MODULES%g
1002
1003 CEOF
1004 EOF
1005
1006 cat >> $CONFIG_STATUS <<\EOF
1007
1008 # Split the substitutions into bite-sized pieces for seds with
1009 # small command number limits, like on Digital OSF/1 and HP-UX.
1010 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
1011 ac_file=1 # Number of current file.
1012 ac_beg=1 # First line for current file.
1013 ac_end=$ac_max_sed_cmds # Line after last line for current file.
1014 ac_more_lines=:
1015 ac_sed_cmds=""
1016 while $ac_more_lines; do
1017   if test $ac_beg -gt 1; then
1018     sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
1019   else
1020     sed "${ac_end}q" conftest.subs > conftest.s$ac_file
1021   fi
1022   if test ! -s conftest.s$ac_file; then
1023     ac_more_lines=false
1024     rm -f conftest.s$ac_file
1025   else
1026     if test -z "$ac_sed_cmds"; then
1027       ac_sed_cmds="sed -f conftest.s$ac_file"
1028     else
1029       ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
1030     fi
1031     ac_file=`expr $ac_file + 1`
1032     ac_beg=$ac_end
1033     ac_end=`expr $ac_end + $ac_max_sed_cmds`
1034   fi
1035 done
1036 if test -z "$ac_sed_cmds"; then
1037   ac_sed_cmds=cat
1038 fi
1039 EOF
1040
1041 cat >> $CONFIG_STATUS <<EOF
1042
1043 CONFIG_FILES=\${CONFIG_FILES-"\
1044         ./Makefile \
1045         ./drivers/Makefile
1046 "}
1047 EOF
1048 cat >> $CONFIG_STATUS <<\EOF
1049 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
1050   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
1051   case "$ac_file" in
1052   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
1053        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
1054   *) ac_file_in="${ac_file}.in" ;;
1055   esac
1056
1057   # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
1058
1059   # Remove last slash and all that follows it.  Not all systems have dirname.
1060   ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
1061   if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
1062     # The file is in a subdirectory.
1063     test ! -d "$ac_dir" && mkdir "$ac_dir"
1064     ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
1065     # A "../" for each directory in $ac_dir_suffix.
1066     ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
1067   else
1068     ac_dir_suffix= ac_dots=
1069   fi
1070
1071   case "$ac_given_srcdir" in
1072   .)  srcdir=.
1073       if test -z "$ac_dots"; then top_srcdir=.
1074       else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
1075   /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
1076   *) # Relative path.
1077     srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
1078     top_srcdir="$ac_dots$ac_given_srcdir" ;;
1079   esac
1080
1081
1082   echo creating "$ac_file"
1083   rm -f "$ac_file"
1084   configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
1085   case "$ac_file" in
1086   *Makefile*) ac_comsub="1i\\
1087 # $configure_input" ;;
1088   *) ac_comsub= ;;
1089   esac
1090
1091   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
1092   sed -e "$ac_comsub
1093 s%@configure_input@%$configure_input%g
1094 s%@srcdir@%$srcdir%g
1095 s%@top_srcdir@%$top_srcdir%g
1096 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
1097 fi; done
1098 rm -f conftest.s*
1099
1100 EOF
1101 cat >> $CONFIG_STATUS <<EOF
1102
1103 EOF
1104 cat >> $CONFIG_STATUS <<\EOF
1105
1106 exit 0
1107 EOF
1108 chmod +x $CONFIG_STATUS
1109 rm -fr confdefs* $ac_clean_files
1110 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
1111
1112 if test "$no_recursion" != yes; then
1113
1114   # Remove --cache-file and --srcdir arguments so they do not pile up.
1115   ac_sub_configure_args=
1116   ac_prev=
1117   for ac_arg in $ac_configure_args; do
1118     if test -n "$ac_prev"; then
1119       ac_prev=
1120       continue
1121     fi
1122     case "$ac_arg" in
1123     -cache-file | --cache-file | --cache-fil | --cache-fi \
1124     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1125       ac_prev=cache_file ;;
1126     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1127     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1128       ;;
1129     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1130       ac_prev=srcdir ;;
1131     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1132       ;;
1133     *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
1134     esac
1135   done
1136
1137   for ac_config_dir in $mysubdirs; do
1138
1139     # Do not complain, so a configure script can configure whichever
1140     # parts of a large source tree are present.
1141     if test ! -d $srcdir/$ac_config_dir; then
1142       continue
1143     fi
1144
1145     echo configuring in $ac_config_dir
1146
1147     case "$srcdir" in
1148     .) ;;
1149     *)
1150       if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
1151       else
1152         { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
1153       fi
1154       ;;
1155     esac
1156
1157     ac_popdir=`pwd`
1158     cd $ac_config_dir
1159
1160       # A "../" for each directory in /$ac_config_dir.
1161       ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
1162
1163     case "$srcdir" in
1164     .) # No --srcdir option.  We are building in place.
1165       ac_sub_srcdir=$srcdir ;;
1166     /*) # Absolute path.
1167       ac_sub_srcdir=$srcdir/$ac_config_dir ;;
1168     *) # Relative path.
1169       ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
1170     esac
1171
1172     # Check for guested configure; otherwise get Cygnus style configure.
1173     if test -f $ac_sub_srcdir/configure; then
1174       ac_sub_configure=$ac_sub_srcdir/configure
1175     elif test -f $ac_sub_srcdir/configure.in; then
1176       ac_sub_configure=$ac_configure
1177     else
1178       echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
1179       ac_sub_configure=
1180     fi
1181
1182     # The recursion is here.
1183     if test -n "$ac_sub_configure"; then
1184
1185       # Make the cache file name correct relative to the subdirectory.
1186       case "$cache_file" in
1187       /*) ac_sub_cache_file=$cache_file ;;
1188       *) # Relative path.
1189         ac_sub_cache_file="$ac_dots$cache_file" ;;
1190       esac
1191
1192       echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
1193       # The eval makes quoting arguments work.
1194       if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
1195       then :
1196       else
1197         { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }
1198       fi
1199     fi
1200
1201     cd "$ac_popdir"
1202   done
1203 fi
1204