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-docdir=<path to store documentation in - /usr/share/doc/pam>"
32 --enable-mandir=<path to store manuals in - /usr/share/man>"
34 --enable-pamlocking configure libpam to observe a global authentication lock"
36 --enable-uglyhack configure libpam to try to honor old pam_strerror syntax"
38 --enable-read-both-confs read both /etc/pam.d and /etc/pam.conf files"
40 --enable-static-libpam build a libpam.a library"
42 --disable-dynamic-libpam do not build a shared libpam library"
44 --enable-static-modules do not make the modules dynamically loadable"
46 --disable-lckpwdf do not use the lckpwdf function"
48 --with-mailspool path to mail spool directory
49 [default _PATH_MAILDIR if defined in paths.h, otherwise /var/spool/mail]"
51 # Initialize some variables set by options.
52 # The variables have the same names as the options, with
53 # dashes changed to underlines.
55 cache_file=./config.cache
64 program_transform_name=s,x,x,
72 bindir='${exec_prefix}/bin'
73 sbindir='${exec_prefix}/sbin'
74 libexecdir='${exec_prefix}/libexec'
75 datadir='${prefix}/share'
76 sysconfdir='${prefix}/etc'
77 sharedstatedir='${prefix}/com'
78 localstatedir='${prefix}/var'
79 libdir='${exec_prefix}/lib'
80 includedir='${prefix}/include'
81 oldincludedir='/usr/include'
82 infodir='${prefix}/info'
83 mandir='${prefix}/man'
85 # Initialize some other variables.
88 SHELL=${CONFIG_SHELL-/bin/sh}
89 # Maximum number of lines to put in a shell here document.
96 # If the previous option needs an argument, assign it.
97 if test -n "$ac_prev"; then
98 eval "$ac_prev=\$ac_option"
104 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
108 # Accept the important Cygnus configure options, so we can diagnose typos.
112 -bindir | --bindir | --bindi | --bind | --bin | --bi)
114 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
115 bindir="$ac_optarg" ;;
117 -build | --build | --buil | --bui | --bu)
119 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
120 build="$ac_optarg" ;;
122 -cache-file | --cache-file | --cache-fil | --cache-fi \
123 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
124 ac_prev=cache_file ;;
125 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
126 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
127 cache_file="$ac_optarg" ;;
129 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
131 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
133 datadir="$ac_optarg" ;;
135 -disable-* | --disable-*)
136 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
137 # Reject names that are not valid shell variable names.
138 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
139 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
141 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
142 eval "enable_${ac_feature}=no" ;;
144 -enable-* | --enable-*)
145 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
146 # Reject names that are not valid shell variable names.
147 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
148 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
150 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
155 eval "enable_${ac_feature}='$ac_optarg'" ;;
157 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
158 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
159 | --exec | --exe | --ex)
160 ac_prev=exec_prefix ;;
161 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
162 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
163 | --exec=* | --exe=* | --ex=*)
164 exec_prefix="$ac_optarg" ;;
166 -gas | --gas | --ga | --g)
167 # Obsolete; use --with-gas.
170 -help | --help | --hel | --he)
171 # Omit some internal or obsolete options to make the list less imposing.
172 # This message is too long to be a string in the A/UX 3.1 sh.
174 Usage: configure [options] [host]
175 Options: [defaults in brackets after descriptions]
177 --cache-file=FILE cache test results in FILE
178 --help print this message
179 --no-create do not create output files
180 --quiet, --silent do not print \`checking...' messages
181 --version print the version of autoconf that created configure
182 Directory and file names:
183 --prefix=PREFIX install architecture-independent files in PREFIX
185 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
187 --bindir=DIR user executables in DIR [EPREFIX/bin]
188 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
189 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
190 --datadir=DIR read-only architecture-independent data in DIR
192 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
193 --sharedstatedir=DIR modifiable architecture-independent data in DIR
195 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
196 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
197 --includedir=DIR C header files in DIR [PREFIX/include]
198 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
199 --infodir=DIR info documentation in DIR [PREFIX/info]
200 --mandir=DIR man documentation in DIR [PREFIX/man]
201 --srcdir=DIR find the sources in DIR [configure dir or ..]
202 --program-prefix=PREFIX prepend PREFIX to installed program names
203 --program-suffix=SUFFIX append SUFFIX to installed program names
204 --program-transform-name=PROGRAM
205 run sed PROGRAM on installed program names
209 --build=BUILD configure for building on BUILD [BUILD=HOST]
210 --host=HOST configure for HOST [guessed]
211 --target=TARGET configure for TARGET [TARGET=HOST]
212 Features and packages:
213 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
214 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
215 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
216 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
217 --x-includes=DIR X include files are in DIR
218 --x-libraries=DIR X library files are in DIR
220 if test -n "$ac_help"; then
221 echo "--enable and --with options recognized:$ac_help"
225 -host | --host | --hos | --ho)
227 -host=* | --host=* | --hos=* | --ho=*)
230 -includedir | --includedir | --includedi | --included | --include \
231 | --includ | --inclu | --incl | --inc)
232 ac_prev=includedir ;;
233 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
234 | --includ=* | --inclu=* | --incl=* | --inc=*)
235 includedir="$ac_optarg" ;;
237 -infodir | --infodir | --infodi | --infod | --info | --inf)
239 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
240 infodir="$ac_optarg" ;;
242 -libdir | --libdir | --libdi | --libd)
244 -libdir=* | --libdir=* | --libdi=* | --libd=*)
245 libdir="$ac_optarg" ;;
247 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
248 | --libexe | --libex | --libe)
249 ac_prev=libexecdir ;;
250 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
251 | --libexe=* | --libex=* | --libe=*)
252 libexecdir="$ac_optarg" ;;
254 -localstatedir | --localstatedir | --localstatedi | --localstated \
255 | --localstate | --localstat | --localsta | --localst \
256 | --locals | --local | --loca | --loc | --lo)
257 ac_prev=localstatedir ;;
258 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
259 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
260 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
261 localstatedir="$ac_optarg" ;;
263 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
265 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
266 mandir="$ac_optarg" ;;
269 # Obsolete; use --without-fp.
272 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
276 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
277 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
280 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
281 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
282 | --oldin | --oldi | --old | --ol | --o)
283 ac_prev=oldincludedir ;;
284 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
285 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
286 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
287 oldincludedir="$ac_optarg" ;;
289 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
291 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
292 prefix="$ac_optarg" ;;
294 -program-prefix | --program-prefix | --program-prefi | --program-pref \
295 | --program-pre | --program-pr | --program-p)
296 ac_prev=program_prefix ;;
297 -program-prefix=* | --program-prefix=* | --program-prefi=* \
298 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
299 program_prefix="$ac_optarg" ;;
301 -program-suffix | --program-suffix | --program-suffi | --program-suff \
302 | --program-suf | --program-su | --program-s)
303 ac_prev=program_suffix ;;
304 -program-suffix=* | --program-suffix=* | --program-suffi=* \
305 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
306 program_suffix="$ac_optarg" ;;
308 -program-transform-name | --program-transform-name \
309 | --program-transform-nam | --program-transform-na \
310 | --program-transform-n | --program-transform- \
311 | --program-transform | --program-transfor \
312 | --program-transfo | --program-transf \
313 | --program-trans | --program-tran \
314 | --progr-tra | --program-tr | --program-t)
315 ac_prev=program_transform_name ;;
316 -program-transform-name=* | --program-transform-name=* \
317 | --program-transform-nam=* | --program-transform-na=* \
318 | --program-transform-n=* | --program-transform-=* \
319 | --program-transform=* | --program-transfor=* \
320 | --program-transfo=* | --program-transf=* \
321 | --program-trans=* | --program-tran=* \
322 | --progr-tra=* | --program-tr=* | --program-t=*)
323 program_transform_name="$ac_optarg" ;;
325 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
326 | -silent | --silent | --silen | --sile | --sil)
329 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
331 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
333 sbindir="$ac_optarg" ;;
335 -sharedstatedir | --sharedstatedir | --sharedstatedi \
336 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
337 | --sharedst | --shareds | --shared | --share | --shar \
339 ac_prev=sharedstatedir ;;
340 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
341 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
342 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
344 sharedstatedir="$ac_optarg" ;;
346 -site | --site | --sit)
348 -site=* | --site=* | --sit=*)
351 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
353 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
354 srcdir="$ac_optarg" ;;
356 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
357 | --syscon | --sysco | --sysc | --sys | --sy)
358 ac_prev=sysconfdir ;;
359 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
360 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
361 sysconfdir="$ac_optarg" ;;
363 -target | --target | --targe | --targ | --tar | --ta | --t)
365 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
366 target="$ac_optarg" ;;
368 -v | -verbose | --verbose | --verbos | --verbo | --verb)
371 -version | --version | --versio | --versi | --vers)
372 echo "configure generated by autoconf version 2.13"
376 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
377 # Reject names that are not valid shell variable names.
378 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
379 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
381 ac_package=`echo $ac_package| sed 's/-/_/g'`
386 eval "with_${ac_package}='$ac_optarg'" ;;
388 -without-* | --without-*)
389 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
390 # Reject names that are not valid shell variable names.
391 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
392 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
394 ac_package=`echo $ac_package| sed 's/-/_/g'`
395 eval "with_${ac_package}=no" ;;
398 # Obsolete; use --with-x.
401 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
402 | --x-incl | --x-inc | --x-in | --x-i)
403 ac_prev=x_includes ;;
404 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
405 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
406 x_includes="$ac_optarg" ;;
408 -x-libraries | --x-libraries | --x-librarie | --x-librari \
409 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
410 ac_prev=x_libraries ;;
411 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
412 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
413 x_libraries="$ac_optarg" ;;
415 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
419 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
420 echo "configure: warning: $ac_option: invalid host type" 1>&2
422 if test "x$nonopt" != xNONE; then
423 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
431 if test -n "$ac_prev"; then
432 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
435 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
437 # File descriptor usage:
440 # 2 errors and warnings
441 # 3 some systems may open it to /dev/tty
442 # 4 used on the Kubota Titan
443 # 6 checking for... messages and results
444 # 5 compiler messages saved in config.log
445 if test "$silent" = yes; then
453 This file contains any messages produced by compilers while
454 running configure, to aid debugging if configure makes a mistake.
457 # Strip out --no-create and --no-recursion so they do not pile up.
458 # Also quote any args containing shell metacharacters.
463 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
464 | --no-cr | --no-c) ;;
465 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
466 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
467 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
468 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
469 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
474 # Only set these to C if already set. These must not be set unconditionally
475 # because not all systems understand e.g. LANG=C (notably SCO).
476 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
477 # Non-C LC_CTYPE values break the ctype check.
478 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
479 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
480 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
481 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
483 # confdefs.h avoids OS command line length limits that DEFS can exceed.
484 rm -rf conftest* confdefs.h
485 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
488 # A filename unique to this package, relative to the directory that
489 # configure is in, which we can look for to find out if srcdir is correct.
490 ac_unique_file=conf/pam_conv1/pam_conv.y
492 # Find the source files, if location was not specified.
493 if test -z "$srcdir"; then
494 ac_srcdir_defaulted=yes
495 # Try the directory containing this script, then its parent.
497 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
498 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
500 if test ! -r $srcdir/$ac_unique_file; then
504 ac_srcdir_defaulted=no
506 if test ! -r $srcdir/$ac_unique_file; then
507 if test "$ac_srcdir_defaulted" = yes; then
508 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
510 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
513 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
515 # Prefer explicitly selected file to automatically selected ones.
516 if test -z "$CONFIG_SITE"; then
517 if test "x$prefix" != xNONE; then
518 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
520 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
523 for ac_site_file in $CONFIG_SITE; do
524 if test -r "$ac_site_file"; then
525 echo "loading site script $ac_site_file"
530 if test -r "$cache_file"; then
531 echo "loading cache $cache_file"
534 echo "creating cache $cache_file"
539 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
540 ac_cpp='$CPP $CPPFLAGS'
541 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
542 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
543 cross_compiling=$ac_cv_prog_cc_cross
547 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
548 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
549 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
556 ac_n= ac_c='\c' ac_t=
564 LIBPAM_VERSION_MAJOR=0
565 LIBPAM_VERSION_MINOR=76
569 cat >> confdefs.h <<\EOF
570 #define LIBPAM_VERSION_MAJOR 1
573 cat >> confdefs.h <<\EOF
574 #define LIBPAM_VERSION_MINOR 1
581 LOCALSRCDIR=`/bin/pwd` ;
582 OS=`uname|sed -e 'y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/'`
594 LDCONFIG=/sbin/ldconfig ;
596 if test "$OS" = "aix"; then
597 INSTALL=/usr/ucb/install -c
599 INSTALL=/usr/bin/install
603 # Extract the first word of "gcc", so it can be a program name with args.
604 set dummy gcc; ac_word=$2
605 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
606 echo "configure:607: checking for $ac_word" >&5
607 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
608 echo $ac_n "(cached) $ac_c" 1>&6
610 if test -n "$CC"; then
611 ac_cv_prog_CC="$CC" # Let the user override the test.
613 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
615 for ac_dir in $ac_dummy; do
616 test -z "$ac_dir" && ac_dir=.
617 if test -f $ac_dir/$ac_word; then
626 if test -n "$CC"; then
627 echo "$ac_t""$CC" 1>&6
629 echo "$ac_t""no" 1>&6
632 if test -z "$CC"; then
633 # Extract the first word of "cc", so it can be a program name with args.
634 set dummy cc; ac_word=$2
635 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
636 echo "configure:637: checking for $ac_word" >&5
637 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
638 echo $ac_n "(cached) $ac_c" 1>&6
640 if test -n "$CC"; then
641 ac_cv_prog_CC="$CC" # Let the user override the test.
643 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
646 for ac_dir in $ac_dummy; do
647 test -z "$ac_dir" && ac_dir=.
648 if test -f $ac_dir/$ac_word; then
649 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
658 if test $ac_prog_rejected = yes; then
659 # We found a bogon in the path, so make sure we never use it.
660 set dummy $ac_cv_prog_CC
662 if test $# -gt 0; then
663 # We chose a different compiler from the bogus one.
664 # However, it has the same basename, so the bogon will be chosen
665 # first if we set CC to just the basename; use the full file name.
667 set dummy "$ac_dir/$ac_word" "$@"
675 if test -n "$CC"; then
676 echo "$ac_t""$CC" 1>&6
678 echo "$ac_t""no" 1>&6
681 if test -z "$CC"; then
684 # Extract the first word of "cl", so it can be a program name with args.
685 set dummy cl; ac_word=$2
686 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
687 echo "configure:688: checking for $ac_word" >&5
688 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
689 echo $ac_n "(cached) $ac_c" 1>&6
691 if test -n "$CC"; then
692 ac_cv_prog_CC="$CC" # Let the user override the test.
694 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
696 for ac_dir in $ac_dummy; do
697 test -z "$ac_dir" && ac_dir=.
698 if test -f $ac_dir/$ac_word; then
707 if test -n "$CC"; then
708 echo "$ac_t""$CC" 1>&6
710 echo "$ac_t""no" 1>&6
715 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
718 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
719 echo "configure:720: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
722 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
723 ac_cpp='$CPP $CPPFLAGS'
724 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
725 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
726 cross_compiling=$ac_cv_prog_cc_cross
728 cat > conftest.$ac_ext << EOF
730 #line 731 "configure"
731 #include "confdefs.h"
735 if { (eval echo configure:736: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
736 ac_cv_prog_cc_works=yes
737 # If we can't run a trivial program, we are probably using a cross compiler.
738 if (./conftest; exit) 2>/dev/null; then
739 ac_cv_prog_cc_cross=no
741 ac_cv_prog_cc_cross=yes
744 echo "configure: failed program was:" >&5
745 cat conftest.$ac_ext >&5
746 ac_cv_prog_cc_works=no
750 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
751 ac_cpp='$CPP $CPPFLAGS'
752 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
753 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
754 cross_compiling=$ac_cv_prog_cc_cross
756 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
757 if test $ac_cv_prog_cc_works = no; then
758 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
760 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
761 echo "configure:762: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
762 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
763 cross_compiling=$ac_cv_prog_cc_cross
765 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
766 echo "configure:767: checking whether we are using GNU C" >&5
767 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
768 echo $ac_n "(cached) $ac_c" 1>&6
770 cat > conftest.c <<EOF
775 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:776: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
782 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
784 if test $ac_cv_prog_gcc = yes; then
790 ac_test_CFLAGS="${CFLAGS+set}"
791 ac_save_CFLAGS="$CFLAGS"
793 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
794 echo "configure:795: checking whether ${CC-cc} accepts -g" >&5
795 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
796 echo $ac_n "(cached) $ac_c" 1>&6
798 echo 'void f(){}' > conftest.c
799 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
808 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
809 if test "$ac_test_CFLAGS" = set; then
810 CFLAGS="$ac_save_CFLAGS"
811 elif test $ac_cv_prog_cc_g = yes; then
812 if test "$GCC" = yes; then
818 if test "$GCC" = yes; then
825 for ac_prog in 'bison -y' byacc
827 # Extract the first word of "$ac_prog", so it can be a program name with args.
828 set dummy $ac_prog; ac_word=$2
829 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
830 echo "configure:831: checking for $ac_word" >&5
831 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
832 echo $ac_n "(cached) $ac_c" 1>&6
834 if test -n "$YACC"; then
835 ac_cv_prog_YACC="$YACC" # Let the user override the test.
837 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
839 for ac_dir in $ac_dummy; do
840 test -z "$ac_dir" && ac_dir=.
841 if test -f $ac_dir/$ac_word; then
842 ac_cv_prog_YACC="$ac_prog"
849 YACC="$ac_cv_prog_YACC"
850 if test -n "$YACC"; then
851 echo "$ac_t""$YACC" 1>&6
853 echo "$ac_t""no" 1>&6
856 test -n "$YACC" && break
858 test -n "$YACC" || YACC="yacc"
860 # Extract the first word of "flex", so it can be a program name with args.
861 set dummy flex; ac_word=$2
862 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
863 echo "configure:864: checking for $ac_word" >&5
864 if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
865 echo $ac_n "(cached) $ac_c" 1>&6
867 if test -n "$LEX"; then
868 ac_cv_prog_LEX="$LEX" # Let the user override the test.
870 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
872 for ac_dir in $ac_dummy; do
873 test -z "$ac_dir" && ac_dir=.
874 if test -f $ac_dir/$ac_word; then
875 ac_cv_prog_LEX="flex"
880 test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex"
883 LEX="$ac_cv_prog_LEX"
884 if test -n "$LEX"; then
885 echo "$ac_t""$LEX" 1>&6
887 echo "$ac_t""no" 1>&6
896 echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
897 echo "configure:898: checking for yywrap in -l$ac_lib" >&5
898 ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
899 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
900 echo $ac_n "(cached) $ac_c" 1>&6
903 LIBS="-l$ac_lib $LIBS"
904 cat > conftest.$ac_ext <<EOF
905 #line 906 "configure"
906 #include "confdefs.h"
907 /* Override any gcc2 internal prototype to avoid an error. */
908 /* We use char because int might match the return type of a gcc2
909 builtin and then its argument prototype would still apply. */
916 if { (eval echo configure:917: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
918 eval "ac_cv_lib_$ac_lib_var=yes"
920 echo "configure: failed program was:" >&5
921 cat conftest.$ac_ext >&5
923 eval "ac_cv_lib_$ac_lib_var=no"
929 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
930 echo "$ac_t""yes" 1>&6
933 echo "$ac_t""no" 1>&6
938 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
939 echo "configure:940: checking whether ln -s works" >&5
940 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
941 echo $ac_n "(cached) $ac_c" 1>&6
944 if ln -s X conftestdata 2>/dev/null
947 ac_cv_prog_LN_S="ln -s"
952 LN_S="$ac_cv_prog_LN_S"
953 if test "$ac_cv_prog_LN_S" = "ln -s"; then
954 echo "$ac_t""yes" 1>&6
956 echo "$ac_t""no" 1>&6
959 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
960 echo "configure:961: checking whether ${MAKE-make} sets \${MAKE}" >&5
961 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
962 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
963 echo $ac_n "(cached) $ac_c" 1>&6
965 cat > conftestmake <<\EOF
967 @echo 'ac_maketemp="${MAKE}"'
969 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
970 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
971 if test -n "$ac_maketemp"; then
972 eval ac_cv_prog_make_${ac_make}_set=yes
974 eval ac_cv_prog_make_${ac_make}_set=no
978 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
979 echo "$ac_t""yes" 1>&6
982 echo "$ac_t""no" 1>&6
983 SET_MAKE="MAKE=${MAKE-make}"
988 # Check whether --enable-debug or --disable-debug was given.
989 if test "${enable_debug+set}" = set; then
990 enableval="$enable_debug"
991 WITH_DEBUG=yes ; cat >> confdefs.h <<\EOF
1001 # Check whether --enable-libdebug or --disable-libdebug was given.
1002 if test "${enable_libdebug+set}" = set; then
1003 enableval="$enable_libdebug"
1004 WITH_LIBDEBUG=yes ; cat >> confdefs.h <<\EOF
1005 #define WITH_LIBDEBUG 1
1014 # Check whether --enable-fakeroot or --disable-fakeroot was given.
1015 if test "${enable_fakeroot+set}" = set; then
1016 enableval="$enable_fakeroot"
1022 # Check whether --enable-securedir or --disable-securedir was given.
1023 if test "${enable_securedir+set}" = set; then
1024 enableval="$enable_securedir"
1025 SECUREDIR=$enableval
1027 SECUREDIR=$libdir/security
1032 # Check whether --enable-sconfigdir or --disable-sconfigdir was given.
1033 if test "${enable_sconfigdir+set}" = set; then
1034 enableval="$enable_sconfigdir"
1035 SCONFIGDIR=$enableval
1037 SCONFIGDIR=$sysconfdir/security
1042 # Check whether --enable-suplementedir or --disable-suplementedir was given.
1043 if test "${enable_suplementedir+set}" = set; then
1044 enableval="$enable_suplementedir"
1045 SUPLEMENTED=$enableval
1047 SUPLEMENTED=$sbindir
1052 # Check whether --enable-includedir or --disable-includedir was given.
1053 if test "${enable_includedir+set}" = set; then
1054 enableval="$enable_includedir"
1055 INCLUDEDIR=$enableval
1057 INCLUDEDIR=/usr/include
1062 # Check whether --enable-docdir or --disable-docdir was given.
1063 if test "${enable_docdir+set}" = set; then
1064 enableval="$enable_docdir"
1067 DOCDIR=/usr/share/doc/pam
1072 # Check whether --enable-mandir or --disable-mandir was given.
1073 if test "${enable_mandir+set}" = set; then
1074 enableval="$enable_mandir"
1077 MANDIR=/usr/share/man
1082 # Check whether --enable-pamlocking or --disable-pamlocking was given.
1083 if test "${enable_pamlocking+set}" = set; then
1084 enableval="$enable_pamlocking"
1085 WITH_PAMLOCKING=yes ; cat >> confdefs.h <<\EOF
1086 #define PAM_LOCKING 1
1095 # Check whether --enable-uglyhack or --disable-uglyhack was given.
1096 if test "${enable_uglyhack+set}" = set; then
1097 enableval="$enable_uglyhack"
1098 cat >> confdefs.h <<\EOF
1099 #define UGLY_HACK_FOR_PRIOR_BEHAVIOR_SUPPORT 1
1105 # Check whether --enable-read-both-confs or --disable-read-both-confs was given.
1106 if test "${enable_read_both_confs+set}" = set; then
1107 enableval="$enable_read_both_confs"
1108 cat >> confdefs.h <<\EOF
1109 #define PAM_READ_BOTH_CONFS 1
1116 # Check whether --enable-static-libpam or --disable-static-libpam was given.
1117 if test "${enable_static_libpam+set}" = set; then
1118 enableval="$enable_static_libpam"
1126 # Check whether --enable-dynamic-libpam or --disable-dynamic-libpam was given.
1127 if test "${enable_dynamic_libpam+set}" = set; then
1128 enableval="$enable_dynamic_libpam"
1136 DYNAMIC=-DPAM_DYNAMIC
1139 # Check whether --enable-static-modules or --disable-static-modules was given.
1140 if test "${enable_static_modules+set}" = set; then
1141 enableval="$enable_static_modules"
1147 # Check whether --enable-lckpwdf or --disable-lckpwdf was given.
1148 if test "${enable_lckpwdf+set}" = set; then
1149 enableval="$enable_lckpwdf"
1157 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1158 echo "configure:1159: checking how to run the C preprocessor" >&5
1159 # On Suns, sometimes $CPP names a directory.
1160 if test -n "$CPP" && test -d "$CPP"; then
1163 if test -z "$CPP"; then
1164 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1165 echo $ac_n "(cached) $ac_c" 1>&6
1167 # This must be in double quotes, not single quotes, because CPP may get
1168 # substituted into the Makefile and "${CC-cc}" will confuse make.
1170 # On the NeXT, cc -E runs the code through the compiler's parser,
1171 # not just through cpp.
1172 cat > conftest.$ac_ext <<EOF
1173 #line 1174 "configure"
1174 #include "confdefs.h"
1178 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1179 { (eval echo configure:1180: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1180 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1181 if test -z "$ac_err"; then
1185 echo "configure: failed program was:" >&5
1186 cat conftest.$ac_ext >&5
1188 CPP="${CC-cc} -E -traditional-cpp"
1189 cat > conftest.$ac_ext <<EOF
1190 #line 1191 "configure"
1191 #include "confdefs.h"
1195 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1196 { (eval echo configure:1197: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1197 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1198 if test -z "$ac_err"; then
1202 echo "configure: failed program was:" >&5
1203 cat conftest.$ac_ext >&5
1205 CPP="${CC-cc} -nologo -E"
1206 cat > conftest.$ac_ext <<EOF
1207 #line 1208 "configure"
1208 #include "confdefs.h"
1212 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1213 { (eval echo configure:1214: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1214 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1215 if test -z "$ac_err"; then
1219 echo "configure: failed program was:" >&5
1220 cat conftest.$ac_ext >&5
1229 ac_cv_prog_CPP="$CPP"
1231 CPP="$ac_cv_prog_CPP"
1233 ac_cv_prog_CPP="$CPP"
1235 echo "$ac_t""$CPP" 1>&6
1237 for ac_hdr in paths.h
1239 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1240 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1241 echo "configure:1242: checking for $ac_hdr" >&5
1242 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1243 echo $ac_n "(cached) $ac_c" 1>&6
1245 cat > conftest.$ac_ext <<EOF
1246 #line 1247 "configure"
1247 #include "confdefs.h"
1250 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1251 { (eval echo configure:1252: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1252 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1253 if test -z "$ac_err"; then
1255 eval "ac_cv_header_$ac_safe=yes"
1258 echo "configure: failed program was:" >&5
1259 cat conftest.$ac_ext >&5
1261 eval "ac_cv_header_$ac_safe=no"
1265 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1266 echo "$ac_t""yes" 1>&6
1267 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1268 cat >> confdefs.h <<EOF
1269 #define $ac_tr_hdr 1
1273 echo "$ac_t""no" 1>&6
1277 # Check whether --with-mailspool or --without-mailspool was given.
1278 if test "${with_mailspool+set}" = set; then
1279 withval="$with_mailspool"
1280 with_mailspool=${withval}
1283 if test x$with_mailspool != x ; then
1284 pam_mail_spool="\"$with_mailspool\""
1286 if test "$cross_compiling" = yes; then
1287 pam_mail_spool="\"/var/spool/mail\""
1289 cat > conftest.$ac_ext <<EOF
1290 #line 1291 "configure"
1291 #include "confdefs.h"
1295 #ifdef _PATH_MAILDIR
1302 if { (eval echo configure:1303: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1304 pam_mail_spool="_PATH_MAILDIR"
1306 echo "configure: failed program was:" >&5
1307 cat conftest.$ac_ext >&5
1309 pam_mail_spool="\"/var/spool/mail\""
1315 cat >> confdefs.h <<EOF
1316 #define PAM_PATH_MAILDIR $pam_mail_spool
1320 echo $ac_n "checking for __libc_sched_setscheduler in -lc""... $ac_c" 1>&6
1321 echo "configure:1322: checking for __libc_sched_setscheduler in -lc" >&5
1322 ac_lib_var=`echo c'_'__libc_sched_setscheduler | sed 'y%./+-%__p_%'`
1323 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1324 echo $ac_n "(cached) $ac_c" 1>&6
1326 ac_save_LIBS="$LIBS"
1328 cat > conftest.$ac_ext <<EOF
1329 #line 1330 "configure"
1330 #include "confdefs.h"
1331 /* Override any gcc2 internal prototype to avoid an error. */
1332 /* We use char because int might match the return type of a gcc2
1333 builtin and then its argument prototype would still apply. */
1334 char __libc_sched_setscheduler();
1337 __libc_sched_setscheduler()
1340 if { (eval echo configure:1341: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1342 eval "ac_cv_lib_$ac_lib_var=yes"
1344 echo "configure: failed program was:" >&5
1345 cat conftest.$ac_ext >&5
1347 eval "ac_cv_lib_$ac_lib_var=no"
1350 LIBS="$ac_save_LIBS"
1353 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1354 echo "$ac_t""yes" 1>&6
1357 echo "$ac_t""no" 1>&6
1363 echo $ac_n "checking for lckpwdf in -lc""... $ac_c" 1>&6
1364 echo "configure:1365: checking for lckpwdf in -lc" >&5
1365 ac_lib_var=`echo c'_'lckpwdf | sed 'y%./+-%__p_%'`
1366 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1367 echo $ac_n "(cached) $ac_c" 1>&6
1369 ac_save_LIBS="$LIBS"
1371 cat > conftest.$ac_ext <<EOF
1372 #line 1373 "configure"
1373 #include "confdefs.h"
1374 /* Override any gcc2 internal prototype to avoid an error. */
1375 /* We use char because int might match the return type of a gcc2
1376 builtin and then its argument prototype would still apply. */
1383 if { (eval echo configure:1384: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1385 eval "ac_cv_lib_$ac_lib_var=yes"
1387 echo "configure: failed program was:" >&5
1388 cat conftest.$ac_ext >&5
1390 eval "ac_cv_lib_$ac_lib_var=no"
1393 LIBS="$ac_save_LIBS"
1396 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1397 echo "$ac_t""yes" 1>&6
1400 echo "$ac_t""no" 1>&6
1406 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
1407 echo "configure:1408: checking for dlopen in -ldl" >&5
1408 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
1409 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1410 echo $ac_n "(cached) $ac_c" 1>&6
1412 ac_save_LIBS="$LIBS"
1414 cat > conftest.$ac_ext <<EOF
1415 #line 1416 "configure"
1416 #include "confdefs.h"
1417 /* Override any gcc2 internal prototype to avoid an error. */
1418 /* We use char because int might match the return type of a gcc2
1419 builtin and then its argument prototype would still apply. */
1426 if { (eval echo configure:1427: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1428 eval "ac_cv_lib_$ac_lib_var=yes"
1430 echo "configure: failed program was:" >&5
1431 cat conftest.$ac_ext >&5
1433 eval "ac_cv_lib_$ac_lib_var=no"
1436 LIBS="$ac_save_LIBS"
1439 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1440 echo "$ac_t""yes" 1>&6
1443 echo "$ac_t""no" 1>&6
1448 echo $ac_n "checking for FascistCheck in -lcrack""... $ac_c" 1>&6
1449 echo "configure:1450: checking for FascistCheck in -lcrack" >&5
1450 ac_lib_var=`echo crack'_'FascistCheck | sed 'y%./+-%__p_%'`
1451 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1452 echo $ac_n "(cached) $ac_c" 1>&6
1454 ac_save_LIBS="$LIBS"
1455 LIBS="-lcrack $LIBS"
1456 cat > conftest.$ac_ext <<EOF
1457 #line 1458 "configure"
1458 #include "confdefs.h"
1459 /* Override any gcc2 internal prototype to avoid an error. */
1460 /* We use char because int might match the return type of a gcc2
1461 builtin and then its argument prototype would still apply. */
1462 char FascistCheck();
1468 if { (eval echo configure:1469: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1470 eval "ac_cv_lib_$ac_lib_var=yes"
1472 echo "configure: failed program was:" >&5
1473 cat conftest.$ac_ext >&5
1475 eval "ac_cv_lib_$ac_lib_var=no"
1478 LIBS="$ac_save_LIBS"
1481 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1482 echo "$ac_t""yes" 1>&6
1483 HAVE_LIBCRACK=yes ; cat >> confdefs.h <<\EOF
1484 #define HAVE_LIBCRACK 1
1488 echo "$ac_t""no" 1>&6
1494 echo $ac_n "checking for fcrypt in -lcrypt""... $ac_c" 1>&6
1495 echo "configure:1496: checking for fcrypt in -lcrypt" >&5
1496 ac_lib_var=`echo crypt'_'fcrypt | sed 'y%./+-%__p_%'`
1497 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1498 echo $ac_n "(cached) $ac_c" 1>&6
1500 ac_save_LIBS="$LIBS"
1501 LIBS="-lcrypt $LIBS"
1502 cat > conftest.$ac_ext <<EOF
1503 #line 1504 "configure"
1504 #include "confdefs.h"
1505 /* Override any gcc2 internal prototype to avoid an error. */
1506 /* We use char because int might match the return type of a gcc2
1507 builtin and then its argument prototype would still apply. */
1514 if { (eval echo configure:1515: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1516 eval "ac_cv_lib_$ac_lib_var=yes"
1518 echo "configure: failed program was:" >&5
1519 cat conftest.$ac_ext >&5
1521 eval "ac_cv_lib_$ac_lib_var=no"
1524 LIBS="$ac_save_LIBS"
1527 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1528 echo "$ac_t""yes" 1>&6
1529 HAVE_LIBCRYPT=yes ; cat >> confdefs.h <<\EOF
1530 #define HAVE_LIBCRYPT 1
1534 echo "$ac_t""no" 1>&6
1539 echo $ac_n "checking for logwtmp in -lutil""... $ac_c" 1>&6
1540 echo "configure:1541: checking for logwtmp in -lutil" >&5
1541 ac_lib_var=`echo util'_'logwtmp | sed 'y%./+-%__p_%'`
1542 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1543 echo $ac_n "(cached) $ac_c" 1>&6
1545 ac_save_LIBS="$LIBS"
1547 cat > conftest.$ac_ext <<EOF
1548 #line 1549 "configure"
1549 #include "confdefs.h"
1550 /* Override any gcc2 internal prototype to avoid an error. */
1551 /* We use char because int might match the return type of a gcc2
1552 builtin and then its argument prototype would still apply. */
1559 if { (eval echo configure:1560: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1561 eval "ac_cv_lib_$ac_lib_var=yes"
1563 echo "configure: failed program was:" >&5
1564 cat conftest.$ac_ext >&5
1566 eval "ac_cv_lib_$ac_lib_var=no"
1569 LIBS="$ac_save_LIBS"
1572 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1573 echo "$ac_t""yes" 1>&6
1574 HAVE_LIBUTIL=yes ; cat >> confdefs.h <<\EOF
1575 #define HAVE_LIBUTIL 1
1579 echo "$ac_t""no" 1>&6
1584 echo $ac_n "checking for dbm_store in -lndbm""... $ac_c" 1>&6
1585 echo "configure:1586: checking for dbm_store in -lndbm" >&5
1586 ac_lib_var=`echo ndbm'_'dbm_store | sed 'y%./+-%__p_%'`
1587 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1588 echo $ac_n "(cached) $ac_c" 1>&6
1590 ac_save_LIBS="$LIBS"
1592 cat > conftest.$ac_ext <<EOF
1593 #line 1594 "configure"
1594 #include "confdefs.h"
1595 /* Override any gcc2 internal prototype to avoid an error. */
1596 /* We use char because int might match the return type of a gcc2
1597 builtin and then its argument prototype would still apply. */
1604 if { (eval echo configure:1605: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1606 eval "ac_cv_lib_$ac_lib_var=yes"
1608 echo "configure: failed program was:" >&5
1609 cat conftest.$ac_ext >&5
1611 eval "ac_cv_lib_$ac_lib_var=no"
1614 LIBS="$ac_save_LIBS"
1617 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1618 echo "$ac_t""yes" 1>&6
1619 HAVE_LIBNDBM=yes ; cat >> confdefs.h <<\EOF
1620 #define HAVE_LIBNDBM 1
1624 echo "$ac_t""no" 1>&6
1629 echo $ac_n "checking for dbm_store in -ldb""... $ac_c" 1>&6
1630 echo "configure:1631: checking for dbm_store in -ldb" >&5
1631 ac_lib_var=`echo db'_'dbm_store | sed 'y%./+-%__p_%'`
1632 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1633 echo $ac_n "(cached) $ac_c" 1>&6
1635 ac_save_LIBS="$LIBS"
1637 cat > conftest.$ac_ext <<EOF
1638 #line 1639 "configure"
1639 #include "confdefs.h"
1640 /* Override any gcc2 internal prototype to avoid an error. */
1641 /* We use char because int might match the return type of a gcc2
1642 builtin and then its argument prototype would still apply. */
1649 if { (eval echo configure:1650: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1651 eval "ac_cv_lib_$ac_lib_var=yes"
1653 echo "configure: failed program was:" >&5
1654 cat conftest.$ac_ext >&5
1656 eval "ac_cv_lib_$ac_lib_var=no"
1659 LIBS="$ac_save_LIBS"
1662 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1663 echo "$ac_t""yes" 1>&6
1664 HAVE_LIBDB=yes ; cat >> confdefs.h <<\EOF
1665 #define HAVE_LIBDB 1
1669 echo "$ac_t""no" 1>&6
1673 if test x$HAVE_LIBDB != xyes ; then
1674 echo $ac_n "checking for db_create in -ldb""... $ac_c" 1>&6
1675 echo "configure:1676: checking for db_create in -ldb" >&5
1676 ac_lib_var=`echo db'_'db_create | sed 'y%./+-%__p_%'`
1677 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1678 echo $ac_n "(cached) $ac_c" 1>&6
1680 ac_save_LIBS="$LIBS"
1682 cat > conftest.$ac_ext <<EOF
1683 #line 1684 "configure"
1684 #include "confdefs.h"
1685 /* Override any gcc2 internal prototype to avoid an error. */
1686 /* We use char because int might match the return type of a gcc2
1687 builtin and then its argument prototype would still apply. */
1694 if { (eval echo configure:1695: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1696 eval "ac_cv_lib_$ac_lib_var=yes"
1698 echo "configure: failed program was:" >&5
1699 cat conftest.$ac_ext >&5
1701 eval "ac_cv_lib_$ac_lib_var=no"
1704 LIBS="$ac_save_LIBS"
1707 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1708 echo "$ac_t""yes" 1>&6
1709 HAVE_LIBDB=yes ; cat >> confdefs.h <<\EOF
1710 #define HAVE_LIBDB 1
1714 echo "$ac_t""no" 1>&6
1720 echo $ac_n "checking for yylex in -lfl""... $ac_c" 1>&6
1721 echo "configure:1722: checking for yylex in -lfl" >&5
1722 ac_lib_var=`echo fl'_'yylex | sed 'y%./+-%__p_%'`
1723 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1724 echo $ac_n "(cached) $ac_c" 1>&6
1726 ac_save_LIBS="$LIBS"
1727 LIBS="-lfl HAVE_LIBFL=no $LIBS"
1728 cat > conftest.$ac_ext <<EOF
1729 #line 1730 "configure"
1730 #include "confdefs.h"
1731 /* Override any gcc2 internal prototype to avoid an error. */
1732 /* We use char because int might match the return type of a gcc2
1733 builtin and then its argument prototype would still apply. */
1740 if { (eval echo configure:1741: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1742 eval "ac_cv_lib_$ac_lib_var=yes"
1744 echo "configure: failed program was:" >&5
1745 cat conftest.$ac_ext >&5
1747 eval "ac_cv_lib_$ac_lib_var=no"
1750 LIBS="$ac_save_LIBS"
1753 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1754 echo "$ac_t""yes" 1>&6
1757 echo "$ac_t""no" 1>&6
1758 HAVE_LIBFL=yes ; cat >> confdefs.h <<\EOF
1759 #define HAVE_LIBFL 1
1765 echo $ac_n "checking for yp_maplist in -lnsl""... $ac_c" 1>&6
1766 echo "configure:1767: checking for yp_maplist in -lnsl" >&5
1767 ac_lib_var=`echo nsl'_'yp_maplist | sed 'y%./+-%__p_%'`
1768 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1769 echo $ac_n "(cached) $ac_c" 1>&6
1771 ac_save_LIBS="$LIBS"
1773 cat > conftest.$ac_ext <<EOF
1774 #line 1775 "configure"
1775 #include "confdefs.h"
1776 /* Override any gcc2 internal prototype to avoid an error. */
1777 /* We use char because int might match the return type of a gcc2
1778 builtin and then its argument prototype would still apply. */
1785 if { (eval echo configure:1786: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1787 eval "ac_cv_lib_$ac_lib_var=yes"
1789 echo "configure: failed program was:" >&5
1790 cat conftest.$ac_ext >&5
1792 eval "ac_cv_lib_$ac_lib_var=no"
1795 LIBS="$ac_save_LIBS"
1798 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1799 echo "$ac_t""yes" 1>&6
1800 HAVE_LIBNSL=yes ; cat >> confdefs.h <<\EOF
1801 #define HAVE_LIBNSL 1
1805 echo "$ac_t""no" 1>&6
1810 echo $ac_n "checking for pwdb_db_name in -lpwdb""... $ac_c" 1>&6
1811 echo "configure:1812: checking for pwdb_db_name in -lpwdb" >&5
1812 ac_lib_var=`echo pwdb'_'pwdb_db_name | sed 'y%./+-%__p_%'`
1813 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1814 echo $ac_n "(cached) $ac_c" 1>&6
1816 ac_save_LIBS="$LIBS"
1818 cat > conftest.$ac_ext <<EOF
1819 #line 1820 "configure"
1820 #include "confdefs.h"
1821 /* Override any gcc2 internal prototype to avoid an error. */
1822 /* We use char because int might match the return type of a gcc2
1823 builtin and then its argument prototype would still apply. */
1824 char pwdb_db_name();
1830 if { (eval echo configure:1831: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1832 eval "ac_cv_lib_$ac_lib_var=yes"
1834 echo "configure: failed program was:" >&5
1835 cat conftest.$ac_ext >&5
1837 eval "ac_cv_lib_$ac_lib_var=no"
1840 LIBS="$ac_save_LIBS"
1843 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1844 echo "$ac_t""yes" 1>&6
1845 HAVE_LIBPWDB=yes ; cat >> confdefs.h <<\EOF
1846 #define HAVE_LIBPWDB 1
1850 echo "$ac_t""no" 1>&6
1857 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
1859 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1860 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
1861 echo "configure:1862: checking for $ac_hdr that defines DIR" >&5
1862 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
1863 echo $ac_n "(cached) $ac_c" 1>&6
1865 cat > conftest.$ac_ext <<EOF
1866 #line 1867 "configure"
1867 #include "confdefs.h"
1868 #include <sys/types.h>
1874 if { (eval echo configure:1875: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1876 eval "ac_cv_header_dirent_$ac_safe=yes"
1878 echo "configure: failed program was:" >&5
1879 cat conftest.$ac_ext >&5
1881 eval "ac_cv_header_dirent_$ac_safe=no"
1885 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
1886 echo "$ac_t""yes" 1>&6
1887 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1888 cat >> confdefs.h <<EOF
1889 #define $ac_tr_hdr 1
1891 ac_header_dirent=$ac_hdr; break
1893 echo "$ac_t""no" 1>&6
1896 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
1897 if test $ac_header_dirent = dirent.h; then
1898 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
1899 echo "configure:1900: checking for opendir in -ldir" >&5
1900 ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
1901 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1902 echo $ac_n "(cached) $ac_c" 1>&6
1904 ac_save_LIBS="$LIBS"
1906 cat > conftest.$ac_ext <<EOF
1907 #line 1908 "configure"
1908 #include "confdefs.h"
1909 /* Override any gcc2 internal prototype to avoid an error. */
1910 /* We use char because int might match the return type of a gcc2
1911 builtin and then its argument prototype would still apply. */
1918 if { (eval echo configure:1919: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1920 eval "ac_cv_lib_$ac_lib_var=yes"
1922 echo "configure: failed program was:" >&5
1923 cat conftest.$ac_ext >&5
1925 eval "ac_cv_lib_$ac_lib_var=no"
1928 LIBS="$ac_save_LIBS"
1931 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1932 echo "$ac_t""yes" 1>&6
1935 echo "$ac_t""no" 1>&6
1939 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
1940 echo "configure:1941: checking for opendir in -lx" >&5
1941 ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'`
1942 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1943 echo $ac_n "(cached) $ac_c" 1>&6
1945 ac_save_LIBS="$LIBS"
1947 cat > conftest.$ac_ext <<EOF
1948 #line 1949 "configure"
1949 #include "confdefs.h"
1950 /* Override any gcc2 internal prototype to avoid an error. */
1951 /* We use char because int might match the return type of a gcc2
1952 builtin and then its argument prototype would still apply. */
1959 if { (eval echo configure:1960: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1961 eval "ac_cv_lib_$ac_lib_var=yes"
1963 echo "configure: failed program was:" >&5
1964 cat conftest.$ac_ext >&5
1966 eval "ac_cv_lib_$ac_lib_var=no"
1969 LIBS="$ac_save_LIBS"
1972 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1973 echo "$ac_t""yes" 1>&6
1976 echo "$ac_t""no" 1>&6
1981 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1982 echo "configure:1983: checking for ANSI C header files" >&5
1983 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1984 echo $ac_n "(cached) $ac_c" 1>&6
1986 cat > conftest.$ac_ext <<EOF
1987 #line 1988 "configure"
1988 #include "confdefs.h"
1994 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1995 { (eval echo configure:1996: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1996 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1997 if test -z "$ac_err"; then
1999 ac_cv_header_stdc=yes
2002 echo "configure: failed program was:" >&5
2003 cat conftest.$ac_ext >&5
2005 ac_cv_header_stdc=no
2009 if test $ac_cv_header_stdc = yes; then
2010 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2011 cat > conftest.$ac_ext <<EOF
2012 #line 2013 "configure"
2013 #include "confdefs.h"
2016 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2017 egrep "memchr" >/dev/null 2>&1; then
2021 ac_cv_header_stdc=no
2027 if test $ac_cv_header_stdc = yes; then
2028 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2029 cat > conftest.$ac_ext <<EOF
2030 #line 2031 "configure"
2031 #include "confdefs.h"
2034 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2035 egrep "free" >/dev/null 2>&1; then
2039 ac_cv_header_stdc=no
2045 if test $ac_cv_header_stdc = yes; then
2046 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2047 if test "$cross_compiling" = yes; then
2050 cat > conftest.$ac_ext <<EOF
2051 #line 2052 "configure"
2052 #include "confdefs.h"
2054 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2055 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2056 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2057 int main () { int i; for (i = 0; i < 256; i++)
2058 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
2062 if { (eval echo configure:2063: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2066 echo "configure: failed program was:" >&5
2067 cat conftest.$ac_ext >&5
2069 ac_cv_header_stdc=no
2077 echo "$ac_t""$ac_cv_header_stdc" 1>&6
2078 if test $ac_cv_header_stdc = yes; then
2079 cat >> confdefs.h <<\EOF
2080 #define STDC_HEADERS 1
2085 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
2086 echo "configure:2087: checking for sys/wait.h that is POSIX.1 compatible" >&5
2087 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
2088 echo $ac_n "(cached) $ac_c" 1>&6
2090 cat > conftest.$ac_ext <<EOF
2091 #line 2092 "configure"
2092 #include "confdefs.h"
2093 #include <sys/types.h>
2094 #include <sys/wait.h>
2096 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
2099 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
2104 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
2107 if { (eval echo configure:2108: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2109 ac_cv_header_sys_wait_h=yes
2111 echo "configure: failed program was:" >&5
2112 cat conftest.$ac_ext >&5
2114 ac_cv_header_sys_wait_h=no
2119 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
2120 if test $ac_cv_header_sys_wait_h = yes; then
2121 cat >> confdefs.h <<\EOF
2122 #define HAVE_SYS_WAIT_H 1
2127 for ac_hdr in fcntl.h limits.h malloc.h sys/file.h sys/ioctl.h sys/time.h syslog.h termio.h unistd.h sys/fsuid.h
2129 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2130 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2131 echo "configure:2132: checking for $ac_hdr" >&5
2132 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2133 echo $ac_n "(cached) $ac_c" 1>&6
2135 cat > conftest.$ac_ext <<EOF
2136 #line 2137 "configure"
2137 #include "confdefs.h"
2140 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2141 { (eval echo configure:2142: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2142 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2143 if test -z "$ac_err"; then
2145 eval "ac_cv_header_$ac_safe=yes"
2148 echo "configure: failed program was:" >&5
2149 cat conftest.$ac_ext >&5
2151 eval "ac_cv_header_$ac_safe=no"
2155 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2156 echo "$ac_t""yes" 1>&6
2157 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2158 cat >> confdefs.h <<EOF
2159 #define $ac_tr_hdr 1
2163 echo "$ac_t""no" 1>&6
2168 for ac_hdr in features.h
2170 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2171 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2172 echo "configure:2173: checking for $ac_hdr" >&5
2173 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2174 echo $ac_n "(cached) $ac_c" 1>&6
2176 cat > conftest.$ac_ext <<EOF
2177 #line 2178 "configure"
2178 #include "confdefs.h"
2181 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2182 { (eval echo configure:2183: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2183 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2184 if test -z "$ac_err"; then
2186 eval "ac_cv_header_$ac_safe=yes"
2189 echo "configure: failed program was:" >&5
2190 cat conftest.$ac_ext >&5
2192 eval "ac_cv_header_$ac_safe=no"
2196 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2197 echo "$ac_t""yes" 1>&6
2198 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2199 cat >> confdefs.h <<EOF
2200 #define $ac_tr_hdr 1
2204 echo "$ac_t""no" 1>&6
2209 for ac_hdr in crypt.h
2211 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2212 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2213 echo "configure:2214: checking for $ac_hdr" >&5
2214 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2215 echo $ac_n "(cached) $ac_c" 1>&6
2217 cat > conftest.$ac_ext <<EOF
2218 #line 2219 "configure"
2219 #include "confdefs.h"
2222 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2223 { (eval echo configure:2224: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2224 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2225 if test -z "$ac_err"; then
2227 eval "ac_cv_header_$ac_safe=yes"
2230 echo "configure: failed program was:" >&5
2231 cat conftest.$ac_ext >&5
2233 eval "ac_cv_header_$ac_safe=no"
2237 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2238 echo "$ac_t""yes" 1>&6
2239 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2240 cat >> confdefs.h <<EOF
2241 #define $ac_tr_hdr 1
2245 echo "$ac_t""no" 1>&6
2250 for ac_hdr in ndbm.h db.h
2252 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2253 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2254 echo "configure:2255: checking for $ac_hdr" >&5
2255 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2256 echo $ac_n "(cached) $ac_c" 1>&6
2258 cat > conftest.$ac_ext <<EOF
2259 #line 2260 "configure"
2260 #include "confdefs.h"
2263 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2264 { (eval echo configure:2265: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2265 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2266 if test -z "$ac_err"; then
2268 eval "ac_cv_header_$ac_safe=yes"
2271 echo "configure: failed program was:" >&5
2272 cat conftest.$ac_ext >&5
2274 eval "ac_cv_header_$ac_safe=no"
2278 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2279 echo "$ac_t""yes" 1>&6
2280 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2281 cat >> confdefs.h <<EOF
2282 #define $ac_tr_hdr 1
2286 echo "$ac_t""no" 1>&6
2290 HAVE_NDBM_H=$ac_cv_header_ndbm_h
2293 for ac_hdr in lastlog.h utmp.h utmpx.h
2295 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2296 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2297 echo "configure:2298: checking for $ac_hdr" >&5
2298 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2299 echo $ac_n "(cached) $ac_c" 1>&6
2301 cat > conftest.$ac_ext <<EOF
2302 #line 2303 "configure"
2303 #include "confdefs.h"
2306 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2307 { (eval echo configure:2308: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2308 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2309 if test -z "$ac_err"; then
2311 eval "ac_cv_header_$ac_safe=yes"
2314 echo "configure: failed program was:" >&5
2315 cat conftest.$ac_ext >&5
2317 eval "ac_cv_header_$ac_safe=no"
2321 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2322 echo "$ac_t""yes" 1>&6
2323 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2324 cat >> confdefs.h <<EOF
2325 #define $ac_tr_hdr 1
2329 echo "$ac_t""no" 1>&6
2335 echo $ac_n "checking path to cracklib dictionary""... $ac_c" 1>&6
2336 echo "configure:2337: checking path to cracklib dictionary" >&5
2337 DICT_DIR_CANDIDATES="/usr/lib /usr/share/dict /usr/share/lib \
2338 /usr/local/lib /usr/local/share/lib"
2339 DICT_FILE_CANDIDATES="pw_dict cracklib_dict"
2340 CRACKLIB_DICTPATH=""
2341 for d in $DICT_DIR_CANDIDATES ; do
2342 for f in $DICT_FILE_CANDIDATES ; do
2343 if test -r $d/$f.hwm ; then
2344 CRACKLIB_DICTPATH=$d/$f
2346 elif test -r $d/dict/$f.hwm ; then
2347 CRACKLIB_DICTPATH=$d/dict/$f
2352 if test -z "$CRACKLIB_DICTPATH" ; then
2353 echo "$ac_t""none found" 1>&6
2355 echo "$ac_t""$CRACKLIB_DICTPATH" 1>&6
2360 GCC_WARNINGS="-Wall -Wwrite-strings \
2361 -Wpointer-arith -Wcast-qual -Wcast-align \
2362 -Wstrict-prototypes -Wmissing-prototypes \
2363 -Wnested-externs -Winline -Wshadow"
2365 if test "$GCC" = yes; then
2367 ### May need per-OS attention
2368 ### Example: -D_POSIX_SOURCE: needed on Linux but harms Solaris.
2371 OS_CFLAGS="-ansi -D_POSIX_SOURCE -pedantic"
2372 LD_D="gcc -shared -Xlinker -x"
2373 WARNINGS="$GCC_WARNINGS"
2377 LD_L="$LD -x -shared"
2380 CC_STATIC="-Xlinker -export-dynamic"
2383 OS_CFLAGS="-ansi -pedantic"
2384 LD_D="gcc -shared -Xlinker -x"
2385 WARNINGS="$GCC_WARNINGS"
2389 LD_L="$LD -x -shared"
2392 CC_STATIC="-Xlinker -export-dynamic"
2398 LD_L=ld -bexpall -bM:SRE -bnoentry
2409 ### Non-gcc needs attention on per-OS basis
2413 ### Support for Solaris-C
2418 LD_D="cc -z text -G -R."
2425 OSRELEASE=`uname -r`
2426 if test "$OSRELEASE" = 6.5; then
2428 WARNINGS="-fullwarn"
2429 PIC= #PIC code is default for IRIX
2430 LD="cc -shared" # modules friendly approach
2432 LD_L="ld -G -z redlocsym"
2437 echo "IRIX prior to 6.5 not allowed for"
2441 *) echo "Native compiler on $OS is not yet supported"
2458 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
2459 echo "configure:2460: checking whether byte ordering is bigendian" >&5
2460 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
2461 echo $ac_n "(cached) $ac_c" 1>&6
2463 ac_cv_c_bigendian=unknown
2464 # See if sys/param.h defines the BYTE_ORDER macro.
2465 cat > conftest.$ac_ext <<EOF
2466 #line 2467 "configure"
2467 #include "confdefs.h"
2468 #include <sys/types.h>
2469 #include <sys/param.h>
2472 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
2477 if { (eval echo configure:2478: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2479 # It does; now see whether it defined to BIG_ENDIAN or not.
2480 cat > conftest.$ac_ext <<EOF
2481 #line 2482 "configure"
2482 #include "confdefs.h"
2483 #include <sys/types.h>
2484 #include <sys/param.h>
2487 #if BYTE_ORDER != BIG_ENDIAN
2492 if { (eval echo configure:2493: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2494 ac_cv_c_bigendian=yes
2496 echo "configure: failed program was:" >&5
2497 cat conftest.$ac_ext >&5
2499 ac_cv_c_bigendian=no
2503 echo "configure: failed program was:" >&5
2504 cat conftest.$ac_ext >&5
2507 if test $ac_cv_c_bigendian = unknown; then
2508 if test "$cross_compiling" = yes; then
2509 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
2511 cat > conftest.$ac_ext <<EOF
2512 #line 2513 "configure"
2513 #include "confdefs.h"
2515 /* Are we little or big endian? From Harbison&Steele. */
2519 char c[sizeof (long)];
2522 exit (u.c[sizeof (long) - 1] == 1);
2525 if { (eval echo configure:2526: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2527 ac_cv_c_bigendian=no
2529 echo "configure: failed program was:" >&5
2530 cat conftest.$ac_ext >&5
2532 ac_cv_c_bigendian=yes
2540 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
2541 if test $ac_cv_c_bigendian = yes; then
2542 cat >> confdefs.h <<\EOF
2543 #define WORDS_BIGENDIAN 1
2548 echo $ac_n "checking for working const""... $ac_c" 1>&6
2549 echo "configure:2550: checking for working const" >&5
2550 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
2551 echo $ac_n "(cached) $ac_c" 1>&6
2553 cat > conftest.$ac_ext <<EOF
2554 #line 2555 "configure"
2555 #include "confdefs.h"
2559 /* Ultrix mips cc rejects this. */
2560 typedef int charset[2]; const charset x;
2561 /* SunOS 4.1.1 cc rejects this. */
2562 char const *const *ccp;
2564 /* NEC SVR4.0.2 mips cc rejects this. */
2565 struct point {int x, y;};
2566 static struct point const zero = {0,0};
2567 /* AIX XL C 1.02.0.0 rejects this.
2568 It does not let you subtract one const X* pointer from another in an arm
2569 of an if-expression whose if-part is not a constant expression */
2570 const char *g = "string";
2571 ccp = &g + (g ? g-g : 0);
2572 /* HPUX 7.0 cc rejects these. */
2575 ccp = (char const *const *) p;
2576 { /* SCO 3.2v4 cc rejects this. */
2578 char const *s = 0 ? (char *) 0 : (char const *) 0;
2582 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
2584 const int *foo = &x[0];
2587 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
2588 typedef const int *iptr;
2592 { /* AIX XL C 1.02.0.0 rejects this saying
2593 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
2594 struct s { int j; const int *ap[3]; };
2595 struct s *b; b->j = 5;
2597 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
2603 if { (eval echo configure:2604: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2607 echo "configure: failed program was:" >&5
2608 cat conftest.$ac_ext >&5
2615 echo "$ac_t""$ac_cv_c_const" 1>&6
2616 if test $ac_cv_c_const = no; then
2617 cat >> confdefs.h <<\EOF
2623 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
2624 echo "configure:2625: checking for uid_t in sys/types.h" >&5
2625 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
2626 echo $ac_n "(cached) $ac_c" 1>&6
2628 cat > conftest.$ac_ext <<EOF
2629 #line 2630 "configure"
2630 #include "confdefs.h"
2631 #include <sys/types.h>
2633 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2634 egrep "uid_t" >/dev/null 2>&1; then
2636 ac_cv_type_uid_t=yes
2645 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
2646 if test $ac_cv_type_uid_t = no; then
2647 cat >> confdefs.h <<\EOF
2651 cat >> confdefs.h <<\EOF
2657 echo $ac_n "checking for off_t""... $ac_c" 1>&6
2658 echo "configure:2659: checking for off_t" >&5
2659 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
2660 echo $ac_n "(cached) $ac_c" 1>&6
2662 cat > conftest.$ac_ext <<EOF
2663 #line 2664 "configure"
2664 #include "confdefs.h"
2665 #include <sys/types.h>
2671 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2672 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2674 ac_cv_type_off_t=yes
2682 echo "$ac_t""$ac_cv_type_off_t" 1>&6
2683 if test $ac_cv_type_off_t = no; then
2684 cat >> confdefs.h <<\EOF
2690 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
2691 echo "configure:2692: checking for pid_t" >&5
2692 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
2693 echo $ac_n "(cached) $ac_c" 1>&6
2695 cat > conftest.$ac_ext <<EOF
2696 #line 2697 "configure"
2697 #include "confdefs.h"
2698 #include <sys/types.h>
2704 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2705 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2707 ac_cv_type_pid_t=yes
2715 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
2716 if test $ac_cv_type_pid_t = no; then
2717 cat >> confdefs.h <<\EOF
2723 echo $ac_n "checking for size_t""... $ac_c" 1>&6
2724 echo "configure:2725: checking for size_t" >&5
2725 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
2726 echo $ac_n "(cached) $ac_c" 1>&6
2728 cat > conftest.$ac_ext <<EOF
2729 #line 2730 "configure"
2730 #include "confdefs.h"
2731 #include <sys/types.h>
2737 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2738 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2740 ac_cv_type_size_t=yes
2743 ac_cv_type_size_t=no
2748 echo "$ac_t""$ac_cv_type_size_t" 1>&6
2749 if test $ac_cv_type_size_t = no; then
2750 cat >> confdefs.h <<\EOF
2751 #define size_t unsigned
2756 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
2757 echo "configure:2758: checking whether time.h and sys/time.h may both be included" >&5
2758 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
2759 echo $ac_n "(cached) $ac_c" 1>&6
2761 cat > conftest.$ac_ext <<EOF
2762 #line 2763 "configure"
2763 #include "confdefs.h"
2764 #include <sys/types.h>
2765 #include <sys/time.h>
2771 if { (eval echo configure:2772: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2773 ac_cv_header_time=yes
2775 echo "configure: failed program was:" >&5
2776 cat conftest.$ac_ext >&5
2778 ac_cv_header_time=no
2783 echo "$ac_t""$ac_cv_header_time" 1>&6
2784 if test $ac_cv_header_time = yes; then
2785 cat >> confdefs.h <<\EOF
2786 #define TIME_WITH_SYS_TIME 1
2791 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
2792 echo "configure:2793: checking whether struct tm is in sys/time.h or time.h" >&5
2793 if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then
2794 echo $ac_n "(cached) $ac_c" 1>&6
2796 cat > conftest.$ac_ext <<EOF
2797 #line 2798 "configure"
2798 #include "confdefs.h"
2799 #include <sys/types.h>
2802 struct tm *tp; tp->tm_sec;
2805 if { (eval echo configure:2806: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2807 ac_cv_struct_tm=time.h
2809 echo "configure: failed program was:" >&5
2810 cat conftest.$ac_ext >&5
2812 ac_cv_struct_tm=sys/time.h
2817 echo "$ac_t""$ac_cv_struct_tm" 1>&6
2818 if test $ac_cv_struct_tm = sys/time.h; then
2819 cat >> confdefs.h <<\EOF
2820 #define TM_IN_SYS_TIME 1
2826 echo $ac_n "checking type of array argument to getgroups""... $ac_c" 1>&6
2827 echo "configure:2828: checking type of array argument to getgroups" >&5
2828 if eval "test \"`echo '$''{'ac_cv_type_getgroups'+set}'`\" = set"; then
2829 echo $ac_n "(cached) $ac_c" 1>&6
2831 if test "$cross_compiling" = yes; then
2832 ac_cv_type_getgroups=cross
2834 cat > conftest.$ac_ext <<EOF
2835 #line 2836 "configure"
2836 #include "confdefs.h"
2838 /* Thanks to Mike Rendell for this test. */
2839 #include <sys/types.h>
2842 #define MAX(x, y) ((x) > (y) ? (x) : (y))
2847 union { gid_t gval; long lval; } val;
2850 for (i = 0; i < NGID; i++)
2851 gidset[i] = val.gval;
2852 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
2854 /* Exit non-zero if getgroups seems to require an array of ints. This
2855 happens when gid_t is short but getgroups modifies an array of ints. */
2856 exit ((n > 0 && gidset[n] != val.gval) ? 1 : 0);
2860 if { (eval echo configure:2861: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2862 ac_cv_type_getgroups=gid_t
2864 echo "configure: failed program was:" >&5
2865 cat conftest.$ac_ext >&5
2867 ac_cv_type_getgroups=int
2872 if test $ac_cv_type_getgroups = cross; then
2873 cat > conftest.$ac_ext <<EOF
2874 #line 2875 "configure"
2875 #include "confdefs.h"
2878 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2879 egrep "getgroups.*int.*gid_t" >/dev/null 2>&1; then
2881 ac_cv_type_getgroups=gid_t
2884 ac_cv_type_getgroups=int
2891 echo "$ac_t""$ac_cv_type_getgroups" 1>&6
2892 cat >> confdefs.h <<EOF
2893 #define GETGROUPS_T $ac_cv_type_getgroups
2897 if test $ac_cv_prog_gcc = yes; then
2898 echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
2899 echo "configure:2900: checking whether ${CC-cc} needs -traditional" >&5
2900 if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
2901 echo $ac_n "(cached) $ac_c" 1>&6
2903 ac_pattern="Autoconf.*'x'"
2904 cat > conftest.$ac_ext <<EOF
2905 #line 2906 "configure"
2906 #include "confdefs.h"
2910 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2911 egrep "$ac_pattern" >/dev/null 2>&1; then
2913 ac_cv_prog_gcc_traditional=yes
2916 ac_cv_prog_gcc_traditional=no
2921 if test $ac_cv_prog_gcc_traditional = no; then
2922 cat > conftest.$ac_ext <<EOF
2923 #line 2924 "configure"
2924 #include "confdefs.h"
2928 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2929 egrep "$ac_pattern" >/dev/null 2>&1; then
2931 ac_cv_prog_gcc_traditional=yes
2938 echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6
2939 if test $ac_cv_prog_gcc_traditional = yes; then
2940 CC="$CC -traditional"
2944 echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6
2945 echo "configure:2946: checking for 8-bit clean memcmp" >&5
2946 if eval "test \"`echo '$''{'ac_cv_func_memcmp_clean'+set}'`\" = set"; then
2947 echo $ac_n "(cached) $ac_c" 1>&6
2949 if test "$cross_compiling" = yes; then
2950 ac_cv_func_memcmp_clean=no
2952 cat > conftest.$ac_ext <<EOF
2953 #line 2954 "configure"
2954 #include "confdefs.h"
2958 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
2959 exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
2963 if { (eval echo configure:2964: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2965 ac_cv_func_memcmp_clean=yes
2967 echo "configure: failed program was:" >&5
2968 cat conftest.$ac_ext >&5
2970 ac_cv_func_memcmp_clean=no
2977 echo "$ac_t""$ac_cv_func_memcmp_clean" 1>&6
2978 test $ac_cv_func_memcmp_clean = no && LIBOBJS="$LIBOBJS memcmp.${ac_objext}"
2980 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
2981 echo "configure:2982: checking for vprintf" >&5
2982 if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
2983 echo $ac_n "(cached) $ac_c" 1>&6
2985 cat > conftest.$ac_ext <<EOF
2986 #line 2987 "configure"
2987 #include "confdefs.h"
2988 /* System header to define __stub macros and hopefully few prototypes,
2989 which can conflict with char vprintf(); below. */
2991 /* Override any gcc2 internal prototype to avoid an error. */
2992 /* We use char because int might match the return type of a gcc2
2993 builtin and then its argument prototype would still apply. */
2998 /* The GNU C library defines this for functions which it implements
2999 to always fail with ENOSYS. Some functions are actually named
3000 something starting with __ and the normal name is an alias. */
3001 #if defined (__stub_vprintf) || defined (__stub___vprintf)
3009 if { (eval echo configure:3010: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3011 eval "ac_cv_func_vprintf=yes"
3013 echo "configure: failed program was:" >&5
3014 cat conftest.$ac_ext >&5
3016 eval "ac_cv_func_vprintf=no"
3021 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
3022 echo "$ac_t""yes" 1>&6
3023 cat >> confdefs.h <<\EOF
3024 #define HAVE_VPRINTF 1
3028 echo "$ac_t""no" 1>&6
3031 if test "$ac_cv_func_vprintf" != yes; then
3032 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
3033 echo "configure:3034: checking for _doprnt" >&5
3034 if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
3035 echo $ac_n "(cached) $ac_c" 1>&6
3037 cat > conftest.$ac_ext <<EOF
3038 #line 3039 "configure"
3039 #include "confdefs.h"
3040 /* System header to define __stub macros and hopefully few prototypes,
3041 which can conflict with char _doprnt(); below. */
3043 /* Override any gcc2 internal prototype to avoid an error. */
3044 /* We use char because int might match the return type of a gcc2
3045 builtin and then its argument prototype would still apply. */
3050 /* The GNU C library defines this for functions which it implements
3051 to always fail with ENOSYS. Some functions are actually named
3052 something starting with __ and the normal name is an alias. */
3053 #if defined (__stub__doprnt) || defined (__stub____doprnt)
3061 if { (eval echo configure:3062: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3063 eval "ac_cv_func__doprnt=yes"
3065 echo "configure: failed program was:" >&5
3066 cat conftest.$ac_ext >&5
3068 eval "ac_cv_func__doprnt=no"
3073 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
3074 echo "$ac_t""yes" 1>&6
3075 cat >> confdefs.h <<\EOF
3076 #define HAVE_DOPRNT 1
3080 echo "$ac_t""no" 1>&6
3085 for ac_func in gethostname gettimeofday mkdir select strcspn strdup strerror strspn strstr strtol uname
3087 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3088 echo "configure:3089: checking for $ac_func" >&5
3089 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3090 echo $ac_n "(cached) $ac_c" 1>&6
3092 cat > conftest.$ac_ext <<EOF
3093 #line 3094 "configure"
3094 #include "confdefs.h"
3095 /* System header to define __stub macros and hopefully few prototypes,
3096 which can conflict with char $ac_func(); below. */
3098 /* Override any gcc2 internal prototype to avoid an error. */
3099 /* We use char because int might match the return type of a gcc2
3100 builtin and then its argument prototype would still apply. */
3105 /* The GNU C library defines this for functions which it implements
3106 to always fail with ENOSYS. Some functions are actually named
3107 something starting with __ and the normal name is an alias. */
3108 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3116 if { (eval echo configure:3117: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3118 eval "ac_cv_func_$ac_func=yes"
3120 echo "configure: failed program was:" >&5
3121 cat conftest.$ac_ext >&5
3123 eval "ac_cv_func_$ac_func=no"
3128 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3129 echo "$ac_t""yes" 1>&6
3130 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3131 cat >> confdefs.h <<EOF
3132 #define $ac_tr_func 1
3136 echo "$ac_t""no" 1>&6
3141 for ac_func in getpwnam_r getgrnam_r
3143 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3144 echo "configure:3145: checking for $ac_func" >&5
3145 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3146 echo $ac_n "(cached) $ac_c" 1>&6
3148 cat > conftest.$ac_ext <<EOF
3149 #line 3150 "configure"
3150 #include "confdefs.h"
3151 /* System header to define __stub macros and hopefully few prototypes,
3152 which can conflict with char $ac_func(); below. */
3154 /* Override any gcc2 internal prototype to avoid an error. */
3155 /* We use char because int might match the return type of a gcc2
3156 builtin and then its argument prototype would still apply. */
3161 /* The GNU C library defines this for functions which it implements
3162 to always fail with ENOSYS. Some functions are actually named
3163 something starting with __ and the normal name is an alias. */
3164 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3172 if { (eval echo configure:3173: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3174 eval "ac_cv_func_$ac_func=yes"
3176 echo "configure: failed program was:" >&5
3177 cat conftest.$ac_ext >&5
3179 eval "ac_cv_func_$ac_func=no"
3184 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3185 echo "$ac_t""yes" 1>&6
3186 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3187 cat >> confdefs.h <<EOF
3188 #define $ac_tr_func 1
3192 echo "$ac_t""no" 1>&6
3197 # Extract the first word of "sgml2txt", so it can be a program name with args.
3198 set dummy sgml2txt; ac_word=$2
3199 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3200 echo "configure:3201: checking for $ac_word" >&5
3201 if eval "test \"`echo '$''{'ac_cv_prog_HAVE_SGML2TXT'+set}'`\" = set"; then
3202 echo $ac_n "(cached) $ac_c" 1>&6
3204 if test -n "$HAVE_SGML2TXT"; then
3205 ac_cv_prog_HAVE_SGML2TXT="$HAVE_SGML2TXT" # Let the user override the test.
3207 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3209 for ac_dir in $ac_dummy; do
3210 test -z "$ac_dir" && ac_dir=.
3211 if test -f $ac_dir/$ac_word; then
3212 ac_cv_prog_HAVE_SGML2TXT="yes"
3217 test -z "$ac_cv_prog_HAVE_SGML2TXT" && ac_cv_prog_HAVE_SGML2TXT="no"
3220 HAVE_SGML2TXT="$ac_cv_prog_HAVE_SGML2TXT"
3221 if test -n "$HAVE_SGML2TXT"; then
3222 echo "$ac_t""$HAVE_SGML2TXT" 1>&6
3224 echo "$ac_t""no" 1>&6
3227 # Extract the first word of "sgml2html", so it can be a program name with args.
3228 set dummy sgml2html; ac_word=$2
3229 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3230 echo "configure:3231: checking for $ac_word" >&5
3231 if eval "test \"`echo '$''{'ac_cv_prog_HAVE_SGML2HTML'+set}'`\" = set"; then
3232 echo $ac_n "(cached) $ac_c" 1>&6
3234 if test -n "$HAVE_SGML2HTML"; then
3235 ac_cv_prog_HAVE_SGML2HTML="$HAVE_SGML2HTML" # Let the user override the test.
3237 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3239 for ac_dir in $ac_dummy; do
3240 test -z "$ac_dir" && ac_dir=.
3241 if test -f $ac_dir/$ac_word; then
3242 ac_cv_prog_HAVE_SGML2HTML="yes"
3247 test -z "$ac_cv_prog_HAVE_SGML2HTML" && ac_cv_prog_HAVE_SGML2HTML="no"
3250 HAVE_SGML2HTML="$ac_cv_prog_HAVE_SGML2HTML"
3251 if test -n "$HAVE_SGML2HTML"; then
3252 echo "$ac_t""$HAVE_SGML2HTML" 1>&6
3254 echo "$ac_t""no" 1>&6
3257 # Extract the first word of "sgml2latex", so it can be a program name with args.
3258 set dummy sgml2latex; ac_word=$2
3259 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3260 echo "configure:3261: checking for $ac_word" >&5
3261 if eval "test \"`echo '$''{'ac_cv_prog_HAVE_SGML2LATEX'+set}'`\" = set"; then
3262 echo $ac_n "(cached) $ac_c" 1>&6
3264 if test -n "$HAVE_SGML2LATEX"; then
3265 ac_cv_prog_HAVE_SGML2LATEX="$HAVE_SGML2LATEX" # Let the user override the test.
3267 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3269 for ac_dir in $ac_dummy; do
3270 test -z "$ac_dir" && ac_dir=.
3271 if test -f $ac_dir/$ac_word; then
3272 ac_cv_prog_HAVE_SGML2LATEX="yes"
3277 test -z "$ac_cv_prog_HAVE_SGML2LATEX" && ac_cv_prog_HAVE_SGML2LATEX="no"
3280 HAVE_SGML2LATEX="$ac_cv_prog_HAVE_SGML2LATEX"
3281 if test -n "$HAVE_SGML2LATEX"; then
3282 echo "$ac_t""$HAVE_SGML2LATEX" 1>&6
3284 echo "$ac_t""no" 1>&6
3287 if test $HAVE_SGML2LATEX = "yes" ; then
3288 if sgml2latex -h | grep -e --paper | grep ' -p ' > /dev/null ; then
3289 PSER="sgml2latex -o ps"
3291 PSER="sgml2latex -p"
3294 # Extract the first word of "sgml2ps", so it can be a program name with args.
3295 set dummy sgml2ps; ac_word=$2
3296 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3297 echo "configure:3298: checking for $ac_word" >&5
3298 if eval "test \"`echo '$''{'ac_cv_prog_HAVE_SGML2PS'+set}'`\" = set"; then
3299 echo $ac_n "(cached) $ac_c" 1>&6
3301 if test -n "$HAVE_SGML2PS"; then
3302 ac_cv_prog_HAVE_SGML2PS="$HAVE_SGML2PS" # Let the user override the test.
3304 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3306 for ac_dir in $ac_dummy; do
3307 test -z "$ac_dir" && ac_dir=.
3308 if test -f $ac_dir/$ac_word; then
3309 ac_cv_prog_HAVE_SGML2PS="yes"
3314 test -z "$ac_cv_prog_HAVE_SGML2PS" && ac_cv_prog_HAVE_SGML2PS="no"
3317 HAVE_SGML2PS="$ac_cv_prog_HAVE_SGML2PS"
3318 if test -n "$HAVE_SGML2PS"; then
3319 echo "$ac_t""$HAVE_SGML2PS" 1>&6
3321 echo "$ac_t""no" 1>&6
3324 if test $HAVE_SGML2PS = yes ; then
3331 cat > confcache <<\EOF
3332 # This file is a shell script that caches the results of configure
3333 # tests run on this system so they can be shared between configure
3334 # scripts and configure runs. It is not useful on other systems.
3335 # If it contains results you don't want to keep, you may remove or edit it.
3337 # By default, configure uses ./config.cache as the cache file,
3338 # creating it if it does not exist already. You can give configure
3339 # the --cache-file=FILE option to use a different cache file; that is
3340 # what configure does when it calls configure scripts in
3341 # subdirectories, so they share the cache.
3342 # Giving --cache-file=/dev/null disables caching, for debugging configure.
3343 # config.status only pays attention to the cache file if you give it the
3344 # --recheck option to rerun configure.
3347 # The following way of writing the cache mishandles newlines in values,
3348 # but we know of no workaround that is simple, portable, and efficient.
3349 # So, don't put newlines in cache variables' values.
3350 # Ultrix sh set writes to stderr and can't be redirected directly,
3351 # and sets the high bit in the cache file unless we assign to the vars.
3353 case `(ac_space=' '; set | grep ac_space) 2>&1` in
3355 # `set' does not quote correctly, so add quotes (double-quote substitution
3356 # turns \\\\ into \\, and sed turns \\ into \).
3358 -e "s/'/'\\\\''/g" \
3359 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
3362 # `set' quotes correctly as required by POSIX, so do not add quotes.
3363 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
3366 if cmp -s $cache_file confcache; then
3369 if test -w $cache_file; then
3370 echo "updating cache $cache_file"
3371 cat confcache > $cache_file
3373 echo "not updating unwritable cache $cache_file"
3378 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
3380 test "x$prefix" = xNONE && prefix=$ac_default_prefix
3381 # Let make expand exec_prefix.
3382 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
3384 # Any assignment to VPATH causes Sun make to only execute
3385 # the first set of double-colon rules, so remove it if not needed.
3386 # If there is a colon in the path, we need to keep it.
3387 if test "x$srcdir" = x.; then
3388 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
3391 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
3393 DEFS=-DHAVE_CONFIG_H
3395 # Without the "./", some shells look in PATH for config.status.
3396 : ${CONFIG_STATUS=./config.status}
3398 echo creating $CONFIG_STATUS
3399 rm -f $CONFIG_STATUS
3400 cat > $CONFIG_STATUS <<EOF
3402 # Generated automatically by configure.
3403 # Run this file to recreate the current configuration.
3404 # This directory was configured as follows,
3405 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
3407 # $0 $ac_configure_args
3409 # Compiler output produced by configure, useful for debugging
3410 # configure, is in ./config.log if it exists.
3412 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
3415 case "\$ac_option" in
3416 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
3417 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
3418 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
3419 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
3420 echo "$CONFIG_STATUS generated by autoconf version 2.13"
3422 -help | --help | --hel | --he | --h)
3423 echo "\$ac_cs_usage"; exit 0 ;;
3424 *) echo "\$ac_cs_usage"; exit 1 ;;
3428 ac_given_srcdir=$srcdir
3430 trap 'rm -fr `echo "Make.Rules _pam_aconf.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
3432 cat >> $CONFIG_STATUS <<EOF
3434 # Protect against being on the right side of a sed subst in config.status.
3435 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
3436 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
3440 s%@CFLAGS@%$CFLAGS%g
3441 s%@CPPFLAGS@%$CPPFLAGS%g
3442 s%@CXXFLAGS@%$CXXFLAGS%g
3443 s%@FFLAGS@%$FFLAGS%g
3445 s%@LDFLAGS@%$LDFLAGS%g
3447 s%@exec_prefix@%$exec_prefix%g
3448 s%@prefix@%$prefix%g
3449 s%@program_transform_name@%$program_transform_name%g
3450 s%@bindir@%$bindir%g
3451 s%@sbindir@%$sbindir%g
3452 s%@libexecdir@%$libexecdir%g
3453 s%@datadir@%$datadir%g
3454 s%@sysconfdir@%$sysconfdir%g
3455 s%@sharedstatedir@%$sharedstatedir%g
3456 s%@localstatedir@%$localstatedir%g
3457 s%@libdir@%$libdir%g
3458 s%@includedir@%$includedir%g
3459 s%@oldincludedir@%$oldincludedir%g
3460 s%@infodir@%$infodir%g
3461 s%@mandir@%$mandir%g
3462 s%@LIBPAM_VERSION_MAJOR@%$LIBPAM_VERSION_MAJOR%g
3463 s%@LIBPAM_VERSION_MINOR@%$LIBPAM_VERSION_MINOR%g
3464 s%@LOCALSRCDIR@%$LOCALSRCDIR%g
3466 s%@CONF_CFLAGS@%$CONF_CFLAGS%g
3468 s%@SHLIBMODE@%$SHLIBMODE%g
3469 s%@USESONAME@%$USESONAME%g
3470 s%@SOSWITCH@%$SOSWITCH%g
3471 s%@NEEDSONAME@%$NEEDSONAME%g
3472 s%@LDCONFIG@%$LDCONFIG%g
3473 s%@INSTALL@%$INSTALL%g
3477 s%@LEXLIB@%$LEXLIB%g
3479 s%@SET_MAKE@%$SET_MAKE%g
3480 s%@WITH_DEBUG@%$WITH_DEBUG%g
3481 s%@WITH_LIBDEBUG@%$WITH_LIBDEBUG%g
3482 s%@FAKEROOT@%$FAKEROOT%g
3483 s%@SECUREDIR@%$SECUREDIR%g
3484 s%@SCONFIGDIR@%$SCONFIGDIR%g
3485 s%@SUPLEMENTED@%$SUPLEMENTED%g
3486 s%@INCLUDEDIR@%$INCLUDEDIR%g
3487 s%@DOCDIR@%$DOCDIR%g
3488 s%@MANDIR@%$MANDIR%g
3489 s%@WITH_PAMLOCKING@%$WITH_PAMLOCKING%g
3490 s%@PAM_READ_BOTH_CONFS@%$PAM_READ_BOTH_CONFS%g
3491 s%@STATIC_LIBPAM@%$STATIC_LIBPAM%g
3492 s%@DYNAMIC_LIBPAM@%$DYNAMIC_LIBPAM%g
3493 s%@DYNAMIC@%$DYNAMIC%g
3494 s%@STATIC@%$STATIC%g
3495 s%@WITH_LCKPWDF@%$WITH_LCKPWDF%g
3497 s%@PAM_NEEDS_LIBC@%$PAM_NEEDS_LIBC%g
3498 s%@HAVE_LCKPWDF@%$HAVE_LCKPWDF%g
3500 s%@HAVE_LIBCRACK@%$HAVE_LIBCRACK%g
3501 s%@HAVE_LIBCRYPT@%$HAVE_LIBCRYPT%g
3502 s%@HAVE_LIBUTIL@%$HAVE_LIBUTIL%g
3503 s%@HAVE_LIBNDBM@%$HAVE_LIBNDBM%g
3504 s%@HAVE_LIBDB@%$HAVE_LIBDB%g
3505 s%@HAVE_LIBFL@%$HAVE_LIBFL%g
3506 s%@HAVE_LIBNSL@%$HAVE_LIBNSL%g
3507 s%@HAVE_LIBPWDB@%$HAVE_LIBPWDB%g
3508 s%@HAVE_NDBM_H@%$HAVE_NDBM_H%g
3509 s%@CRACKLIB_DICTPATH@%$CRACKLIB_DICTPATH%g
3510 s%@DYNTYPE@%$DYNTYPE%g
3511 s%@OS_CFLAGS@%$OS_CFLAGS%g
3512 s%@WARNINGS@%$WARNINGS%g
3517 s%@RANLIB@%$RANLIB%g
3519 s%@CC_STATIC@%$CC_STATIC%g
3520 s%@LIBOBJS@%$LIBOBJS%g
3521 s%@HAVE_SGML2TXT@%$HAVE_SGML2TXT%g
3522 s%@HAVE_SGML2HTML@%$HAVE_SGML2HTML%g
3523 s%@HAVE_SGML2LATEX@%$HAVE_SGML2LATEX%g
3524 s%@HAVE_SGML2PS@%$HAVE_SGML2PS%g
3530 cat >> $CONFIG_STATUS <<\EOF
3532 # Split the substitutions into bite-sized pieces for seds with
3533 # small command number limits, like on Digital OSF/1 and HP-UX.
3534 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
3535 ac_file=1 # Number of current file.
3536 ac_beg=1 # First line for current file.
3537 ac_end=$ac_max_sed_cmds # Line after last line for current file.
3540 while $ac_more_lines; do
3541 if test $ac_beg -gt 1; then
3542 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
3544 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
3546 if test ! -s conftest.s$ac_file; then
3548 rm -f conftest.s$ac_file
3550 if test -z "$ac_sed_cmds"; then
3551 ac_sed_cmds="sed -f conftest.s$ac_file"
3553 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
3555 ac_file=`expr $ac_file + 1`
3557 ac_end=`expr $ac_end + $ac_max_sed_cmds`
3560 if test -z "$ac_sed_cmds"; then
3565 cat >> $CONFIG_STATUS <<EOF
3567 CONFIG_FILES=\${CONFIG_FILES-"Make.Rules"}
3569 cat >> $CONFIG_STATUS <<\EOF
3570 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
3571 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3573 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
3574 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
3575 *) ac_file_in="${ac_file}.in" ;;
3578 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
3580 # Remove last slash and all that follows it. Not all systems have dirname.
3581 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
3582 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3583 # The file is in a subdirectory.
3584 test ! -d "$ac_dir" && mkdir "$ac_dir"
3585 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
3586 # A "../" for each directory in $ac_dir_suffix.
3587 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
3589 ac_dir_suffix= ac_dots=
3592 case "$ac_given_srcdir" in
3594 if test -z "$ac_dots"; then top_srcdir=.
3595 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
3596 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
3598 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
3599 top_srcdir="$ac_dots$ac_given_srcdir" ;;
3603 echo creating "$ac_file"
3605 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
3607 *Makefile*) ac_comsub="1i\\
3608 # $configure_input" ;;
3612 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3614 s%@configure_input@%$configure_input%g
3615 s%@srcdir@%$srcdir%g
3616 s%@top_srcdir@%$top_srcdir%g
3617 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
3621 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
3622 # NAME is the cpp macro being defined and VALUE is the value it is being given.
3624 # ac_d sets the value in "#define NAME VALUE" lines.
3625 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
3626 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
3629 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
3630 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
3631 ac_uB='\([ ]\)%\1#\2define\3'
3634 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
3635 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
3636 ac_eB='$%\1#\2define\3'
3640 if test "${CONFIG_HEADERS+set}" != set; then
3642 cat >> $CONFIG_STATUS <<EOF
3643 CONFIG_HEADERS="_pam_aconf.h"
3645 cat >> $CONFIG_STATUS <<\EOF
3647 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
3648 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3650 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
3651 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
3652 *) ac_file_in="${ac_file}.in" ;;
3655 echo creating $ac_file
3657 rm -f conftest.frag conftest.in conftest.out
3658 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3659 cat $ac_file_inputs > conftest.in
3663 # Transform confdefs.h into a sed script conftest.vals that substitutes
3664 # the proper values into config.h.in to produce config.h. And first:
3665 # Protect against being on the right side of a sed subst in config.status.
3666 # Protect against being in an unquoted here document in config.status.
3668 cat > conftest.hdr <<\EOF
3671 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
3675 sed -n -f conftest.hdr confdefs.h > conftest.vals
3678 # This sed command replaces #undef with comments. This is necessary, for
3679 # example, in the case of _POSIX_SOURCE, which is predefined and required
3680 # on some systems where configure will not decide to define it.
3681 cat >> conftest.vals <<\EOF
3682 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
3685 # Break up conftest.vals because some shells have a limit on
3686 # the size of here documents, and old seds have small limits too.
3691 ac_lines=`grep -c . conftest.vals`
3692 # grep -c gives empty output for an empty file on some AIX systems.
3693 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
3694 # Write a limited-size here document to conftest.frag.
3695 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
3696 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
3698 sed -f conftest.frag conftest.in > conftest.out
3700 mv conftest.out conftest.in
3702 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
3704 mv conftest.tail conftest.vals
3708 cat >> $CONFIG_STATUS <<\EOF
3709 rm -f conftest.frag conftest.h
3710 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
3711 cat conftest.in >> conftest.h
3713 if cmp -s $ac_file conftest.h 2>/dev/null; then
3714 echo "$ac_file is unchanged"
3717 # Remove last slash and all that follows it. Not all systems have dirname.
3718 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
3719 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3720 # The file is in a subdirectory.
3721 test ! -d "$ac_dir" && mkdir "$ac_dir"
3724 mv conftest.h $ac_file
3729 cat >> $CONFIG_STATUS <<EOF
3732 cat >> $CONFIG_STATUS <<\EOF
3736 chmod +x $CONFIG_STATUS
3737 rm -fr confdefs* $ac_clean_files
3738 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1