]> granicus.if.org Git - linux-pam/blob - configure
Relevant BUGIDs: 491466
[linux-pam] / configure
1 #! /bin/sh
2
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.13 
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
6 #
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9
10 # Defaults:
11 ac_help=
12 ac_default_prefix=/usr/local
13 # Any additions from configure.in:
14 ac_default_prefix=
15 ac_help="$ac_help
16   --enable-debug           specify you are building with debugging on"
17 ac_help="$ac_help
18   --enable-memory-debug    specify you want every malloc etc. call tracked"
19 ac_help="$ac_help
20   --enable-libdebug        specify you are building debugging libraries"
21 ac_help="$ac_help
22   --enable-fakeroot=<path to packaging directory>"
23 ac_help="$ac_help
24   --enable-securedir=<path to location of PAMs> [default \$libdir/security]"
25 ac_help="$ac_help
26   --enable-sconfigdir=<path to module conf files> [default \$sysconfdir/security]"
27 ac_help="$ac_help
28   --enable-suplementedir=<path to module helper binaries> [default \$sbindir]"
29 ac_help="$ac_help
30   --enable-includedir=<path to include location> - where to put <security>"
31 ac_help="$ac_help
32   --enable-docdir=<path to store documentation in - /usr/share/doc/pam>"
33 ac_help="$ac_help
34   --enable-mandir=<path to store manuals in - /usr/share/man>"
35 ac_help="$ac_help
36   --enable-pamlocking      configure libpam to observe a global authentication lock"
37 ac_help="$ac_help
38   --enable-uglyhack        configure libpam to try to honor old pam_strerror syntax"
39 ac_help="$ac_help
40   --enable-read-both-confs  read both /etc/pam.d and /etc/pam.conf files"
41 ac_help="$ac_help
42   --enable-static-libpam   build a libpam.a library"
43 ac_help="$ac_help
44   --disable-dynamic-libpam do not build a shared libpam library"
45 ac_help="$ac_help
46   --enable-static-modules  do not make the modules dynamically loadable"
47 ac_help="$ac_help
48   --disable-lckpwdf do not use the lckpwdf function"
49 ac_help="$ac_help
50   --with-mailspool         path to mail spool directory
51                            [default _PATH_MAILDIR if defined in paths.h, otherwise /var/spool/mail]"
52
53 # Initialize some variables set by options.
54 # The variables have the same names as the options, with
55 # dashes changed to underlines.
56 build=NONE
57 cache_file=./config.cache
58 exec_prefix=NONE
59 host=NONE
60 no_create=
61 nonopt=NONE
62 no_recursion=
63 prefix=NONE
64 program_prefix=NONE
65 program_suffix=NONE
66 program_transform_name=s,x,x,
67 silent=
68 site=
69 srcdir=
70 target=NONE
71 verbose=
72 x_includes=NONE
73 x_libraries=NONE
74 bindir='${exec_prefix}/bin'
75 sbindir='${exec_prefix}/sbin'
76 libexecdir='${exec_prefix}/libexec'
77 datadir='${prefix}/share'
78 sysconfdir='${prefix}/etc'
79 sharedstatedir='${prefix}/com'
80 localstatedir='${prefix}/var'
81 libdir='${exec_prefix}/lib'
82 includedir='${prefix}/include'
83 oldincludedir='/usr/include'
84 infodir='${prefix}/info'
85 mandir='${prefix}/man'
86
87 # Initialize some other variables.
88 subdirs=
89 MFLAGS= MAKEFLAGS=
90 SHELL=${CONFIG_SHELL-/bin/sh}
91 # Maximum number of lines to put in a shell here document.
92 ac_max_here_lines=12
93
94 ac_prev=
95 for ac_option
96 do
97
98   # If the previous option needs an argument, assign it.
99   if test -n "$ac_prev"; then
100     eval "$ac_prev=\$ac_option"
101     ac_prev=
102     continue
103   fi
104
105   case "$ac_option" in
106   -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
107   *) ac_optarg= ;;
108   esac
109
110   # Accept the important Cygnus configure options, so we can diagnose typos.
111
112   case "$ac_option" in
113
114   -bindir | --bindir | --bindi | --bind | --bin | --bi)
115     ac_prev=bindir ;;
116   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
117     bindir="$ac_optarg" ;;
118
119   -build | --build | --buil | --bui | --bu)
120     ac_prev=build ;;
121   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
122     build="$ac_optarg" ;;
123
124   -cache-file | --cache-file | --cache-fil | --cache-fi \
125   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
126     ac_prev=cache_file ;;
127   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
128   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
129     cache_file="$ac_optarg" ;;
130
131   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
132     ac_prev=datadir ;;
133   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
134   | --da=*)
135     datadir="$ac_optarg" ;;
136
137   -disable-* | --disable-*)
138     ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
139     # Reject names that are not valid shell variable names.
140     if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
141       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
142     fi
143     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
144     eval "enable_${ac_feature}=no" ;;
145
146   -enable-* | --enable-*)
147     ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
148     # Reject names that are not valid shell variable names.
149     if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
150       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
151     fi
152     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
153     case "$ac_option" in
154       *=*) ;;
155       *) ac_optarg=yes ;;
156     esac
157     eval "enable_${ac_feature}='$ac_optarg'" ;;
158
159   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
160   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
161   | --exec | --exe | --ex)
162     ac_prev=exec_prefix ;;
163   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
164   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
165   | --exec=* | --exe=* | --ex=*)
166     exec_prefix="$ac_optarg" ;;
167
168   -gas | --gas | --ga | --g)
169     # Obsolete; use --with-gas.
170     with_gas=yes ;;
171
172   -help | --help | --hel | --he)
173     # Omit some internal or obsolete options to make the list less imposing.
174     # This message is too long to be a string in the A/UX 3.1 sh.
175     cat << EOF
176 Usage: configure [options] [host]
177 Options: [defaults in brackets after descriptions]
178 Configuration:
179   --cache-file=FILE       cache test results in FILE
180   --help                  print this message
181   --no-create             do not create output files
182   --quiet, --silent       do not print \`checking...' messages
183   --version               print the version of autoconf that created configure
184 Directory and file names:
185   --prefix=PREFIX         install architecture-independent files in PREFIX
186                           [$ac_default_prefix]
187   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
188                           [same as prefix]
189   --bindir=DIR            user executables in DIR [EPREFIX/bin]
190   --sbindir=DIR           system admin executables in DIR [EPREFIX/sbin]
191   --libexecdir=DIR        program executables in DIR [EPREFIX/libexec]
192   --datadir=DIR           read-only architecture-independent data in DIR
193                           [PREFIX/share]
194   --sysconfdir=DIR        read-only single-machine data in DIR [PREFIX/etc]
195   --sharedstatedir=DIR    modifiable architecture-independent data in DIR
196                           [PREFIX/com]
197   --localstatedir=DIR     modifiable single-machine data in DIR [PREFIX/var]
198   --libdir=DIR            object code libraries in DIR [EPREFIX/lib]
199   --includedir=DIR        C header files in DIR [PREFIX/include]
200   --oldincludedir=DIR     C header files for non-gcc in DIR [/usr/include]
201   --infodir=DIR           info documentation in DIR [PREFIX/info]
202   --mandir=DIR            man documentation in DIR [PREFIX/man]
203   --srcdir=DIR            find the sources in DIR [configure dir or ..]
204   --program-prefix=PREFIX prepend PREFIX to installed program names
205   --program-suffix=SUFFIX append SUFFIX to installed program names
206   --program-transform-name=PROGRAM
207                           run sed PROGRAM on installed program names
208 EOF
209     cat << EOF
210 Host type:
211   --build=BUILD           configure for building on BUILD [BUILD=HOST]
212   --host=HOST             configure for HOST [guessed]
213   --target=TARGET         configure for TARGET [TARGET=HOST]
214 Features and packages:
215   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
216   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
217   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
218   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
219   --x-includes=DIR        X include files are in DIR
220   --x-libraries=DIR       X library files are in DIR
221 EOF
222     if test -n "$ac_help"; then
223       echo "--enable and --with options recognized:$ac_help"
224     fi
225     exit 0 ;;
226
227   -host | --host | --hos | --ho)
228     ac_prev=host ;;
229   -host=* | --host=* | --hos=* | --ho=*)
230     host="$ac_optarg" ;;
231
232   -includedir | --includedir | --includedi | --included | --include \
233   | --includ | --inclu | --incl | --inc)
234     ac_prev=includedir ;;
235   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
236   | --includ=* | --inclu=* | --incl=* | --inc=*)
237     includedir="$ac_optarg" ;;
238
239   -infodir | --infodir | --infodi | --infod | --info | --inf)
240     ac_prev=infodir ;;
241   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
242     infodir="$ac_optarg" ;;
243
244   -libdir | --libdir | --libdi | --libd)
245     ac_prev=libdir ;;
246   -libdir=* | --libdir=* | --libdi=* | --libd=*)
247     libdir="$ac_optarg" ;;
248
249   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
250   | --libexe | --libex | --libe)
251     ac_prev=libexecdir ;;
252   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
253   | --libexe=* | --libex=* | --libe=*)
254     libexecdir="$ac_optarg" ;;
255
256   -localstatedir | --localstatedir | --localstatedi | --localstated \
257   | --localstate | --localstat | --localsta | --localst \
258   | --locals | --local | --loca | --loc | --lo)
259     ac_prev=localstatedir ;;
260   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
261   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
262   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
263     localstatedir="$ac_optarg" ;;
264
265   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
266     ac_prev=mandir ;;
267   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
268     mandir="$ac_optarg" ;;
269
270   -nfp | --nfp | --nf)
271     # Obsolete; use --without-fp.
272     with_fp=no ;;
273
274   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
275   | --no-cr | --no-c)
276     no_create=yes ;;
277
278   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
279   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
280     no_recursion=yes ;;
281
282   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
283   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
284   | --oldin | --oldi | --old | --ol | --o)
285     ac_prev=oldincludedir ;;
286   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
287   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
288   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
289     oldincludedir="$ac_optarg" ;;
290
291   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
292     ac_prev=prefix ;;
293   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
294     prefix="$ac_optarg" ;;
295
296   -program-prefix | --program-prefix | --program-prefi | --program-pref \
297   | --program-pre | --program-pr | --program-p)
298     ac_prev=program_prefix ;;
299   -program-prefix=* | --program-prefix=* | --program-prefi=* \
300   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
301     program_prefix="$ac_optarg" ;;
302
303   -program-suffix | --program-suffix | --program-suffi | --program-suff \
304   | --program-suf | --program-su | --program-s)
305     ac_prev=program_suffix ;;
306   -program-suffix=* | --program-suffix=* | --program-suffi=* \
307   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
308     program_suffix="$ac_optarg" ;;
309
310   -program-transform-name | --program-transform-name \
311   | --program-transform-nam | --program-transform-na \
312   | --program-transform-n | --program-transform- \
313   | --program-transform | --program-transfor \
314   | --program-transfo | --program-transf \
315   | --program-trans | --program-tran \
316   | --progr-tra | --program-tr | --program-t)
317     ac_prev=program_transform_name ;;
318   -program-transform-name=* | --program-transform-name=* \
319   | --program-transform-nam=* | --program-transform-na=* \
320   | --program-transform-n=* | --program-transform-=* \
321   | --program-transform=* | --program-transfor=* \
322   | --program-transfo=* | --program-transf=* \
323   | --program-trans=* | --program-tran=* \
324   | --progr-tra=* | --program-tr=* | --program-t=*)
325     program_transform_name="$ac_optarg" ;;
326
327   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
328   | -silent | --silent | --silen | --sile | --sil)
329     silent=yes ;;
330
331   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
332     ac_prev=sbindir ;;
333   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
334   | --sbi=* | --sb=*)
335     sbindir="$ac_optarg" ;;
336
337   -sharedstatedir | --sharedstatedir | --sharedstatedi \
338   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
339   | --sharedst | --shareds | --shared | --share | --shar \
340   | --sha | --sh)
341     ac_prev=sharedstatedir ;;
342   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
343   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
344   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
345   | --sha=* | --sh=*)
346     sharedstatedir="$ac_optarg" ;;
347
348   -site | --site | --sit)
349     ac_prev=site ;;
350   -site=* | --site=* | --sit=*)
351     site="$ac_optarg" ;;
352
353   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
354     ac_prev=srcdir ;;
355   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
356     srcdir="$ac_optarg" ;;
357
358   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
359   | --syscon | --sysco | --sysc | --sys | --sy)
360     ac_prev=sysconfdir ;;
361   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
362   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
363     sysconfdir="$ac_optarg" ;;
364
365   -target | --target | --targe | --targ | --tar | --ta | --t)
366     ac_prev=target ;;
367   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
368     target="$ac_optarg" ;;
369
370   -v | -verbose | --verbose | --verbos | --verbo | --verb)
371     verbose=yes ;;
372
373   -version | --version | --versio | --versi | --vers)
374     echo "configure generated by autoconf version 2.13"
375     exit 0 ;;
376
377   -with-* | --with-*)
378     ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
379     # Reject names that are not valid shell variable names.
380     if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
381       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
382     fi
383     ac_package=`echo $ac_package| sed 's/-/_/g'`
384     case "$ac_option" in
385       *=*) ;;
386       *) ac_optarg=yes ;;
387     esac
388     eval "with_${ac_package}='$ac_optarg'" ;;
389
390   -without-* | --without-*)
391     ac_package=`echo $ac_option|sed -e 's/-*without-//'`
392     # Reject names that are not valid shell variable names.
393     if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
394       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
395     fi
396     ac_package=`echo $ac_package| sed 's/-/_/g'`
397     eval "with_${ac_package}=no" ;;
398
399   --x)
400     # Obsolete; use --with-x.
401     with_x=yes ;;
402
403   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
404   | --x-incl | --x-inc | --x-in | --x-i)
405     ac_prev=x_includes ;;
406   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
407   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
408     x_includes="$ac_optarg" ;;
409
410   -x-libraries | --x-libraries | --x-librarie | --x-librari \
411   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
412     ac_prev=x_libraries ;;
413   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
414   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
415     x_libraries="$ac_optarg" ;;
416
417   -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
418     ;;
419
420   *)
421     if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
422       echo "configure: warning: $ac_option: invalid host type" 1>&2
423     fi
424     if test "x$nonopt" != xNONE; then
425       { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
426     fi
427     nonopt="$ac_option"
428     ;;
429
430   esac
431 done
432
433 if test -n "$ac_prev"; then
434   { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
435 fi
436
437 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
438
439 # File descriptor usage:
440 # 0 standard input
441 # 1 file creation
442 # 2 errors and warnings
443 # 3 some systems may open it to /dev/tty
444 # 4 used on the Kubota Titan
445 # 6 checking for... messages and results
446 # 5 compiler messages saved in config.log
447 if test "$silent" = yes; then
448   exec 6>/dev/null
449 else
450   exec 6>&1
451 fi
452 exec 5>./config.log
453
454 echo "\
455 This file contains any messages produced by compilers while
456 running configure, to aid debugging if configure makes a mistake.
457 " 1>&5
458
459 # Strip out --no-create and --no-recursion so they do not pile up.
460 # Also quote any args containing shell metacharacters.
461 ac_configure_args=
462 for ac_arg
463 do
464   case "$ac_arg" in
465   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
466   | --no-cr | --no-c) ;;
467   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
468   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
469   *" "*|*"      "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
470   ac_configure_args="$ac_configure_args '$ac_arg'" ;;
471   *) ac_configure_args="$ac_configure_args $ac_arg" ;;
472   esac
473 done
474
475 # NLS nuisances.
476 # Only set these to C if already set.  These must not be set unconditionally
477 # because not all systems understand e.g. LANG=C (notably SCO).
478 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
479 # Non-C LC_CTYPE values break the ctype check.
480 if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi
481 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
482 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
483 if test "${LC_CTYPE+set}"    = set; then LC_CTYPE=C;    export LC_CTYPE;    fi
484
485 # confdefs.h avoids OS command line length limits that DEFS can exceed.
486 rm -rf conftest* confdefs.h
487 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
488 echo > confdefs.h
489
490 # A filename unique to this package, relative to the directory that
491 # configure is in, which we can look for to find out if srcdir is correct.
492 ac_unique_file=conf/pam_conv1/pam_conv.y
493
494 # Find the source files, if location was not specified.
495 if test -z "$srcdir"; then
496   ac_srcdir_defaulted=yes
497   # Try the directory containing this script, then its parent.
498   ac_prog=$0
499   ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
500   test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
501   srcdir=$ac_confdir
502   if test ! -r $srcdir/$ac_unique_file; then
503     srcdir=..
504   fi
505 else
506   ac_srcdir_defaulted=no
507 fi
508 if test ! -r $srcdir/$ac_unique_file; then
509   if test "$ac_srcdir_defaulted" = yes; then
510     { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
511   else
512     { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
513   fi
514 fi
515 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
516
517 # Prefer explicitly selected file to automatically selected ones.
518 if test -z "$CONFIG_SITE"; then
519   if test "x$prefix" != xNONE; then
520     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
521   else
522     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
523   fi
524 fi
525 for ac_site_file in $CONFIG_SITE; do
526   if test -r "$ac_site_file"; then
527     echo "loading site script $ac_site_file"
528     . "$ac_site_file"
529   fi
530 done
531
532 if test -r "$cache_file"; then
533   echo "loading cache $cache_file"
534   . $cache_file
535 else
536   echo "creating cache $cache_file"
537   > $cache_file
538 fi
539
540 ac_ext=c
541 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
542 ac_cpp='$CPP $CPPFLAGS'
543 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
544 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
545 cross_compiling=$ac_cv_prog_cc_cross
546
547 ac_exeext=
548 ac_objext=o
549 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
550   # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
551   if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
552     ac_n= ac_c='
553 ' ac_t='        '
554   else
555     ac_n=-n ac_c= ac_t=
556   fi
557 else
558   ac_n= ac_c='\c' ac_t=
559 fi
560
561
562
563
564
565
566 LIBPAM_VERSION_MAJOR=0
567 LIBPAM_VERSION_MINOR=76
568
569
570
571 cat >> confdefs.h <<\EOF
572 #define LIBPAM_VERSION_MAJOR 1
573 EOF
574
575 cat >> confdefs.h <<\EOF
576 #define LIBPAM_VERSION_MINOR 1
577 EOF
578
579
580
581
582
583 LOCALSRCDIR=`/bin/pwd`         ; 
584 OS=`uname|sed -e 'y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/'`
585
586
587
588 CONF_CFLAGS=                    ; 
589 MKDIR="mkdir -p"                ; 
590
591 SHLIBMODE=755                   ; 
592
593 USESONAME=yes                   ; 
594 SOSWITCH=-soname                ; 
595 NEEDSONAME=no                   ; 
596 LDCONFIG=/sbin/ldconfig         ; 
597
598 if test "$OS" = "aix"; then
599   INSTALL=/usr/ucb/install -c
600 else
601   INSTALL=/usr/bin/install
602 fi
603
604
605 # Extract the first word of "gcc", so it can be a program name with args.
606 set dummy gcc; ac_word=$2
607 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
608 echo "configure:609: checking for $ac_word" >&5
609 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
610   echo $ac_n "(cached) $ac_c" 1>&6
611 else
612   if test -n "$CC"; then
613   ac_cv_prog_CC="$CC" # Let the user override the test.
614 else
615   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
616   ac_dummy="$PATH"
617   for ac_dir in $ac_dummy; do
618     test -z "$ac_dir" && ac_dir=.
619     if test -f $ac_dir/$ac_word; then
620       ac_cv_prog_CC="gcc"
621       break
622     fi
623   done
624   IFS="$ac_save_ifs"
625 fi
626 fi
627 CC="$ac_cv_prog_CC"
628 if test -n "$CC"; then
629   echo "$ac_t""$CC" 1>&6
630 else
631   echo "$ac_t""no" 1>&6
632 fi
633
634 if test -z "$CC"; then
635   # Extract the first word of "cc", so it can be a program name with args.
636 set dummy cc; ac_word=$2
637 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
638 echo "configure:639: checking for $ac_word" >&5
639 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
640   echo $ac_n "(cached) $ac_c" 1>&6
641 else
642   if test -n "$CC"; then
643   ac_cv_prog_CC="$CC" # Let the user override the test.
644 else
645   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
646   ac_prog_rejected=no
647   ac_dummy="$PATH"
648   for ac_dir in $ac_dummy; do
649     test -z "$ac_dir" && ac_dir=.
650     if test -f $ac_dir/$ac_word; then
651       if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
652         ac_prog_rejected=yes
653         continue
654       fi
655       ac_cv_prog_CC="cc"
656       break
657     fi
658   done
659   IFS="$ac_save_ifs"
660 if test $ac_prog_rejected = yes; then
661   # We found a bogon in the path, so make sure we never use it.
662   set dummy $ac_cv_prog_CC
663   shift
664   if test $# -gt 0; then
665     # We chose a different compiler from the bogus one.
666     # However, it has the same basename, so the bogon will be chosen
667     # first if we set CC to just the basename; use the full file name.
668     shift
669     set dummy "$ac_dir/$ac_word" "$@"
670     shift
671     ac_cv_prog_CC="$@"
672   fi
673 fi
674 fi
675 fi
676 CC="$ac_cv_prog_CC"
677 if test -n "$CC"; then
678   echo "$ac_t""$CC" 1>&6
679 else
680   echo "$ac_t""no" 1>&6
681 fi
682
683   if test -z "$CC"; then
684     case "`uname -s`" in
685     *win32* | *WIN32*)
686       # Extract the first word of "cl", so it can be a program name with args.
687 set dummy cl; ac_word=$2
688 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
689 echo "configure:690: checking for $ac_word" >&5
690 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
691   echo $ac_n "(cached) $ac_c" 1>&6
692 else
693   if test -n "$CC"; then
694   ac_cv_prog_CC="$CC" # Let the user override the test.
695 else
696   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
697   ac_dummy="$PATH"
698   for ac_dir in $ac_dummy; do
699     test -z "$ac_dir" && ac_dir=.
700     if test -f $ac_dir/$ac_word; then
701       ac_cv_prog_CC="cl"
702       break
703     fi
704   done
705   IFS="$ac_save_ifs"
706 fi
707 fi
708 CC="$ac_cv_prog_CC"
709 if test -n "$CC"; then
710   echo "$ac_t""$CC" 1>&6
711 else
712   echo "$ac_t""no" 1>&6
713 fi
714  ;;
715     esac
716   fi
717   test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
718 fi
719
720 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
721 echo "configure:722: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
722
723 ac_ext=c
724 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
725 ac_cpp='$CPP $CPPFLAGS'
726 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
727 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
728 cross_compiling=$ac_cv_prog_cc_cross
729
730 cat > conftest.$ac_ext << EOF
731
732 #line 733 "configure"
733 #include "confdefs.h"
734
735 main(){return(0);}
736 EOF
737 if { (eval echo configure:738: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
738   ac_cv_prog_cc_works=yes
739   # If we can't run a trivial program, we are probably using a cross compiler.
740   if (./conftest; exit) 2>/dev/null; then
741     ac_cv_prog_cc_cross=no
742   else
743     ac_cv_prog_cc_cross=yes
744   fi
745 else
746   echo "configure: failed program was:" >&5
747   cat conftest.$ac_ext >&5
748   ac_cv_prog_cc_works=no
749 fi
750 rm -fr conftest*
751 ac_ext=c
752 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
753 ac_cpp='$CPP $CPPFLAGS'
754 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
755 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
756 cross_compiling=$ac_cv_prog_cc_cross
757
758 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
759 if test $ac_cv_prog_cc_works = no; then
760   { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
761 fi
762 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
763 echo "configure:764: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
764 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
765 cross_compiling=$ac_cv_prog_cc_cross
766
767 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
768 echo "configure:769: checking whether we are using GNU C" >&5
769 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
770   echo $ac_n "(cached) $ac_c" 1>&6
771 else
772   cat > conftest.c <<EOF
773 #ifdef __GNUC__
774   yes;
775 #endif
776 EOF
777 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:778: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
778   ac_cv_prog_gcc=yes
779 else
780   ac_cv_prog_gcc=no
781 fi
782 fi
783
784 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
785
786 if test $ac_cv_prog_gcc = yes; then
787   GCC=yes
788 else
789   GCC=
790 fi
791
792 ac_test_CFLAGS="${CFLAGS+set}"
793 ac_save_CFLAGS="$CFLAGS"
794 CFLAGS=
795 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
796 echo "configure:797: checking whether ${CC-cc} accepts -g" >&5
797 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
798   echo $ac_n "(cached) $ac_c" 1>&6
799 else
800   echo 'void f(){}' > conftest.c
801 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
802   ac_cv_prog_cc_g=yes
803 else
804   ac_cv_prog_cc_g=no
805 fi
806 rm -f conftest*
807
808 fi
809
810 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
811 if test "$ac_test_CFLAGS" = set; then
812   CFLAGS="$ac_save_CFLAGS"
813 elif test $ac_cv_prog_cc_g = yes; then
814   if test "$GCC" = yes; then
815     CFLAGS="-g -O2"
816   else
817     CFLAGS="-g"
818   fi
819 else
820   if test "$GCC" = yes; then
821     CFLAGS="-O2"
822   else
823     CFLAGS=
824   fi
825 fi
826
827 for ac_prog in 'bison -y' byacc
828 do
829 # Extract the first word of "$ac_prog", so it can be a program name with args.
830 set dummy $ac_prog; ac_word=$2
831 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
832 echo "configure:833: checking for $ac_word" >&5
833 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
834   echo $ac_n "(cached) $ac_c" 1>&6
835 else
836   if test -n "$YACC"; then
837   ac_cv_prog_YACC="$YACC" # Let the user override the test.
838 else
839   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
840   ac_dummy="$PATH"
841   for ac_dir in $ac_dummy; do
842     test -z "$ac_dir" && ac_dir=.
843     if test -f $ac_dir/$ac_word; then
844       ac_cv_prog_YACC="$ac_prog"
845       break
846     fi
847   done
848   IFS="$ac_save_ifs"
849 fi
850 fi
851 YACC="$ac_cv_prog_YACC"
852 if test -n "$YACC"; then
853   echo "$ac_t""$YACC" 1>&6
854 else
855   echo "$ac_t""no" 1>&6
856 fi
857
858 test -n "$YACC" && break
859 done
860 test -n "$YACC" || YACC="yacc"
861
862 # Extract the first word of "flex", so it can be a program name with args.
863 set dummy flex; ac_word=$2
864 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
865 echo "configure:866: checking for $ac_word" >&5
866 if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
867   echo $ac_n "(cached) $ac_c" 1>&6
868 else
869   if test -n "$LEX"; then
870   ac_cv_prog_LEX="$LEX" # Let the user override the test.
871 else
872   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
873   ac_dummy="$PATH"
874   for ac_dir in $ac_dummy; do
875     test -z "$ac_dir" && ac_dir=.
876     if test -f $ac_dir/$ac_word; then
877       ac_cv_prog_LEX="flex"
878       break
879     fi
880   done
881   IFS="$ac_save_ifs"
882   test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex"
883 fi
884 fi
885 LEX="$ac_cv_prog_LEX"
886 if test -n "$LEX"; then
887   echo "$ac_t""$LEX" 1>&6
888 else
889   echo "$ac_t""no" 1>&6
890 fi
891
892 if test -z "$LEXLIB"
893 then
894   case "$LEX" in
895   flex*) ac_lib=fl ;;
896   *) ac_lib=l ;;
897   esac
898   echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
899 echo "configure:900: checking for yywrap in -l$ac_lib" >&5
900 ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
901 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
902   echo $ac_n "(cached) $ac_c" 1>&6
903 else
904   ac_save_LIBS="$LIBS"
905 LIBS="-l$ac_lib  $LIBS"
906 cat > conftest.$ac_ext <<EOF
907 #line 908 "configure"
908 #include "confdefs.h"
909 /* Override any gcc2 internal prototype to avoid an error.  */
910 /* We use char because int might match the return type of a gcc2
911     builtin and then its argument prototype would still apply.  */
912 char yywrap();
913
914 int main() {
915 yywrap()
916 ; return 0; }
917 EOF
918 if { (eval echo configure:919: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
919   rm -rf conftest*
920   eval "ac_cv_lib_$ac_lib_var=yes"
921 else
922   echo "configure: failed program was:" >&5
923   cat conftest.$ac_ext >&5
924   rm -rf conftest*
925   eval "ac_cv_lib_$ac_lib_var=no"
926 fi
927 rm -f conftest*
928 LIBS="$ac_save_LIBS"
929
930 fi
931 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
932   echo "$ac_t""yes" 1>&6
933   LEXLIB="-l$ac_lib"
934 else
935   echo "$ac_t""no" 1>&6
936 fi
937
938 fi
939
940 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
941 echo "configure:942: checking whether ln -s works" >&5
942 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
943   echo $ac_n "(cached) $ac_c" 1>&6
944 else
945   rm -f conftestdata
946 if ln -s X conftestdata 2>/dev/null
947 then
948   rm -f conftestdata
949   ac_cv_prog_LN_S="ln -s"
950 else
951   ac_cv_prog_LN_S=ln
952 fi
953 fi
954 LN_S="$ac_cv_prog_LN_S"
955 if test "$ac_cv_prog_LN_S" = "ln -s"; then
956   echo "$ac_t""yes" 1>&6
957 else
958   echo "$ac_t""no" 1>&6
959 fi
960
961 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
962 echo "configure:963: checking whether ${MAKE-make} sets \${MAKE}" >&5
963 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
964 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
965   echo $ac_n "(cached) $ac_c" 1>&6
966 else
967   cat > conftestmake <<\EOF
968 all:
969         @echo 'ac_maketemp="${MAKE}"'
970 EOF
971 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
972 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
973 if test -n "$ac_maketemp"; then
974   eval ac_cv_prog_make_${ac_make}_set=yes
975 else
976   eval ac_cv_prog_make_${ac_make}_set=no
977 fi
978 rm -f conftestmake
979 fi
980 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
981   echo "$ac_t""yes" 1>&6
982   SET_MAKE=
983 else
984   echo "$ac_t""no" 1>&6
985   SET_MAKE="MAKE=${MAKE-make}"
986 fi
987
988
989
990 # Check whether --enable-debug or --disable-debug was given.
991 if test "${enable_debug+set}" = set; then
992   enableval="$enable_debug"
993   WITH_DEBUG=yes ; cat >> confdefs.h <<\EOF
994 #define DEBUG 1
995 EOF
996  
997 else
998   WITH_DEBUG=no
999 fi
1000
1001
1002
1003 # Check whether --enable-memory-debug or --disable-memory-debug was given.
1004 if test "${enable_memory_debug+set}" = set; then
1005   enableval="$enable_memory_debug"
1006   WITH_MEMORY_DEBUG=yes ; cat >> confdefs.h <<\EOF
1007 #define MEMORY_DEBUG 1
1008 EOF
1009  
1010 else
1011   WITH_MEMORY_DEBUG=no
1012 fi
1013
1014
1015
1016 # Check whether --enable-libdebug or --disable-libdebug was given.
1017 if test "${enable_libdebug+set}" = set; then
1018   enableval="$enable_libdebug"
1019   WITH_LIBDEBUG=yes ; cat >> confdefs.h <<\EOF
1020 #define WITH_LIBDEBUG 1
1021 EOF
1022  
1023 else
1024   WITH_LIBDEBUG=no
1025 fi
1026
1027
1028
1029 # Check whether --enable-fakeroot or --disable-fakeroot was given.
1030 if test "${enable_fakeroot+set}" = set; then
1031   enableval="$enable_fakeroot"
1032   FAKEROOT=$enableval
1033 fi
1034
1035
1036
1037 # Check whether --enable-securedir or --disable-securedir was given.
1038 if test "${enable_securedir+set}" = set; then
1039   enableval="$enable_securedir"
1040   SECUREDIR=$enableval
1041 else
1042   SECUREDIR=$libdir/security
1043 fi
1044
1045
1046
1047 # Check whether --enable-sconfigdir or --disable-sconfigdir was given.
1048 if test "${enable_sconfigdir+set}" = set; then
1049   enableval="$enable_sconfigdir"
1050   SCONFIGDIR=$enableval
1051 else
1052   SCONFIGDIR=$sysconfdir/security
1053 fi
1054
1055
1056
1057 # Check whether --enable-suplementedir or --disable-suplementedir was given.
1058 if test "${enable_suplementedir+set}" = set; then
1059   enableval="$enable_suplementedir"
1060   SUPLEMENTED=$enableval
1061 else
1062   SUPLEMENTED=$sbindir
1063 fi
1064
1065
1066
1067 # Check whether --enable-includedir or --disable-includedir was given.
1068 if test "${enable_includedir+set}" = set; then
1069   enableval="$enable_includedir"
1070   INCLUDEDIR=$enableval
1071 else
1072   INCLUDEDIR=/usr/include
1073 fi
1074
1075
1076
1077 # Check whether --enable-docdir or --disable-docdir was given.
1078 if test "${enable_docdir+set}" = set; then
1079   enableval="$enable_docdir"
1080   DOCDIR=$enableval
1081 else
1082   DOCDIR=/usr/share/doc/pam
1083 fi
1084
1085
1086
1087 # Check whether --enable-mandir or --disable-mandir was given.
1088 if test "${enable_mandir+set}" = set; then
1089   enableval="$enable_mandir"
1090   MANDIR=$enableval
1091 else
1092   MANDIR=/usr/share/man
1093 fi
1094
1095
1096
1097 # Check whether --enable-pamlocking or --disable-pamlocking was given.
1098 if test "${enable_pamlocking+set}" = set; then
1099   enableval="$enable_pamlocking"
1100   WITH_PAMLOCKING=yes ; cat >> confdefs.h <<\EOF
1101 #define PAM_LOCKING 1
1102 EOF
1103  
1104 else
1105   WITH_PAMLOCKING=no
1106 fi
1107
1108
1109
1110 # Check whether --enable-uglyhack or --disable-uglyhack was given.
1111 if test "${enable_uglyhack+set}" = set; then
1112   enableval="$enable_uglyhack"
1113   cat >> confdefs.h <<\EOF
1114 #define UGLY_HACK_FOR_PRIOR_BEHAVIOR_SUPPORT 1
1115 EOF
1116
1117 fi
1118
1119
1120 # Check whether --enable-read-both-confs or --disable-read-both-confs was given.
1121 if test "${enable_read_both_confs+set}" = set; then
1122   enableval="$enable_read_both_confs"
1123   cat >> confdefs.h <<\EOF
1124 #define PAM_READ_BOTH_CONFS 1
1125 EOF
1126
1127 fi
1128
1129
1130
1131 # Check whether --enable-static-libpam or --disable-static-libpam was given.
1132 if test "${enable_static_libpam+set}" = set; then
1133   enableval="$enable_static_libpam"
1134   STATIC_LIBPAM=yes 
1135 else
1136   STATIC_LIBPAM=no
1137 fi
1138
1139
1140
1141 # Check whether --enable-dynamic-libpam or --disable-dynamic-libpam was given.
1142 if test "${enable_dynamic_libpam+set}" = set; then
1143   enableval="$enable_dynamic_libpam"
1144   DYNAMIC_LIBPAM=no
1145 else
1146   DYNAMIC_LIBPAM=yes
1147 fi
1148
1149
1150
1151 DYNAMIC=-DPAM_DYNAMIC
1152
1153
1154 # Check whether --enable-static-modules or --disable-static-modules was given.
1155 if test "${enable_static_modules+set}" = set; then
1156   enableval="$enable_static_modules"
1157   STATIC=-DPAM_STATIC
1158 fi
1159
1160
1161
1162 # Check whether --enable-lckpwdf or --disable-lckpwdf was given.
1163 if test "${enable_lckpwdf+set}" = set; then
1164   enableval="$enable_lckpwdf"
1165   WITH_LCKPWDF=no
1166 else
1167   WITH_LCKPWDF=yes
1168 fi
1169
1170
1171
1172 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1173 echo "configure:1174: checking how to run the C preprocessor" >&5
1174 # On Suns, sometimes $CPP names a directory.
1175 if test -n "$CPP" && test -d "$CPP"; then
1176   CPP=
1177 fi
1178 if test -z "$CPP"; then
1179 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1180   echo $ac_n "(cached) $ac_c" 1>&6
1181 else
1182     # This must be in double quotes, not single quotes, because CPP may get
1183   # substituted into the Makefile and "${CC-cc}" will confuse make.
1184   CPP="${CC-cc} -E"
1185   # On the NeXT, cc -E runs the code through the compiler's parser,
1186   # not just through cpp.
1187   cat > conftest.$ac_ext <<EOF
1188 #line 1189 "configure"
1189 #include "confdefs.h"
1190 #include <assert.h>
1191 Syntax Error
1192 EOF
1193 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1194 { (eval echo configure:1195: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1195 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1196 if test -z "$ac_err"; then
1197   :
1198 else
1199   echo "$ac_err" >&5
1200   echo "configure: failed program was:" >&5
1201   cat conftest.$ac_ext >&5
1202   rm -rf conftest*
1203   CPP="${CC-cc} -E -traditional-cpp"
1204   cat > conftest.$ac_ext <<EOF
1205 #line 1206 "configure"
1206 #include "confdefs.h"
1207 #include <assert.h>
1208 Syntax Error
1209 EOF
1210 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1211 { (eval echo configure:1212: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1212 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1213 if test -z "$ac_err"; then
1214   :
1215 else
1216   echo "$ac_err" >&5
1217   echo "configure: failed program was:" >&5
1218   cat conftest.$ac_ext >&5
1219   rm -rf conftest*
1220   CPP="${CC-cc} -nologo -E"
1221   cat > conftest.$ac_ext <<EOF
1222 #line 1223 "configure"
1223 #include "confdefs.h"
1224 #include <assert.h>
1225 Syntax Error
1226 EOF
1227 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1228 { (eval echo configure:1229: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1229 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1230 if test -z "$ac_err"; then
1231   :
1232 else
1233   echo "$ac_err" >&5
1234   echo "configure: failed program was:" >&5
1235   cat conftest.$ac_ext >&5
1236   rm -rf conftest*
1237   CPP=/lib/cpp
1238 fi
1239 rm -f conftest*
1240 fi
1241 rm -f conftest*
1242 fi
1243 rm -f conftest*
1244   ac_cv_prog_CPP="$CPP"
1245 fi
1246   CPP="$ac_cv_prog_CPP"
1247 else
1248   ac_cv_prog_CPP="$CPP"
1249 fi
1250 echo "$ac_t""$CPP" 1>&6
1251
1252 for ac_hdr in paths.h
1253 do
1254 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1255 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1256 echo "configure:1257: checking for $ac_hdr" >&5
1257 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1258   echo $ac_n "(cached) $ac_c" 1>&6
1259 else
1260   cat > conftest.$ac_ext <<EOF
1261 #line 1262 "configure"
1262 #include "confdefs.h"
1263 #include <$ac_hdr>
1264 EOF
1265 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1266 { (eval echo configure:1267: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1267 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1268 if test -z "$ac_err"; then
1269   rm -rf conftest*
1270   eval "ac_cv_header_$ac_safe=yes"
1271 else
1272   echo "$ac_err" >&5
1273   echo "configure: failed program was:" >&5
1274   cat conftest.$ac_ext >&5
1275   rm -rf conftest*
1276   eval "ac_cv_header_$ac_safe=no"
1277 fi
1278 rm -f conftest*
1279 fi
1280 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1281   echo "$ac_t""yes" 1>&6
1282     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1283   cat >> confdefs.h <<EOF
1284 #define $ac_tr_hdr 1
1285 EOF
1286  
1287 else
1288   echo "$ac_t""no" 1>&6
1289 fi
1290 done
1291
1292 # Check whether --with-mailspool or --without-mailspool was given.
1293 if test "${with_mailspool+set}" = set; then
1294   withval="$with_mailspool"
1295   with_mailspool=${withval}
1296 fi
1297
1298 if test x$with_mailspool != x ; then
1299         pam_mail_spool="\"$with_mailspool\""
1300 else
1301         if test "$cross_compiling" = yes; then
1302   pam_mail_spool="\"/var/spool/mail\""
1303 else
1304   cat > conftest.$ac_ext <<EOF
1305 #line 1306 "configure"
1306 #include "confdefs.h"
1307
1308 #include <paths.h>
1309 int main() {
1310 #ifdef _PATH_MAILDIR
1311 exit(0);
1312 #else
1313 exit(1);
1314 #endif
1315 }
1316 EOF
1317 if { (eval echo configure:1318: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1318 then
1319   pam_mail_spool="_PATH_MAILDIR"
1320 else
1321   echo "configure: failed program was:" >&5
1322   cat conftest.$ac_ext >&5
1323   rm -fr conftest*
1324   pam_mail_spool="\"/var/spool/mail\""
1325 fi
1326 rm -fr conftest*
1327 fi
1328
1329 fi
1330 cat >> confdefs.h <<EOF
1331 #define PAM_PATH_MAILDIR $pam_mail_spool
1332 EOF
1333
1334
1335 echo $ac_n "checking for __libc_sched_setscheduler in -lc""... $ac_c" 1>&6
1336 echo "configure:1337: checking for __libc_sched_setscheduler in -lc" >&5
1337 ac_lib_var=`echo c'_'__libc_sched_setscheduler | sed 'y%./+-%__p_%'`
1338 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1339   echo $ac_n "(cached) $ac_c" 1>&6
1340 else
1341   ac_save_LIBS="$LIBS"
1342 LIBS="-lc  $LIBS"
1343 cat > conftest.$ac_ext <<EOF
1344 #line 1345 "configure"
1345 #include "confdefs.h"
1346 /* Override any gcc2 internal prototype to avoid an error.  */
1347 /* We use char because int might match the return type of a gcc2
1348     builtin and then its argument prototype would still apply.  */
1349 char __libc_sched_setscheduler();
1350
1351 int main() {
1352 __libc_sched_setscheduler()
1353 ; return 0; }
1354 EOF
1355 if { (eval echo configure:1356: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1356   rm -rf conftest*
1357   eval "ac_cv_lib_$ac_lib_var=yes"
1358 else
1359   echo "configure: failed program was:" >&5
1360   cat conftest.$ac_ext >&5
1361   rm -rf conftest*
1362   eval "ac_cv_lib_$ac_lib_var=no"
1363 fi
1364 rm -f conftest*
1365 LIBS="$ac_save_LIBS"
1366
1367 fi
1368 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1369   echo "$ac_t""yes" 1>&6
1370   PAM_NEEDS_LIBC=
1371 else
1372   echo "$ac_t""no" 1>&6
1373 PAM_NEEDS_LIBC=-lc
1374 fi
1375
1376
1377
1378 echo $ac_n "checking for lckpwdf in -lc""... $ac_c" 1>&6
1379 echo "configure:1380: checking for lckpwdf in -lc" >&5
1380 ac_lib_var=`echo c'_'lckpwdf | sed 'y%./+-%__p_%'`
1381 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1382   echo $ac_n "(cached) $ac_c" 1>&6
1383 else
1384   ac_save_LIBS="$LIBS"
1385 LIBS="-lc  $LIBS"
1386 cat > conftest.$ac_ext <<EOF
1387 #line 1388 "configure"
1388 #include "confdefs.h"
1389 /* Override any gcc2 internal prototype to avoid an error.  */
1390 /* We use char because int might match the return type of a gcc2
1391     builtin and then its argument prototype would still apply.  */
1392 char lckpwdf();
1393
1394 int main() {
1395 lckpwdf()
1396 ; return 0; }
1397 EOF
1398 if { (eval echo configure:1399: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1399   rm -rf conftest*
1400   eval "ac_cv_lib_$ac_lib_var=yes"
1401 else
1402   echo "configure: failed program was:" >&5
1403   cat conftest.$ac_ext >&5
1404   rm -rf conftest*
1405   eval "ac_cv_lib_$ac_lib_var=no"
1406 fi
1407 rm -f conftest*
1408 LIBS="$ac_save_LIBS"
1409
1410 fi
1411 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1412   echo "$ac_t""yes" 1>&6
1413   HAVE_LCKPWDF=yes
1414 else
1415   echo "$ac_t""no" 1>&6
1416 HAVE_LCKPWDF=no
1417 fi
1418
1419
1420
1421 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
1422 echo "configure:1423: checking for dlopen in -ldl" >&5
1423 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
1424 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1425   echo $ac_n "(cached) $ac_c" 1>&6
1426 else
1427   ac_save_LIBS="$LIBS"
1428 LIBS="-ldl  $LIBS"
1429 cat > conftest.$ac_ext <<EOF
1430 #line 1431 "configure"
1431 #include "confdefs.h"
1432 /* Override any gcc2 internal prototype to avoid an error.  */
1433 /* We use char because int might match the return type of a gcc2
1434     builtin and then its argument prototype would still apply.  */
1435 char dlopen();
1436
1437 int main() {
1438 dlopen()
1439 ; return 0; }
1440 EOF
1441 if { (eval echo configure:1442: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1442   rm -rf conftest*
1443   eval "ac_cv_lib_$ac_lib_var=yes"
1444 else
1445   echo "configure: failed program was:" >&5
1446   cat conftest.$ac_ext >&5
1447   rm -rf conftest*
1448   eval "ac_cv_lib_$ac_lib_var=no"
1449 fi
1450 rm -f conftest*
1451 LIBS="$ac_save_LIBS"
1452
1453 fi
1454 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1455   echo "$ac_t""yes" 1>&6
1456   LIBDL=-ldl
1457 else
1458   echo "$ac_t""no" 1>&6
1459 fi
1460  
1461
1462
1463 echo $ac_n "checking for FascistCheck in -lcrack""... $ac_c" 1>&6
1464 echo "configure:1465: checking for FascistCheck in -lcrack" >&5
1465 ac_lib_var=`echo crack'_'FascistCheck | sed 'y%./+-%__p_%'`
1466 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1467   echo $ac_n "(cached) $ac_c" 1>&6
1468 else
1469   ac_save_LIBS="$LIBS"
1470 LIBS="-lcrack  $LIBS"
1471 cat > conftest.$ac_ext <<EOF
1472 #line 1473 "configure"
1473 #include "confdefs.h"
1474 /* Override any gcc2 internal prototype to avoid an error.  */
1475 /* We use char because int might match the return type of a gcc2
1476     builtin and then its argument prototype would still apply.  */
1477 char FascistCheck();
1478
1479 int main() {
1480 FascistCheck()
1481 ; return 0; }
1482 EOF
1483 if { (eval echo configure:1484: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1484   rm -rf conftest*
1485   eval "ac_cv_lib_$ac_lib_var=yes"
1486 else
1487   echo "configure: failed program was:" >&5
1488   cat conftest.$ac_ext >&5
1489   rm -rf conftest*
1490   eval "ac_cv_lib_$ac_lib_var=no"
1491 fi
1492 rm -f conftest*
1493 LIBS="$ac_save_LIBS"
1494
1495 fi
1496 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1497   echo "$ac_t""yes" 1>&6
1498   HAVE_LIBCRACK=yes ; cat >> confdefs.h <<\EOF
1499 #define HAVE_LIBCRACK 1
1500 EOF
1501
1502 else
1503   echo "$ac_t""no" 1>&6
1504 HAVE_LIBCRACK=no
1505 fi
1506
1507
1508
1509 echo $ac_n "checking for fcrypt in -lcrypt""... $ac_c" 1>&6
1510 echo "configure:1511: checking for fcrypt in -lcrypt" >&5
1511 ac_lib_var=`echo crypt'_'fcrypt | 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="-lcrypt  $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 fcrypt();
1524
1525 int main() {
1526 fcrypt()
1527 ; return 0; }
1528 EOF
1529 if { (eval echo configure:1530: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; 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   HAVE_LIBCRYPT=yes ; cat >> confdefs.h <<\EOF
1545 #define HAVE_LIBCRYPT 1
1546 EOF
1547
1548 else
1549   echo "$ac_t""no" 1>&6
1550 HAVE_LIBCRYPT=no
1551 fi
1552
1553
1554 echo $ac_n "checking for logwtmp in -lutil""... $ac_c" 1>&6
1555 echo "configure:1556: checking for logwtmp in -lutil" >&5
1556 ac_lib_var=`echo util'_'logwtmp | 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="-lutil  $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 logwtmp();
1569
1570 int main() {
1571 logwtmp()
1572 ; return 0; }
1573 EOF
1574 if { (eval echo configure:1575: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; 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   HAVE_LIBUTIL=yes ; cat >> confdefs.h <<\EOF
1590 #define HAVE_LIBUTIL 1
1591 EOF
1592
1593 else
1594   echo "$ac_t""no" 1>&6
1595 HAVE_LIBUTIL=no
1596 fi
1597
1598
1599 echo $ac_n "checking for dbm_store in -lndbm""... $ac_c" 1>&6
1600 echo "configure:1601: checking for dbm_store in -lndbm" >&5
1601 ac_lib_var=`echo ndbm'_'dbm_store | sed 'y%./+-%__p_%'`
1602 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1603   echo $ac_n "(cached) $ac_c" 1>&6
1604 else
1605   ac_save_LIBS="$LIBS"
1606 LIBS="-lndbm  $LIBS"
1607 cat > conftest.$ac_ext <<EOF
1608 #line 1609 "configure"
1609 #include "confdefs.h"
1610 /* Override any gcc2 internal prototype to avoid an error.  */
1611 /* We use char because int might match the return type of a gcc2
1612     builtin and then its argument prototype would still apply.  */
1613 char dbm_store();
1614
1615 int main() {
1616 dbm_store()
1617 ; return 0; }
1618 EOF
1619 if { (eval echo configure:1620: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1620   rm -rf conftest*
1621   eval "ac_cv_lib_$ac_lib_var=yes"
1622 else
1623   echo "configure: failed program was:" >&5
1624   cat conftest.$ac_ext >&5
1625   rm -rf conftest*
1626   eval "ac_cv_lib_$ac_lib_var=no"
1627 fi
1628 rm -f conftest*
1629 LIBS="$ac_save_LIBS"
1630
1631 fi
1632 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1633   echo "$ac_t""yes" 1>&6
1634   HAVE_LIBNDBM=yes ; cat >> confdefs.h <<\EOF
1635 #define HAVE_LIBNDBM 1
1636 EOF
1637
1638 else
1639   echo "$ac_t""no" 1>&6
1640 HAVE_LIBNDBM=no
1641 fi
1642
1643
1644 echo $ac_n "checking for dbm_store in -ldb""... $ac_c" 1>&6
1645 echo "configure:1646: checking for dbm_store in -ldb" >&5
1646 ac_lib_var=`echo db'_'dbm_store | 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="-ldb  $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 dbm_store();
1659
1660 int main() {
1661 dbm_store()
1662 ; return 0; }
1663 EOF
1664 if { (eval echo configure:1665: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; 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   HAVE_LIBDB=yes ; cat >> confdefs.h <<\EOF
1680 #define HAVE_LIBDB 1
1681 EOF
1682
1683 else
1684   echo "$ac_t""no" 1>&6
1685 HAVE_LIBDB=no
1686 fi
1687
1688 if test x$HAVE_LIBDB != xyes ; then
1689         echo $ac_n "checking for db_create in -ldb""... $ac_c" 1>&6
1690 echo "configure:1691: checking for db_create in -ldb" >&5
1691 ac_lib_var=`echo db'_'db_create | sed 'y%./+-%__p_%'`
1692 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1693   echo $ac_n "(cached) $ac_c" 1>&6
1694 else
1695   ac_save_LIBS="$LIBS"
1696 LIBS="-ldb  $LIBS"
1697 cat > conftest.$ac_ext <<EOF
1698 #line 1699 "configure"
1699 #include "confdefs.h"
1700 /* Override any gcc2 internal prototype to avoid an error.  */
1701 /* We use char because int might match the return type of a gcc2
1702     builtin and then its argument prototype would still apply.  */
1703 char db_create();
1704
1705 int main() {
1706 db_create()
1707 ; return 0; }
1708 EOF
1709 if { (eval echo configure:1710: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1710   rm -rf conftest*
1711   eval "ac_cv_lib_$ac_lib_var=yes"
1712 else
1713   echo "configure: failed program was:" >&5
1714   cat conftest.$ac_ext >&5
1715   rm -rf conftest*
1716   eval "ac_cv_lib_$ac_lib_var=no"
1717 fi
1718 rm -f conftest*
1719 LIBS="$ac_save_LIBS"
1720
1721 fi
1722 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1723   echo "$ac_t""yes" 1>&6
1724   HAVE_LIBDB=yes ; cat >> confdefs.h <<\EOF
1725 #define HAVE_LIBDB 1
1726 EOF
1727
1728 else
1729   echo "$ac_t""no" 1>&6
1730 HAVE_LIBDB=no
1731 fi
1732
1733 fi
1734
1735 echo $ac_n "checking for yylex in -lfl""... $ac_c" 1>&6
1736 echo "configure:1737: checking for yylex in -lfl" >&5
1737 ac_lib_var=`echo fl'_'yylex | sed 'y%./+-%__p_%'`
1738 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1739   echo $ac_n "(cached) $ac_c" 1>&6
1740 else
1741   ac_save_LIBS="$LIBS"
1742 LIBS="-lfl HAVE_LIBFL=no $LIBS"
1743 cat > conftest.$ac_ext <<EOF
1744 #line 1745 "configure"
1745 #include "confdefs.h"
1746 /* Override any gcc2 internal prototype to avoid an error.  */
1747 /* We use char because int might match the return type of a gcc2
1748     builtin and then its argument prototype would still apply.  */
1749 char yylex();
1750
1751 int main() {
1752 yylex()
1753 ; return 0; }
1754 EOF
1755 if { (eval echo configure:1756: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1756   rm -rf conftest*
1757   eval "ac_cv_lib_$ac_lib_var=yes"
1758 else
1759   echo "configure: failed program was:" >&5
1760   cat conftest.$ac_ext >&5
1761   rm -rf conftest*
1762   eval "ac_cv_lib_$ac_lib_var=no"
1763 fi
1764 rm -f conftest*
1765 LIBS="$ac_save_LIBS"
1766
1767 fi
1768 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1769   echo "$ac_t""yes" 1>&6
1770   yyterminate
1771 else
1772   echo "$ac_t""no" 1>&6
1773 HAVE_LIBFL=yes ; cat >> confdefs.h <<\EOF
1774 #define HAVE_LIBFL 1
1775 EOF
1776
1777 fi
1778
1779
1780 echo $ac_n "checking for yp_maplist in -lnsl""... $ac_c" 1>&6
1781 echo "configure:1782: checking for yp_maplist in -lnsl" >&5
1782 ac_lib_var=`echo nsl'_'yp_maplist | sed 'y%./+-%__p_%'`
1783 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1784   echo $ac_n "(cached) $ac_c" 1>&6
1785 else
1786   ac_save_LIBS="$LIBS"
1787 LIBS="-lnsl  $LIBS"
1788 cat > conftest.$ac_ext <<EOF
1789 #line 1790 "configure"
1790 #include "confdefs.h"
1791 /* Override any gcc2 internal prototype to avoid an error.  */
1792 /* We use char because int might match the return type of a gcc2
1793     builtin and then its argument prototype would still apply.  */
1794 char yp_maplist();
1795
1796 int main() {
1797 yp_maplist()
1798 ; return 0; }
1799 EOF
1800 if { (eval echo configure:1801: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1801   rm -rf conftest*
1802   eval "ac_cv_lib_$ac_lib_var=yes"
1803 else
1804   echo "configure: failed program was:" >&5
1805   cat conftest.$ac_ext >&5
1806   rm -rf conftest*
1807   eval "ac_cv_lib_$ac_lib_var=no"
1808 fi
1809 rm -f conftest*
1810 LIBS="$ac_save_LIBS"
1811
1812 fi
1813 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1814   echo "$ac_t""yes" 1>&6
1815   HAVE_LIBNSL=yes ; cat >> confdefs.h <<\EOF
1816 #define HAVE_LIBNSL 1
1817 EOF
1818
1819 else
1820   echo "$ac_t""no" 1>&6
1821 HAVE_LIBNSL=no
1822 fi
1823
1824
1825 echo $ac_n "checking for pwdb_db_name in -lpwdb""... $ac_c" 1>&6
1826 echo "configure:1827: checking for pwdb_db_name in -lpwdb" >&5
1827 ac_lib_var=`echo pwdb'_'pwdb_db_name | sed 'y%./+-%__p_%'`
1828 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1829   echo $ac_n "(cached) $ac_c" 1>&6
1830 else
1831   ac_save_LIBS="$LIBS"
1832 LIBS="-lpwdb  $LIBS"
1833 cat > conftest.$ac_ext <<EOF
1834 #line 1835 "configure"
1835 #include "confdefs.h"
1836 /* Override any gcc2 internal prototype to avoid an error.  */
1837 /* We use char because int might match the return type of a gcc2
1838     builtin and then its argument prototype would still apply.  */
1839 char pwdb_db_name();
1840
1841 int main() {
1842 pwdb_db_name()
1843 ; return 0; }
1844 EOF
1845 if { (eval echo configure:1846: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1846   rm -rf conftest*
1847   eval "ac_cv_lib_$ac_lib_var=yes"
1848 else
1849   echo "configure: failed program was:" >&5
1850   cat conftest.$ac_ext >&5
1851   rm -rf conftest*
1852   eval "ac_cv_lib_$ac_lib_var=no"
1853 fi
1854 rm -f conftest*
1855 LIBS="$ac_save_LIBS"
1856
1857 fi
1858 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1859   echo "$ac_t""yes" 1>&6
1860   HAVE_LIBPWDB=yes ; cat >> confdefs.h <<\EOF
1861 #define HAVE_LIBPWDB 1
1862 EOF
1863
1864 else
1865   echo "$ac_t""no" 1>&6
1866 HAVE_LIBPWDB=no
1867 fi
1868
1869
1870 echo $ac_n "checking for yywrap in -lfl""... $ac_c" 1>&6
1871 echo "configure:1872: checking for yywrap in -lfl" >&5
1872 ac_lib_var=`echo fl'_'yywrap | sed 'y%./+-%__p_%'`
1873 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1874   echo $ac_n "(cached) $ac_c" 1>&6
1875 else
1876   ac_save_LIBS="$LIBS"
1877 LIBS="-lfl  $LIBS"
1878 cat > conftest.$ac_ext <<EOF
1879 #line 1880 "configure"
1880 #include "confdefs.h"
1881 /* Override any gcc2 internal prototype to avoid an error.  */
1882 /* We use char because int might match the return type of a gcc2
1883     builtin and then its argument prototype would still apply.  */
1884 char yywrap();
1885
1886 int main() {
1887 yywrap()
1888 ; return 0; }
1889 EOF
1890 if { (eval echo configure:1891: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1891   rm -rf conftest*
1892   eval "ac_cv_lib_$ac_lib_var=yes"
1893 else
1894   echo "configure: failed program was:" >&5
1895   cat conftest.$ac_ext >&5
1896   rm -rf conftest*
1897   eval "ac_cv_lib_$ac_lib_var=no"
1898 fi
1899 rm -f conftest*
1900 LIBS="$ac_save_LIBS"
1901
1902 fi
1903 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1904   echo "$ac_t""yes" 1>&6
1905   HAVE_LIBFLEX=yes ; cat >> confdefs.h <<\EOF
1906 #define HAVE_LIBFLEX 1
1907 EOF
1908
1909 else
1910   echo "$ac_t""no" 1>&6
1911 HAVE_LIBFLEX=no
1912 fi
1913
1914
1915 echo $ac_n "checking for yywrap in -ll""... $ac_c" 1>&6
1916 echo "configure:1917: checking for yywrap in -ll" >&5
1917 ac_lib_var=`echo l'_'yywrap | sed 'y%./+-%__p_%'`
1918 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1919   echo $ac_n "(cached) $ac_c" 1>&6
1920 else
1921   ac_save_LIBS="$LIBS"
1922 LIBS="-ll  $LIBS"
1923 cat > conftest.$ac_ext <<EOF
1924 #line 1925 "configure"
1925 #include "confdefs.h"
1926 /* Override any gcc2 internal prototype to avoid an error.  */
1927 /* We use char because int might match the return type of a gcc2
1928     builtin and then its argument prototype would still apply.  */
1929 char yywrap();
1930
1931 int main() {
1932 yywrap()
1933 ; return 0; }
1934 EOF
1935 if { (eval echo configure:1936: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1936   rm -rf conftest*
1937   eval "ac_cv_lib_$ac_lib_var=yes"
1938 else
1939   echo "configure: failed program was:" >&5
1940   cat conftest.$ac_ext >&5
1941   rm -rf conftest*
1942   eval "ac_cv_lib_$ac_lib_var=no"
1943 fi
1944 rm -f conftest*
1945 LIBS="$ac_save_LIBS"
1946
1947 fi
1948 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1949   echo "$ac_t""yes" 1>&6
1950   HAVE_LIBLEX=yes ; cat >> confdefs.h <<\EOF
1951 #define HAVE_LIBLEX 1
1952 EOF
1953
1954 else
1955   echo "$ac_t""no" 1>&6
1956 HAVE_LIBLEX=no
1957 fi
1958
1959
1960
1961 ac_header_dirent=no
1962 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
1963 do
1964 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1965 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
1966 echo "configure:1967: checking for $ac_hdr that defines DIR" >&5
1967 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
1968   echo $ac_n "(cached) $ac_c" 1>&6
1969 else
1970   cat > conftest.$ac_ext <<EOF
1971 #line 1972 "configure"
1972 #include "confdefs.h"
1973 #include <sys/types.h>
1974 #include <$ac_hdr>
1975 int main() {
1976 DIR *dirp = 0;
1977 ; return 0; }
1978 EOF
1979 if { (eval echo configure:1980: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1980   rm -rf conftest*
1981   eval "ac_cv_header_dirent_$ac_safe=yes"
1982 else
1983   echo "configure: failed program was:" >&5
1984   cat conftest.$ac_ext >&5
1985   rm -rf conftest*
1986   eval "ac_cv_header_dirent_$ac_safe=no"
1987 fi
1988 rm -f conftest*
1989 fi
1990 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
1991   echo "$ac_t""yes" 1>&6
1992     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1993   cat >> confdefs.h <<EOF
1994 #define $ac_tr_hdr 1
1995 EOF
1996  ac_header_dirent=$ac_hdr; break
1997 else
1998   echo "$ac_t""no" 1>&6
1999 fi
2000 done
2001 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
2002 if test $ac_header_dirent = dirent.h; then
2003 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
2004 echo "configure:2005: checking for opendir in -ldir" >&5
2005 ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
2006 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2007   echo $ac_n "(cached) $ac_c" 1>&6
2008 else
2009   ac_save_LIBS="$LIBS"
2010 LIBS="-ldir  $LIBS"
2011 cat > conftest.$ac_ext <<EOF
2012 #line 2013 "configure"
2013 #include "confdefs.h"
2014 /* Override any gcc2 internal prototype to avoid an error.  */
2015 /* We use char because int might match the return type of a gcc2
2016     builtin and then its argument prototype would still apply.  */
2017 char opendir();
2018
2019 int main() {
2020 opendir()
2021 ; return 0; }
2022 EOF
2023 if { (eval echo configure:2024: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2024   rm -rf conftest*
2025   eval "ac_cv_lib_$ac_lib_var=yes"
2026 else
2027   echo "configure: failed program was:" >&5
2028   cat conftest.$ac_ext >&5
2029   rm -rf conftest*
2030   eval "ac_cv_lib_$ac_lib_var=no"
2031 fi
2032 rm -f conftest*
2033 LIBS="$ac_save_LIBS"
2034
2035 fi
2036 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2037   echo "$ac_t""yes" 1>&6
2038   LIBS="$LIBS -ldir"
2039 else
2040   echo "$ac_t""no" 1>&6
2041 fi
2042
2043 else
2044 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
2045 echo "configure:2046: checking for opendir in -lx" >&5
2046 ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'`
2047 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2048   echo $ac_n "(cached) $ac_c" 1>&6
2049 else
2050   ac_save_LIBS="$LIBS"
2051 LIBS="-lx  $LIBS"
2052 cat > conftest.$ac_ext <<EOF
2053 #line 2054 "configure"
2054 #include "confdefs.h"
2055 /* Override any gcc2 internal prototype to avoid an error.  */
2056 /* We use char because int might match the return type of a gcc2
2057     builtin and then its argument prototype would still apply.  */
2058 char opendir();
2059
2060 int main() {
2061 opendir()
2062 ; return 0; }
2063 EOF
2064 if { (eval echo configure:2065: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2065   rm -rf conftest*
2066   eval "ac_cv_lib_$ac_lib_var=yes"
2067 else
2068   echo "configure: failed program was:" >&5
2069   cat conftest.$ac_ext >&5
2070   rm -rf conftest*
2071   eval "ac_cv_lib_$ac_lib_var=no"
2072 fi
2073 rm -f conftest*
2074 LIBS="$ac_save_LIBS"
2075
2076 fi
2077 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2078   echo "$ac_t""yes" 1>&6
2079   LIBS="$LIBS -lx"
2080 else
2081   echo "$ac_t""no" 1>&6
2082 fi
2083
2084 fi
2085
2086 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
2087 echo "configure:2088: checking for ANSI C header files" >&5
2088 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
2089   echo $ac_n "(cached) $ac_c" 1>&6
2090 else
2091   cat > conftest.$ac_ext <<EOF
2092 #line 2093 "configure"
2093 #include "confdefs.h"
2094 #include <stdlib.h>
2095 #include <stdarg.h>
2096 #include <string.h>
2097 #include <float.h>
2098 EOF
2099 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2100 { (eval echo configure:2101: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2101 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2102 if test -z "$ac_err"; then
2103   rm -rf conftest*
2104   ac_cv_header_stdc=yes
2105 else
2106   echo "$ac_err" >&5
2107   echo "configure: failed program was:" >&5
2108   cat conftest.$ac_ext >&5
2109   rm -rf conftest*
2110   ac_cv_header_stdc=no
2111 fi
2112 rm -f conftest*
2113
2114 if test $ac_cv_header_stdc = yes; then
2115   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2116 cat > conftest.$ac_ext <<EOF
2117 #line 2118 "configure"
2118 #include "confdefs.h"
2119 #include <string.h>
2120 EOF
2121 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2122   egrep "memchr" >/dev/null 2>&1; then
2123   :
2124 else
2125   rm -rf conftest*
2126   ac_cv_header_stdc=no
2127 fi
2128 rm -f conftest*
2129
2130 fi
2131
2132 if test $ac_cv_header_stdc = yes; then
2133   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2134 cat > conftest.$ac_ext <<EOF
2135 #line 2136 "configure"
2136 #include "confdefs.h"
2137 #include <stdlib.h>
2138 EOF
2139 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2140   egrep "free" >/dev/null 2>&1; then
2141   :
2142 else
2143   rm -rf conftest*
2144   ac_cv_header_stdc=no
2145 fi
2146 rm -f conftest*
2147
2148 fi
2149
2150 if test $ac_cv_header_stdc = yes; then
2151   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2152 if test "$cross_compiling" = yes; then
2153   :
2154 else
2155   cat > conftest.$ac_ext <<EOF
2156 #line 2157 "configure"
2157 #include "confdefs.h"
2158 #include <ctype.h>
2159 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2160 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2161 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2162 int main () { int i; for (i = 0; i < 256; i++)
2163 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
2164 exit (0); }
2165
2166 EOF
2167 if { (eval echo configure:2168: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2168 then
2169   :
2170 else
2171   echo "configure: failed program was:" >&5
2172   cat conftest.$ac_ext >&5
2173   rm -fr conftest*
2174   ac_cv_header_stdc=no
2175 fi
2176 rm -fr conftest*
2177 fi
2178
2179 fi
2180 fi
2181
2182 echo "$ac_t""$ac_cv_header_stdc" 1>&6
2183 if test $ac_cv_header_stdc = yes; then
2184   cat >> confdefs.h <<\EOF
2185 #define STDC_HEADERS 1
2186 EOF
2187
2188 fi
2189
2190 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
2191 echo "configure:2192: checking for sys/wait.h that is POSIX.1 compatible" >&5
2192 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
2193   echo $ac_n "(cached) $ac_c" 1>&6
2194 else
2195   cat > conftest.$ac_ext <<EOF
2196 #line 2197 "configure"
2197 #include "confdefs.h"
2198 #include <sys/types.h>
2199 #include <sys/wait.h>
2200 #ifndef WEXITSTATUS
2201 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
2202 #endif
2203 #ifndef WIFEXITED
2204 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
2205 #endif
2206 int main() {
2207 int s;
2208 wait (&s);
2209 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
2210 ; return 0; }
2211 EOF
2212 if { (eval echo configure:2213: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2213   rm -rf conftest*
2214   ac_cv_header_sys_wait_h=yes
2215 else
2216   echo "configure: failed program was:" >&5
2217   cat conftest.$ac_ext >&5
2218   rm -rf conftest*
2219   ac_cv_header_sys_wait_h=no
2220 fi
2221 rm -f conftest*
2222 fi
2223
2224 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
2225 if test $ac_cv_header_sys_wait_h = yes; then
2226   cat >> confdefs.h <<\EOF
2227 #define HAVE_SYS_WAIT_H 1
2228 EOF
2229
2230 fi
2231
2232 for ac_hdr in fcntl.h limits.h malloc.h sys/file.h sys/ioctl.h sys/time.h syslog.h termio.h unistd.h sys/fsuid.h
2233 do
2234 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2235 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2236 echo "configure:2237: checking for $ac_hdr" >&5
2237 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2238   echo $ac_n "(cached) $ac_c" 1>&6
2239 else
2240   cat > conftest.$ac_ext <<EOF
2241 #line 2242 "configure"
2242 #include "confdefs.h"
2243 #include <$ac_hdr>
2244 EOF
2245 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2246 { (eval echo configure:2247: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2247 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2248 if test -z "$ac_err"; then
2249   rm -rf conftest*
2250   eval "ac_cv_header_$ac_safe=yes"
2251 else
2252   echo "$ac_err" >&5
2253   echo "configure: failed program was:" >&5
2254   cat conftest.$ac_ext >&5
2255   rm -rf conftest*
2256   eval "ac_cv_header_$ac_safe=no"
2257 fi
2258 rm -f conftest*
2259 fi
2260 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2261   echo "$ac_t""yes" 1>&6
2262     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2263   cat >> confdefs.h <<EOF
2264 #define $ac_tr_hdr 1
2265 EOF
2266  
2267 else
2268   echo "$ac_t""no" 1>&6
2269 fi
2270 done
2271
2272
2273 for ac_hdr in features.h
2274 do
2275 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2276 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2277 echo "configure:2278: checking for $ac_hdr" >&5
2278 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2279   echo $ac_n "(cached) $ac_c" 1>&6
2280 else
2281   cat > conftest.$ac_ext <<EOF
2282 #line 2283 "configure"
2283 #include "confdefs.h"
2284 #include <$ac_hdr>
2285 EOF
2286 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2287 { (eval echo configure:2288: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2288 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2289 if test -z "$ac_err"; then
2290   rm -rf conftest*
2291   eval "ac_cv_header_$ac_safe=yes"
2292 else
2293   echo "$ac_err" >&5
2294   echo "configure: failed program was:" >&5
2295   cat conftest.$ac_ext >&5
2296   rm -rf conftest*
2297   eval "ac_cv_header_$ac_safe=no"
2298 fi
2299 rm -f conftest*
2300 fi
2301 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2302   echo "$ac_t""yes" 1>&6
2303     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2304   cat >> confdefs.h <<EOF
2305 #define $ac_tr_hdr 1
2306 EOF
2307  
2308 else
2309   echo "$ac_t""no" 1>&6
2310 fi
2311 done
2312
2313
2314 for ac_hdr in crypt.h
2315 do
2316 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2317 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2318 echo "configure:2319: checking for $ac_hdr" >&5
2319 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2320   echo $ac_n "(cached) $ac_c" 1>&6
2321 else
2322   cat > conftest.$ac_ext <<EOF
2323 #line 2324 "configure"
2324 #include "confdefs.h"
2325 #include <$ac_hdr>
2326 EOF
2327 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2328 { (eval echo configure:2329: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2329 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2330 if test -z "$ac_err"; then
2331   rm -rf conftest*
2332   eval "ac_cv_header_$ac_safe=yes"
2333 else
2334   echo "$ac_err" >&5
2335   echo "configure: failed program was:" >&5
2336   cat conftest.$ac_ext >&5
2337   rm -rf conftest*
2338   eval "ac_cv_header_$ac_safe=no"
2339 fi
2340 rm -f conftest*
2341 fi
2342 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2343   echo "$ac_t""yes" 1>&6
2344     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2345   cat >> confdefs.h <<EOF
2346 #define $ac_tr_hdr 1
2347 EOF
2348  
2349 else
2350   echo "$ac_t""no" 1>&6
2351 fi
2352 done
2353
2354
2355 for ac_hdr in ndbm.h db.h
2356 do
2357 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2358 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2359 echo "configure:2360: checking for $ac_hdr" >&5
2360 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2361   echo $ac_n "(cached) $ac_c" 1>&6
2362 else
2363   cat > conftest.$ac_ext <<EOF
2364 #line 2365 "configure"
2365 #include "confdefs.h"
2366 #include <$ac_hdr>
2367 EOF
2368 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2369 { (eval echo configure:2370: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2370 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2371 if test -z "$ac_err"; then
2372   rm -rf conftest*
2373   eval "ac_cv_header_$ac_safe=yes"
2374 else
2375   echo "$ac_err" >&5
2376   echo "configure: failed program was:" >&5
2377   cat conftest.$ac_ext >&5
2378   rm -rf conftest*
2379   eval "ac_cv_header_$ac_safe=no"
2380 fi
2381 rm -f conftest*
2382 fi
2383 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2384   echo "$ac_t""yes" 1>&6
2385     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2386   cat >> confdefs.h <<EOF
2387 #define $ac_tr_hdr 1
2388 EOF
2389  
2390 else
2391   echo "$ac_t""no" 1>&6
2392 fi
2393 done
2394
2395 HAVE_NDBM_H=$ac_cv_header_ndbm_h
2396
2397
2398 for ac_hdr in lastlog.h utmp.h utmpx.h
2399 do
2400 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2401 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2402 echo "configure:2403: checking for $ac_hdr" >&5
2403 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2404   echo $ac_n "(cached) $ac_c" 1>&6
2405 else
2406   cat > conftest.$ac_ext <<EOF
2407 #line 2408 "configure"
2408 #include "confdefs.h"
2409 #include <$ac_hdr>
2410 EOF
2411 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2412 { (eval echo configure:2413: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2413 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2414 if test -z "$ac_err"; then
2415   rm -rf conftest*
2416   eval "ac_cv_header_$ac_safe=yes"
2417 else
2418   echo "$ac_err" >&5
2419   echo "configure: failed program was:" >&5
2420   cat conftest.$ac_ext >&5
2421   rm -rf conftest*
2422   eval "ac_cv_header_$ac_safe=no"
2423 fi
2424 rm -f conftest*
2425 fi
2426 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2427   echo "$ac_t""yes" 1>&6
2428     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2429   cat >> confdefs.h <<EOF
2430 #define $ac_tr_hdr 1
2431 EOF
2432  
2433 else
2434   echo "$ac_t""no" 1>&6
2435 fi
2436 done
2437
2438
2439
2440 echo $ac_n "checking path to cracklib dictionary""... $ac_c" 1>&6
2441 echo "configure:2442: checking path to cracklib dictionary" >&5
2442 DICT_DIR_CANDIDATES="/usr/lib /usr/share/dict /usr/share/lib \
2443   /usr/local/lib /usr/local/share/lib"
2444 DICT_FILE_CANDIDATES="pw_dict cracklib_dict"
2445 CRACKLIB_DICTPATH=""
2446 for d in $DICT_DIR_CANDIDATES ; do
2447       for f in $DICT_FILE_CANDIDATES ; do
2448               if test -r $d/$f.hwm ; then
2449                       CRACKLIB_DICTPATH=$d/$f
2450                       break 2
2451               elif test -r $d/dict/$f.hwm ; then
2452                       CRACKLIB_DICTPATH=$d/dict/$f
2453                       break 2
2454               fi
2455       done
2456 done
2457 if test -z "$CRACKLIB_DICTPATH" ; then
2458       echo "$ac_t""none found" 1>&6
2459 else
2460       echo "$ac_t""$CRACKLIB_DICTPATH" 1>&6
2461 fi
2462
2463
2464
2465 GCC_WARNINGS="-Wall -Wwrite-strings \
2466         -Wpointer-arith -Wcast-qual -Wcast-align \
2467         -Wstrict-prototypes -Wmissing-prototypes \
2468         -Wnested-externs -Winline -Wshadow"
2469
2470 if test "$GCC" = yes; then
2471         CC=gcc                          ; 
2472 ### May need per-OS attention
2473 ### Example: -D_POSIX_SOURCE: needed on Linux but harms Solaris.
2474         case $OS in
2475         linux)
2476                 OS_CFLAGS="-ansi -D_POSIX_SOURCE -pedantic"
2477                 LD_D="gcc -shared -Xlinker -x"
2478                 WARNINGS="$GCC_WARNINGS"
2479                 PIC="-fPIC"
2480                 DYNTYPE=so
2481                 LD=ld                           
2482                 LD_L="$LD -x -shared"
2483                 RANLIB=ranlib
2484                 STRIP=strip
2485                 CC_STATIC="-Xlinker -export-dynamic"
2486                 ;;
2487         sunos)
2488                 OS_CFLAGS="-ansi -pedantic"
2489                 LD_D="gcc -shared -Xlinker -x"
2490                 WARNINGS="$GCC_WARNINGS"
2491                 PIC="-fPIC"
2492                 DYNTYPE=so
2493                 LD=ld                           
2494                 LD_L="$LD -x -shared"
2495                 RANLIB=ranlib
2496                 STRIP=strip
2497                 CC_STATIC="-Xlinker -export-dynamic"
2498                 ;;
2499         aix)
2500                 OS_CFLAGS=""
2501                 DYNTYPE=lo
2502                 LD=ld                           
2503                 LD_L=ld -bexpall -bM:SRE -bnoentry
2504                 LD_D="$LD_L"
2505                 RANLIB=ranlib
2506                 STRIP=strip
2507                 ;;
2508         *)
2509                 OS_CFLAGS=""
2510                 ;;
2511         esac
2512 else
2513 ###
2514 ### Non-gcc needs attention on per-OS basis
2515 ###
2516         case "$OS" in
2517         darwin)
2518 # add some stuff here (see sourceforge bug 534205)
2519 # DOCDIR=/System/Documentation/Administration/Libraries/PAM
2520 # MANDIR=/usr/share/man
2521                 ;;
2522         solaris)
2523             ### Support for Solaris-C
2524             OS_CFLAGS=""
2525             WARNINGS=""
2526             PIC="-K pic"
2527             LD=ld
2528             LD_D="cc -z text -G -R."
2529             LD_L="$LD_D"
2530             RANLIB=ranlib
2531             STRIP=strip
2532             CC_STATIC=
2533             ;;
2534         irix*)
2535             OSRELEASE=`uname -r`
2536             if test "$OSRELEASE" = 6.5; then
2537                 OS_CFLAGS=""
2538                 WARNINGS="-fullwarn"
2539                 PIC=                    #PIC code is default for IRIX
2540                 LD="cc -shared"         # modules friendly approach
2541                 LD_D="cc -shared"
2542                 LD_L="ld -G -z redlocsym"
2543                 RANLIB=echo
2544                 STRIP=strip
2545                 CC_STATIC=
2546             else
2547                 echo "IRIX prior to 6.5 not allowed for"
2548                 exit
2549             fi
2550             ;;
2551        *) echo "Native compiler on $OS is not yet supported"
2552                exit
2553             ;;
2554        esac
2555 fi
2556
2557
2558
2559
2560
2561
2562
2563
2564
2565
2566
2567
2568 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
2569 echo "configure:2570: checking whether byte ordering is bigendian" >&5
2570 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
2571   echo $ac_n "(cached) $ac_c" 1>&6
2572 else
2573   ac_cv_c_bigendian=unknown
2574 # See if sys/param.h defines the BYTE_ORDER macro.
2575 cat > conftest.$ac_ext <<EOF
2576 #line 2577 "configure"
2577 #include "confdefs.h"
2578 #include <sys/types.h>
2579 #include <sys/param.h>
2580 int main() {
2581
2582 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
2583  bogus endian macros
2584 #endif
2585 ; return 0; }
2586 EOF
2587 if { (eval echo configure:2588: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2588   rm -rf conftest*
2589   # It does; now see whether it defined to BIG_ENDIAN or not.
2590 cat > conftest.$ac_ext <<EOF
2591 #line 2592 "configure"
2592 #include "confdefs.h"
2593 #include <sys/types.h>
2594 #include <sys/param.h>
2595 int main() {
2596
2597 #if BYTE_ORDER != BIG_ENDIAN
2598  not big endian
2599 #endif
2600 ; return 0; }
2601 EOF
2602 if { (eval echo configure:2603: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2603   rm -rf conftest*
2604   ac_cv_c_bigendian=yes
2605 else
2606   echo "configure: failed program was:" >&5
2607   cat conftest.$ac_ext >&5
2608   rm -rf conftest*
2609   ac_cv_c_bigendian=no
2610 fi
2611 rm -f conftest*
2612 else
2613   echo "configure: failed program was:" >&5
2614   cat conftest.$ac_ext >&5
2615 fi
2616 rm -f conftest*
2617 if test $ac_cv_c_bigendian = unknown; then
2618 if test "$cross_compiling" = yes; then
2619     { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
2620 else
2621   cat > conftest.$ac_ext <<EOF
2622 #line 2623 "configure"
2623 #include "confdefs.h"
2624 main () {
2625   /* Are we little or big endian?  From Harbison&Steele.  */
2626   union
2627   {
2628     long l;
2629     char c[sizeof (long)];
2630   } u;
2631   u.l = 1;
2632   exit (u.c[sizeof (long) - 1] == 1);
2633 }
2634 EOF
2635 if { (eval echo configure:2636: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2636 then
2637   ac_cv_c_bigendian=no
2638 else
2639   echo "configure: failed program was:" >&5
2640   cat conftest.$ac_ext >&5
2641   rm -fr conftest*
2642   ac_cv_c_bigendian=yes
2643 fi
2644 rm -fr conftest*
2645 fi
2646
2647 fi
2648 fi
2649
2650 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
2651 if test $ac_cv_c_bigendian = yes; then
2652   cat >> confdefs.h <<\EOF
2653 #define WORDS_BIGENDIAN 1
2654 EOF
2655
2656 fi
2657
2658 echo $ac_n "checking for working const""... $ac_c" 1>&6
2659 echo "configure:2660: checking for working const" >&5
2660 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
2661   echo $ac_n "(cached) $ac_c" 1>&6
2662 else
2663   cat > conftest.$ac_ext <<EOF
2664 #line 2665 "configure"
2665 #include "confdefs.h"
2666
2667 int main() {
2668
2669 /* Ultrix mips cc rejects this.  */
2670 typedef int charset[2]; const charset x;
2671 /* SunOS 4.1.1 cc rejects this.  */
2672 char const *const *ccp;
2673 char **p;
2674 /* NEC SVR4.0.2 mips cc rejects this.  */
2675 struct point {int x, y;};
2676 static struct point const zero = {0,0};
2677 /* AIX XL C 1.02.0.0 rejects this.
2678    It does not let you subtract one const X* pointer from another in an arm
2679    of an if-expression whose if-part is not a constant expression */
2680 const char *g = "string";
2681 ccp = &g + (g ? g-g : 0);
2682 /* HPUX 7.0 cc rejects these. */
2683 ++ccp;
2684 p = (char**) ccp;
2685 ccp = (char const *const *) p;
2686 { /* SCO 3.2v4 cc rejects this.  */
2687   char *t;
2688   char const *s = 0 ? (char *) 0 : (char const *) 0;
2689
2690   *t++ = 0;
2691 }
2692 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
2693   int x[] = {25, 17};
2694   const int *foo = &x[0];
2695   ++foo;
2696 }
2697 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
2698   typedef const int *iptr;
2699   iptr p = 0;
2700   ++p;
2701 }
2702 { /* AIX XL C 1.02.0.0 rejects this saying
2703      "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
2704   struct s { int j; const int *ap[3]; };
2705   struct s *b; b->j = 5;
2706 }
2707 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
2708   const int foo = 10;
2709 }
2710
2711 ; return 0; }
2712 EOF
2713 if { (eval echo configure:2714: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2714   rm -rf conftest*
2715   ac_cv_c_const=yes
2716 else
2717   echo "configure: failed program was:" >&5
2718   cat conftest.$ac_ext >&5
2719   rm -rf conftest*
2720   ac_cv_c_const=no
2721 fi
2722 rm -f conftest*
2723 fi
2724
2725 echo "$ac_t""$ac_cv_c_const" 1>&6
2726 if test $ac_cv_c_const = no; then
2727   cat >> confdefs.h <<\EOF
2728 #define const 
2729 EOF
2730
2731 fi
2732
2733 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
2734 echo "configure:2735: checking for uid_t in sys/types.h" >&5
2735 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
2736   echo $ac_n "(cached) $ac_c" 1>&6
2737 else
2738   cat > conftest.$ac_ext <<EOF
2739 #line 2740 "configure"
2740 #include "confdefs.h"
2741 #include <sys/types.h>
2742 EOF
2743 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2744   egrep "uid_t" >/dev/null 2>&1; then
2745   rm -rf conftest*
2746   ac_cv_type_uid_t=yes
2747 else
2748   rm -rf conftest*
2749   ac_cv_type_uid_t=no
2750 fi
2751 rm -f conftest*
2752
2753 fi
2754
2755 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
2756 if test $ac_cv_type_uid_t = no; then
2757   cat >> confdefs.h <<\EOF
2758 #define uid_t int
2759 EOF
2760
2761   cat >> confdefs.h <<\EOF
2762 #define gid_t int
2763 EOF
2764
2765 fi
2766
2767 echo $ac_n "checking for off_t""... $ac_c" 1>&6
2768 echo "configure:2769: checking for off_t" >&5
2769 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
2770   echo $ac_n "(cached) $ac_c" 1>&6
2771 else
2772   cat > conftest.$ac_ext <<EOF
2773 #line 2774 "configure"
2774 #include "confdefs.h"
2775 #include <sys/types.h>
2776 #if STDC_HEADERS
2777 #include <stdlib.h>
2778 #include <stddef.h>
2779 #endif
2780 EOF
2781 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2782   egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2783   rm -rf conftest*
2784   ac_cv_type_off_t=yes
2785 else
2786   rm -rf conftest*
2787   ac_cv_type_off_t=no
2788 fi
2789 rm -f conftest*
2790
2791 fi
2792 echo "$ac_t""$ac_cv_type_off_t" 1>&6
2793 if test $ac_cv_type_off_t = no; then
2794   cat >> confdefs.h <<\EOF
2795 #define off_t long
2796 EOF
2797
2798 fi
2799
2800 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
2801 echo "configure:2802: checking for pid_t" >&5
2802 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
2803   echo $ac_n "(cached) $ac_c" 1>&6
2804 else
2805   cat > conftest.$ac_ext <<EOF
2806 #line 2807 "configure"
2807 #include "confdefs.h"
2808 #include <sys/types.h>
2809 #if STDC_HEADERS
2810 #include <stdlib.h>
2811 #include <stddef.h>
2812 #endif
2813 EOF
2814 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2815   egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2816   rm -rf conftest*
2817   ac_cv_type_pid_t=yes
2818 else
2819   rm -rf conftest*
2820   ac_cv_type_pid_t=no
2821 fi
2822 rm -f conftest*
2823
2824 fi
2825 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
2826 if test $ac_cv_type_pid_t = no; then
2827   cat >> confdefs.h <<\EOF
2828 #define pid_t int
2829 EOF
2830
2831 fi
2832
2833 echo $ac_n "checking for size_t""... $ac_c" 1>&6
2834 echo "configure:2835: checking for size_t" >&5
2835 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
2836   echo $ac_n "(cached) $ac_c" 1>&6
2837 else
2838   cat > conftest.$ac_ext <<EOF
2839 #line 2840 "configure"
2840 #include "confdefs.h"
2841 #include <sys/types.h>
2842 #if STDC_HEADERS
2843 #include <stdlib.h>
2844 #include <stddef.h>
2845 #endif
2846 EOF
2847 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2848   egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2849   rm -rf conftest*
2850   ac_cv_type_size_t=yes
2851 else
2852   rm -rf conftest*
2853   ac_cv_type_size_t=no
2854 fi
2855 rm -f conftest*
2856
2857 fi
2858 echo "$ac_t""$ac_cv_type_size_t" 1>&6
2859 if test $ac_cv_type_size_t = no; then
2860   cat >> confdefs.h <<\EOF
2861 #define size_t unsigned
2862 EOF
2863
2864 fi
2865
2866 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
2867 echo "configure:2868: checking whether time.h and sys/time.h may both be included" >&5
2868 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
2869   echo $ac_n "(cached) $ac_c" 1>&6
2870 else
2871   cat > conftest.$ac_ext <<EOF
2872 #line 2873 "configure"
2873 #include "confdefs.h"
2874 #include <sys/types.h>
2875 #include <sys/time.h>
2876 #include <time.h>
2877 int main() {
2878 struct tm *tp;
2879 ; return 0; }
2880 EOF
2881 if { (eval echo configure:2882: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2882   rm -rf conftest*
2883   ac_cv_header_time=yes
2884 else
2885   echo "configure: failed program was:" >&5
2886   cat conftest.$ac_ext >&5
2887   rm -rf conftest*
2888   ac_cv_header_time=no
2889 fi
2890 rm -f conftest*
2891 fi
2892
2893 echo "$ac_t""$ac_cv_header_time" 1>&6
2894 if test $ac_cv_header_time = yes; then
2895   cat >> confdefs.h <<\EOF
2896 #define TIME_WITH_SYS_TIME 1
2897 EOF
2898
2899 fi
2900
2901 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
2902 echo "configure:2903: checking whether struct tm is in sys/time.h or time.h" >&5
2903 if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then
2904   echo $ac_n "(cached) $ac_c" 1>&6
2905 else
2906   cat > conftest.$ac_ext <<EOF
2907 #line 2908 "configure"
2908 #include "confdefs.h"
2909 #include <sys/types.h>
2910 #include <time.h>
2911 int main() {
2912 struct tm *tp; tp->tm_sec;
2913 ; return 0; }
2914 EOF
2915 if { (eval echo configure:2916: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2916   rm -rf conftest*
2917   ac_cv_struct_tm=time.h
2918 else
2919   echo "configure: failed program was:" >&5
2920   cat conftest.$ac_ext >&5
2921   rm -rf conftest*
2922   ac_cv_struct_tm=sys/time.h
2923 fi
2924 rm -f conftest*
2925 fi
2926
2927 echo "$ac_t""$ac_cv_struct_tm" 1>&6
2928 if test $ac_cv_struct_tm = sys/time.h; then
2929   cat >> confdefs.h <<\EOF
2930 #define TM_IN_SYS_TIME 1
2931 EOF
2932
2933 fi
2934
2935
2936 echo $ac_n "checking type of array argument to getgroups""... $ac_c" 1>&6
2937 echo "configure:2938: checking type of array argument to getgroups" >&5
2938 if eval "test \"`echo '$''{'ac_cv_type_getgroups'+set}'`\" = set"; then
2939   echo $ac_n "(cached) $ac_c" 1>&6
2940 else
2941   if test "$cross_compiling" = yes; then
2942   ac_cv_type_getgroups=cross
2943 else
2944   cat > conftest.$ac_ext <<EOF
2945 #line 2946 "configure"
2946 #include "confdefs.h"
2947
2948 /* Thanks to Mike Rendell for this test.  */
2949 #include <sys/types.h>
2950 #define NGID 256
2951 #undef MAX
2952 #define MAX(x, y) ((x) > (y) ? (x) : (y))
2953 main()
2954 {
2955   gid_t gidset[NGID];
2956   int i, n;
2957   union { gid_t gval; long lval; }  val;
2958
2959   val.lval = -1;
2960   for (i = 0; i < NGID; i++)
2961     gidset[i] = val.gval;
2962   n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
2963                  gidset);
2964   /* Exit non-zero if getgroups seems to require an array of ints.  This
2965      happens when gid_t is short but getgroups modifies an array of ints.  */
2966   exit ((n > 0 && gidset[n] != val.gval) ? 1 : 0);
2967 }
2968
2969 EOF
2970 if { (eval echo configure:2971: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2971 then
2972     ac_cv_type_getgroups=gid_t
2973 else
2974   echo "configure: failed program was:" >&5
2975   cat conftest.$ac_ext >&5
2976   rm -fr conftest*
2977   ac_cv_type_getgroups=int
2978 fi
2979 rm -fr conftest*
2980 fi
2981
2982 if test $ac_cv_type_getgroups = cross; then
2983         cat > conftest.$ac_ext <<EOF
2984 #line 2985 "configure"
2985 #include "confdefs.h"
2986 #include <unistd.h>
2987 EOF
2988 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2989   egrep "getgroups.*int.*gid_t" >/dev/null 2>&1; then
2990   rm -rf conftest*
2991   ac_cv_type_getgroups=gid_t
2992 else
2993   rm -rf conftest*
2994   ac_cv_type_getgroups=int
2995 fi
2996 rm -f conftest*
2997
2998 fi
2999 fi
3000
3001 echo "$ac_t""$ac_cv_type_getgroups" 1>&6
3002 cat >> confdefs.h <<EOF
3003 #define GETGROUPS_T $ac_cv_type_getgroups
3004 EOF
3005
3006
3007 if test $ac_cv_prog_gcc = yes; then
3008     echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
3009 echo "configure:3010: checking whether ${CC-cc} needs -traditional" >&5
3010 if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
3011   echo $ac_n "(cached) $ac_c" 1>&6
3012 else
3013     ac_pattern="Autoconf.*'x'"
3014   cat > conftest.$ac_ext <<EOF
3015 #line 3016 "configure"
3016 #include "confdefs.h"
3017 #include <sgtty.h>
3018 Autoconf TIOCGETP
3019 EOF
3020 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3021   egrep "$ac_pattern" >/dev/null 2>&1; then
3022   rm -rf conftest*
3023   ac_cv_prog_gcc_traditional=yes
3024 else
3025   rm -rf conftest*
3026   ac_cv_prog_gcc_traditional=no
3027 fi
3028 rm -f conftest*
3029
3030
3031   if test $ac_cv_prog_gcc_traditional = no; then
3032     cat > conftest.$ac_ext <<EOF
3033 #line 3034 "configure"
3034 #include "confdefs.h"
3035 #include <termio.h>
3036 Autoconf TCGETA
3037 EOF
3038 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3039   egrep "$ac_pattern" >/dev/null 2>&1; then
3040   rm -rf conftest*
3041   ac_cv_prog_gcc_traditional=yes
3042 fi
3043 rm -f conftest*
3044
3045   fi
3046 fi
3047
3048 echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6
3049   if test $ac_cv_prog_gcc_traditional = yes; then
3050     CC="$CC -traditional"
3051   fi
3052 fi
3053
3054 echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6
3055 echo "configure:3056: checking for 8-bit clean memcmp" >&5
3056 if eval "test \"`echo '$''{'ac_cv_func_memcmp_clean'+set}'`\" = set"; then
3057   echo $ac_n "(cached) $ac_c" 1>&6
3058 else
3059   if test "$cross_compiling" = yes; then
3060   ac_cv_func_memcmp_clean=no
3061 else
3062   cat > conftest.$ac_ext <<EOF
3063 #line 3064 "configure"
3064 #include "confdefs.h"
3065
3066 main()
3067 {
3068   char c0 = 0x40, c1 = 0x80, c2 = 0x81;
3069   exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
3070 }
3071
3072 EOF
3073 if { (eval echo configure:3074: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3074 then
3075   ac_cv_func_memcmp_clean=yes
3076 else
3077   echo "configure: failed program was:" >&5
3078   cat conftest.$ac_ext >&5
3079   rm -fr conftest*
3080   ac_cv_func_memcmp_clean=no
3081 fi
3082 rm -fr conftest*
3083 fi
3084
3085 fi
3086
3087 echo "$ac_t""$ac_cv_func_memcmp_clean" 1>&6
3088 test $ac_cv_func_memcmp_clean = no && LIBOBJS="$LIBOBJS memcmp.${ac_objext}"
3089
3090 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
3091 echo "configure:3092: checking for vprintf" >&5
3092 if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
3093   echo $ac_n "(cached) $ac_c" 1>&6
3094 else
3095   cat > conftest.$ac_ext <<EOF
3096 #line 3097 "configure"
3097 #include "confdefs.h"
3098 /* System header to define __stub macros and hopefully few prototypes,
3099     which can conflict with char vprintf(); below.  */
3100 #include <assert.h>
3101 /* Override any gcc2 internal prototype to avoid an error.  */
3102 /* We use char because int might match the return type of a gcc2
3103     builtin and then its argument prototype would still apply.  */
3104 char vprintf();
3105
3106 int main() {
3107
3108 /* The GNU C library defines this for functions which it implements
3109     to always fail with ENOSYS.  Some functions are actually named
3110     something starting with __ and the normal name is an alias.  */
3111 #if defined (__stub_vprintf) || defined (__stub___vprintf)
3112 choke me
3113 #else
3114 vprintf();
3115 #endif
3116
3117 ; return 0; }
3118 EOF
3119 if { (eval echo configure:3120: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3120   rm -rf conftest*
3121   eval "ac_cv_func_vprintf=yes"
3122 else
3123   echo "configure: failed program was:" >&5
3124   cat conftest.$ac_ext >&5
3125   rm -rf conftest*
3126   eval "ac_cv_func_vprintf=no"
3127 fi
3128 rm -f conftest*
3129 fi
3130
3131 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
3132   echo "$ac_t""yes" 1>&6
3133   cat >> confdefs.h <<\EOF
3134 #define HAVE_VPRINTF 1
3135 EOF
3136
3137 else
3138   echo "$ac_t""no" 1>&6
3139 fi
3140
3141 if test "$ac_cv_func_vprintf" != yes; then
3142 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
3143 echo "configure:3144: checking for _doprnt" >&5
3144 if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
3145   echo $ac_n "(cached) $ac_c" 1>&6
3146 else
3147   cat > conftest.$ac_ext <<EOF
3148 #line 3149 "configure"
3149 #include "confdefs.h"
3150 /* System header to define __stub macros and hopefully few prototypes,
3151     which can conflict with char _doprnt(); below.  */
3152 #include <assert.h>
3153 /* Override any gcc2 internal prototype to avoid an error.  */
3154 /* We use char because int might match the return type of a gcc2
3155     builtin and then its argument prototype would still apply.  */
3156 char _doprnt();
3157
3158 int main() {
3159
3160 /* The GNU C library defines this for functions which it implements
3161     to always fail with ENOSYS.  Some functions are actually named
3162     something starting with __ and the normal name is an alias.  */
3163 #if defined (__stub__doprnt) || defined (__stub____doprnt)
3164 choke me
3165 #else
3166 _doprnt();
3167 #endif
3168
3169 ; return 0; }
3170 EOF
3171 if { (eval echo configure:3172: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3172   rm -rf conftest*
3173   eval "ac_cv_func__doprnt=yes"
3174 else
3175   echo "configure: failed program was:" >&5
3176   cat conftest.$ac_ext >&5
3177   rm -rf conftest*
3178   eval "ac_cv_func__doprnt=no"
3179 fi
3180 rm -f conftest*
3181 fi
3182
3183 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
3184   echo "$ac_t""yes" 1>&6
3185   cat >> confdefs.h <<\EOF
3186 #define HAVE_DOPRNT 1
3187 EOF
3188
3189 else
3190   echo "$ac_t""no" 1>&6
3191 fi
3192
3193 fi
3194
3195 for ac_func in gethostname gettimeofday mkdir select strcspn strdup strerror strspn strstr strtol uname
3196 do
3197 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3198 echo "configure:3199: checking for $ac_func" >&5
3199 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3200   echo $ac_n "(cached) $ac_c" 1>&6
3201 else
3202   cat > conftest.$ac_ext <<EOF
3203 #line 3204 "configure"
3204 #include "confdefs.h"
3205 /* System header to define __stub macros and hopefully few prototypes,
3206     which can conflict with char $ac_func(); below.  */
3207 #include <assert.h>
3208 /* Override any gcc2 internal prototype to avoid an error.  */
3209 /* We use char because int might match the return type of a gcc2
3210     builtin and then its argument prototype would still apply.  */
3211 char $ac_func();
3212
3213 int main() {
3214
3215 /* The GNU C library defines this for functions which it implements
3216     to always fail with ENOSYS.  Some functions are actually named
3217     something starting with __ and the normal name is an alias.  */
3218 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3219 choke me
3220 #else
3221 $ac_func();
3222 #endif
3223
3224 ; return 0; }
3225 EOF
3226 if { (eval echo configure:3227: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3227   rm -rf conftest*
3228   eval "ac_cv_func_$ac_func=yes"
3229 else
3230   echo "configure: failed program was:" >&5
3231   cat conftest.$ac_ext >&5
3232   rm -rf conftest*
3233   eval "ac_cv_func_$ac_func=no"
3234 fi
3235 rm -f conftest*
3236 fi
3237
3238 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3239   echo "$ac_t""yes" 1>&6
3240     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3241   cat >> confdefs.h <<EOF
3242 #define $ac_tr_func 1
3243 EOF
3244  
3245 else
3246   echo "$ac_t""no" 1>&6
3247 fi
3248 done
3249
3250
3251 for ac_func in getpwnam_r getgrnam_r
3252 do
3253 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3254 echo "configure:3255: checking for $ac_func" >&5
3255 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3256   echo $ac_n "(cached) $ac_c" 1>&6
3257 else
3258   cat > conftest.$ac_ext <<EOF
3259 #line 3260 "configure"
3260 #include "confdefs.h"
3261 /* System header to define __stub macros and hopefully few prototypes,
3262     which can conflict with char $ac_func(); below.  */
3263 #include <assert.h>
3264 /* Override any gcc2 internal prototype to avoid an error.  */
3265 /* We use char because int might match the return type of a gcc2
3266     builtin and then its argument prototype would still apply.  */
3267 char $ac_func();
3268
3269 int main() {
3270
3271 /* The GNU C library defines this for functions which it implements
3272     to always fail with ENOSYS.  Some functions are actually named
3273     something starting with __ and the normal name is an alias.  */
3274 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3275 choke me
3276 #else
3277 $ac_func();
3278 #endif
3279
3280 ; return 0; }
3281 EOF
3282 if { (eval echo configure:3283: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3283   rm -rf conftest*
3284   eval "ac_cv_func_$ac_func=yes"
3285 else
3286   echo "configure: failed program was:" >&5
3287   cat conftest.$ac_ext >&5
3288   rm -rf conftest*
3289   eval "ac_cv_func_$ac_func=no"
3290 fi
3291 rm -f conftest*
3292 fi
3293
3294 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3295   echo "$ac_t""yes" 1>&6
3296     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3297   cat >> confdefs.h <<EOF
3298 #define $ac_tr_func 1
3299 EOF
3300  
3301 else
3302   echo "$ac_t""no" 1>&6
3303 fi
3304 done
3305
3306
3307 # Extract the first word of "sgml2txt", so it can be a program name with args.
3308 set dummy sgml2txt; ac_word=$2
3309 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3310 echo "configure:3311: checking for $ac_word" >&5
3311 if eval "test \"`echo '$''{'ac_cv_prog_HAVE_SGML2TXT'+set}'`\" = set"; then
3312   echo $ac_n "(cached) $ac_c" 1>&6
3313 else
3314   if test -n "$HAVE_SGML2TXT"; then
3315   ac_cv_prog_HAVE_SGML2TXT="$HAVE_SGML2TXT" # Let the user override the test.
3316 else
3317   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
3318   ac_dummy="$PATH"
3319   for ac_dir in $ac_dummy; do
3320     test -z "$ac_dir" && ac_dir=.
3321     if test -f $ac_dir/$ac_word; then
3322       ac_cv_prog_HAVE_SGML2TXT="yes"
3323       break
3324     fi
3325   done
3326   IFS="$ac_save_ifs"
3327   test -z "$ac_cv_prog_HAVE_SGML2TXT" && ac_cv_prog_HAVE_SGML2TXT="no"
3328 fi
3329 fi
3330 HAVE_SGML2TXT="$ac_cv_prog_HAVE_SGML2TXT"
3331 if test -n "$HAVE_SGML2TXT"; then
3332   echo "$ac_t""$HAVE_SGML2TXT" 1>&6
3333 else
3334   echo "$ac_t""no" 1>&6
3335 fi
3336
3337 # Extract the first word of "sgml2html", so it can be a program name with args.
3338 set dummy sgml2html; ac_word=$2
3339 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3340 echo "configure:3341: checking for $ac_word" >&5
3341 if eval "test \"`echo '$''{'ac_cv_prog_HAVE_SGML2HTML'+set}'`\" = set"; then
3342   echo $ac_n "(cached) $ac_c" 1>&6
3343 else
3344   if test -n "$HAVE_SGML2HTML"; then
3345   ac_cv_prog_HAVE_SGML2HTML="$HAVE_SGML2HTML" # Let the user override the test.
3346 else
3347   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
3348   ac_dummy="$PATH"
3349   for ac_dir in $ac_dummy; do
3350     test -z "$ac_dir" && ac_dir=.
3351     if test -f $ac_dir/$ac_word; then
3352       ac_cv_prog_HAVE_SGML2HTML="yes"
3353       break
3354     fi
3355   done
3356   IFS="$ac_save_ifs"
3357   test -z "$ac_cv_prog_HAVE_SGML2HTML" && ac_cv_prog_HAVE_SGML2HTML="no"
3358 fi
3359 fi
3360 HAVE_SGML2HTML="$ac_cv_prog_HAVE_SGML2HTML"
3361 if test -n "$HAVE_SGML2HTML"; then
3362   echo "$ac_t""$HAVE_SGML2HTML" 1>&6
3363 else
3364   echo "$ac_t""no" 1>&6
3365 fi
3366
3367 # Extract the first word of "sgml2latex", so it can be a program name with args.
3368 set dummy sgml2latex; ac_word=$2
3369 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3370 echo "configure:3371: checking for $ac_word" >&5
3371 if eval "test \"`echo '$''{'ac_cv_prog_HAVE_SGML2LATEX'+set}'`\" = set"; then
3372   echo $ac_n "(cached) $ac_c" 1>&6
3373 else
3374   if test -n "$HAVE_SGML2LATEX"; then
3375   ac_cv_prog_HAVE_SGML2LATEX="$HAVE_SGML2LATEX" # Let the user override the test.
3376 else
3377   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
3378   ac_dummy="$PATH"
3379   for ac_dir in $ac_dummy; do
3380     test -z "$ac_dir" && ac_dir=.
3381     if test -f $ac_dir/$ac_word; then
3382       ac_cv_prog_HAVE_SGML2LATEX="yes"
3383       break
3384     fi
3385   done
3386   IFS="$ac_save_ifs"
3387   test -z "$ac_cv_prog_HAVE_SGML2LATEX" && ac_cv_prog_HAVE_SGML2LATEX="no"
3388 fi
3389 fi
3390 HAVE_SGML2LATEX="$ac_cv_prog_HAVE_SGML2LATEX"
3391 if test -n "$HAVE_SGML2LATEX"; then
3392   echo "$ac_t""$HAVE_SGML2LATEX" 1>&6
3393 else
3394   echo "$ac_t""no" 1>&6
3395 fi
3396
3397 if test $HAVE_SGML2LATEX = "yes" ; then
3398   if sgml2latex -h | grep -e --paper | grep  ' -p ' > /dev/null ; then
3399     PSER="sgml2latex -o ps"
3400   else
3401     PSER="sgml2latex -p"
3402   fi
3403   # Extract the first word of "ps2pdf", so it can be a program name with args.
3404 set dummy ps2pdf; ac_word=$2
3405 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3406 echo "configure:3407: checking for $ac_word" >&5
3407 if eval "test \"`echo '$''{'ac_cv_prog_HAVE_PS2PDF'+set}'`\" = set"; then
3408   echo $ac_n "(cached) $ac_c" 1>&6
3409 else
3410   if test -n "$HAVE_PS2PDF"; then
3411   ac_cv_prog_HAVE_PS2PDF="$HAVE_PS2PDF" # Let the user override the test.
3412 else
3413   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
3414   ac_dummy="$PATH"
3415   for ac_dir in $ac_dummy; do
3416     test -z "$ac_dir" && ac_dir=.
3417     if test -f $ac_dir/$ac_word; then
3418       ac_cv_prog_HAVE_PS2PDF="yes"
3419       break
3420     fi
3421   done
3422   IFS="$ac_save_ifs"
3423   test -z "$ac_cv_prog_HAVE_PS2PDF" && ac_cv_prog_HAVE_PS2PDF="no"
3424 fi
3425 fi
3426 HAVE_PS2PDF="$ac_cv_prog_HAVE_PS2PDF"
3427 if test -n "$HAVE_PS2PDF"; then
3428   echo "$ac_t""$HAVE_PS2PDF" 1>&6
3429 else
3430   echo "$ac_t""no" 1>&6
3431 fi
3432
3433 else
3434   # Extract the first word of "sgml2ps", so it can be a program name with args.
3435 set dummy sgml2ps; ac_word=$2
3436 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3437 echo "configure:3438: checking for $ac_word" >&5
3438 if eval "test \"`echo '$''{'ac_cv_prog_HAVE_SGML2PS'+set}'`\" = set"; then
3439   echo $ac_n "(cached) $ac_c" 1>&6
3440 else
3441   if test -n "$HAVE_SGML2PS"; then
3442   ac_cv_prog_HAVE_SGML2PS="$HAVE_SGML2PS" # Let the user override the test.
3443 else
3444   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
3445   ac_dummy="$PATH"
3446   for ac_dir in $ac_dummy; do
3447     test -z "$ac_dir" && ac_dir=.
3448     if test -f $ac_dir/$ac_word; then
3449       ac_cv_prog_HAVE_SGML2PS="yes"
3450       break
3451     fi
3452   done
3453   IFS="$ac_save_ifs"
3454   test -z "$ac_cv_prog_HAVE_SGML2PS" && ac_cv_prog_HAVE_SGML2PS="no"
3455 fi
3456 fi
3457 HAVE_SGML2PS="$ac_cv_prog_HAVE_SGML2PS"
3458 if test -n "$HAVE_SGML2PS"; then
3459   echo "$ac_t""$HAVE_SGML2PS" 1>&6
3460 else
3461   echo "$ac_t""no" 1>&6
3462 fi
3463
3464   if test $HAVE_SGML2PS = yes ; then
3465     PSER="sgml2ps"
3466   fi
3467 fi
3468
3469
3470
3471 trap '' 1 2 15
3472 cat > confcache <<\EOF
3473 # This file is a shell script that caches the results of configure
3474 # tests run on this system so they can be shared between configure
3475 # scripts and configure runs.  It is not useful on other systems.
3476 # If it contains results you don't want to keep, you may remove or edit it.
3477 #
3478 # By default, configure uses ./config.cache as the cache file,
3479 # creating it if it does not exist already.  You can give configure
3480 # the --cache-file=FILE option to use a different cache file; that is
3481 # what configure does when it calls configure scripts in
3482 # subdirectories, so they share the cache.
3483 # Giving --cache-file=/dev/null disables caching, for debugging configure.
3484 # config.status only pays attention to the cache file if you give it the
3485 # --recheck option to rerun configure.
3486 #
3487 EOF
3488 # The following way of writing the cache mishandles newlines in values,
3489 # but we know of no workaround that is simple, portable, and efficient.
3490 # So, don't put newlines in cache variables' values.
3491 # Ultrix sh set writes to stderr and can't be redirected directly,
3492 # and sets the high bit in the cache file unless we assign to the vars.
3493 (set) 2>&1 |
3494   case `(ac_space=' '; set | grep ac_space) 2>&1` in
3495   *ac_space=\ *)
3496     # `set' does not quote correctly, so add quotes (double-quote substitution
3497     # turns \\\\ into \\, and sed turns \\ into \).
3498     sed -n \
3499       -e "s/'/'\\\\''/g" \
3500       -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
3501     ;;
3502   *)
3503     # `set' quotes correctly as required by POSIX, so do not add quotes.
3504     sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
3505     ;;
3506   esac >> confcache
3507 if cmp -s $cache_file confcache; then
3508   :
3509 else
3510   if test -w $cache_file; then
3511     echo "updating cache $cache_file"
3512     cat confcache > $cache_file
3513   else
3514     echo "not updating unwritable cache $cache_file"
3515   fi
3516 fi
3517 rm -f confcache
3518
3519 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
3520
3521 test "x$prefix" = xNONE && prefix=$ac_default_prefix
3522 # Let make expand exec_prefix.
3523 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
3524
3525 # Any assignment to VPATH causes Sun make to only execute
3526 # the first set of double-colon rules, so remove it if not needed.
3527 # If there is a colon in the path, we need to keep it.
3528 if test "x$srcdir" = x.; then
3529   ac_vpsub='/^[         ]*VPATH[        ]*=[^:]*$/d'
3530 fi
3531
3532 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
3533
3534 DEFS=-DHAVE_CONFIG_H
3535
3536 # Without the "./", some shells look in PATH for config.status.
3537 : ${CONFIG_STATUS=./config.status}
3538
3539 echo creating $CONFIG_STATUS
3540 rm -f $CONFIG_STATUS
3541 cat > $CONFIG_STATUS <<EOF
3542 #! /bin/sh
3543 # Generated automatically by configure.
3544 # Run this file to recreate the current configuration.
3545 # This directory was configured as follows,
3546 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
3547 #
3548 # $0 $ac_configure_args
3549 #
3550 # Compiler output produced by configure, useful for debugging
3551 # configure, is in ./config.log if it exists.
3552
3553 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
3554 for ac_option
3555 do
3556   case "\$ac_option" in
3557   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
3558     echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
3559     exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
3560   -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
3561     echo "$CONFIG_STATUS generated by autoconf version 2.13"
3562     exit 0 ;;
3563   -help | --help | --hel | --he | --h)
3564     echo "\$ac_cs_usage"; exit 0 ;;
3565   *) echo "\$ac_cs_usage"; exit 1 ;;
3566   esac
3567 done
3568
3569 ac_given_srcdir=$srcdir
3570
3571 trap 'rm -fr `echo "Make.Rules _pam_aconf.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
3572 EOF
3573 cat >> $CONFIG_STATUS <<EOF
3574
3575 # Protect against being on the right side of a sed subst in config.status.
3576 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
3577  s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
3578 $ac_vpsub
3579 $extrasub
3580 s%@SHELL@%$SHELL%g
3581 s%@CFLAGS@%$CFLAGS%g
3582 s%@CPPFLAGS@%$CPPFLAGS%g
3583 s%@CXXFLAGS@%$CXXFLAGS%g
3584 s%@FFLAGS@%$FFLAGS%g
3585 s%@DEFS@%$DEFS%g
3586 s%@LDFLAGS@%$LDFLAGS%g
3587 s%@LIBS@%$LIBS%g
3588 s%@exec_prefix@%$exec_prefix%g
3589 s%@prefix@%$prefix%g
3590 s%@program_transform_name@%$program_transform_name%g
3591 s%@bindir@%$bindir%g
3592 s%@sbindir@%$sbindir%g
3593 s%@libexecdir@%$libexecdir%g
3594 s%@datadir@%$datadir%g
3595 s%@sysconfdir@%$sysconfdir%g
3596 s%@sharedstatedir@%$sharedstatedir%g
3597 s%@localstatedir@%$localstatedir%g
3598 s%@libdir@%$libdir%g
3599 s%@includedir@%$includedir%g
3600 s%@oldincludedir@%$oldincludedir%g
3601 s%@infodir@%$infodir%g
3602 s%@mandir@%$mandir%g
3603 s%@LIBPAM_VERSION_MAJOR@%$LIBPAM_VERSION_MAJOR%g
3604 s%@LIBPAM_VERSION_MINOR@%$LIBPAM_VERSION_MINOR%g
3605 s%@LOCALSRCDIR@%$LOCALSRCDIR%g
3606 s%@OS@%$OS%g
3607 s%@CONF_CFLAGS@%$CONF_CFLAGS%g
3608 s%@MKDIR@%$MKDIR%g
3609 s%@SHLIBMODE@%$SHLIBMODE%g
3610 s%@USESONAME@%$USESONAME%g
3611 s%@SOSWITCH@%$SOSWITCH%g
3612 s%@NEEDSONAME@%$NEEDSONAME%g
3613 s%@LDCONFIG@%$LDCONFIG%g
3614 s%@INSTALL@%$INSTALL%g
3615 s%@CC@%$CC%g
3616 s%@YACC@%$YACC%g
3617 s%@LEX@%$LEX%g
3618 s%@LEXLIB@%$LEXLIB%g
3619 s%@LN_S@%$LN_S%g
3620 s%@SET_MAKE@%$SET_MAKE%g
3621 s%@WITH_DEBUG@%$WITH_DEBUG%g
3622 s%@WITH_MEMORY_DEBUG@%$WITH_MEMORY_DEBUG%g
3623 s%@WITH_LIBDEBUG@%$WITH_LIBDEBUG%g
3624 s%@FAKEROOT@%$FAKEROOT%g
3625 s%@SECUREDIR@%$SECUREDIR%g
3626 s%@SCONFIGDIR@%$SCONFIGDIR%g
3627 s%@SUPLEMENTED@%$SUPLEMENTED%g
3628 s%@INCLUDEDIR@%$INCLUDEDIR%g
3629 s%@DOCDIR@%$DOCDIR%g
3630 s%@MANDIR@%$MANDIR%g
3631 s%@WITH_PAMLOCKING@%$WITH_PAMLOCKING%g
3632 s%@PAM_READ_BOTH_CONFS@%$PAM_READ_BOTH_CONFS%g
3633 s%@STATIC_LIBPAM@%$STATIC_LIBPAM%g
3634 s%@DYNAMIC_LIBPAM@%$DYNAMIC_LIBPAM%g
3635 s%@DYNAMIC@%$DYNAMIC%g
3636 s%@STATIC@%$STATIC%g
3637 s%@WITH_LCKPWDF@%$WITH_LCKPWDF%g
3638 s%@CPP@%$CPP%g
3639 s%@PAM_NEEDS_LIBC@%$PAM_NEEDS_LIBC%g
3640 s%@HAVE_LCKPWDF@%$HAVE_LCKPWDF%g
3641 s%@LIBDL@%$LIBDL%g
3642 s%@HAVE_LIBCRACK@%$HAVE_LIBCRACK%g
3643 s%@HAVE_LIBCRYPT@%$HAVE_LIBCRYPT%g
3644 s%@HAVE_LIBUTIL@%$HAVE_LIBUTIL%g
3645 s%@HAVE_LIBNDBM@%$HAVE_LIBNDBM%g
3646 s%@HAVE_LIBDB@%$HAVE_LIBDB%g
3647 s%@HAVE_LIBFL@%$HAVE_LIBFL%g
3648 s%@HAVE_LIBNSL@%$HAVE_LIBNSL%g
3649 s%@HAVE_LIBPWDB@%$HAVE_LIBPWDB%g
3650 s%@HAVE_LIBFLEX@%$HAVE_LIBFLEX%g
3651 s%@HAVE_LIBLEX@%$HAVE_LIBLEX%g
3652 s%@HAVE_NDBM_H@%$HAVE_NDBM_H%g
3653 s%@CRACKLIB_DICTPATH@%$CRACKLIB_DICTPATH%g
3654 s%@DYNTYPE@%$DYNTYPE%g
3655 s%@OS_CFLAGS@%$OS_CFLAGS%g
3656 s%@WARNINGS@%$WARNINGS%g
3657 s%@PIC@%$PIC%g
3658 s%@LD@%$LD%g
3659 s%@LD_D@%$LD_D%g
3660 s%@LD_L@%$LD_L%g
3661 s%@RANLIB@%$RANLIB%g
3662 s%@STRIP@%$STRIP%g
3663 s%@CC_STATIC@%$CC_STATIC%g
3664 s%@LIBOBJS@%$LIBOBJS%g
3665 s%@HAVE_SGML2TXT@%$HAVE_SGML2TXT%g
3666 s%@HAVE_SGML2HTML@%$HAVE_SGML2HTML%g
3667 s%@HAVE_SGML2LATEX@%$HAVE_SGML2LATEX%g
3668 s%@HAVE_PS2PDF@%$HAVE_PS2PDF%g
3669 s%@HAVE_SGML2PS@%$HAVE_SGML2PS%g
3670 s%@PSER@%$PSER%g
3671 s%@PS2PDF@%$PS2PDF%g
3672
3673 CEOF
3674 EOF
3675
3676 cat >> $CONFIG_STATUS <<\EOF
3677
3678 # Split the substitutions into bite-sized pieces for seds with
3679 # small command number limits, like on Digital OSF/1 and HP-UX.
3680 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
3681 ac_file=1 # Number of current file.
3682 ac_beg=1 # First line for current file.
3683 ac_end=$ac_max_sed_cmds # Line after last line for current file.
3684 ac_more_lines=:
3685 ac_sed_cmds=""
3686 while $ac_more_lines; do
3687   if test $ac_beg -gt 1; then
3688     sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
3689   else
3690     sed "${ac_end}q" conftest.subs > conftest.s$ac_file
3691   fi
3692   if test ! -s conftest.s$ac_file; then
3693     ac_more_lines=false
3694     rm -f conftest.s$ac_file
3695   else
3696     if test -z "$ac_sed_cmds"; then
3697       ac_sed_cmds="sed -f conftest.s$ac_file"
3698     else
3699       ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
3700     fi
3701     ac_file=`expr $ac_file + 1`
3702     ac_beg=$ac_end
3703     ac_end=`expr $ac_end + $ac_max_sed_cmds`
3704   fi
3705 done
3706 if test -z "$ac_sed_cmds"; then
3707   ac_sed_cmds=cat
3708 fi
3709 EOF
3710
3711 cat >> $CONFIG_STATUS <<EOF
3712
3713 CONFIG_FILES=\${CONFIG_FILES-"Make.Rules"}
3714 EOF
3715 cat >> $CONFIG_STATUS <<\EOF
3716 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
3717   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3718   case "$ac_file" in
3719   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
3720        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
3721   *) ac_file_in="${ac_file}.in" ;;
3722   esac
3723
3724   # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
3725
3726   # Remove last slash and all that follows it.  Not all systems have dirname.
3727   ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
3728   if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3729     # The file is in a subdirectory.
3730     test ! -d "$ac_dir" && mkdir "$ac_dir"
3731     ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
3732     # A "../" for each directory in $ac_dir_suffix.
3733     ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
3734   else
3735     ac_dir_suffix= ac_dots=
3736   fi
3737
3738   case "$ac_given_srcdir" in
3739   .)  srcdir=.
3740       if test -z "$ac_dots"; then top_srcdir=.
3741       else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
3742   /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
3743   *) # Relative path.
3744     srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
3745     top_srcdir="$ac_dots$ac_given_srcdir" ;;
3746   esac
3747
3748
3749   echo creating "$ac_file"
3750   rm -f "$ac_file"
3751   configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
3752   case "$ac_file" in
3753   *Makefile*) ac_comsub="1i\\
3754 # $configure_input" ;;
3755   *) ac_comsub= ;;
3756   esac
3757
3758   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3759   sed -e "$ac_comsub
3760 s%@configure_input@%$configure_input%g
3761 s%@srcdir@%$srcdir%g
3762 s%@top_srcdir@%$top_srcdir%g
3763 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
3764 fi; done
3765 rm -f conftest.s*
3766
3767 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
3768 # NAME is the cpp macro being defined and VALUE is the value it is being given.
3769 #
3770 # ac_d sets the value in "#define NAME VALUE" lines.
3771 ac_dA='s%^\([   ]*\)#\([        ]*define[       ][      ]*\)'
3772 ac_dB='\([      ][      ]*\)[^  ]*%\1#\2'
3773 ac_dC='\3'
3774 ac_dD='%g'
3775 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
3776 ac_uA='s%^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
3777 ac_uB='\([      ]\)%\1#\2define\3'
3778 ac_uC=' '
3779 ac_uD='\4%g'
3780 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
3781 ac_eA='s%^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
3782 ac_eB='$%\1#\2define\3'
3783 ac_eC=' '
3784 ac_eD='%g'
3785
3786 if test "${CONFIG_HEADERS+set}" != set; then
3787 EOF
3788 cat >> $CONFIG_STATUS <<EOF
3789   CONFIG_HEADERS="_pam_aconf.h"
3790 EOF
3791 cat >> $CONFIG_STATUS <<\EOF
3792 fi
3793 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
3794   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3795   case "$ac_file" in
3796   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
3797        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
3798   *) ac_file_in="${ac_file}.in" ;;
3799   esac
3800
3801   echo creating $ac_file
3802
3803   rm -f conftest.frag conftest.in conftest.out
3804   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3805   cat $ac_file_inputs > conftest.in
3806
3807 EOF
3808
3809 # Transform confdefs.h into a sed script conftest.vals that substitutes
3810 # the proper values into config.h.in to produce config.h.  And first:
3811 # Protect against being on the right side of a sed subst in config.status.
3812 # Protect against being in an unquoted here document in config.status.
3813 rm -f conftest.vals
3814 cat > conftest.hdr <<\EOF
3815 s/[\\&%]/\\&/g
3816 s%[\\$`]%\\&%g
3817 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
3818 s%ac_d%ac_u%gp
3819 s%ac_u%ac_e%gp
3820 EOF
3821 sed -n -f conftest.hdr confdefs.h > conftest.vals
3822 rm -f conftest.hdr
3823
3824 # This sed command replaces #undef with comments.  This is necessary, for
3825 # example, in the case of _POSIX_SOURCE, which is predefined and required
3826 # on some systems where configure will not decide to define it.
3827 cat >> conftest.vals <<\EOF
3828 s%^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
3829 EOF
3830
3831 # Break up conftest.vals because some shells have a limit on
3832 # the size of here documents, and old seds have small limits too.
3833
3834 rm -f conftest.tail
3835 while :
3836 do
3837   ac_lines=`grep -c . conftest.vals`
3838   # grep -c gives empty output for an empty file on some AIX systems.
3839   if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
3840   # Write a limited-size here document to conftest.frag.
3841   echo '  cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
3842   sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
3843   echo 'CEOF
3844   sed -f conftest.frag conftest.in > conftest.out
3845   rm -f conftest.in
3846   mv conftest.out conftest.in
3847 ' >> $CONFIG_STATUS
3848   sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
3849   rm -f conftest.vals
3850   mv conftest.tail conftest.vals
3851 done
3852 rm -f conftest.vals
3853
3854 cat >> $CONFIG_STATUS <<\EOF
3855   rm -f conftest.frag conftest.h
3856   echo "/* $ac_file.  Generated automatically by configure.  */" > conftest.h
3857   cat conftest.in >> conftest.h
3858   rm -f conftest.in
3859   if cmp -s $ac_file conftest.h 2>/dev/null; then
3860     echo "$ac_file is unchanged"
3861     rm -f conftest.h
3862   else
3863     # Remove last slash and all that follows it.  Not all systems have dirname.
3864       ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
3865       if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3866       # The file is in a subdirectory.
3867       test ! -d "$ac_dir" && mkdir "$ac_dir"
3868     fi
3869     rm -f $ac_file
3870     mv conftest.h $ac_file
3871   fi
3872 fi; done
3873
3874 EOF
3875 cat >> $CONFIG_STATUS <<EOF
3876
3877 EOF
3878 cat >> $CONFIG_STATUS <<\EOF
3879
3880 exit 0
3881 EOF
3882 chmod +x $CONFIG_STATUS
3883 rm -fr confdefs* $ac_clean_files
3884 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
3885