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