]> granicus.if.org Git - linux-pam/blob - configure
Relevant BUGIDs: 416229
[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
578 CC=gcc                          ; 
579 CONF_CFLAGS=                    ; 
580 MKDIR="mkdir -p"                ; 
581 LOCALSRCDIR=`/bin/pwd`          ; 
582 OS=`uname|sed -e 'y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/'`
583
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
1650 echo $ac_n "checking for yylex in -lfl""... $ac_c" 1>&6
1651 echo "configure:1652: checking for yylex in -lfl" >&5
1652 ac_lib_var=`echo fl'_'yylex | 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="-lfl HAVE_LIBFL=no $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 yylex();
1665
1666 int main() {
1667 yylex()
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   yyterminate
1686 else
1687   echo "$ac_t""no" 1>&6
1688 HAVE_LIBFL=yes ; cat >> confdefs.h <<\EOF
1689 #define HAVE_LIBFL 1
1690 EOF
1691
1692 fi
1693
1694
1695 echo $ac_n "checking for yp_maplist in -lnsl""... $ac_c" 1>&6
1696 echo "configure:1697: checking for yp_maplist in -lnsl" >&5
1697 ac_lib_var=`echo nsl'_'yp_maplist | sed 'y%./+-%__p_%'`
1698 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1699   echo $ac_n "(cached) $ac_c" 1>&6
1700 else
1701   ac_save_LIBS="$LIBS"
1702 LIBS="-lnsl  $LIBS"
1703 cat > conftest.$ac_ext <<EOF
1704 #line 1705 "configure"
1705 #include "confdefs.h"
1706 /* Override any gcc2 internal prototype to avoid an error.  */
1707 /* We use char because int might match the return type of a gcc2
1708     builtin and then its argument prototype would still apply.  */
1709 char yp_maplist();
1710
1711 int main() {
1712 yp_maplist()
1713 ; return 0; }
1714 EOF
1715 if { (eval echo configure:1716: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1716   rm -rf conftest*
1717   eval "ac_cv_lib_$ac_lib_var=yes"
1718 else
1719   echo "configure: failed program was:" >&5
1720   cat conftest.$ac_ext >&5
1721   rm -rf conftest*
1722   eval "ac_cv_lib_$ac_lib_var=no"
1723 fi
1724 rm -f conftest*
1725 LIBS="$ac_save_LIBS"
1726
1727 fi
1728 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1729   echo "$ac_t""yes" 1>&6
1730   HAVE_LIBNSL=yes ; cat >> confdefs.h <<\EOF
1731 #define HAVE_LIBNSL 1
1732 EOF
1733
1734 else
1735   echo "$ac_t""no" 1>&6
1736 HAVE_LIBNSL=no
1737 fi
1738
1739
1740 echo $ac_n "checking for pwdb_db_name in -lpwdb""... $ac_c" 1>&6
1741 echo "configure:1742: checking for pwdb_db_name in -lpwdb" >&5
1742 ac_lib_var=`echo pwdb'_'pwdb_db_name | sed 'y%./+-%__p_%'`
1743 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1744   echo $ac_n "(cached) $ac_c" 1>&6
1745 else
1746   ac_save_LIBS="$LIBS"
1747 LIBS="-lpwdb  $LIBS"
1748 cat > conftest.$ac_ext <<EOF
1749 #line 1750 "configure"
1750 #include "confdefs.h"
1751 /* Override any gcc2 internal prototype to avoid an error.  */
1752 /* We use char because int might match the return type of a gcc2
1753     builtin and then its argument prototype would still apply.  */
1754 char pwdb_db_name();
1755
1756 int main() {
1757 pwdb_db_name()
1758 ; return 0; }
1759 EOF
1760 if { (eval echo configure:1761: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1761   rm -rf conftest*
1762   eval "ac_cv_lib_$ac_lib_var=yes"
1763 else
1764   echo "configure: failed program was:" >&5
1765   cat conftest.$ac_ext >&5
1766   rm -rf conftest*
1767   eval "ac_cv_lib_$ac_lib_var=no"
1768 fi
1769 rm -f conftest*
1770 LIBS="$ac_save_LIBS"
1771
1772 fi
1773 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1774   echo "$ac_t""yes" 1>&6
1775   HAVE_LIBPWDB=yes ; cat >> confdefs.h <<\EOF
1776 #define HAVE_LIBPWDB 1
1777 EOF
1778
1779 else
1780   echo "$ac_t""no" 1>&6
1781 HAVE_LIBPWDB=no
1782 fi
1783
1784
1785
1786 ac_header_dirent=no
1787 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
1788 do
1789 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1790 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
1791 echo "configure:1792: checking for $ac_hdr that defines DIR" >&5
1792 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
1793   echo $ac_n "(cached) $ac_c" 1>&6
1794 else
1795   cat > conftest.$ac_ext <<EOF
1796 #line 1797 "configure"
1797 #include "confdefs.h"
1798 #include <sys/types.h>
1799 #include <$ac_hdr>
1800 int main() {
1801 DIR *dirp = 0;
1802 ; return 0; }
1803 EOF
1804 if { (eval echo configure:1805: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1805   rm -rf conftest*
1806   eval "ac_cv_header_dirent_$ac_safe=yes"
1807 else
1808   echo "configure: failed program was:" >&5
1809   cat conftest.$ac_ext >&5
1810   rm -rf conftest*
1811   eval "ac_cv_header_dirent_$ac_safe=no"
1812 fi
1813 rm -f conftest*
1814 fi
1815 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
1816   echo "$ac_t""yes" 1>&6
1817     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1818   cat >> confdefs.h <<EOF
1819 #define $ac_tr_hdr 1
1820 EOF
1821  ac_header_dirent=$ac_hdr; break
1822 else
1823   echo "$ac_t""no" 1>&6
1824 fi
1825 done
1826 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
1827 if test $ac_header_dirent = dirent.h; then
1828 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
1829 echo "configure:1830: checking for opendir in -ldir" >&5
1830 ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
1831 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1832   echo $ac_n "(cached) $ac_c" 1>&6
1833 else
1834   ac_save_LIBS="$LIBS"
1835 LIBS="-ldir  $LIBS"
1836 cat > conftest.$ac_ext <<EOF
1837 #line 1838 "configure"
1838 #include "confdefs.h"
1839 /* Override any gcc2 internal prototype to avoid an error.  */
1840 /* We use char because int might match the return type of a gcc2
1841     builtin and then its argument prototype would still apply.  */
1842 char opendir();
1843
1844 int main() {
1845 opendir()
1846 ; return 0; }
1847 EOF
1848 if { (eval echo configure:1849: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1849   rm -rf conftest*
1850   eval "ac_cv_lib_$ac_lib_var=yes"
1851 else
1852   echo "configure: failed program was:" >&5
1853   cat conftest.$ac_ext >&5
1854   rm -rf conftest*
1855   eval "ac_cv_lib_$ac_lib_var=no"
1856 fi
1857 rm -f conftest*
1858 LIBS="$ac_save_LIBS"
1859
1860 fi
1861 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1862   echo "$ac_t""yes" 1>&6
1863   LIBS="$LIBS -ldir"
1864 else
1865   echo "$ac_t""no" 1>&6
1866 fi
1867
1868 else
1869 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
1870 echo "configure:1871: checking for opendir in -lx" >&5
1871 ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'`
1872 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1873   echo $ac_n "(cached) $ac_c" 1>&6
1874 else
1875   ac_save_LIBS="$LIBS"
1876 LIBS="-lx  $LIBS"
1877 cat > conftest.$ac_ext <<EOF
1878 #line 1879 "configure"
1879 #include "confdefs.h"
1880 /* Override any gcc2 internal prototype to avoid an error.  */
1881 /* We use char because int might match the return type of a gcc2
1882     builtin and then its argument prototype would still apply.  */
1883 char opendir();
1884
1885 int main() {
1886 opendir()
1887 ; return 0; }
1888 EOF
1889 if { (eval echo configure:1890: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1890   rm -rf conftest*
1891   eval "ac_cv_lib_$ac_lib_var=yes"
1892 else
1893   echo "configure: failed program was:" >&5
1894   cat conftest.$ac_ext >&5
1895   rm -rf conftest*
1896   eval "ac_cv_lib_$ac_lib_var=no"
1897 fi
1898 rm -f conftest*
1899 LIBS="$ac_save_LIBS"
1900
1901 fi
1902 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1903   echo "$ac_t""yes" 1>&6
1904   LIBS="$LIBS -lx"
1905 else
1906   echo "$ac_t""no" 1>&6
1907 fi
1908
1909 fi
1910
1911 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1912 echo "configure:1913: checking for ANSI C header files" >&5
1913 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1914   echo $ac_n "(cached) $ac_c" 1>&6
1915 else
1916   cat > conftest.$ac_ext <<EOF
1917 #line 1918 "configure"
1918 #include "confdefs.h"
1919 #include <stdlib.h>
1920 #include <stdarg.h>
1921 #include <string.h>
1922 #include <float.h>
1923 EOF
1924 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1925 { (eval echo configure:1926: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1926 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1927 if test -z "$ac_err"; then
1928   rm -rf conftest*
1929   ac_cv_header_stdc=yes
1930 else
1931   echo "$ac_err" >&5
1932   echo "configure: failed program was:" >&5
1933   cat conftest.$ac_ext >&5
1934   rm -rf conftest*
1935   ac_cv_header_stdc=no
1936 fi
1937 rm -f conftest*
1938
1939 if test $ac_cv_header_stdc = yes; then
1940   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1941 cat > conftest.$ac_ext <<EOF
1942 #line 1943 "configure"
1943 #include "confdefs.h"
1944 #include <string.h>
1945 EOF
1946 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1947   egrep "memchr" >/dev/null 2>&1; then
1948   :
1949 else
1950   rm -rf conftest*
1951   ac_cv_header_stdc=no
1952 fi
1953 rm -f conftest*
1954
1955 fi
1956
1957 if test $ac_cv_header_stdc = yes; then
1958   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1959 cat > conftest.$ac_ext <<EOF
1960 #line 1961 "configure"
1961 #include "confdefs.h"
1962 #include <stdlib.h>
1963 EOF
1964 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1965   egrep "free" >/dev/null 2>&1; then
1966   :
1967 else
1968   rm -rf conftest*
1969   ac_cv_header_stdc=no
1970 fi
1971 rm -f conftest*
1972
1973 fi
1974
1975 if test $ac_cv_header_stdc = yes; then
1976   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1977 if test "$cross_compiling" = yes; then
1978   :
1979 else
1980   cat > conftest.$ac_ext <<EOF
1981 #line 1982 "configure"
1982 #include "confdefs.h"
1983 #include <ctype.h>
1984 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1985 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1986 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1987 int main () { int i; for (i = 0; i < 256; i++)
1988 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1989 exit (0); }
1990
1991 EOF
1992 if { (eval echo configure:1993: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1993 then
1994   :
1995 else
1996   echo "configure: failed program was:" >&5
1997   cat conftest.$ac_ext >&5
1998   rm -fr conftest*
1999   ac_cv_header_stdc=no
2000 fi
2001 rm -fr conftest*
2002 fi
2003
2004 fi
2005 fi
2006
2007 echo "$ac_t""$ac_cv_header_stdc" 1>&6
2008 if test $ac_cv_header_stdc = yes; then
2009   cat >> confdefs.h <<\EOF
2010 #define STDC_HEADERS 1
2011 EOF
2012
2013 fi
2014
2015 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
2016 echo "configure:2017: checking for sys/wait.h that is POSIX.1 compatible" >&5
2017 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
2018   echo $ac_n "(cached) $ac_c" 1>&6
2019 else
2020   cat > conftest.$ac_ext <<EOF
2021 #line 2022 "configure"
2022 #include "confdefs.h"
2023 #include <sys/types.h>
2024 #include <sys/wait.h>
2025 #ifndef WEXITSTATUS
2026 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
2027 #endif
2028 #ifndef WIFEXITED
2029 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
2030 #endif
2031 int main() {
2032 int s;
2033 wait (&s);
2034 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
2035 ; return 0; }
2036 EOF
2037 if { (eval echo configure:2038: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2038   rm -rf conftest*
2039   ac_cv_header_sys_wait_h=yes
2040 else
2041   echo "configure: failed program was:" >&5
2042   cat conftest.$ac_ext >&5
2043   rm -rf conftest*
2044   ac_cv_header_sys_wait_h=no
2045 fi
2046 rm -f conftest*
2047 fi
2048
2049 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
2050 if test $ac_cv_header_sys_wait_h = yes; then
2051   cat >> confdefs.h <<\EOF
2052 #define HAVE_SYS_WAIT_H 1
2053 EOF
2054
2055 fi
2056
2057 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
2058 do
2059 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2060 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2061 echo "configure:2062: checking for $ac_hdr" >&5
2062 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2063   echo $ac_n "(cached) $ac_c" 1>&6
2064 else
2065   cat > conftest.$ac_ext <<EOF
2066 #line 2067 "configure"
2067 #include "confdefs.h"
2068 #include <$ac_hdr>
2069 EOF
2070 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2071 { (eval echo configure:2072: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2072 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2073 if test -z "$ac_err"; then
2074   rm -rf conftest*
2075   eval "ac_cv_header_$ac_safe=yes"
2076 else
2077   echo "$ac_err" >&5
2078   echo "configure: failed program was:" >&5
2079   cat conftest.$ac_ext >&5
2080   rm -rf conftest*
2081   eval "ac_cv_header_$ac_safe=no"
2082 fi
2083 rm -f conftest*
2084 fi
2085 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2086   echo "$ac_t""yes" 1>&6
2087     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2088   cat >> confdefs.h <<EOF
2089 #define $ac_tr_hdr 1
2090 EOF
2091  
2092 else
2093   echo "$ac_t""no" 1>&6
2094 fi
2095 done
2096
2097
2098 for ac_hdr in features.h
2099 do
2100 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2101 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2102 echo "configure:2103: checking for $ac_hdr" >&5
2103 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2104   echo $ac_n "(cached) $ac_c" 1>&6
2105 else
2106   cat > conftest.$ac_ext <<EOF
2107 #line 2108 "configure"
2108 #include "confdefs.h"
2109 #include <$ac_hdr>
2110 EOF
2111 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2112 { (eval echo configure:2113: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2113 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2114 if test -z "$ac_err"; then
2115   rm -rf conftest*
2116   eval "ac_cv_header_$ac_safe=yes"
2117 else
2118   echo "$ac_err" >&5
2119   echo "configure: failed program was:" >&5
2120   cat conftest.$ac_ext >&5
2121   rm -rf conftest*
2122   eval "ac_cv_header_$ac_safe=no"
2123 fi
2124 rm -f conftest*
2125 fi
2126 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2127   echo "$ac_t""yes" 1>&6
2128     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2129   cat >> confdefs.h <<EOF
2130 #define $ac_tr_hdr 1
2131 EOF
2132  
2133 else
2134   echo "$ac_t""no" 1>&6
2135 fi
2136 done
2137
2138
2139 for ac_hdr in crypt.h
2140 do
2141 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2142 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2143 echo "configure:2144: checking for $ac_hdr" >&5
2144 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2145   echo $ac_n "(cached) $ac_c" 1>&6
2146 else
2147   cat > conftest.$ac_ext <<EOF
2148 #line 2149 "configure"
2149 #include "confdefs.h"
2150 #include <$ac_hdr>
2151 EOF
2152 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2153 { (eval echo configure:2154: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2154 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2155 if test -z "$ac_err"; then
2156   rm -rf conftest*
2157   eval "ac_cv_header_$ac_safe=yes"
2158 else
2159   echo "$ac_err" >&5
2160   echo "configure: failed program was:" >&5
2161   cat conftest.$ac_ext >&5
2162   rm -rf conftest*
2163   eval "ac_cv_header_$ac_safe=no"
2164 fi
2165 rm -f conftest*
2166 fi
2167 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2168   echo "$ac_t""yes" 1>&6
2169     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2170   cat >> confdefs.h <<EOF
2171 #define $ac_tr_hdr 1
2172 EOF
2173  
2174 else
2175   echo "$ac_t""no" 1>&6
2176 fi
2177 done
2178
2179
2180 for ac_hdr in ndbm.h db.h
2181 do
2182 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2183 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2184 echo "configure:2185: checking for $ac_hdr" >&5
2185 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2186   echo $ac_n "(cached) $ac_c" 1>&6
2187 else
2188   cat > conftest.$ac_ext <<EOF
2189 #line 2190 "configure"
2190 #include "confdefs.h"
2191 #include <$ac_hdr>
2192 EOF
2193 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2194 { (eval echo configure:2195: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2195 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2196 if test -z "$ac_err"; then
2197   rm -rf conftest*
2198   eval "ac_cv_header_$ac_safe=yes"
2199 else
2200   echo "$ac_err" >&5
2201   echo "configure: failed program was:" >&5
2202   cat conftest.$ac_ext >&5
2203   rm -rf conftest*
2204   eval "ac_cv_header_$ac_safe=no"
2205 fi
2206 rm -f conftest*
2207 fi
2208 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2209   echo "$ac_t""yes" 1>&6
2210     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2211   cat >> confdefs.h <<EOF
2212 #define $ac_tr_hdr 1
2213 EOF
2214  
2215 else
2216   echo "$ac_t""no" 1>&6
2217 fi
2218 done
2219
2220 HAVE_NDBM_H=$ac_cv_header_ndbm_h
2221
2222
2223 for ac_hdr in lastlog.h utmp.h utmpx.h
2224 do
2225 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2226 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2227 echo "configure:2228: checking for $ac_hdr" >&5
2228 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2229   echo $ac_n "(cached) $ac_c" 1>&6
2230 else
2231   cat > conftest.$ac_ext <<EOF
2232 #line 2233 "configure"
2233 #include "confdefs.h"
2234 #include <$ac_hdr>
2235 EOF
2236 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2237 { (eval echo configure:2238: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2238 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2239 if test -z "$ac_err"; then
2240   rm -rf conftest*
2241   eval "ac_cv_header_$ac_safe=yes"
2242 else
2243   echo "$ac_err" >&5
2244   echo "configure: failed program was:" >&5
2245   cat conftest.$ac_ext >&5
2246   rm -rf conftest*
2247   eval "ac_cv_header_$ac_safe=no"
2248 fi
2249 rm -f conftest*
2250 fi
2251 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2252   echo "$ac_t""yes" 1>&6
2253     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2254   cat >> confdefs.h <<EOF
2255 #define $ac_tr_hdr 1
2256 EOF
2257  
2258 else
2259   echo "$ac_t""no" 1>&6
2260 fi
2261 done
2262
2263
2264
2265 echo $ac_n "checking path to cracklib dictionary""... $ac_c" 1>&6
2266 echo "configure:2267: checking path to cracklib dictionary" >&5
2267 DICT_DIR_CANDIDATES="/usr/lib /usr/share/dict /usr/share/lib \
2268   /usr/local/lib /usr/local/share/lib"
2269 DICT_FILE_CANDIDATES="pw_dict cracklib_dict"
2270 CRACKLIB_DICTPATH=""
2271 for d in $DICT_DIR_CANDIDATES ; do
2272       for f in $DICT_FILE_CANDIDATES ; do
2273               if test -r $d/$f.hwm ; then
2274                       CRACKLIB_DICTPATH=$d/$f
2275                       break 2
2276               elif test -r $d/dict/$f.hwm ; then
2277                       CRACKLIB_DICTPATH=$d/dict/$f
2278                       break 2
2279               fi
2280       done
2281 done
2282 if test -z "$CRACKLIB_DICTPATH" ; then
2283       echo "$ac_t""none found" 1>&6
2284 else
2285       echo "$ac_t""$CRACKLIB_DICTPATH" 1>&6
2286 fi
2287
2288
2289
2290 GCC_WARNINGS="-Wall -Wwrite-strings \
2291         -Wpointer-arith -Wcast-qual -Wcast-align \
2292         -Wstrict-prototypes -Wmissing-prototypes \
2293         -Wnested-externs -Winline -Wshadow"
2294
2295 if test "$GCC" = yes; then
2296 ### May need per-OS attention
2297 ### Example: -D_POSIX_SOURCE: needed on Linux but harms Solaris.
2298         case $OS in
2299         linux)
2300                 OS_CFLAGS="-ansi -D_POSIX_SOURCE -pedantic"
2301                 LD_D="gcc -shared -Xlinker -x"
2302                 WARNINGS="$GCC_WARNINGS"
2303                 PIC="-fPIC"
2304                 DYNTYPE=so
2305                 LD=ld                           
2306                 LD_L="$LD -x -shared"
2307                 RANLIB=ranlib
2308                 STRIP=strip
2309                 CC_STATIC="-Xlinker -export-dynamic"
2310                 ;;
2311         sunos)
2312                 OS_CFLAGS="-ansi -pedantic"
2313                 LD_D="gcc -shared -Xlinker -x"
2314                 WARNINGS="$GCC_WARNINGS"
2315                 PIC="-fPIC"
2316                 DYNTYPE=so
2317                 LD=ld                           
2318                 LD_L="$LD -x -shared"
2319                 RANLIB=ranlib
2320                 STRIP=strip
2321                 CC_STATIC="-Xlinker -export-dynamic"
2322                 ;;
2323         aix)
2324                 OS_CFLAGS=""
2325                 DYNTYPE=lo
2326                 LD=ld                           
2327                 LD_L=ld -bexpall -bM:SRE -bnoentry
2328                 LD_D="$LD_L"
2329                 RANLIB=ranlib
2330                 STRIP=strip
2331                 ;;
2332         *)
2333                 OS_CFLAGS=""
2334                 ;;
2335         esac
2336 else
2337 ###
2338 ### Non-gcc needs attention on per-OS basis
2339 ###
2340 ### [These are Solaris-C specific...]
2341         OS_CFLAGS=""
2342         WARNINGS=""
2343         PIC="-K pic"
2344         DYNTYPE=so
2345         LD=ld
2346         LD_D="cc -z text -G -R."
2347         LD_L="$LD_D"
2348         RANLIB=ranlib
2349         STRIP=strip
2350         CC_STATIC=
2351 fi
2352
2353
2354
2355
2356
2357
2358
2359
2360
2361
2362
2363
2364 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
2365 echo "configure:2366: checking whether byte ordering is bigendian" >&5
2366 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
2367   echo $ac_n "(cached) $ac_c" 1>&6
2368 else
2369   ac_cv_c_bigendian=unknown
2370 # See if sys/param.h defines the BYTE_ORDER macro.
2371 cat > conftest.$ac_ext <<EOF
2372 #line 2373 "configure"
2373 #include "confdefs.h"
2374 #include <sys/types.h>
2375 #include <sys/param.h>
2376 int main() {
2377
2378 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
2379  bogus endian macros
2380 #endif
2381 ; return 0; }
2382 EOF
2383 if { (eval echo configure:2384: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2384   rm -rf conftest*
2385   # It does; now see whether it defined to BIG_ENDIAN or not.
2386 cat > conftest.$ac_ext <<EOF
2387 #line 2388 "configure"
2388 #include "confdefs.h"
2389 #include <sys/types.h>
2390 #include <sys/param.h>
2391 int main() {
2392
2393 #if BYTE_ORDER != BIG_ENDIAN
2394  not big endian
2395 #endif
2396 ; return 0; }
2397 EOF
2398 if { (eval echo configure:2399: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2399   rm -rf conftest*
2400   ac_cv_c_bigendian=yes
2401 else
2402   echo "configure: failed program was:" >&5
2403   cat conftest.$ac_ext >&5
2404   rm -rf conftest*
2405   ac_cv_c_bigendian=no
2406 fi
2407 rm -f conftest*
2408 else
2409   echo "configure: failed program was:" >&5
2410   cat conftest.$ac_ext >&5
2411 fi
2412 rm -f conftest*
2413 if test $ac_cv_c_bigendian = unknown; then
2414 if test "$cross_compiling" = yes; then
2415     { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
2416 else
2417   cat > conftest.$ac_ext <<EOF
2418 #line 2419 "configure"
2419 #include "confdefs.h"
2420 main () {
2421   /* Are we little or big endian?  From Harbison&Steele.  */
2422   union
2423   {
2424     long l;
2425     char c[sizeof (long)];
2426   } u;
2427   u.l = 1;
2428   exit (u.c[sizeof (long) - 1] == 1);
2429 }
2430 EOF
2431 if { (eval echo configure:2432: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2432 then
2433   ac_cv_c_bigendian=no
2434 else
2435   echo "configure: failed program was:" >&5
2436   cat conftest.$ac_ext >&5
2437   rm -fr conftest*
2438   ac_cv_c_bigendian=yes
2439 fi
2440 rm -fr conftest*
2441 fi
2442
2443 fi
2444 fi
2445
2446 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
2447 if test $ac_cv_c_bigendian = yes; then
2448   cat >> confdefs.h <<\EOF
2449 #define WORDS_BIGENDIAN 1
2450 EOF
2451
2452 fi
2453
2454 echo $ac_n "checking for working const""... $ac_c" 1>&6
2455 echo "configure:2456: checking for working const" >&5
2456 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
2457   echo $ac_n "(cached) $ac_c" 1>&6
2458 else
2459   cat > conftest.$ac_ext <<EOF
2460 #line 2461 "configure"
2461 #include "confdefs.h"
2462
2463 int main() {
2464
2465 /* Ultrix mips cc rejects this.  */
2466 typedef int charset[2]; const charset x;
2467 /* SunOS 4.1.1 cc rejects this.  */
2468 char const *const *ccp;
2469 char **p;
2470 /* NEC SVR4.0.2 mips cc rejects this.  */
2471 struct point {int x, y;};
2472 static struct point const zero = {0,0};
2473 /* AIX XL C 1.02.0.0 rejects this.
2474    It does not let you subtract one const X* pointer from another in an arm
2475    of an if-expression whose if-part is not a constant expression */
2476 const char *g = "string";
2477 ccp = &g + (g ? g-g : 0);
2478 /* HPUX 7.0 cc rejects these. */
2479 ++ccp;
2480 p = (char**) ccp;
2481 ccp = (char const *const *) p;
2482 { /* SCO 3.2v4 cc rejects this.  */
2483   char *t;
2484   char const *s = 0 ? (char *) 0 : (char const *) 0;
2485
2486   *t++ = 0;
2487 }
2488 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
2489   int x[] = {25, 17};
2490   const int *foo = &x[0];
2491   ++foo;
2492 }
2493 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
2494   typedef const int *iptr;
2495   iptr p = 0;
2496   ++p;
2497 }
2498 { /* AIX XL C 1.02.0.0 rejects this saying
2499      "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
2500   struct s { int j; const int *ap[3]; };
2501   struct s *b; b->j = 5;
2502 }
2503 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
2504   const int foo = 10;
2505 }
2506
2507 ; return 0; }
2508 EOF
2509 if { (eval echo configure:2510: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2510   rm -rf conftest*
2511   ac_cv_c_const=yes
2512 else
2513   echo "configure: failed program was:" >&5
2514   cat conftest.$ac_ext >&5
2515   rm -rf conftest*
2516   ac_cv_c_const=no
2517 fi
2518 rm -f conftest*
2519 fi
2520
2521 echo "$ac_t""$ac_cv_c_const" 1>&6
2522 if test $ac_cv_c_const = no; then
2523   cat >> confdefs.h <<\EOF
2524 #define const 
2525 EOF
2526
2527 fi
2528
2529 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
2530 echo "configure:2531: checking for uid_t in sys/types.h" >&5
2531 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
2532   echo $ac_n "(cached) $ac_c" 1>&6
2533 else
2534   cat > conftest.$ac_ext <<EOF
2535 #line 2536 "configure"
2536 #include "confdefs.h"
2537 #include <sys/types.h>
2538 EOF
2539 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2540   egrep "uid_t" >/dev/null 2>&1; then
2541   rm -rf conftest*
2542   ac_cv_type_uid_t=yes
2543 else
2544   rm -rf conftest*
2545   ac_cv_type_uid_t=no
2546 fi
2547 rm -f conftest*
2548
2549 fi
2550
2551 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
2552 if test $ac_cv_type_uid_t = no; then
2553   cat >> confdefs.h <<\EOF
2554 #define uid_t int
2555 EOF
2556
2557   cat >> confdefs.h <<\EOF
2558 #define gid_t int
2559 EOF
2560
2561 fi
2562
2563 echo $ac_n "checking for off_t""... $ac_c" 1>&6
2564 echo "configure:2565: checking for off_t" >&5
2565 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
2566   echo $ac_n "(cached) $ac_c" 1>&6
2567 else
2568   cat > conftest.$ac_ext <<EOF
2569 #line 2570 "configure"
2570 #include "confdefs.h"
2571 #include <sys/types.h>
2572 #if STDC_HEADERS
2573 #include <stdlib.h>
2574 #include <stddef.h>
2575 #endif
2576 EOF
2577 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2578   egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2579   rm -rf conftest*
2580   ac_cv_type_off_t=yes
2581 else
2582   rm -rf conftest*
2583   ac_cv_type_off_t=no
2584 fi
2585 rm -f conftest*
2586
2587 fi
2588 echo "$ac_t""$ac_cv_type_off_t" 1>&6
2589 if test $ac_cv_type_off_t = no; then
2590   cat >> confdefs.h <<\EOF
2591 #define off_t long
2592 EOF
2593
2594 fi
2595
2596 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
2597 echo "configure:2598: checking for pid_t" >&5
2598 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
2599   echo $ac_n "(cached) $ac_c" 1>&6
2600 else
2601   cat > conftest.$ac_ext <<EOF
2602 #line 2603 "configure"
2603 #include "confdefs.h"
2604 #include <sys/types.h>
2605 #if STDC_HEADERS
2606 #include <stdlib.h>
2607 #include <stddef.h>
2608 #endif
2609 EOF
2610 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2611   egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2612   rm -rf conftest*
2613   ac_cv_type_pid_t=yes
2614 else
2615   rm -rf conftest*
2616   ac_cv_type_pid_t=no
2617 fi
2618 rm -f conftest*
2619
2620 fi
2621 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
2622 if test $ac_cv_type_pid_t = no; then
2623   cat >> confdefs.h <<\EOF
2624 #define pid_t int
2625 EOF
2626
2627 fi
2628
2629 echo $ac_n "checking for size_t""... $ac_c" 1>&6
2630 echo "configure:2631: checking for size_t" >&5
2631 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
2632   echo $ac_n "(cached) $ac_c" 1>&6
2633 else
2634   cat > conftest.$ac_ext <<EOF
2635 #line 2636 "configure"
2636 #include "confdefs.h"
2637 #include <sys/types.h>
2638 #if STDC_HEADERS
2639 #include <stdlib.h>
2640 #include <stddef.h>
2641 #endif
2642 EOF
2643 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2644   egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2645   rm -rf conftest*
2646   ac_cv_type_size_t=yes
2647 else
2648   rm -rf conftest*
2649   ac_cv_type_size_t=no
2650 fi
2651 rm -f conftest*
2652
2653 fi
2654 echo "$ac_t""$ac_cv_type_size_t" 1>&6
2655 if test $ac_cv_type_size_t = no; then
2656   cat >> confdefs.h <<\EOF
2657 #define size_t unsigned
2658 EOF
2659
2660 fi
2661
2662 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
2663 echo "configure:2664: checking whether time.h and sys/time.h may both be included" >&5
2664 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
2665   echo $ac_n "(cached) $ac_c" 1>&6
2666 else
2667   cat > conftest.$ac_ext <<EOF
2668 #line 2669 "configure"
2669 #include "confdefs.h"
2670 #include <sys/types.h>
2671 #include <sys/time.h>
2672 #include <time.h>
2673 int main() {
2674 struct tm *tp;
2675 ; return 0; }
2676 EOF
2677 if { (eval echo configure:2678: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2678   rm -rf conftest*
2679   ac_cv_header_time=yes
2680 else
2681   echo "configure: failed program was:" >&5
2682   cat conftest.$ac_ext >&5
2683   rm -rf conftest*
2684   ac_cv_header_time=no
2685 fi
2686 rm -f conftest*
2687 fi
2688
2689 echo "$ac_t""$ac_cv_header_time" 1>&6
2690 if test $ac_cv_header_time = yes; then
2691   cat >> confdefs.h <<\EOF
2692 #define TIME_WITH_SYS_TIME 1
2693 EOF
2694
2695 fi
2696
2697 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
2698 echo "configure:2699: checking whether struct tm is in sys/time.h or time.h" >&5
2699 if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then
2700   echo $ac_n "(cached) $ac_c" 1>&6
2701 else
2702   cat > conftest.$ac_ext <<EOF
2703 #line 2704 "configure"
2704 #include "confdefs.h"
2705 #include <sys/types.h>
2706 #include <time.h>
2707 int main() {
2708 struct tm *tp; tp->tm_sec;
2709 ; return 0; }
2710 EOF
2711 if { (eval echo configure:2712: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2712   rm -rf conftest*
2713   ac_cv_struct_tm=time.h
2714 else
2715   echo "configure: failed program was:" >&5
2716   cat conftest.$ac_ext >&5
2717   rm -rf conftest*
2718   ac_cv_struct_tm=sys/time.h
2719 fi
2720 rm -f conftest*
2721 fi
2722
2723 echo "$ac_t""$ac_cv_struct_tm" 1>&6
2724 if test $ac_cv_struct_tm = sys/time.h; then
2725   cat >> confdefs.h <<\EOF
2726 #define TM_IN_SYS_TIME 1
2727 EOF
2728
2729 fi
2730
2731
2732 echo $ac_n "checking type of array argument to getgroups""... $ac_c" 1>&6
2733 echo "configure:2734: checking type of array argument to getgroups" >&5
2734 if eval "test \"`echo '$''{'ac_cv_type_getgroups'+set}'`\" = set"; then
2735   echo $ac_n "(cached) $ac_c" 1>&6
2736 else
2737   if test "$cross_compiling" = yes; then
2738   ac_cv_type_getgroups=cross
2739 else
2740   cat > conftest.$ac_ext <<EOF
2741 #line 2742 "configure"
2742 #include "confdefs.h"
2743
2744 /* Thanks to Mike Rendell for this test.  */
2745 #include <sys/types.h>
2746 #define NGID 256
2747 #undef MAX
2748 #define MAX(x, y) ((x) > (y) ? (x) : (y))
2749 main()
2750 {
2751   gid_t gidset[NGID];
2752   int i, n;
2753   union { gid_t gval; long lval; }  val;
2754
2755   val.lval = -1;
2756   for (i = 0; i < NGID; i++)
2757     gidset[i] = val.gval;
2758   n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
2759                  gidset);
2760   /* Exit non-zero if getgroups seems to require an array of ints.  This
2761      happens when gid_t is short but getgroups modifies an array of ints.  */
2762   exit ((n > 0 && gidset[n] != val.gval) ? 1 : 0);
2763 }
2764
2765 EOF
2766 if { (eval echo configure:2767: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2767 then
2768     ac_cv_type_getgroups=gid_t
2769 else
2770   echo "configure: failed program was:" >&5
2771   cat conftest.$ac_ext >&5
2772   rm -fr conftest*
2773   ac_cv_type_getgroups=int
2774 fi
2775 rm -fr conftest*
2776 fi
2777
2778 if test $ac_cv_type_getgroups = cross; then
2779         cat > conftest.$ac_ext <<EOF
2780 #line 2781 "configure"
2781 #include "confdefs.h"
2782 #include <unistd.h>
2783 EOF
2784 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2785   egrep "getgroups.*int.*gid_t" >/dev/null 2>&1; then
2786   rm -rf conftest*
2787   ac_cv_type_getgroups=gid_t
2788 else
2789   rm -rf conftest*
2790   ac_cv_type_getgroups=int
2791 fi
2792 rm -f conftest*
2793
2794 fi
2795 fi
2796
2797 echo "$ac_t""$ac_cv_type_getgroups" 1>&6
2798 cat >> confdefs.h <<EOF
2799 #define GETGROUPS_T $ac_cv_type_getgroups
2800 EOF
2801
2802
2803 if test $ac_cv_prog_gcc = yes; then
2804     echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
2805 echo "configure:2806: checking whether ${CC-cc} needs -traditional" >&5
2806 if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
2807   echo $ac_n "(cached) $ac_c" 1>&6
2808 else
2809     ac_pattern="Autoconf.*'x'"
2810   cat > conftest.$ac_ext <<EOF
2811 #line 2812 "configure"
2812 #include "confdefs.h"
2813 #include <sgtty.h>
2814 Autoconf TIOCGETP
2815 EOF
2816 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2817   egrep "$ac_pattern" >/dev/null 2>&1; then
2818   rm -rf conftest*
2819   ac_cv_prog_gcc_traditional=yes
2820 else
2821   rm -rf conftest*
2822   ac_cv_prog_gcc_traditional=no
2823 fi
2824 rm -f conftest*
2825
2826
2827   if test $ac_cv_prog_gcc_traditional = no; then
2828     cat > conftest.$ac_ext <<EOF
2829 #line 2830 "configure"
2830 #include "confdefs.h"
2831 #include <termio.h>
2832 Autoconf TCGETA
2833 EOF
2834 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2835   egrep "$ac_pattern" >/dev/null 2>&1; then
2836   rm -rf conftest*
2837   ac_cv_prog_gcc_traditional=yes
2838 fi
2839 rm -f conftest*
2840
2841   fi
2842 fi
2843
2844 echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6
2845   if test $ac_cv_prog_gcc_traditional = yes; then
2846     CC="$CC -traditional"
2847   fi
2848 fi
2849
2850 echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6
2851 echo "configure:2852: checking for 8-bit clean memcmp" >&5
2852 if eval "test \"`echo '$''{'ac_cv_func_memcmp_clean'+set}'`\" = set"; then
2853   echo $ac_n "(cached) $ac_c" 1>&6
2854 else
2855   if test "$cross_compiling" = yes; then
2856   ac_cv_func_memcmp_clean=no
2857 else
2858   cat > conftest.$ac_ext <<EOF
2859 #line 2860 "configure"
2860 #include "confdefs.h"
2861
2862 main()
2863 {
2864   char c0 = 0x40, c1 = 0x80, c2 = 0x81;
2865   exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
2866 }
2867
2868 EOF
2869 if { (eval echo configure:2870: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2870 then
2871   ac_cv_func_memcmp_clean=yes
2872 else
2873   echo "configure: failed program was:" >&5
2874   cat conftest.$ac_ext >&5
2875   rm -fr conftest*
2876   ac_cv_func_memcmp_clean=no
2877 fi
2878 rm -fr conftest*
2879 fi
2880
2881 fi
2882
2883 echo "$ac_t""$ac_cv_func_memcmp_clean" 1>&6
2884 test $ac_cv_func_memcmp_clean = no && LIBOBJS="$LIBOBJS memcmp.${ac_objext}"
2885
2886 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
2887 echo "configure:2888: checking for vprintf" >&5
2888 if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
2889   echo $ac_n "(cached) $ac_c" 1>&6
2890 else
2891   cat > conftest.$ac_ext <<EOF
2892 #line 2893 "configure"
2893 #include "confdefs.h"
2894 /* System header to define __stub macros and hopefully few prototypes,
2895     which can conflict with char vprintf(); below.  */
2896 #include <assert.h>
2897 /* Override any gcc2 internal prototype to avoid an error.  */
2898 /* We use char because int might match the return type of a gcc2
2899     builtin and then its argument prototype would still apply.  */
2900 char vprintf();
2901
2902 int main() {
2903
2904 /* The GNU C library defines this for functions which it implements
2905     to always fail with ENOSYS.  Some functions are actually named
2906     something starting with __ and the normal name is an alias.  */
2907 #if defined (__stub_vprintf) || defined (__stub___vprintf)
2908 choke me
2909 #else
2910 vprintf();
2911 #endif
2912
2913 ; return 0; }
2914 EOF
2915 if { (eval echo configure:2916: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2916   rm -rf conftest*
2917   eval "ac_cv_func_vprintf=yes"
2918 else
2919   echo "configure: failed program was:" >&5
2920   cat conftest.$ac_ext >&5
2921   rm -rf conftest*
2922   eval "ac_cv_func_vprintf=no"
2923 fi
2924 rm -f conftest*
2925 fi
2926
2927 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
2928   echo "$ac_t""yes" 1>&6
2929   cat >> confdefs.h <<\EOF
2930 #define HAVE_VPRINTF 1
2931 EOF
2932
2933 else
2934   echo "$ac_t""no" 1>&6
2935 fi
2936
2937 if test "$ac_cv_func_vprintf" != yes; then
2938 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
2939 echo "configure:2940: checking for _doprnt" >&5
2940 if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
2941   echo $ac_n "(cached) $ac_c" 1>&6
2942 else
2943   cat > conftest.$ac_ext <<EOF
2944 #line 2945 "configure"
2945 #include "confdefs.h"
2946 /* System header to define __stub macros and hopefully few prototypes,
2947     which can conflict with char _doprnt(); below.  */
2948 #include <assert.h>
2949 /* Override any gcc2 internal prototype to avoid an error.  */
2950 /* We use char because int might match the return type of a gcc2
2951     builtin and then its argument prototype would still apply.  */
2952 char _doprnt();
2953
2954 int main() {
2955
2956 /* The GNU C library defines this for functions which it implements
2957     to always fail with ENOSYS.  Some functions are actually named
2958     something starting with __ and the normal name is an alias.  */
2959 #if defined (__stub__doprnt) || defined (__stub____doprnt)
2960 choke me
2961 #else
2962 _doprnt();
2963 #endif
2964
2965 ; return 0; }
2966 EOF
2967 if { (eval echo configure:2968: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2968   rm -rf conftest*
2969   eval "ac_cv_func__doprnt=yes"
2970 else
2971   echo "configure: failed program was:" >&5
2972   cat conftest.$ac_ext >&5
2973   rm -rf conftest*
2974   eval "ac_cv_func__doprnt=no"
2975 fi
2976 rm -f conftest*
2977 fi
2978
2979 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
2980   echo "$ac_t""yes" 1>&6
2981   cat >> confdefs.h <<\EOF
2982 #define HAVE_DOPRNT 1
2983 EOF
2984
2985 else
2986   echo "$ac_t""no" 1>&6
2987 fi
2988
2989 fi
2990
2991 for ac_func in gethostname gettimeofday mkdir select strcspn strdup strerror strspn strstr strtol uname
2992 do
2993 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2994 echo "configure:2995: checking for $ac_func" >&5
2995 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2996   echo $ac_n "(cached) $ac_c" 1>&6
2997 else
2998   cat > conftest.$ac_ext <<EOF
2999 #line 3000 "configure"
3000 #include "confdefs.h"
3001 /* System header to define __stub macros and hopefully few prototypes,
3002     which can conflict with char $ac_func(); below.  */
3003 #include <assert.h>
3004 /* Override any gcc2 internal prototype to avoid an error.  */
3005 /* We use char because int might match the return type of a gcc2
3006     builtin and then its argument prototype would still apply.  */
3007 char $ac_func();
3008
3009 int main() {
3010
3011 /* The GNU C library defines this for functions which it implements
3012     to always fail with ENOSYS.  Some functions are actually named
3013     something starting with __ and the normal name is an alias.  */
3014 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3015 choke me
3016 #else
3017 $ac_func();
3018 #endif
3019
3020 ; return 0; }
3021 EOF
3022 if { (eval echo configure:3023: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3023   rm -rf conftest*
3024   eval "ac_cv_func_$ac_func=yes"
3025 else
3026   echo "configure: failed program was:" >&5
3027   cat conftest.$ac_ext >&5
3028   rm -rf conftest*
3029   eval "ac_cv_func_$ac_func=no"
3030 fi
3031 rm -f conftest*
3032 fi
3033
3034 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3035   echo "$ac_t""yes" 1>&6
3036     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3037   cat >> confdefs.h <<EOF
3038 #define $ac_tr_func 1
3039 EOF
3040  
3041 else
3042   echo "$ac_t""no" 1>&6
3043 fi
3044 done
3045
3046
3047 # Extract the first word of "sgml2txt", so it can be a program name with args.
3048 set dummy sgml2txt; ac_word=$2
3049 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3050 echo "configure:3051: checking for $ac_word" >&5
3051 if eval "test \"`echo '$''{'ac_cv_prog_HAVE_SGML2TXT'+set}'`\" = set"; then
3052   echo $ac_n "(cached) $ac_c" 1>&6
3053 else
3054   if test -n "$HAVE_SGML2TXT"; then
3055   ac_cv_prog_HAVE_SGML2TXT="$HAVE_SGML2TXT" # Let the user override the test.
3056 else
3057   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
3058   ac_dummy="$PATH"
3059   for ac_dir in $ac_dummy; do
3060     test -z "$ac_dir" && ac_dir=.
3061     if test -f $ac_dir/$ac_word; then
3062       ac_cv_prog_HAVE_SGML2TXT="yes"
3063       break
3064     fi
3065   done
3066   IFS="$ac_save_ifs"
3067   test -z "$ac_cv_prog_HAVE_SGML2TXT" && ac_cv_prog_HAVE_SGML2TXT="no"
3068 fi
3069 fi
3070 HAVE_SGML2TXT="$ac_cv_prog_HAVE_SGML2TXT"
3071 if test -n "$HAVE_SGML2TXT"; then
3072   echo "$ac_t""$HAVE_SGML2TXT" 1>&6
3073 else
3074   echo "$ac_t""no" 1>&6
3075 fi
3076
3077 # Extract the first word of "sgml2html", so it can be a program name with args.
3078 set dummy sgml2html; ac_word=$2
3079 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3080 echo "configure:3081: checking for $ac_word" >&5
3081 if eval "test \"`echo '$''{'ac_cv_prog_HAVE_SGML2HTML'+set}'`\" = set"; then
3082   echo $ac_n "(cached) $ac_c" 1>&6
3083 else
3084   if test -n "$HAVE_SGML2HTML"; then
3085   ac_cv_prog_HAVE_SGML2HTML="$HAVE_SGML2HTML" # Let the user override the test.
3086 else
3087   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
3088   ac_dummy="$PATH"
3089   for ac_dir in $ac_dummy; do
3090     test -z "$ac_dir" && ac_dir=.
3091     if test -f $ac_dir/$ac_word; then
3092       ac_cv_prog_HAVE_SGML2HTML="yes"
3093       break
3094     fi
3095   done
3096   IFS="$ac_save_ifs"
3097   test -z "$ac_cv_prog_HAVE_SGML2HTML" && ac_cv_prog_HAVE_SGML2HTML="no"
3098 fi
3099 fi
3100 HAVE_SGML2HTML="$ac_cv_prog_HAVE_SGML2HTML"
3101 if test -n "$HAVE_SGML2HTML"; then
3102   echo "$ac_t""$HAVE_SGML2HTML" 1>&6
3103 else
3104   echo "$ac_t""no" 1>&6
3105 fi
3106
3107 # Extract the first word of "sgml2latex", so it can be a program name with args.
3108 set dummy sgml2latex; ac_word=$2
3109 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3110 echo "configure:3111: checking for $ac_word" >&5
3111 if eval "test \"`echo '$''{'ac_cv_prog_HAVE_SGML2LATEX'+set}'`\" = set"; then
3112   echo $ac_n "(cached) $ac_c" 1>&6
3113 else
3114   if test -n "$HAVE_SGML2LATEX"; then
3115   ac_cv_prog_HAVE_SGML2LATEX="$HAVE_SGML2LATEX" # Let the user override the test.
3116 else
3117   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
3118   ac_dummy="$PATH"
3119   for ac_dir in $ac_dummy; do
3120     test -z "$ac_dir" && ac_dir=.
3121     if test -f $ac_dir/$ac_word; then
3122       ac_cv_prog_HAVE_SGML2LATEX="yes"
3123       break
3124     fi
3125   done
3126   IFS="$ac_save_ifs"
3127   test -z "$ac_cv_prog_HAVE_SGML2LATEX" && ac_cv_prog_HAVE_SGML2LATEX="no"
3128 fi
3129 fi
3130 HAVE_SGML2LATEX="$ac_cv_prog_HAVE_SGML2LATEX"
3131 if test -n "$HAVE_SGML2LATEX"; then
3132   echo "$ac_t""$HAVE_SGML2LATEX" 1>&6
3133 else
3134   echo "$ac_t""no" 1>&6
3135 fi
3136
3137 if test $HAVE_SGML2LATEX = "yes" ; then
3138   if sgml2latex -h | grep -e --paper | grep  ' -p ' > /dev/null ; then
3139     PSER="sgml2latex -o ps"
3140   else
3141     PSER="sgml2latex -p"
3142   fi
3143 else
3144   # Extract the first word of "sgml2ps", so it can be a program name with args.
3145 set dummy sgml2ps; ac_word=$2
3146 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3147 echo "configure:3148: checking for $ac_word" >&5
3148 if eval "test \"`echo '$''{'ac_cv_prog_HAVE_SGML2PS'+set}'`\" = set"; then
3149   echo $ac_n "(cached) $ac_c" 1>&6
3150 else
3151   if test -n "$HAVE_SGML2PS"; then
3152   ac_cv_prog_HAVE_SGML2PS="$HAVE_SGML2PS" # Let the user override the test.
3153 else
3154   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
3155   ac_dummy="$PATH"
3156   for ac_dir in $ac_dummy; do
3157     test -z "$ac_dir" && ac_dir=.
3158     if test -f $ac_dir/$ac_word; then
3159       ac_cv_prog_HAVE_SGML2PS="yes"
3160       break
3161     fi
3162   done
3163   IFS="$ac_save_ifs"
3164   test -z "$ac_cv_prog_HAVE_SGML2PS" && ac_cv_prog_HAVE_SGML2PS="no"
3165 fi
3166 fi
3167 HAVE_SGML2PS="$ac_cv_prog_HAVE_SGML2PS"
3168 if test -n "$HAVE_SGML2PS"; then
3169   echo "$ac_t""$HAVE_SGML2PS" 1>&6
3170 else
3171   echo "$ac_t""no" 1>&6
3172 fi
3173
3174   if test $HAVE_SGML2PS = yes ; then
3175     PSER="sgml2ps"
3176   fi
3177 fi
3178
3179
3180 trap '' 1 2 15
3181 cat > confcache <<\EOF
3182 # This file is a shell script that caches the results of configure
3183 # tests run on this system so they can be shared between configure
3184 # scripts and configure runs.  It is not useful on other systems.
3185 # If it contains results you don't want to keep, you may remove or edit it.
3186 #
3187 # By default, configure uses ./config.cache as the cache file,
3188 # creating it if it does not exist already.  You can give configure
3189 # the --cache-file=FILE option to use a different cache file; that is
3190 # what configure does when it calls configure scripts in
3191 # subdirectories, so they share the cache.
3192 # Giving --cache-file=/dev/null disables caching, for debugging configure.
3193 # config.status only pays attention to the cache file if you give it the
3194 # --recheck option to rerun configure.
3195 #
3196 EOF
3197 # The following way of writing the cache mishandles newlines in values,
3198 # but we know of no workaround that is simple, portable, and efficient.
3199 # So, don't put newlines in cache variables' values.
3200 # Ultrix sh set writes to stderr and can't be redirected directly,
3201 # and sets the high bit in the cache file unless we assign to the vars.
3202 (set) 2>&1 |
3203   case `(ac_space=' '; set | grep ac_space) 2>&1` in
3204   *ac_space=\ *)
3205     # `set' does not quote correctly, so add quotes (double-quote substitution
3206     # turns \\\\ into \\, and sed turns \\ into \).
3207     sed -n \
3208       -e "s/'/'\\\\''/g" \
3209       -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
3210     ;;
3211   *)
3212     # `set' quotes correctly as required by POSIX, so do not add quotes.
3213     sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
3214     ;;
3215   esac >> confcache
3216 if cmp -s $cache_file confcache; then
3217   :
3218 else
3219   if test -w $cache_file; then
3220     echo "updating cache $cache_file"
3221     cat confcache > $cache_file
3222   else
3223     echo "not updating unwritable cache $cache_file"
3224   fi
3225 fi
3226 rm -f confcache
3227
3228 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
3229
3230 test "x$prefix" = xNONE && prefix=$ac_default_prefix
3231 # Let make expand exec_prefix.
3232 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
3233
3234 # Any assignment to VPATH causes Sun make to only execute
3235 # the first set of double-colon rules, so remove it if not needed.
3236 # If there is a colon in the path, we need to keep it.
3237 if test "x$srcdir" = x.; then
3238   ac_vpsub='/^[         ]*VPATH[        ]*=[^:]*$/d'
3239 fi
3240
3241 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
3242
3243 DEFS=-DHAVE_CONFIG_H
3244
3245 # Without the "./", some shells look in PATH for config.status.
3246 : ${CONFIG_STATUS=./config.status}
3247
3248 echo creating $CONFIG_STATUS
3249 rm -f $CONFIG_STATUS
3250 cat > $CONFIG_STATUS <<EOF
3251 #! /bin/sh
3252 # Generated automatically by configure.
3253 # Run this file to recreate the current configuration.
3254 # This directory was configured as follows,
3255 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
3256 #
3257 # $0 $ac_configure_args
3258 #
3259 # Compiler output produced by configure, useful for debugging
3260 # configure, is in ./config.log if it exists.
3261
3262 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
3263 for ac_option
3264 do
3265   case "\$ac_option" in
3266   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
3267     echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
3268     exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
3269   -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
3270     echo "$CONFIG_STATUS generated by autoconf version 2.13"
3271     exit 0 ;;
3272   -help | --help | --hel | --he | --h)
3273     echo "\$ac_cs_usage"; exit 0 ;;
3274   *) echo "\$ac_cs_usage"; exit 1 ;;
3275   esac
3276 done
3277
3278 ac_given_srcdir=$srcdir
3279
3280 trap 'rm -fr `echo "Make.Rules _pam_aconf.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
3281 EOF
3282 cat >> $CONFIG_STATUS <<EOF
3283
3284 # Protect against being on the right side of a sed subst in config.status.
3285 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
3286  s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
3287 $ac_vpsub
3288 $extrasub
3289 s%@SHELL@%$SHELL%g
3290 s%@CFLAGS@%$CFLAGS%g
3291 s%@CPPFLAGS@%$CPPFLAGS%g
3292 s%@CXXFLAGS@%$CXXFLAGS%g
3293 s%@FFLAGS@%$FFLAGS%g
3294 s%@DEFS@%$DEFS%g
3295 s%@LDFLAGS@%$LDFLAGS%g
3296 s%@LIBS@%$LIBS%g
3297 s%@exec_prefix@%$exec_prefix%g
3298 s%@prefix@%$prefix%g
3299 s%@program_transform_name@%$program_transform_name%g
3300 s%@bindir@%$bindir%g
3301 s%@sbindir@%$sbindir%g
3302 s%@libexecdir@%$libexecdir%g
3303 s%@datadir@%$datadir%g
3304 s%@sysconfdir@%$sysconfdir%g
3305 s%@sharedstatedir@%$sharedstatedir%g
3306 s%@localstatedir@%$localstatedir%g
3307 s%@libdir@%$libdir%g
3308 s%@includedir@%$includedir%g
3309 s%@oldincludedir@%$oldincludedir%g
3310 s%@infodir@%$infodir%g
3311 s%@mandir@%$mandir%g
3312 s%@LIBPAM_VERSION_MAJOR@%$LIBPAM_VERSION_MAJOR%g
3313 s%@LIBPAM_VERSION_MINOR@%$LIBPAM_VERSION_MINOR%g
3314 s%@CC@%$CC%g
3315 s%@CONF_CFLAGS@%$CONF_CFLAGS%g
3316 s%@MKDIR@%$MKDIR%g
3317 s%@LOCALSRCDIR@%$LOCALSRCDIR%g
3318 s%@OS@%$OS%g
3319 s%@SHLIBMODE@%$SHLIBMODE%g
3320 s%@USESONAME@%$USESONAME%g
3321 s%@SOSWITCH@%$SOSWITCH%g
3322 s%@NEEDSONAME@%$NEEDSONAME%g
3323 s%@LDCONFIG@%$LDCONFIG%g
3324 s%@INSTALL@%$INSTALL%g
3325 s%@YACC@%$YACC%g
3326 s%@LEX@%$LEX%g
3327 s%@LEXLIB@%$LEXLIB%g
3328 s%@LN_S@%$LN_S%g
3329 s%@SET_MAKE@%$SET_MAKE%g
3330 s%@WITH_DEBUG@%$WITH_DEBUG%g
3331 s%@WITH_LIBDEBUG@%$WITH_LIBDEBUG%g
3332 s%@FAKEROOT@%$FAKEROOT%g
3333 s%@SECUREDIR@%$SECUREDIR%g
3334 s%@SCONFIGDIR@%$SCONFIGDIR%g
3335 s%@SUPLEMENTED@%$SUPLEMENTED%g
3336 s%@INCLUDEDIR@%$INCLUDEDIR%g
3337 s%@WITH_PAMLOCKING@%$WITH_PAMLOCKING%g
3338 s%@PAM_READ_BOTH_CONFS@%$PAM_READ_BOTH_CONFS%g
3339 s%@STATIC_LIBPAM@%$STATIC_LIBPAM%g
3340 s%@DYNAMIC_LIBPAM@%$DYNAMIC_LIBPAM%g
3341 s%@DYNAMIC@%$DYNAMIC%g
3342 s%@STATIC@%$STATIC%g
3343 s%@WITH_LCKPWDF@%$WITH_LCKPWDF%g
3344 s%@CPP@%$CPP%g
3345 s%@PAM_NEEDS_LIBC@%$PAM_NEEDS_LIBC%g
3346 s%@HAVE_LCKPWDF@%$HAVE_LCKPWDF%g
3347 s%@LIBDL@%$LIBDL%g
3348 s%@HAVE_LIBCRACK@%$HAVE_LIBCRACK%g
3349 s%@HAVE_LIBCRYPT@%$HAVE_LIBCRYPT%g
3350 s%@HAVE_LIBUTIL@%$HAVE_LIBUTIL%g
3351 s%@HAVE_LIBNDBM@%$HAVE_LIBNDBM%g
3352 s%@HAVE_LIBDB@%$HAVE_LIBDB%g
3353 s%@HAVE_LIBFL@%$HAVE_LIBFL%g
3354 s%@HAVE_LIBNSL@%$HAVE_LIBNSL%g
3355 s%@HAVE_LIBPWDB@%$HAVE_LIBPWDB%g
3356 s%@HAVE_NDBM_H@%$HAVE_NDBM_H%g
3357 s%@CRACKLIB_DICTPATH@%$CRACKLIB_DICTPATH%g
3358 s%@DYNTYPE@%$DYNTYPE%g
3359 s%@OS_CFLAGS@%$OS_CFLAGS%g
3360 s%@WARNINGS@%$WARNINGS%g
3361 s%@PIC@%$PIC%g
3362 s%@LD@%$LD%g
3363 s%@LD_D@%$LD_D%g
3364 s%@LD_L@%$LD_L%g
3365 s%@RANLIB@%$RANLIB%g
3366 s%@STRIP@%$STRIP%g
3367 s%@CC_STATIC@%$CC_STATIC%g
3368 s%@LIBOBJS@%$LIBOBJS%g
3369 s%@HAVE_SGML2TXT@%$HAVE_SGML2TXT%g
3370 s%@HAVE_SGML2HTML@%$HAVE_SGML2HTML%g
3371 s%@HAVE_SGML2LATEX@%$HAVE_SGML2LATEX%g
3372 s%@HAVE_SGML2PS@%$HAVE_SGML2PS%g
3373 s%@PSER@%$PSER%g
3374
3375 CEOF
3376 EOF
3377
3378 cat >> $CONFIG_STATUS <<\EOF
3379
3380 # Split the substitutions into bite-sized pieces for seds with
3381 # small command number limits, like on Digital OSF/1 and HP-UX.
3382 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
3383 ac_file=1 # Number of current file.
3384 ac_beg=1 # First line for current file.
3385 ac_end=$ac_max_sed_cmds # Line after last line for current file.
3386 ac_more_lines=:
3387 ac_sed_cmds=""
3388 while $ac_more_lines; do
3389   if test $ac_beg -gt 1; then
3390     sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
3391   else
3392     sed "${ac_end}q" conftest.subs > conftest.s$ac_file
3393   fi
3394   if test ! -s conftest.s$ac_file; then
3395     ac_more_lines=false
3396     rm -f conftest.s$ac_file
3397   else
3398     if test -z "$ac_sed_cmds"; then
3399       ac_sed_cmds="sed -f conftest.s$ac_file"
3400     else
3401       ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
3402     fi
3403     ac_file=`expr $ac_file + 1`
3404     ac_beg=$ac_end
3405     ac_end=`expr $ac_end + $ac_max_sed_cmds`
3406   fi
3407 done
3408 if test -z "$ac_sed_cmds"; then
3409   ac_sed_cmds=cat
3410 fi
3411 EOF
3412
3413 cat >> $CONFIG_STATUS <<EOF
3414
3415 CONFIG_FILES=\${CONFIG_FILES-"Make.Rules"}
3416 EOF
3417 cat >> $CONFIG_STATUS <<\EOF
3418 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
3419   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3420   case "$ac_file" in
3421   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
3422        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
3423   *) ac_file_in="${ac_file}.in" ;;
3424   esac
3425
3426   # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
3427
3428   # Remove last slash and all that follows it.  Not all systems have dirname.
3429   ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
3430   if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3431     # The file is in a subdirectory.
3432     test ! -d "$ac_dir" && mkdir "$ac_dir"
3433     ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
3434     # A "../" for each directory in $ac_dir_suffix.
3435     ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
3436   else
3437     ac_dir_suffix= ac_dots=
3438   fi
3439
3440   case "$ac_given_srcdir" in
3441   .)  srcdir=.
3442       if test -z "$ac_dots"; then top_srcdir=.
3443       else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
3444   /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
3445   *) # Relative path.
3446     srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
3447     top_srcdir="$ac_dots$ac_given_srcdir" ;;
3448   esac
3449
3450
3451   echo creating "$ac_file"
3452   rm -f "$ac_file"
3453   configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
3454   case "$ac_file" in
3455   *Makefile*) ac_comsub="1i\\
3456 # $configure_input" ;;
3457   *) ac_comsub= ;;
3458   esac
3459
3460   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3461   sed -e "$ac_comsub
3462 s%@configure_input@%$configure_input%g
3463 s%@srcdir@%$srcdir%g
3464 s%@top_srcdir@%$top_srcdir%g
3465 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
3466 fi; done
3467 rm -f conftest.s*
3468
3469 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
3470 # NAME is the cpp macro being defined and VALUE is the value it is being given.
3471 #
3472 # ac_d sets the value in "#define NAME VALUE" lines.
3473 ac_dA='s%^\([   ]*\)#\([        ]*define[       ][      ]*\)'
3474 ac_dB='\([      ][      ]*\)[^  ]*%\1#\2'
3475 ac_dC='\3'
3476 ac_dD='%g'
3477 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
3478 ac_uA='s%^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
3479 ac_uB='\([      ]\)%\1#\2define\3'
3480 ac_uC=' '
3481 ac_uD='\4%g'
3482 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
3483 ac_eA='s%^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
3484 ac_eB='$%\1#\2define\3'
3485 ac_eC=' '
3486 ac_eD='%g'
3487
3488 if test "${CONFIG_HEADERS+set}" != set; then
3489 EOF
3490 cat >> $CONFIG_STATUS <<EOF
3491   CONFIG_HEADERS="_pam_aconf.h"
3492 EOF
3493 cat >> $CONFIG_STATUS <<\EOF
3494 fi
3495 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
3496   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3497   case "$ac_file" in
3498   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
3499        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
3500   *) ac_file_in="${ac_file}.in" ;;
3501   esac
3502
3503   echo creating $ac_file
3504
3505   rm -f conftest.frag conftest.in conftest.out
3506   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3507   cat $ac_file_inputs > conftest.in
3508
3509 EOF
3510
3511 # Transform confdefs.h into a sed script conftest.vals that substitutes
3512 # the proper values into config.h.in to produce config.h.  And first:
3513 # Protect against being on the right side of a sed subst in config.status.
3514 # Protect against being in an unquoted here document in config.status.
3515 rm -f conftest.vals
3516 cat > conftest.hdr <<\EOF
3517 s/[\\&%]/\\&/g
3518 s%[\\$`]%\\&%g
3519 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
3520 s%ac_d%ac_u%gp
3521 s%ac_u%ac_e%gp
3522 EOF
3523 sed -n -f conftest.hdr confdefs.h > conftest.vals
3524 rm -f conftest.hdr
3525
3526 # This sed command replaces #undef with comments.  This is necessary, for
3527 # example, in the case of _POSIX_SOURCE, which is predefined and required
3528 # on some systems where configure will not decide to define it.
3529 cat >> conftest.vals <<\EOF
3530 s%^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
3531 EOF
3532
3533 # Break up conftest.vals because some shells have a limit on
3534 # the size of here documents, and old seds have small limits too.
3535
3536 rm -f conftest.tail
3537 while :
3538 do
3539   ac_lines=`grep -c . conftest.vals`
3540   # grep -c gives empty output for an empty file on some AIX systems.
3541   if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
3542   # Write a limited-size here document to conftest.frag.
3543   echo '  cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
3544   sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
3545   echo 'CEOF
3546   sed -f conftest.frag conftest.in > conftest.out
3547   rm -f conftest.in
3548   mv conftest.out conftest.in
3549 ' >> $CONFIG_STATUS
3550   sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
3551   rm -f conftest.vals
3552   mv conftest.tail conftest.vals
3553 done
3554 rm -f conftest.vals
3555
3556 cat >> $CONFIG_STATUS <<\EOF
3557   rm -f conftest.frag conftest.h
3558   echo "/* $ac_file.  Generated automatically by configure.  */" > conftest.h
3559   cat conftest.in >> conftest.h
3560   rm -f conftest.in
3561   if cmp -s $ac_file conftest.h 2>/dev/null; then
3562     echo "$ac_file is unchanged"
3563     rm -f conftest.h
3564   else
3565     # Remove last slash and all that follows it.  Not all systems have dirname.
3566       ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
3567       if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3568       # The file is in a subdirectory.
3569       test ! -d "$ac_dir" && mkdir "$ac_dir"
3570     fi
3571     rm -f $ac_file
3572     mv conftest.h $ac_file
3573   fi
3574 fi; done
3575
3576 EOF
3577 cat >> $CONFIG_STATUS <<EOF
3578
3579 EOF
3580 cat >> $CONFIG_STATUS <<\EOF
3581
3582 exit 0
3583 EOF
3584 chmod +x $CONFIG_STATUS
3585 rm -fr confdefs* $ac_clean_files
3586 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
3587