Changed attribute type, so says "ju bin" <binju@online.sz.js.cn>
[freeradius.git] / 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   --enable-shared[=PKGS]  build shared libraries [default=yes]"
16 ac_help="$ac_help
17   --enable-static[=PKGS]  build static libraries [default=yes]"
18 ac_help="$ac_help
19   --enable-fast-install[=PKGS]  optimize for fast installation [default=yes]"
20 ac_help="$ac_help
21   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]"
22 ac_help="$ac_help
23   --disable-libtool-lock  avoid locking (might break parallel builds)"
24 ac_help="$ac_help
25   --enable-strict-dependencies  Fail configure on lack of module dependancy."
26 ac_help="$ac_help
27   --with-FOO-include-dir=DIR   Dir for includes for FOO, module dependancy."
28 ac_help="$ac_help
29   --with-FOO-lib-dir=DIR  Dir for libraries for FOO, module dependancy."
30 ac_help="$ac_help
31   --with-logdir=DIR       Directory for logfiles [LOCALSTATEDIR/log/radius] "
32 ac_help="$ac_help
33   --with-radacctdir=PATH  Directory for detail files [LOGDIR/radacct] "
34 ac_help="$ac_help
35   --with-raddbdir=DIR     Directory for config files [SYSCONFDIR/raddb] "
36 ac_help="$ac_help
37   --with-dict-nocase      Make dictionary case-independant (default=yes)"
38 ac_help="$ac_help
39   --with-ascend-binary    Include support for Ascend binary filter attributes (default=yes)"
40 ac_help="$ac_help
41   --with-threads          Use threads, if available.  (default=yes) "
42 ac_help="$ac_help
43   --with-snmp             Compile in SNMP support. (default=yes)"
44 ac_help="$ac_help
45   --disable-ltdl-install  do not install libltdl"
46 ac_help="$ac_help
47   --with-static-modules=QUOTED-MODULE-LIST"
48 ac_help="$ac_help
49   --enable-developer      Turns on flags of interest to developers."
50 ac_help="$ac_help
51   --with-rlm-FOO-lib-dir=DIR       Directory to look for library files used by module FOO"
52 ac_help="$ac_help
53   --with-rlm-FOO-include-dir=DIR   Directory to look for include files used by module FOO"
54
55 # Initialize some variables set by options.
56 # The variables have the same names as the options, with
57 # dashes changed to underlines.
58 build=NONE
59 cache_file=./config.cache
60 exec_prefix=NONE
61 host=NONE
62 no_create=
63 nonopt=NONE
64 no_recursion=
65 prefix=NONE
66 program_prefix=NONE
67 program_suffix=NONE
68 program_transform_name=s,x,x,
69 silent=
70 site=
71 srcdir=
72 target=NONE
73 verbose=
74 x_includes=NONE
75 x_libraries=NONE
76 bindir='${exec_prefix}/bin'
77 sbindir='${exec_prefix}/sbin'
78 libexecdir='${exec_prefix}/libexec'
79 datadir='${prefix}/share'
80 sysconfdir='${prefix}/etc'
81 sharedstatedir='${prefix}/com'
82 localstatedir='${prefix}/var'
83 libdir='${exec_prefix}/lib'
84 includedir='${prefix}/include'
85 oldincludedir='/usr/include'
86 infodir='${prefix}/info'
87 mandir='${prefix}/man'
88
89 # Initialize some other variables.
90 subdirs=
91 MFLAGS= MAKEFLAGS=
92 SHELL=${CONFIG_SHELL-/bin/sh}
93 # Maximum number of lines to put in a shell here document.
94 ac_max_here_lines=12
95
96 ac_prev=
97 for ac_option
98 do
99
100   # If the previous option needs an argument, assign it.
101   if test -n "$ac_prev"; then
102     eval "$ac_prev=\$ac_option"
103     ac_prev=
104     continue
105   fi
106
107   case "$ac_option" in
108   -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
109   *) ac_optarg= ;;
110   esac
111
112   # Accept the important Cygnus configure options, so we can diagnose typos.
113
114   case "$ac_option" in
115
116   -bindir | --bindir | --bindi | --bind | --bin | --bi)
117     ac_prev=bindir ;;
118   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
119     bindir="$ac_optarg" ;;
120
121   -build | --build | --buil | --bui | --bu)
122     ac_prev=build ;;
123   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
124     build="$ac_optarg" ;;
125
126   -cache-file | --cache-file | --cache-fil | --cache-fi \
127   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
128     ac_prev=cache_file ;;
129   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
130   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
131     cache_file="$ac_optarg" ;;
132
133   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
134     ac_prev=datadir ;;
135   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
136   | --da=*)
137     datadir="$ac_optarg" ;;
138
139   -disable-* | --disable-*)
140     ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
141     # Reject names that are not valid shell variable names.
142     if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
143       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
144     fi
145     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
146     eval "enable_${ac_feature}=no" ;;
147
148   -enable-* | --enable-*)
149     ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
150     # Reject names that are not valid shell variable names.
151     if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
152       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
153     fi
154     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
155     case "$ac_option" in
156       *=*) ;;
157       *) ac_optarg=yes ;;
158     esac
159     eval "enable_${ac_feature}='$ac_optarg'" ;;
160
161   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
162   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
163   | --exec | --exe | --ex)
164     ac_prev=exec_prefix ;;
165   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
166   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
167   | --exec=* | --exe=* | --ex=*)
168     exec_prefix="$ac_optarg" ;;
169
170   -gas | --gas | --ga | --g)
171     # Obsolete; use --with-gas.
172     with_gas=yes ;;
173
174   -help | --help | --hel | --he)
175     # Omit some internal or obsolete options to make the list less imposing.
176     # This message is too long to be a string in the A/UX 3.1 sh.
177     cat << EOF
178 Usage: configure [options] [host]
179 Options: [defaults in brackets after descriptions]
180 Configuration:
181   --cache-file=FILE       cache test results in FILE
182   --help                  print this message
183   --no-create             do not create output files
184   --quiet, --silent       do not print \`checking...' messages
185   --version               print the version of autoconf that created configure
186 Directory and file names:
187   --prefix=PREFIX         install architecture-independent files in PREFIX
188                           [$ac_default_prefix]
189   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
190                           [same as prefix]
191   --bindir=DIR            user executables in DIR [EPREFIX/bin]
192   --sbindir=DIR           system admin executables in DIR [EPREFIX/sbin]
193   --libexecdir=DIR        program executables in DIR [EPREFIX/libexec]
194   --datadir=DIR           read-only architecture-independent data in DIR
195                           [PREFIX/share]
196   --sysconfdir=DIR        read-only single-machine data in DIR [PREFIX/etc]
197   --sharedstatedir=DIR    modifiable architecture-independent data in DIR
198                           [PREFIX/com]
199   --localstatedir=DIR     modifiable single-machine data in DIR [PREFIX/var]
200   --libdir=DIR            object code libraries in DIR [EPREFIX/lib]
201   --includedir=DIR        C header files in DIR [PREFIX/include]
202   --oldincludedir=DIR     C header files for non-gcc in DIR [/usr/include]
203   --infodir=DIR           info documentation in DIR [PREFIX/info]
204   --mandir=DIR            man documentation in DIR [PREFIX/man]
205   --srcdir=DIR            find the sources in DIR [configure dir or ..]
206   --program-prefix=PREFIX prepend PREFIX to installed program names
207   --program-suffix=SUFFIX append SUFFIX to installed program names
208   --program-transform-name=PROGRAM
209                           run sed PROGRAM on installed program names
210 EOF
211     cat << EOF
212 Host type:
213   --build=BUILD           configure for building on BUILD [BUILD=HOST]
214   --host=HOST             configure for HOST [guessed]
215   --target=TARGET         configure for TARGET [TARGET=HOST]
216 Features and packages:
217   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
218   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
219   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
220   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
221   --x-includes=DIR        X include files are in DIR
222   --x-libraries=DIR       X library files are in DIR
223 EOF
224     if test -n "$ac_help"; then
225       echo "--enable and --with options recognized:$ac_help"
226     fi
227     exit 0 ;;
228
229   -host | --host | --hos | --ho)
230     ac_prev=host ;;
231   -host=* | --host=* | --hos=* | --ho=*)
232     host="$ac_optarg" ;;
233
234   -includedir | --includedir | --includedi | --included | --include \
235   | --includ | --inclu | --incl | --inc)
236     ac_prev=includedir ;;
237   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
238   | --includ=* | --inclu=* | --incl=* | --inc=*)
239     includedir="$ac_optarg" ;;
240
241   -infodir | --infodir | --infodi | --infod | --info | --inf)
242     ac_prev=infodir ;;
243   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
244     infodir="$ac_optarg" ;;
245
246   -libdir | --libdir | --libdi | --libd)
247     ac_prev=libdir ;;
248   -libdir=* | --libdir=* | --libdi=* | --libd=*)
249     libdir="$ac_optarg" ;;
250
251   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
252   | --libexe | --libex | --libe)
253     ac_prev=libexecdir ;;
254   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
255   | --libexe=* | --libex=* | --libe=*)
256     libexecdir="$ac_optarg" ;;
257
258   -localstatedir | --localstatedir | --localstatedi | --localstated \
259   | --localstate | --localstat | --localsta | --localst \
260   | --locals | --local | --loca | --loc | --lo)
261     ac_prev=localstatedir ;;
262   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
263   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
264   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
265     localstatedir="$ac_optarg" ;;
266
267   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
268     ac_prev=mandir ;;
269   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
270     mandir="$ac_optarg" ;;
271
272   -nfp | --nfp | --nf)
273     # Obsolete; use --without-fp.
274     with_fp=no ;;
275
276   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
277   | --no-cr | --no-c)
278     no_create=yes ;;
279
280   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
281   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
282     no_recursion=yes ;;
283
284   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
285   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
286   | --oldin | --oldi | --old | --ol | --o)
287     ac_prev=oldincludedir ;;
288   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
289   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
290   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
291     oldincludedir="$ac_optarg" ;;
292
293   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
294     ac_prev=prefix ;;
295   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
296     prefix="$ac_optarg" ;;
297
298   -program-prefix | --program-prefix | --program-prefi | --program-pref \
299   | --program-pre | --program-pr | --program-p)
300     ac_prev=program_prefix ;;
301   -program-prefix=* | --program-prefix=* | --program-prefi=* \
302   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
303     program_prefix="$ac_optarg" ;;
304
305   -program-suffix | --program-suffix | --program-suffi | --program-suff \
306   | --program-suf | --program-su | --program-s)
307     ac_prev=program_suffix ;;
308   -program-suffix=* | --program-suffix=* | --program-suffi=* \
309   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
310     program_suffix="$ac_optarg" ;;
311
312   -program-transform-name | --program-transform-name \
313   | --program-transform-nam | --program-transform-na \
314   | --program-transform-n | --program-transform- \
315   | --program-transform | --program-transfor \
316   | --program-transfo | --program-transf \
317   | --program-trans | --program-tran \
318   | --progr-tra | --program-tr | --program-t)
319     ac_prev=program_transform_name ;;
320   -program-transform-name=* | --program-transform-name=* \
321   | --program-transform-nam=* | --program-transform-na=* \
322   | --program-transform-n=* | --program-transform-=* \
323   | --program-transform=* | --program-transfor=* \
324   | --program-transfo=* | --program-transf=* \
325   | --program-trans=* | --program-tran=* \
326   | --progr-tra=* | --program-tr=* | --program-t=*)
327     program_transform_name="$ac_optarg" ;;
328
329   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
330   | -silent | --silent | --silen | --sile | --sil)
331     silent=yes ;;
332
333   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
334     ac_prev=sbindir ;;
335   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
336   | --sbi=* | --sb=*)
337     sbindir="$ac_optarg" ;;
338
339   -sharedstatedir | --sharedstatedir | --sharedstatedi \
340   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
341   | --sharedst | --shareds | --shared | --share | --shar \
342   | --sha | --sh)
343     ac_prev=sharedstatedir ;;
344   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
345   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
346   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
347   | --sha=* | --sh=*)
348     sharedstatedir="$ac_optarg" ;;
349
350   -site | --site | --sit)
351     ac_prev=site ;;
352   -site=* | --site=* | --sit=*)
353     site="$ac_optarg" ;;
354
355   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
356     ac_prev=srcdir ;;
357   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
358     srcdir="$ac_optarg" ;;
359
360   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
361   | --syscon | --sysco | --sysc | --sys | --sy)
362     ac_prev=sysconfdir ;;
363   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
364   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
365     sysconfdir="$ac_optarg" ;;
366
367   -target | --target | --targe | --targ | --tar | --ta | --t)
368     ac_prev=target ;;
369   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
370     target="$ac_optarg" ;;
371
372   -v | -verbose | --verbose | --verbos | --verbo | --verb)
373     verbose=yes ;;
374
375   -version | --version | --versio | --versi | --vers)
376     echo "configure generated by autoconf version 2.13"
377     exit 0 ;;
378
379   -with-* | --with-*)
380     ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
381     # Reject names that are not valid shell variable names.
382     if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
383       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
384     fi
385     ac_package=`echo $ac_package| sed 's/-/_/g'`
386     case "$ac_option" in
387       *=*) ;;
388       *) ac_optarg=yes ;;
389     esac
390     eval "with_${ac_package}='$ac_optarg'" ;;
391
392   -without-* | --without-*)
393     ac_package=`echo $ac_option|sed -e 's/-*without-//'`
394     # Reject names that are not valid shell variable names.
395     if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
396       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
397     fi
398     ac_package=`echo $ac_package| sed 's/-/_/g'`
399     eval "with_${ac_package}=no" ;;
400
401   --x)
402     # Obsolete; use --with-x.
403     with_x=yes ;;
404
405   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
406   | --x-incl | --x-inc | --x-in | --x-i)
407     ac_prev=x_includes ;;
408   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
409   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
410     x_includes="$ac_optarg" ;;
411
412   -x-libraries | --x-libraries | --x-librarie | --x-librari \
413   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
414     ac_prev=x_libraries ;;
415   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
416   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
417     x_libraries="$ac_optarg" ;;
418
419   -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
420     ;;
421
422   *)
423     if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
424       echo "configure: warning: $ac_option: invalid host type" 1>&2
425     fi
426     if test "x$nonopt" != xNONE; then
427       { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
428     fi
429     nonopt="$ac_option"
430     ;;
431
432   esac
433 done
434
435 if test -n "$ac_prev"; then
436   { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
437 fi
438
439 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
440
441 # File descriptor usage:
442 # 0 standard input
443 # 1 file creation
444 # 2 errors and warnings
445 # 3 some systems may open it to /dev/tty
446 # 4 used on the Kubota Titan
447 # 6 checking for... messages and results
448 # 5 compiler messages saved in config.log
449 if test "$silent" = yes; then
450   exec 6>/dev/null
451 else
452   exec 6>&1
453 fi
454 exec 5>./config.log
455
456 echo "\
457 This file contains any messages produced by compilers while
458 running configure, to aid debugging if configure makes a mistake.
459 " 1>&5
460
461 # Strip out --no-create and --no-recursion so they do not pile up.
462 # Also quote any args containing shell metacharacters.
463 ac_configure_args=
464 for ac_arg
465 do
466   case "$ac_arg" in
467   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
468   | --no-cr | --no-c) ;;
469   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
470   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
471   *" "*|*"      "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
472   ac_configure_args="$ac_configure_args '$ac_arg'" ;;
473   *) ac_configure_args="$ac_configure_args $ac_arg" ;;
474   esac
475 done
476
477 # NLS nuisances.
478 # Only set these to C if already set.  These must not be set unconditionally
479 # because not all systems understand e.g. LANG=C (notably SCO).
480 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
481 # Non-C LC_CTYPE values break the ctype check.
482 if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi
483 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
484 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
485 if test "${LC_CTYPE+set}"    = set; then LC_CTYPE=C;    export LC_CTYPE;    fi
486
487 # confdefs.h avoids OS command line length limits that DEFS can exceed.
488 rm -rf conftest* confdefs.h
489 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
490 echo > confdefs.h
491
492 # A filename unique to this package, relative to the directory that
493 # configure is in, which we can look for to find out if srcdir is correct.
494 ac_unique_file=src/main/radiusd.c
495
496 # Find the source files, if location was not specified.
497 if test -z "$srcdir"; then
498   ac_srcdir_defaulted=yes
499   # Try the directory containing this script, then its parent.
500   ac_prog=$0
501   ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
502   test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
503   srcdir=$ac_confdir
504   if test ! -r $srcdir/$ac_unique_file; then
505     srcdir=..
506   fi
507 else
508   ac_srcdir_defaulted=no
509 fi
510 if test ! -r $srcdir/$ac_unique_file; then
511   if test "$ac_srcdir_defaulted" = yes; then
512     { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
513   else
514     { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
515   fi
516 fi
517 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
518
519 # Prefer explicitly selected file to automatically selected ones.
520 if test -z "$CONFIG_SITE"; then
521   if test "x$prefix" != xNONE; then
522     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
523   else
524     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
525   fi
526 fi
527 for ac_site_file in $CONFIG_SITE; do
528   if test -r "$ac_site_file"; then
529     echo "loading site script $ac_site_file"
530     . "$ac_site_file"
531   fi
532 done
533
534 if test -r "$cache_file"; then
535   echo "loading cache $cache_file"
536   . $cache_file
537 else
538   echo "creating cache $cache_file"
539   > $cache_file
540 fi
541
542 ac_ext=c
543 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
544 ac_cpp='$CPP $CPPFLAGS'
545 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
546 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
547 cross_compiling=$ac_cv_prog_cc_cross
548
549 ac_exeext=
550 ac_objext=o
551 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
552   # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
553   if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
554     ac_n= ac_c='
555 ' ac_t='        '
556   else
557     ac_n=-n ac_c= ac_t=
558   fi
559 else
560   ac_n= ac_c='\c' ac_t=
561 fi
562
563
564
565 # From configure.in Revision: 1.141 
566 RADIUSD_MAJOR_VERSION=0
567 RADIUSD_MINOR_VERSION=5
568 RADIUSD_VERSION="${RADIUSD_MAJOR_VERSION}.${RADIUSD_MINOR_VERSION}"
569
570
571 # Extract the first word of "gcc", so it can be a program name with args.
572 set dummy gcc; ac_word=$2
573 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
574 echo "configure:575: checking for $ac_word" >&5
575 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
576   echo $ac_n "(cached) $ac_c" 1>&6
577 else
578   if test -n "$CC"; then
579   ac_cv_prog_CC="$CC" # Let the user override the test.
580 else
581   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
582   ac_dummy="$PATH"
583   for ac_dir in $ac_dummy; do
584     test -z "$ac_dir" && ac_dir=.
585     if test -f $ac_dir/$ac_word; then
586       ac_cv_prog_CC="gcc"
587       break
588     fi
589   done
590   IFS="$ac_save_ifs"
591 fi
592 fi
593 CC="$ac_cv_prog_CC"
594 if test -n "$CC"; then
595   echo "$ac_t""$CC" 1>&6
596 else
597   echo "$ac_t""no" 1>&6
598 fi
599
600 if test -z "$CC"; then
601   # Extract the first word of "cc", so it can be a program name with args.
602 set dummy cc; ac_word=$2
603 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
604 echo "configure:605: checking for $ac_word" >&5
605 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
606   echo $ac_n "(cached) $ac_c" 1>&6
607 else
608   if test -n "$CC"; then
609   ac_cv_prog_CC="$CC" # Let the user override the test.
610 else
611   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
612   ac_prog_rejected=no
613   ac_dummy="$PATH"
614   for ac_dir in $ac_dummy; do
615     test -z "$ac_dir" && ac_dir=.
616     if test -f $ac_dir/$ac_word; then
617       if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
618         ac_prog_rejected=yes
619         continue
620       fi
621       ac_cv_prog_CC="cc"
622       break
623     fi
624   done
625   IFS="$ac_save_ifs"
626 if test $ac_prog_rejected = yes; then
627   # We found a bogon in the path, so make sure we never use it.
628   set dummy $ac_cv_prog_CC
629   shift
630   if test $# -gt 0; then
631     # We chose a different compiler from the bogus one.
632     # However, it has the same basename, so the bogon will be chosen
633     # first if we set CC to just the basename; use the full file name.
634     shift
635     set dummy "$ac_dir/$ac_word" "$@"
636     shift
637     ac_cv_prog_CC="$@"
638   fi
639 fi
640 fi
641 fi
642 CC="$ac_cv_prog_CC"
643 if test -n "$CC"; then
644   echo "$ac_t""$CC" 1>&6
645 else
646   echo "$ac_t""no" 1>&6
647 fi
648
649   if test -z "$CC"; then
650     case "`uname -s`" in
651     *win32* | *WIN32*)
652       # Extract the first word of "cl", so it can be a program name with args.
653 set dummy cl; ac_word=$2
654 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
655 echo "configure:656: checking for $ac_word" >&5
656 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
657   echo $ac_n "(cached) $ac_c" 1>&6
658 else
659   if test -n "$CC"; then
660   ac_cv_prog_CC="$CC" # Let the user override the test.
661 else
662   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
663   ac_dummy="$PATH"
664   for ac_dir in $ac_dummy; do
665     test -z "$ac_dir" && ac_dir=.
666     if test -f $ac_dir/$ac_word; then
667       ac_cv_prog_CC="cl"
668       break
669     fi
670   done
671   IFS="$ac_save_ifs"
672 fi
673 fi
674 CC="$ac_cv_prog_CC"
675 if test -n "$CC"; then
676   echo "$ac_t""$CC" 1>&6
677 else
678   echo "$ac_t""no" 1>&6
679 fi
680  ;;
681     esac
682   fi
683   test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
684 fi
685
686 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
687 echo "configure:688: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
688
689 ac_ext=c
690 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
691 ac_cpp='$CPP $CPPFLAGS'
692 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
693 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
694 cross_compiling=$ac_cv_prog_cc_cross
695
696 cat > conftest.$ac_ext << EOF
697
698 #line 699 "configure"
699 #include "confdefs.h"
700
701 main(){return(0);}
702 EOF
703 if { (eval echo configure:704: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
704   ac_cv_prog_cc_works=yes
705   # If we can't run a trivial program, we are probably using a cross compiler.
706   if (./conftest; exit) 2>/dev/null; then
707     ac_cv_prog_cc_cross=no
708   else
709     ac_cv_prog_cc_cross=yes
710   fi
711 else
712   echo "configure: failed program was:" >&5
713   cat conftest.$ac_ext >&5
714   ac_cv_prog_cc_works=no
715 fi
716 rm -fr conftest*
717 ac_ext=c
718 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
719 ac_cpp='$CPP $CPPFLAGS'
720 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
721 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
722 cross_compiling=$ac_cv_prog_cc_cross
723
724 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
725 if test $ac_cv_prog_cc_works = no; then
726   { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
727 fi
728 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
729 echo "configure:730: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
730 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
731 cross_compiling=$ac_cv_prog_cc_cross
732
733 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
734 echo "configure:735: checking whether we are using GNU C" >&5
735 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
736   echo $ac_n "(cached) $ac_c" 1>&6
737 else
738   cat > conftest.c <<EOF
739 #ifdef __GNUC__
740   yes;
741 #endif
742 EOF
743 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:744: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
744   ac_cv_prog_gcc=yes
745 else
746   ac_cv_prog_gcc=no
747 fi
748 fi
749
750 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
751
752 if test $ac_cv_prog_gcc = yes; then
753   GCC=yes
754 else
755   GCC=
756 fi
757
758 ac_test_CFLAGS="${CFLAGS+set}"
759 ac_save_CFLAGS="$CFLAGS"
760 CFLAGS=
761 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
762 echo "configure:763: checking whether ${CC-cc} accepts -g" >&5
763 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
764   echo $ac_n "(cached) $ac_c" 1>&6
765 else
766   echo 'void f(){}' > conftest.c
767 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
768   ac_cv_prog_cc_g=yes
769 else
770   ac_cv_prog_cc_g=no
771 fi
772 rm -f conftest*
773
774 fi
775
776 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
777 if test "$ac_test_CFLAGS" = set; then
778   CFLAGS="$ac_save_CFLAGS"
779 elif test $ac_cv_prog_cc_g = yes; then
780   if test "$GCC" = yes; then
781     CFLAGS="-g -O2"
782   else
783     CFLAGS="-g"
784   fi
785 else
786   if test "$GCC" = yes; then
787     CFLAGS="-O2"
788   else
789     CFLAGS=
790   fi
791 fi
792
793 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
794 echo "configure:795: checking how to run the C preprocessor" >&5
795 # On Suns, sometimes $CPP names a directory.
796 if test -n "$CPP" && test -d "$CPP"; then
797   CPP=
798 fi
799 if test -z "$CPP"; then
800 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
801   echo $ac_n "(cached) $ac_c" 1>&6
802 else
803     # This must be in double quotes, not single quotes, because CPP may get
804   # substituted into the Makefile and "${CC-cc}" will confuse make.
805   CPP="${CC-cc} -E"
806   # On the NeXT, cc -E runs the code through the compiler's parser,
807   # not just through cpp.
808   cat > conftest.$ac_ext <<EOF
809 #line 810 "configure"
810 #include "confdefs.h"
811 #include <assert.h>
812 Syntax Error
813 EOF
814 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
815 { (eval echo configure:816: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
816 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
817 if test -z "$ac_err"; then
818   :
819 else
820   echo "$ac_err" >&5
821   echo "configure: failed program was:" >&5
822   cat conftest.$ac_ext >&5
823   rm -rf conftest*
824   CPP="${CC-cc} -E -traditional-cpp"
825   cat > conftest.$ac_ext <<EOF
826 #line 827 "configure"
827 #include "confdefs.h"
828 #include <assert.h>
829 Syntax Error
830 EOF
831 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
832 { (eval echo configure:833: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
833 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
834 if test -z "$ac_err"; then
835   :
836 else
837   echo "$ac_err" >&5
838   echo "configure: failed program was:" >&5
839   cat conftest.$ac_ext >&5
840   rm -rf conftest*
841   CPP="${CC-cc} -nologo -E"
842   cat > conftest.$ac_ext <<EOF
843 #line 844 "configure"
844 #include "confdefs.h"
845 #include <assert.h>
846 Syntax Error
847 EOF
848 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
849 { (eval echo configure:850: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
850 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
851 if test -z "$ac_err"; then
852   :
853 else
854   echo "$ac_err" >&5
855   echo "configure: failed program was:" >&5
856   cat conftest.$ac_ext >&5
857   rm -rf conftest*
858   CPP=/lib/cpp
859 fi
860 rm -f conftest*
861 fi
862 rm -f conftest*
863 fi
864 rm -f conftest*
865   ac_cv_prog_CPP="$CPP"
866 fi
867   CPP="$ac_cv_prog_CPP"
868 else
869   ac_cv_prog_CPP="$CPP"
870 fi
871 echo "$ac_t""$CPP" 1>&6
872
873 if test $ac_cv_prog_gcc = yes; then
874     echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
875 echo "configure:876: checking whether ${CC-cc} needs -traditional" >&5
876 if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
877   echo $ac_n "(cached) $ac_c" 1>&6
878 else
879     ac_pattern="Autoconf.*'x'"
880   cat > conftest.$ac_ext <<EOF
881 #line 882 "configure"
882 #include "confdefs.h"
883 #include <sgtty.h>
884 Autoconf TIOCGETP
885 EOF
886 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
887   egrep "$ac_pattern" >/dev/null 2>&1; then
888   rm -rf conftest*
889   ac_cv_prog_gcc_traditional=yes
890 else
891   rm -rf conftest*
892   ac_cv_prog_gcc_traditional=no
893 fi
894 rm -f conftest*
895
896
897   if test $ac_cv_prog_gcc_traditional = no; then
898     cat > conftest.$ac_ext <<EOF
899 #line 900 "configure"
900 #include "confdefs.h"
901 #include <termio.h>
902 Autoconf TCGETA
903 EOF
904 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
905   egrep "$ac_pattern" >/dev/null 2>&1; then
906   rm -rf conftest*
907   ac_cv_prog_gcc_traditional=yes
908 fi
909 rm -f conftest*
910
911   fi
912 fi
913
914 echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6
915   if test $ac_cv_prog_gcc_traditional = yes; then
916     CC="$CC -traditional"
917   fi
918 fi
919
920 echo $ac_n "checking whether we are using SUNPro C""... $ac_c" 1>&6
921 echo "configure:922: checking whether we are using SUNPro C" >&5
922 if eval "test \"`echo '$''{'ac_cv_prog_suncc'+set}'`\" = set"; then
923   echo $ac_n "(cached) $ac_c" 1>&6
924 else
925   cat > conftest.c <<EOF
926 #ifdef __SUNPRO_C
927   yes;
928 #endif
929 EOF
930 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:931: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
931   ac_cv_prog_suncc=yes
932 else
933   ac_cv_prog_suncc=no
934 fi
935 fi
936
937 echo "$ac_t""$ac_cv_prog_suncc" 1>&6
938 # Extract the first word of "ranlib", so it can be a program name with args.
939 set dummy ranlib; ac_word=$2
940 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
941 echo "configure:942: checking for $ac_word" >&5
942 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
943   echo $ac_n "(cached) $ac_c" 1>&6
944 else
945   if test -n "$RANLIB"; then
946   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
947 else
948   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
949   ac_dummy="$PATH"
950   for ac_dir in $ac_dummy; do
951     test -z "$ac_dir" && ac_dir=.
952     if test -f $ac_dir/$ac_word; then
953       ac_cv_prog_RANLIB="ranlib"
954       break
955     fi
956   done
957   IFS="$ac_save_ifs"
958   test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
959 fi
960 fi
961 RANLIB="$ac_cv_prog_RANLIB"
962 if test -n "$RANLIB"; then
963   echo "$ac_t""$RANLIB" 1>&6
964 else
965   echo "$ac_t""no" 1>&6
966 fi
967
968
969 PACKAGE=freeradius
970
971 # Extract the first word of "gmake", so it can be a program name with args.
972 set dummy gmake; ac_word=$2
973 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
974 echo "configure:975: checking for $ac_word" >&5
975 if eval "test \"`echo '$''{'ac_cv_prog_GMAKE'+set}'`\" = set"; then
976   echo $ac_n "(cached) $ac_c" 1>&6
977 else
978   if test -n "$GMAKE"; then
979   ac_cv_prog_GMAKE="$GMAKE" # Let the user override the test.
980 else
981   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
982   ac_dummy="$PATH"
983   for ac_dir in $ac_dummy; do
984     test -z "$ac_dir" && ac_dir=.
985     if test -f $ac_dir/$ac_word; then
986       ac_cv_prog_GMAKE="yes"
987       break
988     fi
989   done
990   IFS="$ac_save_ifs"
991   test -z "$ac_cv_prog_GMAKE" && ac_cv_prog_GMAKE="no"
992 fi
993 fi
994 GMAKE="$ac_cv_prog_GMAKE"
995 if test -n "$GMAKE"; then
996   echo "$ac_t""$GMAKE" 1>&6
997 else
998   echo "$ac_t""no" 1>&6
999 fi
1000
1001 if test $GMAKE = no; then
1002   # Extract the first word of "make", so it can be a program name with args.
1003 set dummy make; ac_word=$2
1004 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1005 echo "configure:1006: checking for $ac_word" >&5
1006 if eval "test \"`echo '$''{'ac_cv_path_MAKE'+set}'`\" = set"; then
1007   echo $ac_n "(cached) $ac_c" 1>&6
1008 else
1009   case "$MAKE" in
1010   /*)
1011   ac_cv_path_MAKE="$MAKE" # Let the user override the test with a path.
1012   ;;
1013   ?:/*)                  
1014   ac_cv_path_MAKE="$MAKE" # Let the user override the test with a dos path.
1015   ;;
1016   *)
1017   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1018   ac_dummy="$PATH"
1019   for ac_dir in $ac_dummy; do 
1020     test -z "$ac_dir" && ac_dir=.
1021     if test -f $ac_dir/$ac_word; then
1022       ac_cv_path_MAKE="$ac_dir/$ac_word"
1023       break
1024     fi
1025   done
1026   IFS="$ac_save_ifs"
1027   test -z "$ac_cv_path_MAKE" && ac_cv_path_MAKE="/usr/local/bin/make"
1028   ;;
1029 esac
1030 fi
1031 MAKE="$ac_cv_path_MAKE"
1032 if test -n "$MAKE"; then
1033   echo "$ac_t""$MAKE" 1>&6
1034 else
1035   echo "$ac_t""no" 1>&6
1036 fi
1037
1038 else
1039   # Extract the first word of "gmake", so it can be a program name with args.
1040 set dummy gmake; ac_word=$2
1041 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1042 echo "configure:1043: checking for $ac_word" >&5
1043 if eval "test \"`echo '$''{'ac_cv_path_MAKE'+set}'`\" = set"; then
1044   echo $ac_n "(cached) $ac_c" 1>&6
1045 else
1046   case "$MAKE" in
1047   /*)
1048   ac_cv_path_MAKE="$MAKE" # Let the user override the test with a path.
1049   ;;
1050   ?:/*)                  
1051   ac_cv_path_MAKE="$MAKE" # Let the user override the test with a dos path.
1052   ;;
1053   *)
1054   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1055   ac_dummy="$PATH"
1056   for ac_dir in $ac_dummy; do 
1057     test -z "$ac_dir" && ac_dir=.
1058     if test -f $ac_dir/$ac_word; then
1059       ac_cv_path_MAKE="$ac_dir/$ac_word"
1060       break
1061     fi
1062   done
1063   IFS="$ac_save_ifs"
1064   test -z "$ac_cv_path_MAKE" && ac_cv_path_MAKE="/usr/local/gnu/bin/make"
1065   ;;
1066 esac
1067 fi
1068 MAKE="$ac_cv_path_MAKE"
1069 if test -n "$MAKE"; then
1070   echo "$ac_t""$MAKE" 1>&6
1071 else
1072   echo "$ac_t""no" 1>&6
1073 fi
1074
1075 fi
1076 makever=`$ac_cv_path_MAKE --version 2>&1 | grep "GNU Make"`
1077 if test -z "$makever"; then
1078   { echo "configure: error: GNU Make is not installed.  Please download and install it
1079                 from ftp://prep.ai.mit.edu/pub/gnu/make/ before continuing." 1>&2; exit 1; }
1080 fi
1081
1082   echo $ac_n "checking for main in -lltdl""... $ac_c" 1>&6
1083 echo "configure:1084: checking for main in -lltdl" >&5
1084 ac_lib_var=`echo ltdl'_'main | sed 'y%./+-%__p_%'`
1085 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1086   echo $ac_n "(cached) $ac_c" 1>&6
1087 else
1088   ac_save_LIBS="$LIBS"
1089 LIBS="-lltdl  $LIBS"
1090 cat > conftest.$ac_ext <<EOF
1091 #line 1092 "configure"
1092 #include "confdefs.h"
1093
1094 int main() {
1095 main()
1096 ; return 0; }
1097 EOF
1098 if { (eval echo configure:1099: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1099   rm -rf conftest*
1100   eval "ac_cv_lib_$ac_lib_var=yes"
1101 else
1102   echo "configure: failed program was:" >&5
1103   cat conftest.$ac_ext >&5
1104   rm -rf conftest*
1105   eval "ac_cv_lib_$ac_lib_var=no"
1106 fi
1107 rm -f conftest*
1108 LIBS="$ac_save_LIBS"
1109
1110 fi
1111 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1112   echo "$ac_t""yes" 1>&6
1113   test x"$enable_ltdl_install" != xyes && enable_ltdl_install=no
1114 else
1115   echo "$ac_t""no" 1>&6
1116 if test x"$enable_ltdl_install" = xno; then
1117      echo "configure: warning: libltdl not installed, but installation disabled" 1>&2
1118    else
1119      enable_ltdl_install=yes
1120    fi
1121   
1122 fi
1123
1124   if test x"$enable_ltdl_install" = x"yes"; then
1125     ac_configure_args="$ac_configure_args --enable-ltdl-install"
1126     LIBLTDL='${top_builddir}/libltdl'/libltdl.la
1127     INCLTDL='-I${top_builddir}/libltdl'
1128   else
1129     ac_configure_args="$ac_configure_args --enable-ltdl-install=no"
1130     LIBLTDL="-lltdl"
1131     INCLTDL=
1132   fi
1133
1134
1135
1136
1137 ac_aux_dir=
1138 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1139   if test -f $ac_dir/install-sh; then
1140     ac_aux_dir=$ac_dir
1141     ac_install_sh="$ac_aux_dir/install-sh -c"
1142     break
1143   elif test -f $ac_dir/install.sh; then
1144     ac_aux_dir=$ac_dir
1145     ac_install_sh="$ac_aux_dir/install.sh -c"
1146     break
1147   fi
1148 done
1149 if test -z "$ac_aux_dir"; then
1150   { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
1151 fi
1152 ac_config_guess=$ac_aux_dir/config.guess
1153 ac_config_sub=$ac_aux_dir/config.sub
1154 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
1155
1156 # Check whether --enable-shared or --disable-shared was given.
1157 if test "${enable_shared+set}" = set; then
1158   enableval="$enable_shared"
1159   p=${PACKAGE-default}
1160 case "$enableval" in
1161 yes) enable_shared=yes ;;
1162 no) enable_shared=no ;;
1163 *)
1164   enable_shared=no
1165   # Look at the argument we got.  We use all the common list separators.
1166   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1167   for pkg in $enableval; do
1168     if test "X$pkg" = "X$p"; then
1169       enable_shared=yes
1170     fi
1171   done
1172   IFS="$ac_save_ifs"
1173   ;;
1174 esac
1175 else
1176   enable_shared=yes
1177 fi
1178
1179 # Check whether --enable-static or --disable-static was given.
1180 if test "${enable_static+set}" = set; then
1181   enableval="$enable_static"
1182   p=${PACKAGE-default}
1183 case "$enableval" in
1184 yes) enable_static=yes ;;
1185 no) enable_static=no ;;
1186 *)
1187   enable_static=no
1188   # Look at the argument we got.  We use all the common list separators.
1189   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1190   for pkg in $enableval; do
1191     if test "X$pkg" = "X$p"; then
1192       enable_static=yes
1193     fi
1194   done
1195   IFS="$ac_save_ifs"
1196   ;;
1197 esac
1198 else
1199   enable_static=yes
1200 fi
1201
1202 # Check whether --enable-fast-install or --disable-fast-install was given.
1203 if test "${enable_fast_install+set}" = set; then
1204   enableval="$enable_fast_install"
1205   p=${PACKAGE-default}
1206 case "$enableval" in
1207 yes) enable_fast_install=yes ;;
1208 no) enable_fast_install=no ;;
1209 *)
1210   enable_fast_install=no
1211   # Look at the argument we got.  We use all the common list separators.
1212   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1213   for pkg in $enableval; do
1214     if test "X$pkg" = "X$p"; then
1215       enable_fast_install=yes
1216     fi
1217   done
1218   IFS="$ac_save_ifs"
1219   ;;
1220 esac
1221 else
1222   enable_fast_install=yes
1223 fi
1224
1225
1226 # Make sure we can run config.sub.
1227 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
1228 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1229 fi
1230
1231 echo $ac_n "checking host system type""... $ac_c" 1>&6
1232 echo "configure:1233: checking host system type" >&5
1233
1234 host_alias=$host
1235 case "$host_alias" in
1236 NONE)
1237   case $nonopt in
1238   NONE)
1239     if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
1240     else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1241     fi ;;
1242   *) host_alias=$nonopt ;;
1243   esac ;;
1244 esac
1245
1246 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
1247 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1248 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1249 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1250 echo "$ac_t""$host" 1>&6
1251
1252 echo $ac_n "checking build system type""... $ac_c" 1>&6
1253 echo "configure:1254: checking build system type" >&5
1254
1255 build_alias=$build
1256 case "$build_alias" in
1257 NONE)
1258   case $nonopt in
1259   NONE) build_alias=$host_alias ;;
1260   *) build_alias=$nonopt ;;
1261   esac ;;
1262 esac
1263
1264 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1265 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1266 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1267 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1268 echo "$ac_t""$build" 1>&6
1269
1270 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1271 if test "${with_gnu_ld+set}" = set; then
1272   withval="$with_gnu_ld"
1273   test "$withval" = no || with_gnu_ld=yes
1274 else
1275   with_gnu_ld=no
1276 fi
1277
1278 ac_prog=ld
1279 if test "$ac_cv_prog_gcc" = yes; then
1280   # Check if gcc -print-prog-name=ld gives a path.
1281   echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
1282 echo "configure:1283: checking for ld used by GCC" >&5
1283   ac_prog=`($CC -print-prog-name=ld) 2>&5`
1284   case "$ac_prog" in
1285     # Accept absolute paths.
1286     [\\/]* | [A-Za-z]:[\\/]*)
1287       re_direlt='/[^/][^/]*/\.\./'
1288       # Canonicalize the path of ld
1289       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
1290       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
1291         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
1292       done
1293       test -z "$LD" && LD="$ac_prog"
1294       ;;
1295   "")
1296     # If it fails, then pretend we aren't using GCC.
1297     ac_prog=ld
1298     ;;
1299   *)
1300     # If it is relative, then search for the first ld in PATH.
1301     with_gnu_ld=unknown
1302     ;;
1303   esac
1304 elif test "$with_gnu_ld" = yes; then
1305   echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1306 echo "configure:1307: checking for GNU ld" >&5
1307 else
1308   echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1309 echo "configure:1310: checking for non-GNU ld" >&5
1310 fi
1311 if eval "test \"`echo '$''{'ac_cv_path_LD'+set}'`\" = set"; then
1312   echo $ac_n "(cached) $ac_c" 1>&6
1313 else
1314   if test -z "$LD"; then
1315   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1316   for ac_dir in $PATH; do
1317     test -z "$ac_dir" && ac_dir=.
1318     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
1319       ac_cv_path_LD="$ac_dir/$ac_prog"
1320       # Check to see if the program is GNU ld.  I'd rather use --version,
1321       # but apparently some GNU ld's only accept -v.
1322       # Break only if it was the GNU/non-GNU ld that we prefer.
1323       if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
1324         test "$with_gnu_ld" != no && break
1325       else
1326         test "$with_gnu_ld" != yes && break
1327       fi
1328     fi
1329   done
1330   IFS="$ac_save_ifs"
1331 else
1332   ac_cv_path_LD="$LD" # Let the user override the test with a path.
1333 fi
1334 fi
1335
1336 LD="$ac_cv_path_LD"
1337 if test -n "$LD"; then
1338   echo "$ac_t""$LD" 1>&6
1339 else
1340   echo "$ac_t""no" 1>&6
1341 fi
1342 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1343 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1344 echo "configure:1345: checking if the linker ($LD) is GNU ld" >&5
1345 if eval "test \"`echo '$''{'ac_cv_prog_gnu_ld'+set}'`\" = set"; then
1346   echo $ac_n "(cached) $ac_c" 1>&6
1347 else
1348   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1349 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
1350   ac_cv_prog_gnu_ld=yes
1351 else
1352   ac_cv_prog_gnu_ld=no
1353 fi
1354 fi
1355
1356 echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
1357
1358
1359 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
1360 echo "configure:1361: checking for BSD-compatible nm" >&5
1361 if eval "test \"`echo '$''{'ac_cv_path_NM'+set}'`\" = set"; then
1362   echo $ac_n "(cached) $ac_c" 1>&6
1363 else
1364   if test -n "$NM"; then
1365   # Let the user override the test.
1366   ac_cv_path_NM="$NM"
1367 else
1368   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1369   for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
1370     test -z "$ac_dir" && ac_dir=.
1371     if test -f $ac_dir/nm || test -f $ac_dir/nm$ac_exeext ; then
1372       # Check to see if the nm accepts a BSD-compat flag.
1373       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1374       #   nm: unknown option "B" ignored
1375       if ($ac_dir/nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1376         ac_cv_path_NM="$ac_dir/nm -B"
1377         break
1378       elif ($ac_dir/nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1379         ac_cv_path_NM="$ac_dir/nm -p"
1380         break
1381       else
1382         ac_cv_path_NM=${ac_cv_path_NM="$ac_dir/nm"} # keep the first match, but
1383         continue # so that we can try to find one that supports BSD flags
1384       fi
1385     fi
1386   done
1387   IFS="$ac_save_ifs"
1388   test -z "$ac_cv_path_NM" && ac_cv_path_NM=nm
1389 fi
1390 fi
1391
1392 NM="$ac_cv_path_NM"
1393 echo "$ac_t""$NM" 1>&6
1394
1395 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1396 echo "configure:1397: checking whether ln -s works" >&5
1397 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1398   echo $ac_n "(cached) $ac_c" 1>&6
1399 else
1400   rm -f conftestdata
1401 if ln -s X conftestdata 2>/dev/null
1402 then
1403   rm -f conftestdata
1404   ac_cv_prog_LN_S="ln -s"
1405 else
1406   ac_cv_prog_LN_S=ln
1407 fi
1408 fi
1409 LN_S="$ac_cv_prog_LN_S"
1410 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1411   echo "$ac_t""yes" 1>&6
1412 else
1413   echo "$ac_t""no" 1>&6
1414 fi
1415
1416
1417 case "$target" in
1418 NONE) lt_target="$host" ;;
1419 *) lt_target="$target" ;;
1420 esac
1421
1422 # Check for any special flags to pass to ltconfig.
1423 libtool_flags="--cache-file=$cache_file"
1424 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
1425 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
1426 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
1427 test "$ac_cv_prog_gcc" = yes && libtool_flags="$libtool_flags --with-gcc"
1428 test "$ac_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
1429 libtool_flags="$libtool_flags --enable-dlopen"
1430
1431 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
1432 if test "${enable_libtool_lock+set}" = set; then
1433   enableval="$enable_libtool_lock"
1434   :
1435 fi
1436
1437 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
1438 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
1439
1440 # Some flags need to be propagated to the compiler or linker for good
1441 # libtool support.
1442 case "$lt_target" in
1443 *-*-irix6*)
1444   # Find out which ABI we are using.
1445   echo '#line 1446 "configure"' > conftest.$ac_ext
1446   if { (eval echo configure:1447: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1447     case "`/usr/bin/file conftest.o`" in
1448     *32-bit*)
1449       LD="${LD-ld} -32"
1450       ;;
1451     *N32*)
1452       LD="${LD-ld} -n32"
1453       ;;
1454     *64-bit*)
1455       LD="${LD-ld} -64"
1456       ;;
1457     esac
1458   fi
1459   rm -rf conftest*
1460   ;;
1461
1462 *-*-sco3.2v5*)
1463   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
1464   SAVE_CFLAGS="$CFLAGS"
1465   CFLAGS="$CFLAGS -belf"
1466   echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
1467 echo "configure:1468: checking whether the C compiler needs -belf" >&5
1468 if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
1469   echo $ac_n "(cached) $ac_c" 1>&6
1470 else
1471   cat > conftest.$ac_ext <<EOF
1472 #line 1473 "configure"
1473 #include "confdefs.h"
1474
1475 int main() {
1476
1477 ; return 0; }
1478 EOF
1479 if { (eval echo configure:1480: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1480   rm -rf conftest*
1481   lt_cv_cc_needs_belf=yes
1482 else
1483   echo "configure: failed program was:" >&5
1484   cat conftest.$ac_ext >&5
1485   rm -rf conftest*
1486   lt_cv_cc_needs_belf=no
1487 fi
1488 rm -f conftest*
1489 fi
1490
1491 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
1492   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
1493     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
1494     CFLAGS="$SAVE_CFLAGS"
1495   fi
1496   ;;
1497
1498
1499 esac
1500
1501
1502 # Save cache, so that ltconfig can load it
1503 cat > confcache <<\EOF
1504 # This file is a shell script that caches the results of configure
1505 # tests run on this system so they can be shared between configure
1506 # scripts and configure runs.  It is not useful on other systems.
1507 # If it contains results you don't want to keep, you may remove or edit it.
1508 #
1509 # By default, configure uses ./config.cache as the cache file,
1510 # creating it if it does not exist already.  You can give configure
1511 # the --cache-file=FILE option to use a different cache file; that is
1512 # what configure does when it calls configure scripts in
1513 # subdirectories, so they share the cache.
1514 # Giving --cache-file=/dev/null disables caching, for debugging configure.
1515 # config.status only pays attention to the cache file if you give it the
1516 # --recheck option to rerun configure.
1517 #
1518 EOF
1519 # The following way of writing the cache mishandles newlines in values,
1520 # but we know of no workaround that is simple, portable, and efficient.
1521 # So, don't put newlines in cache variables' values.
1522 # Ultrix sh set writes to stderr and can't be redirected directly,
1523 # and sets the high bit in the cache file unless we assign to the vars.
1524 (set) 2>&1 |
1525   case `(ac_space=' '; set | grep ac_space) 2>&1` in
1526   *ac_space=\ *)
1527     # `set' does not quote correctly, so add quotes (double-quote substitution
1528     # turns \\\\ into \\, and sed turns \\ into \).
1529     sed -n \
1530       -e "s/'/'\\\\''/g" \
1531       -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
1532     ;;
1533   *)
1534     # `set' quotes correctly as required by POSIX, so do not add quotes.
1535     sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
1536     ;;
1537   esac >> confcache
1538 if cmp -s $cache_file confcache; then
1539   :
1540 else
1541   if test -w $cache_file; then
1542     echo "updating cache $cache_file"
1543     cat confcache > $cache_file
1544   else
1545     echo "not updating unwritable cache $cache_file"
1546   fi
1547 fi
1548 rm -f confcache
1549
1550
1551 # Actually configure libtool.  ac_aux_dir is where install-sh is found.
1552 CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
1553 LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
1554 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" \
1555 DLLTOOL="$DLLTOOL" AS="$AS" OBJDUMP="$OBJDUMP" \
1556 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
1557 $libtool_flags --no-verify $ac_aux_dir/ltmain.sh $lt_target \
1558 || { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
1559
1560 # Reload cache, that may have been modified by ltconfig
1561 if test -r "$cache_file"; then
1562   echo "loading cache $cache_file"
1563   . $cache_file
1564 else
1565   echo "creating cache $cache_file"
1566   > $cache_file
1567 fi
1568
1569
1570 # This can be used to rebuild libtool when needed
1571 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh"
1572
1573 # Always use our own libtool.
1574 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
1575
1576 # Redirect the config.log output again, so that the ltconfig log is not
1577 # clobbered by the next message.
1578 exec 5>>./config.log
1579
1580
1581
1582 # Check whether --enable-strict-dependencies or --disable-strict-dependencies was given.
1583 if test "${enable_strict_dependencies+set}" = set; then
1584   enableval="$enable_strict_dependencies"
1585   :
1586 fi
1587
1588
1589 # Check whether --with-fooincludedir or --without-fooincludedir was given.
1590 if test "${with_fooincludedir+set}" = set; then
1591   withval="$with_fooincludedir"
1592   :
1593 fi
1594
1595
1596 # Check whether --with-foolibdir or --without-foolibdir was given.
1597 if test "${with_foolibdir+set}" = set; then
1598   withval="$with_foolibdir"
1599   :
1600 fi
1601
1602
1603 logdir='${localstatedir}/log/radius'
1604 echo $ac_n "checking logdir""... $ac_c" 1>&6
1605 echo "configure:1606: checking logdir" >&5
1606 # Check whether --with-logdir or --without-logdir was given.
1607 if test "${with_logdir+set}" = set; then
1608   withval="$with_logdir"
1609    case "$withval" in
1610     no)
1611         { echo "configure: error: Need logdir" 1>&2; exit 1; }
1612         ;;
1613     yes)
1614         ;;
1615     *)
1616         logdir="$withval"
1617         ;;
1618   esac 
1619
1620 fi
1621
1622
1623 echo "$ac_t""$logdir" 1>&6
1624
1625 radacctdir='${logdir}/radacct'
1626 echo $ac_n "checking radacctdir""... $ac_c" 1>&6
1627 echo "configure:1628: checking radacctdir" >&5
1628 # Check whether --with-radacctdir or --without-radacctdir was given.
1629 if test "${with_radacctdir+set}" = set; then
1630   withval="$with_radacctdir"
1631    case "$withval" in
1632     no)
1633         { echo "configure: error: Need radacctdir" 1>&2; exit 1; }
1634         ;;
1635     yes)
1636         ;;
1637     *)
1638         radacctdir="$withval"
1639         ;;
1640   esac 
1641
1642 fi
1643
1644
1645 echo "$ac_t""$radacctdir" 1>&6
1646
1647 raddbdir='${sysconfdir}/raddb'
1648 echo $ac_n "checking raddbdir""... $ac_c" 1>&6
1649 echo "configure:1650: checking raddbdir" >&5
1650 # Check whether --with-raddbdir or --without-raddbdir was given.
1651 if test "${with_raddbdir+set}" = set; then
1652   withval="$with_raddbdir"
1653    case "$withval" in
1654     no)
1655         { echo "configure: error: Need raddbdir" 1>&2; exit 1; }
1656         ;;
1657     yes)
1658         ;;
1659     *)
1660         raddbdir="$withval"
1661         ;;
1662   esac 
1663
1664 fi
1665
1666
1667 echo "$ac_t""$raddbdir" 1>&6
1668
1669 WITH_DICT_NOCASE=yes
1670 # Check whether --with-dict-nocase or --without-dict-nocase was given.
1671 if test "${with_dict_nocase+set}" = set; then
1672   withval="$with_dict_nocase"
1673     case "$withval" in
1674     yes)
1675         ;;
1676     *)
1677         WITH_DICT_NOCASE=""
1678   esac 
1679
1680 fi
1681
1682 if test "X$WITH_DICT_NOCASE" = "Xyes"; then
1683   cat >> confdefs.h <<\EOF
1684 #define WITH_DICT_NOCASE 1
1685 EOF
1686
1687 fi
1688
1689 ASCEND_BINARY=yes
1690 # Check whether --with-ascend-binary or --without-ascend-binary was given.
1691 if test "${with_ascend_binary+set}" = set; then
1692   withval="$with_ascend_binary"
1693    case "$withval" in
1694     yes)
1695         ;;
1696     *)
1697         ASCEND_BINARY=""
1698   esac 
1699
1700 fi
1701
1702 if test "X$ASCEND_BINARY" = "Xyes"; then
1703   cat >> confdefs.h <<\EOF
1704 #define ASCEND_BINARY 1
1705 EOF
1706
1707 fi
1708
1709 WITH_THREADS=yes
1710 WITH_THREAD_POOL=yes
1711 # Check whether --with-threads or --without-threads was given.
1712 if test "${with_threads+set}" = set; then
1713   withval="$with_threads"
1714    case "$withval" in
1715     yes)
1716         ;;
1717     *)
1718         WITH_THREADS=""
1719         WITH_THREAD_POOL=""
1720   esac 
1721
1722 fi
1723
1724
1725 WITH_SNMP=yes
1726 # Check whether --with-snmp or --without-snmp was given.
1727 if test "${with_snmp+set}" = set; then
1728   withval="$with_snmp"
1729    case "$withval" in
1730     yes)
1731         ;;
1732     *)
1733         WITH_SNMP=no
1734   esac 
1735
1736 fi
1737
1738
1739 # Check whether --enable-ltdl-install or --disable-ltdl-install was given.
1740 if test "${enable_ltdl_install+set}" = set; then
1741   enableval="$enable_ltdl_install"
1742   :
1743 fi
1744
1745 if test x"${enable_ltdl_install+set}" != xset; then
1746   enable_ltdl_install=yes
1747   ac_configure_args="$ac_configure_args --enable-ltdl-install"
1748 fi
1749 subdirs="libltdl"
1750
1751
1752 STATIC_MODULES=
1753 # Check whether --with-static_modules or --without-static_modules was given.
1754 if test "${with_static_modules+set}" = set; then
1755   withval="$with_static_modules"
1756   
1757   for i in $withval; do
1758     STATIC_MODULES="$STATIC_MODULES -dlpreopen ../modules/rlm_$i/rlm_$i.la"
1759   done
1760
1761 fi
1762
1763
1764 # Check whether --enable-developer or --disable-developer was given.
1765 if test "${enable_developer+set}" = set; then
1766   enableval="$enable_developer"
1767    case "$withval" in
1768     *)
1769         developer=no
1770         ;;
1771     yes)
1772         developer=yes
1773   esac 
1774
1775 fi
1776
1777
1778 if test "x$developer" != "xno" -a -d $srcdir/CVS; then
1779     developer="yes"
1780 fi
1781
1782
1783 # Check whether --with-rlm-FOO-lib-dir or --without-rlm-FOO-lib-dir was given.
1784 if test "${with_rlm_FOO_lib_dir+set}" = set; then
1785   withval="$with_rlm_FOO_lib_dir"
1786    case "$withval" in
1787     *)
1788         ;;
1789   esac 
1790
1791 fi
1792
1793
1794 # Check whether --with-rlm-FOO-include-dir or --without-rlm-FOO-include-dir was given.
1795 if test "${with_rlm_FOO_include_dir+set}" = set; then
1796   withval="$with_rlm_FOO_include_dir"
1797    case "$withval" in
1798     *)
1799         ;;
1800   esac 
1801
1802 fi
1803
1804
1805
1806
1807 # Extract the first word of "perl", so it can be a program name with args.
1808 set dummy perl; ac_word=$2
1809 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1810 echo "configure:1811: checking for $ac_word" >&5
1811 if eval "test \"`echo '$''{'ac_cv_path_PERL'+set}'`\" = set"; then
1812   echo $ac_n "(cached) $ac_c" 1>&6
1813 else
1814   case "$PERL" in
1815   /*)
1816   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
1817   ;;
1818   ?:/*)                  
1819   ac_cv_path_PERL="$PERL" # Let the user override the test with a dos path.
1820   ;;
1821   *)
1822   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1823   ac_dummy="$PATH"
1824   for ac_dir in $ac_dummy; do 
1825     test -z "$ac_dir" && ac_dir=.
1826     if test -f $ac_dir/$ac_word; then
1827       ac_cv_path_PERL="$ac_dir/$ac_word"
1828       break
1829     fi
1830   done
1831   IFS="$ac_save_ifs"
1832   test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="/usr/local/bin/perl"
1833   ;;
1834 esac
1835 fi
1836 PERL="$ac_cv_path_PERL"
1837 if test -n "$PERL"; then
1838   echo "$ac_t""$PERL" 1>&6
1839 else
1840   echo "$ac_t""no" 1>&6
1841 fi
1842
1843 if test ! -x $ac_cv_path_PERL; then
1844   { echo "configure: error: perl not found - fatal" 1>&2; exit 1; }
1845 fi
1846 # Extract the first word of "snmpget", so it can be a program name with args.
1847 set dummy snmpget; ac_word=$2
1848 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1849 echo "configure:1850: checking for $ac_word" >&5
1850 if eval "test \"`echo '$''{'ac_cv_path_SNMPGET'+set}'`\" = set"; then
1851   echo $ac_n "(cached) $ac_c" 1>&6
1852 else
1853   case "$SNMPGET" in
1854   /*)
1855   ac_cv_path_SNMPGET="$SNMPGET" # Let the user override the test with a path.
1856   ;;
1857   ?:/*)                  
1858   ac_cv_path_SNMPGET="$SNMPGET" # Let the user override the test with a dos path.
1859   ;;
1860   *)
1861   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1862   ac_dummy="$PATH"
1863   for ac_dir in $ac_dummy; do 
1864     test -z "$ac_dir" && ac_dir=.
1865     if test -f $ac_dir/$ac_word; then
1866       ac_cv_path_SNMPGET="$ac_dir/$ac_word"
1867       break
1868     fi
1869   done
1870   IFS="$ac_save_ifs"
1871   test -z "$ac_cv_path_SNMPGET" && ac_cv_path_SNMPGET="/usr/local/bin/snmpget"
1872   ;;
1873 esac
1874 fi
1875 SNMPGET="$ac_cv_path_SNMPGET"
1876 if test -n "$SNMPGET"; then
1877   echo "$ac_t""$SNMPGET" 1>&6
1878 else
1879   echo "$ac_t""no" 1>&6
1880 fi
1881
1882 # Extract the first word of "snmpwalk", so it can be a program name with args.
1883 set dummy snmpwalk; ac_word=$2
1884 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1885 echo "configure:1886: checking for $ac_word" >&5
1886 if eval "test \"`echo '$''{'ac_cv_path_SNMPWALK'+set}'`\" = set"; then
1887   echo $ac_n "(cached) $ac_c" 1>&6
1888 else
1889   case "$SNMPWALK" in
1890   /*)
1891   ac_cv_path_SNMPWALK="$SNMPWALK" # Let the user override the test with a path.
1892   ;;
1893   ?:/*)                  
1894   ac_cv_path_SNMPWALK="$SNMPWALK" # Let the user override the test with a dos path.
1895   ;;
1896   *)
1897   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1898   ac_dummy="$PATH"
1899   for ac_dir in $ac_dummy; do 
1900     test -z "$ac_dir" && ac_dir=.
1901     if test -f $ac_dir/$ac_word; then
1902       ac_cv_path_SNMPWALK="$ac_dir/$ac_word"
1903       break
1904     fi
1905   done
1906   IFS="$ac_save_ifs"
1907   test -z "$ac_cv_path_SNMPWALK" && ac_cv_path_SNMPWALK="/usr/local/bin/snmpwalk"
1908   ;;
1909 esac
1910 fi
1911 SNMPWALK="$ac_cv_path_SNMPWALK"
1912 if test -n "$SNMPWALK"; then
1913   echo "$ac_t""$SNMPWALK" 1>&6
1914 else
1915   echo "$ac_t""no" 1>&6
1916 fi
1917
1918 # Extract the first word of "rusers", so it can be a program name with args.
1919 set dummy rusers; ac_word=$2
1920 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1921 echo "configure:1922: checking for $ac_word" >&5
1922 if eval "test \"`echo '$''{'ac_cv_path_RUSERS'+set}'`\" = set"; then
1923   echo $ac_n "(cached) $ac_c" 1>&6
1924 else
1925   case "$RUSERS" in
1926   /*)
1927   ac_cv_path_RUSERS="$RUSERS" # Let the user override the test with a path.
1928   ;;
1929   ?:/*)                  
1930   ac_cv_path_RUSERS="$RUSERS" # Let the user override the test with a dos path.
1931   ;;
1932   *)
1933   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1934   ac_dummy="$PATH"
1935   for ac_dir in $ac_dummy; do 
1936     test -z "$ac_dir" && ac_dir=.
1937     if test -f $ac_dir/$ac_word; then
1938       ac_cv_path_RUSERS="$ac_dir/$ac_word"
1939       break
1940     fi
1941   done
1942   IFS="$ac_save_ifs"
1943   test -z "$ac_cv_path_RUSERS" && ac_cv_path_RUSERS="/usr/bin/rusers"
1944   ;;
1945 esac
1946 fi
1947 RUSERS="$ac_cv_path_RUSERS"
1948 if test -n "$RUSERS"; then
1949   echo "$ac_t""$RUSERS" 1>&6
1950 else
1951   echo "$ac_t""no" 1>&6
1952 fi
1953
1954
1955 missing_dir=`cd $ac_aux_dir && pwd`
1956 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
1957 echo "configure:1958: checking for working aclocal" >&5
1958 # Run test in a subshell; some versions of sh will print an error if
1959 # an executable is not found, even if stderr is redirected.
1960 # Redirect stdin to placate older versions of autoconf.  Sigh.
1961 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
1962    ACLOCAL=aclocal
1963    echo "$ac_t""found" 1>&6
1964 else
1965    ACLOCAL="$missing_dir/missing aclocal"
1966    echo "$ac_t""missing" 1>&6
1967 fi
1968
1969 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
1970 echo "configure:1971: checking for working autoconf" >&5
1971 # Run test in a subshell; some versions of sh will print an error if
1972 # an executable is not found, even if stderr is redirected.
1973 # Redirect stdin to placate older versions of autoconf.  Sigh.
1974 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
1975    AUTOCONF=autoconf
1976    echo "$ac_t""found" 1>&6
1977 else
1978    AUTOCONF="$missing_dir/missing autoconf"
1979    echo "$ac_t""missing" 1>&6
1980 fi
1981
1982 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
1983 echo "configure:1984: checking for working autoheader" >&5
1984 # Run test in a subshell; some versions of sh will print an error if
1985 # an executable is not found, even if stderr is redirected.
1986 # Redirect stdin to placate older versions of autoconf.  Sigh.
1987 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
1988    AUTOHEADER=autoheader
1989    echo "$ac_t""found" 1>&6
1990 else
1991    AUTOHEADER="$missing_dir/missing autoheader"
1992    echo "$ac_t""missing" 1>&6
1993 fi
1994
1995
1996 # Extract the first word of "locate", so it can be a program name with args.
1997 set dummy locate; ac_word=$2
1998 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1999 echo "configure:2000: checking for $ac_word" >&5
2000 if eval "test \"`echo '$''{'ac_cv_path_LOCATE'+set}'`\" = set"; then
2001   echo $ac_n "(cached) $ac_c" 1>&6
2002 else
2003   case "$LOCATE" in
2004   /*)
2005   ac_cv_path_LOCATE="$LOCATE" # Let the user override the test with a path.
2006   ;;
2007   ?:/*)                  
2008   ac_cv_path_LOCATE="$LOCATE" # Let the user override the test with a dos path.
2009   ;;
2010   *)
2011   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2012   ac_dummy="$PATH"
2013   for ac_dir in $ac_dummy; do 
2014     test -z "$ac_dir" && ac_dir=.
2015     if test -f $ac_dir/$ac_word; then
2016       ac_cv_path_LOCATE="$ac_dir/$ac_word"
2017       break
2018     fi
2019   done
2020   IFS="$ac_save_ifs"
2021   ;;
2022 esac
2023 fi
2024 LOCATE="$ac_cv_path_LOCATE"
2025 if test -n "$LOCATE"; then
2026   echo "$ac_t""$LOCATE" 1>&6
2027 else
2028   echo "$ac_t""no" 1>&6
2029 fi
2030
2031 # Extract the first word of "dirname", so it can be a program name with args.
2032 set dummy dirname; ac_word=$2
2033 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2034 echo "configure:2035: checking for $ac_word" >&5
2035 if eval "test \"`echo '$''{'ac_cv_path_DIRNAME'+set}'`\" = set"; then
2036   echo $ac_n "(cached) $ac_c" 1>&6
2037 else
2038   case "$DIRNAME" in
2039   /*)
2040   ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path.
2041   ;;
2042   ?:/*)                  
2043   ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a dos path.
2044   ;;
2045   *)
2046   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2047   ac_dummy="$PATH"
2048   for ac_dir in $ac_dummy; do 
2049     test -z "$ac_dir" && ac_dir=.
2050     if test -f $ac_dir/$ac_word; then
2051       ac_cv_path_DIRNAME="$ac_dir/$ac_word"
2052       break
2053     fi
2054   done
2055   IFS="$ac_save_ifs"
2056   ;;
2057 esac
2058 fi
2059 DIRNAME="$ac_cv_path_DIRNAME"
2060 if test -n "$DIRNAME"; then
2061   echo "$ac_t""$DIRNAME" 1>&6
2062 else
2063   echo "$ac_t""no" 1>&6
2064 fi
2065
2066 # Extract the first word of "grep", so it can be a program name with args.
2067 set dummy grep; ac_word=$2
2068 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2069 echo "configure:2070: checking for $ac_word" >&5
2070 if eval "test \"`echo '$''{'ac_cv_path_GREP'+set}'`\" = set"; then
2071   echo $ac_n "(cached) $ac_c" 1>&6
2072 else
2073   case "$GREP" in
2074   /*)
2075   ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
2076   ;;
2077   ?:/*)                  
2078   ac_cv_path_GREP="$GREP" # Let the user override the test with a dos path.
2079   ;;
2080   *)
2081   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2082   ac_dummy="$PATH"
2083   for ac_dir in $ac_dummy; do 
2084     test -z "$ac_dir" && ac_dir=.
2085     if test -f $ac_dir/$ac_word; then
2086       ac_cv_path_GREP="$ac_dir/$ac_word"
2087       break
2088     fi
2089   done
2090   IFS="$ac_save_ifs"
2091   ;;
2092 esac
2093 fi
2094 GREP="$ac_cv_path_GREP"
2095 if test -n "$GREP"; then
2096   echo "$ac_t""$GREP" 1>&6
2097 else
2098   echo "$ac_t""no" 1>&6
2099 fi
2100
2101
2102 echo $ac_n "checking for AIX""... $ac_c" 1>&6
2103 echo "configure:2104: checking for AIX" >&5
2104 cat > conftest.$ac_ext <<EOF
2105 #line 2106 "configure"
2106 #include "confdefs.h"
2107 #ifdef _AIX
2108   yes
2109 #endif
2110
2111 EOF
2112 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2113   egrep "yes" >/dev/null 2>&1; then
2114   rm -rf conftest*
2115   echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF
2116 #define _ALL_SOURCE 1
2117 EOF
2118
2119 else
2120   rm -rf conftest*
2121   echo "$ac_t""no" 1>&6
2122 fi
2123 rm -f conftest*
2124
2125
2126
2127
2128 PTHREADLIB=
2129 if test "$WITH_THREADS" = "yes"; then 
2130   if test $ac_cv_prog_suncc = "yes"; then
2131     CFLAGS="$CFLAGS -mt"
2132   fi
2133
2134   for ac_hdr in pthread.h
2135 do
2136 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2137 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2138 echo "configure:2139: checking for $ac_hdr" >&5
2139 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2140   echo $ac_n "(cached) $ac_c" 1>&6
2141 else
2142   cat > conftest.$ac_ext <<EOF
2143 #line 2144 "configure"
2144 #include "confdefs.h"
2145 #include <$ac_hdr>
2146 EOF
2147 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2148 { (eval echo configure:2149: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2149 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2150 if test -z "$ac_err"; then
2151   rm -rf conftest*
2152   eval "ac_cv_header_$ac_safe=yes"
2153 else
2154   echo "$ac_err" >&5
2155   echo "configure: failed program was:" >&5
2156   cat conftest.$ac_ext >&5
2157   rm -rf conftest*
2158   eval "ac_cv_header_$ac_safe=no"
2159 fi
2160 rm -f conftest*
2161 fi
2162 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2163   echo "$ac_t""yes" 1>&6
2164     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2165   cat >> confdefs.h <<EOF
2166 #define $ac_tr_hdr 1
2167 EOF
2168  
2169 else
2170   echo "$ac_t""no" 1>&6
2171 fi
2172 done
2173
2174
2175   if test "X$ac_cv_header_pthread_h" = "X"; then
2176     { echo "configure: error: "You are trying to use threads without a POSIX <pthread.h>"" 1>&2; exit 1; }
2177   fi
2178
2179   echo $ac_n "checking for pthread_join in -lpthread""... $ac_c" 1>&6
2180 echo "configure:2181: checking for pthread_join in -lpthread" >&5
2181 ac_lib_var=`echo pthread'_'pthread_join | sed 'y%./+-%__p_%'`
2182 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2183   echo $ac_n "(cached) $ac_c" 1>&6
2184 else
2185   ac_save_LIBS="$LIBS"
2186 LIBS="-lpthread  $LIBS"
2187 cat > conftest.$ac_ext <<EOF
2188 #line 2189 "configure"
2189 #include "confdefs.h"
2190 /* Override any gcc2 internal prototype to avoid an error.  */
2191 /* We use char because int might match the return type of a gcc2
2192     builtin and then its argument prototype would still apply.  */
2193 char pthread_join();
2194
2195 int main() {
2196 pthread_join()
2197 ; return 0; }
2198 EOF
2199 if { (eval echo configure:2200: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2200   rm -rf conftest*
2201   eval "ac_cv_lib_$ac_lib_var=yes"
2202 else
2203   echo "configure: failed program was:" >&5
2204   cat conftest.$ac_ext >&5
2205   rm -rf conftest*
2206   eval "ac_cv_lib_$ac_lib_var=no"
2207 fi
2208 rm -f conftest*
2209 LIBS="$ac_save_LIBS"
2210
2211 fi
2212 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2213   echo "$ac_t""yes" 1>&6
2214   PTHREADLIB="-lpthread"
2215   
2216 else
2217   echo "$ac_t""no" 1>&6
2218 fi
2219
2220
2221
2222   
2223 echo $ac_n "checking for library containing sem_init""... $ac_c" 1>&6
2224 echo "configure:2225: checking for library containing sem_init" >&5
2225 if eval "test \"`echo '$''{'ac_cv_search_sem_init'+set}'`\" = set"; then
2226   echo $ac_n "(cached) $ac_c" 1>&6
2227 else
2228   ac_func_search_save_LIBS="$LIBS"
2229 ac_cv_search_sem_init="no"
2230 cat > conftest.$ac_ext <<EOF
2231 #line 2232 "configure"
2232 #include "confdefs.h"
2233 /* Override any gcc2 internal prototype to avoid an error.  */
2234 /* We use char because int might match the return type of a gcc2
2235     builtin and then its argument prototype would still apply.  */
2236 char sem_init();
2237
2238 int main() {
2239 sem_init()
2240 ; return 0; }
2241 EOF
2242 if { (eval echo configure:2243: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2243   rm -rf conftest*
2244   ac_cv_search_sem_init="none required"
2245 else
2246   echo "configure: failed program was:" >&5
2247   cat conftest.$ac_ext >&5
2248 fi
2249 rm -f conftest*
2250 test "$ac_cv_search_sem_init" = "no" && for i in pthread rt; do
2251 LIBS="-l$i "-lpthread"
2252    $ac_func_search_save_LIBS"
2253 cat > conftest.$ac_ext <<EOF
2254 #line 2255 "configure"
2255 #include "confdefs.h"
2256 /* Override any gcc2 internal prototype to avoid an error.  */
2257 /* We use char because int might match the return type of a gcc2
2258     builtin and then its argument prototype would still apply.  */
2259 char sem_init();
2260
2261 int main() {
2262 sem_init()
2263 ; return 0; }
2264 EOF
2265 if { (eval echo configure:2266: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2266   rm -rf conftest*
2267   ac_cv_search_sem_init="-l$i"
2268 break
2269 else
2270   echo "configure: failed program was:" >&5
2271   cat conftest.$ac_ext >&5
2272 fi
2273 rm -f conftest*
2274 done
2275 LIBS="$ac_func_search_save_LIBS"
2276 fi
2277
2278 echo "$ac_t""$ac_cv_search_sem_init" 1>&6
2279 if test "$ac_cv_search_sem_init" != "no"; then
2280   test "$ac_cv_search_sem_init" = "none required" || LIBS="$ac_cv_search_sem_init $LIBS"
2281    
2282                                 
2283 else :
2284   
2285 fi
2286
2287   if test "X$PTHREADLIB" = "X"; then
2288     SAVED_CFLAGS=$CFLAGS
2289     CFLAGS="$CFLAGS -pthread -D_THREAD_SAFE"
2290     echo $ac_n "checking for pthread_create in -lc_r""... $ac_c" 1>&6
2291 echo "configure:2292: checking for pthread_create in -lc_r" >&5
2292 ac_lib_var=`echo c_r'_'pthread_create | sed 'y%./+-%__p_%'`
2293 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2294   echo $ac_n "(cached) $ac_c" 1>&6
2295 else
2296   ac_save_LIBS="$LIBS"
2297 LIBS="-lc_r  $LIBS"
2298 cat > conftest.$ac_ext <<EOF
2299 #line 2300 "configure"
2300 #include "confdefs.h"
2301 /* Override any gcc2 internal prototype to avoid an error.  */
2302 /* We use char because int might match the return type of a gcc2
2303     builtin and then its argument prototype would still apply.  */
2304 char pthread_create();
2305
2306 int main() {
2307 pthread_create()
2308 ; return 0; }
2309 EOF
2310 if { (eval echo configure:2311: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2311   rm -rf conftest*
2312   eval "ac_cv_lib_$ac_lib_var=yes"
2313 else
2314   echo "configure: failed program was:" >&5
2315   cat conftest.$ac_ext >&5
2316   rm -rf conftest*
2317   eval "ac_cv_lib_$ac_lib_var=no"
2318 fi
2319 rm -f conftest*
2320 LIBS="$ac_save_LIBS"
2321
2322 fi
2323 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2324   echo "$ac_t""yes" 1>&6
2325   PTHREADLIB="-lc_r"
2326     
2327 else
2328   echo "$ac_t""no" 1>&6
2329 fi
2330
2331   fi
2332
2333   if test "x$PTHREADLIB" != "x"; then
2334     LIBS="$LIBS $PTHREADLIB"
2335     CFLAGS="$CFLAGS -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS"
2336   fi
2337 fi
2338
2339 if test "x$PTHREADLIB" = "x"; then
2340   CFLAGS=$SAVED_CFLAGS
2341   ac_cv_header_pthread_h="no"
2342   WITH_THREADS=no
2343   WITH_THREAD_POOL=no
2344 fi
2345
2346 echo $ac_n "checking for getsockname in -lsocket""... $ac_c" 1>&6
2347 echo "configure:2348: checking for getsockname in -lsocket" >&5
2348 ac_lib_var=`echo socket'_'getsockname | sed 'y%./+-%__p_%'`
2349 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2350   echo $ac_n "(cached) $ac_c" 1>&6
2351 else
2352   ac_save_LIBS="$LIBS"
2353 LIBS="-lsocket  $LIBS"
2354 cat > conftest.$ac_ext <<EOF
2355 #line 2356 "configure"
2356 #include "confdefs.h"
2357 /* Override any gcc2 internal prototype to avoid an error.  */
2358 /* We use char because int might match the return type of a gcc2
2359     builtin and then its argument prototype would still apply.  */
2360 char getsockname();
2361
2362 int main() {
2363 getsockname()
2364 ; return 0; }
2365 EOF
2366 if { (eval echo configure:2367: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2367   rm -rf conftest*
2368   eval "ac_cv_lib_$ac_lib_var=yes"
2369 else
2370   echo "configure: failed program was:" >&5
2371   cat conftest.$ac_ext >&5
2372   rm -rf conftest*
2373   eval "ac_cv_lib_$ac_lib_var=no"
2374 fi
2375 rm -f conftest*
2376 LIBS="$ac_save_LIBS"
2377
2378 fi
2379 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2380   echo "$ac_t""yes" 1>&6
2381     ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2382     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2383   cat >> confdefs.h <<EOF
2384 #define $ac_tr_lib 1
2385 EOF
2386
2387   LIBS="-lsocket $LIBS"
2388
2389 else
2390   echo "$ac_t""no" 1>&6
2391 fi
2392
2393
2394 echo $ac_n "checking for inet_aton in -lresolv""... $ac_c" 1>&6
2395 echo "configure:2396: checking for inet_aton in -lresolv" >&5
2396 ac_lib_var=`echo resolv'_'inet_aton | sed 'y%./+-%__p_%'`
2397 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2398   echo $ac_n "(cached) $ac_c" 1>&6
2399 else
2400   ac_save_LIBS="$LIBS"
2401 LIBS="-lresolv  $LIBS"
2402 cat > conftest.$ac_ext <<EOF
2403 #line 2404 "configure"
2404 #include "confdefs.h"
2405 /* Override any gcc2 internal prototype to avoid an error.  */
2406 /* We use char because int might match the return type of a gcc2
2407     builtin and then its argument prototype would still apply.  */
2408 char inet_aton();
2409
2410 int main() {
2411 inet_aton()
2412 ; return 0; }
2413 EOF
2414 if { (eval echo configure:2415: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2415   rm -rf conftest*
2416   eval "ac_cv_lib_$ac_lib_var=yes"
2417 else
2418   echo "configure: failed program was:" >&5
2419   cat conftest.$ac_ext >&5
2420   rm -rf conftest*
2421   eval "ac_cv_lib_$ac_lib_var=no"
2422 fi
2423 rm -f conftest*
2424 LIBS="$ac_save_LIBS"
2425
2426 fi
2427 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2428   echo "$ac_t""yes" 1>&6
2429     ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2430     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2431   cat >> confdefs.h <<EOF
2432 #define $ac_tr_lib 1
2433 EOF
2434
2435   LIBS="-lresolv $LIBS"
2436
2437 else
2438   echo "$ac_t""no" 1>&6
2439 fi
2440
2441
2442 echo $ac_n "checking for inet_ntoa in -lnsl""... $ac_c" 1>&6
2443 echo "configure:2444: checking for inet_ntoa in -lnsl" >&5
2444 ac_lib_var=`echo nsl'_'inet_ntoa | sed 'y%./+-%__p_%'`
2445 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2446   echo $ac_n "(cached) $ac_c" 1>&6
2447 else
2448   ac_save_LIBS="$LIBS"
2449 LIBS="-lnsl  $LIBS"
2450 cat > conftest.$ac_ext <<EOF
2451 #line 2452 "configure"
2452 #include "confdefs.h"
2453 /* Override any gcc2 internal prototype to avoid an error.  */
2454 /* We use char because int might match the return type of a gcc2
2455     builtin and then its argument prototype would still apply.  */
2456 char inet_ntoa();
2457
2458 int main() {
2459 inet_ntoa()
2460 ; return 0; }
2461 EOF
2462 if { (eval echo configure:2463: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2463   rm -rf conftest*
2464   eval "ac_cv_lib_$ac_lib_var=yes"
2465 else
2466   echo "configure: failed program was:" >&5
2467   cat conftest.$ac_ext >&5
2468   rm -rf conftest*
2469   eval "ac_cv_lib_$ac_lib_var=no"
2470 fi
2471 rm -f conftest*
2472 LIBS="$ac_save_LIBS"
2473
2474 fi
2475 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2476   echo "$ac_t""yes" 1>&6
2477     ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2478     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2479   cat >> confdefs.h <<EOF
2480 #define $ac_tr_lib 1
2481 EOF
2482
2483   LIBS="-lnsl $LIBS"
2484
2485 else
2486   echo "$ac_t""no" 1>&6
2487 fi
2488
2489
2490
2491 ac_header_dirent=no
2492 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
2493 do
2494 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2495 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
2496 echo "configure:2497: checking for $ac_hdr that defines DIR" >&5
2497 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
2498   echo $ac_n "(cached) $ac_c" 1>&6
2499 else
2500   cat > conftest.$ac_ext <<EOF
2501 #line 2502 "configure"
2502 #include "confdefs.h"
2503 #include <sys/types.h>
2504 #include <$ac_hdr>
2505 int main() {
2506 DIR *dirp = 0;
2507 ; return 0; }
2508 EOF
2509 if { (eval echo configure:2510: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2510   rm -rf conftest*
2511   eval "ac_cv_header_dirent_$ac_safe=yes"
2512 else
2513   echo "configure: failed program was:" >&5
2514   cat conftest.$ac_ext >&5
2515   rm -rf conftest*
2516   eval "ac_cv_header_dirent_$ac_safe=no"
2517 fi
2518 rm -f conftest*
2519 fi
2520 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
2521   echo "$ac_t""yes" 1>&6
2522     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2523   cat >> confdefs.h <<EOF
2524 #define $ac_tr_hdr 1
2525 EOF
2526  ac_header_dirent=$ac_hdr; break
2527 else
2528   echo "$ac_t""no" 1>&6
2529 fi
2530 done
2531 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
2532 if test $ac_header_dirent = dirent.h; then
2533 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
2534 echo "configure:2535: checking for opendir in -ldir" >&5
2535 ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
2536 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2537   echo $ac_n "(cached) $ac_c" 1>&6
2538 else
2539   ac_save_LIBS="$LIBS"
2540 LIBS="-ldir  $LIBS"
2541 cat > conftest.$ac_ext <<EOF
2542 #line 2543 "configure"
2543 #include "confdefs.h"
2544 /* Override any gcc2 internal prototype to avoid an error.  */
2545 /* We use char because int might match the return type of a gcc2
2546     builtin and then its argument prototype would still apply.  */
2547 char opendir();
2548
2549 int main() {
2550 opendir()
2551 ; return 0; }
2552 EOF
2553 if { (eval echo configure:2554: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2554   rm -rf conftest*
2555   eval "ac_cv_lib_$ac_lib_var=yes"
2556 else
2557   echo "configure: failed program was:" >&5
2558   cat conftest.$ac_ext >&5
2559   rm -rf conftest*
2560   eval "ac_cv_lib_$ac_lib_var=no"
2561 fi
2562 rm -f conftest*
2563 LIBS="$ac_save_LIBS"
2564
2565 fi
2566 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2567   echo "$ac_t""yes" 1>&6
2568   LIBS="$LIBS -ldir"
2569 else
2570   echo "$ac_t""no" 1>&6
2571 fi
2572
2573 else
2574 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
2575 echo "configure:2576: checking for opendir in -lx" >&5
2576 ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'`
2577 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2578   echo $ac_n "(cached) $ac_c" 1>&6
2579 else
2580   ac_save_LIBS="$LIBS"
2581 LIBS="-lx  $LIBS"
2582 cat > conftest.$ac_ext <<EOF
2583 #line 2584 "configure"
2584 #include "confdefs.h"
2585 /* Override any gcc2 internal prototype to avoid an error.  */
2586 /* We use char because int might match the return type of a gcc2
2587     builtin and then its argument prototype would still apply.  */
2588 char opendir();
2589
2590 int main() {
2591 opendir()
2592 ; return 0; }
2593 EOF
2594 if { (eval echo configure:2595: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2595   rm -rf conftest*
2596   eval "ac_cv_lib_$ac_lib_var=yes"
2597 else
2598   echo "configure: failed program was:" >&5
2599   cat conftest.$ac_ext >&5
2600   rm -rf conftest*
2601   eval "ac_cv_lib_$ac_lib_var=no"
2602 fi
2603 rm -f conftest*
2604 LIBS="$ac_save_LIBS"
2605
2606 fi
2607 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2608   echo "$ac_t""yes" 1>&6
2609   LIBS="$LIBS -lx"
2610 else
2611   echo "$ac_t""no" 1>&6
2612 fi
2613
2614 fi
2615
2616 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
2617 echo "configure:2618: checking for ANSI C header files" >&5
2618 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
2619   echo $ac_n "(cached) $ac_c" 1>&6
2620 else
2621   cat > conftest.$ac_ext <<EOF
2622 #line 2623 "configure"
2623 #include "confdefs.h"
2624 #include <stdlib.h>
2625 #include <stdarg.h>
2626 #include <string.h>
2627 #include <float.h>
2628 EOF
2629 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2630 { (eval echo configure:2631: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2631 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2632 if test -z "$ac_err"; then
2633   rm -rf conftest*
2634   ac_cv_header_stdc=yes
2635 else
2636   echo "$ac_err" >&5
2637   echo "configure: failed program was:" >&5
2638   cat conftest.$ac_ext >&5
2639   rm -rf conftest*
2640   ac_cv_header_stdc=no
2641 fi
2642 rm -f conftest*
2643
2644 if test $ac_cv_header_stdc = yes; then
2645   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2646 cat > conftest.$ac_ext <<EOF
2647 #line 2648 "configure"
2648 #include "confdefs.h"
2649 #include <string.h>
2650 EOF
2651 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2652   egrep "memchr" >/dev/null 2>&1; then
2653   :
2654 else
2655   rm -rf conftest*
2656   ac_cv_header_stdc=no
2657 fi
2658 rm -f conftest*
2659
2660 fi
2661
2662 if test $ac_cv_header_stdc = yes; then
2663   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2664 cat > conftest.$ac_ext <<EOF
2665 #line 2666 "configure"
2666 #include "confdefs.h"
2667 #include <stdlib.h>
2668 EOF
2669 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2670   egrep "free" >/dev/null 2>&1; then
2671   :
2672 else
2673   rm -rf conftest*
2674   ac_cv_header_stdc=no
2675 fi
2676 rm -f conftest*
2677
2678 fi
2679
2680 if test $ac_cv_header_stdc = yes; then
2681   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2682 if test "$cross_compiling" = yes; then
2683   :
2684 else
2685   cat > conftest.$ac_ext <<EOF
2686 #line 2687 "configure"
2687 #include "confdefs.h"
2688 #include <ctype.h>
2689 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2690 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2691 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2692 int main () { int i; for (i = 0; i < 256; i++)
2693 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
2694 exit (0); }
2695
2696 EOF
2697 if { (eval echo configure:2698: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2698 then
2699   :
2700 else
2701   echo "configure: failed program was:" >&5
2702   cat conftest.$ac_ext >&5
2703   rm -fr conftest*
2704   ac_cv_header_stdc=no
2705 fi
2706 rm -fr conftest*
2707 fi
2708
2709 fi
2710 fi
2711
2712 echo "$ac_t""$ac_cv_header_stdc" 1>&6
2713 if test $ac_cv_header_stdc = yes; then
2714   cat >> confdefs.h <<\EOF
2715 #define STDC_HEADERS 1
2716 EOF
2717
2718 fi
2719
2720 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
2721 echo "configure:2722: checking whether time.h and sys/time.h may both be included" >&5
2722 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
2723   echo $ac_n "(cached) $ac_c" 1>&6
2724 else
2725   cat > conftest.$ac_ext <<EOF
2726 #line 2727 "configure"
2727 #include "confdefs.h"
2728 #include <sys/types.h>
2729 #include <sys/time.h>
2730 #include <time.h>
2731 int main() {
2732 struct tm *tp;
2733 ; return 0; }
2734 EOF
2735 if { (eval echo configure:2736: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2736   rm -rf conftest*
2737   ac_cv_header_time=yes
2738 else
2739   echo "configure: failed program was:" >&5
2740   cat conftest.$ac_ext >&5
2741   rm -rf conftest*
2742   ac_cv_header_time=no
2743 fi
2744 rm -f conftest*
2745 fi
2746
2747 echo "$ac_t""$ac_cv_header_time" 1>&6
2748 if test $ac_cv_header_time = yes; then
2749   cat >> confdefs.h <<\EOF
2750 #define TIME_WITH_SYS_TIME 1
2751 EOF
2752
2753 fi
2754
2755 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
2756 echo "configure:2757: checking for sys/wait.h that is POSIX.1 compatible" >&5
2757 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
2758   echo $ac_n "(cached) $ac_c" 1>&6
2759 else
2760   cat > conftest.$ac_ext <<EOF
2761 #line 2762 "configure"
2762 #include "confdefs.h"
2763 #include <sys/types.h>
2764 #include <sys/wait.h>
2765 #ifndef WEXITSTATUS
2766 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
2767 #endif
2768 #ifndef WIFEXITED
2769 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
2770 #endif
2771 int main() {
2772 int s;
2773 wait (&s);
2774 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
2775 ; return 0; }
2776 EOF
2777 if { (eval echo configure:2778: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2778   rm -rf conftest*
2779   ac_cv_header_sys_wait_h=yes
2780 else
2781   echo "configure: failed program was:" >&5
2782   cat conftest.$ac_ext >&5
2783   rm -rf conftest*
2784   ac_cv_header_sys_wait_h=no
2785 fi
2786 rm -f conftest*
2787 fi
2788
2789 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
2790 if test $ac_cv_header_sys_wait_h = yes; then
2791   cat >> confdefs.h <<\EOF
2792 #define HAVE_SYS_WAIT_H 1
2793 EOF
2794
2795 fi
2796
2797
2798 for ac_hdr in \
2799         unistd.h \
2800         crypt.h \
2801         errno.h \
2802         resource.h \
2803         getopt.h \
2804         malloc.h \
2805         utmp.h \
2806         utmpx.h \
2807         signal.h \
2808         sys/select.h \
2809         syslog.h \
2810         inttypes.h \
2811         stdint.h \
2812         stdio.h \
2813         netdb.h \
2814         semaphore.h \
2815         arpa/inet.h \
2816         netinet/in.h \
2817         sys/types.h \
2818         sys/socket.h \
2819         sys/time.h \
2820         sys/security.h \
2821         prot.h \
2822         sia.h \
2823         siad.h
2824
2825 do
2826 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2827 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2828 echo "configure:2829: checking for $ac_hdr" >&5
2829 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2830   echo $ac_n "(cached) $ac_c" 1>&6
2831 else
2832   cat > conftest.$ac_ext <<EOF
2833 #line 2834 "configure"
2834 #include "confdefs.h"
2835 #include <$ac_hdr>
2836 EOF
2837 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2838 { (eval echo configure:2839: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2839 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2840 if test -z "$ac_err"; then
2841   rm -rf conftest*
2842   eval "ac_cv_header_$ac_safe=yes"
2843 else
2844   echo "$ac_err" >&5
2845   echo "configure: failed program was:" >&5
2846   cat conftest.$ac_ext >&5
2847   rm -rf conftest*
2848   eval "ac_cv_header_$ac_safe=no"
2849 fi
2850 rm -f conftest*
2851 fi
2852 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2853   echo "$ac_t""yes" 1>&6
2854     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2855   cat >> confdefs.h <<EOF
2856 #define $ac_tr_hdr 1
2857 EOF
2858  
2859 else
2860   echo "$ac_t""no" 1>&6
2861 fi
2862 done
2863
2864
2865 REGEX=no
2866 ac_safe=`echo "regex.h" | sed 'y%./+-%__p_%'`
2867 echo $ac_n "checking for regex.h""... $ac_c" 1>&6
2868 echo "configure:2869: checking for regex.h" >&5
2869 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2870   echo $ac_n "(cached) $ac_c" 1>&6
2871 else
2872   cat > conftest.$ac_ext <<EOF
2873 #line 2874 "configure"
2874 #include "confdefs.h"
2875 #include <regex.h>
2876 EOF
2877 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2878 { (eval echo configure:2879: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2879 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2880 if test -z "$ac_err"; then
2881   rm -rf conftest*
2882   eval "ac_cv_header_$ac_safe=yes"
2883 else
2884   echo "$ac_err" >&5
2885   echo "configure: failed program was:" >&5
2886   cat conftest.$ac_ext >&5
2887   rm -rf conftest*
2888   eval "ac_cv_header_$ac_safe=no"
2889 fi
2890 rm -f conftest*
2891 fi
2892 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2893   echo "$ac_t""yes" 1>&6
2894   cat >> confdefs.h <<\EOF
2895 #define HAVE_REGEX_H 1
2896 EOF
2897
2898 else
2899   echo "$ac_t""no" 1>&6
2900 fi
2901
2902 if test "x$ac_cv_header_regex_h" = "xyes"; then
2903   REGEX_EXTENDED=no
2904   REGEX=yes
2905   cat > conftest.$ac_ext <<EOF
2906 #line 2907 "configure"
2907 #include "confdefs.h"
2908 #include <regex.h>
2909      #ifdef REG_EXTENDED
2910        yes
2911      #endif
2912      
2913 EOF
2914 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2915   egrep "yes" >/dev/null 2>&1; then
2916   rm -rf conftest*
2917   cat >> confdefs.h <<\EOF
2918 #define HAVE_REG_EXTENDED 1
2919 EOF
2920  REGEX_EXTENDED=yes
2921 fi
2922 rm -f conftest*
2923
2924 fi
2925
2926
2927
2928 if test "x$ac_cv_header_sys_security_h" = "xyes" && test "x$ac_cv_header_prot_h" = "xyes"
2929 then
2930   cat >> confdefs.h <<\EOF
2931 #define OSFC2 1
2932 EOF
2933
2934 fi
2935
2936 if test "x$ac_cv_header_sia_h" = "xyes" && test "x$ac_cv_header_siad_h" = "xyes"
2937 then
2938   cat >> confdefs.h <<\EOF
2939 #define OSFSIA 1
2940 EOF
2941
2942 fi
2943
2944
2945
2946 echo $ac_n "checking for off_t""... $ac_c" 1>&6
2947 echo "configure:2948: checking for off_t" >&5
2948 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
2949   echo $ac_n "(cached) $ac_c" 1>&6
2950 else
2951   cat > conftest.$ac_ext <<EOF
2952 #line 2953 "configure"
2953 #include "confdefs.h"
2954 #include <sys/types.h>
2955 #if STDC_HEADERS
2956 #include <stdlib.h>
2957 #include <stddef.h>
2958 #endif
2959 EOF
2960 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2961   egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2962   rm -rf conftest*
2963   ac_cv_type_off_t=yes
2964 else
2965   rm -rf conftest*
2966   ac_cv_type_off_t=no
2967 fi
2968 rm -f conftest*
2969
2970 fi
2971 echo "$ac_t""$ac_cv_type_off_t" 1>&6
2972 if test $ac_cv_type_off_t = no; then
2973   cat >> confdefs.h <<\EOF
2974 #define off_t long
2975 EOF
2976
2977 fi
2978  
2979 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
2980 echo "configure:2981: checking for pid_t" >&5
2981 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
2982   echo $ac_n "(cached) $ac_c" 1>&6
2983 else
2984   cat > conftest.$ac_ext <<EOF
2985 #line 2986 "configure"
2986 #include "confdefs.h"
2987 #include <sys/types.h>
2988 #if STDC_HEADERS
2989 #include <stdlib.h>
2990 #include <stddef.h>
2991 #endif
2992 EOF
2993 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2994   egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2995   rm -rf conftest*
2996   ac_cv_type_pid_t=yes
2997 else
2998   rm -rf conftest*
2999   ac_cv_type_pid_t=no
3000 fi
3001 rm -f conftest*
3002
3003 fi
3004 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
3005 if test $ac_cv_type_pid_t = no; then
3006   cat >> confdefs.h <<\EOF
3007 #define pid_t int
3008 EOF
3009
3010 fi
3011
3012 echo $ac_n "checking for size_t""... $ac_c" 1>&6
3013 echo "configure:3014: checking for size_t" >&5
3014 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
3015   echo $ac_n "(cached) $ac_c" 1>&6
3016 else
3017   cat > conftest.$ac_ext <<EOF
3018 #line 3019 "configure"
3019 #include "confdefs.h"
3020 #include <sys/types.h>
3021 #if STDC_HEADERS
3022 #include <stdlib.h>
3023 #include <stddef.h>
3024 #endif
3025 EOF
3026 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3027   egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3028   rm -rf conftest*
3029   ac_cv_type_size_t=yes
3030 else
3031   rm -rf conftest*
3032   ac_cv_type_size_t=no
3033 fi
3034 rm -f conftest*
3035
3036 fi
3037 echo "$ac_t""$ac_cv_type_size_t" 1>&6
3038 if test $ac_cv_type_size_t = no; then
3039   cat >> confdefs.h <<\EOF
3040 #define size_t unsigned
3041 EOF
3042
3043 fi
3044
3045 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
3046 echo "configure:3047: checking for uid_t in sys/types.h" >&5
3047 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
3048   echo $ac_n "(cached) $ac_c" 1>&6
3049 else
3050   cat > conftest.$ac_ext <<EOF
3051 #line 3052 "configure"
3052 #include "confdefs.h"
3053 #include <sys/types.h>
3054 EOF
3055 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3056   egrep "uid_t" >/dev/null 2>&1; then
3057   rm -rf conftest*
3058   ac_cv_type_uid_t=yes
3059 else
3060   rm -rf conftest*
3061   ac_cv_type_uid_t=no
3062 fi
3063 rm -f conftest*
3064
3065 fi
3066
3067 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
3068 if test $ac_cv_type_uid_t = no; then
3069   cat >> confdefs.h <<\EOF
3070 #define uid_t int
3071 EOF
3072
3073   cat >> confdefs.h <<\EOF
3074 #define gid_t int
3075 EOF
3076
3077 fi
3078
3079
3080
3081   echo $ac_n "checking for socklen_t""... $ac_c" 1>&6
3082 echo "configure:3083: checking for socklen_t" >&5
3083 if eval "test \"`echo '$''{'ac_cv_type_socklen_t'+set}'`\" = set"; then
3084   echo $ac_n "(cached) $ac_c" 1>&6
3085 else
3086    ac_cv_type_socklen_t=no
3087       cat > conftest.$ac_ext <<EOF
3088 #line 3089 "configure"
3089 #include "confdefs.h"
3090 #ifdef HAVE_SYS_TYPES_H
3091 #include <sys/types.h>
3092 #endif
3093 #ifdef HAVE_SYS_SOCKET_H
3094 #include <sys/socket.h>
3095 #endif
3096
3097 int main() {
3098 socklen_t foo
3099 ; return 0; }
3100 EOF
3101 if { (eval echo configure:3102: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3102   rm -rf conftest*
3103   ac_cv_type_socklen_t=yes
3104 else
3105   echo "configure: failed program was:" >&5
3106   cat conftest.$ac_ext >&5
3107 fi
3108 rm -f conftest*
3109     
3110   
3111 fi
3112
3113 echo "$ac_t""$ac_cv_type_socklen_t" 1>&6
3114
3115   if test "$ac_cv_type_socklen_t" != "yes"; then
3116          cat >> confdefs.h <<\EOF
3117 #define socklen_t int
3118 EOF
3119
3120   fi
3121
3122
3123
3124   echo $ac_n "checking for uint8_t""... $ac_c" 1>&6
3125 echo "configure:3126: checking for uint8_t" >&5
3126 if eval "test \"`echo '$''{'ac_cv_type_uint8_t'+set}'`\" = set"; then
3127   echo $ac_n "(cached) $ac_c" 1>&6
3128 else
3129    ac_cv_type_uint8_t=no
3130       cat > conftest.$ac_ext <<EOF
3131 #line 3132 "configure"
3132 #include "confdefs.h"
3133 #ifdef HAVE_INTTYPES_H
3134 #include <inttypes.h>
3135 #endif
3136 #ifdef HAVE_STDINT_H
3137 #include <stdint.h>
3138 #endif
3139
3140 int main() {
3141 uint8_t foo
3142 ; return 0; }
3143 EOF
3144 if { (eval echo configure:3145: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3145   rm -rf conftest*
3146   ac_cv_type_uint8_t=yes
3147 else
3148   echo "configure: failed program was:" >&5
3149   cat conftest.$ac_ext >&5
3150 fi
3151 rm -f conftest*
3152     
3153   
3154 fi
3155
3156 echo "$ac_t""$ac_cv_type_uint8_t" 1>&6
3157
3158   if test "$ac_cv_type_uint8_t" != "yes"; then
3159          cat >> confdefs.h <<\EOF
3160 #define uint8_t unsigned char
3161 EOF
3162
3163   fi
3164
3165
3166
3167   echo $ac_n "checking for uint32_t""... $ac_c" 1>&6
3168 echo "configure:3169: checking for uint32_t" >&5
3169 if eval "test \"`echo '$''{'ac_cv_type_uint32_t'+set}'`\" = set"; then
3170   echo $ac_n "(cached) $ac_c" 1>&6
3171 else
3172    ac_cv_type_uint32_t=no
3173       cat > conftest.$ac_ext <<EOF
3174 #line 3175 "configure"
3175 #include "confdefs.h"
3176 #ifdef HAVE_INTTYPES_H
3177 #include <inttypes.h>
3178 #endif
3179 #ifdef HAVE_STDINT_H
3180 #include <stdint.h>
3181 #endif
3182
3183 int main() {
3184 uint32_t foo
3185 ; return 0; }
3186 EOF
3187 if { (eval echo configure:3188: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3188   rm -rf conftest*
3189   ac_cv_type_uint32_t=yes
3190 else
3191   echo "configure: failed program was:" >&5
3192   cat conftest.$ac_ext >&5
3193 fi
3194 rm -f conftest*
3195     
3196   
3197 fi
3198
3199 echo "$ac_t""$ac_cv_type_uint32_t" 1>&6
3200
3201   if test "$ac_cv_type_uint32_t" != "yes"; then
3202          cat >> confdefs.h <<\EOF
3203 #define uint32_t unsigned int
3204 EOF
3205
3206   fi
3207
3208
3209 for ac_func in \
3210         getopt_long \
3211         lockf \
3212         strsignal \
3213         sigaction \
3214         sigprocmask \
3215         pthread_sigmask \
3216         snprintf \
3217         vsnprintf \
3218         setsid \
3219         strncasecmp \
3220         strcasecmp \
3221         localtime_r \
3222         ctime_r \
3223         gmtime_r \
3224         strsep \
3225         inet_aton \
3226         gethostname \
3227         setlinebuf \
3228         setvbuf \
3229         sem_init \
3230         getusershell
3231
3232 do
3233 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3234 echo "configure:3235: checking for $ac_func" >&5
3235 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3236   echo $ac_n "(cached) $ac_c" 1>&6
3237 else
3238   cat > conftest.$ac_ext <<EOF
3239 #line 3240 "configure"
3240 #include "confdefs.h"
3241 /* System header to define __stub macros and hopefully few prototypes,
3242     which can conflict with char $ac_func(); below.  */
3243 #include <assert.h>
3244 /* Override any gcc2 internal prototype to avoid an error.  */
3245 /* We use char because int might match the return type of a gcc2
3246     builtin and then its argument prototype would still apply.  */
3247 char $ac_func();
3248
3249 int main() {
3250
3251 /* The GNU C library defines this for functions which it implements
3252     to always fail with ENOSYS.  Some functions are actually named
3253     something starting with __ and the normal name is an alias.  */
3254 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3255 choke me
3256 #else
3257 $ac_func();
3258 #endif
3259
3260 ; return 0; }
3261 EOF
3262 if { (eval echo configure:3263: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3263   rm -rf conftest*
3264   eval "ac_cv_func_$ac_func=yes"
3265 else
3266   echo "configure: failed program was:" >&5
3267   cat conftest.$ac_ext >&5
3268   rm -rf conftest*
3269   eval "ac_cv_func_$ac_func=no"
3270 fi
3271 rm -f conftest*
3272 fi
3273
3274 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3275   echo "$ac_t""yes" 1>&6
3276     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3277   cat >> confdefs.h <<EOF
3278 #define $ac_tr_func 1
3279 EOF
3280  
3281 else
3282   echo "$ac_t""no" 1>&6
3283 fi
3284 done
3285
3286 for ac_func in \
3287         crypt \
3288         strncasecmp \
3289         strcasecmp \
3290         inet_aton \
3291         gethostname \
3292         setlinebuf \
3293         getusershell \
3294         endusershell
3295
3296 do
3297 echo $ac_n "checking whether $ac_func must be declared""... $ac_c" 1>&6
3298 echo "configure:3299: checking whether $ac_func must be declared" >&5
3299 if eval "test \"`echo '$''{'radius_cv_decl_needed_$ac_func'+set}'`\" = set"; then
3300   echo $ac_n "(cached) $ac_c" 1>&6
3301 else
3302   cat > conftest.$ac_ext <<EOF
3303 #line 3304 "configure"
3304 #include "confdefs.h"
3305
3306 #include <stdio.h>
3307 #include <string.h>
3308 #ifdef HAVE_UNISTD_H
3309 #include <unistd.h>
3310 #endif
3311 #ifdef HAVE_CRYPT_H
3312 #include <crypt.h>
3313 #endif
3314 #ifdef HAVE_ERRNO_H
3315 #include <errno.h>
3316 #endif
3317 #ifdef HAVE_RESOURCE_H
3318 #include <resource.h>
3319 #endif
3320 #ifdef HAVE_GETOPT_H
3321 #include <getopt.h>
3322 #endif
3323 #ifdef HAVE_MALLOC_H
3324 #include <malloc.h>
3325 #endif
3326 #ifdef HAVE_UTMP_H
3327 #include <utmp.h>
3328 #endif
3329 #ifdef HAVE_UTMPX_H
3330 #include <utmpx.h>
3331 #endif
3332 #ifdef HAVE_SYS_SELECT_H
3333 #include <sys/select.h>
3334 #endif
3335 #ifdef HAVE_DLFCN_H
3336 #include <dlfcn.h>
3337 #endif
3338 #ifdef HAVE_REGEX_H
3339 #include <regex.h>
3340 #endif
3341 #ifdef HAVE_SYSLOG_H
3342 #include <syslog.h>
3343 #endif
3344 #ifdef HAVE_INTTYPES_H
3345 #include <inttypes.h>
3346 #endif
3347 #ifdef HAVE_STDINT_H
3348 #include <stdint.h>
3349 #endif
3350 #ifdef HAVE_ARPA_INET_H
3351 #include <arpa/inet.h>
3352 #endif
3353
3354 int main() {
3355 char *(*pfn) = (char *(*)) $ac_func
3356 ; return 0; }
3357 EOF
3358 if { (eval echo configure:3359: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3359   rm -rf conftest*
3360   eval "radius_cv_decl_needed_$ac_func=no"
3361 else
3362   echo "configure: failed program was:" >&5
3363   cat conftest.$ac_ext >&5
3364   rm -rf conftest*
3365   eval "radius_cv_decl_needed_$ac_func=yes"
3366 fi
3367 rm -f conftest*
3368 fi
3369
3370 if eval "test \"`echo '$radius_cv_decl_needed_'$ac_func`\" = yes"; then
3371   echo "$ac_t""yes" 1>&6
3372   radius_tr_decl=NEED_DECLARATION_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3373   cat >> confdefs.h <<EOF
3374 #define $radius_tr_decl 1
3375 EOF
3376
3377 else
3378   echo "$ac_t""no" 1>&6
3379 fi
3380
3381 done
3382
3383
3384 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
3385 echo "configure:3386: checking return type of signal handlers" >&5
3386 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
3387   echo $ac_n "(cached) $ac_c" 1>&6
3388 else
3389   cat > conftest.$ac_ext <<EOF
3390 #line 3391 "configure"
3391 #include "confdefs.h"
3392 #include <sys/types.h>
3393 #include <signal.h>
3394 #ifdef signal
3395 #undef signal
3396 #endif
3397 #ifdef __cplusplus
3398 extern "C" void (*signal (int, void (*)(int)))(int);
3399 #else
3400 void (*signal ()) ();
3401 #endif
3402
3403 int main() {
3404 int i;
3405 ; return 0; }
3406 EOF
3407 if { (eval echo configure:3408: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3408   rm -rf conftest*
3409   ac_cv_type_signal=void
3410 else
3411   echo "configure: failed program was:" >&5
3412   cat conftest.$ac_ext >&5
3413   rm -rf conftest*
3414   ac_cv_type_signal=int
3415 fi
3416 rm -f conftest*
3417 fi
3418
3419 echo "$ac_t""$ac_cv_type_signal" 1>&6
3420 cat >> confdefs.h <<EOF
3421 #define RETSIGTYPE $ac_cv_type_signal
3422 EOF
3423
3424
3425
3426 if test "x$ac_cv_header_utmpx_h" = "xyes"
3427 then
3428  
3429   echo $ac_n "checking for ut_xtime in struct utmpx""... $ac_c" 1>&6
3430 echo "configure:3431: checking for ut_xtime in struct utmpx" >&5
3431
3432
3433   cat > conftest.$ac_ext <<EOF
3434 #line 3435 "configure"
3435 #include "confdefs.h"
3436
3437 #include <utmpx.h>
3438 #ifndef offsetof
3439 #define offsetof(TYPE, MEMBER) ((int) &((TYPE *)0)->MEMBER)
3440 #endif
3441
3442 int main() {
3443  int foo = offsetof(struct utmpx, ut_xtime) 
3444 ; return 0; }
3445 EOF
3446 if { (eval echo configure:3447: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3447   rm -rf conftest*
3448   has_element=" "
3449 else
3450   echo "configure: failed program was:" >&5
3451   cat conftest.$ac_ext >&5
3452   rm -rf conftest*
3453   has_element=
3454 fi
3455 rm -f conftest*
3456
3457   ac_safe_type=`echo "struct utmpx" | sed 'y% %_%'`
3458   if test "x$has_element" != "x"; then
3459     echo "$ac_t""yes" 1>&6
3460     eval "ac_cv_type_${ac_safe_type}_has_ut_xtime=yes"
3461   else
3462     echo "$ac_t""no" 1>&6 
3463     eval "ac_cv_type_${ac_safe_type}_has_ut_xtime="
3464  fi
3465
3466  if test "x$ac_cv_type_struct_utmpx_ut_xtime" = "x"
3467  then
3468    cat >> confdefs.h <<\EOF
3469 #define ut_xtime ut_tv.tv_sec
3470 EOF
3471
3472  fi
3473 fi
3474
3475
3476 echo $ac_n "checking for working const""... $ac_c" 1>&6
3477 echo "configure:3478: checking for working const" >&5
3478 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
3479   echo $ac_n "(cached) $ac_c" 1>&6
3480 else
3481   cat > conftest.$ac_ext <<EOF
3482 #line 3483 "configure"
3483 #include "confdefs.h"
3484
3485 int main() {
3486
3487 /* Ultrix mips cc rejects this.  */
3488 typedef int charset[2]; const charset x;
3489 /* SunOS 4.1.1 cc rejects this.  */
3490 char const *const *ccp;
3491 char **p;
3492 /* NEC SVR4.0.2 mips cc rejects this.  */
3493 struct point {int x, y;};
3494 static struct point const zero = {0,0};
3495 /* AIX XL C 1.02.0.0 rejects this.
3496    It does not let you subtract one const X* pointer from another in an arm
3497    of an if-expression whose if-part is not a constant expression */
3498 const char *g = "string";
3499 ccp = &g + (g ? g-g : 0);
3500 /* HPUX 7.0 cc rejects these. */
3501 ++ccp;
3502 p = (char**) ccp;
3503 ccp = (char const *const *) p;
3504 { /* SCO 3.2v4 cc rejects this.  */
3505   char *t;
3506   char const *s = 0 ? (char *) 0 : (char const *) 0;
3507
3508   *t++ = 0;
3509 }
3510 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
3511   int x[] = {25, 17};
3512   const int *foo = &x[0];
3513   ++foo;
3514 }
3515 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3516   typedef const int *iptr;
3517   iptr p = 0;
3518   ++p;
3519 }
3520 { /* AIX XL C 1.02.0.0 rejects this saying
3521      "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3522   struct s { int j; const int *ap[3]; };
3523   struct s *b; b->j = 5;
3524 }
3525 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3526   const int foo = 10;
3527 }
3528
3529 ; return 0; }
3530 EOF
3531 if { (eval echo configure:3532: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3532   rm -rf conftest*
3533   ac_cv_c_const=yes
3534 else
3535   echo "configure: failed program was:" >&5
3536   cat conftest.$ac_ext >&5
3537   rm -rf conftest*
3538   ac_cv_c_const=no
3539 fi
3540 rm -f conftest*
3541 fi
3542
3543 echo "$ac_t""$ac_cv_c_const" 1>&6
3544 if test $ac_cv_c_const = no; then
3545   cat >> confdefs.h <<\EOF
3546 #define const 
3547 EOF
3548
3549 fi
3550  
3551
3552 echo $ac_n "checking type of OS""... $ac_c" 1>&6
3553 echo "configure:3554: checking type of OS" >&5
3554 OS=`uname -s`
3555 echo "$ac_t""$OS" 1>&6
3556 if test "$OS" = "OS/2"; then
3557         LIBPREFIX=
3558 else
3559         LIBPREFIX=lib
3560 fi
3561
3562
3563 if test "x$GCC" = "xyes"; then
3564     CFLAGS="$CFLAGS -Wall -D_GNU_SOURCE"
3565 fi
3566
3567 echo $ac_n "checking for developer gcc flags""... $ac_c" 1>&6
3568 echo "configure:3569: checking for developer gcc flags" >&5
3569 if test "x$developer" = "xyes" -a "x$GCC" = "xyes"; then
3570   devflags="-g -Wshadow -Wpointer-arith -Wcast-qual -Wcast-align -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs"
3571   CFLAGS="$CFLAGS $devflags"
3572   INSTALLSTRIP=""
3573   echo "$ac_t""yes.  Using $devflags" 1>&6
3574 else
3575   devflags=""
3576   CFLAGS="$CFLAGS -DNDEBUG"
3577   INSTALLSTRIP="-s"
3578   echo "$ac_t""no." 1>&6
3579 fi
3580
3581
3582 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
3583 echo "configure:3584: checking for crypt in -lcrypt" >&5
3584 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-%__p_%'`
3585 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3586   echo $ac_n "(cached) $ac_c" 1>&6
3587 else
3588   ac_save_LIBS="$LIBS"
3589 LIBS="-lcrypt  $LIBS"
3590 cat > conftest.$ac_ext <<EOF
3591 #line 3592 "configure"
3592 #include "confdefs.h"
3593 /* Override any gcc2 internal prototype to avoid an error.  */
3594 /* We use char because int might match the return type of a gcc2
3595     builtin and then its argument prototype would still apply.  */
3596 char crypt();
3597
3598 int main() {
3599 crypt()
3600 ; return 0; }
3601 EOF
3602 if { (eval echo configure:3603: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3603   rm -rf conftest*
3604   eval "ac_cv_lib_$ac_lib_var=yes"
3605 else
3606   echo "configure: failed program was:" >&5
3607   cat conftest.$ac_ext >&5
3608   rm -rf conftest*
3609   eval "ac_cv_lib_$ac_lib_var=no"
3610 fi
3611 rm -f conftest*
3612 LIBS="$ac_save_LIBS"
3613
3614 fi
3615 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3616   echo "$ac_t""yes" 1>&6
3617   CRYPTLIB="-lcrypt"
3618
3619 else
3620   echo "$ac_t""no" 1>&6
3621 fi
3622
3623 if test "$CRYPTLIB" != ""; then
3624   cat >> confdefs.h <<\EOF
3625 #define HAVE_CRYPT 1
3626 EOF
3627
3628 else
3629   echo $ac_n "checking for crypt""... $ac_c" 1>&6
3630 echo "configure:3631: checking for crypt" >&5
3631 if eval "test \"`echo '$''{'ac_cv_func_crypt'+set}'`\" = set"; then
3632   echo $ac_n "(cached) $ac_c" 1>&6
3633 else
3634   cat > conftest.$ac_ext <<EOF
3635 #line 3636 "configure"
3636 #include "confdefs.h"
3637 /* System header to define __stub macros and hopefully few prototypes,
3638     which can conflict with char crypt(); below.  */
3639 #include <assert.h>
3640 /* Override any gcc2 internal prototype to avoid an error.  */
3641 /* We use char because int might match the return type of a gcc2
3642     builtin and then its argument prototype would still apply.  */
3643 char crypt();
3644
3645 int main() {
3646
3647 /* The GNU C library defines this for functions which it implements
3648     to always fail with ENOSYS.  Some functions are actually named
3649     something starting with __ and the normal name is an alias.  */
3650 #if defined (__stub_crypt) || defined (__stub___crypt)
3651 choke me
3652 #else
3653 crypt();
3654 #endif
3655
3656 ; return 0; }
3657 EOF
3658 if { (eval echo configure:3659: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3659   rm -rf conftest*
3660   eval "ac_cv_func_crypt=yes"
3661 else
3662   echo "configure: failed program was:" >&5
3663   cat conftest.$ac_ext >&5
3664   rm -rf conftest*
3665   eval "ac_cv_func_crypt=no"
3666 fi
3667 rm -f conftest*
3668 fi
3669
3670 if eval "test \"`echo '$ac_cv_func_'crypt`\" = yes"; then
3671   echo "$ac_t""yes" 1>&6
3672   cat >> confdefs.h <<\EOF
3673 #define HAVE_CRYPT 1
3674 EOF
3675
3676 else
3677   echo "$ac_t""no" 1>&6
3678 fi
3679
3680 fi
3681
3682 echo $ac_n "checking for setkey in -lcipher""... $ac_c" 1>&6
3683 echo "configure:3684: checking for setkey in -lcipher" >&5
3684 ac_lib_var=`echo cipher'_'setkey | sed 'y%./+-%__p_%'`
3685 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3686   echo $ac_n "(cached) $ac_c" 1>&6
3687 else
3688   ac_save_LIBS="$LIBS"
3689 LIBS="-lcipher  $LIBS"
3690 cat > conftest.$ac_ext <<EOF
3691 #line 3692 "configure"
3692 #include "confdefs.h"
3693 /* Override any gcc2 internal prototype to avoid an error.  */
3694 /* We use char because int might match the return type of a gcc2
3695     builtin and then its argument prototype would still apply.  */
3696 char setkey();
3697
3698 int main() {
3699 setkey()
3700 ; return 0; }
3701 EOF
3702 if { (eval echo configure:3703: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3703   rm -rf conftest*
3704   eval "ac_cv_lib_$ac_lib_var=yes"
3705 else
3706   echo "configure: failed program was:" >&5
3707   cat conftest.$ac_ext >&5
3708   rm -rf conftest*
3709   eval "ac_cv_lib_$ac_lib_var=no"
3710 fi
3711 rm -f conftest*
3712 LIBS="$ac_save_LIBS"
3713
3714 fi
3715 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3716   echo "$ac_t""yes" 1>&6
3717   CRYPTLIB="${CRYPTLIB} -lcipher"
3718
3719 else
3720   echo "$ac_t""no" 1>&6
3721 fi
3722
3723
3724
3725 if test "x$WITH_SNMP" = "xyes"; then
3726   
3727         
3728         
3729
3730 echo $ac_n "checking for asn1.h""... $ac_c" 1>&6
3731 echo "configure:3732: checking for asn1.h" >&5
3732
3733 cat > conftest.$ac_ext <<EOF
3734 #line 3735 "configure"
3735 #include "confdefs.h"
3736
3737 #ifdef HAVE_SYS_TYPES_H
3738 #include <sys/types.h>
3739 #endif
3740 #ifdef HAVE_STDINT_H
3741 #include <stdint.h>
3742 #endif
3743 #ifdef HAVE_STDIO_H
3744 #include <stdio.h>
3745 #endif
3746 #ifdef HAVE_NETDB_H
3747 #include <netdb.h>
3748 #endif
3749 #ifdef HAVE_UNISTD_H
3750 #include <unistd.h>
3751 #endif
3752 #include <asn1.h>
3753 int main() {
3754  int a = 1;
3755 ; return 0; }
3756 EOF
3757 if { (eval echo configure:3758: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3758   rm -rf conftest*
3759   SNMP_INCLUDE=""
3760 else
3761   echo "configure: failed program was:" >&5
3762   cat conftest.$ac_ext >&5
3763   rm -rf conftest*
3764   SNMP_INCLUDE=
3765 fi
3766 rm -f conftest*
3767
3768 if test "x$SNMP_INCLUDE" = "x"; then
3769   old_CFLAGS="$CFLAGS"
3770   for try in /usr/include/ucd-snmp /usr/local/include/ucd-snmp $snmp_include_dir; do
3771     CFLAGS="$old_CFLAGS -I$try"
3772     cat > conftest.$ac_ext <<EOF
3773 #line 3774 "configure"
3774 #include "confdefs.h"
3775
3776 #ifdef HAVE_SYS_TYPES_H
3777 #include <sys/types.h>
3778 #endif
3779 #ifdef HAVE_STDINT_H
3780 #include <stdint.h>
3781 #endif
3782 #ifdef HAVE_STDIO_H
3783 #include <stdio.h>
3784 #endif
3785 #ifdef HAVE_NETDB_H
3786 #include <netdb.h>
3787 #endif
3788 #ifdef HAVE_UNISTD_H
3789 #include <unistd.h>
3790 #endif
3791 #include <asn1.h>
3792 int main() {
3793  int a = 1;
3794 ; return 0; }
3795 EOF
3796 if { (eval echo configure:3797: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3797   rm -rf conftest*
3798   SNMP_INCLUDE="-I$try"
3799 else
3800   echo "configure: failed program was:" >&5
3801   cat conftest.$ac_ext >&5
3802   rm -rf conftest*
3803   SNMP_INCLUDE=
3804 fi
3805 rm -f conftest*
3806     if test "x$SNMP_INCLUDE" != "x"; then
3807       break;
3808     fi
3809   done
3810   CFLAGS="$old_CFLAGS"
3811 fi
3812
3813 if test "x$SNMP_INCLUDE" = "x"; then
3814   echo "$ac_t""no" 1>&6
3815 else
3816   echo "$ac_t""yes" 1>&6
3817   cat >> confdefs.h <<\EOF
3818 #define HAVE_ASN1_H 1
3819 EOF
3820
3821   
3822   old_CFLAGS="$CFLAGS"
3823   CFLAGS="$CFLAGS $SNMP_INCLUDE"
3824
3825   echo $ac_n "checking for snmp.h""... $ac_c" 1>&6
3826 echo "configure:3827: checking for snmp.h" >&5
3827     cat > conftest.$ac_ext <<EOF
3828 #line 3829 "configure"
3829 #include "confdefs.h"
3830
3831 #ifdef HAVE_SYS_TYPES_H
3832 #include <sys/types.h>
3833 #endif
3834 #ifdef HAVE_STDINT_H
3835 #include <stdint.h>
3836 #endif
3837 #ifdef HAVE_STDIO_H
3838 #include <stdio.h>
3839 #endif
3840 #ifdef HAVE_NETDB_H
3841 #include <netdb.h>
3842 #endif
3843 #ifdef HAVE_UNISTD_H
3844 #include <unistd.h>
3845 #endif
3846 #ifdef HAVE_ASN1_H
3847 #include <asn1.h>
3848 #endif
3849 #include <snmp.h>
3850 int main() {
3851  int a = 1;
3852 ; return 0; }
3853 EOF
3854 if { (eval echo configure:3855: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3855   rm -rf conftest*
3856   cat >> confdefs.h <<\EOF
3857 #define HAVE_SNMP_H 1
3858 EOF
3859  ac_cv_header_snmp_h=yes
3860 else
3861   echo "configure: failed program was:" >&5
3862   cat conftest.$ac_ext >&5
3863 fi
3864 rm -f conftest*
3865     if test "x$ac_cv_header_snmp_h" = "xyes"; then
3866       echo "$ac_t""yes" 1>&6
3867     else
3868       echo "$ac_t""no" 1>&6
3869     fi
3870
3871     echo $ac_n "checking for snmp_impl.h""... $ac_c" 1>&6
3872 echo "configure:3873: checking for snmp_impl.h" >&5
3873     cat > conftest.$ac_ext <<EOF
3874 #line 3875 "configure"
3875 #include "confdefs.h"
3876
3877 #ifdef HAVE_SYS_TYPES_H
3878 #include <sys/types.h>
3879 #endif
3880 #ifdef HAVE_STDINT_H
3881 #include <stdint.h>
3882 #endif
3883 #ifdef HAVE_STDIO_H
3884 #include <stdio.h>
3885 #endif
3886 #ifdef HAVE_NETDB_H
3887 #include <netdb.h>
3888 #endif
3889 #ifdef HAVE_UNISTD_H
3890 #include <unistd.h>
3891 #endif
3892 #ifdef HAVE_ASN1_H
3893 #include <asn1.h>
3894 #endif
3895 #ifdef HAVE_SNMP_H
3896 #include <snmp.h>
3897 #endif
3898 #include <snmp_impl.h>
3899 int main() {
3900  int a = 1;
3901 ; return 0; }
3902 EOF
3903 if { (eval echo configure:3904: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3904   rm -rf conftest*
3905   cat >> confdefs.h <<\EOF
3906 #define HAVE_SNMP_IMPL_H 1
3907 EOF
3908  ac_cv_header_snmp_impl_h=yes
3909 else
3910   echo "configure: failed program was:" >&5
3911   cat conftest.$ac_ext >&5
3912 fi
3913 rm -f conftest*
3914     if test "x$ac_cv_header_snmp_h" = "xyes"; then
3915       echo "$ac_t""yes" 1>&6
3916     else
3917       echo "$ac_t""no" 1>&6
3918     fi
3919
3920   echo $ac_n "checking for snmp_build_var_op in -lsnmp""... $ac_c" 1>&6
3921 echo "configure:3922: checking for snmp_build_var_op in -lsnmp" >&5
3922
3923   old_LIBS="$LIBS"
3924   LIBS="$old_LIBS -lsnmp"
3925   cat > conftest.$ac_ext <<EOF
3926 #line 3927 "configure"
3927 #include "confdefs.h"
3928 extern char snmp_build_var_op();
3929 int main() {
3930  snmp_build_var_op()
3931 ; return 0; }
3932 EOF
3933 if { (eval echo configure:3934: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3934   rm -rf conftest*
3935   SNMP_LIBS="-lsnmp"
3936 else
3937   echo "configure: failed program was:" >&5
3938   cat conftest.$ac_ext >&5
3939   rm -rf conftest*
3940   SNMP_LIBS=
3941 fi
3942 rm -f conftest*
3943
3944   if test "x$SNMP_LIBS" = "x"; then
3945     for try in /usr/lib /usr/local/lib /usr/local/snmp/lib $snmp_lib_dir; do
3946       LIBS="$old_LIBS -L$try -lsnmp"
3947       cat > conftest.$ac_ext <<EOF
3948 #line 3949 "configure"
3949 #include "confdefs.h"
3950 extern char snmp_build_var_op();
3951 int main() {
3952  snmp_build_var_op()
3953 ; return 0; }
3954 EOF
3955 if { (eval echo configure:3956: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3956   rm -rf conftest*
3957   SNMP_LIBS="-L$try -lsnmp"
3958 else
3959   echo "configure: failed program was:" >&5
3960   cat conftest.$ac_ext >&5
3961   rm -rf conftest*
3962   SNMP_LIBS=
3963 fi
3964 rm -f conftest*
3965       if test "x$SNMP_LIBS" != "x"; then
3966         break;
3967       fi
3968       LIBS="$old_LIBS -L$try -lsnmp -lcrypto"
3969       cat > conftest.$ac_ext <<EOF
3970 #line 3971 "configure"
3971 #include "confdefs.h"
3972 extern char snmp_build_var_op();
3973 int main() {
3974  snmp_build_var_op()
3975 ; return 0; }
3976 EOF
3977 if { (eval echo configure:3978: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3978   rm -rf conftest*
3979   SNMP_LIBS="-L$try -lsnmp -lcrypto"
3980 else
3981   echo "configure: failed program was:" >&5
3982   cat conftest.$ac_ext >&5
3983   rm -rf conftest*
3984   SNMP_LIBS=
3985 fi
3986 rm -f conftest*
3987       if test "x$SNMP_LIBS" != "x"; then
3988         break;
3989       fi
3990     done
3991   fi
3992   LIBS="$old_LIBS"
3993
3994           CFLAGS="$old_CFLAGS"
3995   if test "x$SNMP_LIBS" = "x"; then
3996     echo "$ac_t""no" 1>&6
3997     SNMP_INCLUDE=
3998   else
3999     echo "$ac_t""yes" 1>&6
4000     cat >> confdefs.h <<\EOF
4001 #define WITH_SNMP 1
4002 EOF
4003
4004     cat >> confdefs.h <<\EOF
4005 #define HAVE_LIBSNMP 1
4006 EOF
4007
4008   fi
4009 fi
4010
4011 fi
4012
4013 if test "X$ac_cv_func_sem_init" = "Xno"; then
4014
4015  echo $ac_n "checking for sem_init in -lposix4""... $ac_c" 1>&6
4016 echo "configure:4017: checking for sem_init in -lposix4" >&5
4017 ac_lib_var=`echo posix4'_'sem_init | sed 'y%./+-%__p_%'`
4018 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4019   echo $ac_n "(cached) $ac_c" 1>&6
4020 else
4021   ac_save_LIBS="$LIBS"
4022 LIBS="-lposix4  $LIBS"
4023 cat > conftest.$ac_ext <<EOF
4024 #line 4025 "configure"
4025 #include "confdefs.h"
4026 /* Override any gcc2 internal prototype to avoid an error.  */
4027 /* We use char because int might match the return type of a gcc2
4028     builtin and then its argument prototype would still apply.  */
4029 char sem_init();
4030
4031 int main() {
4032 sem_init()
4033 ; return 0; }
4034 EOF
4035 if { (eval echo configure:4036: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4036   rm -rf conftest*
4037   eval "ac_cv_lib_$ac_lib_var=yes"
4038 else
4039   echo "configure: failed program was:" >&5
4040   cat conftest.$ac_ext >&5
4041   rm -rf conftest*
4042   eval "ac_cv_lib_$ac_lib_var=no"
4043 fi
4044 rm -f conftest*
4045 LIBS="$ac_save_LIBS"
4046
4047 fi
4048 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4049   echo "$ac_t""yes" 1>&6
4050     ac_tr_lib=HAVE_LIB`echo posix4 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4051     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4052   cat >> confdefs.h <<EOF
4053 #define $ac_tr_lib 1
4054 EOF
4055
4056   LIBS="-lposix4 $LIBS"
4057
4058 else
4059   echo "$ac_t""no" 1>&6
4060 fi
4061
4062
4063   if test "X$ac_cv_lib_posix4_sem_init" = "X"; then
4064     if test "$WITH_THREAD_POOL" = "yes"; then
4065       echo "configure: warning: You do not have posix semaphores.  Disabling thread pools" 1>&2
4066     fi
4067     WITH_THREAD_POOL=no
4068   fi
4069 fi
4070
4071
4072         
4073         
4074
4075 echo $ac_n "checking for isql.h""... $ac_c" 1>&6
4076 echo "configure:4077: checking for isql.h" >&5
4077
4078 cat > conftest.$ac_ext <<EOF
4079 #line 4080 "configure"
4080 #include "confdefs.h"
4081 #include <isql.h>
4082 int main() {
4083  int a = 1;
4084 ; return 0; }
4085 EOF
4086 if { (eval echo configure:4087: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4087   rm -rf conftest*
4088   ODBC_INCLUDE=" "
4089 else
4090   echo "configure: failed program was:" >&5
4091   cat conftest.$ac_ext >&5
4092   rm -rf conftest*
4093   ODBC_INCLUDE=
4094 fi
4095 rm -f conftest*
4096
4097 if test "x$ODBC_INCLUDE" = "x"; then
4098   old_CFLAGS="$CFLAGS"
4099
4100   
4101
4102 if test "x$LOCATE" != "x"; then
4103         DIRS=
4104   file=isql.h
4105
4106   for x in `${LOCATE} $file 2>/dev/null`; do
4107                                         base=`echo $x | sed "s%/${file}%%"`
4108     if test "x$x" = "x$base"; then
4109       continue;
4110     fi
4111
4112     dir=`${DIRNAME} $x 2>/dev/null`
4113                 exclude=`echo ${dir} | ${GREP} /home`
4114     if test "x$exclude" != "x"; then
4115       continue
4116     fi
4117
4118                     already=`echo \$odbc_include_dir ${DIRS} | ${GREP} ${dir}`
4119     if test "x$already" = "x"; then
4120       DIRS="$DIRS $dir"
4121     fi
4122   done
4123 fi
4124
4125 eval "odbc_include_dir=\"\$odbc_include_dir $DIRS\""
4126
4127
4128   for try in /usr/include /usr/local/include/odbc /usr/local/odbc/include $odbc_include_dir; do
4129     CFLAGS="$old_CFLAGS -I$try"
4130     cat > conftest.$ac_ext <<EOF
4131 #line 4132 "configure"
4132 #include "confdefs.h"
4133 #include <isql.h>
4134 int main() {
4135  int a = 1;
4136 ; return 0; }
4137 EOF
4138 if { (eval echo configure:4139: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4139   rm -rf conftest*
4140   ODBC_INCLUDE="-I$try"
4141 else
4142   echo "configure: failed program was:" >&5
4143   cat conftest.$ac_ext >&5
4144   rm -rf conftest*
4145   ODBC_INCLUDE=
4146 fi
4147 rm -f conftest*
4148     if test "x$ODBC_INCLUDE" != "x"; then
4149       break;
4150     fi
4151   done
4152   CFLAGS="$old_CFLAGS"
4153 fi
4154
4155 if test "x$ODBC_INCLUDE" = "x"; then
4156   echo "$ac_t""no" 1>&6
4157 else
4158   echo "$ac_t""yes" 1>&6
4159   
4160   echo $ac_n "checking for SQLConnect in -lodbc""... $ac_c" 1>&6
4161 echo "configure:4162: checking for SQLConnect in -lodbc" >&5
4162
4163   old_LIBS="$LIBS"
4164
4165   
4166
4167 if test "x$LOCATE" != "x"; then
4168         DIRS=
4169   file=libodbc${libltdl_cv_shlibext}
4170
4171   for x in `${LOCATE} $file 2>/dev/null`; do
4172                                         base=`echo $x | sed "s%/${file}%%"`
4173     if test "x$x" = "x$base"; then
4174       continue;
4175     fi
4176
4177     dir=`${DIRNAME} $x 2>/dev/null`
4178                 exclude=`echo ${dir} | ${GREP} /home`
4179     if test "x$exclude" != "x"; then
4180       continue
4181     fi
4182
4183                     already=`echo \$odbc_lib_dir ${DIRS} | ${GREP} ${dir}`
4184     if test "x$already" = "x"; then
4185       DIRS="$DIRS $dir"
4186     fi
4187   done
4188 fi
4189
4190 eval "odbc_lib_dir=\"\$odbc_lib_dir $DIRS\""
4191
4192   
4193
4194 if test "x$LOCATE" != "x"; then
4195         DIRS=
4196   file=libodbc.a
4197
4198   for x in `${LOCATE} $file 2>/dev/null`; do
4199                                         base=`echo $x | sed "s%/${file}%%"`
4200     if test "x$x" = "x$base"; then
4201       continue;
4202     fi
4203
4204     dir=`${DIRNAME} $x 2>/dev/null`
4205                 exclude=`echo ${dir} | ${GREP} /home`
4206     if test "x$exclude" != "x"; then
4207       continue
4208     fi
4209
4210                     already=`echo \$odbc_lib_dir ${DIRS} | ${GREP} ${dir}`
4211     if test "x$already" = "x"; then
4212       DIRS="$DIRS $dir"
4213     fi
4214   done
4215 fi
4216
4217 eval "odbc_lib_dir=\"\$odbc_lib_dir $DIRS\""
4218
4219
4220   for try in /usr/lib /usr/lib/odbc /usr/local/lib/odbc /usr/local/odbc/lib $odbc_lib_dir; do
4221     LIBS="$old_LIBS -L$try -lodbc"
4222     cat > conftest.$ac_ext <<EOF
4223 #line 4224 "configure"
4224 #include "confdefs.h"
4225 extern char SQLConnect();
4226 int main() {
4227  SQLConnect()
4228 ; return 0; }
4229 EOF
4230 if { (eval echo configure:4231: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4231   rm -rf conftest*
4232   ODBC_LIBS="-L$try -lodbc"
4233 else
4234   echo "configure: failed program was:" >&5
4235   cat conftest.$ac_ext >&5
4236   rm -rf conftest*
4237   ODBC_LIBS=
4238 fi
4239 rm -f conftest*
4240     if test "x$ODBC_LIBS" != "x"; then
4241       break;
4242     fi
4243   done
4244   LIBS="$old_LIBS"
4245
4246           if test "x$ODBC_LIBS" = "x"; then
4247     echo "$ac_t""no" 1>&6
4248     ODBC_INCLUDE=
4249   else
4250     echo "$ac_t""yes" 1>&6
4251     cat >> confdefs.h <<\EOF
4252 #define HAVE_ISQL_H 1
4253 EOF
4254
4255   fi
4256 fi
4257
4258
4259
4260 LIBTOOL="`pwd`/libtool"
4261
4262
4263
4264 top_builddir=`pwd`
4265
4266
4267
4268 if test "$WITH_THREAD_POOL" = "yes"; then
4269         if test "$WITH_THREADS" != "yes"; then
4270     { echo "configure: error: You must have threads enabled for thread pools to work." 1>&2; exit 1; }
4271   fi
4272
4273         if test "X$PTHREADLIB" = "X"; then
4274     { echo "configure: error: You must have threading libraries for thread pools to work." 1>&2; exit 1; }
4275   fi
4276
4277 fi
4278
4279
4280 mysubdirs=
4281 for foo in `find src/modules -name configure -print`; do
4282   bar=`echo $foo | sed 's%/configure$%%g'`
4283   mysubdirs="$mysubdirs $bar"
4284 done
4285
4286 subdirs="libltdl $mysubdirs"
4287
4288
4289
4290
4291
4292
4293 USE_SHARED_LIBS=$enable_shared
4294
4295 USE_STATIC_LIBS=$enable_static
4296
4297
4298
4299
4300
4301 export CFLAGS LIBS
4302
4303 trap '' 1 2 15
4304 cat > confcache <<\EOF
4305 # This file is a shell script that caches the results of configure
4306 # tests run on this system so they can be shared between configure
4307 # scripts and configure runs.  It is not useful on other systems.
4308 # If it contains results you don't want to keep, you may remove or edit it.
4309 #
4310 # By default, configure uses ./config.cache as the cache file,
4311 # creating it if it does not exist already.  You can give configure
4312 # the --cache-file=FILE option to use a different cache file; that is
4313 # what configure does when it calls configure scripts in
4314 # subdirectories, so they share the cache.
4315 # Giving --cache-file=/dev/null disables caching, for debugging configure.
4316 # config.status only pays attention to the cache file if you give it the
4317 # --recheck option to rerun configure.
4318 #
4319 EOF
4320 # The following way of writing the cache mishandles newlines in values,
4321 # but we know of no workaround that is simple, portable, and efficient.
4322 # So, don't put newlines in cache variables' values.
4323 # Ultrix sh set writes to stderr and can't be redirected directly,
4324 # and sets the high bit in the cache file unless we assign to the vars.
4325 (set) 2>&1 |
4326   case `(ac_space=' '; set | grep ac_space) 2>&1` in
4327   *ac_space=\ *)
4328     # `set' does not quote correctly, so add quotes (double-quote substitution
4329     # turns \\\\ into \\, and sed turns \\ into \).
4330     sed -n \
4331       -e "s/'/'\\\\''/g" \
4332       -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
4333     ;;
4334   *)
4335     # `set' quotes correctly as required by POSIX, so do not add quotes.
4336     sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
4337     ;;
4338   esac >> confcache
4339 if cmp -s $cache_file confcache; then
4340   :
4341 else
4342   if test -w $cache_file; then
4343     echo "updating cache $cache_file"
4344     cat confcache > $cache_file
4345   else
4346     echo "not updating unwritable cache $cache_file"
4347   fi
4348 fi
4349 rm -f confcache
4350
4351 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
4352
4353 test "x$prefix" = xNONE && prefix=$ac_default_prefix
4354 # Let make expand exec_prefix.
4355 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4356
4357 # Any assignment to VPATH causes Sun make to only execute
4358 # the first set of double-colon rules, so remove it if not needed.
4359 # If there is a colon in the path, we need to keep it.
4360 if test "x$srcdir" = x.; then
4361   ac_vpsub='/^[         ]*VPATH[        ]*=[^:]*$/d'
4362 fi
4363
4364 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
4365
4366 DEFS=-DHAVE_CONFIG_H
4367
4368 # Without the "./", some shells look in PATH for config.status.
4369 : ${CONFIG_STATUS=./config.status}
4370
4371 echo creating $CONFIG_STATUS
4372 rm -f $CONFIG_STATUS
4373 cat > $CONFIG_STATUS <<EOF
4374 #! /bin/sh
4375 # Generated automatically by configure.
4376 # Run this file to recreate the current configuration.
4377 # This directory was configured as follows,
4378 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
4379 #
4380 # $0 $ac_configure_args
4381 #
4382 # Compiler output produced by configure, useful for debugging
4383 # configure, is in ./config.log if it exists.
4384
4385 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
4386 for ac_option
4387 do
4388   case "\$ac_option" in
4389   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
4390     echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
4391     exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
4392   -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
4393     echo "$CONFIG_STATUS generated by autoconf version 2.13"
4394     exit 0 ;;
4395   -help | --help | --hel | --he | --h)
4396     echo "\$ac_cs_usage"; exit 0 ;;
4397   *) echo "\$ac_cs_usage"; exit 1 ;;
4398   esac
4399 done
4400
4401 ac_given_srcdir=$srcdir
4402
4403 trap 'rm -fr `echo "\
4404         ./Make.inc \
4405         ./src/include/build-radpaths-h \
4406         ./src/main/checkrad.pl \
4407         ./src/main/radlast \
4408         ./src/main/radtest \
4409         ./scripts/rc.radiusd \
4410         ./scripts/radwatch \
4411         ./scripts/check-radiusd-config \
4412         ./scripts/radiusd.cron.daily \
4413         ./scripts/radiusd.cron.monthly \
4414         ./scripts/cryptpasswd \
4415         ./raddb/radiusd.conf
4416  src/include/autoconf.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
4417 EOF
4418 cat >> $CONFIG_STATUS <<EOF
4419
4420 # Protect against being on the right side of a sed subst in config.status.
4421 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
4422  s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
4423 $ac_vpsub
4424 $extrasub
4425 s%@SHELL@%$SHELL%g
4426 s%@CFLAGS@%$CFLAGS%g
4427 s%@CPPFLAGS@%$CPPFLAGS%g
4428 s%@CXXFLAGS@%$CXXFLAGS%g
4429 s%@FFLAGS@%$FFLAGS%g
4430 s%@DEFS@%$DEFS%g
4431 s%@LDFLAGS@%$LDFLAGS%g
4432 s%@LIBS@%$LIBS%g
4433 s%@exec_prefix@%$exec_prefix%g
4434 s%@prefix@%$prefix%g
4435 s%@program_transform_name@%$program_transform_name%g
4436 s%@bindir@%$bindir%g
4437 s%@sbindir@%$sbindir%g
4438 s%@libexecdir@%$libexecdir%g
4439 s%@datadir@%$datadir%g
4440 s%@sysconfdir@%$sysconfdir%g
4441 s%@sharedstatedir@%$sharedstatedir%g
4442 s%@localstatedir@%$localstatedir%g
4443 s%@libdir@%$libdir%g
4444 s%@includedir@%$includedir%g
4445 s%@oldincludedir@%$oldincludedir%g
4446 s%@infodir@%$infodir%g
4447 s%@mandir@%$mandir%g
4448 s%@CC@%$CC%g
4449 s%@CPP@%$CPP%g
4450 s%@RANLIB@%$RANLIB%g
4451 s%@GMAKE@%$GMAKE%g
4452 s%@MAKE@%$MAKE%g
4453 s%@host@%$host%g
4454 s%@host_alias@%$host_alias%g
4455 s%@host_cpu@%$host_cpu%g
4456 s%@host_vendor@%$host_vendor%g
4457 s%@host_os@%$host_os%g
4458 s%@build@%$build%g
4459 s%@build_alias@%$build_alias%g
4460 s%@build_cpu@%$build_cpu%g
4461 s%@build_vendor@%$build_vendor%g
4462 s%@build_os@%$build_os%g
4463 s%@LN_S@%$LN_S%g
4464 s%@LIBTOOL@%$LIBTOOL%g
4465 s%@logdir@%$logdir%g
4466 s%@radacctdir@%$radacctdir%g
4467 s%@raddbdir@%$raddbdir%g
4468 s%@subdirs@%$subdirs%g
4469 s%@PERL@%$PERL%g
4470 s%@SNMPGET@%$SNMPGET%g
4471 s%@SNMPWALK@%$SNMPWALK%g
4472 s%@RUSERS@%$RUSERS%g
4473 s%@ACLOCAL@%$ACLOCAL%g
4474 s%@AUTOCONF@%$AUTOCONF%g
4475 s%@AUTOHEADER@%$AUTOHEADER%g
4476 s%@LOCATE@%$LOCATE%g
4477 s%@DIRNAME@%$DIRNAME%g
4478 s%@GREP@%$GREP%g
4479 s%@REGEX@%$REGEX%g
4480 s%@REGEX_EXTENDED@%$REGEX_EXTENDED%g
4481 s%@LIBPREFIX@%$LIBPREFIX%g
4482 s%@CRYPTLIB@%$CRYPTLIB%g
4483 s%@SNMP_LIBS@%$SNMP_LIBS%g
4484 s%@SNMP_INCLUDE@%$SNMP_INCLUDE%g
4485 s%@ODBC_LIBS@%$ODBC_LIBS%g
4486 s%@ODBC_INCLUDE@%$ODBC_INCLUDE%g
4487 s%@LIBLTDL@%$LIBLTDL%g
4488 s%@INCLTDL@%$INCLTDL%g
4489 s%@top_builddir@%$top_builddir%g
4490 s%@INSTALLSTRIP@%$INSTALLSTRIP%g
4491 s%@USE_SHARED_LIBS@%$USE_SHARED_LIBS%g
4492 s%@USE_STATIC_LIBS@%$USE_STATIC_LIBS%g
4493 s%@STATIC_MODULES@%$STATIC_MODULES%g
4494 s%@RADIUSD_MAJOR_VERSION@%$RADIUSD_MAJOR_VERSION%g
4495 s%@RADIUSD_MINOR_VERSION@%$RADIUSD_MINOR_VERSION%g
4496 s%@RADIUSD_VERSION@%$RADIUSD_VERSION%g
4497
4498 CEOF
4499 EOF
4500
4501 cat >> $CONFIG_STATUS <<\EOF
4502
4503 # Split the substitutions into bite-sized pieces for seds with
4504 # small command number limits, like on Digital OSF/1 and HP-UX.
4505 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
4506 ac_file=1 # Number of current file.
4507 ac_beg=1 # First line for current file.
4508 ac_end=$ac_max_sed_cmds # Line after last line for current file.
4509 ac_more_lines=:
4510 ac_sed_cmds=""
4511 while $ac_more_lines; do
4512   if test $ac_beg -gt 1; then
4513     sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
4514   else
4515     sed "${ac_end}q" conftest.subs > conftest.s$ac_file
4516   fi
4517   if test ! -s conftest.s$ac_file; then
4518     ac_more_lines=false
4519     rm -f conftest.s$ac_file
4520   else
4521     if test -z "$ac_sed_cmds"; then
4522       ac_sed_cmds="sed -f conftest.s$ac_file"
4523     else
4524       ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
4525     fi
4526     ac_file=`expr $ac_file + 1`
4527     ac_beg=$ac_end
4528     ac_end=`expr $ac_end + $ac_max_sed_cmds`
4529   fi
4530 done
4531 if test -z "$ac_sed_cmds"; then
4532   ac_sed_cmds=cat
4533 fi
4534 EOF
4535
4536 cat >> $CONFIG_STATUS <<EOF
4537
4538 CONFIG_FILES=\${CONFIG_FILES-"\
4539         ./Make.inc \
4540         ./src/include/build-radpaths-h \
4541         ./src/main/checkrad.pl \
4542         ./src/main/radlast \
4543         ./src/main/radtest \
4544         ./scripts/rc.radiusd \
4545         ./scripts/radwatch \
4546         ./scripts/check-radiusd-config \
4547         ./scripts/radiusd.cron.daily \
4548         ./scripts/radiusd.cron.monthly \
4549         ./scripts/cryptpasswd \
4550         ./raddb/radiusd.conf
4551 "}
4552 EOF
4553 cat >> $CONFIG_STATUS <<\EOF
4554 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
4555   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4556   case "$ac_file" in
4557   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
4558        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
4559   *) ac_file_in="${ac_file}.in" ;;
4560   esac
4561
4562   # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
4563
4564   # Remove last slash and all that follows it.  Not all systems have dirname.
4565   ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
4566   if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
4567     # The file is in a subdirectory.
4568     test ! -d "$ac_dir" && mkdir "$ac_dir"
4569     ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
4570     # A "../" for each directory in $ac_dir_suffix.
4571     ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
4572   else
4573     ac_dir_suffix= ac_dots=
4574   fi
4575
4576   case "$ac_given_srcdir" in
4577   .)  srcdir=.
4578       if test -z "$ac_dots"; then top_srcdir=.
4579       else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
4580   /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
4581   *) # Relative path.
4582     srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
4583     top_srcdir="$ac_dots$ac_given_srcdir" ;;
4584   esac
4585
4586
4587   echo creating "$ac_file"
4588   rm -f "$ac_file"
4589   configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
4590   case "$ac_file" in
4591   *Makefile*) ac_comsub="1i\\
4592 # $configure_input" ;;
4593   *) ac_comsub= ;;
4594   esac
4595
4596   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
4597   sed -e "$ac_comsub
4598 s%@configure_input@%$configure_input%g
4599 s%@srcdir@%$srcdir%g
4600 s%@top_srcdir@%$top_srcdir%g
4601 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
4602 fi; done
4603 rm -f conftest.s*
4604
4605 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
4606 # NAME is the cpp macro being defined and VALUE is the value it is being given.
4607 #
4608 # ac_d sets the value in "#define NAME VALUE" lines.
4609 ac_dA='s%^\([   ]*\)#\([        ]*define[       ][      ]*\)'
4610 ac_dB='\([      ][      ]*\)[^  ]*%\1#\2'
4611 ac_dC='\3'
4612 ac_dD='%g'
4613 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
4614 ac_uA='s%^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
4615 ac_uB='\([      ]\)%\1#\2define\3'
4616 ac_uC=' '
4617 ac_uD='\4%g'
4618 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
4619 ac_eA='s%^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
4620 ac_eB='$%\1#\2define\3'
4621 ac_eC=' '
4622 ac_eD='%g'
4623
4624 if test "${CONFIG_HEADERS+set}" != set; then
4625 EOF
4626 cat >> $CONFIG_STATUS <<EOF
4627   CONFIG_HEADERS="src/include/autoconf.h"
4628 EOF
4629 cat >> $CONFIG_STATUS <<\EOF
4630 fi
4631 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
4632   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4633   case "$ac_file" in
4634   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
4635        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
4636   *) ac_file_in="${ac_file}.in" ;;
4637   esac
4638
4639   echo creating $ac_file
4640
4641   rm -f conftest.frag conftest.in conftest.out
4642   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
4643   cat $ac_file_inputs > conftest.in
4644
4645 EOF
4646
4647 # Transform confdefs.h into a sed script conftest.vals that substitutes
4648 # the proper values into config.h.in to produce config.h.  And first:
4649 # Protect against being on the right side of a sed subst in config.status.
4650 # Protect against being in an unquoted here document in config.status.
4651 rm -f conftest.vals
4652 cat > conftest.hdr <<\EOF
4653 s/[\\&%]/\\&/g
4654 s%[\\$`]%\\&%g
4655 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
4656 s%ac_d%ac_u%gp
4657 s%ac_u%ac_e%gp
4658 EOF
4659 sed -n -f conftest.hdr confdefs.h > conftest.vals
4660 rm -f conftest.hdr
4661
4662 # This sed command replaces #undef with comments.  This is necessary, for
4663 # example, in the case of _POSIX_SOURCE, which is predefined and required
4664 # on some systems where configure will not decide to define it.
4665 cat >> conftest.vals <<\EOF
4666 s%^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
4667 EOF
4668
4669 # Break up conftest.vals because some shells have a limit on
4670 # the size of here documents, and old seds have small limits too.
4671
4672 rm -f conftest.tail
4673 while :
4674 do
4675   ac_lines=`grep -c . conftest.vals`
4676   # grep -c gives empty output for an empty file on some AIX systems.
4677   if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
4678   # Write a limited-size here document to conftest.frag.
4679   echo '  cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
4680   sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
4681   echo 'CEOF
4682   sed -f conftest.frag conftest.in > conftest.out
4683   rm -f conftest.in
4684   mv conftest.out conftest.in
4685 ' >> $CONFIG_STATUS
4686   sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
4687   rm -f conftest.vals
4688   mv conftest.tail conftest.vals
4689 done
4690 rm -f conftest.vals
4691
4692 cat >> $CONFIG_STATUS <<\EOF
4693   rm -f conftest.frag conftest.h
4694   echo "/* $ac_file.  Generated automatically by configure.  */" > conftest.h
4695   cat conftest.in >> conftest.h
4696   rm -f conftest.in
4697   if cmp -s $ac_file conftest.h 2>/dev/null; then
4698     echo "$ac_file is unchanged"
4699     rm -f conftest.h
4700   else
4701     # Remove last slash and all that follows it.  Not all systems have dirname.
4702       ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
4703       if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
4704       # The file is in a subdirectory.
4705       test ! -d "$ac_dir" && mkdir "$ac_dir"
4706     fi
4707     rm -f $ac_file
4708     mv conftest.h $ac_file
4709   fi
4710 fi; done
4711
4712 EOF
4713 cat >> $CONFIG_STATUS <<EOF
4714
4715 EOF
4716 cat >> $CONFIG_STATUS <<\EOF
4717
4718 exit 0
4719 EOF
4720 chmod +x $CONFIG_STATUS
4721 rm -fr confdefs* $ac_clean_files
4722 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
4723
4724 if test "$no_recursion" != yes; then
4725
4726   # Remove --cache-file and --srcdir arguments so they do not pile up.
4727   ac_sub_configure_args=
4728   ac_prev=
4729   for ac_arg in $ac_configure_args; do
4730     if test -n "$ac_prev"; then
4731       ac_prev=
4732       continue
4733     fi
4734     case "$ac_arg" in
4735     -cache-file | --cache-file | --cache-fil | --cache-fi \
4736     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
4737       ac_prev=cache_file ;;
4738     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
4739     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
4740       ;;
4741     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
4742       ac_prev=srcdir ;;
4743     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
4744       ;;
4745     *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
4746     esac
4747   done
4748
4749   for ac_config_dir in libltdl $mysubdirs; do
4750
4751     # Do not complain, so a configure script can configure whichever
4752     # parts of a large source tree are present.
4753     if test ! -d $srcdir/$ac_config_dir; then
4754       continue
4755     fi
4756
4757     echo configuring in $ac_config_dir
4758
4759     case "$srcdir" in
4760     .) ;;
4761     *)
4762       if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
4763       else
4764         { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
4765       fi
4766       ;;
4767     esac
4768
4769     ac_popdir=`pwd`
4770     cd $ac_config_dir
4771
4772       # A "../" for each directory in /$ac_config_dir.
4773       ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
4774
4775     case "$srcdir" in
4776     .) # No --srcdir option.  We are building in place.
4777       ac_sub_srcdir=$srcdir ;;
4778     /*) # Absolute path.
4779       ac_sub_srcdir=$srcdir/$ac_config_dir ;;
4780     *) # Relative path.
4781       ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
4782     esac
4783
4784     # Check for guested configure; otherwise get Cygnus style configure.
4785     if test -f $ac_sub_srcdir/configure; then
4786       ac_sub_configure=$ac_sub_srcdir/configure
4787     elif test -f $ac_sub_srcdir/configure.in; then
4788       ac_sub_configure=$ac_configure
4789     else
4790       echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
4791       ac_sub_configure=
4792     fi
4793
4794     # The recursion is here.
4795     if test -n "$ac_sub_configure"; then
4796
4797       # Make the cache file name correct relative to the subdirectory.
4798       case "$cache_file" in
4799       /*) ac_sub_cache_file=$cache_file ;;
4800       *) # Relative path.
4801         ac_sub_cache_file="$ac_dots$cache_file" ;;
4802       esac
4803
4804       echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
4805       # The eval makes quoting arguments work.
4806       if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
4807       then :
4808       else
4809         { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }
4810       fi
4811     fi
4812
4813     cd $ac_popdir
4814   done
4815 fi
4816
4817
4818
4819
4820
4821
4822
4823 echo timestamp > src/include/stamp-h
4824 (cd ./src/include && /bin/sh ./build-radpaths-h)
4825 (cd ./src/main   && chmod +x checkrad.pl radlast radtest)
4826 (cd ./scripts    && chmod +x rc.radiusd radwatch check-radiusd-config radiusd.cron.daily radiusd.cron.monthly cryptpasswd)
4827
4828 cat >> src/include/autoconf.h <<EOF
4829
4830 #define HOSTINFO        "$host"
4831 #define RADIUSD_VERSION "$RADIUSD_VERSION"
4832 EOF
4833
4834
4835
4836
4837
4838 host=$host