]> git.ozlabs.org Git - ppp.git/blob - pppd/plugins/radius/radiusclient/configure
Minor patches as suggested by Frank Cusack <fcusack@fcusack.com> to ensure
[ppp.git] / pppd / plugins / radius / radiusclient / configure
1 #! /bin/sh
2
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.12 
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
6 #
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9
10 # Defaults:
11 ac_help=
12 ac_default_prefix=/usr/local
13 # Any additions from configure.in:
14 ac_help="$ac_help
15   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]"
16 ac_help="$ac_help
17   --enable-shared         build shared libraries [default=yes]"
18 ac_help="$ac_help
19   --enable-static         build static libraries [default=yes]"
20 ac_help="$ac_help
21   --enable-shadow         Enable shadow password support"
22 ac_help="$ac_help
23   --with-secure-path      PATH setting for exec'ed programs"
24 ac_help="$ac_help
25   --with-facility         Syslog facility to use"
26 ac_help="$ac_help
27   --enable-radius-116     Include support for Livingston's RADIUS server 1.16"
28 ac_help="$ac_help
29   --enable-scp            Add service type hints derived from username prefix"
30
31 # Initialize some variables set by options.
32 # The variables have the same names as the options, with
33 # dashes changed to underlines.
34 build=NONE
35 cache_file=./config.cache
36 exec_prefix=NONE
37 host=NONE
38 no_create=
39 nonopt=NONE
40 no_recursion=
41 prefix=NONE
42 program_prefix=NONE
43 program_suffix=NONE
44 program_transform_name=s,x,x,
45 silent=
46 site=
47 srcdir=
48 target=NONE
49 verbose=
50 x_includes=NONE
51 x_libraries=NONE
52 bindir='${exec_prefix}/bin'
53 sbindir='${exec_prefix}/sbin'
54 libexecdir='${exec_prefix}/libexec'
55 datadir='${prefix}/share'
56 sysconfdir='${prefix}/etc'
57 sharedstatedir='${prefix}/com'
58 localstatedir='${prefix}/var'
59 libdir='${exec_prefix}/lib'
60 includedir='${prefix}/include'
61 oldincludedir='/usr/include'
62 infodir='${prefix}/info'
63 mandir='${prefix}/man'
64
65 # Initialize some other variables.
66 subdirs=
67 MFLAGS= MAKEFLAGS=
68 # Maximum number of lines to put in a shell here document.
69 ac_max_here_lines=12
70
71 ac_prev=
72 for ac_option
73 do
74
75   # If the previous option needs an argument, assign it.
76   if test -n "$ac_prev"; then
77     eval "$ac_prev=\$ac_option"
78     ac_prev=
79     continue
80   fi
81
82   case "$ac_option" in
83   -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
84   *) ac_optarg= ;;
85   esac
86
87   # Accept the important Cygnus configure options, so we can diagnose typos.
88
89   case "$ac_option" in
90
91   -bindir | --bindir | --bindi | --bind | --bin | --bi)
92     ac_prev=bindir ;;
93   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
94     bindir="$ac_optarg" ;;
95
96   -build | --build | --buil | --bui | --bu)
97     ac_prev=build ;;
98   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
99     build="$ac_optarg" ;;
100
101   -cache-file | --cache-file | --cache-fil | --cache-fi \
102   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
103     ac_prev=cache_file ;;
104   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
105   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
106     cache_file="$ac_optarg" ;;
107
108   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
109     ac_prev=datadir ;;
110   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
111   | --da=*)
112     datadir="$ac_optarg" ;;
113
114   -disable-* | --disable-*)
115     ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
116     # Reject names that are not valid shell variable names.
117     if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
118       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
119     fi
120     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
121     eval "enable_${ac_feature}=no" ;;
122
123   -enable-* | --enable-*)
124     ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
125     # Reject names that are not valid shell variable names.
126     if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
127       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
128     fi
129     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
130     case "$ac_option" in
131       *=*) ;;
132       *) ac_optarg=yes ;;
133     esac
134     eval "enable_${ac_feature}='$ac_optarg'" ;;
135
136   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
137   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
138   | --exec | --exe | --ex)
139     ac_prev=exec_prefix ;;
140   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
141   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
142   | --exec=* | --exe=* | --ex=*)
143     exec_prefix="$ac_optarg" ;;
144
145   -gas | --gas | --ga | --g)
146     # Obsolete; use --with-gas.
147     with_gas=yes ;;
148
149   -help | --help | --hel | --he)
150     # Omit some internal or obsolete options to make the list less imposing.
151     # This message is too long to be a string in the A/UX 3.1 sh.
152     cat << EOF
153 Usage: configure [options] [host]
154 Options: [defaults in brackets after descriptions]
155 Configuration:
156   --cache-file=FILE       cache test results in FILE
157   --help                  print this message
158   --no-create             do not create output files
159   --quiet, --silent       do not print \`checking...' messages
160   --version               print the version of autoconf that created configure
161 Directory and file names:
162   --prefix=PREFIX         install architecture-independent files in PREFIX
163                           [$ac_default_prefix]
164   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
165                           [same as prefix]
166   --bindir=DIR            user executables in DIR [EPREFIX/bin]
167   --sbindir=DIR           system admin executables in DIR [EPREFIX/sbin]
168   --libexecdir=DIR        program executables in DIR [EPREFIX/libexec]
169   --datadir=DIR           read-only architecture-independent data in DIR
170                           [PREFIX/share]
171   --sysconfdir=DIR        read-only single-machine data in DIR [PREFIX/etc]
172   --sharedstatedir=DIR    modifiable architecture-independent data in DIR
173                           [PREFIX/com]
174   --localstatedir=DIR     modifiable single-machine data in DIR [PREFIX/var]
175   --libdir=DIR            object code libraries in DIR [EPREFIX/lib]
176   --includedir=DIR        C header files in DIR [PREFIX/include]
177   --oldincludedir=DIR     C header files for non-gcc in DIR [/usr/include]
178   --infodir=DIR           info documentation in DIR [PREFIX/info]
179   --mandir=DIR            man documentation in DIR [PREFIX/man]
180   --srcdir=DIR            find the sources in DIR [configure dir or ..]
181   --program-prefix=PREFIX prepend PREFIX to installed program names
182   --program-suffix=SUFFIX append SUFFIX to installed program names
183   --program-transform-name=PROGRAM
184                           run sed PROGRAM on installed program names
185 EOF
186     cat << EOF
187 Host type:
188   --build=BUILD           configure for building on BUILD [BUILD=HOST]
189   --host=HOST             configure for HOST [guessed]
190   --target=TARGET         configure for TARGET [TARGET=HOST]
191 Features and packages:
192   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
193   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
194   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
195   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
196   --x-includes=DIR        X include files are in DIR
197   --x-libraries=DIR       X library files are in DIR
198 EOF
199     if test -n "$ac_help"; then
200       echo "--enable and --with options recognized:$ac_help"
201     fi
202     exit 0 ;;
203
204   -host | --host | --hos | --ho)
205     ac_prev=host ;;
206   -host=* | --host=* | --hos=* | --ho=*)
207     host="$ac_optarg" ;;
208
209   -includedir | --includedir | --includedi | --included | --include \
210   | --includ | --inclu | --incl | --inc)
211     ac_prev=includedir ;;
212   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
213   | --includ=* | --inclu=* | --incl=* | --inc=*)
214     includedir="$ac_optarg" ;;
215
216   -infodir | --infodir | --infodi | --infod | --info | --inf)
217     ac_prev=infodir ;;
218   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
219     infodir="$ac_optarg" ;;
220
221   -libdir | --libdir | --libdi | --libd)
222     ac_prev=libdir ;;
223   -libdir=* | --libdir=* | --libdi=* | --libd=*)
224     libdir="$ac_optarg" ;;
225
226   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
227   | --libexe | --libex | --libe)
228     ac_prev=libexecdir ;;
229   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
230   | --libexe=* | --libex=* | --libe=*)
231     libexecdir="$ac_optarg" ;;
232
233   -localstatedir | --localstatedir | --localstatedi | --localstated \
234   | --localstate | --localstat | --localsta | --localst \
235   | --locals | --local | --loca | --loc | --lo)
236     ac_prev=localstatedir ;;
237   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
238   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
239   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
240     localstatedir="$ac_optarg" ;;
241
242   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
243     ac_prev=mandir ;;
244   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
245     mandir="$ac_optarg" ;;
246
247   -nfp | --nfp | --nf)
248     # Obsolete; use --without-fp.
249     with_fp=no ;;
250
251   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
252   | --no-cr | --no-c)
253     no_create=yes ;;
254
255   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
256   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
257     no_recursion=yes ;;
258
259   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
260   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
261   | --oldin | --oldi | --old | --ol | --o)
262     ac_prev=oldincludedir ;;
263   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
264   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
265   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
266     oldincludedir="$ac_optarg" ;;
267
268   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
269     ac_prev=prefix ;;
270   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
271     prefix="$ac_optarg" ;;
272
273   -program-prefix | --program-prefix | --program-prefi | --program-pref \
274   | --program-pre | --program-pr | --program-p)
275     ac_prev=program_prefix ;;
276   -program-prefix=* | --program-prefix=* | --program-prefi=* \
277   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
278     program_prefix="$ac_optarg" ;;
279
280   -program-suffix | --program-suffix | --program-suffi | --program-suff \
281   | --program-suf | --program-su | --program-s)
282     ac_prev=program_suffix ;;
283   -program-suffix=* | --program-suffix=* | --program-suffi=* \
284   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
285     program_suffix="$ac_optarg" ;;
286
287   -program-transform-name | --program-transform-name \
288   | --program-transform-nam | --program-transform-na \
289   | --program-transform-n | --program-transform- \
290   | --program-transform | --program-transfor \
291   | --program-transfo | --program-transf \
292   | --program-trans | --program-tran \
293   | --progr-tra | --program-tr | --program-t)
294     ac_prev=program_transform_name ;;
295   -program-transform-name=* | --program-transform-name=* \
296   | --program-transform-nam=* | --program-transform-na=* \
297   | --program-transform-n=* | --program-transform-=* \
298   | --program-transform=* | --program-transfor=* \
299   | --program-transfo=* | --program-transf=* \
300   | --program-trans=* | --program-tran=* \
301   | --progr-tra=* | --program-tr=* | --program-t=*)
302     program_transform_name="$ac_optarg" ;;
303
304   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
305   | -silent | --silent | --silen | --sile | --sil)
306     silent=yes ;;
307
308   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
309     ac_prev=sbindir ;;
310   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
311   | --sbi=* | --sb=*)
312     sbindir="$ac_optarg" ;;
313
314   -sharedstatedir | --sharedstatedir | --sharedstatedi \
315   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
316   | --sharedst | --shareds | --shared | --share | --shar \
317   | --sha | --sh)
318     ac_prev=sharedstatedir ;;
319   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
320   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
321   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
322   | --sha=* | --sh=*)
323     sharedstatedir="$ac_optarg" ;;
324
325   -site | --site | --sit)
326     ac_prev=site ;;
327   -site=* | --site=* | --sit=*)
328     site="$ac_optarg" ;;
329
330   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
331     ac_prev=srcdir ;;
332   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
333     srcdir="$ac_optarg" ;;
334
335   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
336   | --syscon | --sysco | --sysc | --sys | --sy)
337     ac_prev=sysconfdir ;;
338   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
339   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
340     sysconfdir="$ac_optarg" ;;
341
342   -target | --target | --targe | --targ | --tar | --ta | --t)
343     ac_prev=target ;;
344   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
345     target="$ac_optarg" ;;
346
347   -v | -verbose | --verbose | --verbos | --verbo | --verb)
348     verbose=yes ;;
349
350   -version | --version | --versio | --versi | --vers)
351     echo "configure generated by autoconf version 2.12"
352     exit 0 ;;
353
354   -with-* | --with-*)
355     ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
356     # Reject names that are not valid shell variable names.
357     if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
358       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
359     fi
360     ac_package=`echo $ac_package| sed 's/-/_/g'`
361     case "$ac_option" in
362       *=*) ;;
363       *) ac_optarg=yes ;;
364     esac
365     eval "with_${ac_package}='$ac_optarg'" ;;
366
367   -without-* | --without-*)
368     ac_package=`echo $ac_option|sed -e 's/-*without-//'`
369     # Reject names that are not valid shell variable names.
370     if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
371       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
372     fi
373     ac_package=`echo $ac_package| sed 's/-/_/g'`
374     eval "with_${ac_package}=no" ;;
375
376   --x)
377     # Obsolete; use --with-x.
378     with_x=yes ;;
379
380   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
381   | --x-incl | --x-inc | --x-in | --x-i)
382     ac_prev=x_includes ;;
383   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
384   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
385     x_includes="$ac_optarg" ;;
386
387   -x-libraries | --x-libraries | --x-librarie | --x-librari \
388   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
389     ac_prev=x_libraries ;;
390   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
391   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
392     x_libraries="$ac_optarg" ;;
393
394   -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
395     ;;
396
397   *)
398     if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
399       echo "configure: warning: $ac_option: invalid host type" 1>&2
400     fi
401     if test "x$nonopt" != xNONE; then
402       { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
403     fi
404     nonopt="$ac_option"
405     ;;
406
407   esac
408 done
409
410 if test -n "$ac_prev"; then
411   { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
412 fi
413
414 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
415
416 # File descriptor usage:
417 # 0 standard input
418 # 1 file creation
419 # 2 errors and warnings
420 # 3 some systems may open it to /dev/tty
421 # 4 used on the Kubota Titan
422 # 6 checking for... messages and results
423 # 5 compiler messages saved in config.log
424 if test "$silent" = yes; then
425   exec 6>/dev/null
426 else
427   exec 6>&1
428 fi
429 exec 5>./config.log
430
431 echo "\
432 This file contains any messages produced by compilers while
433 running configure, to aid debugging if configure makes a mistake.
434 " 1>&5
435
436 # Strip out --no-create and --no-recursion so they do not pile up.
437 # Also quote any args containing shell metacharacters.
438 ac_configure_args=
439 for ac_arg
440 do
441   case "$ac_arg" in
442   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
443   | --no-cr | --no-c) ;;
444   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
445   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
446   *" "*|*"      "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
447   ac_configure_args="$ac_configure_args '$ac_arg'" ;;
448   *) ac_configure_args="$ac_configure_args $ac_arg" ;;
449   esac
450 done
451
452 # NLS nuisances.
453 # Only set these to C if already set.  These must not be set unconditionally
454 # because not all systems understand e.g. LANG=C (notably SCO).
455 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
456 # Non-C LC_CTYPE values break the ctype check.
457 if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi
458 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
459 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
460 if test "${LC_CTYPE+set}"    = set; then LC_CTYPE=C;    export LC_CTYPE;    fi
461
462 # confdefs.h avoids OS command line length limits that DEFS can exceed.
463 rm -rf conftest* confdefs.h
464 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
465 echo > confdefs.h
466
467 # A filename unique to this package, relative to the directory that
468 # configure is in, which we can look for to find out if srcdir is correct.
469 ac_unique_file=src/radlogin.c
470
471 # Find the source files, if location was not specified.
472 if test -z "$srcdir"; then
473   ac_srcdir_defaulted=yes
474   # Try the directory containing this script, then its parent.
475   ac_prog=$0
476   ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
477   test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
478   srcdir=$ac_confdir
479   if test ! -r $srcdir/$ac_unique_file; then
480     srcdir=..
481   fi
482 else
483   ac_srcdir_defaulted=no
484 fi
485 if test ! -r $srcdir/$ac_unique_file; then
486   if test "$ac_srcdir_defaulted" = yes; then
487     { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
488   else
489     { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
490   fi
491 fi
492 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
493
494 # Prefer explicitly selected file to automatically selected ones.
495 if test -z "$CONFIG_SITE"; then
496   if test "x$prefix" != xNONE; then
497     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
498   else
499     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
500   fi
501 fi
502 for ac_site_file in $CONFIG_SITE; do
503   if test -r "$ac_site_file"; then
504     echo "loading site script $ac_site_file"
505     . "$ac_site_file"
506   fi
507 done
508
509 if test -r "$cache_file"; then
510   echo "loading cache $cache_file"
511   . $cache_file
512 else
513   echo "creating cache $cache_file"
514   > $cache_file
515 fi
516
517 ac_ext=c
518 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
519 ac_cpp='$CPP $CPPFLAGS'
520 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
521 ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
522 cross_compiling=$ac_cv_prog_cc_cross
523
524 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
525   # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
526   if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
527     ac_n= ac_c='
528 ' ac_t='        '
529   else
530     ac_n=-n ac_c= ac_t=
531   fi
532 else
533   ac_n= ac_c='\c' ac_t=
534 fi
535
536
537 ac_aux_dir=
538 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
539   if test -f $ac_dir/install-sh; then
540     ac_aux_dir=$ac_dir
541     ac_install_sh="$ac_aux_dir/install-sh -c"
542     break
543   elif test -f $ac_dir/install.sh; then
544     ac_aux_dir=$ac_dir
545     ac_install_sh="$ac_aux_dir/install.sh -c"
546     break
547   fi
548 done
549 if test -z "$ac_aux_dir"; then
550   { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
551 fi
552 ac_config_guess=$ac_aux_dir/config.guess
553 ac_config_sub=$ac_aux_dir/config.sub
554 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
555
556
557 # Do some error checking and defaulting for the host and target type.
558 # The inputs are:
559 #    configure --host=HOST --target=TARGET --build=BUILD NONOPT
560 #
561 # The rules are:
562 # 1. You are not allowed to specify --host, --target, and nonopt at the
563 #    same time.
564 # 2. Host defaults to nonopt.
565 # 3. If nonopt is not specified, then host defaults to the current host,
566 #    as determined by config.guess.
567 # 4. Target and build default to nonopt.
568 # 5. If nonopt is not specified, then target and build default to host.
569
570 # The aliases save the names the user supplied, while $host etc.
571 # will get canonicalized.
572 case $host---$target---$nonopt in
573 NONE---*---* | *---NONE---* | *---*---NONE) ;;
574 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
575 esac
576
577
578 # Make sure we can run config.sub.
579 if $ac_config_sub sun4 >/dev/null 2>&1; then :
580 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
581 fi
582
583 echo $ac_n "checking host system type""... $ac_c" 1>&6
584 echo "configure:585: checking host system type" >&5
585
586 host_alias=$host
587 case "$host_alias" in
588 NONE)
589   case $nonopt in
590   NONE)
591     if host_alias=`$ac_config_guess`; then :
592     else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
593     fi ;;
594   *) host_alias=$nonopt ;;
595   esac ;;
596 esac
597
598 host=`$ac_config_sub $host_alias`
599 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
600 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
601 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
602 echo "$ac_t""$host" 1>&6
603
604 echo $ac_n "checking target system type""... $ac_c" 1>&6
605 echo "configure:606: checking target system type" >&5
606
607 target_alias=$target
608 case "$target_alias" in
609 NONE)
610   case $nonopt in
611   NONE) target_alias=$host_alias ;;
612   *) target_alias=$nonopt ;;
613   esac ;;
614 esac
615
616 target=`$ac_config_sub $target_alias`
617 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
618 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
619 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
620 echo "$ac_t""$target" 1>&6
621
622 echo $ac_n "checking build system type""... $ac_c" 1>&6
623 echo "configure:624: checking build system type" >&5
624
625 build_alias=$build
626 case "$build_alias" in
627 NONE)
628   case $nonopt in
629   NONE) build_alias=$host_alias ;;
630   *) build_alias=$nonopt ;;
631   esac ;;
632 esac
633
634 build=`$ac_config_sub $build_alias`
635 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
636 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
637 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
638 echo "$ac_t""$build" 1>&6
639
640 test "$host_alias" != "$target_alias" &&
641   test "$program_prefix$program_suffix$program_transform_name" = \
642     NONENONEs,x,x, &&
643   program_prefix=${target_alias}-
644
645
646 case "$target" in
647         *)
648         ;;
649 esac
650
651 # Find a good install program.  We prefer a C program (faster),
652 # so one script is as good as another.  But avoid the broken or
653 # incompatible versions:
654 # SysV /etc/install, /usr/sbin/install
655 # SunOS /usr/etc/install
656 # IRIX /sbin/install
657 # AIX /bin/install
658 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
659 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
660 # ./install, which can be erroneously created by make from ./install.sh.
661 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
662 echo "configure:663: checking for a BSD compatible install" >&5
663 if test -z "$INSTALL"; then
664 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
665   echo $ac_n "(cached) $ac_c" 1>&6
666 else
667     IFS="${IFS=         }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
668   for ac_dir in $PATH; do
669     # Account for people who put trailing slashes in PATH elements.
670     case "$ac_dir/" in
671     /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
672     *)
673       # OSF1 and SCO ODT 3.0 have their own names for install.
674       for ac_prog in ginstall installbsd scoinst install; do
675         if test -f $ac_dir/$ac_prog; then
676           if test $ac_prog = install &&
677             grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
678             # AIX install.  It has an incompatible calling convention.
679             # OSF/1 installbsd also uses dspmsg, but is usable.
680             :
681           else
682             ac_cv_path_install="$ac_dir/$ac_prog -c"
683             break 2
684           fi
685         fi
686       done
687       ;;
688     esac
689   done
690   IFS="$ac_save_IFS"
691
692 fi
693   if test "${ac_cv_path_install+set}" = set; then
694     INSTALL="$ac_cv_path_install"
695   else
696     # As a last resort, use the slow shell script.  We don't cache a
697     # path for INSTALL within a source directory, because that will
698     # break other packages using the cache if that directory is
699     # removed, or if the path is relative.
700     INSTALL="$ac_install_sh"
701   fi
702 fi
703 echo "$ac_t""$INSTALL" 1>&6
704
705 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
706 # It thinks the first close brace ends the variable substitution.
707 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
708
709 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
710
711
712 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
713
714 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
715 echo "configure:716: checking whether build environment is sane" >&5
716 # Just in case
717 sleep 1
718 echo timestamp > conftestfile
719 # Do `set' in a subshell so we don't clobber the current shell's
720 # arguments.  Must try -L first in case configure is actually a
721 # symlink; some systems play weird games with the mod time of symlinks
722 # (eg FreeBSD returns the mod time of the symlink's containing
723 # directory).
724 if (
725    set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
726    if test "$*" = "X"; then
727       # -L didn't work.
728       set X `ls -t $srcdir/configure conftestfile`
729    fi
730    if test "$*" != "X $srcdir/configure conftestfile" \
731       && test "$*" != "X conftestfile $srcdir/configure"; then
732
733       # If neither matched, then we have a broken ls.  This can happen
734       # if, for instance, CONFIG_SHELL is bash and it inherits a
735       # broken ls alias from the environment.  This has actually
736       # happened.  Such a system could not be considered "sane".
737       { echo "configure: error: ls -t appears to fail.  Make sure there is not a broken
738 alias in your environment" 1>&2; exit 1; }
739    fi
740
741    test "$2" = conftestfile
742    )
743 then
744    # Ok.
745    :
746 else
747    { echo "configure: error: newly created file is older than distributed files!
748 Check your system clock" 1>&2; exit 1; }
749 fi
750 rm -f conftest*
751 echo "$ac_t""yes" 1>&6
752 if test "$program_transform_name" = s,x,x,; then
753   program_transform_name=
754 else
755   # Double any \ or $.  echo might interpret backslashes.
756   cat <<\EOF_SED > conftestsed
757 s,\\,\\\\,g; s,\$,$$,g
758 EOF_SED
759   program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
760   rm -f conftestsed
761 fi
762 test "$program_prefix" != NONE &&
763   program_transform_name="s,^,${program_prefix},; $program_transform_name"
764 # Use a double $ so make ignores it.
765 test "$program_suffix" != NONE &&
766   program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
767
768 # sed with no file args requires a program.
769 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
770
771 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
772 echo "configure:773: checking whether ${MAKE-make} sets \${MAKE}" >&5
773 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
774 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
775   echo $ac_n "(cached) $ac_c" 1>&6
776 else
777   cat > conftestmake <<\EOF
778 all:
779         @echo 'ac_maketemp="${MAKE}"'
780 EOF
781 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
782 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
783 if test -n "$ac_maketemp"; then
784   eval ac_cv_prog_make_${ac_make}_set=yes
785 else
786   eval ac_cv_prog_make_${ac_make}_set=no
787 fi
788 rm -f conftestmake
789 fi
790 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
791   echo "$ac_t""yes" 1>&6
792   SET_MAKE=
793 else
794   echo "$ac_t""no" 1>&6
795   SET_MAKE="MAKE=${MAKE-make}"
796 fi
797
798
799 PACKAGE=radiusclient
800
801 VERSION=0.3.1
802
803 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
804   { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
805 fi
806 cat >> confdefs.h <<EOF
807 #define PACKAGE "$PACKAGE"
808 EOF
809
810 cat >> confdefs.h <<EOF
811 #define VERSION "$VERSION"
812 EOF
813
814
815
816 missing_dir=`cd $ac_aux_dir && pwd`
817 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
818 echo "configure:819: checking for working aclocal" >&5
819 # Run test in a subshell; some versions of sh will print an error if
820 # an executable is not found, even if stderr is redirected.
821 # Redirect stdin to placate older versions of autoconf.  Sigh.
822 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
823    ACLOCAL=aclocal
824    echo "$ac_t""found" 1>&6
825 else
826    ACLOCAL="$missing_dir/missing aclocal"
827    echo "$ac_t""missing" 1>&6
828 fi
829
830 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
831 echo "configure:832: checking for working autoconf" >&5
832 # Run test in a subshell; some versions of sh will print an error if
833 # an executable is not found, even if stderr is redirected.
834 # Redirect stdin to placate older versions of autoconf.  Sigh.
835 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
836    AUTOCONF=autoconf
837    echo "$ac_t""found" 1>&6
838 else
839    AUTOCONF="$missing_dir/missing autoconf"
840    echo "$ac_t""missing" 1>&6
841 fi
842
843 echo $ac_n "checking for working automake""... $ac_c" 1>&6
844 echo "configure:845: checking for working automake" >&5
845 # Run test in a subshell; some versions of sh will print an error if
846 # an executable is not found, even if stderr is redirected.
847 # Redirect stdin to placate older versions of autoconf.  Sigh.
848 if (automake --version) < /dev/null > /dev/null 2>&1; then
849    AUTOMAKE=automake
850    echo "$ac_t""found" 1>&6
851 else
852    AUTOMAKE="$missing_dir/missing automake"
853    echo "$ac_t""missing" 1>&6
854 fi
855
856 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
857 echo "configure:858: checking for working autoheader" >&5
858 # Run test in a subshell; some versions of sh will print an error if
859 # an executable is not found, even if stderr is redirected.
860 # Redirect stdin to placate older versions of autoconf.  Sigh.
861 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
862    AUTOHEADER=autoheader
863    echo "$ac_t""found" 1>&6
864 else
865    AUTOHEADER="$missing_dir/missing autoheader"
866    echo "$ac_t""missing" 1>&6
867 fi
868
869 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
870 echo "configure:871: checking for working makeinfo" >&5
871 # Run test in a subshell; some versions of sh will print an error if
872 # an executable is not found, even if stderr is redirected.
873 # Redirect stdin to placate older versions of autoconf.  Sigh.
874 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
875    MAKEINFO=makeinfo
876    echo "$ac_t""found" 1>&6
877 else
878    MAKEINFO="$missing_dir/missing makeinfo"
879    echo "$ac_t""missing" 1>&6
880 fi
881
882
883
884 LIBVERSION=0:1:0
885
886
887 pkgsysconfdir=${sysconfdir}/$PACKAGE
888
889
890 # Extract the first word of "gcc", so it can be a program name with args.
891 set dummy gcc; ac_word=$2
892 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
893 echo "configure:894: checking for $ac_word" >&5
894 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
895   echo $ac_n "(cached) $ac_c" 1>&6
896 else
897   if test -n "$CC"; then
898   ac_cv_prog_CC="$CC" # Let the user override the test.
899 else
900   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
901   for ac_dir in $PATH; do
902     test -z "$ac_dir" && ac_dir=.
903     if test -f $ac_dir/$ac_word; then
904       ac_cv_prog_CC="gcc"
905       break
906     fi
907   done
908   IFS="$ac_save_ifs"
909 fi
910 fi
911 CC="$ac_cv_prog_CC"
912 if test -n "$CC"; then
913   echo "$ac_t""$CC" 1>&6
914 else
915   echo "$ac_t""no" 1>&6
916 fi
917
918 if test -z "$CC"; then
919   # Extract the first word of "cc", so it can be a program name with args.
920 set dummy cc; ac_word=$2
921 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
922 echo "configure:923: checking for $ac_word" >&5
923 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
924   echo $ac_n "(cached) $ac_c" 1>&6
925 else
926   if test -n "$CC"; then
927   ac_cv_prog_CC="$CC" # Let the user override the test.
928 else
929   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
930   ac_prog_rejected=no
931   for ac_dir in $PATH; do
932     test -z "$ac_dir" && ac_dir=.
933     if test -f $ac_dir/$ac_word; then
934       if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
935         ac_prog_rejected=yes
936         continue
937       fi
938       ac_cv_prog_CC="cc"
939       break
940     fi
941   done
942   IFS="$ac_save_ifs"
943 if test $ac_prog_rejected = yes; then
944   # We found a bogon in the path, so make sure we never use it.
945   set dummy $ac_cv_prog_CC
946   shift
947   if test $# -gt 0; then
948     # We chose a different compiler from the bogus one.
949     # However, it has the same basename, so the bogon will be chosen
950     # first if we set CC to just the basename; use the full file name.
951     shift
952     set dummy "$ac_dir/$ac_word" "$@"
953     shift
954     ac_cv_prog_CC="$@"
955   fi
956 fi
957 fi
958 fi
959 CC="$ac_cv_prog_CC"
960 if test -n "$CC"; then
961   echo "$ac_t""$CC" 1>&6
962 else
963   echo "$ac_t""no" 1>&6
964 fi
965
966   test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
967 fi
968
969 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
970 echo "configure:971: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
971
972 ac_ext=c
973 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
974 ac_cpp='$CPP $CPPFLAGS'
975 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
976 ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
977 cross_compiling=$ac_cv_prog_cc_cross
978
979 cat > conftest.$ac_ext <<EOF
980 #line 981 "configure"
981 #include "confdefs.h"
982 main(){return(0);}
983 EOF
984 if { (eval echo configure:985: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
985   ac_cv_prog_cc_works=yes
986   # If we can't run a trivial program, we are probably using a cross compiler.
987   if (./conftest; exit) 2>/dev/null; then
988     ac_cv_prog_cc_cross=no
989   else
990     ac_cv_prog_cc_cross=yes
991   fi
992 else
993   echo "configure: failed program was:" >&5
994   cat conftest.$ac_ext >&5
995   ac_cv_prog_cc_works=no
996 fi
997 rm -fr conftest*
998
999 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1000 if test $ac_cv_prog_cc_works = no; then
1001   { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1002 fi
1003 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1004 echo "configure:1005: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1005 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1006 cross_compiling=$ac_cv_prog_cc_cross
1007
1008 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1009 echo "configure:1010: checking whether we are using GNU C" >&5
1010 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1011   echo $ac_n "(cached) $ac_c" 1>&6
1012 else
1013   cat > conftest.c <<EOF
1014 #ifdef __GNUC__
1015   yes;
1016 #endif
1017 EOF
1018 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1019: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1019   ac_cv_prog_gcc=yes
1020 else
1021   ac_cv_prog_gcc=no
1022 fi
1023 fi
1024
1025 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1026
1027 if test $ac_cv_prog_gcc = yes; then
1028   GCC=yes
1029   ac_test_CFLAGS="${CFLAGS+set}"
1030   ac_save_CFLAGS="$CFLAGS"
1031   CFLAGS=
1032   echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1033 echo "configure:1034: checking whether ${CC-cc} accepts -g" >&5
1034 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1035   echo $ac_n "(cached) $ac_c" 1>&6
1036 else
1037   echo 'void f(){}' > conftest.c
1038 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1039   ac_cv_prog_cc_g=yes
1040 else
1041   ac_cv_prog_cc_g=no
1042 fi
1043 rm -f conftest*
1044
1045 fi
1046
1047 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1048   if test "$ac_test_CFLAGS" = set; then
1049     CFLAGS="$ac_save_CFLAGS"
1050   elif test $ac_cv_prog_cc_g = yes; then
1051     CFLAGS="-g -O2"
1052   else
1053     CFLAGS="-O2"
1054   fi
1055 else
1056   GCC=
1057   test "${CFLAGS+set}" = set || CFLAGS="-g"
1058 fi
1059
1060
1061 # Extract the first word of "ar", so it can be a program name with args.
1062 set dummy ar; ac_word=$2
1063 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1064 echo "configure:1065: checking for $ac_word" >&5
1065 if eval "test \"`echo '$''{'ac_cv_path_AR'+set}'`\" = set"; then
1066   echo $ac_n "(cached) $ac_c" 1>&6
1067 else
1068   case "$AR" in
1069   /*)
1070   ac_cv_path_AR="$AR" # Let the user override the test with a path.
1071   ;;
1072   *)
1073   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1074   for ac_dir in $PATH; do
1075     test -z "$ac_dir" && ac_dir=.
1076     if test -f $ac_dir/$ac_word; then
1077       ac_cv_path_AR="$ac_dir/$ac_word"
1078       break
1079     fi
1080   done
1081   IFS="$ac_save_ifs"
1082   ;;
1083 esac
1084 fi
1085 AR="$ac_cv_path_AR"
1086 if test -n "$AR"; then
1087   echo "$ac_t""$AR" 1>&6
1088 else
1089   echo "$ac_t""no" 1>&6
1090 fi
1091
1092 # Extract the first word of "ranlib", so it can be a program name with args.
1093 set dummy ranlib; ac_word=$2
1094 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1095 echo "configure:1096: checking for $ac_word" >&5
1096 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1097   echo $ac_n "(cached) $ac_c" 1>&6
1098 else
1099   if test -n "$RANLIB"; then
1100   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1101 else
1102   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1103   for ac_dir in $PATH; do
1104     test -z "$ac_dir" && ac_dir=.
1105     if test -f $ac_dir/$ac_word; then
1106       ac_cv_prog_RANLIB="ranlib"
1107       break
1108     fi
1109   done
1110   IFS="$ac_save_ifs"
1111   test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1112 fi
1113 fi
1114 RANLIB="$ac_cv_prog_RANLIB"
1115 if test -n "$RANLIB"; then
1116   echo "$ac_t""$RANLIB" 1>&6
1117 else
1118   echo "$ac_t""no" 1>&6
1119 fi
1120
1121 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1122 if test "${with_gnu_ld+set}" = set; then
1123   withval="$with_gnu_ld"
1124   test "$withval" = no || with_gnu_ld=yes
1125 else
1126   with_gnu_ld=no
1127 fi
1128
1129
1130 ac_prog=ld
1131 if test "$ac_cv_prog_gcc" = yes; then
1132   # Check if gcc -print-prog-name=ld gives a path.
1133   echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
1134 echo "configure:1135: checking for ld used by GCC" >&5
1135   ac_prog=`($CC -print-prog-name=ld) 2>&5`
1136   case "$ac_prog" in
1137   # Accept absolute paths.
1138   /*)
1139     test -z "$LD" && LD="$ac_prog"
1140     ;;
1141   "")
1142     # If it fails, then pretend we aren't using GCC.
1143     ac_prog=ld
1144     ;;
1145   *)
1146     # If it is relative, then search for the first ld in PATH.
1147     with_gnu_ld=unknown
1148     ;;
1149   esac
1150 elif test "$with_gnu_ld" = yes; then
1151   echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1152 echo "configure:1153: checking for GNU ld" >&5
1153 else
1154   echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1155 echo "configure:1156: checking for non-GNU ld" >&5
1156 fi
1157 if eval "test \"`echo '$''{'ac_cv_path_LD'+set}'`\" = set"; then
1158   echo $ac_n "(cached) $ac_c" 1>&6
1159 else
1160   if test -z "$LD"; then
1161   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1162   for ac_dir in $PATH; do
1163     test -z "$ac_dir" && ac_dir=.
1164     if test -f "$ac_dir/$ac_prog"; then
1165       ac_cv_path_LD="$ac_dir/$ac_prog"
1166       # Check to see if the program is GNU ld.  I'd rather use --version,
1167       # but apparently some GNU ld's only accept -v.
1168       # Break only if it was the GNU/non-GNU ld that we prefer.
1169       if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
1170         test "$with_gnu_ld" != no && break
1171       else
1172         test "$with_gnu_ld" != yes && break
1173       fi
1174     fi
1175   done
1176   IFS="$ac_save_ifs"
1177 else
1178   ac_cv_path_LD="$LD" # Let the user override the test with a path.
1179 fi
1180 fi
1181
1182 LD="$ac_cv_path_LD"
1183 if test -n "$LD"; then
1184   echo "$ac_t""$LD" 1>&6
1185 else
1186   echo "$ac_t""no" 1>&6
1187 fi
1188 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1189
1190 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1191 echo "configure:1192: checking if the linker ($LD) is GNU ld" >&5
1192 if eval "test \"`echo '$''{'ac_cv_prog_gnu_ld'+set}'`\" = set"; then
1193   echo $ac_n "(cached) $ac_c" 1>&6
1194 else
1195   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1196 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
1197   ac_cv_prog_gnu_ld=yes
1198 else
1199   ac_cv_prog_gnu_ld=no
1200 fi
1201 fi
1202
1203 echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
1204
1205
1206 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
1207 echo "configure:1208: checking for BSD-compatible nm" >&5
1208 if eval "test \"`echo '$''{'ac_cv_path_NM'+set}'`\" = set"; then
1209   echo $ac_n "(cached) $ac_c" 1>&6
1210 else
1211   case "$NM" in
1212 /*)
1213   ac_cv_path_NM="$NM" # Let the user override the test with a path.
1214   ;;
1215 *)
1216   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1217   for ac_dir in /usr/ucb /usr/ccs/bin $PATH /bin; do
1218     test -z "$ac_dir" && dir=.
1219     if test -f $ac_dir/nm; then
1220       # Check to see if the nm accepts a BSD-compat flag.
1221       # Adding the `sed 1!d' prevents false positives on HP-UX, which says:
1222       #   nm: unknown option "B" ignored
1223       if ($ac_dir/nm -B /dev/null 2>&1 | sed '1!d'; exit 0) | egrep /dev/null >/dev/null; then
1224         ac_cv_path_NM="$ac_dir/nm -B"
1225       elif ($ac_dir/nm -p /dev/null 2>&1 | sed '1!d'; exit 0) | egrep /dev/null >/dev/null; then
1226         ac_cv_path_NM="$ac_dir/nm -p"
1227       else
1228         ac_cv_path_NM="$ac_dir/nm"
1229       fi
1230       break
1231     fi
1232   done
1233   IFS="$ac_save_ifs"
1234   test -z "$ac_cv_path_NM" && ac_cv_path_NM=nm
1235   ;;
1236 esac
1237 fi
1238
1239 NM="$ac_cv_path_NM"
1240 echo "$ac_t""$NM" 1>&6
1241
1242
1243 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1244 echo "configure:1245: checking whether ln -s works" >&5
1245 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1246   echo $ac_n "(cached) $ac_c" 1>&6
1247 else
1248   rm -f conftestdata
1249 if ln -s X conftestdata 2>/dev/null
1250 then
1251   rm -f conftestdata
1252   ac_cv_prog_LN_S="ln -s"
1253 else
1254   ac_cv_prog_LN_S=ln
1255 fi
1256 fi
1257 LN_S="$ac_cv_prog_LN_S"
1258 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1259   echo "$ac_t""yes" 1>&6
1260 else
1261   echo "$ac_t""no" 1>&6
1262 fi
1263
1264
1265
1266
1267
1268
1269
1270
1271 # Always use our own libtool.
1272 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
1273
1274
1275 # Check whether --enable-shared or --disable-shared was given.
1276 if test "${enable_shared+set}" = set; then
1277   enableval="$enable_shared"
1278   if test "$enableval" = no; then
1279   libtool_enable_shared=no
1280 else
1281   libtool_enable_shared=yes
1282 fi
1283 fi
1284
1285 test -n "$libtool_enable_shared" && enable_shared="$libtool_enable_shared"
1286 libtool_shared=
1287 test "$enable_shared" = no && libtool_shared=" --disable-shared"
1288
1289 # Check whether --enable-static or --disable-static was given.
1290 if test "${enable_static+set}" = set; then
1291   enableval="$enable_static"
1292   if test "$enableval" = no; then
1293   libtool_enable_static=no
1294 else
1295   libtool_enable_static=yes
1296 fi
1297 fi
1298
1299 test -n "$libtool_enable_static" && enable_static="$libtool_enable_static"
1300 libtool_static=
1301 test "$enable_static" = no && libtool_static=" --disable-static"
1302
1303 libtool_flags="$libtool_shared$libtool_static"
1304 test "$silent" = yes && libtool_flags="$libtool_flags --silent"
1305 test "$ac_cv_prog_gcc" = yes && libtool_flags="$libtool_flags --with-gcc"
1306 test "$ac_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
1307
1308 # Some flags need to be propagated to the compiler or linker for good
1309 # libtool support.
1310 case "$host" in
1311 *-*-irix6*)
1312   ac_save_CFLAGS="$CFLAGS"
1313   flag_passed=no
1314   for f in -32 -64 -n32 ABI -cckr -mips1 -mips2 -mips3 -mips4; do
1315     case "$f" in
1316     ABI)
1317       test -n "$SGI_ABI" && flag_passed=yes
1318       if test "$flag_passed" = no && test "$ac_cv_prog_gcc" = yes; then
1319         # Choose the ABI flag according to GCC's specs.
1320         if $CC -dumpspecs 2>&1 | sed '/^\*link:$/,/^$/!d' | egrep -e '[         ]-32' >/dev/null; then
1321           LD="${LD-ld} -32"
1322         else
1323           LD="${LD-ld} -n32"
1324         fi
1325       fi
1326       ;;
1327
1328     *)
1329       if echo " $CC $CFLAGS " | egrep -e "[     ]$f[     ]" > /dev/null; then
1330         flag_passed=yes
1331         LD="${LD-ld} $f"
1332       fi
1333       ;;
1334     esac
1335   done
1336   CFLAGS="$ac_save_CFLAGS"
1337   ;;
1338
1339 *-*-sco3.2v5*)
1340   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
1341   CFLAGS="$CFLAGS -belf"
1342   ;;
1343 esac
1344
1345 # Actually configure libtool.  ac_aux_dir is where install-sh is found.
1346 CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
1347 LD="$LD" NM="$NM" RANLIB="$RANLIB" LN_S="$LN_S" \
1348 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig \
1349 $libtool_flags --no-verify $ac_aux_dir/ltmain.sh $host \
1350 || { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
1351
1352
1353 echo $ac_n "checking whether to include shadow password support""... $ac_c" 1>&6
1354 echo "configure:1355: checking whether to include shadow password support" >&5
1355 # Check whether --enable-shadow or --disable-shadow was given.
1356 if test "${enable_shadow+set}" = set; then
1357   enableval="$enable_shadow"
1358   
1359         echo "$ac_t""yes" 1>&6
1360         cat >> confdefs.h <<\EOF
1361 #define HAVE_SHADOW_PASSWORDS 1
1362 EOF
1363
1364         shadow_passwords=yes
1365
1366 else
1367   
1368         echo "$ac_t""no" 1>&6
1369         shadow_passwords=no
1370
1371
1372 fi
1373
1374
1375 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
1376 echo "configure:1377: checking for gethostbyname in -lnsl" >&5
1377 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
1378 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1379   echo $ac_n "(cached) $ac_c" 1>&6
1380 else
1381   ac_save_LIBS="$LIBS"
1382 LIBS="-lnsl  $LIBS"
1383 cat > conftest.$ac_ext <<EOF
1384 #line 1385 "configure"
1385 #include "confdefs.h"
1386 /* Override any gcc2 internal prototype to avoid an error.  */
1387 /* We use char because int might match the return type of a gcc2
1388     builtin and then its argument prototype would still apply.  */
1389 char gethostbyname();
1390
1391 int main() {
1392 gethostbyname()
1393 ; return 0; }
1394 EOF
1395 if { (eval echo configure:1396: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1396   rm -rf conftest*
1397   eval "ac_cv_lib_$ac_lib_var=yes"
1398 else
1399   echo "configure: failed program was:" >&5
1400   cat conftest.$ac_ext >&5
1401   rm -rf conftest*
1402   eval "ac_cv_lib_$ac_lib_var=no"
1403 fi
1404 rm -f conftest*
1405 LIBS="$ac_save_LIBS"
1406
1407 fi
1408 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1409   echo "$ac_t""yes" 1>&6
1410     ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1411     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1412   cat >> confdefs.h <<EOF
1413 #define $ac_tr_lib 1
1414 EOF
1415
1416   LIBS="-lnsl $LIBS"
1417
1418 else
1419   echo "$ac_t""no" 1>&6
1420 fi
1421
1422 echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
1423 echo "configure:1424: checking for socket in -lsocket" >&5
1424 ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'`
1425 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1426   echo $ac_n "(cached) $ac_c" 1>&6
1427 else
1428   ac_save_LIBS="$LIBS"
1429 LIBS="-lsocket  $LIBS"
1430 cat > conftest.$ac_ext <<EOF
1431 #line 1432 "configure"
1432 #include "confdefs.h"
1433 /* Override any gcc2 internal prototype to avoid an error.  */
1434 /* We use char because int might match the return type of a gcc2
1435     builtin and then its argument prototype would still apply.  */
1436 char socket();
1437
1438 int main() {
1439 socket()
1440 ; return 0; }
1441 EOF
1442 if { (eval echo configure:1443: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1443   rm -rf conftest*
1444   eval "ac_cv_lib_$ac_lib_var=yes"
1445 else
1446   echo "configure: failed program was:" >&5
1447   cat conftest.$ac_ext >&5
1448   rm -rf conftest*
1449   eval "ac_cv_lib_$ac_lib_var=no"
1450 fi
1451 rm -f conftest*
1452 LIBS="$ac_save_LIBS"
1453
1454 fi
1455 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1456   echo "$ac_t""yes" 1>&6
1457     ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1458     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1459   cat >> confdefs.h <<EOF
1460 #define $ac_tr_lib 1
1461 EOF
1462
1463   LIBS="-lsocket $LIBS"
1464
1465 else
1466   echo "$ac_t""no" 1>&6
1467 fi
1468
1469 if test "$shadow_passwords" = "yes"
1470 then
1471         echo $ac_n "checking for getspnam in -lc""... $ac_c" 1>&6
1472 echo "configure:1473: checking for getspnam in -lc" >&5
1473 ac_lib_var=`echo c'_'getspnam | sed 'y%./+-%__p_%'`
1474 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1475   echo $ac_n "(cached) $ac_c" 1>&6
1476 else
1477   ac_save_LIBS="$LIBS"
1478 LIBS="-lc  $LIBS"
1479 cat > conftest.$ac_ext <<EOF
1480 #line 1481 "configure"
1481 #include "confdefs.h"
1482 /* Override any gcc2 internal prototype to avoid an error.  */
1483 /* We use char because int might match the return type of a gcc2
1484     builtin and then its argument prototype would still apply.  */
1485 char getspnam();
1486
1487 int main() {
1488 getspnam()
1489 ; return 0; }
1490 EOF
1491 if { (eval echo configure:1492: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1492   rm -rf conftest*
1493   eval "ac_cv_lib_$ac_lib_var=yes"
1494 else
1495   echo "configure: failed program was:" >&5
1496   cat conftest.$ac_ext >&5
1497   rm -rf conftest*
1498   eval "ac_cv_lib_$ac_lib_var=no"
1499 fi
1500 rm -f conftest*
1501 LIBS="$ac_save_LIBS"
1502
1503 fi
1504 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1505   echo "$ac_t""yes" 1>&6
1506   :
1507 else
1508   echo "$ac_t""no" 1>&6
1509 echo $ac_n "checking for getspnam in -lshadow""... $ac_c" 1>&6
1510 echo "configure:1511: checking for getspnam in -lshadow" >&5
1511 ac_lib_var=`echo shadow'_'getspnam | sed 'y%./+-%__p_%'`
1512 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1513   echo $ac_n "(cached) $ac_c" 1>&6
1514 else
1515   ac_save_LIBS="$LIBS"
1516 LIBS="-lshadow  $LIBS"
1517 cat > conftest.$ac_ext <<EOF
1518 #line 1519 "configure"
1519 #include "confdefs.h"
1520 /* Override any gcc2 internal prototype to avoid an error.  */
1521 /* We use char because int might match the return type of a gcc2
1522     builtin and then its argument prototype would still apply.  */
1523 char getspnam();
1524
1525 int main() {
1526 getspnam()
1527 ; return 0; }
1528 EOF
1529 if { (eval echo configure:1530: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1530   rm -rf conftest*
1531   eval "ac_cv_lib_$ac_lib_var=yes"
1532 else
1533   echo "configure: failed program was:" >&5
1534   cat conftest.$ac_ext >&5
1535   rm -rf conftest*
1536   eval "ac_cv_lib_$ac_lib_var=no"
1537 fi
1538 rm -f conftest*
1539 LIBS="$ac_save_LIBS"
1540
1541 fi
1542 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1543   echo "$ac_t""yes" 1>&6
1544   LIBS="$LIBS -lshadow"
1545                 
1546 else
1547   echo "$ac_t""no" 1>&6
1548 fi
1549
1550         
1551 fi
1552
1553 fi
1554 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
1555 echo "configure:1556: checking for crypt in -lcrypt" >&5
1556 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-%__p_%'`
1557 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1558   echo $ac_n "(cached) $ac_c" 1>&6
1559 else
1560   ac_save_LIBS="$LIBS"
1561 LIBS="-lcrypt  $LIBS"
1562 cat > conftest.$ac_ext <<EOF
1563 #line 1564 "configure"
1564 #include "confdefs.h"
1565 /* Override any gcc2 internal prototype to avoid an error.  */
1566 /* We use char because int might match the return type of a gcc2
1567     builtin and then its argument prototype would still apply.  */
1568 char crypt();
1569
1570 int main() {
1571 crypt()
1572 ; return 0; }
1573 EOF
1574 if { (eval echo configure:1575: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1575   rm -rf conftest*
1576   eval "ac_cv_lib_$ac_lib_var=yes"
1577 else
1578   echo "configure: failed program was:" >&5
1579   cat conftest.$ac_ext >&5
1580   rm -rf conftest*
1581   eval "ac_cv_lib_$ac_lib_var=no"
1582 fi
1583 rm -f conftest*
1584 LIBS="$ac_save_LIBS"
1585
1586 fi
1587 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1588   echo "$ac_t""yes" 1>&6
1589     ac_tr_lib=HAVE_LIB`echo crypt | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1590     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1591   cat >> confdefs.h <<EOF
1592 #define $ac_tr_lib 1
1593 EOF
1594
1595   LIBS="-lcrypt $LIBS"
1596
1597 else
1598   echo "$ac_t""no" 1>&6
1599 fi
1600
1601
1602 ac_header_dirent=no
1603 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
1604 do
1605 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1606 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
1607 echo "configure:1608: checking for $ac_hdr that defines DIR" >&5
1608 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
1609   echo $ac_n "(cached) $ac_c" 1>&6
1610 else
1611   cat > conftest.$ac_ext <<EOF
1612 #line 1613 "configure"
1613 #include "confdefs.h"
1614 #include <sys/types.h>
1615 #include <$ac_hdr>
1616 int main() {
1617 DIR *dirp = 0;
1618 ; return 0; }
1619 EOF
1620 if { (eval echo configure:1621: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1621   rm -rf conftest*
1622   eval "ac_cv_header_dirent_$ac_safe=yes"
1623 else
1624   echo "configure: failed program was:" >&5
1625   cat conftest.$ac_ext >&5
1626   rm -rf conftest*
1627   eval "ac_cv_header_dirent_$ac_safe=no"
1628 fi
1629 rm -f conftest*
1630 fi
1631 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
1632   echo "$ac_t""yes" 1>&6
1633     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1634   cat >> confdefs.h <<EOF
1635 #define $ac_tr_hdr 1
1636 EOF
1637  ac_header_dirent=$ac_hdr; break
1638 else
1639   echo "$ac_t""no" 1>&6
1640 fi
1641 done
1642 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
1643 if test $ac_header_dirent = dirent.h; then
1644 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
1645 echo "configure:1646: checking for opendir in -ldir" >&5
1646 ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
1647 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1648   echo $ac_n "(cached) $ac_c" 1>&6
1649 else
1650   ac_save_LIBS="$LIBS"
1651 LIBS="-ldir  $LIBS"
1652 cat > conftest.$ac_ext <<EOF
1653 #line 1654 "configure"
1654 #include "confdefs.h"
1655 /* Override any gcc2 internal prototype to avoid an error.  */
1656 /* We use char because int might match the return type of a gcc2
1657     builtin and then its argument prototype would still apply.  */
1658 char opendir();
1659
1660 int main() {
1661 opendir()
1662 ; return 0; }
1663 EOF
1664 if { (eval echo configure:1665: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1665   rm -rf conftest*
1666   eval "ac_cv_lib_$ac_lib_var=yes"
1667 else
1668   echo "configure: failed program was:" >&5
1669   cat conftest.$ac_ext >&5
1670   rm -rf conftest*
1671   eval "ac_cv_lib_$ac_lib_var=no"
1672 fi
1673 rm -f conftest*
1674 LIBS="$ac_save_LIBS"
1675
1676 fi
1677 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1678   echo "$ac_t""yes" 1>&6
1679   LIBS="$LIBS -ldir"
1680 else
1681   echo "$ac_t""no" 1>&6
1682 fi
1683
1684 else
1685 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
1686 echo "configure:1687: checking for opendir in -lx" >&5
1687 ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'`
1688 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1689   echo $ac_n "(cached) $ac_c" 1>&6
1690 else
1691   ac_save_LIBS="$LIBS"
1692 LIBS="-lx  $LIBS"
1693 cat > conftest.$ac_ext <<EOF
1694 #line 1695 "configure"
1695 #include "confdefs.h"
1696 /* Override any gcc2 internal prototype to avoid an error.  */
1697 /* We use char because int might match the return type of a gcc2
1698     builtin and then its argument prototype would still apply.  */
1699 char opendir();
1700
1701 int main() {
1702 opendir()
1703 ; return 0; }
1704 EOF
1705 if { (eval echo configure:1706: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1706   rm -rf conftest*
1707   eval "ac_cv_lib_$ac_lib_var=yes"
1708 else
1709   echo "configure: failed program was:" >&5
1710   cat conftest.$ac_ext >&5
1711   rm -rf conftest*
1712   eval "ac_cv_lib_$ac_lib_var=no"
1713 fi
1714 rm -f conftest*
1715 LIBS="$ac_save_LIBS"
1716
1717 fi
1718 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1719   echo "$ac_t""yes" 1>&6
1720   LIBS="$LIBS -lx"
1721 else
1722   echo "$ac_t""no" 1>&6
1723 fi
1724
1725 fi
1726
1727 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1728 echo "configure:1729: checking how to run the C preprocessor" >&5
1729 # On Suns, sometimes $CPP names a directory.
1730 if test -n "$CPP" && test -d "$CPP"; then
1731   CPP=
1732 fi
1733 if test -z "$CPP"; then
1734 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1735   echo $ac_n "(cached) $ac_c" 1>&6
1736 else
1737     # This must be in double quotes, not single quotes, because CPP may get
1738   # substituted into the Makefile and "${CC-cc}" will confuse make.
1739   CPP="${CC-cc} -E"
1740   # On the NeXT, cc -E runs the code through the compiler's parser,
1741   # not just through cpp.
1742   cat > conftest.$ac_ext <<EOF
1743 #line 1744 "configure"
1744 #include "confdefs.h"
1745 #include <assert.h>
1746 Syntax Error
1747 EOF
1748 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1749 { (eval echo configure:1750: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1750 ac_err=`grep -v '^ *+' conftest.out`
1751 if test -z "$ac_err"; then
1752   :
1753 else
1754   echo "$ac_err" >&5
1755   echo "configure: failed program was:" >&5
1756   cat conftest.$ac_ext >&5
1757   rm -rf conftest*
1758   CPP="${CC-cc} -E -traditional-cpp"
1759   cat > conftest.$ac_ext <<EOF
1760 #line 1761 "configure"
1761 #include "confdefs.h"
1762 #include <assert.h>
1763 Syntax Error
1764 EOF
1765 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1766 { (eval echo configure:1767: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1767 ac_err=`grep -v '^ *+' conftest.out`
1768 if test -z "$ac_err"; then
1769   :
1770 else
1771   echo "$ac_err" >&5
1772   echo "configure: failed program was:" >&5
1773   cat conftest.$ac_ext >&5
1774   rm -rf conftest*
1775   CPP=/lib/cpp
1776 fi
1777 rm -f conftest*
1778 fi
1779 rm -f conftest*
1780   ac_cv_prog_CPP="$CPP"
1781 fi
1782   CPP="$ac_cv_prog_CPP"
1783 else
1784   ac_cv_prog_CPP="$CPP"
1785 fi
1786 echo "$ac_t""$CPP" 1>&6
1787
1788 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1789 echo "configure:1790: checking for ANSI C header files" >&5
1790 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1791   echo $ac_n "(cached) $ac_c" 1>&6
1792 else
1793   cat > conftest.$ac_ext <<EOF
1794 #line 1795 "configure"
1795 #include "confdefs.h"
1796 #include <stdlib.h>
1797 #include <stdarg.h>
1798 #include <string.h>
1799 #include <float.h>
1800 EOF
1801 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1802 { (eval echo configure:1803: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1803 ac_err=`grep -v '^ *+' conftest.out`
1804 if test -z "$ac_err"; then
1805   rm -rf conftest*
1806   ac_cv_header_stdc=yes
1807 else
1808   echo "$ac_err" >&5
1809   echo "configure: failed program was:" >&5
1810   cat conftest.$ac_ext >&5
1811   rm -rf conftest*
1812   ac_cv_header_stdc=no
1813 fi
1814 rm -f conftest*
1815
1816 if test $ac_cv_header_stdc = yes; then
1817   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1818 cat > conftest.$ac_ext <<EOF
1819 #line 1820 "configure"
1820 #include "confdefs.h"
1821 #include <string.h>
1822 EOF
1823 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1824   egrep "memchr" >/dev/null 2>&1; then
1825   :
1826 else
1827   rm -rf conftest*
1828   ac_cv_header_stdc=no
1829 fi
1830 rm -f conftest*
1831
1832 fi
1833
1834 if test $ac_cv_header_stdc = yes; then
1835   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1836 cat > conftest.$ac_ext <<EOF
1837 #line 1838 "configure"
1838 #include "confdefs.h"
1839 #include <stdlib.h>
1840 EOF
1841 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1842   egrep "free" >/dev/null 2>&1; then
1843   :
1844 else
1845   rm -rf conftest*
1846   ac_cv_header_stdc=no
1847 fi
1848 rm -f conftest*
1849
1850 fi
1851
1852 if test $ac_cv_header_stdc = yes; then
1853   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1854 if test "$cross_compiling" = yes; then
1855   :
1856 else
1857   cat > conftest.$ac_ext <<EOF
1858 #line 1859 "configure"
1859 #include "confdefs.h"
1860 #include <ctype.h>
1861 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1862 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1863 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1864 int main () { int i; for (i = 0; i < 256; i++)
1865 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1866 exit (0); }
1867
1868 EOF
1869 if { (eval echo configure:1870: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
1870 then
1871   :
1872 else
1873   echo "configure: failed program was:" >&5
1874   cat conftest.$ac_ext >&5
1875   rm -fr conftest*
1876   ac_cv_header_stdc=no
1877 fi
1878 rm -fr conftest*
1879 fi
1880
1881 fi
1882 fi
1883
1884 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1885 if test $ac_cv_header_stdc = yes; then
1886   cat >> confdefs.h <<\EOF
1887 #define STDC_HEADERS 1
1888 EOF
1889
1890 fi
1891
1892 for ac_hdr in crypt.h signal.h sys/signal.h sys/stat.h
1893 do
1894 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1895 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1896 echo "configure:1897: checking for $ac_hdr" >&5
1897 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1898   echo $ac_n "(cached) $ac_c" 1>&6
1899 else
1900   cat > conftest.$ac_ext <<EOF
1901 #line 1902 "configure"
1902 #include "confdefs.h"
1903 #include <$ac_hdr>
1904 EOF
1905 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1906 { (eval echo configure:1907: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1907 ac_err=`grep -v '^ *+' conftest.out`
1908 if test -z "$ac_err"; then
1909   rm -rf conftest*
1910   eval "ac_cv_header_$ac_safe=yes"
1911 else
1912   echo "$ac_err" >&5
1913   echo "configure: failed program was:" >&5
1914   cat conftest.$ac_ext >&5
1915   rm -rf conftest*
1916   eval "ac_cv_header_$ac_safe=no"
1917 fi
1918 rm -f conftest*
1919 fi
1920 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1921   echo "$ac_t""yes" 1>&6
1922     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1923   cat >> confdefs.h <<EOF
1924 #define $ac_tr_hdr 1
1925 EOF
1926  
1927 else
1928   echo "$ac_t""no" 1>&6
1929 fi
1930 done
1931
1932 for ac_hdr in fcntl.h sys/fcntl.h
1933 do
1934 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1935 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1936 echo "configure:1937: checking for $ac_hdr" >&5
1937 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1938   echo $ac_n "(cached) $ac_c" 1>&6
1939 else
1940   cat > conftest.$ac_ext <<EOF
1941 #line 1942 "configure"
1942 #include "confdefs.h"
1943 #include <$ac_hdr>
1944 EOF
1945 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1946 { (eval echo configure:1947: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1947 ac_err=`grep -v '^ *+' conftest.out`
1948 if test -z "$ac_err"; then
1949   rm -rf conftest*
1950   eval "ac_cv_header_$ac_safe=yes"
1951 else
1952   echo "$ac_err" >&5
1953   echo "configure: failed program was:" >&5
1954   cat conftest.$ac_ext >&5
1955   rm -rf conftest*
1956   eval "ac_cv_header_$ac_safe=no"
1957 fi
1958 rm -f conftest*
1959 fi
1960 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1961   echo "$ac_t""yes" 1>&6
1962     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1963   cat >> confdefs.h <<EOF
1964 #define $ac_tr_hdr 1
1965 EOF
1966  
1967 else
1968   echo "$ac_t""no" 1>&6
1969 fi
1970 done
1971
1972 for ac_hdr in sys/utsname.h getopt.h unistd.h
1973 do
1974 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1975 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1976 echo "configure:1977: checking for $ac_hdr" >&5
1977 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1978   echo $ac_n "(cached) $ac_c" 1>&6
1979 else
1980   cat > conftest.$ac_ext <<EOF
1981 #line 1982 "configure"
1982 #include "confdefs.h"
1983 #include <$ac_hdr>
1984 EOF
1985 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1986 { (eval echo configure:1987: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1987 ac_err=`grep -v '^ *+' conftest.out`
1988 if test -z "$ac_err"; then
1989   rm -rf conftest*
1990   eval "ac_cv_header_$ac_safe=yes"
1991 else
1992   echo "$ac_err" >&5
1993   echo "configure: failed program was:" >&5
1994   cat conftest.$ac_ext >&5
1995   rm -rf conftest*
1996   eval "ac_cv_header_$ac_safe=no"
1997 fi
1998 rm -f conftest*
1999 fi
2000 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2001   echo "$ac_t""yes" 1>&6
2002     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2003   cat >> confdefs.h <<EOF
2004 #define $ac_tr_hdr 1
2005 EOF
2006  
2007 else
2008   echo "$ac_t""no" 1>&6
2009 fi
2010 done
2011
2012 for ac_hdr in sys/file.h termios.h sys/ioctl.h
2013 do
2014 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2015 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2016 echo "configure:2017: checking for $ac_hdr" >&5
2017 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2018   echo $ac_n "(cached) $ac_c" 1>&6
2019 else
2020   cat > conftest.$ac_ext <<EOF
2021 #line 2022 "configure"
2022 #include "confdefs.h"
2023 #include <$ac_hdr>
2024 EOF
2025 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2026 { (eval echo configure:2027: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2027 ac_err=`grep -v '^ *+' conftest.out`
2028 if test -z "$ac_err"; then
2029   rm -rf conftest*
2030   eval "ac_cv_header_$ac_safe=yes"
2031 else
2032   echo "$ac_err" >&5
2033   echo "configure: failed program was:" >&5
2034   cat conftest.$ac_ext >&5
2035   rm -rf conftest*
2036   eval "ac_cv_header_$ac_safe=no"
2037 fi
2038 rm -f conftest*
2039 fi
2040 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2041   echo "$ac_t""yes" 1>&6
2042     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2043   cat >> confdefs.h <<EOF
2044 #define $ac_tr_hdr 1
2045 EOF
2046  
2047 else
2048   echo "$ac_t""no" 1>&6
2049 fi
2050 done
2051
2052 if test "$shadow_passwords" = "yes"
2053 then
2054         ac_safe=`echo "shadow.h" | sed 'y%./+-%__p_%'`
2055 echo $ac_n "checking for shadow.h""... $ac_c" 1>&6
2056 echo "configure:2057: checking for shadow.h" >&5
2057 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2058   echo $ac_n "(cached) $ac_c" 1>&6
2059 else
2060   cat > conftest.$ac_ext <<EOF
2061 #line 2062 "configure"
2062 #include "confdefs.h"
2063 #include <shadow.h>
2064 EOF
2065 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2066 { (eval echo configure:2067: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2067 ac_err=`grep -v '^ *+' conftest.out`
2068 if test -z "$ac_err"; then
2069   rm -rf conftest*
2070   eval "ac_cv_header_$ac_safe=yes"
2071 else
2072   echo "$ac_err" >&5
2073   echo "configure: failed program was:" >&5
2074   cat conftest.$ac_ext >&5
2075   rm -rf conftest*
2076   eval "ac_cv_header_$ac_safe=no"
2077 fi
2078 rm -f conftest*
2079 fi
2080 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2081   echo "$ac_t""yes" 1>&6
2082   :
2083 else
2084   echo "$ac_t""no" 1>&6
2085 fi
2086
2087 fi
2088
2089
2090 echo $ac_n "checking for working const""... $ac_c" 1>&6
2091 echo "configure:2092: checking for working const" >&5
2092 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
2093   echo $ac_n "(cached) $ac_c" 1>&6
2094 else
2095   cat > conftest.$ac_ext <<EOF
2096 #line 2097 "configure"
2097 #include "confdefs.h"
2098
2099 int main() {
2100
2101 /* Ultrix mips cc rejects this.  */
2102 typedef int charset[2]; const charset x;
2103 /* SunOS 4.1.1 cc rejects this.  */
2104 char const *const *ccp;
2105 char **p;
2106 /* NEC SVR4.0.2 mips cc rejects this.  */
2107 struct point {int x, y;};
2108 static struct point const zero = {0,0};
2109 /* AIX XL C 1.02.0.0 rejects this.
2110    It does not let you subtract one const X* pointer from another in an arm
2111    of an if-expression whose if-part is not a constant expression */
2112 const char *g = "string";
2113 ccp = &g + (g ? g-g : 0);
2114 /* HPUX 7.0 cc rejects these. */
2115 ++ccp;
2116 p = (char**) ccp;
2117 ccp = (char const *const *) p;
2118 { /* SCO 3.2v4 cc rejects this.  */
2119   char *t;
2120   char const *s = 0 ? (char *) 0 : (char const *) 0;
2121
2122   *t++ = 0;
2123 }
2124 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
2125   int x[] = {25, 17};
2126   const int *foo = &x[0];
2127   ++foo;
2128 }
2129 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
2130   typedef const int *iptr;
2131   iptr p = 0;
2132   ++p;
2133 }
2134 { /* AIX XL C 1.02.0.0 rejects this saying
2135      "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
2136   struct s { int j; const int *ap[3]; };
2137   struct s *b; b->j = 5;
2138 }
2139 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
2140   const int foo = 10;
2141 }
2142
2143 ; return 0; }
2144 EOF
2145 if { (eval echo configure:2146: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2146   rm -rf conftest*
2147   ac_cv_c_const=yes
2148 else
2149   echo "configure: failed program was:" >&5
2150   cat conftest.$ac_ext >&5
2151   rm -rf conftest*
2152   ac_cv_c_const=no
2153 fi
2154 rm -f conftest*
2155 fi
2156
2157 echo "$ac_t""$ac_cv_c_const" 1>&6
2158 if test $ac_cv_c_const = no; then
2159   cat >> confdefs.h <<\EOF
2160 #define const 
2161 EOF
2162
2163 fi
2164
2165 echo $ac_n "checking for off_t""... $ac_c" 1>&6
2166 echo "configure:2167: checking for off_t" >&5
2167 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
2168   echo $ac_n "(cached) $ac_c" 1>&6
2169 else
2170   cat > conftest.$ac_ext <<EOF
2171 #line 2172 "configure"
2172 #include "confdefs.h"
2173 #include <sys/types.h>
2174 #if STDC_HEADERS
2175 #include <stdlib.h>
2176 #include <stddef.h>
2177 #endif
2178 EOF
2179 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2180   egrep "off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2181   rm -rf conftest*
2182   ac_cv_type_off_t=yes
2183 else
2184   rm -rf conftest*
2185   ac_cv_type_off_t=no
2186 fi
2187 rm -f conftest*
2188
2189 fi
2190 echo "$ac_t""$ac_cv_type_off_t" 1>&6
2191 if test $ac_cv_type_off_t = no; then
2192   cat >> confdefs.h <<\EOF
2193 #define off_t long
2194 EOF
2195
2196 fi
2197
2198 echo $ac_n "checking for size_t""... $ac_c" 1>&6
2199 echo "configure:2200: checking for size_t" >&5
2200 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
2201   echo $ac_n "(cached) $ac_c" 1>&6
2202 else
2203   cat > conftest.$ac_ext <<EOF
2204 #line 2205 "configure"
2205 #include "confdefs.h"
2206 #include <sys/types.h>
2207 #if STDC_HEADERS
2208 #include <stdlib.h>
2209 #include <stddef.h>
2210 #endif
2211 EOF
2212 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2213   egrep "size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2214   rm -rf conftest*
2215   ac_cv_type_size_t=yes
2216 else
2217   rm -rf conftest*
2218   ac_cv_type_size_t=no
2219 fi
2220 rm -f conftest*
2221
2222 fi
2223 echo "$ac_t""$ac_cv_type_size_t" 1>&6
2224 if test $ac_cv_type_size_t = no; then
2225   cat >> confdefs.h <<\EOF
2226 #define size_t unsigned
2227 EOF
2228
2229 fi
2230
2231 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
2232 echo "configure:2233: checking whether time.h and sys/time.h may both be included" >&5
2233 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
2234   echo $ac_n "(cached) $ac_c" 1>&6
2235 else
2236   cat > conftest.$ac_ext <<EOF
2237 #line 2238 "configure"
2238 #include "confdefs.h"
2239 #include <sys/types.h>
2240 #include <sys/time.h>
2241 #include <time.h>
2242 int main() {
2243 struct tm *tp;
2244 ; return 0; }
2245 EOF
2246 if { (eval echo configure:2247: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2247   rm -rf conftest*
2248   ac_cv_header_time=yes
2249 else
2250   echo "configure: failed program was:" >&5
2251   cat conftest.$ac_ext >&5
2252   rm -rf conftest*
2253   ac_cv_header_time=no
2254 fi
2255 rm -f conftest*
2256 fi
2257
2258 echo "$ac_t""$ac_cv_header_time" 1>&6
2259 if test $ac_cv_header_time = yes; then
2260   cat >> confdefs.h <<\EOF
2261 #define TIME_WITH_SYS_TIME 1
2262 EOF
2263
2264 fi
2265
2266 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
2267 echo "configure:2268: checking whether struct tm is in sys/time.h or time.h" >&5
2268 if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then
2269   echo $ac_n "(cached) $ac_c" 1>&6
2270 else
2271   cat > conftest.$ac_ext <<EOF
2272 #line 2273 "configure"
2273 #include "confdefs.h"
2274 #include <sys/types.h>
2275 #include <time.h>
2276 int main() {
2277 struct tm *tp; tp->tm_sec;
2278 ; return 0; }
2279 EOF
2280 if { (eval echo configure:2281: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2281   rm -rf conftest*
2282   ac_cv_struct_tm=time.h
2283 else
2284   echo "configure: failed program was:" >&5
2285   cat conftest.$ac_ext >&5
2286   rm -rf conftest*
2287   ac_cv_struct_tm=sys/time.h
2288 fi
2289 rm -f conftest*
2290 fi
2291
2292 echo "$ac_t""$ac_cv_struct_tm" 1>&6
2293 if test $ac_cv_struct_tm = sys/time.h; then
2294   cat >> confdefs.h <<\EOF
2295 #define TM_IN_SYS_TIME 1
2296 EOF
2297
2298 fi
2299
2300
2301 if test $ac_cv_prog_gcc = yes; then
2302     echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
2303 echo "configure:2304: checking whether ${CC-cc} needs -traditional" >&5
2304 if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
2305   echo $ac_n "(cached) $ac_c" 1>&6
2306 else
2307     ac_pattern="Autoconf.*'x'"
2308   cat > conftest.$ac_ext <<EOF
2309 #line 2310 "configure"
2310 #include "confdefs.h"
2311 #include <sgtty.h>
2312 Autoconf TIOCGETP
2313 EOF
2314 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2315   egrep "$ac_pattern" >/dev/null 2>&1; then
2316   rm -rf conftest*
2317   ac_cv_prog_gcc_traditional=yes
2318 else
2319   rm -rf conftest*
2320   ac_cv_prog_gcc_traditional=no
2321 fi
2322 rm -f conftest*
2323
2324
2325   if test $ac_cv_prog_gcc_traditional = no; then
2326     cat > conftest.$ac_ext <<EOF
2327 #line 2328 "configure"
2328 #include "confdefs.h"
2329 #include <termio.h>
2330 Autoconf TCGETA
2331 EOF
2332 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2333   egrep "$ac_pattern" >/dev/null 2>&1; then
2334   rm -rf conftest*
2335   ac_cv_prog_gcc_traditional=yes
2336 fi
2337 rm -f conftest*
2338
2339   fi
2340 fi
2341
2342 echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6
2343   if test $ac_cv_prog_gcc_traditional = yes; then
2344     CC="$CC -traditional"
2345   fi
2346 fi
2347
2348 echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6
2349 echo "configure:2350: checking for 8-bit clean memcmp" >&5
2350 if eval "test \"`echo '$''{'ac_cv_func_memcmp_clean'+set}'`\" = set"; then
2351   echo $ac_n "(cached) $ac_c" 1>&6
2352 else
2353   if test "$cross_compiling" = yes; then
2354   ac_cv_func_memcmp_clean=no
2355 else
2356   cat > conftest.$ac_ext <<EOF
2357 #line 2358 "configure"
2358 #include "confdefs.h"
2359
2360 main()
2361 {
2362   char c0 = 0x40, c1 = 0x80, c2 = 0x81;
2363   exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
2364 }
2365
2366 EOF
2367 if { (eval echo configure:2368: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
2368 then
2369   ac_cv_func_memcmp_clean=yes
2370 else
2371   echo "configure: failed program was:" >&5
2372   cat conftest.$ac_ext >&5
2373   rm -fr conftest*
2374   ac_cv_func_memcmp_clean=no
2375 fi
2376 rm -fr conftest*
2377 fi
2378
2379 fi
2380
2381 echo "$ac_t""$ac_cv_func_memcmp_clean" 1>&6
2382 test $ac_cv_func_memcmp_clean = no && LIBOBJS="$LIBOBJS memcmp.o"
2383
2384 echo $ac_n "checking whether setvbuf arguments are reversed""... $ac_c" 1>&6
2385 echo "configure:2386: checking whether setvbuf arguments are reversed" >&5
2386 if eval "test \"`echo '$''{'ac_cv_func_setvbuf_reversed'+set}'`\" = set"; then
2387   echo $ac_n "(cached) $ac_c" 1>&6
2388 else
2389   if test "$cross_compiling" = yes; then
2390     { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
2391 else
2392   cat > conftest.$ac_ext <<EOF
2393 #line 2394 "configure"
2394 #include "confdefs.h"
2395 #include <stdio.h>
2396 /* If setvbuf has the reversed format, exit 0. */
2397 main () {
2398   /* This call has the arguments reversed.
2399      A reversed system may check and see that the address of main
2400      is not _IOLBF, _IONBF, or _IOFBF, and return nonzero.  */
2401   if (setvbuf(stdout, _IOLBF, (char *) main, BUFSIZ) != 0)
2402     exit(1);
2403   putc('\r', stdout);
2404   exit(0);                      /* Non-reversed systems segv here.  */
2405 }
2406 EOF
2407 if { (eval echo configure:2408: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
2408 then
2409   ac_cv_func_setvbuf_reversed=yes
2410 else
2411   echo "configure: failed program was:" >&5
2412   cat conftest.$ac_ext >&5
2413   rm -fr conftest*
2414   ac_cv_func_setvbuf_reversed=no
2415 fi
2416 rm -fr conftest*
2417 fi
2418
2419 rm -f core core.* *.core
2420 fi
2421
2422 echo "$ac_t""$ac_cv_func_setvbuf_reversed" 1>&6
2423 if test $ac_cv_func_setvbuf_reversed = yes; then
2424   cat >> confdefs.h <<\EOF
2425 #define SETVBUF_REVERSED 1
2426 EOF
2427
2428 fi
2429
2430 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
2431 echo "configure:2432: checking return type of signal handlers" >&5
2432 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
2433   echo $ac_n "(cached) $ac_c" 1>&6
2434 else
2435   cat > conftest.$ac_ext <<EOF
2436 #line 2437 "configure"
2437 #include "confdefs.h"
2438 #include <sys/types.h>
2439 #include <signal.h>
2440 #ifdef signal
2441 #undef signal
2442 #endif
2443 #ifdef __cplusplus
2444 extern "C" void (*signal (int, void (*)(int)))(int);
2445 #else
2446 void (*signal ()) ();
2447 #endif
2448
2449 int main() {
2450 int i;
2451 ; return 0; }
2452 EOF
2453 if { (eval echo configure:2454: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2454   rm -rf conftest*
2455   ac_cv_type_signal=void
2456 else
2457   echo "configure: failed program was:" >&5
2458   cat conftest.$ac_ext >&5
2459   rm -rf conftest*
2460   ac_cv_type_signal=int
2461 fi
2462 rm -f conftest*
2463 fi
2464
2465 echo "$ac_t""$ac_cv_type_signal" 1>&6
2466 cat >> confdefs.h <<EOF
2467 #define RETSIGTYPE $ac_cv_type_signal
2468 EOF
2469
2470
2471 echo $ac_n "checking for strftime""... $ac_c" 1>&6
2472 echo "configure:2473: checking for strftime" >&5
2473 if eval "test \"`echo '$''{'ac_cv_func_strftime'+set}'`\" = set"; then
2474   echo $ac_n "(cached) $ac_c" 1>&6
2475 else
2476   cat > conftest.$ac_ext <<EOF
2477 #line 2478 "configure"
2478 #include "confdefs.h"
2479 /* System header to define __stub macros and hopefully few prototypes,
2480     which can conflict with char strftime(); below.  */
2481 #include <assert.h>
2482 /* Override any gcc2 internal prototype to avoid an error.  */
2483 /* We use char because int might match the return type of a gcc2
2484     builtin and then its argument prototype would still apply.  */
2485 char strftime();
2486
2487 int main() {
2488
2489 /* The GNU C library defines this for functions which it implements
2490     to always fail with ENOSYS.  Some functions are actually named
2491     something starting with __ and the normal name is an alias.  */
2492 #if defined (__stub_strftime) || defined (__stub___strftime)
2493 choke me
2494 #else
2495 strftime();
2496 #endif
2497
2498 ; return 0; }
2499 EOF
2500 if { (eval echo configure:2501: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2501   rm -rf conftest*
2502   eval "ac_cv_func_strftime=yes"
2503 else
2504   echo "configure: failed program was:" >&5
2505   cat conftest.$ac_ext >&5
2506   rm -rf conftest*
2507   eval "ac_cv_func_strftime=no"
2508 fi
2509 rm -f conftest*
2510 fi
2511
2512 if eval "test \"`echo '$ac_cv_func_'strftime`\" = yes"; then
2513   echo "$ac_t""yes" 1>&6
2514   cat >> confdefs.h <<\EOF
2515 #define HAVE_STRFTIME 1
2516 EOF
2517
2518 else
2519   echo "$ac_t""no" 1>&6
2520 # strftime is in -lintl on SCO UNIX.
2521 echo $ac_n "checking for strftime in -lintl""... $ac_c" 1>&6
2522 echo "configure:2523: checking for strftime in -lintl" >&5
2523 ac_lib_var=`echo intl'_'strftime | sed 'y%./+-%__p_%'`
2524 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2525   echo $ac_n "(cached) $ac_c" 1>&6
2526 else
2527   ac_save_LIBS="$LIBS"
2528 LIBS="-lintl  $LIBS"
2529 cat > conftest.$ac_ext <<EOF
2530 #line 2531 "configure"
2531 #include "confdefs.h"
2532 /* Override any gcc2 internal prototype to avoid an error.  */
2533 /* We use char because int might match the return type of a gcc2
2534     builtin and then its argument prototype would still apply.  */
2535 char strftime();
2536
2537 int main() {
2538 strftime()
2539 ; return 0; }
2540 EOF
2541 if { (eval echo configure:2542: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2542   rm -rf conftest*
2543   eval "ac_cv_lib_$ac_lib_var=yes"
2544 else
2545   echo "configure: failed program was:" >&5
2546   cat conftest.$ac_ext >&5
2547   rm -rf conftest*
2548   eval "ac_cv_lib_$ac_lib_var=no"
2549 fi
2550 rm -f conftest*
2551 LIBS="$ac_save_LIBS"
2552
2553 fi
2554 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2555   echo "$ac_t""yes" 1>&6
2556   cat >> confdefs.h <<\EOF
2557 #define HAVE_STRFTIME 1
2558 EOF
2559
2560 LIBS="-lintl $LIBS"
2561 else
2562   echo "$ac_t""no" 1>&6
2563 fi
2564
2565 fi
2566
2567 for ac_func in strdup strerror strcasecmp
2568 do
2569 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2570 echo "configure:2571: checking for $ac_func" >&5
2571 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2572   echo $ac_n "(cached) $ac_c" 1>&6
2573 else
2574   cat > conftest.$ac_ext <<EOF
2575 #line 2576 "configure"
2576 #include "confdefs.h"
2577 /* System header to define __stub macros and hopefully few prototypes,
2578     which can conflict with char $ac_func(); below.  */
2579 #include <assert.h>
2580 /* Override any gcc2 internal prototype to avoid an error.  */
2581 /* We use char because int might match the return type of a gcc2
2582     builtin and then its argument prototype would still apply.  */
2583 char $ac_func();
2584
2585 int main() {
2586
2587 /* The GNU C library defines this for functions which it implements
2588     to always fail with ENOSYS.  Some functions are actually named
2589     something starting with __ and the normal name is an alias.  */
2590 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2591 choke me
2592 #else
2593 $ac_func();
2594 #endif
2595
2596 ; return 0; }
2597 EOF
2598 if { (eval echo configure:2599: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2599   rm -rf conftest*
2600   eval "ac_cv_func_$ac_func=yes"
2601 else
2602   echo "configure: failed program was:" >&5
2603   cat conftest.$ac_ext >&5
2604   rm -rf conftest*
2605   eval "ac_cv_func_$ac_func=no"
2606 fi
2607 rm -f conftest*
2608 fi
2609
2610 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2611   echo "$ac_t""yes" 1>&6
2612     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2613   cat >> confdefs.h <<EOF
2614 #define $ac_tr_func 1
2615 EOF
2616  
2617 else
2618   echo "$ac_t""no" 1>&6
2619 LIBOBJS="$LIBOBJS ${ac_func}.o"
2620 fi
2621 done
2622
2623
2624 for ac_func in flock fcntl uname gethostname sysinfo getdomainname
2625 do
2626 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2627 echo "configure:2628: checking for $ac_func" >&5
2628 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2629   echo $ac_n "(cached) $ac_c" 1>&6
2630 else
2631   cat > conftest.$ac_ext <<EOF
2632 #line 2633 "configure"
2633 #include "confdefs.h"
2634 /* System header to define __stub macros and hopefully few prototypes,
2635     which can conflict with char $ac_func(); below.  */
2636 #include <assert.h>
2637 /* Override any gcc2 internal prototype to avoid an error.  */
2638 /* We use char because int might match the return type of a gcc2
2639     builtin and then its argument prototype would still apply.  */
2640 char $ac_func();
2641
2642 int main() {
2643
2644 /* The GNU C library defines this for functions which it implements
2645     to always fail with ENOSYS.  Some functions are actually named
2646     something starting with __ and the normal name is an alias.  */
2647 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2648 choke me
2649 #else
2650 $ac_func();
2651 #endif
2652
2653 ; return 0; }
2654 EOF
2655 if { (eval echo configure:2656: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2656   rm -rf conftest*
2657   eval "ac_cv_func_$ac_func=yes"
2658 else
2659   echo "configure: failed program was:" >&5
2660   cat conftest.$ac_ext >&5
2661   rm -rf conftest*
2662   eval "ac_cv_func_$ac_func=no"
2663 fi
2664 rm -f conftest*
2665 fi
2666
2667 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2668   echo "$ac_t""yes" 1>&6
2669     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2670   cat >> confdefs.h <<EOF
2671 #define $ac_tr_func 1
2672 EOF
2673  
2674 else
2675   echo "$ac_t""no" 1>&6
2676 fi
2677 done
2678
2679 for ac_func in stricmp random rand snprintf vsnprintf
2680 do
2681 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2682 echo "configure:2683: checking for $ac_func" >&5
2683 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2684   echo $ac_n "(cached) $ac_c" 1>&6
2685 else
2686   cat > conftest.$ac_ext <<EOF
2687 #line 2688 "configure"
2688 #include "confdefs.h"
2689 /* System header to define __stub macros and hopefully few prototypes,
2690     which can conflict with char $ac_func(); below.  */
2691 #include <assert.h>
2692 /* Override any gcc2 internal prototype to avoid an error.  */
2693 /* We use char because int might match the return type of a gcc2
2694     builtin and then its argument prototype would still apply.  */
2695 char $ac_func();
2696
2697 int main() {
2698
2699 /* The GNU C library defines this for functions which it implements
2700     to always fail with ENOSYS.  Some functions are actually named
2701     something starting with __ and the normal name is an alias.  */
2702 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2703 choke me
2704 #else
2705 $ac_func();
2706 #endif
2707
2708 ; return 0; }
2709 EOF
2710 if { (eval echo configure:2711: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2711   rm -rf conftest*
2712   eval "ac_cv_func_$ac_func=yes"
2713 else
2714   echo "configure: failed program was:" >&5
2715   cat conftest.$ac_ext >&5
2716   rm -rf conftest*
2717   eval "ac_cv_func_$ac_func=no"
2718 fi
2719 rm -f conftest*
2720 fi
2721
2722 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2723   echo "$ac_t""yes" 1>&6
2724     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2725   cat >> confdefs.h <<EOF
2726 #define $ac_tr_func 1
2727 EOF
2728  
2729 else
2730   echo "$ac_t""no" 1>&6
2731 fi
2732 done
2733
2734
2735 if test "$ac_cv_func_uname" = 'yes'
2736 then
2737         echo $ac_n "checking for field domainname in struct utsname""... $ac_c" 1>&6
2738 echo "configure:2739: checking for field domainname in struct utsname" >&5
2739         if test "$cross_compiling" = yes; then
2740     { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
2741 else
2742   cat > conftest.$ac_ext <<EOF
2743 #line 2744 "configure"
2744 #include "confdefs.h"
2745
2746         #include <sys/utsname.h>
2747         
2748         main(int argc, char **argv)
2749         {
2750                 struct utsname uts;
2751                 uts.domainname[0] = '\0';
2752         }
2753         
2754 EOF
2755 if { (eval echo configure:2756: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
2756 then
2757   echo "$ac_t""yes" 1>&6
2758         cat >> confdefs.h <<\EOF
2759 #define HAVE_STRUCT_UTSNAME_DOMAINNAME 1
2760 EOF
2761
2762 else
2763   echo "configure: failed program was:" >&5
2764   cat conftest.$ac_ext >&5
2765   rm -fr conftest*
2766   echo "$ac_t""no" 1>&6
2767         
2768 fi
2769 rm -fr conftest*
2770 fi
2771
2772 fi
2773
2774 echo $ac_n "checking for /dev/urandom""... $ac_c" 1>&6
2775 echo "configure:2776: checking for /dev/urandom" >&5
2776 if test -c /dev/urandom
2777 then
2778         echo "$ac_t""yes" 1>&6
2779         cat >> confdefs.h <<\EOF
2780 #define HAVE_DEV_URANDOM 1
2781 EOF
2782
2783 else
2784         echo "$ac_t""no" 1>&6
2785 fi
2786
2787 echo $ac_n "using the following PATH setting for exec'ed programs... $ac_c" 1>&6
2788 # Check whether --with-secure-path or --without-secure-path was given.
2789 if test "${with_secure_path+set}" = set; then
2790   withval="$with_secure_path"
2791   
2792         echo "$ac_t""$withval" 1>&6
2793         RC_SECURE_PATH=$withval
2794
2795 else
2796   
2797         echo "$ac_t""/bin:/usr/bin:/usr/local/bin" 1>&6
2798         RC_SECURE_PATH=/bin:/usr/bin:/usr/local/bin
2799
2800
2801 fi
2802
2803
2804 echo $ac_n "checking which syslog facility to use""... $ac_c" 1>&6
2805 echo "configure:2806: checking which syslog facility to use" >&5
2806 # Check whether --with-facility or --without-facility was given.
2807 if test "${with_facility+set}" = set; then
2808   withval="$with_facility"
2809   
2810         echo "$ac_t""$withval" 1>&6
2811         RC_LOG_FACILITY=$withval
2812
2813 else
2814   
2815         echo "$ac_t""LOG_DAEMON" 1>&6
2816         RC_LOG_FACILITY=LOG_DAEMON
2817
2818
2819 fi
2820
2821
2822 echo $ac_n "checking whether to include Livingston's RADIUS server 1.16 kludge""... $ac_c" 1>&6
2823 echo "configure:2824: checking whether to include Livingston's RADIUS server 1.16 kludge" >&5
2824 # Check whether --enable-radius-116 or --disable-radius-116 was given.
2825 if test "${enable_radius_116+set}" = set; then
2826   enableval="$enable_radius_116"
2827   
2828         echo "$ac_t""yes" 1>&6
2829         cat >> confdefs.h <<\EOF
2830 #define RADIUS_116 1
2831 EOF
2832
2833         echo "configure: warning: !! This is a bug in Livingston's RADIUS server v1.16. There" 1>&2
2834         echo "configure: warning: !! is a patch included with radiusclient which fixes this" 1>&2
2835         echo "configure: warning: !! problem. See patches/radiusd-1.16.accounting.diff. With" 1>&2
2836         echo "configure: warning: !! the patched RADIUS server you no longer need to activate" 1>&2
2837         echo "configure: warning: !! this hack." 1>&2
2838
2839 else
2840   
2841         echo "$ac_t""no" 1>&6
2842
2843
2844 fi
2845
2846
2847 echo $ac_n "checking whether to add service type hints derived from username prefix""... $ac_c" 1>&6
2848 echo "configure:2849: checking whether to add service type hints derived from username prefix" >&5
2849 # Check whether --enable-scp or --disable-scp was given.
2850 if test "${enable_scp+set}" = set; then
2851   enableval="$enable_scp"
2852   
2853         echo "$ac_t""yes" 1>&6
2854         cat >> confdefs.h <<\EOF
2855 #define SCP 1
2856 EOF
2857
2858
2859 else
2860   
2861         echo "$ac_t""no" 1>&6
2862
2863
2864 fi
2865
2866
2867
2868
2869
2870
2871
2872
2873 LTLIBOBJS=`echo "$LIBOBJS" | sed 's/\.o/.lo/g'`
2874
2875 trap '' 1 2 15
2876 cat > confcache <<\EOF
2877 # This file is a shell script that caches the results of configure
2878 # tests run on this system so they can be shared between configure
2879 # scripts and configure runs.  It is not useful on other systems.
2880 # If it contains results you don't want to keep, you may remove or edit it.
2881 #
2882 # By default, configure uses ./config.cache as the cache file,
2883 # creating it if it does not exist already.  You can give configure
2884 # the --cache-file=FILE option to use a different cache file; that is
2885 # what configure does when it calls configure scripts in
2886 # subdirectories, so they share the cache.
2887 # Giving --cache-file=/dev/null disables caching, for debugging configure.
2888 # config.status only pays attention to the cache file if you give it the
2889 # --recheck option to rerun configure.
2890 #
2891 EOF
2892 # The following way of writing the cache mishandles newlines in values,
2893 # but we know of no workaround that is simple, portable, and efficient.
2894 # So, don't put newlines in cache variables' values.
2895 # Ultrix sh set writes to stderr and can't be redirected directly,
2896 # and sets the high bit in the cache file unless we assign to the vars.
2897 (set) 2>&1 |
2898   case `(ac_space=' '; set) 2>&1` in
2899   *ac_space=\ *)
2900     # `set' does not quote correctly, so add quotes (double-quote substitution
2901     # turns \\\\ into \\, and sed turns \\ into \).
2902     sed -n \
2903       -e "s/'/'\\\\''/g" \
2904       -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2905     ;;
2906   *)
2907     # `set' quotes correctly as required by POSIX, so do not add quotes.
2908     sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2909     ;;
2910   esac >> confcache
2911 if cmp -s $cache_file confcache; then
2912   :
2913 else
2914   if test -w $cache_file; then
2915     echo "updating cache $cache_file"
2916     cat confcache > $cache_file
2917   else
2918     echo "not updating unwritable cache $cache_file"
2919   fi
2920 fi
2921 rm -f confcache
2922
2923 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
2924
2925 test "x$prefix" = xNONE && prefix=$ac_default_prefix
2926 # Let make expand exec_prefix.
2927 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
2928
2929 # Any assignment to VPATH causes Sun make to only execute
2930 # the first set of double-colon rules, so remove it if not needed.
2931 # If there is a colon in the path, we need to keep it.
2932 if test "x$srcdir" = x.; then
2933   ac_vpsub='/^[         ]*VPATH[        ]*=[^:]*$/d'
2934 fi
2935
2936 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
2937
2938 DEFS=-DHAVE_CONFIG_H
2939
2940 # Without the "./", some shells look in PATH for config.status.
2941 : ${CONFIG_STATUS=./config.status}
2942
2943 echo creating $CONFIG_STATUS
2944 rm -f $CONFIG_STATUS
2945 cat > $CONFIG_STATUS <<EOF
2946 #! /bin/sh
2947 # Generated automatically by configure.
2948 # Run this file to recreate the current configuration.
2949 # This directory was configured as follows,
2950 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
2951 #
2952 # $0 $ac_configure_args
2953 #
2954 # Compiler output produced by configure, useful for debugging
2955 # configure, is in ./config.log if it exists.
2956
2957 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
2958 for ac_option
2959 do
2960   case "\$ac_option" in
2961   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
2962     echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
2963     exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
2964   -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
2965     echo "$CONFIG_STATUS generated by autoconf version 2.12"
2966     exit 0 ;;
2967   -help | --help | --hel | --he | --h)
2968     echo "\$ac_cs_usage"; exit 0 ;;
2969   *) echo "\$ac_cs_usage"; exit 1 ;;
2970   esac
2971 done
2972
2973 ac_given_srcdir=$srcdir
2974 ac_given_INSTALL="$INSTALL"
2975
2976 trap 'rm -fr `echo "
2977 Makefile
2978 include/Makefile lib/Makefile src/Makefile man/Makefile etc/Makefile
2979 doc/Makefile patches/Makefile
2980 login.radius/Makefile login.radius/migs/Makefile
2981  config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
2982 EOF
2983 cat >> $CONFIG_STATUS <<EOF
2984
2985 # Protect against being on the right side of a sed subst in config.status.
2986 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
2987  s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
2988 $ac_vpsub
2989 $extrasub
2990 s%@CFLAGS@%$CFLAGS%g
2991 s%@CPPFLAGS@%$CPPFLAGS%g
2992 s%@CXXFLAGS@%$CXXFLAGS%g
2993 s%@DEFS@%$DEFS%g
2994 s%@LDFLAGS@%$LDFLAGS%g
2995 s%@LIBS@%$LIBS%g
2996 s%@exec_prefix@%$exec_prefix%g
2997 s%@prefix@%$prefix%g
2998 s%@program_transform_name@%$program_transform_name%g
2999 s%@bindir@%$bindir%g
3000 s%@sbindir@%$sbindir%g
3001 s%@libexecdir@%$libexecdir%g
3002 s%@datadir@%$datadir%g
3003 s%@sysconfdir@%$sysconfdir%g
3004 s%@sharedstatedir@%$sharedstatedir%g
3005 s%@localstatedir@%$localstatedir%g
3006 s%@libdir@%$libdir%g
3007 s%@includedir@%$includedir%g
3008 s%@oldincludedir@%$oldincludedir%g
3009 s%@infodir@%$infodir%g
3010 s%@mandir@%$mandir%g
3011 s%@host@%$host%g
3012 s%@host_alias@%$host_alias%g
3013 s%@host_cpu@%$host_cpu%g
3014 s%@host_vendor@%$host_vendor%g
3015 s%@host_os@%$host_os%g
3016 s%@target@%$target%g
3017 s%@target_alias@%$target_alias%g
3018 s%@target_cpu@%$target_cpu%g
3019 s%@target_vendor@%$target_vendor%g
3020 s%@target_os@%$target_os%g
3021 s%@build@%$build%g
3022 s%@build_alias@%$build_alias%g
3023 s%@build_cpu@%$build_cpu%g
3024 s%@build_vendor@%$build_vendor%g
3025 s%@build_os@%$build_os%g
3026 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
3027 s%@INSTALL_DATA@%$INSTALL_DATA%g
3028 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
3029 s%@PACKAGE@%$PACKAGE%g
3030 s%@VERSION@%$VERSION%g
3031 s%@ACLOCAL@%$ACLOCAL%g
3032 s%@AUTOCONF@%$AUTOCONF%g
3033 s%@AUTOMAKE@%$AUTOMAKE%g
3034 s%@AUTOHEADER@%$AUTOHEADER%g
3035 s%@MAKEINFO@%$MAKEINFO%g
3036 s%@SET_MAKE@%$SET_MAKE%g
3037 s%@LIBVERSION@%$LIBVERSION%g
3038 s%@pkgsysconfdir@%$pkgsysconfdir%g
3039 s%@CC@%$CC%g
3040 s%@AR@%$AR%g
3041 s%@RANLIB@%$RANLIB%g
3042 s%@LD@%$LD%g
3043 s%@NM@%$NM%g
3044 s%@LN_S@%$LN_S%g
3045 s%@LIBTOOL@%$LIBTOOL%g
3046 s%@CPP@%$CPP%g
3047 s%@LIBOBJS@%$LIBOBJS%g
3048 s%@RC_SECURE_PATH@%$RC_SECURE_PATH%g
3049 s%@RC_LOG_FACILITY@%$RC_LOG_FACILITY%g
3050 s%@LTLIBOBJS@%$LTLIBOBJS%g
3051
3052 CEOF
3053 EOF
3054
3055 cat >> $CONFIG_STATUS <<\EOF
3056
3057 # Split the substitutions into bite-sized pieces for seds with
3058 # small command number limits, like on Digital OSF/1 and HP-UX.
3059 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
3060 ac_file=1 # Number of current file.
3061 ac_beg=1 # First line for current file.
3062 ac_end=$ac_max_sed_cmds # Line after last line for current file.
3063 ac_more_lines=:
3064 ac_sed_cmds=""
3065 while $ac_more_lines; do
3066   if test $ac_beg -gt 1; then
3067     sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
3068   else
3069     sed "${ac_end}q" conftest.subs > conftest.s$ac_file
3070   fi
3071   if test ! -s conftest.s$ac_file; then
3072     ac_more_lines=false
3073     rm -f conftest.s$ac_file
3074   else
3075     if test -z "$ac_sed_cmds"; then
3076       ac_sed_cmds="sed -f conftest.s$ac_file"
3077     else
3078       ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
3079     fi
3080     ac_file=`expr $ac_file + 1`
3081     ac_beg=$ac_end
3082     ac_end=`expr $ac_end + $ac_max_sed_cmds`
3083   fi
3084 done
3085 if test -z "$ac_sed_cmds"; then
3086   ac_sed_cmds=cat
3087 fi
3088 EOF
3089
3090 cat >> $CONFIG_STATUS <<EOF
3091
3092 CONFIG_FILES=\${CONFIG_FILES-"Makefile
3093 include/Makefile lib/Makefile src/Makefile man/Makefile etc/Makefile
3094 doc/Makefile patches/Makefile
3095 login.radius/Makefile login.radius/migs/Makefile
3096 "}
3097 EOF
3098 cat >> $CONFIG_STATUS <<\EOF
3099 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
3100   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3101   case "$ac_file" in
3102   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
3103        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
3104   *) ac_file_in="${ac_file}.in" ;;
3105   esac
3106
3107   # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
3108
3109   # Remove last slash and all that follows it.  Not all systems have dirname.
3110   ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
3111   if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3112     # The file is in a subdirectory.
3113     test ! -d "$ac_dir" && mkdir "$ac_dir"
3114     ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
3115     # A "../" for each directory in $ac_dir_suffix.
3116     ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
3117   else
3118     ac_dir_suffix= ac_dots=
3119   fi
3120
3121   case "$ac_given_srcdir" in
3122   .)  srcdir=.
3123       if test -z "$ac_dots"; then top_srcdir=.
3124       else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
3125   /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
3126   *) # Relative path.
3127     srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
3128     top_srcdir="$ac_dots$ac_given_srcdir" ;;
3129   esac
3130
3131   case "$ac_given_INSTALL" in
3132   [/$]*) INSTALL="$ac_given_INSTALL" ;;
3133   *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
3134   esac
3135
3136   echo creating "$ac_file"
3137   rm -f "$ac_file"
3138   configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
3139   case "$ac_file" in
3140   *Makefile*) ac_comsub="1i\\
3141 # $configure_input" ;;
3142   *) ac_comsub= ;;
3143   esac
3144
3145   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3146   sed -e "$ac_comsub
3147 s%@configure_input@%$configure_input%g
3148 s%@srcdir@%$srcdir%g
3149 s%@top_srcdir@%$top_srcdir%g
3150 s%@INSTALL@%$INSTALL%g
3151 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
3152 fi; done
3153 rm -f conftest.s*
3154
3155 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
3156 # NAME is the cpp macro being defined and VALUE is the value it is being given.
3157 #
3158 # ac_d sets the value in "#define NAME VALUE" lines.
3159 ac_dA='s%^\([   ]*\)#\([        ]*define[       ][      ]*\)'
3160 ac_dB='\([      ][      ]*\)[^  ]*%\1#\2'
3161 ac_dC='\3'
3162 ac_dD='%g'
3163 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
3164 ac_uA='s%^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
3165 ac_uB='\([      ]\)%\1#\2define\3'
3166 ac_uC=' '
3167 ac_uD='\4%g'
3168 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
3169 ac_eA='s%^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
3170 ac_eB='$%\1#\2define\3'
3171 ac_eC=' '
3172 ac_eD='%g'
3173
3174 if test "${CONFIG_HEADERS+set}" != set; then
3175 EOF
3176 cat >> $CONFIG_STATUS <<EOF
3177   CONFIG_HEADERS="config.h"
3178 EOF
3179 cat >> $CONFIG_STATUS <<\EOF
3180 fi
3181 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
3182   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3183   case "$ac_file" in
3184   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
3185        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
3186   *) ac_file_in="${ac_file}.in" ;;
3187   esac
3188
3189   echo creating $ac_file
3190
3191   rm -f conftest.frag conftest.in conftest.out
3192   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3193   cat $ac_file_inputs > conftest.in
3194
3195 EOF
3196
3197 # Transform confdefs.h into a sed script conftest.vals that substitutes
3198 # the proper values into config.h.in to produce config.h.  And first:
3199 # Protect against being on the right side of a sed subst in config.status.
3200 # Protect against being in an unquoted here document in config.status.
3201 rm -f conftest.vals
3202 cat > conftest.hdr <<\EOF
3203 s/[\\&%]/\\&/g
3204 s%[\\$`]%\\&%g
3205 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
3206 s%ac_d%ac_u%gp
3207 s%ac_u%ac_e%gp
3208 EOF
3209 sed -n -f conftest.hdr confdefs.h > conftest.vals
3210 rm -f conftest.hdr
3211
3212 # This sed command replaces #undef with comments.  This is necessary, for
3213 # example, in the case of _POSIX_SOURCE, which is predefined and required
3214 # on some systems where configure will not decide to define it.
3215 cat >> conftest.vals <<\EOF
3216 s%^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
3217 EOF
3218
3219 # Break up conftest.vals because some shells have a limit on
3220 # the size of here documents, and old seds have small limits too.
3221
3222 rm -f conftest.tail
3223 while :
3224 do
3225   ac_lines=`grep -c . conftest.vals`
3226   # grep -c gives empty output for an empty file on some AIX systems.
3227   if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
3228   # Write a limited-size here document to conftest.frag.
3229   echo '  cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
3230   sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
3231   echo 'CEOF
3232   sed -f conftest.frag conftest.in > conftest.out
3233   rm -f conftest.in
3234   mv conftest.out conftest.in
3235 ' >> $CONFIG_STATUS
3236   sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
3237   rm -f conftest.vals
3238   mv conftest.tail conftest.vals
3239 done
3240 rm -f conftest.vals
3241
3242 cat >> $CONFIG_STATUS <<\EOF
3243   rm -f conftest.frag conftest.h
3244   echo "/* $ac_file.  Generated automatically by configure.  */" > conftest.h
3245   cat conftest.in >> conftest.h
3246   rm -f conftest.in
3247   if cmp -s $ac_file conftest.h 2>/dev/null; then
3248     echo "$ac_file is unchanged"
3249     rm -f conftest.h
3250   else
3251     # Remove last slash and all that follows it.  Not all systems have dirname.
3252       ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
3253       if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3254       # The file is in a subdirectory.
3255       test ! -d "$ac_dir" && mkdir "$ac_dir"
3256     fi
3257     rm -f $ac_file
3258     mv conftest.h $ac_file
3259   fi
3260 fi; done
3261
3262 EOF
3263 cat >> $CONFIG_STATUS <<EOF
3264
3265
3266 EOF
3267 cat >> $CONFIG_STATUS <<\EOF
3268 test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
3269 test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
3270 exit 0
3271 EOF
3272 chmod +x $CONFIG_STATUS
3273 rm -fr confdefs* $ac_clean_files
3274 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
3275