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.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
12 ac_default_prefix=/usr/local
13 # Any additions from configure.in:
16 --enable-debug qspecify you are building with debugging on"
18 --enable-libdebug specify you are building debugging libraries"
20 --enable-fakeroot=<path to packaging directory>"
22 --enable-securedir=<path to location of PAMs> [default \$libdir/security]"
24 --enable-sconfigdir=<path to module conf files> [default \$sysconfdir/security]"
26 --enable-suplementedir=<path to module helper binaries> [default \$sbindir]"
28 --enable-includedir=<path to include location> - where to put <security>"
30 --enable-pamlocking configure libpam to observe a global authentication lock"
32 --enable-uglyhack configure libpam to try to honor old pam_strerror syntax"
34 --enable-read-both-confs read both /etc/pam.d and /etc/pam.conf files"
36 --enable-static-libpam build a libpam.a library"
38 --disable-dynamic-libpam do not build a shared libpam library"
40 --enable-static-modules do not make the modules dynamically loadable"
42 --disable-lckpwdf do not use the lckpwdf function"
44 --with-mailspool path to mail spool directory
45 [default _PATH_MAILDIR if defined in paths.h, otherwise /var/spool/mail]"
47 # Initialize some variables set by options.
48 # The variables have the same names as the options, with
49 # dashes changed to underlines.
51 cache_file=./config.cache
60 program_transform_name=s,x,x,
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'
81 # Initialize some other variables.
84 SHELL=${CONFIG_SHELL-/bin/sh}
85 # Maximum number of lines to put in a shell here document.
92 # If the previous option needs an argument, assign it.
93 if test -n "$ac_prev"; then
94 eval "$ac_prev=\$ac_option"
100 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
104 # Accept the important Cygnus configure options, so we can diagnose typos.
108 -bindir | --bindir | --bindi | --bind | --bin | --bi)
110 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
111 bindir="$ac_optarg" ;;
113 -build | --build | --buil | --bui | --bu)
115 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
116 build="$ac_optarg" ;;
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" ;;
125 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
127 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
129 datadir="$ac_optarg" ;;
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; }
137 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
138 eval "enable_${ac_feature}=no" ;;
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; }
146 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
151 eval "enable_${ac_feature}='$ac_optarg'" ;;
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" ;;
162 -gas | --gas | --ga | --g)
163 # Obsolete; use --with-gas.
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.
170 Usage: configure [options] [host]
171 Options: [defaults in brackets after descriptions]
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
181 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
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
188 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
189 --sharedstatedir=DIR modifiable architecture-independent data in DIR
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
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
216 if test -n "$ac_help"; then
217 echo "--enable and --with options recognized:$ac_help"
221 -host | --host | --hos | --ho)
223 -host=* | --host=* | --hos=* | --ho=*)
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" ;;
233 -infodir | --infodir | --infodi | --infod | --info | --inf)
235 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
236 infodir="$ac_optarg" ;;
238 -libdir | --libdir | --libdi | --libd)
240 -libdir=* | --libdir=* | --libdi=* | --libd=*)
241 libdir="$ac_optarg" ;;
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" ;;
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" ;;
259 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
261 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
262 mandir="$ac_optarg" ;;
265 # Obsolete; use --without-fp.
268 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
272 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
273 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
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" ;;
285 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
287 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
288 prefix="$ac_optarg" ;;
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" ;;
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" ;;
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" ;;
321 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
322 | -silent | --silent | --silen | --sile | --sil)
325 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
327 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
329 sbindir="$ac_optarg" ;;
331 -sharedstatedir | --sharedstatedir | --sharedstatedi \
332 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
333 | --sharedst | --shareds | --shared | --share | --shar \
335 ac_prev=sharedstatedir ;;
336 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
337 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
338 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
340 sharedstatedir="$ac_optarg" ;;
342 -site | --site | --sit)
344 -site=* | --site=* | --sit=*)
347 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
349 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
350 srcdir="$ac_optarg" ;;
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" ;;
359 -target | --target | --targe | --targ | --tar | --ta | --t)
361 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
362 target="$ac_optarg" ;;
364 -v | -verbose | --verbose | --verbos | --verbo | --verb)
367 -version | --version | --versio | --versi | --vers)
368 echo "configure generated by autoconf version 2.13"
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; }
377 ac_package=`echo $ac_package| sed 's/-/_/g'`
382 eval "with_${ac_package}='$ac_optarg'" ;;
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; }
390 ac_package=`echo $ac_package| sed 's/-/_/g'`
391 eval "with_${ac_package}=no" ;;
394 # Obsolete; use --with-x.
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" ;;
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" ;;
411 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
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
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; }
427 if test -n "$ac_prev"; then
428 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
431 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
433 # File descriptor usage:
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
449 This file contains any messages produced by compilers while
450 running configure, to aid debugging if configure makes a mistake.
453 # Strip out --no-create and --no-recursion so they do not pile up.
454 # Also quote any args containing shell metacharacters.
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" ;;
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
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.
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
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.
493 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
494 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
496 if test ! -r $srcdir/$ac_unique_file; then
500 ac_srcdir_defaulted=no
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; }
506 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
509 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
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"
516 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
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"
526 if test -r "$cache_file"; then
527 echo "loading cache $cache_file"
530 echo "creating cache $cache_file"
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
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
552 ac_n= ac_c='\c' ac_t=
560 LIBPAM_VERSION_MAJOR=0
561 LIBPAM_VERSION_MINOR=74
565 cat >> confdefs.h <<\EOF
566 #define LIBPAM_VERSION_MAJOR 1
569 cat >> confdefs.h <<\EOF
570 #define LIBPAM_VERSION_MINOR 1
581 LOCALSRCDIR=`/bin/pwd` ;
582 OS=`uname|sed -e 'y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/'`
591 INSTALL=/usr/bin/install ;
593 # Extract the first word of "gcc", so it can be a program name with args.
594 set dummy gcc; ac_word=$2
595 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
596 echo "configure:597: checking for $ac_word" >&5
597 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
598 echo $ac_n "(cached) $ac_c" 1>&6
600 if test -n "$CC"; then
601 ac_cv_prog_CC="$CC" # Let the user override the test.
603 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
605 for ac_dir in $ac_dummy; do
606 test -z "$ac_dir" && ac_dir=.
607 if test -f $ac_dir/$ac_word; then
616 if test -n "$CC"; then
617 echo "$ac_t""$CC" 1>&6
619 echo "$ac_t""no" 1>&6
622 if test -z "$CC"; then
623 # Extract the first word of "cc", so it can be a program name with args.
624 set dummy cc; ac_word=$2
625 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
626 echo "configure:627: checking for $ac_word" >&5
627 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
628 echo $ac_n "(cached) $ac_c" 1>&6
630 if test -n "$CC"; then
631 ac_cv_prog_CC="$CC" # Let the user override the test.
633 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
636 for ac_dir in $ac_dummy; do
637 test -z "$ac_dir" && ac_dir=.
638 if test -f $ac_dir/$ac_word; then
639 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
648 if test $ac_prog_rejected = yes; then
649 # We found a bogon in the path, so make sure we never use it.
650 set dummy $ac_cv_prog_CC
652 if test $# -gt 0; then
653 # We chose a different compiler from the bogus one.
654 # However, it has the same basename, so the bogon will be chosen
655 # first if we set CC to just the basename; use the full file name.
657 set dummy "$ac_dir/$ac_word" "$@"
665 if test -n "$CC"; then
666 echo "$ac_t""$CC" 1>&6
668 echo "$ac_t""no" 1>&6
671 if test -z "$CC"; then
674 # Extract the first word of "cl", so it can be a program name with args.
675 set dummy cl; ac_word=$2
676 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
677 echo "configure:678: checking for $ac_word" >&5
678 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
679 echo $ac_n "(cached) $ac_c" 1>&6
681 if test -n "$CC"; then
682 ac_cv_prog_CC="$CC" # Let the user override the test.
684 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
686 for ac_dir in $ac_dummy; do
687 test -z "$ac_dir" && ac_dir=.
688 if test -f $ac_dir/$ac_word; then
697 if test -n "$CC"; then
698 echo "$ac_t""$CC" 1>&6
700 echo "$ac_t""no" 1>&6
705 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
708 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
709 echo "configure:710: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
712 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
713 ac_cpp='$CPP $CPPFLAGS'
714 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
715 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
716 cross_compiling=$ac_cv_prog_cc_cross
718 cat > conftest.$ac_ext << EOF
720 #line 721 "configure"
721 #include "confdefs.h"
725 if { (eval echo configure:726: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
726 ac_cv_prog_cc_works=yes
727 # If we can't run a trivial program, we are probably using a cross compiler.
728 if (./conftest; exit) 2>/dev/null; then
729 ac_cv_prog_cc_cross=no
731 ac_cv_prog_cc_cross=yes
734 echo "configure: failed program was:" >&5
735 cat conftest.$ac_ext >&5
736 ac_cv_prog_cc_works=no
740 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
741 ac_cpp='$CPP $CPPFLAGS'
742 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
743 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
744 cross_compiling=$ac_cv_prog_cc_cross
746 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
747 if test $ac_cv_prog_cc_works = no; then
748 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
750 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
751 echo "configure:752: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
752 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
753 cross_compiling=$ac_cv_prog_cc_cross
755 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
756 echo "configure:757: checking whether we are using GNU C" >&5
757 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
758 echo $ac_n "(cached) $ac_c" 1>&6
760 cat > conftest.c <<EOF
765 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:766: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
772 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
774 if test $ac_cv_prog_gcc = yes; then
780 ac_test_CFLAGS="${CFLAGS+set}"
781 ac_save_CFLAGS="$CFLAGS"
783 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
784 echo "configure:785: checking whether ${CC-cc} accepts -g" >&5
785 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
786 echo $ac_n "(cached) $ac_c" 1>&6
788 echo 'void f(){}' > conftest.c
789 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
798 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
799 if test "$ac_test_CFLAGS" = set; then
800 CFLAGS="$ac_save_CFLAGS"
801 elif test $ac_cv_prog_cc_g = yes; then
802 if test "$GCC" = yes; then
808 if test "$GCC" = yes; then
815 for ac_prog in 'bison -y' byacc
817 # Extract the first word of "$ac_prog", so it can be a program name with args.
818 set dummy $ac_prog; ac_word=$2
819 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
820 echo "configure:821: checking for $ac_word" >&5
821 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
822 echo $ac_n "(cached) $ac_c" 1>&6
824 if test -n "$YACC"; then
825 ac_cv_prog_YACC="$YACC" # Let the user override the test.
827 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
829 for ac_dir in $ac_dummy; do
830 test -z "$ac_dir" && ac_dir=.
831 if test -f $ac_dir/$ac_word; then
832 ac_cv_prog_YACC="$ac_prog"
839 YACC="$ac_cv_prog_YACC"
840 if test -n "$YACC"; then
841 echo "$ac_t""$YACC" 1>&6
843 echo "$ac_t""no" 1>&6
846 test -n "$YACC" && break
848 test -n "$YACC" || YACC="yacc"
850 # Extract the first word of "flex", so it can be a program name with args.
851 set dummy flex; ac_word=$2
852 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
853 echo "configure:854: checking for $ac_word" >&5
854 if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
855 echo $ac_n "(cached) $ac_c" 1>&6
857 if test -n "$LEX"; then
858 ac_cv_prog_LEX="$LEX" # Let the user override the test.
860 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
862 for ac_dir in $ac_dummy; do
863 test -z "$ac_dir" && ac_dir=.
864 if test -f $ac_dir/$ac_word; then
865 ac_cv_prog_LEX="flex"
870 test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex"
873 LEX="$ac_cv_prog_LEX"
874 if test -n "$LEX"; then
875 echo "$ac_t""$LEX" 1>&6
877 echo "$ac_t""no" 1>&6
886 echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
887 echo "configure:888: checking for yywrap in -l$ac_lib" >&5
888 ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
889 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
890 echo $ac_n "(cached) $ac_c" 1>&6
893 LIBS="-l$ac_lib $LIBS"
894 cat > conftest.$ac_ext <<EOF
895 #line 896 "configure"
896 #include "confdefs.h"
897 /* Override any gcc2 internal prototype to avoid an error. */
898 /* We use char because int might match the return type of a gcc2
899 builtin and then its argument prototype would still apply. */
906 if { (eval echo configure:907: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
908 eval "ac_cv_lib_$ac_lib_var=yes"
910 echo "configure: failed program was:" >&5
911 cat conftest.$ac_ext >&5
913 eval "ac_cv_lib_$ac_lib_var=no"
919 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
920 echo "$ac_t""yes" 1>&6
923 echo "$ac_t""no" 1>&6
928 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
929 echo "configure:930: checking whether ln -s works" >&5
930 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
931 echo $ac_n "(cached) $ac_c" 1>&6
934 if ln -s X conftestdata 2>/dev/null
937 ac_cv_prog_LN_S="ln -s"
942 LN_S="$ac_cv_prog_LN_S"
943 if test "$ac_cv_prog_LN_S" = "ln -s"; then
944 echo "$ac_t""yes" 1>&6
946 echo "$ac_t""no" 1>&6
949 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
950 echo "configure:951: checking whether ${MAKE-make} sets \${MAKE}" >&5
951 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
952 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
953 echo $ac_n "(cached) $ac_c" 1>&6
955 cat > conftestmake <<\EOF
957 @echo 'ac_maketemp="${MAKE}"'
959 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
960 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
961 if test -n "$ac_maketemp"; then
962 eval ac_cv_prog_make_${ac_make}_set=yes
964 eval ac_cv_prog_make_${ac_make}_set=no
968 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
969 echo "$ac_t""yes" 1>&6
972 echo "$ac_t""no" 1>&6
973 SET_MAKE="MAKE=${MAKE-make}"
978 # Check whether --enable-debug or --disable-debug was given.
979 if test "${enable_debug+set}" = set; then
980 enableval="$enable_debug"
981 WITH_DEBUG=yes ; cat >> confdefs.h <<\EOF
991 # Check whether --enable-libdebug or --disable-libdebug was given.
992 if test "${enable_libdebug+set}" = set; then
993 enableval="$enable_libdebug"
994 WITH_LIBDEBUG=yes ; cat >> confdefs.h <<\EOF
995 #define WITH_LIBDEBUG 1
1004 # Check whether --enable-fakeroot or --disable-fakeroot was given.
1005 if test "${enable_fakeroot+set}" = set; then
1006 enableval="$enable_fakeroot"
1012 # Check whether --enable-securedir or --disable-securedir was given.
1013 if test "${enable_securedir+set}" = set; then
1014 enableval="$enable_securedir"
1015 SECUREDIR=$enableval
1017 SECUREDIR=$libdir/security
1022 # Check whether --enable-sconfigdir or --disable-sconfigdir was given.
1023 if test "${enable_sconfigdir+set}" = set; then
1024 enableval="$enable_sconfigdir"
1025 SCONFIGDIR=$enableval
1027 SCONFIGDIR=$sysconfdir/security
1032 # Check whether --enable-suplementedir or --disable-suplementedir was given.
1033 if test "${enable_suplementedir+set}" = set; then
1034 enableval="$enable_suplementedir"
1035 SUPLEMENTED=$enableval
1037 SUPLEMENTED=$sbindir
1042 # Check whether --enable-includedir or --disable-includedir was given.
1043 if test "${enable_includedir+set}" = set; then
1044 enableval="$enable_includedir"
1045 INCLUDEDIR=$enableval
1047 INCLUDEDIR=/usr/include
1052 # Check whether --enable-pamlocking or --disable-pamlocking was given.
1053 if test "${enable_pamlocking+set}" = set; then
1054 enableval="$enable_pamlocking"
1055 WITH_PAMLOCKING=yes ; cat >> confdefs.h <<\EOF
1056 #define PAM_LOCKING 1
1065 # Check whether --enable-uglyhack or --disable-uglyhack was given.
1066 if test "${enable_uglyhack+set}" = set; then
1067 enableval="$enable_uglyhack"
1068 cat >> confdefs.h <<\EOF
1069 #define UGLY_HACK_FOR_PRIOR_BEHAVIOR_SUPPORT 1
1075 # Check whether --enable-read-both-confs or --disable-read-both-confs was given.
1076 if test "${enable_read_both_confs+set}" = set; then
1077 enableval="$enable_read_both_confs"
1078 cat >> confdefs.h <<\EOF
1079 #define PAM_READ_BOTH_CONFS 1
1086 # Check whether --enable-static-libpam or --disable-static-libpam was given.
1087 if test "${enable_static_libpam+set}" = set; then
1088 enableval="$enable_static_libpam"
1096 # Check whether --enable-dynamic-libpam or --disable-dynamic-libpam was given.
1097 if test "${enable_dynamic_libpam+set}" = set; then
1098 enableval="$enable_dynamic_libpam"
1106 DYNAMIC=-DPAM_DYNAMIC
1109 # Check whether --enable-static-modules or --disable-static-modules was given.
1110 if test "${enable_static_modules+set}" = set; then
1111 enableval="$enable_static_modules"
1117 # Check whether --enable-lckpwdf or --disable-lckpwdf was given.
1118 if test "${enable_lckpwdf+set}" = set; then
1119 enableval="$enable_lckpwdf"
1127 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1128 echo "configure:1129: checking how to run the C preprocessor" >&5
1129 # On Suns, sometimes $CPP names a directory.
1130 if test -n "$CPP" && test -d "$CPP"; then
1133 if test -z "$CPP"; then
1134 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1135 echo $ac_n "(cached) $ac_c" 1>&6
1137 # This must be in double quotes, not single quotes, because CPP may get
1138 # substituted into the Makefile and "${CC-cc}" will confuse make.
1140 # On the NeXT, cc -E runs the code through the compiler's parser,
1141 # not just through cpp.
1142 cat > conftest.$ac_ext <<EOF
1143 #line 1144 "configure"
1144 #include "confdefs.h"
1148 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1149 { (eval echo configure:1150: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1150 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1151 if test -z "$ac_err"; then
1155 echo "configure: failed program was:" >&5
1156 cat conftest.$ac_ext >&5
1158 CPP="${CC-cc} -E -traditional-cpp"
1159 cat > conftest.$ac_ext <<EOF
1160 #line 1161 "configure"
1161 #include "confdefs.h"
1165 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1166 { (eval echo configure:1167: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1167 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1168 if test -z "$ac_err"; then
1172 echo "configure: failed program was:" >&5
1173 cat conftest.$ac_ext >&5
1175 CPP="${CC-cc} -nologo -E"
1176 cat > conftest.$ac_ext <<EOF
1177 #line 1178 "configure"
1178 #include "confdefs.h"
1182 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1183 { (eval echo configure:1184: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1184 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1185 if test -z "$ac_err"; then
1189 echo "configure: failed program was:" >&5
1190 cat conftest.$ac_ext >&5
1199 ac_cv_prog_CPP="$CPP"
1201 CPP="$ac_cv_prog_CPP"
1203 ac_cv_prog_CPP="$CPP"
1205 echo "$ac_t""$CPP" 1>&6
1207 for ac_hdr in paths.h
1209 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1210 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1211 echo "configure:1212: checking for $ac_hdr" >&5
1212 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1213 echo $ac_n "(cached) $ac_c" 1>&6
1215 cat > conftest.$ac_ext <<EOF
1216 #line 1217 "configure"
1217 #include "confdefs.h"
1220 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1221 { (eval echo configure:1222: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1222 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1223 if test -z "$ac_err"; then
1225 eval "ac_cv_header_$ac_safe=yes"
1228 echo "configure: failed program was:" >&5
1229 cat conftest.$ac_ext >&5
1231 eval "ac_cv_header_$ac_safe=no"
1235 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1236 echo "$ac_t""yes" 1>&6
1237 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1238 cat >> confdefs.h <<EOF
1239 #define $ac_tr_hdr 1
1243 echo "$ac_t""no" 1>&6
1247 # Check whether --with-mailspool or --without-mailspool was given.
1248 if test "${with_mailspool+set}" = set; then
1249 withval="$with_mailspool"
1250 with_mailspool=${withval}
1253 if test x$with_mailspool != x ; then
1254 pam_mail_spool="\"$with_mailspool\""
1256 if test "$cross_compiling" = yes; then
1257 pam_mail_spool="\"/var/spool/mail\""
1259 cat > conftest.$ac_ext <<EOF
1260 #line 1261 "configure"
1261 #include "confdefs.h"
1265 #ifdef _PATH_MAILDIR
1272 if { (eval echo configure:1273: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1274 pam_mail_spool="_PATH_MAILDIR"
1276 echo "configure: failed program was:" >&5
1277 cat conftest.$ac_ext >&5
1279 pam_mail_spool="\"/var/spool/mail\""
1285 cat >> confdefs.h <<EOF
1286 #define PAM_PATH_MAILDIR $pam_mail_spool
1290 echo $ac_n "checking for __libc_sched_setscheduler in -lc""... $ac_c" 1>&6
1291 echo "configure:1292: checking for __libc_sched_setscheduler in -lc" >&5
1292 ac_lib_var=`echo c'_'__libc_sched_setscheduler | sed 'y%./+-%__p_%'`
1293 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1294 echo $ac_n "(cached) $ac_c" 1>&6
1296 ac_save_LIBS="$LIBS"
1298 cat > conftest.$ac_ext <<EOF
1299 #line 1300 "configure"
1300 #include "confdefs.h"
1301 /* Override any gcc2 internal prototype to avoid an error. */
1302 /* We use char because int might match the return type of a gcc2
1303 builtin and then its argument prototype would still apply. */
1304 char __libc_sched_setscheduler();
1307 __libc_sched_setscheduler()
1310 if { (eval echo configure:1311: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1312 eval "ac_cv_lib_$ac_lib_var=yes"
1314 echo "configure: failed program was:" >&5
1315 cat conftest.$ac_ext >&5
1317 eval "ac_cv_lib_$ac_lib_var=no"
1320 LIBS="$ac_save_LIBS"
1323 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1324 echo "$ac_t""yes" 1>&6
1327 echo "$ac_t""no" 1>&6
1333 echo $ac_n "checking for lckpwdf in -lc""... $ac_c" 1>&6
1334 echo "configure:1335: checking for lckpwdf in -lc" >&5
1335 ac_lib_var=`echo c'_'lckpwdf | sed 'y%./+-%__p_%'`
1336 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1337 echo $ac_n "(cached) $ac_c" 1>&6
1339 ac_save_LIBS="$LIBS"
1341 cat > conftest.$ac_ext <<EOF
1342 #line 1343 "configure"
1343 #include "confdefs.h"
1344 /* Override any gcc2 internal prototype to avoid an error. */
1345 /* We use char because int might match the return type of a gcc2
1346 builtin and then its argument prototype would still apply. */
1353 if { (eval echo configure:1354: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1355 eval "ac_cv_lib_$ac_lib_var=yes"
1357 echo "configure: failed program was:" >&5
1358 cat conftest.$ac_ext >&5
1360 eval "ac_cv_lib_$ac_lib_var=no"
1363 LIBS="$ac_save_LIBS"
1366 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1367 echo "$ac_t""yes" 1>&6
1370 echo "$ac_t""no" 1>&6
1376 echo $ac_n "checking for FascistCheck in -lcrack""... $ac_c" 1>&6
1377 echo "configure:1378: checking for FascistCheck in -lcrack" >&5
1378 ac_lib_var=`echo crack'_'FascistCheck | sed 'y%./+-%__p_%'`
1379 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1380 echo $ac_n "(cached) $ac_c" 1>&6
1382 ac_save_LIBS="$LIBS"
1383 LIBS="-lcrack $LIBS"
1384 cat > conftest.$ac_ext <<EOF
1385 #line 1386 "configure"
1386 #include "confdefs.h"
1387 /* Override any gcc2 internal prototype to avoid an error. */
1388 /* We use char because int might match the return type of a gcc2
1389 builtin and then its argument prototype would still apply. */
1390 char FascistCheck();
1396 if { (eval echo configure:1397: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1398 eval "ac_cv_lib_$ac_lib_var=yes"
1400 echo "configure: failed program was:" >&5
1401 cat conftest.$ac_ext >&5
1403 eval "ac_cv_lib_$ac_lib_var=no"
1406 LIBS="$ac_save_LIBS"
1409 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1410 echo "$ac_t""yes" 1>&6
1411 HAVE_LIBCRACK=yes ; cat >> confdefs.h <<\EOF
1412 #define HAVE_LIBCRACK 1
1416 echo "$ac_t""no" 1>&6
1422 echo $ac_n "checking for fcrypt in -lcrypt""... $ac_c" 1>&6
1423 echo "configure:1424: checking for fcrypt in -lcrypt" >&5
1424 ac_lib_var=`echo crypt'_'fcrypt | sed 'y%./+-%__p_%'`
1425 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1426 echo $ac_n "(cached) $ac_c" 1>&6
1428 ac_save_LIBS="$LIBS"
1429 LIBS="-lcrypt $LIBS"
1430 cat > conftest.$ac_ext <<EOF
1431 #line 1432 "configure"
1432 #include "confdefs.h"
1433 /* Override any gcc2 internal prototype to avoid an error. */
1434 /* We use char because int might match the return type of a gcc2
1435 builtin and then its argument prototype would still apply. */
1442 if { (eval echo configure:1443: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1444 eval "ac_cv_lib_$ac_lib_var=yes"
1446 echo "configure: failed program was:" >&5
1447 cat conftest.$ac_ext >&5
1449 eval "ac_cv_lib_$ac_lib_var=no"
1452 LIBS="$ac_save_LIBS"
1455 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1456 echo "$ac_t""yes" 1>&6
1457 HAVE_LIBCRYPT=yes ; cat >> confdefs.h <<\EOF
1458 #define HAVE_LIBCRYPT 1
1462 echo "$ac_t""no" 1>&6
1467 echo $ac_n "checking for dbm_store in -lndbm""... $ac_c" 1>&6
1468 echo "configure:1469: checking for dbm_store in -lndbm" >&5
1469 ac_lib_var=`echo ndbm'_'dbm_store | sed 'y%./+-%__p_%'`
1470 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1471 echo $ac_n "(cached) $ac_c" 1>&6
1473 ac_save_LIBS="$LIBS"
1475 cat > conftest.$ac_ext <<EOF
1476 #line 1477 "configure"
1477 #include "confdefs.h"
1478 /* Override any gcc2 internal prototype to avoid an error. */
1479 /* We use char because int might match the return type of a gcc2
1480 builtin and then its argument prototype would still apply. */
1487 if { (eval echo configure:1488: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1489 eval "ac_cv_lib_$ac_lib_var=yes"
1491 echo "configure: failed program was:" >&5
1492 cat conftest.$ac_ext >&5
1494 eval "ac_cv_lib_$ac_lib_var=no"
1497 LIBS="$ac_save_LIBS"
1500 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1501 echo "$ac_t""yes" 1>&6
1502 HAVE_LIBNDBM=yes ; cat >> confdefs.h <<\EOF
1503 #define HAVE_LIBNDBM 1
1507 echo "$ac_t""no" 1>&6
1512 echo $ac_n "checking for dbm_store in -ldb""... $ac_c" 1>&6
1513 echo "configure:1514: checking for dbm_store in -ldb" >&5
1514 ac_lib_var=`echo db'_'dbm_store | sed 'y%./+-%__p_%'`
1515 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1516 echo $ac_n "(cached) $ac_c" 1>&6
1518 ac_save_LIBS="$LIBS"
1520 cat > conftest.$ac_ext <<EOF
1521 #line 1522 "configure"
1522 #include "confdefs.h"
1523 /* Override any gcc2 internal prototype to avoid an error. */
1524 /* We use char because int might match the return type of a gcc2
1525 builtin and then its argument prototype would still apply. */
1532 if { (eval echo configure:1533: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1534 eval "ac_cv_lib_$ac_lib_var=yes"
1536 echo "configure: failed program was:" >&5
1537 cat conftest.$ac_ext >&5
1539 eval "ac_cv_lib_$ac_lib_var=no"
1542 LIBS="$ac_save_LIBS"
1545 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1546 echo "$ac_t""yes" 1>&6
1547 HAVE_LIBDB=yes ; cat >> confdefs.h <<\EOF
1548 #define HAVE_LIBDB 1
1552 echo "$ac_t""no" 1>&6
1557 echo $ac_n "checking for yylex in -lfl""... $ac_c" 1>&6
1558 echo "configure:1559: checking for yylex in -lfl" >&5
1559 ac_lib_var=`echo fl'_'yylex | sed 'y%./+-%__p_%'`
1560 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1561 echo $ac_n "(cached) $ac_c" 1>&6
1563 ac_save_LIBS="$LIBS"
1564 LIBS="-lfl HAVE_LIBFL=no $LIBS"
1565 cat > conftest.$ac_ext <<EOF
1566 #line 1567 "configure"
1567 #include "confdefs.h"
1568 /* Override any gcc2 internal prototype to avoid an error. */
1569 /* We use char because int might match the return type of a gcc2
1570 builtin and then its argument prototype would still apply. */
1577 if { (eval echo configure:1578: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1579 eval "ac_cv_lib_$ac_lib_var=yes"
1581 echo "configure: failed program was:" >&5
1582 cat conftest.$ac_ext >&5
1584 eval "ac_cv_lib_$ac_lib_var=no"
1587 LIBS="$ac_save_LIBS"
1590 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1591 echo "$ac_t""yes" 1>&6
1594 echo "$ac_t""no" 1>&6
1595 HAVE_LIBFL=yes ; cat >> confdefs.h <<\EOF
1596 #define HAVE_LIBFL 1
1602 echo $ac_n "checking for yp_maplist in -lnsl""... $ac_c" 1>&6
1603 echo "configure:1604: checking for yp_maplist in -lnsl" >&5
1604 ac_lib_var=`echo nsl'_'yp_maplist | sed 'y%./+-%__p_%'`
1605 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1606 echo $ac_n "(cached) $ac_c" 1>&6
1608 ac_save_LIBS="$LIBS"
1610 cat > conftest.$ac_ext <<EOF
1611 #line 1612 "configure"
1612 #include "confdefs.h"
1613 /* Override any gcc2 internal prototype to avoid an error. */
1614 /* We use char because int might match the return type of a gcc2
1615 builtin and then its argument prototype would still apply. */
1622 if { (eval echo configure:1623: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1624 eval "ac_cv_lib_$ac_lib_var=yes"
1626 echo "configure: failed program was:" >&5
1627 cat conftest.$ac_ext >&5
1629 eval "ac_cv_lib_$ac_lib_var=no"
1632 LIBS="$ac_save_LIBS"
1635 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1636 echo "$ac_t""yes" 1>&6
1637 HAVE_LIBNSL=yes ; cat >> confdefs.h <<\EOF
1638 #define HAVE_LIBNSL 1
1642 echo "$ac_t""no" 1>&6
1647 echo $ac_n "checking for pwdb_db_name in -lpwdb""... $ac_c" 1>&6
1648 echo "configure:1649: checking for pwdb_db_name in -lpwdb" >&5
1649 ac_lib_var=`echo pwdb'_'pwdb_db_name | sed 'y%./+-%__p_%'`
1650 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1651 echo $ac_n "(cached) $ac_c" 1>&6
1653 ac_save_LIBS="$LIBS"
1655 cat > conftest.$ac_ext <<EOF
1656 #line 1657 "configure"
1657 #include "confdefs.h"
1658 /* Override any gcc2 internal prototype to avoid an error. */
1659 /* We use char because int might match the return type of a gcc2
1660 builtin and then its argument prototype would still apply. */
1661 char pwdb_db_name();
1667 if { (eval echo configure:1668: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1669 eval "ac_cv_lib_$ac_lib_var=yes"
1671 echo "configure: failed program was:" >&5
1672 cat conftest.$ac_ext >&5
1674 eval "ac_cv_lib_$ac_lib_var=no"
1677 LIBS="$ac_save_LIBS"
1680 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1681 echo "$ac_t""yes" 1>&6
1682 HAVE_LIBPWDB=yes ; cat >> confdefs.h <<\EOF
1683 #define HAVE_LIBPWDB 1
1687 echo "$ac_t""no" 1>&6
1694 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
1696 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1697 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
1698 echo "configure:1699: checking for $ac_hdr that defines DIR" >&5
1699 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
1700 echo $ac_n "(cached) $ac_c" 1>&6
1702 cat > conftest.$ac_ext <<EOF
1703 #line 1704 "configure"
1704 #include "confdefs.h"
1705 #include <sys/types.h>
1711 if { (eval echo configure:1712: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1713 eval "ac_cv_header_dirent_$ac_safe=yes"
1715 echo "configure: failed program was:" >&5
1716 cat conftest.$ac_ext >&5
1718 eval "ac_cv_header_dirent_$ac_safe=no"
1722 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
1723 echo "$ac_t""yes" 1>&6
1724 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1725 cat >> confdefs.h <<EOF
1726 #define $ac_tr_hdr 1
1728 ac_header_dirent=$ac_hdr; break
1730 echo "$ac_t""no" 1>&6
1733 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
1734 if test $ac_header_dirent = dirent.h; then
1735 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
1736 echo "configure:1737: checking for opendir in -ldir" >&5
1737 ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
1738 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1739 echo $ac_n "(cached) $ac_c" 1>&6
1741 ac_save_LIBS="$LIBS"
1743 cat > conftest.$ac_ext <<EOF
1744 #line 1745 "configure"
1745 #include "confdefs.h"
1746 /* Override any gcc2 internal prototype to avoid an error. */
1747 /* We use char because int might match the return type of a gcc2
1748 builtin and then its argument prototype would still apply. */
1755 if { (eval echo configure:1756: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1757 eval "ac_cv_lib_$ac_lib_var=yes"
1759 echo "configure: failed program was:" >&5
1760 cat conftest.$ac_ext >&5
1762 eval "ac_cv_lib_$ac_lib_var=no"
1765 LIBS="$ac_save_LIBS"
1768 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1769 echo "$ac_t""yes" 1>&6
1772 echo "$ac_t""no" 1>&6
1776 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
1777 echo "configure:1778: checking for opendir in -lx" >&5
1778 ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'`
1779 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1780 echo $ac_n "(cached) $ac_c" 1>&6
1782 ac_save_LIBS="$LIBS"
1784 cat > conftest.$ac_ext <<EOF
1785 #line 1786 "configure"
1786 #include "confdefs.h"
1787 /* Override any gcc2 internal prototype to avoid an error. */
1788 /* We use char because int might match the return type of a gcc2
1789 builtin and then its argument prototype would still apply. */
1796 if { (eval echo configure:1797: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1798 eval "ac_cv_lib_$ac_lib_var=yes"
1800 echo "configure: failed program was:" >&5
1801 cat conftest.$ac_ext >&5
1803 eval "ac_cv_lib_$ac_lib_var=no"
1806 LIBS="$ac_save_LIBS"
1809 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1810 echo "$ac_t""yes" 1>&6
1813 echo "$ac_t""no" 1>&6
1818 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1819 echo "configure:1820: checking for ANSI C header files" >&5
1820 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1821 echo $ac_n "(cached) $ac_c" 1>&6
1823 cat > conftest.$ac_ext <<EOF
1824 #line 1825 "configure"
1825 #include "confdefs.h"
1831 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1832 { (eval echo configure:1833: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1833 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1834 if test -z "$ac_err"; then
1836 ac_cv_header_stdc=yes
1839 echo "configure: failed program was:" >&5
1840 cat conftest.$ac_ext >&5
1842 ac_cv_header_stdc=no
1846 if test $ac_cv_header_stdc = yes; then
1847 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1848 cat > conftest.$ac_ext <<EOF
1849 #line 1850 "configure"
1850 #include "confdefs.h"
1853 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1854 egrep "memchr" >/dev/null 2>&1; then
1858 ac_cv_header_stdc=no
1864 if test $ac_cv_header_stdc = yes; then
1865 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1866 cat > conftest.$ac_ext <<EOF
1867 #line 1868 "configure"
1868 #include "confdefs.h"
1871 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1872 egrep "free" >/dev/null 2>&1; then
1876 ac_cv_header_stdc=no
1882 if test $ac_cv_header_stdc = yes; then
1883 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1884 if test "$cross_compiling" = yes; then
1887 cat > conftest.$ac_ext <<EOF
1888 #line 1889 "configure"
1889 #include "confdefs.h"
1891 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1892 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1893 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1894 int main () { int i; for (i = 0; i < 256; i++)
1895 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1899 if { (eval echo configure:1900: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1903 echo "configure: failed program was:" >&5
1904 cat conftest.$ac_ext >&5
1906 ac_cv_header_stdc=no
1914 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1915 if test $ac_cv_header_stdc = yes; then
1916 cat >> confdefs.h <<\EOF
1917 #define STDC_HEADERS 1
1922 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
1923 echo "configure:1924: checking for sys/wait.h that is POSIX.1 compatible" >&5
1924 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
1925 echo $ac_n "(cached) $ac_c" 1>&6
1927 cat > conftest.$ac_ext <<EOF
1928 #line 1929 "configure"
1929 #include "confdefs.h"
1930 #include <sys/types.h>
1931 #include <sys/wait.h>
1933 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
1936 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
1941 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
1944 if { (eval echo configure:1945: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1946 ac_cv_header_sys_wait_h=yes
1948 echo "configure: failed program was:" >&5
1949 cat conftest.$ac_ext >&5
1951 ac_cv_header_sys_wait_h=no
1956 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
1957 if test $ac_cv_header_sys_wait_h = yes; then
1958 cat >> confdefs.h <<\EOF
1959 #define HAVE_SYS_WAIT_H 1
1964 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
1966 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1967 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1968 echo "configure:1969: checking for $ac_hdr" >&5
1969 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1970 echo $ac_n "(cached) $ac_c" 1>&6
1972 cat > conftest.$ac_ext <<EOF
1973 #line 1974 "configure"
1974 #include "confdefs.h"
1977 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1978 { (eval echo configure:1979: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1979 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1980 if test -z "$ac_err"; then
1982 eval "ac_cv_header_$ac_safe=yes"
1985 echo "configure: failed program was:" >&5
1986 cat conftest.$ac_ext >&5
1988 eval "ac_cv_header_$ac_safe=no"
1992 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1993 echo "$ac_t""yes" 1>&6
1994 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1995 cat >> confdefs.h <<EOF
1996 #define $ac_tr_hdr 1
2000 echo "$ac_t""no" 1>&6
2005 for ac_hdr in features.h
2007 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2008 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2009 echo "configure:2010: checking for $ac_hdr" >&5
2010 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2011 echo $ac_n "(cached) $ac_c" 1>&6
2013 cat > conftest.$ac_ext <<EOF
2014 #line 2015 "configure"
2015 #include "confdefs.h"
2018 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2019 { (eval echo configure:2020: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2020 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2021 if test -z "$ac_err"; then
2023 eval "ac_cv_header_$ac_safe=yes"
2026 echo "configure: failed program was:" >&5
2027 cat conftest.$ac_ext >&5
2029 eval "ac_cv_header_$ac_safe=no"
2033 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2034 echo "$ac_t""yes" 1>&6
2035 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2036 cat >> confdefs.h <<EOF
2037 #define $ac_tr_hdr 1
2041 echo "$ac_t""no" 1>&6
2046 for ac_hdr in crypt.h
2048 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2049 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2050 echo "configure:2051: checking for $ac_hdr" >&5
2051 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2052 echo $ac_n "(cached) $ac_c" 1>&6
2054 cat > conftest.$ac_ext <<EOF
2055 #line 2056 "configure"
2056 #include "confdefs.h"
2059 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2060 { (eval echo configure:2061: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2061 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2062 if test -z "$ac_err"; then
2064 eval "ac_cv_header_$ac_safe=yes"
2067 echo "configure: failed program was:" >&5
2068 cat conftest.$ac_ext >&5
2070 eval "ac_cv_header_$ac_safe=no"
2074 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2075 echo "$ac_t""yes" 1>&6
2076 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2077 cat >> confdefs.h <<EOF
2078 #define $ac_tr_hdr 1
2082 echo "$ac_t""no" 1>&6
2087 for ac_hdr in ndbm.h db.h
2089 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2090 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2091 echo "configure:2092: checking for $ac_hdr" >&5
2092 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2093 echo $ac_n "(cached) $ac_c" 1>&6
2095 cat > conftest.$ac_ext <<EOF
2096 #line 2097 "configure"
2097 #include "confdefs.h"
2100 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2101 { (eval echo configure:2102: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2102 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2103 if test -z "$ac_err"; then
2105 eval "ac_cv_header_$ac_safe=yes"
2108 echo "configure: failed program was:" >&5
2109 cat conftest.$ac_ext >&5
2111 eval "ac_cv_header_$ac_safe=no"
2115 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2116 echo "$ac_t""yes" 1>&6
2117 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2118 cat >> confdefs.h <<EOF
2119 #define $ac_tr_hdr 1
2123 echo "$ac_t""no" 1>&6
2127 HAVE_NDBM_H=$ac_cv_header_ndbm_h
2130 for ac_hdr in lastlog.h utmp.h utmpx.h
2132 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2133 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2134 echo "configure:2135: checking for $ac_hdr" >&5
2135 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2136 echo $ac_n "(cached) $ac_c" 1>&6
2138 cat > conftest.$ac_ext <<EOF
2139 #line 2140 "configure"
2140 #include "confdefs.h"
2143 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2144 { (eval echo configure:2145: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2145 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2146 if test -z "$ac_err"; then
2148 eval "ac_cv_header_$ac_safe=yes"
2151 echo "configure: failed program was:" >&5
2152 cat conftest.$ac_ext >&5
2154 eval "ac_cv_header_$ac_safe=no"
2158 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2159 echo "$ac_t""yes" 1>&6
2160 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2161 cat >> confdefs.h <<EOF
2162 #define $ac_tr_hdr 1
2166 echo "$ac_t""no" 1>&6
2172 echo $ac_n "checking path to cracklib dictionary""... $ac_c" 1>&6
2173 echo "configure:2174: checking path to cracklib dictionary" >&5
2174 DICT_DIR_CANDIDATES="/usr/lib /usr/share/dict /usr/share/lib \
2175 /usr/local/lib /usr/local/share/lib"
2176 DICT_FILE_CANDIDATES="pw_dict cracklib_dict"
2177 CRACKLIB_DICTPATH=""
2178 for d in $DICT_DIR_CANDIDATES ; do
2179 for f in $DICT_FILE_CANDIDATES ; do
2180 if test -r $d/$f.hwm ; then
2181 CRACKLIB_DICTPATH=$d/$f
2183 elif test -r $d/dict/$f.hwm ; then
2184 CRACKLIB_DICTPATH=$d/dict/$f
2189 if test -z $CRACKLIB_DICTPATH ; then
2190 echo "$ac_t""none found" 1>&6
2192 echo "$ac_t""$CRACKLIB_DICTPATH" 1>&6
2197 GCC_WARNINGS="-Wall -Wwrite-strings \
2198 -Wpointer-arith -Wcast-qual -Wcast-align \
2199 -Wstrict-prototypes -Wmissing-prototypes \
2200 -Wnested-externs -Winline -Wshadow"
2202 if test "$GCC" = yes; then
2204 ### Non-Linux needs attention on per-OS basis
2205 OS_CFLAGS="-ansi -D_POSIX_SOURCE -pedantic"
2206 WARNINGS="$GCC_WARNINGS"
2208 #can/should we use LD=gcc ???
2210 LD_D="gcc -shared -Xlinker -x"
2211 LD_L="$LD -x -shared"
2215 ### Non-gcc needs attention on per-OS basis
2217 ### [These are Solaris-C specific...]
2222 LD_D="cc -z text -G -R."
2235 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
2236 echo "configure:2237: checking whether byte ordering is bigendian" >&5
2237 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
2238 echo $ac_n "(cached) $ac_c" 1>&6
2240 ac_cv_c_bigendian=unknown
2241 # See if sys/param.h defines the BYTE_ORDER macro.
2242 cat > conftest.$ac_ext <<EOF
2243 #line 2244 "configure"
2244 #include "confdefs.h"
2245 #include <sys/types.h>
2246 #include <sys/param.h>
2249 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
2254 if { (eval echo configure:2255: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2256 # It does; now see whether it defined to BIG_ENDIAN or not.
2257 cat > conftest.$ac_ext <<EOF
2258 #line 2259 "configure"
2259 #include "confdefs.h"
2260 #include <sys/types.h>
2261 #include <sys/param.h>
2264 #if BYTE_ORDER != BIG_ENDIAN
2269 if { (eval echo configure:2270: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2271 ac_cv_c_bigendian=yes
2273 echo "configure: failed program was:" >&5
2274 cat conftest.$ac_ext >&5
2276 ac_cv_c_bigendian=no
2280 echo "configure: failed program was:" >&5
2281 cat conftest.$ac_ext >&5
2284 if test $ac_cv_c_bigendian = unknown; then
2285 if test "$cross_compiling" = yes; then
2286 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
2288 cat > conftest.$ac_ext <<EOF
2289 #line 2290 "configure"
2290 #include "confdefs.h"
2292 /* Are we little or big endian? From Harbison&Steele. */
2296 char c[sizeof (long)];
2299 exit (u.c[sizeof (long) - 1] == 1);
2302 if { (eval echo configure:2303: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2304 ac_cv_c_bigendian=no
2306 echo "configure: failed program was:" >&5
2307 cat conftest.$ac_ext >&5
2309 ac_cv_c_bigendian=yes
2317 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
2318 if test $ac_cv_c_bigendian = yes; then
2319 cat >> confdefs.h <<\EOF
2320 #define WORDS_BIGENDIAN 1
2325 echo $ac_n "checking for working const""... $ac_c" 1>&6
2326 echo "configure:2327: checking for working const" >&5
2327 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
2328 echo $ac_n "(cached) $ac_c" 1>&6
2330 cat > conftest.$ac_ext <<EOF
2331 #line 2332 "configure"
2332 #include "confdefs.h"
2336 /* Ultrix mips cc rejects this. */
2337 typedef int charset[2]; const charset x;
2338 /* SunOS 4.1.1 cc rejects this. */
2339 char const *const *ccp;
2341 /* NEC SVR4.0.2 mips cc rejects this. */
2342 struct point {int x, y;};
2343 static struct point const zero = {0,0};
2344 /* AIX XL C 1.02.0.0 rejects this.
2345 It does not let you subtract one const X* pointer from another in an arm
2346 of an if-expression whose if-part is not a constant expression */
2347 const char *g = "string";
2348 ccp = &g + (g ? g-g : 0);
2349 /* HPUX 7.0 cc rejects these. */
2352 ccp = (char const *const *) p;
2353 { /* SCO 3.2v4 cc rejects this. */
2355 char const *s = 0 ? (char *) 0 : (char const *) 0;
2359 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
2361 const int *foo = &x[0];
2364 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
2365 typedef const int *iptr;
2369 { /* AIX XL C 1.02.0.0 rejects this saying
2370 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
2371 struct s { int j; const int *ap[3]; };
2372 struct s *b; b->j = 5;
2374 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
2380 if { (eval echo configure:2381: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2384 echo "configure: failed program was:" >&5
2385 cat conftest.$ac_ext >&5
2392 echo "$ac_t""$ac_cv_c_const" 1>&6
2393 if test $ac_cv_c_const = no; then
2394 cat >> confdefs.h <<\EOF
2400 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
2401 echo "configure:2402: checking for uid_t in sys/types.h" >&5
2402 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
2403 echo $ac_n "(cached) $ac_c" 1>&6
2405 cat > conftest.$ac_ext <<EOF
2406 #line 2407 "configure"
2407 #include "confdefs.h"
2408 #include <sys/types.h>
2410 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2411 egrep "uid_t" >/dev/null 2>&1; then
2413 ac_cv_type_uid_t=yes
2422 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
2423 if test $ac_cv_type_uid_t = no; then
2424 cat >> confdefs.h <<\EOF
2428 cat >> confdefs.h <<\EOF
2434 echo $ac_n "checking for off_t""... $ac_c" 1>&6
2435 echo "configure:2436: checking for off_t" >&5
2436 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
2437 echo $ac_n "(cached) $ac_c" 1>&6
2439 cat > conftest.$ac_ext <<EOF
2440 #line 2441 "configure"
2441 #include "confdefs.h"
2442 #include <sys/types.h>
2448 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2449 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2451 ac_cv_type_off_t=yes
2459 echo "$ac_t""$ac_cv_type_off_t" 1>&6
2460 if test $ac_cv_type_off_t = no; then
2461 cat >> confdefs.h <<\EOF
2467 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
2468 echo "configure:2469: checking for pid_t" >&5
2469 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
2470 echo $ac_n "(cached) $ac_c" 1>&6
2472 cat > conftest.$ac_ext <<EOF
2473 #line 2474 "configure"
2474 #include "confdefs.h"
2475 #include <sys/types.h>
2481 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2482 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2484 ac_cv_type_pid_t=yes
2492 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
2493 if test $ac_cv_type_pid_t = no; then
2494 cat >> confdefs.h <<\EOF
2500 echo $ac_n "checking for size_t""... $ac_c" 1>&6
2501 echo "configure:2502: checking for size_t" >&5
2502 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
2503 echo $ac_n "(cached) $ac_c" 1>&6
2505 cat > conftest.$ac_ext <<EOF
2506 #line 2507 "configure"
2507 #include "confdefs.h"
2508 #include <sys/types.h>
2514 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2515 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2517 ac_cv_type_size_t=yes
2520 ac_cv_type_size_t=no
2525 echo "$ac_t""$ac_cv_type_size_t" 1>&6
2526 if test $ac_cv_type_size_t = no; then
2527 cat >> confdefs.h <<\EOF
2528 #define size_t unsigned
2533 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
2534 echo "configure:2535: checking whether time.h and sys/time.h may both be included" >&5
2535 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
2536 echo $ac_n "(cached) $ac_c" 1>&6
2538 cat > conftest.$ac_ext <<EOF
2539 #line 2540 "configure"
2540 #include "confdefs.h"
2541 #include <sys/types.h>
2542 #include <sys/time.h>
2548 if { (eval echo configure:2549: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2550 ac_cv_header_time=yes
2552 echo "configure: failed program was:" >&5
2553 cat conftest.$ac_ext >&5
2555 ac_cv_header_time=no
2560 echo "$ac_t""$ac_cv_header_time" 1>&6
2561 if test $ac_cv_header_time = yes; then
2562 cat >> confdefs.h <<\EOF
2563 #define TIME_WITH_SYS_TIME 1
2568 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
2569 echo "configure:2570: checking whether struct tm is in sys/time.h or time.h" >&5
2570 if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then
2571 echo $ac_n "(cached) $ac_c" 1>&6
2573 cat > conftest.$ac_ext <<EOF
2574 #line 2575 "configure"
2575 #include "confdefs.h"
2576 #include <sys/types.h>
2579 struct tm *tp; tp->tm_sec;
2582 if { (eval echo configure:2583: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2584 ac_cv_struct_tm=time.h
2586 echo "configure: failed program was:" >&5
2587 cat conftest.$ac_ext >&5
2589 ac_cv_struct_tm=sys/time.h
2594 echo "$ac_t""$ac_cv_struct_tm" 1>&6
2595 if test $ac_cv_struct_tm = sys/time.h; then
2596 cat >> confdefs.h <<\EOF
2597 #define TM_IN_SYS_TIME 1
2603 echo $ac_n "checking type of array argument to getgroups""... $ac_c" 1>&6
2604 echo "configure:2605: checking type of array argument to getgroups" >&5
2605 if eval "test \"`echo '$''{'ac_cv_type_getgroups'+set}'`\" = set"; then
2606 echo $ac_n "(cached) $ac_c" 1>&6
2608 if test "$cross_compiling" = yes; then
2609 ac_cv_type_getgroups=cross
2611 cat > conftest.$ac_ext <<EOF
2612 #line 2613 "configure"
2613 #include "confdefs.h"
2615 /* Thanks to Mike Rendell for this test. */
2616 #include <sys/types.h>
2619 #define MAX(x, y) ((x) > (y) ? (x) : (y))
2624 union { gid_t gval; long lval; } val;
2627 for (i = 0; i < NGID; i++)
2628 gidset[i] = val.gval;
2629 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
2631 /* Exit non-zero if getgroups seems to require an array of ints. This
2632 happens when gid_t is short but getgroups modifies an array of ints. */
2633 exit ((n > 0 && gidset[n] != val.gval) ? 1 : 0);
2637 if { (eval echo configure:2638: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2639 ac_cv_type_getgroups=gid_t
2641 echo "configure: failed program was:" >&5
2642 cat conftest.$ac_ext >&5
2644 ac_cv_type_getgroups=int
2649 if test $ac_cv_type_getgroups = cross; then
2650 cat > conftest.$ac_ext <<EOF
2651 #line 2652 "configure"
2652 #include "confdefs.h"
2655 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2656 egrep "getgroups.*int.*gid_t" >/dev/null 2>&1; then
2658 ac_cv_type_getgroups=gid_t
2661 ac_cv_type_getgroups=int
2668 echo "$ac_t""$ac_cv_type_getgroups" 1>&6
2669 cat >> confdefs.h <<EOF
2670 #define GETGROUPS_T $ac_cv_type_getgroups
2674 if test $ac_cv_prog_gcc = yes; then
2675 echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
2676 echo "configure:2677: checking whether ${CC-cc} needs -traditional" >&5
2677 if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
2678 echo $ac_n "(cached) $ac_c" 1>&6
2680 ac_pattern="Autoconf.*'x'"
2681 cat > conftest.$ac_ext <<EOF
2682 #line 2683 "configure"
2683 #include "confdefs.h"
2687 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2688 egrep "$ac_pattern" >/dev/null 2>&1; then
2690 ac_cv_prog_gcc_traditional=yes
2693 ac_cv_prog_gcc_traditional=no
2698 if test $ac_cv_prog_gcc_traditional = no; then
2699 cat > conftest.$ac_ext <<EOF
2700 #line 2701 "configure"
2701 #include "confdefs.h"
2705 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2706 egrep "$ac_pattern" >/dev/null 2>&1; then
2708 ac_cv_prog_gcc_traditional=yes
2715 echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6
2716 if test $ac_cv_prog_gcc_traditional = yes; then
2717 CC="$CC -traditional"
2721 echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6
2722 echo "configure:2723: checking for 8-bit clean memcmp" >&5
2723 if eval "test \"`echo '$''{'ac_cv_func_memcmp_clean'+set}'`\" = set"; then
2724 echo $ac_n "(cached) $ac_c" 1>&6
2726 if test "$cross_compiling" = yes; then
2727 ac_cv_func_memcmp_clean=no
2729 cat > conftest.$ac_ext <<EOF
2730 #line 2731 "configure"
2731 #include "confdefs.h"
2735 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
2736 exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
2740 if { (eval echo configure:2741: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2742 ac_cv_func_memcmp_clean=yes
2744 echo "configure: failed program was:" >&5
2745 cat conftest.$ac_ext >&5
2747 ac_cv_func_memcmp_clean=no
2754 echo "$ac_t""$ac_cv_func_memcmp_clean" 1>&6
2755 test $ac_cv_func_memcmp_clean = no && LIBOBJS="$LIBOBJS memcmp.${ac_objext}"
2757 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
2758 echo "configure:2759: checking for vprintf" >&5
2759 if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
2760 echo $ac_n "(cached) $ac_c" 1>&6
2762 cat > conftest.$ac_ext <<EOF
2763 #line 2764 "configure"
2764 #include "confdefs.h"
2765 /* System header to define __stub macros and hopefully few prototypes,
2766 which can conflict with char vprintf(); below. */
2768 /* Override any gcc2 internal prototype to avoid an error. */
2769 /* We use char because int might match the return type of a gcc2
2770 builtin and then its argument prototype would still apply. */
2775 /* The GNU C library defines this for functions which it implements
2776 to always fail with ENOSYS. Some functions are actually named
2777 something starting with __ and the normal name is an alias. */
2778 #if defined (__stub_vprintf) || defined (__stub___vprintf)
2786 if { (eval echo configure:2787: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2788 eval "ac_cv_func_vprintf=yes"
2790 echo "configure: failed program was:" >&5
2791 cat conftest.$ac_ext >&5
2793 eval "ac_cv_func_vprintf=no"
2798 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
2799 echo "$ac_t""yes" 1>&6
2800 cat >> confdefs.h <<\EOF
2801 #define HAVE_VPRINTF 1
2805 echo "$ac_t""no" 1>&6
2808 if test "$ac_cv_func_vprintf" != yes; then
2809 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
2810 echo "configure:2811: checking for _doprnt" >&5
2811 if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
2812 echo $ac_n "(cached) $ac_c" 1>&6
2814 cat > conftest.$ac_ext <<EOF
2815 #line 2816 "configure"
2816 #include "confdefs.h"
2817 /* System header to define __stub macros and hopefully few prototypes,
2818 which can conflict with char _doprnt(); below. */
2820 /* Override any gcc2 internal prototype to avoid an error. */
2821 /* We use char because int might match the return type of a gcc2
2822 builtin and then its argument prototype would still apply. */
2827 /* The GNU C library defines this for functions which it implements
2828 to always fail with ENOSYS. Some functions are actually named
2829 something starting with __ and the normal name is an alias. */
2830 #if defined (__stub__doprnt) || defined (__stub____doprnt)
2838 if { (eval echo configure:2839: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2840 eval "ac_cv_func__doprnt=yes"
2842 echo "configure: failed program was:" >&5
2843 cat conftest.$ac_ext >&5
2845 eval "ac_cv_func__doprnt=no"
2850 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
2851 echo "$ac_t""yes" 1>&6
2852 cat >> confdefs.h <<\EOF
2853 #define HAVE_DOPRNT 1
2857 echo "$ac_t""no" 1>&6
2862 for ac_func in gethostname gettimeofday mkdir select strcspn strdup strerror strspn strstr strtol uname
2864 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2865 echo "configure:2866: checking for $ac_func" >&5
2866 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2867 echo $ac_n "(cached) $ac_c" 1>&6
2869 cat > conftest.$ac_ext <<EOF
2870 #line 2871 "configure"
2871 #include "confdefs.h"
2872 /* System header to define __stub macros and hopefully few prototypes,
2873 which can conflict with char $ac_func(); below. */
2875 /* Override any gcc2 internal prototype to avoid an error. */
2876 /* We use char because int might match the return type of a gcc2
2877 builtin and then its argument prototype would still apply. */
2882 /* The GNU C library defines this for functions which it implements
2883 to always fail with ENOSYS. Some functions are actually named
2884 something starting with __ and the normal name is an alias. */
2885 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2893 if { (eval echo configure:2894: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2895 eval "ac_cv_func_$ac_func=yes"
2897 echo "configure: failed program was:" >&5
2898 cat conftest.$ac_ext >&5
2900 eval "ac_cv_func_$ac_func=no"
2905 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2906 echo "$ac_t""yes" 1>&6
2907 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2908 cat >> confdefs.h <<EOF
2909 #define $ac_tr_func 1
2913 echo "$ac_t""no" 1>&6
2918 # Extract the first word of "sgml2txt", so it can be a program name with args.
2919 set dummy sgml2txt; ac_word=$2
2920 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2921 echo "configure:2922: checking for $ac_word" >&5
2922 if eval "test \"`echo '$''{'ac_cv_prog_HAVE_SGML2TXT'+set}'`\" = set"; then
2923 echo $ac_n "(cached) $ac_c" 1>&6
2925 if test -n "$HAVE_SGML2TXT"; then
2926 ac_cv_prog_HAVE_SGML2TXT="$HAVE_SGML2TXT" # Let the user override the test.
2928 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2930 for ac_dir in $ac_dummy; do
2931 test -z "$ac_dir" && ac_dir=.
2932 if test -f $ac_dir/$ac_word; then
2933 ac_cv_prog_HAVE_SGML2TXT="yes"
2938 test -z "$ac_cv_prog_HAVE_SGML2TXT" && ac_cv_prog_HAVE_SGML2TXT="no"
2941 HAVE_SGML2TXT="$ac_cv_prog_HAVE_SGML2TXT"
2942 if test -n "$HAVE_SGML2TXT"; then
2943 echo "$ac_t""$HAVE_SGML2TXT" 1>&6
2945 echo "$ac_t""no" 1>&6
2948 # Extract the first word of "sgml2html", so it can be a program name with args.
2949 set dummy sgml2html; ac_word=$2
2950 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2951 echo "configure:2952: checking for $ac_word" >&5
2952 if eval "test \"`echo '$''{'ac_cv_prog_HAVE_SGML2HTML'+set}'`\" = set"; then
2953 echo $ac_n "(cached) $ac_c" 1>&6
2955 if test -n "$HAVE_SGML2HTML"; then
2956 ac_cv_prog_HAVE_SGML2HTML="$HAVE_SGML2HTML" # Let the user override the test.
2958 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2960 for ac_dir in $ac_dummy; do
2961 test -z "$ac_dir" && ac_dir=.
2962 if test -f $ac_dir/$ac_word; then
2963 ac_cv_prog_HAVE_SGML2HTML="yes"
2968 test -z "$ac_cv_prog_HAVE_SGML2HTML" && ac_cv_prog_HAVE_SGML2HTML="no"
2971 HAVE_SGML2HTML="$ac_cv_prog_HAVE_SGML2HTML"
2972 if test -n "$HAVE_SGML2HTML"; then
2973 echo "$ac_t""$HAVE_SGML2HTML" 1>&6
2975 echo "$ac_t""no" 1>&6
2978 # Extract the first word of "sgml2latex", so it can be a program name with args.
2979 set dummy sgml2latex; ac_word=$2
2980 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2981 echo "configure:2982: checking for $ac_word" >&5
2982 if eval "test \"`echo '$''{'ac_cv_prog_HAVE_SGML2LATEX'+set}'`\" = set"; then
2983 echo $ac_n "(cached) $ac_c" 1>&6
2985 if test -n "$HAVE_SGML2LATEX"; then
2986 ac_cv_prog_HAVE_SGML2LATEX="$HAVE_SGML2LATEX" # Let the user override the test.
2988 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2990 for ac_dir in $ac_dummy; do
2991 test -z "$ac_dir" && ac_dir=.
2992 if test -f $ac_dir/$ac_word; then
2993 ac_cv_prog_HAVE_SGML2LATEX="yes"
2998 test -z "$ac_cv_prog_HAVE_SGML2LATEX" && ac_cv_prog_HAVE_SGML2LATEX="no"
3001 HAVE_SGML2LATEX="$ac_cv_prog_HAVE_SGML2LATEX"
3002 if test -n "$HAVE_SGML2LATEX"; then
3003 echo "$ac_t""$HAVE_SGML2LATEX" 1>&6
3005 echo "$ac_t""no" 1>&6
3008 if test $HAVE_SGML2LATEX = "yes" ; then
3009 if sgml2latex -h | grep -e --paper | grep ' -p ' > /dev/null ; then
3010 PSER="sgml2latex -o ps"
3012 PSER="sgml2latex -p"
3015 # Extract the first word of "sgml2ps", so it can be a program name with args.
3016 set dummy sgml2ps; ac_word=$2
3017 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3018 echo "configure:3019: checking for $ac_word" >&5
3019 if eval "test \"`echo '$''{'ac_cv_prog_HAVE_SGML2PS'+set}'`\" = set"; then
3020 echo $ac_n "(cached) $ac_c" 1>&6
3022 if test -n "$HAVE_SGML2PS"; then
3023 ac_cv_prog_HAVE_SGML2PS="$HAVE_SGML2PS" # Let the user override the test.
3025 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3027 for ac_dir in $ac_dummy; do
3028 test -z "$ac_dir" && ac_dir=.
3029 if test -f $ac_dir/$ac_word; then
3030 ac_cv_prog_HAVE_SGML2PS="yes"
3035 test -z "$ac_cv_prog_HAVE_SGML2PS" && ac_cv_prog_HAVE_SGML2PS="no"
3038 HAVE_SGML2PS="$ac_cv_prog_HAVE_SGML2PS"
3039 if test -n "$HAVE_SGML2PS"; then
3040 echo "$ac_t""$HAVE_SGML2PS" 1>&6
3042 echo "$ac_t""no" 1>&6
3045 if test $HAVE_SGML2PS = yes ; then
3052 cat > confcache <<\EOF
3053 # This file is a shell script that caches the results of configure
3054 # tests run on this system so they can be shared between configure
3055 # scripts and configure runs. It is not useful on other systems.
3056 # If it contains results you don't want to keep, you may remove or edit it.
3058 # By default, configure uses ./config.cache as the cache file,
3059 # creating it if it does not exist already. You can give configure
3060 # the --cache-file=FILE option to use a different cache file; that is
3061 # what configure does when it calls configure scripts in
3062 # subdirectories, so they share the cache.
3063 # Giving --cache-file=/dev/null disables caching, for debugging configure.
3064 # config.status only pays attention to the cache file if you give it the
3065 # --recheck option to rerun configure.
3068 # The following way of writing the cache mishandles newlines in values,
3069 # but we know of no workaround that is simple, portable, and efficient.
3070 # So, don't put newlines in cache variables' values.
3071 # Ultrix sh set writes to stderr and can't be redirected directly,
3072 # and sets the high bit in the cache file unless we assign to the vars.
3074 case `(ac_space=' '; set | grep ac_space) 2>&1` in
3076 # `set' does not quote correctly, so add quotes (double-quote substitution
3077 # turns \\\\ into \\, and sed turns \\ into \).
3079 -e "s/'/'\\\\''/g" \
3080 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
3083 # `set' quotes correctly as required by POSIX, so do not add quotes.
3084 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
3087 if cmp -s $cache_file confcache; then
3090 if test -w $cache_file; then
3091 echo "updating cache $cache_file"
3092 cat confcache > $cache_file
3094 echo "not updating unwritable cache $cache_file"
3099 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
3101 test "x$prefix" = xNONE && prefix=$ac_default_prefix
3102 # Let make expand exec_prefix.
3103 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
3105 # Any assignment to VPATH causes Sun make to only execute
3106 # the first set of double-colon rules, so remove it if not needed.
3107 # If there is a colon in the path, we need to keep it.
3108 if test "x$srcdir" = x.; then
3109 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
3112 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
3114 DEFS=-DHAVE_CONFIG_H
3116 # Without the "./", some shells look in PATH for config.status.
3117 : ${CONFIG_STATUS=./config.status}
3119 echo creating $CONFIG_STATUS
3120 rm -f $CONFIG_STATUS
3121 cat > $CONFIG_STATUS <<EOF
3123 # Generated automatically by configure.
3124 # Run this file to recreate the current configuration.
3125 # This directory was configured as follows,
3126 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
3128 # $0 $ac_configure_args
3130 # Compiler output produced by configure, useful for debugging
3131 # configure, is in ./config.log if it exists.
3133 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
3136 case "\$ac_option" in
3137 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
3138 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
3139 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
3140 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
3141 echo "$CONFIG_STATUS generated by autoconf version 2.13"
3143 -help | --help | --hel | --he | --h)
3144 echo "\$ac_cs_usage"; exit 0 ;;
3145 *) echo "\$ac_cs_usage"; exit 1 ;;
3149 ac_given_srcdir=$srcdir
3151 trap 'rm -fr `echo "Make.Rules _pam_aconf.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
3153 cat >> $CONFIG_STATUS <<EOF
3155 # Protect against being on the right side of a sed subst in config.status.
3156 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
3157 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
3161 s%@CFLAGS@%$CFLAGS%g
3162 s%@CPPFLAGS@%$CPPFLAGS%g
3163 s%@CXXFLAGS@%$CXXFLAGS%g
3164 s%@FFLAGS@%$FFLAGS%g
3166 s%@LDFLAGS@%$LDFLAGS%g
3168 s%@exec_prefix@%$exec_prefix%g
3169 s%@prefix@%$prefix%g
3170 s%@program_transform_name@%$program_transform_name%g
3171 s%@bindir@%$bindir%g
3172 s%@sbindir@%$sbindir%g
3173 s%@libexecdir@%$libexecdir%g
3174 s%@datadir@%$datadir%g
3175 s%@sysconfdir@%$sysconfdir%g
3176 s%@sharedstatedir@%$sharedstatedir%g
3177 s%@localstatedir@%$localstatedir%g
3178 s%@libdir@%$libdir%g
3179 s%@includedir@%$includedir%g
3180 s%@oldincludedir@%$oldincludedir%g
3181 s%@infodir@%$infodir%g
3182 s%@mandir@%$mandir%g
3183 s%@LIBPAM_VERSION_MAJOR@%$LIBPAM_VERSION_MAJOR%g
3184 s%@LIBPAM_VERSION_MINOR@%$LIBPAM_VERSION_MINOR%g
3186 s%@CONF_CFLAGS@%$CONF_CFLAGS%g
3188 s%@LOCALSRCDIR@%$LOCALSRCDIR%g
3190 s%@DYNTYPE@%$DYNTYPE%g
3192 s%@USESONAME@%$USESONAME%g
3193 s%@NEEDSONAME@%$NEEDSONAME%g
3194 s%@SHLIBMODE@%$SHLIBMODE%g
3195 s%@INSTALL@%$INSTALL%g
3198 s%@LEXLIB@%$LEXLIB%g
3200 s%@SET_MAKE@%$SET_MAKE%g
3201 s%@WITH_DEBUG@%$WITH_DEBUG%g
3202 s%@WITH_LIBDEBUG@%$WITH_LIBDEBUG%g
3203 s%@FAKEROOT@%$FAKEROOT%g
3204 s%@SECUREDIR@%$SECUREDIR%g
3205 s%@SCONFIGDIR@%$SCONFIGDIR%g
3206 s%@SUPLEMENTED@%$SUPLEMENTED%g
3207 s%@INCLUDEDIR@%$INCLUDEDIR%g
3208 s%@WITH_PAMLOCKING@%$WITH_PAMLOCKING%g
3209 s%@PAM_READ_BOTH_CONFS@%$PAM_READ_BOTH_CONFS%g
3210 s%@STATIC_LIBPAM@%$STATIC_LIBPAM%g
3211 s%@DYNAMIC_LIBPAM@%$DYNAMIC_LIBPAM%g
3212 s%@DYNAMIC@%$DYNAMIC%g
3213 s%@STATIC@%$STATIC%g
3214 s%@WITH_LCKPWDF@%$WITH_LCKPWDF%g
3216 s%@PAM_NEEDS_LIBC@%$PAM_NEEDS_LIBC%g
3217 s%@HAVE_LCKPWDF@%$HAVE_LCKPWDF%g
3218 s%@HAVE_LIBCRACK@%$HAVE_LIBCRACK%g
3219 s%@HAVE_LIBCRYPT@%$HAVE_LIBCRYPT%g
3220 s%@HAVE_LIBNDBM@%$HAVE_LIBNDBM%g
3221 s%@HAVE_LIBDB@%$HAVE_LIBDB%g
3222 s%@HAVE_LIBFL@%$HAVE_LIBFL%g
3223 s%@HAVE_LIBNSL@%$HAVE_LIBNSL%g
3224 s%@HAVE_LIBPWDB@%$HAVE_LIBPWDB%g
3225 s%@HAVE_NDBM_H@%$HAVE_NDBM_H%g
3226 s%@CRACKLIB_DICTPATH@%$CRACKLIB_DICTPATH%g
3227 s%@OS_CFLAGS@%$OS_CFLAGS%g
3228 s%@WARNINGS@%$WARNINGS%g
3234 s%@LIBOBJS@%$LIBOBJS%g
3235 s%@HAVE_SGML2TXT@%$HAVE_SGML2TXT%g
3236 s%@HAVE_SGML2HTML@%$HAVE_SGML2HTML%g
3237 s%@HAVE_SGML2LATEX@%$HAVE_SGML2LATEX%g
3238 s%@HAVE_SGML2PS@%$HAVE_SGML2PS%g
3244 cat >> $CONFIG_STATUS <<\EOF
3246 # Split the substitutions into bite-sized pieces for seds with
3247 # small command number limits, like on Digital OSF/1 and HP-UX.
3248 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
3249 ac_file=1 # Number of current file.
3250 ac_beg=1 # First line for current file.
3251 ac_end=$ac_max_sed_cmds # Line after last line for current file.
3254 while $ac_more_lines; do
3255 if test $ac_beg -gt 1; then
3256 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
3258 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
3260 if test ! -s conftest.s$ac_file; then
3262 rm -f conftest.s$ac_file
3264 if test -z "$ac_sed_cmds"; then
3265 ac_sed_cmds="sed -f conftest.s$ac_file"
3267 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
3269 ac_file=`expr $ac_file + 1`
3271 ac_end=`expr $ac_end + $ac_max_sed_cmds`
3274 if test -z "$ac_sed_cmds"; then
3279 cat >> $CONFIG_STATUS <<EOF
3281 CONFIG_FILES=\${CONFIG_FILES-"Make.Rules"}
3283 cat >> $CONFIG_STATUS <<\EOF
3284 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
3285 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3287 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
3288 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
3289 *) ac_file_in="${ac_file}.in" ;;
3292 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
3294 # Remove last slash and all that follows it. Not all systems have dirname.
3295 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
3296 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3297 # The file is in a subdirectory.
3298 test ! -d "$ac_dir" && mkdir "$ac_dir"
3299 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
3300 # A "../" for each directory in $ac_dir_suffix.
3301 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
3303 ac_dir_suffix= ac_dots=
3306 case "$ac_given_srcdir" in
3308 if test -z "$ac_dots"; then top_srcdir=.
3309 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
3310 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
3312 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
3313 top_srcdir="$ac_dots$ac_given_srcdir" ;;
3317 echo creating "$ac_file"
3319 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
3321 *Makefile*) ac_comsub="1i\\
3322 # $configure_input" ;;
3326 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3328 s%@configure_input@%$configure_input%g
3329 s%@srcdir@%$srcdir%g
3330 s%@top_srcdir@%$top_srcdir%g
3331 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
3335 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
3336 # NAME is the cpp macro being defined and VALUE is the value it is being given.
3338 # ac_d sets the value in "#define NAME VALUE" lines.
3339 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
3340 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
3343 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
3344 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
3345 ac_uB='\([ ]\)%\1#\2define\3'
3348 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
3349 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
3350 ac_eB='$%\1#\2define\3'
3354 if test "${CONFIG_HEADERS+set}" != set; then
3356 cat >> $CONFIG_STATUS <<EOF
3357 CONFIG_HEADERS="_pam_aconf.h"
3359 cat >> $CONFIG_STATUS <<\EOF
3361 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
3362 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3364 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
3365 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
3366 *) ac_file_in="${ac_file}.in" ;;
3369 echo creating $ac_file
3371 rm -f conftest.frag conftest.in conftest.out
3372 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3373 cat $ac_file_inputs > conftest.in
3377 # Transform confdefs.h into a sed script conftest.vals that substitutes
3378 # the proper values into config.h.in to produce config.h. And first:
3379 # Protect against being on the right side of a sed subst in config.status.
3380 # Protect against being in an unquoted here document in config.status.
3382 cat > conftest.hdr <<\EOF
3385 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
3389 sed -n -f conftest.hdr confdefs.h > conftest.vals
3392 # This sed command replaces #undef with comments. This is necessary, for
3393 # example, in the case of _POSIX_SOURCE, which is predefined and required
3394 # on some systems where configure will not decide to define it.
3395 cat >> conftest.vals <<\EOF
3396 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
3399 # Break up conftest.vals because some shells have a limit on
3400 # the size of here documents, and old seds have small limits too.
3405 ac_lines=`grep -c . conftest.vals`
3406 # grep -c gives empty output for an empty file on some AIX systems.
3407 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
3408 # Write a limited-size here document to conftest.frag.
3409 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
3410 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
3412 sed -f conftest.frag conftest.in > conftest.out
3414 mv conftest.out conftest.in
3416 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
3418 mv conftest.tail conftest.vals
3422 cat >> $CONFIG_STATUS <<\EOF
3423 rm -f conftest.frag conftest.h
3424 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
3425 cat conftest.in >> conftest.h
3427 if cmp -s $ac_file conftest.h 2>/dev/null; then
3428 echo "$ac_file is unchanged"
3431 # Remove last slash and all that follows it. Not all systems have dirname.
3432 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
3433 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3434 # The file is in a subdirectory.
3435 test ! -d "$ac_dir" && mkdir "$ac_dir"
3438 mv conftest.h $ac_file
3443 cat >> $CONFIG_STATUS <<EOF
3446 cat >> $CONFIG_STATUS <<\EOF
3450 chmod +x $CONFIG_STATUS
3451 rm -fr confdefs* $ac_clean_files
3452 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1