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