]> granicus.if.org Git - linux-pam/blob - configure
Relevant BUGIDs:
[linux-pam] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59.
4 #
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization.  ##
10 ## --------------------- ##
11
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14   emulate sh
15   NULLCMD=:
16   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17   # is contrary to our usage.  Disable this feature.
18   alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20   set -o posix
21 fi
22 DUALCASE=1; export DUALCASE # for MKS sh
23
24 # Support unset when possible.
25 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26   as_unset=unset
27 else
28   as_unset=false
29 fi
30
31
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
34 PS1='$ '
35 PS2='> '
36 PS4='+ '
37
38 # NLS nuisances.
39 for as_var in \
40   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42   LC_TELEPHONE LC_TIME
43 do
44   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45     eval $as_var=C; export $as_var
46   else
47     $as_unset $as_var
48   fi
49 done
50
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
53   as_expr=expr
54 else
55   as_expr=false
56 fi
57
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59   as_basename=basename
60 else
61   as_basename=false
62 fi
63
64
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68          X"$0" : 'X\(//\)$' \| \
69          X"$0" : 'X\(/\)$' \| \
70          .     : '\(.\)' 2>/dev/null ||
71 echo X/"$0" |
72     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73           /^X\/\(\/\/\)$/{ s//\1/; q; }
74           /^X\/\(\/\).*/{ s//\1/; q; }
75           s/.*/./; q'`
76
77
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
85
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88   echo "#! /bin/sh" >conf$$.sh
89   echo  "exit 0"   >>conf$$.sh
90   chmod +x conf$$.sh
91   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92     PATH_SEPARATOR=';'
93   else
94     PATH_SEPARATOR=:
95   fi
96   rm -f conf$$.sh
97 fi
98
99
100   as_lineno_1=$LINENO
101   as_lineno_2=$LINENO
102   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103   test "x$as_lineno_1" != "x$as_lineno_2" &&
104   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
105   # Find who we are.  Look in the path if we contain no path at all
106   # relative or not.
107   case $0 in
108     *[\\/]* ) as_myself=$0 ;;
109     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110 for as_dir in $PATH
111 do
112   IFS=$as_save_IFS
113   test -z "$as_dir" && as_dir=.
114   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115 done
116
117        ;;
118   esac
119   # We did not find ourselves, most probably we were run as `sh COMMAND'
120   # in which case we are not to be found in the path.
121   if test "x$as_myself" = x; then
122     as_myself=$0
123   fi
124   if test ! -f "$as_myself"; then
125     { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126    { (exit 1); exit 1; }; }
127   fi
128   case $CONFIG_SHELL in
129   '')
130     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132 do
133   IFS=$as_save_IFS
134   test -z "$as_dir" && as_dir=.
135   for as_base in sh bash ksh sh5; do
136          case $as_dir in
137          /*)
138            if ("$as_dir/$as_base" -c '
139   as_lineno_1=$LINENO
140   as_lineno_2=$LINENO
141   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142   test "x$as_lineno_1" != "x$as_lineno_2" &&
143   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
144              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146              CONFIG_SHELL=$as_dir/$as_base
147              export CONFIG_SHELL
148              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149            fi;;
150          esac
151        done
152 done
153 ;;
154   esac
155
156   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157   # uniformly replaced by the line number.  The first 'sed' inserts a
158   # line-number line before each line; the second 'sed' does the real
159   # work.  The second script uses 'N' to pair each line-number line
160   # with the numbered line, and appends trailing '-' during
161   # substitution so that $LINENO is not a special case at line end.
162   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
164   sed '=' <$as_myself |
165     sed '
166       N
167       s,$,-,
168       : loop
169       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170       t loop
171       s,-$,,
172       s,^['$as_cr_digits']*\n,,
173     ' >$as_me.lineno &&
174   chmod +x $as_me.lineno ||
175     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176    { (exit 1); exit 1; }; }
177
178   # Don't try to exec as it changes $[0], causing all sort of problems
179   # (the dirname of $[0] is not the place where we might find the
180   # original and so on.  Autoconf is especially sensible to this).
181   . ./$as_me.lineno
182   # Exit status is that of the last command.
183   exit
184 }
185
186
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188   *c*,-n*) ECHO_N= ECHO_C='
189 ' ECHO_T='      ' ;;
190   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
192 esac
193
194 if expr a : '\(a\)' >/dev/null 2>&1; then
195   as_expr=expr
196 else
197   as_expr=false
198 fi
199
200 rm -f conf$$ conf$$.exe conf$$.file
201 echo >conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203   # We could just check for DJGPP; but this test a) works b) is more generic
204   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205   if test -f conf$$.exe; then
206     # Don't use ln at all; we don't have any links
207     as_ln_s='cp -p'
208   else
209     as_ln_s='ln -s'
210   fi
211 elif ln conf$$.file conf$$ 2>/dev/null; then
212   as_ln_s=ln
213 else
214   as_ln_s='cp -p'
215 fi
216 rm -f conf$$ conf$$.exe conf$$.file
217
218 if mkdir -p . 2>/dev/null; then
219   as_mkdir_p=:
220 else
221   test -d ./-p && rmdir ./-p
222   as_mkdir_p=false
223 fi
224
225 as_executable_p="test -f"
226
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
229
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
232
233
234 # IFS
235 # We need space, tab and new line, in precisely that order.
236 as_nl='
237 '
238 IFS="   $as_nl"
239
240 # CDPATH.
241 $as_unset CDPATH
242
243
244 # Name of the host.
245 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246 # so uname gets run too.
247 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
248
249 exec 6>&1
250
251 #
252 # Initializations.
253 #
254 ac_default_prefix=/usr/local
255 ac_config_libobj_dir=.
256 cross_compiling=no
257 subdirs=
258 MFLAGS=
259 MAKEFLAGS=
260 SHELL=${CONFIG_SHELL-/bin/sh}
261
262 # Maximum number of lines to put in a shell here document.
263 # This variable seems obsolete.  It should probably be removed, and
264 # only ac_max_sed_lines should be used.
265 : ${ac_max_here_lines=38}
266
267 # Identity of this package.
268 PACKAGE_NAME=
269 PACKAGE_TARNAME=
270 PACKAGE_VERSION=
271 PACKAGE_STRING=
272 PACKAGE_BUGREPORT=
273
274 ac_unique_file="conf/pam_conv1/pam_conv.y"
275 ac_default_prefix=
276 # Factoring default headers for most tests.
277 ac_includes_default="\
278 #include <stdio.h>
279 #if HAVE_SYS_TYPES_H
280 # include <sys/types.h>
281 #endif
282 #if HAVE_SYS_STAT_H
283 # include <sys/stat.h>
284 #endif
285 #if STDC_HEADERS
286 # include <stdlib.h>
287 # include <stddef.h>
288 #else
289 # if HAVE_STDLIB_H
290 #  include <stdlib.h>
291 # endif
292 #endif
293 #if HAVE_STRING_H
294 # if !STDC_HEADERS && HAVE_MEMORY_H
295 #  include <memory.h>
296 # endif
297 # include <string.h>
298 #endif
299 #if HAVE_STRINGS_H
300 # include <strings.h>
301 #endif
302 #if HAVE_INTTYPES_H
303 # include <inttypes.h>
304 #else
305 # if HAVE_STDINT_H
306 #  include <stdint.h>
307 # endif
308 #endif
309 #if HAVE_UNISTD_H
310 # include <unistd.h>
311 #endif"
312
313 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS LIBPAM_VERSION_MAJOR LIBPAM_VERSION_MINOR LOCALSRCDIR LOCALOBJDIR OS CONF_CFLAGS MKDIR SHLIBMODE MANMODE USESONAME SOSWITCH NEEDSONAME LDCONFIG CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT YACC LEX LEXLIB LEX_OUTPUT_ROOT INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA LN_S SET_MAKE WITH_DEBUG WITH_MEMORY_DEBUG WITH_LIBDEBUG WITH_PRELUDE FAKEROOT SECUREDIR SCONFIGDIR SUPLEMENTED INCLUDEDIR DOCDIR MANDIR WITH_PAMLOCKING PAM_READ_BOTH_CONFS STATIC_LIBPAM DYNAMIC_LIBPAM DYNAMIC STATIC WITH_LCKPWDF CPP EGREP PAM_NEEDS_LIBC HAVE_LCKPWDF LIBDL HAVE_LIBCRACK HAVE_LIBCRYPT HAVE_LIBUTIL HAVE_LIBNDBM HAVE_LIBDB HAVE_LIBFL HAVE_LIBNSL HAVE_LIBPWDB HAVE_LIBFLEX HAVE_LIBLEX HAVE_NDBM_H CRACKLIB_DICTPATH DYNTYPE OS_CFLAGS WARNINGS PIC LD LD_D LD_L RANLIB STRIP CC_STATIC LIBOBJS HAVE_SGML2TXT HAVE_SGML2HTML HAVE_SGML2LATEX HAVE_PS2PDF HAVE_SGML2PS PSER PS2PDF LTLIBOBJS'
314 ac_subst_files=''
315
316 # Initialize some variables set by options.
317 ac_init_help=
318 ac_init_version=false
319 # The variables have the same names as the options, with
320 # dashes changed to underlines.
321 cache_file=/dev/null
322 exec_prefix=NONE
323 no_create=
324 no_recursion=
325 prefix=NONE
326 program_prefix=NONE
327 program_suffix=NONE
328 program_transform_name=s,x,x,
329 silent=
330 site=
331 srcdir=
332 verbose=
333 x_includes=NONE
334 x_libraries=NONE
335
336 # Installation directory options.
337 # These are left unexpanded so users can "make install exec_prefix=/foo"
338 # and all the variables that are supposed to be based on exec_prefix
339 # by default will actually change.
340 # Use braces instead of parens because sh, perl, etc. also accept them.
341 bindir='${exec_prefix}/bin'
342 sbindir='${exec_prefix}/sbin'
343 libexecdir='${exec_prefix}/libexec'
344 datadir='${prefix}/share'
345 sysconfdir='${prefix}/etc'
346 sharedstatedir='${prefix}/com'
347 localstatedir='${prefix}/var'
348 libdir='${exec_prefix}/lib'
349 includedir='${prefix}/include'
350 oldincludedir='/usr/include'
351 infodir='${prefix}/info'
352 mandir='${prefix}/man'
353
354 ac_prev=
355 for ac_option
356 do
357   # If the previous option needs an argument, assign it.
358   if test -n "$ac_prev"; then
359     eval "$ac_prev=\$ac_option"
360     ac_prev=
361     continue
362   fi
363
364   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
365
366   # Accept the important Cygnus configure options, so we can diagnose typos.
367
368   case $ac_option in
369
370   -bindir | --bindir | --bindi | --bind | --bin | --bi)
371     ac_prev=bindir ;;
372   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
373     bindir=$ac_optarg ;;
374
375   -build | --build | --buil | --bui | --bu)
376     ac_prev=build_alias ;;
377   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
378     build_alias=$ac_optarg ;;
379
380   -cache-file | --cache-file | --cache-fil | --cache-fi \
381   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
382     ac_prev=cache_file ;;
383   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
384   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
385     cache_file=$ac_optarg ;;
386
387   --config-cache | -C)
388     cache_file=config.cache ;;
389
390   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
391     ac_prev=datadir ;;
392   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
393   | --da=*)
394     datadir=$ac_optarg ;;
395
396   -disable-* | --disable-*)
397     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
398     # Reject names that are not valid shell variable names.
399     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
400       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
401    { (exit 1); exit 1; }; }
402     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
403     eval "enable_$ac_feature=no" ;;
404
405   -enable-* | --enable-*)
406     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
407     # Reject names that are not valid shell variable names.
408     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
409       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
410    { (exit 1); exit 1; }; }
411     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
412     case $ac_option in
413       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
414       *) ac_optarg=yes ;;
415     esac
416     eval "enable_$ac_feature='$ac_optarg'" ;;
417
418   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
419   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
420   | --exec | --exe | --ex)
421     ac_prev=exec_prefix ;;
422   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
423   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
424   | --exec=* | --exe=* | --ex=*)
425     exec_prefix=$ac_optarg ;;
426
427   -gas | --gas | --ga | --g)
428     # Obsolete; use --with-gas.
429     with_gas=yes ;;
430
431   -help | --help | --hel | --he | -h)
432     ac_init_help=long ;;
433   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
434     ac_init_help=recursive ;;
435   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
436     ac_init_help=short ;;
437
438   -host | --host | --hos | --ho)
439     ac_prev=host_alias ;;
440   -host=* | --host=* | --hos=* | --ho=*)
441     host_alias=$ac_optarg ;;
442
443   -includedir | --includedir | --includedi | --included | --include \
444   | --includ | --inclu | --incl | --inc)
445     ac_prev=includedir ;;
446   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
447   | --includ=* | --inclu=* | --incl=* | --inc=*)
448     includedir=$ac_optarg ;;
449
450   -infodir | --infodir | --infodi | --infod | --info | --inf)
451     ac_prev=infodir ;;
452   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
453     infodir=$ac_optarg ;;
454
455   -libdir | --libdir | --libdi | --libd)
456     ac_prev=libdir ;;
457   -libdir=* | --libdir=* | --libdi=* | --libd=*)
458     libdir=$ac_optarg ;;
459
460   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
461   | --libexe | --libex | --libe)
462     ac_prev=libexecdir ;;
463   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
464   | --libexe=* | --libex=* | --libe=*)
465     libexecdir=$ac_optarg ;;
466
467   -localstatedir | --localstatedir | --localstatedi | --localstated \
468   | --localstate | --localstat | --localsta | --localst \
469   | --locals | --local | --loca | --loc | --lo)
470     ac_prev=localstatedir ;;
471   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
472   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
473   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
474     localstatedir=$ac_optarg ;;
475
476   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
477     ac_prev=mandir ;;
478   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
479     mandir=$ac_optarg ;;
480
481   -nfp | --nfp | --nf)
482     # Obsolete; use --without-fp.
483     with_fp=no ;;
484
485   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
486   | --no-cr | --no-c | -n)
487     no_create=yes ;;
488
489   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
490   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
491     no_recursion=yes ;;
492
493   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
494   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
495   | --oldin | --oldi | --old | --ol | --o)
496     ac_prev=oldincludedir ;;
497   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
498   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
499   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
500     oldincludedir=$ac_optarg ;;
501
502   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
503     ac_prev=prefix ;;
504   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
505     prefix=$ac_optarg ;;
506
507   -program-prefix | --program-prefix | --program-prefi | --program-pref \
508   | --program-pre | --program-pr | --program-p)
509     ac_prev=program_prefix ;;
510   -program-prefix=* | --program-prefix=* | --program-prefi=* \
511   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
512     program_prefix=$ac_optarg ;;
513
514   -program-suffix | --program-suffix | --program-suffi | --program-suff \
515   | --program-suf | --program-su | --program-s)
516     ac_prev=program_suffix ;;
517   -program-suffix=* | --program-suffix=* | --program-suffi=* \
518   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
519     program_suffix=$ac_optarg ;;
520
521   -program-transform-name | --program-transform-name \
522   | --program-transform-nam | --program-transform-na \
523   | --program-transform-n | --program-transform- \
524   | --program-transform | --program-transfor \
525   | --program-transfo | --program-transf \
526   | --program-trans | --program-tran \
527   | --progr-tra | --program-tr | --program-t)
528     ac_prev=program_transform_name ;;
529   -program-transform-name=* | --program-transform-name=* \
530   | --program-transform-nam=* | --program-transform-na=* \
531   | --program-transform-n=* | --program-transform-=* \
532   | --program-transform=* | --program-transfor=* \
533   | --program-transfo=* | --program-transf=* \
534   | --program-trans=* | --program-tran=* \
535   | --progr-tra=* | --program-tr=* | --program-t=*)
536     program_transform_name=$ac_optarg ;;
537
538   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
539   | -silent | --silent | --silen | --sile | --sil)
540     silent=yes ;;
541
542   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
543     ac_prev=sbindir ;;
544   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
545   | --sbi=* | --sb=*)
546     sbindir=$ac_optarg ;;
547
548   -sharedstatedir | --sharedstatedir | --sharedstatedi \
549   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
550   | --sharedst | --shareds | --shared | --share | --shar \
551   | --sha | --sh)
552     ac_prev=sharedstatedir ;;
553   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
554   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
555   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
556   | --sha=* | --sh=*)
557     sharedstatedir=$ac_optarg ;;
558
559   -site | --site | --sit)
560     ac_prev=site ;;
561   -site=* | --site=* | --sit=*)
562     site=$ac_optarg ;;
563
564   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
565     ac_prev=srcdir ;;
566   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
567     srcdir=$ac_optarg ;;
568
569   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
570   | --syscon | --sysco | --sysc | --sys | --sy)
571     ac_prev=sysconfdir ;;
572   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
573   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
574     sysconfdir=$ac_optarg ;;
575
576   -target | --target | --targe | --targ | --tar | --ta | --t)
577     ac_prev=target_alias ;;
578   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
579     target_alias=$ac_optarg ;;
580
581   -v | -verbose | --verbose | --verbos | --verbo | --verb)
582     verbose=yes ;;
583
584   -version | --version | --versio | --versi | --vers | -V)
585     ac_init_version=: ;;
586
587   -with-* | --with-*)
588     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
589     # Reject names that are not valid shell variable names.
590     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
591       { echo "$as_me: error: invalid package name: $ac_package" >&2
592    { (exit 1); exit 1; }; }
593     ac_package=`echo $ac_package| sed 's/-/_/g'`
594     case $ac_option in
595       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
596       *) ac_optarg=yes ;;
597     esac
598     eval "with_$ac_package='$ac_optarg'" ;;
599
600   -without-* | --without-*)
601     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
602     # Reject names that are not valid shell variable names.
603     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
604       { echo "$as_me: error: invalid package name: $ac_package" >&2
605    { (exit 1); exit 1; }; }
606     ac_package=`echo $ac_package | sed 's/-/_/g'`
607     eval "with_$ac_package=no" ;;
608
609   --x)
610     # Obsolete; use --with-x.
611     with_x=yes ;;
612
613   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
614   | --x-incl | --x-inc | --x-in | --x-i)
615     ac_prev=x_includes ;;
616   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
617   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
618     x_includes=$ac_optarg ;;
619
620   -x-libraries | --x-libraries | --x-librarie | --x-librari \
621   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
622     ac_prev=x_libraries ;;
623   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
624   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
625     x_libraries=$ac_optarg ;;
626
627   -*) { echo "$as_me: error: unrecognized option: $ac_option
628 Try \`$0 --help' for more information." >&2
629    { (exit 1); exit 1; }; }
630     ;;
631
632   *=*)
633     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
634     # Reject names that are not valid shell variable names.
635     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
636       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
637    { (exit 1); exit 1; }; }
638     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
639     eval "$ac_envvar='$ac_optarg'"
640     export $ac_envvar ;;
641
642   *)
643     # FIXME: should be removed in autoconf 3.0.
644     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
645     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
646       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
647     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
648     ;;
649
650   esac
651 done
652
653 if test -n "$ac_prev"; then
654   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
655   { echo "$as_me: error: missing argument to $ac_option" >&2
656    { (exit 1); exit 1; }; }
657 fi
658
659 # Be sure to have absolute paths.
660 for ac_var in exec_prefix prefix
661 do
662   eval ac_val=$`echo $ac_var`
663   case $ac_val in
664     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
665     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
666    { (exit 1); exit 1; }; };;
667   esac
668 done
669
670 # Be sure to have absolute paths.
671 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
672               localstatedir libdir includedir oldincludedir infodir mandir
673 do
674   eval ac_val=$`echo $ac_var`
675   case $ac_val in
676     [\\/$]* | ?:[\\/]* ) ;;
677     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
678    { (exit 1); exit 1; }; };;
679   esac
680 done
681
682 # There might be people who depend on the old broken behavior: `$host'
683 # used to hold the argument of --host etc.
684 # FIXME: To remove some day.
685 build=$build_alias
686 host=$host_alias
687 target=$target_alias
688
689 # FIXME: To remove some day.
690 if test "x$host_alias" != x; then
691   if test "x$build_alias" = x; then
692     cross_compiling=maybe
693     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
694     If a cross compiler is detected then cross compile mode will be used." >&2
695   elif test "x$build_alias" != "x$host_alias"; then
696     cross_compiling=yes
697   fi
698 fi
699
700 ac_tool_prefix=
701 test -n "$host_alias" && ac_tool_prefix=$host_alias-
702
703 test "$silent" = yes && exec 6>/dev/null
704
705
706 # Find the source files, if location was not specified.
707 if test -z "$srcdir"; then
708   ac_srcdir_defaulted=yes
709   # Try the directory containing this script, then its parent.
710   ac_confdir=`(dirname "$0") 2>/dev/null ||
711 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
712          X"$0" : 'X\(//\)[^/]' \| \
713          X"$0" : 'X\(//\)$' \| \
714          X"$0" : 'X\(/\)' \| \
715          .     : '\(.\)' 2>/dev/null ||
716 echo X"$0" |
717     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
718           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
719           /^X\(\/\/\)$/{ s//\1/; q; }
720           /^X\(\/\).*/{ s//\1/; q; }
721           s/.*/./; q'`
722   srcdir=$ac_confdir
723   if test ! -r $srcdir/$ac_unique_file; then
724     srcdir=..
725   fi
726 else
727   ac_srcdir_defaulted=no
728 fi
729 if test ! -r $srcdir/$ac_unique_file; then
730   if test "$ac_srcdir_defaulted" = yes; then
731     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
732    { (exit 1); exit 1; }; }
733   else
734     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
735    { (exit 1); exit 1; }; }
736   fi
737 fi
738 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
739   { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
740    { (exit 1); exit 1; }; }
741 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
742 ac_env_build_alias_set=${build_alias+set}
743 ac_env_build_alias_value=$build_alias
744 ac_cv_env_build_alias_set=${build_alias+set}
745 ac_cv_env_build_alias_value=$build_alias
746 ac_env_host_alias_set=${host_alias+set}
747 ac_env_host_alias_value=$host_alias
748 ac_cv_env_host_alias_set=${host_alias+set}
749 ac_cv_env_host_alias_value=$host_alias
750 ac_env_target_alias_set=${target_alias+set}
751 ac_env_target_alias_value=$target_alias
752 ac_cv_env_target_alias_set=${target_alias+set}
753 ac_cv_env_target_alias_value=$target_alias
754 ac_env_CC_set=${CC+set}
755 ac_env_CC_value=$CC
756 ac_cv_env_CC_set=${CC+set}
757 ac_cv_env_CC_value=$CC
758 ac_env_CFLAGS_set=${CFLAGS+set}
759 ac_env_CFLAGS_value=$CFLAGS
760 ac_cv_env_CFLAGS_set=${CFLAGS+set}
761 ac_cv_env_CFLAGS_value=$CFLAGS
762 ac_env_LDFLAGS_set=${LDFLAGS+set}
763 ac_env_LDFLAGS_value=$LDFLAGS
764 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
765 ac_cv_env_LDFLAGS_value=$LDFLAGS
766 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
767 ac_env_CPPFLAGS_value=$CPPFLAGS
768 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
769 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
770 ac_env_CPP_set=${CPP+set}
771 ac_env_CPP_value=$CPP
772 ac_cv_env_CPP_set=${CPP+set}
773 ac_cv_env_CPP_value=$CPP
774
775 #
776 # Report the --help message.
777 #
778 if test "$ac_init_help" = "long"; then
779   # Omit some internal or obsolete options to make the list less imposing.
780   # This message is too long to be a string in the A/UX 3.1 sh.
781   cat <<_ACEOF
782 \`configure' configures this package to adapt to many kinds of systems.
783
784 Usage: $0 [OPTION]... [VAR=VALUE]...
785
786 To assign environment variables (e.g., CC, CFLAGS...), specify them as
787 VAR=VALUE.  See below for descriptions of some of the useful variables.
788
789 Defaults for the options are specified in brackets.
790
791 Configuration:
792   -h, --help              display this help and exit
793       --help=short        display options specific to this package
794       --help=recursive    display the short help of all the included packages
795   -V, --version           display version information and exit
796   -q, --quiet, --silent   do not print \`checking...' messages
797       --cache-file=FILE   cache test results in FILE [disabled]
798   -C, --config-cache      alias for \`--cache-file=config.cache'
799   -n, --no-create         do not create output files
800       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
801
802 _ACEOF
803
804   cat <<_ACEOF
805 Installation directories:
806   --prefix=PREFIX         install architecture-independent files in PREFIX
807                           [$ac_default_prefix]
808   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
809                           [PREFIX]
810
811 By default, \`make install' will install all the files in
812 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
813 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
814 for instance \`--prefix=\$HOME'.
815
816 For better control, use the options below.
817
818 Fine tuning of the installation directories:
819   --bindir=DIR           user executables [EPREFIX/bin]
820   --sbindir=DIR          system admin executables [EPREFIX/sbin]
821   --libexecdir=DIR       program executables [EPREFIX/libexec]
822   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
823   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
824   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
825   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
826   --libdir=DIR           object code libraries [EPREFIX/lib]
827   --includedir=DIR       C header files [PREFIX/include]
828   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
829   --infodir=DIR          info documentation [PREFIX/info]
830   --mandir=DIR           man documentation [PREFIX/man]
831 _ACEOF
832
833   cat <<\_ACEOF
834 _ACEOF
835 fi
836
837 if test -n "$ac_init_help"; then
838
839   cat <<\_ACEOF
840
841 Optional Features:
842   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
843   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
844   --enable-debug           specify you are building with debugging on
845   --enable-memory-debug    specify you want every malloc etc. call tracked
846   --enable-libdebug        specify you are building debugging libraries
847   --enable-prelude         build prelude ids support
848   --enable-fakeroot=<path to packaging directory>
849   --enable-securedir=<path to location of PAMs> default \$libdir/security
850   --enable-isadir=<path to arch-specific module files> default ../../\`basename \$libdir\`/security
851   --enable-sconfigdir=<path to module conf files> default \$sysconfdir/security
852   --enable-suplementedir=<path to module helper binaries> default \$sbindir
853   --enable-includedir=<path to include location> - where to put <security>
854   --enable-docdir=<path to store documentation in - /usr/share/doc/pam>
855   --enable-mandir=<path to store manuals in - /usr/share/man>
856   --enable-pamlocking      configure libpam to observe a global authentication lock
857   --enable-uglyhack        configure libpam to try to honor old pam_strerror syntax
858   --enable-read-both-confs  read both /etc/pam.d and /etc/pam.conf files
859   --enable-static-libpam   build a libpam.a library
860   --disable-dynamic-libpam do not build a shared libpam library
861   --enable-static-modules  do not make the modules dynamically loadable
862   --disable-lckpwdf do not use the lckpwdf function
863
864 Optional Packages:
865   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
866   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
867   --with-mailspool         path to mail spool directory
868                            default _PATH_MAILDIR if defined in paths.h, otherwise /var/spool/mail
869
870 Some influential environment variables:
871   CC          C compiler command
872   CFLAGS      C compiler flags
873   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
874               nonstandard directory <lib dir>
875   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
876               headers in a nonstandard directory <include dir>
877   CPP         C preprocessor
878
879 Use these variables to override the choices made by `configure' or to help
880 it to find libraries and programs with nonstandard names/locations.
881
882 _ACEOF
883 fi
884
885 if test "$ac_init_help" = "recursive"; then
886   # If there are subdirs, report their specific --help.
887   ac_popdir=`pwd`
888   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
889     test -d $ac_dir || continue
890     ac_builddir=.
891
892 if test "$ac_dir" != .; then
893   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
894   # A "../" for each directory in $ac_dir_suffix.
895   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
896 else
897   ac_dir_suffix= ac_top_builddir=
898 fi
899
900 case $srcdir in
901   .)  # No --srcdir option.  We are building in place.
902     ac_srcdir=.
903     if test -z "$ac_top_builddir"; then
904        ac_top_srcdir=.
905     else
906        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
907     fi ;;
908   [\\/]* | ?:[\\/]* )  # Absolute path.
909     ac_srcdir=$srcdir$ac_dir_suffix;
910     ac_top_srcdir=$srcdir ;;
911   *) # Relative path.
912     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
913     ac_top_srcdir=$ac_top_builddir$srcdir ;;
914 esac
915
916 # Do not use `cd foo && pwd` to compute absolute paths, because
917 # the directories may not exist.
918 case `pwd` in
919 .) ac_abs_builddir="$ac_dir";;
920 *)
921   case "$ac_dir" in
922   .) ac_abs_builddir=`pwd`;;
923   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
924   *) ac_abs_builddir=`pwd`/"$ac_dir";;
925   esac;;
926 esac
927 case $ac_abs_builddir in
928 .) ac_abs_top_builddir=${ac_top_builddir}.;;
929 *)
930   case ${ac_top_builddir}. in
931   .) ac_abs_top_builddir=$ac_abs_builddir;;
932   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
933   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
934   esac;;
935 esac
936 case $ac_abs_builddir in
937 .) ac_abs_srcdir=$ac_srcdir;;
938 *)
939   case $ac_srcdir in
940   .) ac_abs_srcdir=$ac_abs_builddir;;
941   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
942   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
943   esac;;
944 esac
945 case $ac_abs_builddir in
946 .) ac_abs_top_srcdir=$ac_top_srcdir;;
947 *)
948   case $ac_top_srcdir in
949   .) ac_abs_top_srcdir=$ac_abs_builddir;;
950   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
951   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
952   esac;;
953 esac
954
955     cd $ac_dir
956     # Check for guested configure; otherwise get Cygnus style configure.
957     if test -f $ac_srcdir/configure.gnu; then
958       echo
959       $SHELL $ac_srcdir/configure.gnu  --help=recursive
960     elif test -f $ac_srcdir/configure; then
961       echo
962       $SHELL $ac_srcdir/configure  --help=recursive
963     elif test -f $ac_srcdir/configure.ac ||
964            test -f $ac_srcdir/configure.in; then
965       echo
966       $ac_configure --help
967     else
968       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
969     fi
970     cd $ac_popdir
971   done
972 fi
973
974 test -n "$ac_init_help" && exit 0
975 if $ac_init_version; then
976   cat <<\_ACEOF
977
978 Copyright (C) 2003 Free Software Foundation, Inc.
979 This configure script is free software; the Free Software Foundation
980 gives unlimited permission to copy, distribute and modify it.
981 _ACEOF
982   exit 0
983 fi
984 exec 5>config.log
985 cat >&5 <<_ACEOF
986 This file contains any messages produced by compilers while
987 running configure, to aid debugging if configure makes a mistake.
988
989 It was created by $as_me, which was
990 generated by GNU Autoconf 2.59.  Invocation command line was
991
992   $ $0 $@
993
994 _ACEOF
995 {
996 cat <<_ASUNAME
997 ## --------- ##
998 ## Platform. ##
999 ## --------- ##
1000
1001 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1002 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1003 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1004 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1005 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1006
1007 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1008 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1009
1010 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1011 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1012 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1013 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1014 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1015 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1016 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1017
1018 _ASUNAME
1019
1020 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1021 for as_dir in $PATH
1022 do
1023   IFS=$as_save_IFS
1024   test -z "$as_dir" && as_dir=.
1025   echo "PATH: $as_dir"
1026 done
1027
1028 } >&5
1029
1030 cat >&5 <<_ACEOF
1031
1032
1033 ## ----------- ##
1034 ## Core tests. ##
1035 ## ----------- ##
1036
1037 _ACEOF
1038
1039
1040 # Keep a trace of the command line.
1041 # Strip out --no-create and --no-recursion so they do not pile up.
1042 # Strip out --silent because we don't want to record it for future runs.
1043 # Also quote any args containing shell meta-characters.
1044 # Make two passes to allow for proper duplicate-argument suppression.
1045 ac_configure_args=
1046 ac_configure_args0=
1047 ac_configure_args1=
1048 ac_sep=
1049 ac_must_keep_next=false
1050 for ac_pass in 1 2
1051 do
1052   for ac_arg
1053   do
1054     case $ac_arg in
1055     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1056     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1057     | -silent | --silent | --silen | --sile | --sil)
1058       continue ;;
1059     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1060       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1061     esac
1062     case $ac_pass in
1063     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1064     2)
1065       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1066       if test $ac_must_keep_next = true; then
1067         ac_must_keep_next=false # Got value, back to normal.
1068       else
1069         case $ac_arg in
1070           *=* | --config-cache | -C | -disable-* | --disable-* \
1071           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1072           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1073           | -with-* | --with-* | -without-* | --without-* | --x)
1074             case "$ac_configure_args0 " in
1075               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1076             esac
1077             ;;
1078           -* ) ac_must_keep_next=true ;;
1079         esac
1080       fi
1081       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1082       # Get rid of the leading space.
1083       ac_sep=" "
1084       ;;
1085     esac
1086   done
1087 done
1088 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1089 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1090
1091 # When interrupted or exit'd, cleanup temporary files, and complete
1092 # config.log.  We remove comments because anyway the quotes in there
1093 # would cause problems or look ugly.
1094 # WARNING: Be sure not to use single quotes in there, as some shells,
1095 # such as our DU 5.0 friend, will then `close' the trap.
1096 trap 'exit_status=$?
1097   # Save into config.log some information that might help in debugging.
1098   {
1099     echo
1100
1101     cat <<\_ASBOX
1102 ## ---------------- ##
1103 ## Cache variables. ##
1104 ## ---------------- ##
1105 _ASBOX
1106     echo
1107     # The following way of writing the cache mishandles newlines in values,
1108 {
1109   (set) 2>&1 |
1110     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1111     *ac_space=\ *)
1112       sed -n \
1113         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1114           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1115       ;;
1116     *)
1117       sed -n \
1118         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1119       ;;
1120     esac;
1121 }
1122     echo
1123
1124     cat <<\_ASBOX
1125 ## ----------------- ##
1126 ## Output variables. ##
1127 ## ----------------- ##
1128 _ASBOX
1129     echo
1130     for ac_var in $ac_subst_vars
1131     do
1132       eval ac_val=$`echo $ac_var`
1133       echo "$ac_var='"'"'$ac_val'"'"'"
1134     done | sort
1135     echo
1136
1137     if test -n "$ac_subst_files"; then
1138       cat <<\_ASBOX
1139 ## ------------- ##
1140 ## Output files. ##
1141 ## ------------- ##
1142 _ASBOX
1143       echo
1144       for ac_var in $ac_subst_files
1145       do
1146         eval ac_val=$`echo $ac_var`
1147         echo "$ac_var='"'"'$ac_val'"'"'"
1148       done | sort
1149       echo
1150     fi
1151
1152     if test -s confdefs.h; then
1153       cat <<\_ASBOX
1154 ## ----------- ##
1155 ## confdefs.h. ##
1156 ## ----------- ##
1157 _ASBOX
1158       echo
1159       sed "/^$/d" confdefs.h | sort
1160       echo
1161     fi
1162     test "$ac_signal" != 0 &&
1163       echo "$as_me: caught signal $ac_signal"
1164     echo "$as_me: exit $exit_status"
1165   } >&5
1166   rm -f core *.core &&
1167   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1168     exit $exit_status
1169      ' 0
1170 for ac_signal in 1 2 13 15; do
1171   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1172 done
1173 ac_signal=0
1174
1175 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1176 rm -rf conftest* confdefs.h
1177 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1178 echo >confdefs.h
1179
1180 # Predefined preprocessor variables.
1181
1182 cat >>confdefs.h <<_ACEOF
1183 #define PACKAGE_NAME "$PACKAGE_NAME"
1184 _ACEOF
1185
1186
1187 cat >>confdefs.h <<_ACEOF
1188 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1189 _ACEOF
1190
1191
1192 cat >>confdefs.h <<_ACEOF
1193 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1194 _ACEOF
1195
1196
1197 cat >>confdefs.h <<_ACEOF
1198 #define PACKAGE_STRING "$PACKAGE_STRING"
1199 _ACEOF
1200
1201
1202 cat >>confdefs.h <<_ACEOF
1203 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1204 _ACEOF
1205
1206
1207 # Let the site file select an alternate cache file if it wants to.
1208 # Prefer explicitly selected file to automatically selected ones.
1209 if test -z "$CONFIG_SITE"; then
1210   if test "x$prefix" != xNONE; then
1211     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1212   else
1213     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1214   fi
1215 fi
1216 for ac_site_file in $CONFIG_SITE; do
1217   if test -r "$ac_site_file"; then
1218     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1219 echo "$as_me: loading site script $ac_site_file" >&6;}
1220     sed 's/^/| /' "$ac_site_file" >&5
1221     . "$ac_site_file"
1222   fi
1223 done
1224
1225 if test -r "$cache_file"; then
1226   # Some versions of bash will fail to source /dev/null (special
1227   # files actually), so we avoid doing that.
1228   if test -f "$cache_file"; then
1229     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1230 echo "$as_me: loading cache $cache_file" >&6;}
1231     case $cache_file in
1232       [\\/]* | ?:[\\/]* ) . $cache_file;;
1233       *)                      . ./$cache_file;;
1234     esac
1235   fi
1236 else
1237   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1238 echo "$as_me: creating cache $cache_file" >&6;}
1239   >$cache_file
1240 fi
1241
1242 # Check that the precious variables saved in the cache have kept the same
1243 # value.
1244 ac_cache_corrupted=false
1245 for ac_var in `(set) 2>&1 |
1246                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1247   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1248   eval ac_new_set=\$ac_env_${ac_var}_set
1249   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1250   eval ac_new_val="\$ac_env_${ac_var}_value"
1251   case $ac_old_set,$ac_new_set in
1252     set,)
1253       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1254 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1255       ac_cache_corrupted=: ;;
1256     ,set)
1257       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1258 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1259       ac_cache_corrupted=: ;;
1260     ,);;
1261     *)
1262       if test "x$ac_old_val" != "x$ac_new_val"; then
1263         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1264 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1265         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1266 echo "$as_me:   former value:  $ac_old_val" >&2;}
1267         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1268 echo "$as_me:   current value: $ac_new_val" >&2;}
1269         ac_cache_corrupted=:
1270       fi;;
1271   esac
1272   # Pass precious variables to config.status.
1273   if test "$ac_new_set" = set; then
1274     case $ac_new_val in
1275     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1276       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1277     *) ac_arg=$ac_var=$ac_new_val ;;
1278     esac
1279     case " $ac_configure_args " in
1280       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1281       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1282     esac
1283   fi
1284 done
1285 if $ac_cache_corrupted; then
1286   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1287 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1288   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1289 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1290    { (exit 1); exit 1; }; }
1291 fi
1292
1293 ac_ext=c
1294 ac_cpp='$CPP $CPPFLAGS'
1295 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1296 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1297 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318           ac_config_headers="$ac_config_headers _pam_aconf.h"
1319
1320
1321
1322 LIBPAM_VERSION_MAJOR=0
1323 LIBPAM_VERSION_MINOR=79
1324
1325
1326
1327 cat >>confdefs.h <<\_ACEOF
1328 #define LIBPAM_VERSION_MAJOR 1
1329 _ACEOF
1330
1331 cat >>confdefs.h <<\_ACEOF
1332 #define LIBPAM_VERSION_MINOR 1
1333 _ACEOF
1334
1335
1336
1337
1338
1339 LOCALSRCDIR=`/bin/pwd`         ;
1340 LOCALOBJDIR=`/bin/pwd`         ;
1341 OS=`uname|sed -e 'y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/'`
1342
1343
1344
1345 CONF_CFLAGS=                    ;
1346 MKDIR="mkdir -p"                ;
1347
1348 SHLIBMODE=755                   ;
1349 MANMODE=644                     ;
1350
1351 USESONAME=yes                   ;
1352 SOSWITCH="-Wl,-soname -Wl,"     ;
1353 NEEDSONAME=yes                  ;
1354 LDCONFIG=/sbin/ldconfig         ;
1355
1356 ac_ext=c
1357 ac_cpp='$CPP $CPPFLAGS'
1358 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1359 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1360 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1361 if test -n "$ac_tool_prefix"; then
1362   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1363 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1364 echo "$as_me:$LINENO: checking for $ac_word" >&5
1365 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1366 if test "${ac_cv_prog_CC+set}" = set; then
1367   echo $ECHO_N "(cached) $ECHO_C" >&6
1368 else
1369   if test -n "$CC"; then
1370   ac_cv_prog_CC="$CC" # Let the user override the test.
1371 else
1372 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1373 for as_dir in $PATH
1374 do
1375   IFS=$as_save_IFS
1376   test -z "$as_dir" && as_dir=.
1377   for ac_exec_ext in '' $ac_executable_extensions; do
1378   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1379     ac_cv_prog_CC="${ac_tool_prefix}gcc"
1380     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1381     break 2
1382   fi
1383 done
1384 done
1385
1386 fi
1387 fi
1388 CC=$ac_cv_prog_CC
1389 if test -n "$CC"; then
1390   echo "$as_me:$LINENO: result: $CC" >&5
1391 echo "${ECHO_T}$CC" >&6
1392 else
1393   echo "$as_me:$LINENO: result: no" >&5
1394 echo "${ECHO_T}no" >&6
1395 fi
1396
1397 fi
1398 if test -z "$ac_cv_prog_CC"; then
1399   ac_ct_CC=$CC
1400   # Extract the first word of "gcc", so it can be a program name with args.
1401 set dummy gcc; ac_word=$2
1402 echo "$as_me:$LINENO: checking for $ac_word" >&5
1403 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1404 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1405   echo $ECHO_N "(cached) $ECHO_C" >&6
1406 else
1407   if test -n "$ac_ct_CC"; then
1408   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1409 else
1410 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1411 for as_dir in $PATH
1412 do
1413   IFS=$as_save_IFS
1414   test -z "$as_dir" && as_dir=.
1415   for ac_exec_ext in '' $ac_executable_extensions; do
1416   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1417     ac_cv_prog_ac_ct_CC="gcc"
1418     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1419     break 2
1420   fi
1421 done
1422 done
1423
1424 fi
1425 fi
1426 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1427 if test -n "$ac_ct_CC"; then
1428   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1429 echo "${ECHO_T}$ac_ct_CC" >&6
1430 else
1431   echo "$as_me:$LINENO: result: no" >&5
1432 echo "${ECHO_T}no" >&6
1433 fi
1434
1435   CC=$ac_ct_CC
1436 else
1437   CC="$ac_cv_prog_CC"
1438 fi
1439
1440 if test -z "$CC"; then
1441   if test -n "$ac_tool_prefix"; then
1442   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1443 set dummy ${ac_tool_prefix}cc; ac_word=$2
1444 echo "$as_me:$LINENO: checking for $ac_word" >&5
1445 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1446 if test "${ac_cv_prog_CC+set}" = set; then
1447   echo $ECHO_N "(cached) $ECHO_C" >&6
1448 else
1449   if test -n "$CC"; then
1450   ac_cv_prog_CC="$CC" # Let the user override the test.
1451 else
1452 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1453 for as_dir in $PATH
1454 do
1455   IFS=$as_save_IFS
1456   test -z "$as_dir" && as_dir=.
1457   for ac_exec_ext in '' $ac_executable_extensions; do
1458   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1459     ac_cv_prog_CC="${ac_tool_prefix}cc"
1460     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1461     break 2
1462   fi
1463 done
1464 done
1465
1466 fi
1467 fi
1468 CC=$ac_cv_prog_CC
1469 if test -n "$CC"; then
1470   echo "$as_me:$LINENO: result: $CC" >&5
1471 echo "${ECHO_T}$CC" >&6
1472 else
1473   echo "$as_me:$LINENO: result: no" >&5
1474 echo "${ECHO_T}no" >&6
1475 fi
1476
1477 fi
1478 if test -z "$ac_cv_prog_CC"; then
1479   ac_ct_CC=$CC
1480   # Extract the first word of "cc", so it can be a program name with args.
1481 set dummy cc; ac_word=$2
1482 echo "$as_me:$LINENO: checking for $ac_word" >&5
1483 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1484 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1485   echo $ECHO_N "(cached) $ECHO_C" >&6
1486 else
1487   if test -n "$ac_ct_CC"; then
1488   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1489 else
1490 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1491 for as_dir in $PATH
1492 do
1493   IFS=$as_save_IFS
1494   test -z "$as_dir" && as_dir=.
1495   for ac_exec_ext in '' $ac_executable_extensions; do
1496   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1497     ac_cv_prog_ac_ct_CC="cc"
1498     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1499     break 2
1500   fi
1501 done
1502 done
1503
1504 fi
1505 fi
1506 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1507 if test -n "$ac_ct_CC"; then
1508   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1509 echo "${ECHO_T}$ac_ct_CC" >&6
1510 else
1511   echo "$as_me:$LINENO: result: no" >&5
1512 echo "${ECHO_T}no" >&6
1513 fi
1514
1515   CC=$ac_ct_CC
1516 else
1517   CC="$ac_cv_prog_CC"
1518 fi
1519
1520 fi
1521 if test -z "$CC"; then
1522   # Extract the first word of "cc", so it can be a program name with args.
1523 set dummy cc; ac_word=$2
1524 echo "$as_me:$LINENO: checking for $ac_word" >&5
1525 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1526 if test "${ac_cv_prog_CC+set}" = set; then
1527   echo $ECHO_N "(cached) $ECHO_C" >&6
1528 else
1529   if test -n "$CC"; then
1530   ac_cv_prog_CC="$CC" # Let the user override the test.
1531 else
1532   ac_prog_rejected=no
1533 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1534 for as_dir in $PATH
1535 do
1536   IFS=$as_save_IFS
1537   test -z "$as_dir" && as_dir=.
1538   for ac_exec_ext in '' $ac_executable_extensions; do
1539   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1540     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1541        ac_prog_rejected=yes
1542        continue
1543      fi
1544     ac_cv_prog_CC="cc"
1545     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1546     break 2
1547   fi
1548 done
1549 done
1550
1551 if test $ac_prog_rejected = yes; then
1552   # We found a bogon in the path, so make sure we never use it.
1553   set dummy $ac_cv_prog_CC
1554   shift
1555   if test $# != 0; then
1556     # We chose a different compiler from the bogus one.
1557     # However, it has the same basename, so the bogon will be chosen
1558     # first if we set CC to just the basename; use the full file name.
1559     shift
1560     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1561   fi
1562 fi
1563 fi
1564 fi
1565 CC=$ac_cv_prog_CC
1566 if test -n "$CC"; then
1567   echo "$as_me:$LINENO: result: $CC" >&5
1568 echo "${ECHO_T}$CC" >&6
1569 else
1570   echo "$as_me:$LINENO: result: no" >&5
1571 echo "${ECHO_T}no" >&6
1572 fi
1573
1574 fi
1575 if test -z "$CC"; then
1576   if test -n "$ac_tool_prefix"; then
1577   for ac_prog in cl
1578   do
1579     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1580 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1581 echo "$as_me:$LINENO: checking for $ac_word" >&5
1582 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1583 if test "${ac_cv_prog_CC+set}" = set; then
1584   echo $ECHO_N "(cached) $ECHO_C" >&6
1585 else
1586   if test -n "$CC"; then
1587   ac_cv_prog_CC="$CC" # Let the user override the test.
1588 else
1589 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1590 for as_dir in $PATH
1591 do
1592   IFS=$as_save_IFS
1593   test -z "$as_dir" && as_dir=.
1594   for ac_exec_ext in '' $ac_executable_extensions; do
1595   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1596     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1597     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1598     break 2
1599   fi
1600 done
1601 done
1602
1603 fi
1604 fi
1605 CC=$ac_cv_prog_CC
1606 if test -n "$CC"; then
1607   echo "$as_me:$LINENO: result: $CC" >&5
1608 echo "${ECHO_T}$CC" >&6
1609 else
1610   echo "$as_me:$LINENO: result: no" >&5
1611 echo "${ECHO_T}no" >&6
1612 fi
1613
1614     test -n "$CC" && break
1615   done
1616 fi
1617 if test -z "$CC"; then
1618   ac_ct_CC=$CC
1619   for ac_prog in cl
1620 do
1621   # Extract the first word of "$ac_prog", so it can be a program name with args.
1622 set dummy $ac_prog; ac_word=$2
1623 echo "$as_me:$LINENO: checking for $ac_word" >&5
1624 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1625 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1626   echo $ECHO_N "(cached) $ECHO_C" >&6
1627 else
1628   if test -n "$ac_ct_CC"; then
1629   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1630 else
1631 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1632 for as_dir in $PATH
1633 do
1634   IFS=$as_save_IFS
1635   test -z "$as_dir" && as_dir=.
1636   for ac_exec_ext in '' $ac_executable_extensions; do
1637   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1638     ac_cv_prog_ac_ct_CC="$ac_prog"
1639     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1640     break 2
1641   fi
1642 done
1643 done
1644
1645 fi
1646 fi
1647 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1648 if test -n "$ac_ct_CC"; then
1649   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1650 echo "${ECHO_T}$ac_ct_CC" >&6
1651 else
1652   echo "$as_me:$LINENO: result: no" >&5
1653 echo "${ECHO_T}no" >&6
1654 fi
1655
1656   test -n "$ac_ct_CC" && break
1657 done
1658
1659   CC=$ac_ct_CC
1660 fi
1661
1662 fi
1663
1664
1665 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1666 See \`config.log' for more details." >&5
1667 echo "$as_me: error: no acceptable C compiler found in \$PATH
1668 See \`config.log' for more details." >&2;}
1669    { (exit 1); exit 1; }; }
1670
1671 # Provide some information about the compiler.
1672 echo "$as_me:$LINENO:" \
1673      "checking for C compiler version" >&5
1674 ac_compiler=`set X $ac_compile; echo $2`
1675 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1676   (eval $ac_compiler --version </dev/null >&5) 2>&5
1677   ac_status=$?
1678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1679   (exit $ac_status); }
1680 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1681   (eval $ac_compiler -v </dev/null >&5) 2>&5
1682   ac_status=$?
1683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1684   (exit $ac_status); }
1685 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1686   (eval $ac_compiler -V </dev/null >&5) 2>&5
1687   ac_status=$?
1688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1689   (exit $ac_status); }
1690
1691 cat >conftest.$ac_ext <<_ACEOF
1692 /* confdefs.h.  */
1693 _ACEOF
1694 cat confdefs.h >>conftest.$ac_ext
1695 cat >>conftest.$ac_ext <<_ACEOF
1696 /* end confdefs.h.  */
1697
1698 int
1699 main ()
1700 {
1701
1702   ;
1703   return 0;
1704 }
1705 _ACEOF
1706 ac_clean_files_save=$ac_clean_files
1707 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1708 # Try to create an executable without -o first, disregard a.out.
1709 # It will help us diagnose broken compilers, and finding out an intuition
1710 # of exeext.
1711 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1712 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1713 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1714 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1715   (eval $ac_link_default) 2>&5
1716   ac_status=$?
1717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1718   (exit $ac_status); }; then
1719   # Find the output, starting from the most likely.  This scheme is
1720 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1721 # resort.
1722
1723 # Be careful to initialize this variable, since it used to be cached.
1724 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1725 ac_cv_exeext=
1726 # b.out is created by i960 compilers.
1727 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1728 do
1729   test -f "$ac_file" || continue
1730   case $ac_file in
1731     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1732         ;;
1733     conftest.$ac_ext )
1734         # This is the source file.
1735         ;;
1736     [ab].out )
1737         # We found the default executable, but exeext='' is most
1738         # certainly right.
1739         break;;
1740     *.* )
1741         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1742         # FIXME: I believe we export ac_cv_exeext for Libtool,
1743         # but it would be cool to find out if it's true.  Does anybody
1744         # maintain Libtool? --akim.
1745         export ac_cv_exeext
1746         break;;
1747     * )
1748         break;;
1749   esac
1750 done
1751 else
1752   echo "$as_me: failed program was:" >&5
1753 sed 's/^/| /' conftest.$ac_ext >&5
1754
1755 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1756 See \`config.log' for more details." >&5
1757 echo "$as_me: error: C compiler cannot create executables
1758 See \`config.log' for more details." >&2;}
1759    { (exit 77); exit 77; }; }
1760 fi
1761
1762 ac_exeext=$ac_cv_exeext
1763 echo "$as_me:$LINENO: result: $ac_file" >&5
1764 echo "${ECHO_T}$ac_file" >&6
1765
1766 # Check the compiler produces executables we can run.  If not, either
1767 # the compiler is broken, or we cross compile.
1768 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1769 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1770 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1771 # If not cross compiling, check that we can run a simple program.
1772 if test "$cross_compiling" != yes; then
1773   if { ac_try='./$ac_file'
1774   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1775   (eval $ac_try) 2>&5
1776   ac_status=$?
1777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1778   (exit $ac_status); }; }; then
1779     cross_compiling=no
1780   else
1781     if test "$cross_compiling" = maybe; then
1782         cross_compiling=yes
1783     else
1784         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1785 If you meant to cross compile, use \`--host'.
1786 See \`config.log' for more details." >&5
1787 echo "$as_me: error: cannot run C compiled programs.
1788 If you meant to cross compile, use \`--host'.
1789 See \`config.log' for more details." >&2;}
1790    { (exit 1); exit 1; }; }
1791     fi
1792   fi
1793 fi
1794 echo "$as_me:$LINENO: result: yes" >&5
1795 echo "${ECHO_T}yes" >&6
1796
1797 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1798 ac_clean_files=$ac_clean_files_save
1799 # Check the compiler produces executables we can run.  If not, either
1800 # the compiler is broken, or we cross compile.
1801 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1802 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1803 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1804 echo "${ECHO_T}$cross_compiling" >&6
1805
1806 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1807 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1808 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1809   (eval $ac_link) 2>&5
1810   ac_status=$?
1811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1812   (exit $ac_status); }; then
1813   # If both `conftest.exe' and `conftest' are `present' (well, observable)
1814 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
1815 # work properly (i.e., refer to `conftest.exe'), while it won't with
1816 # `rm'.
1817 for ac_file in conftest.exe conftest conftest.*; do
1818   test -f "$ac_file" || continue
1819   case $ac_file in
1820     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1821     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1822           export ac_cv_exeext
1823           break;;
1824     * ) break;;
1825   esac
1826 done
1827 else
1828   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1829 See \`config.log' for more details." >&5
1830 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1831 See \`config.log' for more details." >&2;}
1832    { (exit 1); exit 1; }; }
1833 fi
1834
1835 rm -f conftest$ac_cv_exeext
1836 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1837 echo "${ECHO_T}$ac_cv_exeext" >&6
1838
1839 rm -f conftest.$ac_ext
1840 EXEEXT=$ac_cv_exeext
1841 ac_exeext=$EXEEXT
1842 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1843 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1844 if test "${ac_cv_objext+set}" = set; then
1845   echo $ECHO_N "(cached) $ECHO_C" >&6
1846 else
1847   cat >conftest.$ac_ext <<_ACEOF
1848 /* confdefs.h.  */
1849 _ACEOF
1850 cat confdefs.h >>conftest.$ac_ext
1851 cat >>conftest.$ac_ext <<_ACEOF
1852 /* end confdefs.h.  */
1853
1854 int
1855 main ()
1856 {
1857
1858   ;
1859   return 0;
1860 }
1861 _ACEOF
1862 rm -f conftest.o conftest.obj
1863 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1864   (eval $ac_compile) 2>&5
1865   ac_status=$?
1866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1867   (exit $ac_status); }; then
1868   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1869   case $ac_file in
1870     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1871     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1872        break;;
1873   esac
1874 done
1875 else
1876   echo "$as_me: failed program was:" >&5
1877 sed 's/^/| /' conftest.$ac_ext >&5
1878
1879 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1880 See \`config.log' for more details." >&5
1881 echo "$as_me: error: cannot compute suffix of object files: cannot compile
1882 See \`config.log' for more details." >&2;}
1883    { (exit 1); exit 1; }; }
1884 fi
1885
1886 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1887 fi
1888 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1889 echo "${ECHO_T}$ac_cv_objext" >&6
1890 OBJEXT=$ac_cv_objext
1891 ac_objext=$OBJEXT
1892 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1893 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1894 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1895   echo $ECHO_N "(cached) $ECHO_C" >&6
1896 else
1897   cat >conftest.$ac_ext <<_ACEOF
1898 /* confdefs.h.  */
1899 _ACEOF
1900 cat confdefs.h >>conftest.$ac_ext
1901 cat >>conftest.$ac_ext <<_ACEOF
1902 /* end confdefs.h.  */
1903
1904 int
1905 main ()
1906 {
1907 #ifndef __GNUC__
1908        choke me
1909 #endif
1910
1911   ;
1912   return 0;
1913 }
1914 _ACEOF
1915 rm -f conftest.$ac_objext
1916 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1917   (eval $ac_compile) 2>conftest.er1
1918   ac_status=$?
1919   grep -v '^ *+' conftest.er1 >conftest.err
1920   rm -f conftest.er1
1921   cat conftest.err >&5
1922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1923   (exit $ac_status); } &&
1924          { ac_try='test -z "$ac_c_werror_flag"
1925                          || test ! -s conftest.err'
1926   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1927   (eval $ac_try) 2>&5
1928   ac_status=$?
1929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1930   (exit $ac_status); }; } &&
1931          { ac_try='test -s conftest.$ac_objext'
1932   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1933   (eval $ac_try) 2>&5
1934   ac_status=$?
1935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1936   (exit $ac_status); }; }; then
1937   ac_compiler_gnu=yes
1938 else
1939   echo "$as_me: failed program was:" >&5
1940 sed 's/^/| /' conftest.$ac_ext >&5
1941
1942 ac_compiler_gnu=no
1943 fi
1944 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1945 ac_cv_c_compiler_gnu=$ac_compiler_gnu
1946
1947 fi
1948 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
1949 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1950 GCC=`test $ac_compiler_gnu = yes && echo yes`
1951 ac_test_CFLAGS=${CFLAGS+set}
1952 ac_save_CFLAGS=$CFLAGS
1953 CFLAGS="-g"
1954 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
1955 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1956 if test "${ac_cv_prog_cc_g+set}" = set; then
1957   echo $ECHO_N "(cached) $ECHO_C" >&6
1958 else
1959   cat >conftest.$ac_ext <<_ACEOF
1960 /* confdefs.h.  */
1961 _ACEOF
1962 cat confdefs.h >>conftest.$ac_ext
1963 cat >>conftest.$ac_ext <<_ACEOF
1964 /* end confdefs.h.  */
1965
1966 int
1967 main ()
1968 {
1969
1970   ;
1971   return 0;
1972 }
1973 _ACEOF
1974 rm -f conftest.$ac_objext
1975 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1976   (eval $ac_compile) 2>conftest.er1
1977   ac_status=$?
1978   grep -v '^ *+' conftest.er1 >conftest.err
1979   rm -f conftest.er1
1980   cat conftest.err >&5
1981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1982   (exit $ac_status); } &&
1983          { ac_try='test -z "$ac_c_werror_flag"
1984                          || test ! -s conftest.err'
1985   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1986   (eval $ac_try) 2>&5
1987   ac_status=$?
1988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1989   (exit $ac_status); }; } &&
1990          { ac_try='test -s conftest.$ac_objext'
1991   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1992   (eval $ac_try) 2>&5
1993   ac_status=$?
1994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1995   (exit $ac_status); }; }; then
1996   ac_cv_prog_cc_g=yes
1997 else
1998   echo "$as_me: failed program was:" >&5
1999 sed 's/^/| /' conftest.$ac_ext >&5
2000
2001 ac_cv_prog_cc_g=no
2002 fi
2003 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2004 fi
2005 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2006 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2007 if test "$ac_test_CFLAGS" = set; then
2008   CFLAGS=$ac_save_CFLAGS
2009 elif test $ac_cv_prog_cc_g = yes; then
2010   if test "$GCC" = yes; then
2011     CFLAGS="-g -O2"
2012   else
2013     CFLAGS="-g"
2014   fi
2015 else
2016   if test "$GCC" = yes; then
2017     CFLAGS="-O2"
2018   else
2019     CFLAGS=
2020   fi
2021 fi
2022 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2023 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2024 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2025   echo $ECHO_N "(cached) $ECHO_C" >&6
2026 else
2027   ac_cv_prog_cc_stdc=no
2028 ac_save_CC=$CC
2029 cat >conftest.$ac_ext <<_ACEOF
2030 /* confdefs.h.  */
2031 _ACEOF
2032 cat confdefs.h >>conftest.$ac_ext
2033 cat >>conftest.$ac_ext <<_ACEOF
2034 /* end confdefs.h.  */
2035 #include <stdarg.h>
2036 #include <stdio.h>
2037 #include <sys/types.h>
2038 #include <sys/stat.h>
2039 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2040 struct buf { int x; };
2041 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2042 static char *e (p, i)
2043      char **p;
2044      int i;
2045 {
2046   return p[i];
2047 }
2048 static char *f (char * (*g) (char **, int), char **p, ...)
2049 {
2050   char *s;
2051   va_list v;
2052   va_start (v,p);
2053   s = g (p, va_arg (v,int));
2054   va_end (v);
2055   return s;
2056 }
2057
2058 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2059    function prototypes and stuff, but not '\xHH' hex character constants.
2060    These don't provoke an error unfortunately, instead are silently treated
2061    as 'x'.  The following induces an error, until -std1 is added to get
2062    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2063    array size at least.  It's necessary to write '\x00'==0 to get something
2064    that's true only with -std1.  */
2065 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2066
2067 int test (int i, double x);
2068 struct s1 {int (*f) (int a);};
2069 struct s2 {int (*f) (double a);};
2070 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2071 int argc;
2072 char **argv;
2073 int
2074 main ()
2075 {
2076 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2077   ;
2078   return 0;
2079 }
2080 _ACEOF
2081 # Don't try gcc -ansi; that turns off useful extensions and
2082 # breaks some systems' header files.
2083 # AIX                   -qlanglvl=ansi
2084 # Ultrix and OSF/1      -std1
2085 # HP-UX 10.20 and later -Ae
2086 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2087 # SVR4                  -Xc -D__EXTENSIONS__
2088 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2089 do
2090   CC="$ac_save_CC $ac_arg"
2091   rm -f conftest.$ac_objext
2092 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2093   (eval $ac_compile) 2>conftest.er1
2094   ac_status=$?
2095   grep -v '^ *+' conftest.er1 >conftest.err
2096   rm -f conftest.er1
2097   cat conftest.err >&5
2098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2099   (exit $ac_status); } &&
2100          { ac_try='test -z "$ac_c_werror_flag"
2101                          || test ! -s conftest.err'
2102   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2103   (eval $ac_try) 2>&5
2104   ac_status=$?
2105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2106   (exit $ac_status); }; } &&
2107          { ac_try='test -s conftest.$ac_objext'
2108   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2109   (eval $ac_try) 2>&5
2110   ac_status=$?
2111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2112   (exit $ac_status); }; }; then
2113   ac_cv_prog_cc_stdc=$ac_arg
2114 break
2115 else
2116   echo "$as_me: failed program was:" >&5
2117 sed 's/^/| /' conftest.$ac_ext >&5
2118
2119 fi
2120 rm -f conftest.err conftest.$ac_objext
2121 done
2122 rm -f conftest.$ac_ext conftest.$ac_objext
2123 CC=$ac_save_CC
2124
2125 fi
2126
2127 case "x$ac_cv_prog_cc_stdc" in
2128   x|xno)
2129     echo "$as_me:$LINENO: result: none needed" >&5
2130 echo "${ECHO_T}none needed" >&6 ;;
2131   *)
2132     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2133 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2134     CC="$CC $ac_cv_prog_cc_stdc" ;;
2135 esac
2136
2137 # Some people use a C++ compiler to compile C.  Since we use `exit',
2138 # in C++ we need to declare it.  In case someone uses the same compiler
2139 # for both compiling C and C++ we need to have the C++ compiler decide
2140 # the declaration of exit, since it's the most demanding environment.
2141 cat >conftest.$ac_ext <<_ACEOF
2142 #ifndef __cplusplus
2143   choke me
2144 #endif
2145 _ACEOF
2146 rm -f conftest.$ac_objext
2147 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2148   (eval $ac_compile) 2>conftest.er1
2149   ac_status=$?
2150   grep -v '^ *+' conftest.er1 >conftest.err
2151   rm -f conftest.er1
2152   cat conftest.err >&5
2153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2154   (exit $ac_status); } &&
2155          { ac_try='test -z "$ac_c_werror_flag"
2156                          || test ! -s conftest.err'
2157   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2158   (eval $ac_try) 2>&5
2159   ac_status=$?
2160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2161   (exit $ac_status); }; } &&
2162          { ac_try='test -s conftest.$ac_objext'
2163   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2164   (eval $ac_try) 2>&5
2165   ac_status=$?
2166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2167   (exit $ac_status); }; }; then
2168   for ac_declaration in \
2169    '' \
2170    'extern "C" void std::exit (int) throw (); using std::exit;' \
2171    'extern "C" void std::exit (int); using std::exit;' \
2172    'extern "C" void exit (int) throw ();' \
2173    'extern "C" void exit (int);' \
2174    'void exit (int);'
2175 do
2176   cat >conftest.$ac_ext <<_ACEOF
2177 /* confdefs.h.  */
2178 _ACEOF
2179 cat confdefs.h >>conftest.$ac_ext
2180 cat >>conftest.$ac_ext <<_ACEOF
2181 /* end confdefs.h.  */
2182 $ac_declaration
2183 #include <stdlib.h>
2184 int
2185 main ()
2186 {
2187 exit (42);
2188   ;
2189   return 0;
2190 }
2191 _ACEOF
2192 rm -f conftest.$ac_objext
2193 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2194   (eval $ac_compile) 2>conftest.er1
2195   ac_status=$?
2196   grep -v '^ *+' conftest.er1 >conftest.err
2197   rm -f conftest.er1
2198   cat conftest.err >&5
2199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2200   (exit $ac_status); } &&
2201          { ac_try='test -z "$ac_c_werror_flag"
2202                          || test ! -s conftest.err'
2203   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2204   (eval $ac_try) 2>&5
2205   ac_status=$?
2206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2207   (exit $ac_status); }; } &&
2208          { ac_try='test -s conftest.$ac_objext'
2209   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2210   (eval $ac_try) 2>&5
2211   ac_status=$?
2212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2213   (exit $ac_status); }; }; then
2214   :
2215 else
2216   echo "$as_me: failed program was:" >&5
2217 sed 's/^/| /' conftest.$ac_ext >&5
2218
2219 continue
2220 fi
2221 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2222   cat >conftest.$ac_ext <<_ACEOF
2223 /* confdefs.h.  */
2224 _ACEOF
2225 cat confdefs.h >>conftest.$ac_ext
2226 cat >>conftest.$ac_ext <<_ACEOF
2227 /* end confdefs.h.  */
2228 $ac_declaration
2229 int
2230 main ()
2231 {
2232 exit (42);
2233   ;
2234   return 0;
2235 }
2236 _ACEOF
2237 rm -f conftest.$ac_objext
2238 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2239   (eval $ac_compile) 2>conftest.er1
2240   ac_status=$?
2241   grep -v '^ *+' conftest.er1 >conftest.err
2242   rm -f conftest.er1
2243   cat conftest.err >&5
2244   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2245   (exit $ac_status); } &&
2246          { ac_try='test -z "$ac_c_werror_flag"
2247                          || test ! -s conftest.err'
2248   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2249   (eval $ac_try) 2>&5
2250   ac_status=$?
2251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2252   (exit $ac_status); }; } &&
2253          { ac_try='test -s conftest.$ac_objext'
2254   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2255   (eval $ac_try) 2>&5
2256   ac_status=$?
2257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2258   (exit $ac_status); }; }; then
2259   break
2260 else
2261   echo "$as_me: failed program was:" >&5
2262 sed 's/^/| /' conftest.$ac_ext >&5
2263
2264 fi
2265 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2266 done
2267 rm -f conftest*
2268 if test -n "$ac_declaration"; then
2269   echo '#ifdef __cplusplus' >>confdefs.h
2270   echo $ac_declaration      >>confdefs.h
2271   echo '#endif'             >>confdefs.h
2272 fi
2273
2274 else
2275   echo "$as_me: failed program was:" >&5
2276 sed 's/^/| /' conftest.$ac_ext >&5
2277
2278 fi
2279 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2280 ac_ext=c
2281 ac_cpp='$CPP $CPPFLAGS'
2282 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2283 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2284 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2285
2286 for ac_prog in 'bison -y' byacc
2287 do
2288   # Extract the first word of "$ac_prog", so it can be a program name with args.
2289 set dummy $ac_prog; ac_word=$2
2290 echo "$as_me:$LINENO: checking for $ac_word" >&5
2291 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2292 if test "${ac_cv_prog_YACC+set}" = set; then
2293   echo $ECHO_N "(cached) $ECHO_C" >&6
2294 else
2295   if test -n "$YACC"; then
2296   ac_cv_prog_YACC="$YACC" # Let the user override the test.
2297 else
2298 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2299 for as_dir in $PATH
2300 do
2301   IFS=$as_save_IFS
2302   test -z "$as_dir" && as_dir=.
2303   for ac_exec_ext in '' $ac_executable_extensions; do
2304   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2305     ac_cv_prog_YACC="$ac_prog"
2306     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2307     break 2
2308   fi
2309 done
2310 done
2311
2312 fi
2313 fi
2314 YACC=$ac_cv_prog_YACC
2315 if test -n "$YACC"; then
2316   echo "$as_me:$LINENO: result: $YACC" >&5
2317 echo "${ECHO_T}$YACC" >&6
2318 else
2319   echo "$as_me:$LINENO: result: no" >&5
2320 echo "${ECHO_T}no" >&6
2321 fi
2322
2323   test -n "$YACC" && break
2324 done
2325 test -n "$YACC" || YACC="yacc"
2326
2327
2328 for ac_prog in flex lex
2329 do
2330   # Extract the first word of "$ac_prog", so it can be a program name with args.
2331 set dummy $ac_prog; ac_word=$2
2332 echo "$as_me:$LINENO: checking for $ac_word" >&5
2333 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2334 if test "${ac_cv_prog_LEX+set}" = set; then
2335   echo $ECHO_N "(cached) $ECHO_C" >&6
2336 else
2337   if test -n "$LEX"; then
2338   ac_cv_prog_LEX="$LEX" # Let the user override the test.
2339 else
2340 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2341 for as_dir in $PATH
2342 do
2343   IFS=$as_save_IFS
2344   test -z "$as_dir" && as_dir=.
2345   for ac_exec_ext in '' $ac_executable_extensions; do
2346   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2347     ac_cv_prog_LEX="$ac_prog"
2348     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2349     break 2
2350   fi
2351 done
2352 done
2353
2354 fi
2355 fi
2356 LEX=$ac_cv_prog_LEX
2357 if test -n "$LEX"; then
2358   echo "$as_me:$LINENO: result: $LEX" >&5
2359 echo "${ECHO_T}$LEX" >&6
2360 else
2361   echo "$as_me:$LINENO: result: no" >&5
2362 echo "${ECHO_T}no" >&6
2363 fi
2364
2365   test -n "$LEX" && break
2366 done
2367 test -n "$LEX" || LEX=":"
2368
2369 if test -z "$LEXLIB"
2370 then
2371   echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
2372 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
2373 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
2374   echo $ECHO_N "(cached) $ECHO_C" >&6
2375 else
2376   ac_check_lib_save_LIBS=$LIBS
2377 LIBS="-lfl  $LIBS"
2378 cat >conftest.$ac_ext <<_ACEOF
2379 /* confdefs.h.  */
2380 _ACEOF
2381 cat confdefs.h >>conftest.$ac_ext
2382 cat >>conftest.$ac_ext <<_ACEOF
2383 /* end confdefs.h.  */
2384
2385 /* Override any gcc2 internal prototype to avoid an error.  */
2386 #ifdef __cplusplus
2387 extern "C"
2388 #endif
2389 /* We use char because int might match the return type of a gcc2
2390    builtin and then its argument prototype would still apply.  */
2391 char yywrap ();
2392 int
2393 main ()
2394 {
2395 yywrap ();
2396   ;
2397   return 0;
2398 }
2399 _ACEOF
2400 rm -f conftest.$ac_objext conftest$ac_exeext
2401 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2402   (eval $ac_link) 2>conftest.er1
2403   ac_status=$?
2404   grep -v '^ *+' conftest.er1 >conftest.err
2405   rm -f conftest.er1
2406   cat conftest.err >&5
2407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2408   (exit $ac_status); } &&
2409          { ac_try='test -z "$ac_c_werror_flag"
2410                          || test ! -s conftest.err'
2411   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2412   (eval $ac_try) 2>&5
2413   ac_status=$?
2414   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2415   (exit $ac_status); }; } &&
2416          { ac_try='test -s conftest$ac_exeext'
2417   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2418   (eval $ac_try) 2>&5
2419   ac_status=$?
2420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2421   (exit $ac_status); }; }; then
2422   ac_cv_lib_fl_yywrap=yes
2423 else
2424   echo "$as_me: failed program was:" >&5
2425 sed 's/^/| /' conftest.$ac_ext >&5
2426
2427 ac_cv_lib_fl_yywrap=no
2428 fi
2429 rm -f conftest.err conftest.$ac_objext \
2430       conftest$ac_exeext conftest.$ac_ext
2431 LIBS=$ac_check_lib_save_LIBS
2432 fi
2433 echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
2434 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
2435 if test $ac_cv_lib_fl_yywrap = yes; then
2436   LEXLIB="-lfl"
2437 else
2438   echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
2439 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
2440 if test "${ac_cv_lib_l_yywrap+set}" = set; then
2441   echo $ECHO_N "(cached) $ECHO_C" >&6
2442 else
2443   ac_check_lib_save_LIBS=$LIBS
2444 LIBS="-ll  $LIBS"
2445 cat >conftest.$ac_ext <<_ACEOF
2446 /* confdefs.h.  */
2447 _ACEOF
2448 cat confdefs.h >>conftest.$ac_ext
2449 cat >>conftest.$ac_ext <<_ACEOF
2450 /* end confdefs.h.  */
2451
2452 /* Override any gcc2 internal prototype to avoid an error.  */
2453 #ifdef __cplusplus
2454 extern "C"
2455 #endif
2456 /* We use char because int might match the return type of a gcc2
2457    builtin and then its argument prototype would still apply.  */
2458 char yywrap ();
2459 int
2460 main ()
2461 {
2462 yywrap ();
2463   ;
2464   return 0;
2465 }
2466 _ACEOF
2467 rm -f conftest.$ac_objext conftest$ac_exeext
2468 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2469   (eval $ac_link) 2>conftest.er1
2470   ac_status=$?
2471   grep -v '^ *+' conftest.er1 >conftest.err
2472   rm -f conftest.er1
2473   cat conftest.err >&5
2474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2475   (exit $ac_status); } &&
2476          { ac_try='test -z "$ac_c_werror_flag"
2477                          || test ! -s conftest.err'
2478   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2479   (eval $ac_try) 2>&5
2480   ac_status=$?
2481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2482   (exit $ac_status); }; } &&
2483          { ac_try='test -s conftest$ac_exeext'
2484   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2485   (eval $ac_try) 2>&5
2486   ac_status=$?
2487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2488   (exit $ac_status); }; }; then
2489   ac_cv_lib_l_yywrap=yes
2490 else
2491   echo "$as_me: failed program was:" >&5
2492 sed 's/^/| /' conftest.$ac_ext >&5
2493
2494 ac_cv_lib_l_yywrap=no
2495 fi
2496 rm -f conftest.err conftest.$ac_objext \
2497       conftest$ac_exeext conftest.$ac_ext
2498 LIBS=$ac_check_lib_save_LIBS
2499 fi
2500 echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
2501 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
2502 if test $ac_cv_lib_l_yywrap = yes; then
2503   LEXLIB="-ll"
2504 fi
2505
2506 fi
2507
2508 fi
2509
2510 if test "x$LEX" != "x:"; then
2511   echo "$as_me:$LINENO: checking lex output file root" >&5
2512 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
2513 if test "${ac_cv_prog_lex_root+set}" = set; then
2514   echo $ECHO_N "(cached) $ECHO_C" >&6
2515 else
2516   # The minimal lex program is just a single line: %%.  But some broken lexes
2517 # (Solaris, I think it was) want two %% lines, so accommodate them.
2518 cat >conftest.l <<_ACEOF
2519 %%
2520 %%
2521 _ACEOF
2522 { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
2523   (eval $LEX conftest.l) 2>&5
2524   ac_status=$?
2525   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2526   (exit $ac_status); }
2527 if test -f lex.yy.c; then
2528   ac_cv_prog_lex_root=lex.yy
2529 elif test -f lexyy.c; then
2530   ac_cv_prog_lex_root=lexyy
2531 else
2532   { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
2533 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
2534    { (exit 1); exit 1; }; }
2535 fi
2536 fi
2537 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
2538 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
2539 rm -f conftest.l
2540 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
2541
2542 echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
2543 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
2544 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
2545   echo $ECHO_N "(cached) $ECHO_C" >&6
2546 else
2547   # POSIX says lex can declare yytext either as a pointer or an array; the
2548 # default is implementation-dependent. Figure out which it is, since
2549 # not all implementations provide the %pointer and %array declarations.
2550 ac_cv_prog_lex_yytext_pointer=no
2551 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
2552 ac_save_LIBS=$LIBS
2553 LIBS="$LIBS $LEXLIB"
2554 cat >conftest.$ac_ext <<_ACEOF
2555 `cat $LEX_OUTPUT_ROOT.c`
2556 _ACEOF
2557 rm -f conftest.$ac_objext conftest$ac_exeext
2558 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2559   (eval $ac_link) 2>conftest.er1
2560   ac_status=$?
2561   grep -v '^ *+' conftest.er1 >conftest.err
2562   rm -f conftest.er1
2563   cat conftest.err >&5
2564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2565   (exit $ac_status); } &&
2566          { ac_try='test -z "$ac_c_werror_flag"
2567                          || test ! -s conftest.err'
2568   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2569   (eval $ac_try) 2>&5
2570   ac_status=$?
2571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2572   (exit $ac_status); }; } &&
2573          { ac_try='test -s conftest$ac_exeext'
2574   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2575   (eval $ac_try) 2>&5
2576   ac_status=$?
2577   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2578   (exit $ac_status); }; }; then
2579   ac_cv_prog_lex_yytext_pointer=yes
2580 else
2581   echo "$as_me: failed program was:" >&5
2582 sed 's/^/| /' conftest.$ac_ext >&5
2583
2584 fi
2585 rm -f conftest.err conftest.$ac_objext \
2586       conftest$ac_exeext conftest.$ac_ext
2587 LIBS=$ac_save_LIBS
2588 rm -f "${LEX_OUTPUT_ROOT}.c"
2589
2590 fi
2591 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
2592 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
2593 if test $ac_cv_prog_lex_yytext_pointer = yes; then
2594
2595 cat >>confdefs.h <<\_ACEOF
2596 #define YYTEXT_POINTER 1
2597 _ACEOF
2598
2599 fi
2600
2601 fi
2602 ac_aux_dir=
2603 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
2604   if test -f $ac_dir/install-sh; then
2605     ac_aux_dir=$ac_dir
2606     ac_install_sh="$ac_aux_dir/install-sh -c"
2607     break
2608   elif test -f $ac_dir/install.sh; then
2609     ac_aux_dir=$ac_dir
2610     ac_install_sh="$ac_aux_dir/install.sh -c"
2611     break
2612   elif test -f $ac_dir/shtool; then
2613     ac_aux_dir=$ac_dir
2614     ac_install_sh="$ac_aux_dir/shtool install -c"
2615     break
2616   fi
2617 done
2618 if test -z "$ac_aux_dir"; then
2619   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
2620 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
2621    { (exit 1); exit 1; }; }
2622 fi
2623 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
2624 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
2625 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
2626
2627 # Find a good install program.  We prefer a C program (faster),
2628 # so one script is as good as another.  But avoid the broken or
2629 # incompatible versions:
2630 # SysV /etc/install, /usr/sbin/install
2631 # SunOS /usr/etc/install
2632 # IRIX /sbin/install
2633 # AIX /bin/install
2634 # AmigaOS /C/install, which installs bootblocks on floppy discs
2635 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2636 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2637 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2638 # OS/2's system install, which has a completely different semantic
2639 # ./install, which can be erroneously created by make from ./install.sh.
2640 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2641 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2642 if test -z "$INSTALL"; then
2643 if test "${ac_cv_path_install+set}" = set; then
2644   echo $ECHO_N "(cached) $ECHO_C" >&6
2645 else
2646   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2647 for as_dir in $PATH
2648 do
2649   IFS=$as_save_IFS
2650   test -z "$as_dir" && as_dir=.
2651   # Account for people who put trailing slashes in PATH elements.
2652 case $as_dir/ in
2653   ./ | .// | /cC/* | \
2654   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2655   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2656   /usr/ucb/* ) ;;
2657   *)
2658     # OSF1 and SCO ODT 3.0 have their own names for install.
2659     # Don't use installbsd from OSF since it installs stuff as root
2660     # by default.
2661     for ac_prog in ginstall scoinst install; do
2662       for ac_exec_ext in '' $ac_executable_extensions; do
2663         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2664           if test $ac_prog = install &&
2665             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2666             # AIX install.  It has an incompatible calling convention.
2667             :
2668           elif test $ac_prog = install &&
2669             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2670             # program-specific install script used by HP pwplus--don't use.
2671             :
2672           else
2673             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2674             break 3
2675           fi
2676         fi
2677       done
2678     done
2679     ;;
2680 esac
2681 done
2682
2683
2684 fi
2685   if test "${ac_cv_path_install+set}" = set; then
2686     INSTALL=$ac_cv_path_install
2687   else
2688     # As a last resort, use the slow shell script.  We don't cache a
2689     # path for INSTALL within a source directory, because that will
2690     # break other packages using the cache if that directory is
2691     # removed, or if the path is relative.
2692     INSTALL=$ac_install_sh
2693   fi
2694 fi
2695 echo "$as_me:$LINENO: result: $INSTALL" >&5
2696 echo "${ECHO_T}$INSTALL" >&6
2697
2698 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2699 # It thinks the first close brace ends the variable substitution.
2700 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2701
2702 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2703
2704 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2705
2706 echo "$as_me:$LINENO: checking whether ln -s works" >&5
2707 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
2708 LN_S=$as_ln_s
2709 if test "$LN_S" = "ln -s"; then
2710   echo "$as_me:$LINENO: result: yes" >&5
2711 echo "${ECHO_T}yes" >&6
2712 else
2713   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
2714 echo "${ECHO_T}no, using $LN_S" >&6
2715 fi
2716
2717 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2718 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
2719 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
2720 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
2721   echo $ECHO_N "(cached) $ECHO_C" >&6
2722 else
2723   cat >conftest.make <<\_ACEOF
2724 all:
2725         @echo 'ac_maketemp="$(MAKE)"'
2726 _ACEOF
2727 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2728 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
2729 if test -n "$ac_maketemp"; then
2730   eval ac_cv_prog_make_${ac_make}_set=yes
2731 else
2732   eval ac_cv_prog_make_${ac_make}_set=no
2733 fi
2734 rm -f conftest.make
2735 fi
2736 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
2737   echo "$as_me:$LINENO: result: yes" >&5
2738 echo "${ECHO_T}yes" >&6
2739   SET_MAKE=
2740 else
2741   echo "$as_me:$LINENO: result: no" >&5
2742 echo "${ECHO_T}no" >&6
2743   SET_MAKE="MAKE=${MAKE-make}"
2744 fi
2745
2746
2747
2748 # Check whether --enable-debug or --disable-debug was given.
2749 if test "${enable_debug+set}" = set; then
2750   enableval="$enable_debug"
2751   WITH_DEBUG=yes ; cat >>confdefs.h <<\_ACEOF
2752 #define DEBUG 1
2753 _ACEOF
2754
2755 else
2756   WITH_DEBUG=no
2757 fi;
2758
2759
2760 # Check whether --enable-memory-debug or --disable-memory-debug was given.
2761 if test "${enable_memory_debug+set}" = set; then
2762   enableval="$enable_memory_debug"
2763   WITH_MEMORY_DEBUG=yes ; cat >>confdefs.h <<\_ACEOF
2764 #define MEMORY_DEBUG 1
2765 _ACEOF
2766
2767 else
2768   WITH_MEMORY_DEBUG=no
2769 fi;
2770
2771
2772 # Check whether --enable-libdebug or --disable-libdebug was given.
2773 if test "${enable_libdebug+set}" = set; then
2774   enableval="$enable_libdebug"
2775   WITH_LIBDEBUG=yes ; cat >>confdefs.h <<\_ACEOF
2776 #define WITH_LIBDEBUG 1
2777 _ACEOF
2778
2779 else
2780   WITH_LIBDEBUG=no
2781 fi;
2782
2783
2784 # Check whether --enable-prelude or --disable-prelude was given.
2785 if test "${enable_prelude+set}" = set; then
2786   enableval="$enable_prelude"
2787   WITH_PRELUDE=yes ; cat >>confdefs.h <<\_ACEOF
2788 #define WITH_PRELUDE 1
2789 _ACEOF
2790
2791 else
2792   WITH_PRELUDE=no
2793 fi;
2794
2795
2796 # Check whether --enable-fakeroot or --disable-fakeroot was given.
2797 if test "${enable_fakeroot+set}" = set; then
2798   enableval="$enable_fakeroot"
2799   FAKEROOT=$enableval
2800 fi;
2801
2802
2803 # Check whether --enable-securedir or --disable-securedir was given.
2804 if test "${enable_securedir+set}" = set; then
2805   enableval="$enable_securedir"
2806   SECUREDIR=$enableval
2807 else
2808   SECUREDIR=$libdir/security
2809 fi;
2810
2811
2812 # Check whether --enable-isadir or --disable-isadir was given.
2813 if test "${enable_isadir+set}" = set; then
2814   enableval="$enable_isadir"
2815   ISA=$enableval
2816 else
2817   ISA=../../`basename $libdir`/security
2818 fi;
2819 unset mylibdirbase
2820
2821 cat >>confdefs.h <<_ACEOF
2822 #define _PAM_ISA "$ISA"
2823 _ACEOF
2824
2825 echo "$as_me:$LINENO: result: Defining \$ISA to \\"$ISA\\"." >&5
2826 echo "${ECHO_T}Defining \$ISA to \\"$ISA\\"." >&6
2827
2828 # Check whether --enable-sconfigdir or --disable-sconfigdir was given.
2829 if test "${enable_sconfigdir+set}" = set; then
2830   enableval="$enable_sconfigdir"
2831   SCONFIGDIR=$enableval
2832 else
2833   SCONFIGDIR=$sysconfdir/security
2834 fi;
2835
2836
2837 # Check whether --enable-suplementedir or --disable-suplementedir was given.
2838 if test "${enable_suplementedir+set}" = set; then
2839   enableval="$enable_suplementedir"
2840   SUPLEMENTED=$enableval
2841 else
2842   SUPLEMENTED=$sbindir
2843 fi;
2844
2845
2846 # Check whether --enable-includedir or --disable-includedir was given.
2847 if test "${enable_includedir+set}" = set; then
2848   enableval="$enable_includedir"
2849   INCLUDEDIR=$enableval
2850 else
2851   INCLUDEDIR=/usr/include
2852 fi;
2853
2854
2855 # Check whether --enable-docdir or --disable-docdir was given.
2856 if test "${enable_docdir+set}" = set; then
2857   enableval="$enable_docdir"
2858   DOCDIR=$enableval
2859 else
2860   DOCDIR=/usr/share/doc/pam
2861 fi;
2862
2863
2864 # Check whether --enable-mandir or --disable-mandir was given.
2865 if test "${enable_mandir+set}" = set; then
2866   enableval="$enable_mandir"
2867   MANDIR=$enableval
2868 else
2869   MANDIR=/usr/share/man
2870 fi;
2871
2872
2873 # Check whether --enable-pamlocking or --disable-pamlocking was given.
2874 if test "${enable_pamlocking+set}" = set; then
2875   enableval="$enable_pamlocking"
2876   WITH_PAMLOCKING=yes ; cat >>confdefs.h <<\_ACEOF
2877 #define PAM_LOCKING 1
2878 _ACEOF
2879
2880 else
2881   WITH_PAMLOCKING=no
2882 fi;
2883
2884
2885 # Check whether --enable-uglyhack or --disable-uglyhack was given.
2886 if test "${enable_uglyhack+set}" = set; then
2887   enableval="$enable_uglyhack"
2888   cat >>confdefs.h <<\_ACEOF
2889 #define UGLY_HACK_FOR_PRIOR_BEHAVIOR_SUPPORT 1
2890 _ACEOF
2891
2892 fi;
2893
2894 # Check whether --enable-read-both-confs or --disable-read-both-confs was given.
2895 if test "${enable_read_both_confs+set}" = set; then
2896   enableval="$enable_read_both_confs"
2897   cat >>confdefs.h <<\_ACEOF
2898 #define PAM_READ_BOTH_CONFS 1
2899 _ACEOF
2900
2901 fi;
2902
2903
2904 # Check whether --enable-static-libpam or --disable-static-libpam was given.
2905 if test "${enable_static_libpam+set}" = set; then
2906   enableval="$enable_static_libpam"
2907   STATIC_LIBPAM=yes
2908 else
2909   STATIC_LIBPAM=no
2910 fi;
2911
2912
2913 # Check whether --enable-dynamic-libpam or --disable-dynamic-libpam was given.
2914 if test "${enable_dynamic_libpam+set}" = set; then
2915   enableval="$enable_dynamic_libpam"
2916   DYNAMIC_LIBPAM=no
2917 else
2918   DYNAMIC_LIBPAM=yes
2919 fi;
2920
2921
2922 DYNAMIC=-DPAM_DYNAMIC
2923
2924
2925 # Check whether --enable-static-modules or --disable-static-modules was given.
2926 if test "${enable_static_modules+set}" = set; then
2927   enableval="$enable_static_modules"
2928   STATIC=-DPAM_STATIC
2929 fi;
2930
2931
2932 # Check whether --enable-lckpwdf or --disable-lckpwdf was given.
2933 if test "${enable_lckpwdf+set}" = set; then
2934   enableval="$enable_lckpwdf"
2935   WITH_LCKPWDF=no
2936 else
2937   WITH_LCKPWDF=yes
2938 fi;
2939
2940
2941 ac_ext=c
2942 ac_cpp='$CPP $CPPFLAGS'
2943 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2944 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2945 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2946 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2947 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2948 # On Suns, sometimes $CPP names a directory.
2949 if test -n "$CPP" && test -d "$CPP"; then
2950   CPP=
2951 fi
2952 if test -z "$CPP"; then
2953   if test "${ac_cv_prog_CPP+set}" = set; then
2954   echo $ECHO_N "(cached) $ECHO_C" >&6
2955 else
2956       # Double quotes because CPP needs to be expanded
2957     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2958     do
2959       ac_preproc_ok=false
2960 for ac_c_preproc_warn_flag in '' yes
2961 do
2962   # Use a header file that comes with gcc, so configuring glibc
2963   # with a fresh cross-compiler works.
2964   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2965   # <limits.h> exists even on freestanding compilers.
2966   # On the NeXT, cc -E runs the code through the compiler's parser,
2967   # not just through cpp. "Syntax error" is here to catch this case.
2968   cat >conftest.$ac_ext <<_ACEOF
2969 /* confdefs.h.  */
2970 _ACEOF
2971 cat confdefs.h >>conftest.$ac_ext
2972 cat >>conftest.$ac_ext <<_ACEOF
2973 /* end confdefs.h.  */
2974 #ifdef __STDC__
2975 # include <limits.h>
2976 #else
2977 # include <assert.h>
2978 #endif
2979                      Syntax error
2980 _ACEOF
2981 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2982   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2983   ac_status=$?
2984   grep -v '^ *+' conftest.er1 >conftest.err
2985   rm -f conftest.er1
2986   cat conftest.err >&5
2987   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2988   (exit $ac_status); } >/dev/null; then
2989   if test -s conftest.err; then
2990     ac_cpp_err=$ac_c_preproc_warn_flag
2991     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2992   else
2993     ac_cpp_err=
2994   fi
2995 else
2996   ac_cpp_err=yes
2997 fi
2998 if test -z "$ac_cpp_err"; then
2999   :
3000 else
3001   echo "$as_me: failed program was:" >&5
3002 sed 's/^/| /' conftest.$ac_ext >&5
3003
3004   # Broken: fails on valid input.
3005 continue
3006 fi
3007 rm -f conftest.err conftest.$ac_ext
3008
3009   # OK, works on sane cases.  Now check whether non-existent headers
3010   # can be detected and how.
3011   cat >conftest.$ac_ext <<_ACEOF
3012 /* confdefs.h.  */
3013 _ACEOF
3014 cat confdefs.h >>conftest.$ac_ext
3015 cat >>conftest.$ac_ext <<_ACEOF
3016 /* end confdefs.h.  */
3017 #include <ac_nonexistent.h>
3018 _ACEOF
3019 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3020   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3021   ac_status=$?
3022   grep -v '^ *+' conftest.er1 >conftest.err
3023   rm -f conftest.er1
3024   cat conftest.err >&5
3025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3026   (exit $ac_status); } >/dev/null; then
3027   if test -s conftest.err; then
3028     ac_cpp_err=$ac_c_preproc_warn_flag
3029     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3030   else
3031     ac_cpp_err=
3032   fi
3033 else
3034   ac_cpp_err=yes
3035 fi
3036 if test -z "$ac_cpp_err"; then
3037   # Broken: success on invalid input.
3038 continue
3039 else
3040   echo "$as_me: failed program was:" >&5
3041 sed 's/^/| /' conftest.$ac_ext >&5
3042
3043   # Passes both tests.
3044 ac_preproc_ok=:
3045 break
3046 fi
3047 rm -f conftest.err conftest.$ac_ext
3048
3049 done
3050 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3051 rm -f conftest.err conftest.$ac_ext
3052 if $ac_preproc_ok; then
3053   break
3054 fi
3055
3056     done
3057     ac_cv_prog_CPP=$CPP
3058
3059 fi
3060   CPP=$ac_cv_prog_CPP
3061 else
3062   ac_cv_prog_CPP=$CPP
3063 fi
3064 echo "$as_me:$LINENO: result: $CPP" >&5
3065 echo "${ECHO_T}$CPP" >&6
3066 ac_preproc_ok=false
3067 for ac_c_preproc_warn_flag in '' yes
3068 do
3069   # Use a header file that comes with gcc, so configuring glibc
3070   # with a fresh cross-compiler works.
3071   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3072   # <limits.h> exists even on freestanding compilers.
3073   # On the NeXT, cc -E runs the code through the compiler's parser,
3074   # not just through cpp. "Syntax error" is here to catch this case.
3075   cat >conftest.$ac_ext <<_ACEOF
3076 /* confdefs.h.  */
3077 _ACEOF
3078 cat confdefs.h >>conftest.$ac_ext
3079 cat >>conftest.$ac_ext <<_ACEOF
3080 /* end confdefs.h.  */
3081 #ifdef __STDC__
3082 # include <limits.h>
3083 #else
3084 # include <assert.h>
3085 #endif
3086                      Syntax error
3087 _ACEOF
3088 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3089   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3090   ac_status=$?
3091   grep -v '^ *+' conftest.er1 >conftest.err
3092   rm -f conftest.er1
3093   cat conftest.err >&5
3094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3095   (exit $ac_status); } >/dev/null; then
3096   if test -s conftest.err; then
3097     ac_cpp_err=$ac_c_preproc_warn_flag
3098     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3099   else
3100     ac_cpp_err=
3101   fi
3102 else
3103   ac_cpp_err=yes
3104 fi
3105 if test -z "$ac_cpp_err"; then
3106   :
3107 else
3108   echo "$as_me: failed program was:" >&5
3109 sed 's/^/| /' conftest.$ac_ext >&5
3110
3111   # Broken: fails on valid input.
3112 continue
3113 fi
3114 rm -f conftest.err conftest.$ac_ext
3115
3116   # OK, works on sane cases.  Now check whether non-existent headers
3117   # can be detected and how.
3118   cat >conftest.$ac_ext <<_ACEOF
3119 /* confdefs.h.  */
3120 _ACEOF
3121 cat confdefs.h >>conftest.$ac_ext
3122 cat >>conftest.$ac_ext <<_ACEOF
3123 /* end confdefs.h.  */
3124 #include <ac_nonexistent.h>
3125 _ACEOF
3126 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3127   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3128   ac_status=$?
3129   grep -v '^ *+' conftest.er1 >conftest.err
3130   rm -f conftest.er1
3131   cat conftest.err >&5
3132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3133   (exit $ac_status); } >/dev/null; then
3134   if test -s conftest.err; then
3135     ac_cpp_err=$ac_c_preproc_warn_flag
3136     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3137   else
3138     ac_cpp_err=
3139   fi
3140 else
3141   ac_cpp_err=yes
3142 fi
3143 if test -z "$ac_cpp_err"; then
3144   # Broken: success on invalid input.
3145 continue
3146 else
3147   echo "$as_me: failed program was:" >&5
3148 sed 's/^/| /' conftest.$ac_ext >&5
3149
3150   # Passes both tests.
3151 ac_preproc_ok=:
3152 break
3153 fi
3154 rm -f conftest.err conftest.$ac_ext
3155
3156 done
3157 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3158 rm -f conftest.err conftest.$ac_ext
3159 if $ac_preproc_ok; then
3160   :
3161 else
3162   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3163 See \`config.log' for more details." >&5
3164 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3165 See \`config.log' for more details." >&2;}
3166    { (exit 1); exit 1; }; }
3167 fi
3168
3169 ac_ext=c
3170 ac_cpp='$CPP $CPPFLAGS'
3171 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3172 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3173 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3174
3175
3176 echo "$as_me:$LINENO: checking for egrep" >&5
3177 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3178 if test "${ac_cv_prog_egrep+set}" = set; then
3179   echo $ECHO_N "(cached) $ECHO_C" >&6
3180 else
3181   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3182     then ac_cv_prog_egrep='grep -E'
3183     else ac_cv_prog_egrep='egrep'
3184     fi
3185 fi
3186 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3187 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3188  EGREP=$ac_cv_prog_egrep
3189
3190
3191 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3192 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3193 if test "${ac_cv_header_stdc+set}" = set; then
3194   echo $ECHO_N "(cached) $ECHO_C" >&6
3195 else
3196   cat >conftest.$ac_ext <<_ACEOF
3197 /* confdefs.h.  */
3198 _ACEOF
3199 cat confdefs.h >>conftest.$ac_ext
3200 cat >>conftest.$ac_ext <<_ACEOF
3201 /* end confdefs.h.  */
3202 #include <stdlib.h>
3203 #include <stdarg.h>
3204 #include <string.h>
3205 #include <float.h>
3206
3207 int
3208 main ()
3209 {
3210
3211   ;
3212   return 0;
3213 }
3214 _ACEOF
3215 rm -f conftest.$ac_objext
3216 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3217   (eval $ac_compile) 2>conftest.er1
3218   ac_status=$?
3219   grep -v '^ *+' conftest.er1 >conftest.err
3220   rm -f conftest.er1
3221   cat conftest.err >&5
3222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3223   (exit $ac_status); } &&
3224          { ac_try='test -z "$ac_c_werror_flag"
3225                          || test ! -s conftest.err'
3226   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3227   (eval $ac_try) 2>&5
3228   ac_status=$?
3229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3230   (exit $ac_status); }; } &&
3231          { ac_try='test -s conftest.$ac_objext'
3232   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3233   (eval $ac_try) 2>&5
3234   ac_status=$?
3235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3236   (exit $ac_status); }; }; then
3237   ac_cv_header_stdc=yes
3238 else
3239   echo "$as_me: failed program was:" >&5
3240 sed 's/^/| /' conftest.$ac_ext >&5
3241
3242 ac_cv_header_stdc=no
3243 fi
3244 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3245
3246 if test $ac_cv_header_stdc = yes; then
3247   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3248   cat >conftest.$ac_ext <<_ACEOF
3249 /* confdefs.h.  */
3250 _ACEOF
3251 cat confdefs.h >>conftest.$ac_ext
3252 cat >>conftest.$ac_ext <<_ACEOF
3253 /* end confdefs.h.  */
3254 #include <string.h>
3255
3256 _ACEOF
3257 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3258   $EGREP "memchr" >/dev/null 2>&1; then
3259   :
3260 else
3261   ac_cv_header_stdc=no
3262 fi
3263 rm -f conftest*
3264
3265 fi
3266
3267 if test $ac_cv_header_stdc = yes; then
3268   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3269   cat >conftest.$ac_ext <<_ACEOF
3270 /* confdefs.h.  */
3271 _ACEOF
3272 cat confdefs.h >>conftest.$ac_ext
3273 cat >>conftest.$ac_ext <<_ACEOF
3274 /* end confdefs.h.  */
3275 #include <stdlib.h>
3276
3277 _ACEOF
3278 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3279   $EGREP "free" >/dev/null 2>&1; then
3280   :
3281 else
3282   ac_cv_header_stdc=no
3283 fi
3284 rm -f conftest*
3285
3286 fi
3287
3288 if test $ac_cv_header_stdc = yes; then
3289   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3290   if test "$cross_compiling" = yes; then
3291   :
3292 else
3293   cat >conftest.$ac_ext <<_ACEOF
3294 /* confdefs.h.  */
3295 _ACEOF
3296 cat confdefs.h >>conftest.$ac_ext
3297 cat >>conftest.$ac_ext <<_ACEOF
3298 /* end confdefs.h.  */
3299 #include <ctype.h>
3300 #if ((' ' & 0x0FF) == 0x020)
3301 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3302 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3303 #else
3304 # define ISLOWER(c) \
3305                    (('a' <= (c) && (c) <= 'i') \
3306                      || ('j' <= (c) && (c) <= 'r') \
3307                      || ('s' <= (c) && (c) <= 'z'))
3308 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3309 #endif
3310
3311 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3312 int
3313 main ()
3314 {
3315   int i;
3316   for (i = 0; i < 256; i++)
3317     if (XOR (islower (i), ISLOWER (i))
3318         || toupper (i) != TOUPPER (i))
3319       exit(2);
3320   exit (0);
3321 }
3322 _ACEOF
3323 rm -f conftest$ac_exeext
3324 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3325   (eval $ac_link) 2>&5
3326   ac_status=$?
3327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3328   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3329   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3330   (eval $ac_try) 2>&5
3331   ac_status=$?
3332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3333   (exit $ac_status); }; }; then
3334   :
3335 else
3336   echo "$as_me: program exited with status $ac_status" >&5
3337 echo "$as_me: failed program was:" >&5
3338 sed 's/^/| /' conftest.$ac_ext >&5
3339
3340 ( exit $ac_status )
3341 ac_cv_header_stdc=no
3342 fi
3343 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3344 fi
3345 fi
3346 fi
3347 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3348 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3349 if test $ac_cv_header_stdc = yes; then
3350
3351 cat >>confdefs.h <<\_ACEOF
3352 #define STDC_HEADERS 1
3353 _ACEOF
3354
3355 fi
3356
3357 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3358
3359
3360
3361
3362
3363
3364
3365
3366
3367 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3368                   inttypes.h stdint.h unistd.h
3369 do
3370 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3371 echo "$as_me:$LINENO: checking for $ac_header" >&5
3372 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3373 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3374   echo $ECHO_N "(cached) $ECHO_C" >&6
3375 else
3376   cat >conftest.$ac_ext <<_ACEOF
3377 /* confdefs.h.  */
3378 _ACEOF
3379 cat confdefs.h >>conftest.$ac_ext
3380 cat >>conftest.$ac_ext <<_ACEOF
3381 /* end confdefs.h.  */
3382 $ac_includes_default
3383
3384 #include <$ac_header>
3385 _ACEOF
3386 rm -f conftest.$ac_objext
3387 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3388   (eval $ac_compile) 2>conftest.er1
3389   ac_status=$?
3390   grep -v '^ *+' conftest.er1 >conftest.err
3391   rm -f conftest.er1
3392   cat conftest.err >&5
3393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3394   (exit $ac_status); } &&
3395          { ac_try='test -z "$ac_c_werror_flag"
3396                          || test ! -s conftest.err'
3397   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3398   (eval $ac_try) 2>&5
3399   ac_status=$?
3400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3401   (exit $ac_status); }; } &&
3402          { ac_try='test -s conftest.$ac_objext'
3403   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3404   (eval $ac_try) 2>&5
3405   ac_status=$?
3406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3407   (exit $ac_status); }; }; then
3408   eval "$as_ac_Header=yes"
3409 else
3410   echo "$as_me: failed program was:" >&5
3411 sed 's/^/| /' conftest.$ac_ext >&5
3412
3413 eval "$as_ac_Header=no"
3414 fi
3415 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3416 fi
3417 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3418 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3419 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3420   cat >>confdefs.h <<_ACEOF
3421 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3422 _ACEOF
3423
3424 fi
3425
3426 done
3427
3428
3429
3430 for ac_header in paths.h
3431 do
3432 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3433 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3434   echo "$as_me:$LINENO: checking for $ac_header" >&5
3435 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3436 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3437   echo $ECHO_N "(cached) $ECHO_C" >&6
3438 fi
3439 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3440 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3441 else
3442   # Is the header compilable?
3443 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3444 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3445 cat >conftest.$ac_ext <<_ACEOF
3446 /* confdefs.h.  */
3447 _ACEOF
3448 cat confdefs.h >>conftest.$ac_ext
3449 cat >>conftest.$ac_ext <<_ACEOF
3450 /* end confdefs.h.  */
3451 $ac_includes_default
3452 #include <$ac_header>
3453 _ACEOF
3454 rm -f conftest.$ac_objext
3455 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3456   (eval $ac_compile) 2>conftest.er1
3457   ac_status=$?
3458   grep -v '^ *+' conftest.er1 >conftest.err
3459   rm -f conftest.er1
3460   cat conftest.err >&5
3461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3462   (exit $ac_status); } &&
3463          { ac_try='test -z "$ac_c_werror_flag"
3464                          || test ! -s conftest.err'
3465   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3466   (eval $ac_try) 2>&5
3467   ac_status=$?
3468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3469   (exit $ac_status); }; } &&
3470          { ac_try='test -s conftest.$ac_objext'
3471   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3472   (eval $ac_try) 2>&5
3473   ac_status=$?
3474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3475   (exit $ac_status); }; }; then
3476   ac_header_compiler=yes
3477 else
3478   echo "$as_me: failed program was:" >&5
3479 sed 's/^/| /' conftest.$ac_ext >&5
3480
3481 ac_header_compiler=no
3482 fi
3483 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3484 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3485 echo "${ECHO_T}$ac_header_compiler" >&6
3486
3487 # Is the header present?
3488 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3489 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3490 cat >conftest.$ac_ext <<_ACEOF
3491 /* confdefs.h.  */
3492 _ACEOF
3493 cat confdefs.h >>conftest.$ac_ext
3494 cat >>conftest.$ac_ext <<_ACEOF
3495 /* end confdefs.h.  */
3496 #include <$ac_header>
3497 _ACEOF
3498 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3499   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3500   ac_status=$?
3501   grep -v '^ *+' conftest.er1 >conftest.err
3502   rm -f conftest.er1
3503   cat conftest.err >&5
3504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3505   (exit $ac_status); } >/dev/null; then
3506   if test -s conftest.err; then
3507     ac_cpp_err=$ac_c_preproc_warn_flag
3508     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3509   else
3510     ac_cpp_err=
3511   fi
3512 else
3513   ac_cpp_err=yes
3514 fi
3515 if test -z "$ac_cpp_err"; then
3516   ac_header_preproc=yes
3517 else
3518   echo "$as_me: failed program was:" >&5
3519 sed 's/^/| /' conftest.$ac_ext >&5
3520
3521   ac_header_preproc=no
3522 fi
3523 rm -f conftest.err conftest.$ac_ext
3524 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3525 echo "${ECHO_T}$ac_header_preproc" >&6
3526
3527 # So?  What about this header?
3528 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3529   yes:no: )
3530     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3531 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3532     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3533 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3534     ac_header_preproc=yes
3535     ;;
3536   no:yes:* )
3537     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3538 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3539     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
3540 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
3541     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3542 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3543     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
3544 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
3545     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3546 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3547     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3548 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
3549     (
3550       cat <<\_ASBOX
3551 ## ------------------------------------------ ##
3552 ## Report this to the AC_PACKAGE_NAME lists.  ##
3553 ## ------------------------------------------ ##
3554 _ASBOX
3555     ) |
3556       sed "s/^/$as_me: WARNING:     /" >&2
3557     ;;
3558 esac
3559 echo "$as_me:$LINENO: checking for $ac_header" >&5
3560 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3561 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3562   echo $ECHO_N "(cached) $ECHO_C" >&6
3563 else
3564   eval "$as_ac_Header=\$ac_header_preproc"
3565 fi
3566 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3567 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3568
3569 fi
3570 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3571   cat >>confdefs.h <<_ACEOF
3572 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3573 _ACEOF
3574
3575 fi
3576
3577 done
3578
3579
3580 # Check whether --with-mailspool or --without-mailspool was given.
3581 if test "${with_mailspool+set}" = set; then
3582   withval="$with_mailspool"
3583   with_mailspool=${withval}
3584 fi;
3585 if test x$with_mailspool != x ; then
3586         pam_mail_spool="\"$with_mailspool\""
3587 else
3588         if test "$cross_compiling" = yes; then
3589   pam_mail_spool="\"/var/spool/mail\""
3590 else
3591   cat >conftest.$ac_ext <<_ACEOF
3592 /* confdefs.h.  */
3593 _ACEOF
3594 cat confdefs.h >>conftest.$ac_ext
3595 cat >>conftest.$ac_ext <<_ACEOF
3596 /* end confdefs.h.  */
3597
3598 #include <paths.h>
3599 int main() {
3600 #ifdef _PATH_MAILDIR
3601 exit(0);
3602 #else
3603 exit(1);
3604 #endif
3605 }
3606 _ACEOF
3607 rm -f conftest$ac_exeext
3608 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3609   (eval $ac_link) 2>&5
3610   ac_status=$?
3611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3612   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3613   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3614   (eval $ac_try) 2>&5
3615   ac_status=$?
3616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3617   (exit $ac_status); }; }; then
3618   pam_mail_spool="_PATH_MAILDIR"
3619 else
3620   echo "$as_me: program exited with status $ac_status" >&5
3621 echo "$as_me: failed program was:" >&5
3622 sed 's/^/| /' conftest.$ac_ext >&5
3623
3624 ( exit $ac_status )
3625 pam_mail_spool="\"/var/spool/mail\""
3626 fi
3627 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3628 fi
3629 fi
3630 cat >>confdefs.h <<_ACEOF
3631 #define PAM_PATH_MAILDIR $pam_mail_spool
3632 _ACEOF
3633
3634
3635 echo "$as_me:$LINENO: checking for __libc_sched_setscheduler in -lc" >&5
3636 echo $ECHO_N "checking for __libc_sched_setscheduler in -lc... $ECHO_C" >&6
3637 if test "${ac_cv_lib_c___libc_sched_setscheduler+set}" = set; then
3638   echo $ECHO_N "(cached) $ECHO_C" >&6
3639 else
3640   ac_check_lib_save_LIBS=$LIBS
3641 LIBS="-lc  $LIBS"
3642 cat >conftest.$ac_ext <<_ACEOF
3643 /* confdefs.h.  */
3644 _ACEOF
3645 cat confdefs.h >>conftest.$ac_ext
3646 cat >>conftest.$ac_ext <<_ACEOF
3647 /* end confdefs.h.  */
3648
3649 /* Override any gcc2 internal prototype to avoid an error.  */
3650 #ifdef __cplusplus
3651 extern "C"
3652 #endif
3653 /* We use char because int might match the return type of a gcc2
3654    builtin and then its argument prototype would still apply.  */
3655 char __libc_sched_setscheduler ();
3656 int
3657 main ()
3658 {
3659 __libc_sched_setscheduler ();
3660   ;
3661   return 0;
3662 }
3663 _ACEOF
3664 rm -f conftest.$ac_objext conftest$ac_exeext
3665 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3666   (eval $ac_link) 2>conftest.er1
3667   ac_status=$?
3668   grep -v '^ *+' conftest.er1 >conftest.err
3669   rm -f conftest.er1
3670   cat conftest.err >&5
3671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3672   (exit $ac_status); } &&
3673          { ac_try='test -z "$ac_c_werror_flag"
3674                          || test ! -s conftest.err'
3675   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3676   (eval $ac_try) 2>&5
3677   ac_status=$?
3678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3679   (exit $ac_status); }; } &&
3680          { ac_try='test -s conftest$ac_exeext'
3681   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3682   (eval $ac_try) 2>&5
3683   ac_status=$?
3684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3685   (exit $ac_status); }; }; then
3686   ac_cv_lib_c___libc_sched_setscheduler=yes
3687 else
3688   echo "$as_me: failed program was:" >&5
3689 sed 's/^/| /' conftest.$ac_ext >&5
3690
3691 ac_cv_lib_c___libc_sched_setscheduler=no
3692 fi
3693 rm -f conftest.err conftest.$ac_objext \
3694       conftest$ac_exeext conftest.$ac_ext
3695 LIBS=$ac_check_lib_save_LIBS
3696 fi
3697 echo "$as_me:$LINENO: result: $ac_cv_lib_c___libc_sched_setscheduler" >&5
3698 echo "${ECHO_T}$ac_cv_lib_c___libc_sched_setscheduler" >&6
3699 if test $ac_cv_lib_c___libc_sched_setscheduler = yes; then
3700   PAM_NEEDS_LIBC=
3701 else
3702   PAM_NEEDS_LIBC=-lc
3703 fi
3704
3705
3706
3707 echo "$as_me:$LINENO: checking for lckpwdf in -lc" >&5
3708 echo $ECHO_N "checking for lckpwdf in -lc... $ECHO_C" >&6
3709 if test "${ac_cv_lib_c_lckpwdf+set}" = set; then
3710   echo $ECHO_N "(cached) $ECHO_C" >&6
3711 else
3712   ac_check_lib_save_LIBS=$LIBS
3713 LIBS="-lc  $LIBS"
3714 cat >conftest.$ac_ext <<_ACEOF
3715 /* confdefs.h.  */
3716 _ACEOF
3717 cat confdefs.h >>conftest.$ac_ext
3718 cat >>conftest.$ac_ext <<_ACEOF
3719 /* end confdefs.h.  */
3720
3721 /* Override any gcc2 internal prototype to avoid an error.  */
3722 #ifdef __cplusplus
3723 extern "C"
3724 #endif
3725 /* We use char because int might match the return type of a gcc2
3726    builtin and then its argument prototype would still apply.  */
3727 char lckpwdf ();
3728 int
3729 main ()
3730 {
3731 lckpwdf ();
3732   ;
3733   return 0;
3734 }
3735 _ACEOF
3736 rm -f conftest.$ac_objext conftest$ac_exeext
3737 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3738   (eval $ac_link) 2>conftest.er1
3739   ac_status=$?
3740   grep -v '^ *+' conftest.er1 >conftest.err
3741   rm -f conftest.er1
3742   cat conftest.err >&5
3743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3744   (exit $ac_status); } &&
3745          { ac_try='test -z "$ac_c_werror_flag"
3746                          || test ! -s conftest.err'
3747   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3748   (eval $ac_try) 2>&5
3749   ac_status=$?
3750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3751   (exit $ac_status); }; } &&
3752          { ac_try='test -s conftest$ac_exeext'
3753   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3754   (eval $ac_try) 2>&5
3755   ac_status=$?
3756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3757   (exit $ac_status); }; }; then
3758   ac_cv_lib_c_lckpwdf=yes
3759 else
3760   echo "$as_me: failed program was:" >&5
3761 sed 's/^/| /' conftest.$ac_ext >&5
3762
3763 ac_cv_lib_c_lckpwdf=no
3764 fi
3765 rm -f conftest.err conftest.$ac_objext \
3766       conftest$ac_exeext conftest.$ac_ext
3767 LIBS=$ac_check_lib_save_LIBS
3768 fi
3769 echo "$as_me:$LINENO: result: $ac_cv_lib_c_lckpwdf" >&5
3770 echo "${ECHO_T}$ac_cv_lib_c_lckpwdf" >&6
3771 if test $ac_cv_lib_c_lckpwdf = yes; then
3772   HAVE_LCKPWDF=yes
3773 else
3774   HAVE_LCKPWDF=no
3775 fi
3776
3777
3778
3779 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
3780 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
3781 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
3782   echo $ECHO_N "(cached) $ECHO_C" >&6
3783 else
3784   ac_check_lib_save_LIBS=$LIBS
3785 LIBS="-ldl  $LIBS"
3786 cat >conftest.$ac_ext <<_ACEOF
3787 /* confdefs.h.  */
3788 _ACEOF
3789 cat confdefs.h >>conftest.$ac_ext
3790 cat >>conftest.$ac_ext <<_ACEOF
3791 /* end confdefs.h.  */
3792
3793 /* Override any gcc2 internal prototype to avoid an error.  */
3794 #ifdef __cplusplus
3795 extern "C"
3796 #endif
3797 /* We use char because int might match the return type of a gcc2
3798    builtin and then its argument prototype would still apply.  */
3799 char dlopen ();
3800 int
3801 main ()
3802 {
3803 dlopen ();
3804   ;
3805   return 0;
3806 }
3807 _ACEOF
3808 rm -f conftest.$ac_objext conftest$ac_exeext
3809 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3810   (eval $ac_link) 2>conftest.er1
3811   ac_status=$?
3812   grep -v '^ *+' conftest.er1 >conftest.err
3813   rm -f conftest.er1
3814   cat conftest.err >&5
3815   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3816   (exit $ac_status); } &&
3817          { ac_try='test -z "$ac_c_werror_flag"
3818                          || test ! -s conftest.err'
3819   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3820   (eval $ac_try) 2>&5
3821   ac_status=$?
3822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3823   (exit $ac_status); }; } &&
3824          { ac_try='test -s conftest$ac_exeext'
3825   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3826   (eval $ac_try) 2>&5
3827   ac_status=$?
3828   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3829   (exit $ac_status); }; }; then
3830   ac_cv_lib_dl_dlopen=yes
3831 else
3832   echo "$as_me: failed program was:" >&5
3833 sed 's/^/| /' conftest.$ac_ext >&5
3834
3835 ac_cv_lib_dl_dlopen=no
3836 fi
3837 rm -f conftest.err conftest.$ac_objext \
3838       conftest$ac_exeext conftest.$ac_ext
3839 LIBS=$ac_check_lib_save_LIBS
3840 fi
3841 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
3842 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
3843 if test $ac_cv_lib_dl_dlopen = yes; then
3844   LIBDL=-ldl
3845 fi
3846
3847
3848
3849 echo "$as_me:$LINENO: checking for FascistCheck in -lcrack" >&5
3850 echo $ECHO_N "checking for FascistCheck in -lcrack... $ECHO_C" >&6
3851 if test "${ac_cv_lib_crack_FascistCheck+set}" = set; then
3852   echo $ECHO_N "(cached) $ECHO_C" >&6
3853 else
3854   ac_check_lib_save_LIBS=$LIBS
3855 LIBS="-lcrack  $LIBS"
3856 cat >conftest.$ac_ext <<_ACEOF
3857 /* confdefs.h.  */
3858 _ACEOF
3859 cat confdefs.h >>conftest.$ac_ext
3860 cat >>conftest.$ac_ext <<_ACEOF
3861 /* end confdefs.h.  */
3862
3863 /* Override any gcc2 internal prototype to avoid an error.  */
3864 #ifdef __cplusplus
3865 extern "C"
3866 #endif
3867 /* We use char because int might match the return type of a gcc2
3868    builtin and then its argument prototype would still apply.  */
3869 char FascistCheck ();
3870 int
3871 main ()
3872 {
3873 FascistCheck ();
3874   ;
3875   return 0;
3876 }
3877 _ACEOF
3878 rm -f conftest.$ac_objext conftest$ac_exeext
3879 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3880   (eval $ac_link) 2>conftest.er1
3881   ac_status=$?
3882   grep -v '^ *+' conftest.er1 >conftest.err
3883   rm -f conftest.er1
3884   cat conftest.err >&5
3885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3886   (exit $ac_status); } &&
3887          { ac_try='test -z "$ac_c_werror_flag"
3888                          || test ! -s conftest.err'
3889   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3890   (eval $ac_try) 2>&5
3891   ac_status=$?
3892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3893   (exit $ac_status); }; } &&
3894          { ac_try='test -s conftest$ac_exeext'
3895   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3896   (eval $ac_try) 2>&5
3897   ac_status=$?
3898   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3899   (exit $ac_status); }; }; then
3900   ac_cv_lib_crack_FascistCheck=yes
3901 else
3902   echo "$as_me: failed program was:" >&5
3903 sed 's/^/| /' conftest.$ac_ext >&5
3904
3905 ac_cv_lib_crack_FascistCheck=no
3906 fi
3907 rm -f conftest.err conftest.$ac_objext \
3908       conftest$ac_exeext conftest.$ac_ext
3909 LIBS=$ac_check_lib_save_LIBS
3910 fi
3911 echo "$as_me:$LINENO: result: $ac_cv_lib_crack_FascistCheck" >&5
3912 echo "${ECHO_T}$ac_cv_lib_crack_FascistCheck" >&6
3913 if test $ac_cv_lib_crack_FascistCheck = yes; then
3914   HAVE_LIBCRACK=yes ; cat >>confdefs.h <<\_ACEOF
3915 #define HAVE_LIBCRACK 1
3916 _ACEOF
3917
3918 else
3919   HAVE_LIBCRACK=no
3920 fi
3921
3922
3923
3924 echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
3925 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6
3926 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
3927   echo $ECHO_N "(cached) $ECHO_C" >&6
3928 else
3929   ac_check_lib_save_LIBS=$LIBS
3930 LIBS="-lcrypt  $LIBS"
3931 cat >conftest.$ac_ext <<_ACEOF
3932 /* confdefs.h.  */
3933 _ACEOF
3934 cat confdefs.h >>conftest.$ac_ext
3935 cat >>conftest.$ac_ext <<_ACEOF
3936 /* end confdefs.h.  */
3937
3938 /* Override any gcc2 internal prototype to avoid an error.  */
3939 #ifdef __cplusplus
3940 extern "C"
3941 #endif
3942 /* We use char because int might match the return type of a gcc2
3943    builtin and then its argument prototype would still apply.  */
3944 char crypt ();
3945 int
3946 main ()
3947 {
3948 crypt ();
3949   ;
3950   return 0;
3951 }
3952 _ACEOF
3953 rm -f conftest.$ac_objext conftest$ac_exeext
3954 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3955   (eval $ac_link) 2>conftest.er1
3956   ac_status=$?
3957   grep -v '^ *+' conftest.er1 >conftest.err
3958   rm -f conftest.er1
3959   cat conftest.err >&5
3960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3961   (exit $ac_status); } &&
3962          { ac_try='test -z "$ac_c_werror_flag"
3963                          || test ! -s conftest.err'
3964   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3965   (eval $ac_try) 2>&5
3966   ac_status=$?
3967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3968   (exit $ac_status); }; } &&
3969          { ac_try='test -s conftest$ac_exeext'
3970   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3971   (eval $ac_try) 2>&5
3972   ac_status=$?
3973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3974   (exit $ac_status); }; }; then
3975   ac_cv_lib_crypt_crypt=yes
3976 else
3977   echo "$as_me: failed program was:" >&5
3978 sed 's/^/| /' conftest.$ac_ext >&5
3979
3980 ac_cv_lib_crypt_crypt=no
3981 fi
3982 rm -f conftest.err conftest.$ac_objext \
3983       conftest$ac_exeext conftest.$ac_ext
3984 LIBS=$ac_check_lib_save_LIBS
3985 fi
3986 echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
3987 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6
3988 if test $ac_cv_lib_crypt_crypt = yes; then
3989   HAVE_LIBCRYPT=yes ; cat >>confdefs.h <<\_ACEOF
3990 #define HAVE_LIBCRYPT 1
3991 _ACEOF
3992
3993 else
3994   HAVE_LIBCRYPT=no
3995 fi
3996
3997
3998 echo "$as_me:$LINENO: checking for logwtmp in -lutil" >&5
3999 echo $ECHO_N "checking for logwtmp in -lutil... $ECHO_C" >&6
4000 if test "${ac_cv_lib_util_logwtmp+set}" = set; then
4001   echo $ECHO_N "(cached) $ECHO_C" >&6
4002 else
4003   ac_check_lib_save_LIBS=$LIBS
4004 LIBS="-lutil  $LIBS"
4005 cat >conftest.$ac_ext <<_ACEOF
4006 /* confdefs.h.  */
4007 _ACEOF
4008 cat confdefs.h >>conftest.$ac_ext
4009 cat >>conftest.$ac_ext <<_ACEOF
4010 /* end confdefs.h.  */
4011
4012 /* Override any gcc2 internal prototype to avoid an error.  */
4013 #ifdef __cplusplus
4014 extern "C"
4015 #endif
4016 /* We use char because int might match the return type of a gcc2
4017    builtin and then its argument prototype would still apply.  */
4018 char logwtmp ();
4019 int
4020 main ()
4021 {
4022 logwtmp ();
4023   ;
4024   return 0;
4025 }
4026 _ACEOF
4027 rm -f conftest.$ac_objext conftest$ac_exeext
4028 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4029   (eval $ac_link) 2>conftest.er1
4030   ac_status=$?
4031   grep -v '^ *+' conftest.er1 >conftest.err
4032   rm -f conftest.er1
4033   cat conftest.err >&5
4034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4035   (exit $ac_status); } &&
4036          { ac_try='test -z "$ac_c_werror_flag"
4037                          || test ! -s conftest.err'
4038   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4039   (eval $ac_try) 2>&5
4040   ac_status=$?
4041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4042   (exit $ac_status); }; } &&
4043          { ac_try='test -s conftest$ac_exeext'
4044   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4045   (eval $ac_try) 2>&5
4046   ac_status=$?
4047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4048   (exit $ac_status); }; }; then
4049   ac_cv_lib_util_logwtmp=yes
4050 else
4051   echo "$as_me: failed program was:" >&5
4052 sed 's/^/| /' conftest.$ac_ext >&5
4053
4054 ac_cv_lib_util_logwtmp=no
4055 fi
4056 rm -f conftest.err conftest.$ac_objext \
4057       conftest$ac_exeext conftest.$ac_ext
4058 LIBS=$ac_check_lib_save_LIBS
4059 fi
4060 echo "$as_me:$LINENO: result: $ac_cv_lib_util_logwtmp" >&5
4061 echo "${ECHO_T}$ac_cv_lib_util_logwtmp" >&6
4062 if test $ac_cv_lib_util_logwtmp = yes; then
4063   HAVE_LIBUTIL=yes ; cat >>confdefs.h <<\_ACEOF
4064 #define HAVE_LIBUTIL 1
4065 _ACEOF
4066
4067 else
4068   HAVE_LIBUTIL=no
4069 fi
4070
4071
4072 echo "$as_me:$LINENO: checking for dbm_store in -lndbm" >&5
4073 echo $ECHO_N "checking for dbm_store in -lndbm... $ECHO_C" >&6
4074 if test "${ac_cv_lib_ndbm_dbm_store+set}" = set; then
4075   echo $ECHO_N "(cached) $ECHO_C" >&6
4076 else
4077   ac_check_lib_save_LIBS=$LIBS
4078 LIBS="-lndbm  $LIBS"
4079 cat >conftest.$ac_ext <<_ACEOF
4080 /* confdefs.h.  */
4081 _ACEOF
4082 cat confdefs.h >>conftest.$ac_ext
4083 cat >>conftest.$ac_ext <<_ACEOF
4084 /* end confdefs.h.  */
4085
4086 /* Override any gcc2 internal prototype to avoid an error.  */
4087 #ifdef __cplusplus
4088 extern "C"
4089 #endif
4090 /* We use char because int might match the return type of a gcc2
4091    builtin and then its argument prototype would still apply.  */
4092 char dbm_store ();
4093 int
4094 main ()
4095 {
4096 dbm_store ();
4097   ;
4098   return 0;
4099 }
4100 _ACEOF
4101 rm -f conftest.$ac_objext conftest$ac_exeext
4102 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4103   (eval $ac_link) 2>conftest.er1
4104   ac_status=$?
4105   grep -v '^ *+' conftest.er1 >conftest.err
4106   rm -f conftest.er1
4107   cat conftest.err >&5
4108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4109   (exit $ac_status); } &&
4110          { ac_try='test -z "$ac_c_werror_flag"
4111                          || test ! -s conftest.err'
4112   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4113   (eval $ac_try) 2>&5
4114   ac_status=$?
4115   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4116   (exit $ac_status); }; } &&
4117          { ac_try='test -s conftest$ac_exeext'
4118   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4119   (eval $ac_try) 2>&5
4120   ac_status=$?
4121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4122   (exit $ac_status); }; }; then
4123   ac_cv_lib_ndbm_dbm_store=yes
4124 else
4125   echo "$as_me: failed program was:" >&5
4126 sed 's/^/| /' conftest.$ac_ext >&5
4127
4128 ac_cv_lib_ndbm_dbm_store=no
4129 fi
4130 rm -f conftest.err conftest.$ac_objext \
4131       conftest$ac_exeext conftest.$ac_ext
4132 LIBS=$ac_check_lib_save_LIBS
4133 fi
4134 echo "$as_me:$LINENO: result: $ac_cv_lib_ndbm_dbm_store" >&5
4135 echo "${ECHO_T}$ac_cv_lib_ndbm_dbm_store" >&6
4136 if test $ac_cv_lib_ndbm_dbm_store = yes; then
4137   HAVE_LIBNDBM=yes ; cat >>confdefs.h <<\_ACEOF
4138 #define HAVE_LIBNDBM 1
4139 _ACEOF
4140
4141 else
4142   HAVE_LIBNDBM=no
4143 fi
4144
4145
4146 echo "$as_me:$LINENO: checking for dbm_store in -ldb" >&5
4147 echo $ECHO_N "checking for dbm_store in -ldb... $ECHO_C" >&6
4148 if test "${ac_cv_lib_db_dbm_store+set}" = set; then
4149   echo $ECHO_N "(cached) $ECHO_C" >&6
4150 else
4151   ac_check_lib_save_LIBS=$LIBS
4152 LIBS="-ldb  $LIBS"
4153 cat >conftest.$ac_ext <<_ACEOF
4154 /* confdefs.h.  */
4155 _ACEOF
4156 cat confdefs.h >>conftest.$ac_ext
4157 cat >>conftest.$ac_ext <<_ACEOF
4158 /* end confdefs.h.  */
4159
4160 /* Override any gcc2 internal prototype to avoid an error.  */
4161 #ifdef __cplusplus
4162 extern "C"
4163 #endif
4164 /* We use char because int might match the return type of a gcc2
4165    builtin and then its argument prototype would still apply.  */
4166 char dbm_store ();
4167 int
4168 main ()
4169 {
4170 dbm_store ();
4171   ;
4172   return 0;
4173 }
4174 _ACEOF
4175 rm -f conftest.$ac_objext conftest$ac_exeext
4176 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4177   (eval $ac_link) 2>conftest.er1
4178   ac_status=$?
4179   grep -v '^ *+' conftest.er1 >conftest.err
4180   rm -f conftest.er1
4181   cat conftest.err >&5
4182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4183   (exit $ac_status); } &&
4184          { ac_try='test -z "$ac_c_werror_flag"
4185                          || test ! -s conftest.err'
4186   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4187   (eval $ac_try) 2>&5
4188   ac_status=$?
4189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4190   (exit $ac_status); }; } &&
4191          { ac_try='test -s conftest$ac_exeext'
4192   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4193   (eval $ac_try) 2>&5
4194   ac_status=$?
4195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4196   (exit $ac_status); }; }; then
4197   ac_cv_lib_db_dbm_store=yes
4198 else
4199   echo "$as_me: failed program was:" >&5
4200 sed 's/^/| /' conftest.$ac_ext >&5
4201
4202 ac_cv_lib_db_dbm_store=no
4203 fi
4204 rm -f conftest.err conftest.$ac_objext \
4205       conftest$ac_exeext conftest.$ac_ext
4206 LIBS=$ac_check_lib_save_LIBS
4207 fi
4208 echo "$as_me:$LINENO: result: $ac_cv_lib_db_dbm_store" >&5
4209 echo "${ECHO_T}$ac_cv_lib_db_dbm_store" >&6
4210 if test $ac_cv_lib_db_dbm_store = yes; then
4211   HAVE_LIBDB=yes ; cat >>confdefs.h <<\_ACEOF
4212 #define HAVE_LIBDB 1
4213 _ACEOF
4214
4215 else
4216   HAVE_LIBDB=no
4217 fi
4218
4219 if test x$HAVE_LIBDB != xyes ; then
4220         echo "$as_me:$LINENO: checking for db_create in -ldb" >&5
4221 echo $ECHO_N "checking for db_create in -ldb... $ECHO_C" >&6
4222 if test "${ac_cv_lib_db_db_create+set}" = set; then
4223   echo $ECHO_N "(cached) $ECHO_C" >&6
4224 else
4225   ac_check_lib_save_LIBS=$LIBS
4226 LIBS="-ldb  $LIBS"
4227 cat >conftest.$ac_ext <<_ACEOF
4228 /* confdefs.h.  */
4229 _ACEOF
4230 cat confdefs.h >>conftest.$ac_ext
4231 cat >>conftest.$ac_ext <<_ACEOF
4232 /* end confdefs.h.  */
4233
4234 /* Override any gcc2 internal prototype to avoid an error.  */
4235 #ifdef __cplusplus
4236 extern "C"
4237 #endif
4238 /* We use char because int might match the return type of a gcc2
4239    builtin and then its argument prototype would still apply.  */
4240 char db_create ();
4241 int
4242 main ()
4243 {
4244 db_create ();
4245   ;
4246   return 0;
4247 }
4248 _ACEOF
4249 rm -f conftest.$ac_objext conftest$ac_exeext
4250 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4251   (eval $ac_link) 2>conftest.er1
4252   ac_status=$?
4253   grep -v '^ *+' conftest.er1 >conftest.err
4254   rm -f conftest.er1
4255   cat conftest.err >&5
4256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4257   (exit $ac_status); } &&
4258          { ac_try='test -z "$ac_c_werror_flag"
4259                          || test ! -s conftest.err'
4260   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4261   (eval $ac_try) 2>&5
4262   ac_status=$?
4263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4264   (exit $ac_status); }; } &&
4265          { ac_try='test -s conftest$ac_exeext'
4266   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4267   (eval $ac_try) 2>&5
4268   ac_status=$?
4269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4270   (exit $ac_status); }; }; then
4271   ac_cv_lib_db_db_create=yes
4272 else
4273   echo "$as_me: failed program was:" >&5
4274 sed 's/^/| /' conftest.$ac_ext >&5
4275
4276 ac_cv_lib_db_db_create=no
4277 fi
4278 rm -f conftest.err conftest.$ac_objext \
4279       conftest$ac_exeext conftest.$ac_ext
4280 LIBS=$ac_check_lib_save_LIBS
4281 fi
4282 echo "$as_me:$LINENO: result: $ac_cv_lib_db_db_create" >&5
4283 echo "${ECHO_T}$ac_cv_lib_db_db_create" >&6
4284 if test $ac_cv_lib_db_db_create = yes; then
4285   HAVE_LIBDB=yes ; cat >>confdefs.h <<\_ACEOF
4286 #define HAVE_LIBDB 1
4287 _ACEOF
4288
4289 else
4290   HAVE_LIBDB=no
4291 fi
4292
4293 fi
4294
4295 echo "$as_me:$LINENO: checking for yylex in -lfl" >&5
4296 echo $ECHO_N "checking for yylex in -lfl... $ECHO_C" >&6
4297 if test "${ac_cv_lib_fl_yylex+set}" = set; then
4298   echo $ECHO_N "(cached) $ECHO_C" >&6
4299 else
4300   ac_check_lib_save_LIBS=$LIBS
4301 LIBS="-lfl HAVE_LIBFL=no $LIBS"
4302 cat >conftest.$ac_ext <<_ACEOF
4303 /* confdefs.h.  */
4304 _ACEOF
4305 cat confdefs.h >>conftest.$ac_ext
4306 cat >>conftest.$ac_ext <<_ACEOF
4307 /* end confdefs.h.  */
4308
4309 /* Override any gcc2 internal prototype to avoid an error.  */
4310 #ifdef __cplusplus
4311 extern "C"
4312 #endif
4313 /* We use char because int might match the return type of a gcc2
4314    builtin and then its argument prototype would still apply.  */
4315 char yylex ();
4316 int
4317 main ()
4318 {
4319 yylex ();
4320   ;
4321   return 0;
4322 }
4323 _ACEOF
4324 rm -f conftest.$ac_objext conftest$ac_exeext
4325 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4326   (eval $ac_link) 2>conftest.er1
4327   ac_status=$?
4328   grep -v '^ *+' conftest.er1 >conftest.err
4329   rm -f conftest.er1
4330   cat conftest.err >&5
4331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4332   (exit $ac_status); } &&
4333          { ac_try='test -z "$ac_c_werror_flag"
4334                          || test ! -s conftest.err'
4335   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4336   (eval $ac_try) 2>&5
4337   ac_status=$?
4338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4339   (exit $ac_status); }; } &&
4340          { ac_try='test -s conftest$ac_exeext'
4341   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4342   (eval $ac_try) 2>&5
4343   ac_status=$?
4344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4345   (exit $ac_status); }; }; then
4346   ac_cv_lib_fl_yylex=yes
4347 else
4348   echo "$as_me: failed program was:" >&5
4349 sed 's/^/| /' conftest.$ac_ext >&5
4350
4351 ac_cv_lib_fl_yylex=no
4352 fi
4353 rm -f conftest.err conftest.$ac_objext \
4354       conftest$ac_exeext conftest.$ac_ext
4355 LIBS=$ac_check_lib_save_LIBS
4356 fi
4357 echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yylex" >&5
4358 echo "${ECHO_T}$ac_cv_lib_fl_yylex" >&6
4359 if test $ac_cv_lib_fl_yylex = yes; then
4360   yyterminate
4361 else
4362   HAVE_LIBFL=yes ; cat >>confdefs.h <<\_ACEOF
4363 #define HAVE_LIBFL 1
4364 _ACEOF
4365
4366 fi
4367
4368
4369 echo "$as_me:$LINENO: checking for yp_maplist in -lnsl" >&5
4370 echo $ECHO_N "checking for yp_maplist in -lnsl... $ECHO_C" >&6
4371 if test "${ac_cv_lib_nsl_yp_maplist+set}" = set; then
4372   echo $ECHO_N "(cached) $ECHO_C" >&6
4373 else
4374   ac_check_lib_save_LIBS=$LIBS
4375 LIBS="-lnsl  $LIBS"
4376 cat >conftest.$ac_ext <<_ACEOF
4377 /* confdefs.h.  */
4378 _ACEOF
4379 cat confdefs.h >>conftest.$ac_ext
4380 cat >>conftest.$ac_ext <<_ACEOF
4381 /* end confdefs.h.  */
4382
4383 /* Override any gcc2 internal prototype to avoid an error.  */
4384 #ifdef __cplusplus
4385 extern "C"
4386 #endif
4387 /* We use char because int might match the return type of a gcc2
4388    builtin and then its argument prototype would still apply.  */
4389 char yp_maplist ();
4390 int
4391 main ()
4392 {
4393 yp_maplist ();
4394   ;
4395   return 0;
4396 }
4397 _ACEOF
4398 rm -f conftest.$ac_objext conftest$ac_exeext
4399 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4400   (eval $ac_link) 2>conftest.er1
4401   ac_status=$?
4402   grep -v '^ *+' conftest.er1 >conftest.err
4403   rm -f conftest.er1
4404   cat conftest.err >&5
4405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4406   (exit $ac_status); } &&
4407          { ac_try='test -z "$ac_c_werror_flag"
4408                          || test ! -s conftest.err'
4409   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4410   (eval $ac_try) 2>&5
4411   ac_status=$?
4412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4413   (exit $ac_status); }; } &&
4414          { ac_try='test -s conftest$ac_exeext'
4415   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4416   (eval $ac_try) 2>&5
4417   ac_status=$?
4418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4419   (exit $ac_status); }; }; then
4420   ac_cv_lib_nsl_yp_maplist=yes
4421 else
4422   echo "$as_me: failed program was:" >&5
4423 sed 's/^/| /' conftest.$ac_ext >&5
4424
4425 ac_cv_lib_nsl_yp_maplist=no
4426 fi
4427 rm -f conftest.err conftest.$ac_objext \
4428       conftest$ac_exeext conftest.$ac_ext
4429 LIBS=$ac_check_lib_save_LIBS
4430 fi
4431 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_yp_maplist" >&5
4432 echo "${ECHO_T}$ac_cv_lib_nsl_yp_maplist" >&6
4433 if test $ac_cv_lib_nsl_yp_maplist = yes; then
4434   HAVE_LIBNSL=yes ; cat >>confdefs.h <<\_ACEOF
4435 #define HAVE_LIBNSL 1
4436 _ACEOF
4437
4438 else
4439   HAVE_LIBNSL=no
4440 fi
4441
4442
4443
4444 if test $HAVE_LIBNSL = yes ; then
4445         pwdblibs="$pwdblibs -lnsl"
4446 fi
4447 echo "$as_me:$LINENO: checking for pwdb_db_name in -lpwdb" >&5
4448 echo $ECHO_N "checking for pwdb_db_name in -lpwdb... $ECHO_C" >&6
4449 if test "${ac_cv_lib_pwdb_pwdb_db_name+set}" = set; then
4450   echo $ECHO_N "(cached) $ECHO_C" >&6
4451 else
4452   ac_check_lib_save_LIBS=$LIBS
4453 LIBS="-lpwdb $pwdblibs $LIBS"
4454 cat >conftest.$ac_ext <<_ACEOF
4455 /* confdefs.h.  */
4456 _ACEOF
4457 cat confdefs.h >>conftest.$ac_ext
4458 cat >>conftest.$ac_ext <<_ACEOF
4459 /* end confdefs.h.  */
4460
4461 /* Override any gcc2 internal prototype to avoid an error.  */
4462 #ifdef __cplusplus
4463 extern "C"
4464 #endif
4465 /* We use char because int might match the return type of a gcc2
4466    builtin and then its argument prototype would still apply.  */
4467 char pwdb_db_name ();
4468 int
4469 main ()
4470 {
4471 pwdb_db_name ();
4472   ;
4473   return 0;
4474 }
4475 _ACEOF
4476 rm -f conftest.$ac_objext conftest$ac_exeext
4477 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4478   (eval $ac_link) 2>conftest.er1
4479   ac_status=$?
4480   grep -v '^ *+' conftest.er1 >conftest.err
4481   rm -f conftest.er1
4482   cat conftest.err >&5
4483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4484   (exit $ac_status); } &&
4485          { ac_try='test -z "$ac_c_werror_flag"
4486                          || test ! -s conftest.err'
4487   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4488   (eval $ac_try) 2>&5
4489   ac_status=$?
4490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4491   (exit $ac_status); }; } &&
4492          { ac_try='test -s conftest$ac_exeext'
4493   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4494   (eval $ac_try) 2>&5
4495   ac_status=$?
4496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4497   (exit $ac_status); }; }; then
4498   ac_cv_lib_pwdb_pwdb_db_name=yes
4499 else
4500   echo "$as_me: failed program was:" >&5
4501 sed 's/^/| /' conftest.$ac_ext >&5
4502
4503 ac_cv_lib_pwdb_pwdb_db_name=no
4504 fi
4505 rm -f conftest.err conftest.$ac_objext \
4506       conftest$ac_exeext conftest.$ac_ext
4507 LIBS=$ac_check_lib_save_LIBS
4508 fi
4509 echo "$as_me:$LINENO: result: $ac_cv_lib_pwdb_pwdb_db_name" >&5
4510 echo "${ECHO_T}$ac_cv_lib_pwdb_pwdb_db_name" >&6
4511 if test $ac_cv_lib_pwdb_pwdb_db_name = yes; then
4512   HAVE_LIBPWDB=yes ; cat >>confdefs.h <<\_ACEOF
4513 #define HAVE_LIBPWDB 1
4514 _ACEOF
4515
4516 else
4517   HAVE_LIBPWDB=no
4518 fi
4519
4520
4521 unset pwdblibs
4522
4523 echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
4524 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
4525 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
4526   echo $ECHO_N "(cached) $ECHO_C" >&6
4527 else
4528   ac_check_lib_save_LIBS=$LIBS
4529 LIBS="-lfl  $LIBS"
4530 cat >conftest.$ac_ext <<_ACEOF
4531 /* confdefs.h.  */
4532 _ACEOF
4533 cat confdefs.h >>conftest.$ac_ext
4534 cat >>conftest.$ac_ext <<_ACEOF
4535 /* end confdefs.h.  */
4536
4537 /* Override any gcc2 internal prototype to avoid an error.  */
4538 #ifdef __cplusplus
4539 extern "C"
4540 #endif
4541 /* We use char because int might match the return type of a gcc2
4542    builtin and then its argument prototype would still apply.  */
4543 char yywrap ();
4544 int
4545 main ()
4546 {
4547 yywrap ();
4548   ;
4549   return 0;
4550 }
4551 _ACEOF
4552 rm -f conftest.$ac_objext conftest$ac_exeext
4553 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4554   (eval $ac_link) 2>conftest.er1
4555   ac_status=$?
4556   grep -v '^ *+' conftest.er1 >conftest.err
4557   rm -f conftest.er1
4558   cat conftest.err >&5
4559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4560   (exit $ac_status); } &&
4561          { ac_try='test -z "$ac_c_werror_flag"
4562                          || test ! -s conftest.err'
4563   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4564   (eval $ac_try) 2>&5
4565   ac_status=$?
4566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4567   (exit $ac_status); }; } &&
4568          { ac_try='test -s conftest$ac_exeext'
4569   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4570   (eval $ac_try) 2>&5
4571   ac_status=$?
4572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4573   (exit $ac_status); }; }; then
4574   ac_cv_lib_fl_yywrap=yes
4575 else
4576   echo "$as_me: failed program was:" >&5
4577 sed 's/^/| /' conftest.$ac_ext >&5
4578
4579 ac_cv_lib_fl_yywrap=no
4580 fi
4581 rm -f conftest.err conftest.$ac_objext \
4582       conftest$ac_exeext conftest.$ac_ext
4583 LIBS=$ac_check_lib_save_LIBS
4584 fi
4585 echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
4586 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
4587 if test $ac_cv_lib_fl_yywrap = yes; then
4588   HAVE_LIBFLEX=yes ; cat >>confdefs.h <<\_ACEOF
4589 #define HAVE_LIBFLEX 1
4590 _ACEOF
4591
4592 else
4593   HAVE_LIBFLEX=no
4594 fi
4595
4596
4597 echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
4598 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
4599 if test "${ac_cv_lib_l_yywrap+set}" = set; then
4600   echo $ECHO_N "(cached) $ECHO_C" >&6
4601 else
4602   ac_check_lib_save_LIBS=$LIBS
4603 LIBS="-ll  $LIBS"
4604 cat >conftest.$ac_ext <<_ACEOF
4605 /* confdefs.h.  */
4606 _ACEOF
4607 cat confdefs.h >>conftest.$ac_ext
4608 cat >>conftest.$ac_ext <<_ACEOF
4609 /* end confdefs.h.  */
4610
4611 /* Override any gcc2 internal prototype to avoid an error.  */
4612 #ifdef __cplusplus
4613 extern "C"
4614 #endif
4615 /* We use char because int might match the return type of a gcc2
4616    builtin and then its argument prototype would still apply.  */
4617 char yywrap ();
4618 int
4619 main ()
4620 {
4621 yywrap ();
4622   ;
4623   return 0;
4624 }
4625 _ACEOF
4626 rm -f conftest.$ac_objext conftest$ac_exeext
4627 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4628   (eval $ac_link) 2>conftest.er1
4629   ac_status=$?
4630   grep -v '^ *+' conftest.er1 >conftest.err
4631   rm -f conftest.er1
4632   cat conftest.err >&5
4633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4634   (exit $ac_status); } &&
4635          { ac_try='test -z "$ac_c_werror_flag"
4636                          || test ! -s conftest.err'
4637   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4638   (eval $ac_try) 2>&5
4639   ac_status=$?
4640   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4641   (exit $ac_status); }; } &&
4642          { ac_try='test -s conftest$ac_exeext'
4643   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4644   (eval $ac_try) 2>&5
4645   ac_status=$?
4646   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4647   (exit $ac_status); }; }; then
4648   ac_cv_lib_l_yywrap=yes
4649 else
4650   echo "$as_me: failed program was:" >&5
4651 sed 's/^/| /' conftest.$ac_ext >&5
4652
4653 ac_cv_lib_l_yywrap=no
4654 fi
4655 rm -f conftest.err conftest.$ac_objext \
4656       conftest$ac_exeext conftest.$ac_ext
4657 LIBS=$ac_check_lib_save_LIBS
4658 fi
4659 echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
4660 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
4661 if test $ac_cv_lib_l_yywrap = yes; then
4662   HAVE_LIBLEX=yes ; cat >>confdefs.h <<\_ACEOF
4663 #define HAVE_LIBLEX 1
4664 _ACEOF
4665
4666 else
4667   HAVE_LIBLEX=no
4668 fi
4669
4670
4671
4672
4673
4674
4675
4676
4677 ac_header_dirent=no
4678 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
4679   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
4680 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
4681 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
4682 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4683   echo $ECHO_N "(cached) $ECHO_C" >&6
4684 else
4685   cat >conftest.$ac_ext <<_ACEOF
4686 /* confdefs.h.  */
4687 _ACEOF
4688 cat confdefs.h >>conftest.$ac_ext
4689 cat >>conftest.$ac_ext <<_ACEOF
4690 /* end confdefs.h.  */
4691 #include <sys/types.h>
4692 #include <$ac_hdr>
4693
4694 int
4695 main ()
4696 {
4697 if ((DIR *) 0)
4698 return 0;
4699   ;
4700   return 0;
4701 }
4702 _ACEOF
4703 rm -f conftest.$ac_objext
4704 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4705   (eval $ac_compile) 2>conftest.er1
4706   ac_status=$?
4707   grep -v '^ *+' conftest.er1 >conftest.err
4708   rm -f conftest.er1
4709   cat conftest.err >&5
4710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4711   (exit $ac_status); } &&
4712          { ac_try='test -z "$ac_c_werror_flag"
4713                          || test ! -s conftest.err'
4714   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4715   (eval $ac_try) 2>&5
4716   ac_status=$?
4717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4718   (exit $ac_status); }; } &&
4719          { ac_try='test -s conftest.$ac_objext'
4720   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4721   (eval $ac_try) 2>&5
4722   ac_status=$?
4723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4724   (exit $ac_status); }; }; then
4725   eval "$as_ac_Header=yes"
4726 else
4727   echo "$as_me: failed program was:" >&5
4728 sed 's/^/| /' conftest.$ac_ext >&5
4729
4730 eval "$as_ac_Header=no"
4731 fi
4732 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4733 fi
4734 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4735 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4736 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4737   cat >>confdefs.h <<_ACEOF
4738 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
4739 _ACEOF
4740
4741 ac_header_dirent=$ac_hdr; break
4742 fi
4743
4744 done
4745 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
4746 if test $ac_header_dirent = dirent.h; then
4747   echo "$as_me:$LINENO: checking for library containing opendir" >&5
4748 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
4749 if test "${ac_cv_search_opendir+set}" = set; then
4750   echo $ECHO_N "(cached) $ECHO_C" >&6
4751 else
4752   ac_func_search_save_LIBS=$LIBS
4753 ac_cv_search_opendir=no
4754 cat >conftest.$ac_ext <<_ACEOF
4755 /* confdefs.h.  */
4756 _ACEOF
4757 cat confdefs.h >>conftest.$ac_ext
4758 cat >>conftest.$ac_ext <<_ACEOF
4759 /* end confdefs.h.  */
4760
4761 /* Override any gcc2 internal prototype to avoid an error.  */
4762 #ifdef __cplusplus
4763 extern "C"
4764 #endif
4765 /* We use char because int might match the return type of a gcc2
4766    builtin and then its argument prototype would still apply.  */
4767 char opendir ();
4768 int
4769 main ()
4770 {
4771 opendir ();
4772   ;
4773   return 0;
4774 }
4775 _ACEOF
4776 rm -f conftest.$ac_objext conftest$ac_exeext
4777 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4778   (eval $ac_link) 2>conftest.er1
4779   ac_status=$?
4780   grep -v '^ *+' conftest.er1 >conftest.err
4781   rm -f conftest.er1
4782   cat conftest.err >&5
4783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4784   (exit $ac_status); } &&
4785          { ac_try='test -z "$ac_c_werror_flag"
4786                          || test ! -s conftest.err'
4787   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4788   (eval $ac_try) 2>&5
4789   ac_status=$?
4790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4791   (exit $ac_status); }; } &&
4792          { ac_try='test -s conftest$ac_exeext'
4793   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4794   (eval $ac_try) 2>&5
4795   ac_status=$?
4796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4797   (exit $ac_status); }; }; then
4798   ac_cv_search_opendir="none required"
4799 else
4800   echo "$as_me: failed program was:" >&5
4801 sed 's/^/| /' conftest.$ac_ext >&5
4802
4803 fi
4804 rm -f conftest.err conftest.$ac_objext \
4805       conftest$ac_exeext conftest.$ac_ext
4806 if test "$ac_cv_search_opendir" = no; then
4807   for ac_lib in dir; do
4808     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
4809     cat >conftest.$ac_ext <<_ACEOF
4810 /* confdefs.h.  */
4811 _ACEOF
4812 cat confdefs.h >>conftest.$ac_ext
4813 cat >>conftest.$ac_ext <<_ACEOF
4814 /* end confdefs.h.  */
4815
4816 /* Override any gcc2 internal prototype to avoid an error.  */
4817 #ifdef __cplusplus
4818 extern "C"
4819 #endif
4820 /* We use char because int might match the return type of a gcc2
4821    builtin and then its argument prototype would still apply.  */
4822 char opendir ();
4823 int
4824 main ()
4825 {
4826 opendir ();
4827   ;
4828   return 0;
4829 }
4830 _ACEOF
4831 rm -f conftest.$ac_objext conftest$ac_exeext
4832 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4833   (eval $ac_link) 2>conftest.er1
4834   ac_status=$?
4835   grep -v '^ *+' conftest.er1 >conftest.err
4836   rm -f conftest.er1
4837   cat conftest.err >&5
4838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4839   (exit $ac_status); } &&
4840          { ac_try='test -z "$ac_c_werror_flag"
4841                          || test ! -s conftest.err'
4842   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4843   (eval $ac_try) 2>&5
4844   ac_status=$?
4845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4846   (exit $ac_status); }; } &&
4847          { ac_try='test -s conftest$ac_exeext'
4848   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4849   (eval $ac_try) 2>&5
4850   ac_status=$?
4851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4852   (exit $ac_status); }; }; then
4853   ac_cv_search_opendir="-l$ac_lib"
4854 break
4855 else
4856   echo "$as_me: failed program was:" >&5
4857 sed 's/^/| /' conftest.$ac_ext >&5
4858
4859 fi
4860 rm -f conftest.err conftest.$ac_objext \
4861       conftest$ac_exeext conftest.$ac_ext
4862   done
4863 fi
4864 LIBS=$ac_func_search_save_LIBS
4865 fi
4866 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
4867 echo "${ECHO_T}$ac_cv_search_opendir" >&6
4868 if test "$ac_cv_search_opendir" != no; then
4869   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
4870
4871 fi
4872
4873 else
4874   echo "$as_me:$LINENO: checking for library containing opendir" >&5
4875 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
4876 if test "${ac_cv_search_opendir+set}" = set; then
4877   echo $ECHO_N "(cached) $ECHO_C" >&6
4878 else
4879   ac_func_search_save_LIBS=$LIBS
4880 ac_cv_search_opendir=no
4881 cat >conftest.$ac_ext <<_ACEOF
4882 /* confdefs.h.  */
4883 _ACEOF
4884 cat confdefs.h >>conftest.$ac_ext
4885 cat >>conftest.$ac_ext <<_ACEOF
4886 /* end confdefs.h.  */
4887
4888 /* Override any gcc2 internal prototype to avoid an error.  */
4889 #ifdef __cplusplus
4890 extern "C"
4891 #endif
4892 /* We use char because int might match the return type of a gcc2
4893    builtin and then its argument prototype would still apply.  */
4894 char opendir ();
4895 int
4896 main ()
4897 {
4898 opendir ();
4899   ;
4900   return 0;
4901 }
4902 _ACEOF
4903 rm -f conftest.$ac_objext conftest$ac_exeext
4904 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4905   (eval $ac_link) 2>conftest.er1
4906   ac_status=$?
4907   grep -v '^ *+' conftest.er1 >conftest.err
4908   rm -f conftest.er1
4909   cat conftest.err >&5
4910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4911   (exit $ac_status); } &&
4912          { ac_try='test -z "$ac_c_werror_flag"
4913                          || test ! -s conftest.err'
4914   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4915   (eval $ac_try) 2>&5
4916   ac_status=$?
4917   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4918   (exit $ac_status); }; } &&
4919          { ac_try='test -s conftest$ac_exeext'
4920   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4921   (eval $ac_try) 2>&5
4922   ac_status=$?
4923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4924   (exit $ac_status); }; }; then
4925   ac_cv_search_opendir="none required"
4926 else
4927   echo "$as_me: failed program was:" >&5
4928 sed 's/^/| /' conftest.$ac_ext >&5
4929
4930 fi
4931 rm -f conftest.err conftest.$ac_objext \
4932       conftest$ac_exeext conftest.$ac_ext
4933 if test "$ac_cv_search_opendir" = no; then
4934   for ac_lib in x; do
4935     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
4936     cat >conftest.$ac_ext <<_ACEOF
4937 /* confdefs.h.  */
4938 _ACEOF
4939 cat confdefs.h >>conftest.$ac_ext
4940 cat >>conftest.$ac_ext <<_ACEOF
4941 /* end confdefs.h.  */
4942
4943 /* Override any gcc2 internal prototype to avoid an error.  */
4944 #ifdef __cplusplus
4945 extern "C"
4946 #endif
4947 /* We use char because int might match the return type of a gcc2
4948    builtin and then its argument prototype would still apply.  */
4949 char opendir ();
4950 int
4951 main ()
4952 {
4953 opendir ();
4954   ;
4955   return 0;
4956 }
4957 _ACEOF
4958 rm -f conftest.$ac_objext conftest$ac_exeext
4959 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4960   (eval $ac_link) 2>conftest.er1
4961   ac_status=$?
4962   grep -v '^ *+' conftest.er1 >conftest.err
4963   rm -f conftest.er1
4964   cat conftest.err >&5
4965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4966   (exit $ac_status); } &&
4967          { ac_try='test -z "$ac_c_werror_flag"
4968                          || test ! -s conftest.err'
4969   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4970   (eval $ac_try) 2>&5
4971   ac_status=$?
4972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4973   (exit $ac_status); }; } &&
4974          { ac_try='test -s conftest$ac_exeext'
4975   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4976   (eval $ac_try) 2>&5
4977   ac_status=$?
4978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4979   (exit $ac_status); }; }; then
4980   ac_cv_search_opendir="-l$ac_lib"
4981 break
4982 else
4983   echo "$as_me: failed program was:" >&5
4984 sed 's/^/| /' conftest.$ac_ext >&5
4985
4986 fi
4987 rm -f conftest.err conftest.$ac_objext \
4988       conftest$ac_exeext conftest.$ac_ext
4989   done
4990 fi
4991 LIBS=$ac_func_search_save_LIBS
4992 fi
4993 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
4994 echo "${ECHO_T}$ac_cv_search_opendir" >&6
4995 if test "$ac_cv_search_opendir" != no; then
4996   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
4997
4998 fi
4999
5000 fi
5001
5002 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5003 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5004 if test "${ac_cv_header_stdc+set}" = set; then
5005   echo $ECHO_N "(cached) $ECHO_C" >&6
5006 else
5007   cat >conftest.$ac_ext <<_ACEOF
5008 /* confdefs.h.  */
5009 _ACEOF
5010 cat confdefs.h >>conftest.$ac_ext
5011 cat >>conftest.$ac_ext <<_ACEOF
5012 /* end confdefs.h.  */
5013 #include <stdlib.h>
5014 #include <stdarg.h>
5015 #include <string.h>
5016 #include <float.h>
5017
5018 int
5019 main ()
5020 {
5021
5022   ;
5023   return 0;
5024 }
5025 _ACEOF
5026 rm -f conftest.$ac_objext
5027 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5028   (eval $ac_compile) 2>conftest.er1
5029   ac_status=$?
5030   grep -v '^ *+' conftest.er1 >conftest.err
5031   rm -f conftest.er1
5032   cat conftest.err >&5
5033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5034   (exit $ac_status); } &&
5035          { ac_try='test -z "$ac_c_werror_flag"
5036                          || test ! -s conftest.err'
5037   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5038   (eval $ac_try) 2>&5
5039   ac_status=$?
5040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5041   (exit $ac_status); }; } &&
5042          { ac_try='test -s conftest.$ac_objext'
5043   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5044   (eval $ac_try) 2>&5
5045   ac_status=$?
5046   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5047   (exit $ac_status); }; }; then
5048   ac_cv_header_stdc=yes
5049 else
5050   echo "$as_me: failed program was:" >&5
5051 sed 's/^/| /' conftest.$ac_ext >&5
5052
5053 ac_cv_header_stdc=no
5054 fi
5055 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5056
5057 if test $ac_cv_header_stdc = yes; then
5058   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5059   cat >conftest.$ac_ext <<_ACEOF
5060 /* confdefs.h.  */
5061 _ACEOF
5062 cat confdefs.h >>conftest.$ac_ext
5063 cat >>conftest.$ac_ext <<_ACEOF
5064 /* end confdefs.h.  */
5065 #include <string.h>
5066
5067 _ACEOF
5068 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5069   $EGREP "memchr" >/dev/null 2>&1; then
5070   :
5071 else
5072   ac_cv_header_stdc=no
5073 fi
5074 rm -f conftest*
5075
5076 fi
5077
5078 if test $ac_cv_header_stdc = yes; then
5079   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5080   cat >conftest.$ac_ext <<_ACEOF
5081 /* confdefs.h.  */
5082 _ACEOF
5083 cat confdefs.h >>conftest.$ac_ext
5084 cat >>conftest.$ac_ext <<_ACEOF
5085 /* end confdefs.h.  */
5086 #include <stdlib.h>
5087
5088 _ACEOF
5089 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5090   $EGREP "free" >/dev/null 2>&1; then
5091   :
5092 else
5093   ac_cv_header_stdc=no
5094 fi
5095 rm -f conftest*
5096
5097 fi
5098
5099 if test $ac_cv_header_stdc = yes; then
5100   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5101   if test "$cross_compiling" = yes; then
5102   :
5103 else
5104   cat >conftest.$ac_ext <<_ACEOF
5105 /* confdefs.h.  */
5106 _ACEOF
5107 cat confdefs.h >>conftest.$ac_ext
5108 cat >>conftest.$ac_ext <<_ACEOF
5109 /* end confdefs.h.  */
5110 #include <ctype.h>
5111 #if ((' ' & 0x0FF) == 0x020)
5112 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5113 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5114 #else
5115 # define ISLOWER(c) \
5116                    (('a' <= (c) && (c) <= 'i') \
5117                      || ('j' <= (c) && (c) <= 'r') \
5118                      || ('s' <= (c) && (c) <= 'z'))
5119 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5120 #endif
5121
5122 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5123 int
5124 main ()
5125 {
5126   int i;
5127   for (i = 0; i < 256; i++)
5128     if (XOR (islower (i), ISLOWER (i))
5129         || toupper (i) != TOUPPER (i))
5130       exit(2);
5131   exit (0);
5132 }
5133 _ACEOF
5134 rm -f conftest$ac_exeext
5135 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5136   (eval $ac_link) 2>&5
5137   ac_status=$?
5138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5139   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5140   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5141   (eval $ac_try) 2>&5
5142   ac_status=$?
5143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5144   (exit $ac_status); }; }; then
5145   :
5146 else
5147   echo "$as_me: program exited with status $ac_status" >&5
5148 echo "$as_me: failed program was:" >&5
5149 sed 's/^/| /' conftest.$ac_ext >&5
5150
5151 ( exit $ac_status )
5152 ac_cv_header_stdc=no
5153 fi
5154 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5155 fi
5156 fi
5157 fi
5158 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5159 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5160 if test $ac_cv_header_stdc = yes; then
5161
5162 cat >>confdefs.h <<\_ACEOF
5163 #define STDC_HEADERS 1
5164 _ACEOF
5165
5166 fi
5167
5168 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
5169 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
5170 if test "${ac_cv_header_sys_wait_h+set}" = set; then
5171   echo $ECHO_N "(cached) $ECHO_C" >&6
5172 else
5173   cat >conftest.$ac_ext <<_ACEOF
5174 /* confdefs.h.  */
5175 _ACEOF
5176 cat confdefs.h >>conftest.$ac_ext
5177 cat >>conftest.$ac_ext <<_ACEOF
5178 /* end confdefs.h.  */
5179 #include <sys/types.h>
5180 #include <sys/wait.h>
5181 #ifndef WEXITSTATUS
5182 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
5183 #endif
5184 #ifndef WIFEXITED
5185 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
5186 #endif
5187
5188 int
5189 main ()
5190 {
5191   int s;
5192   wait (&s);
5193   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
5194   ;
5195   return 0;
5196 }
5197 _ACEOF
5198 rm -f conftest.$ac_objext
5199 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5200   (eval $ac_compile) 2>conftest.er1
5201   ac_status=$?
5202   grep -v '^ *+' conftest.er1 >conftest.err
5203   rm -f conftest.er1
5204   cat conftest.err >&5
5205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5206   (exit $ac_status); } &&
5207          { ac_try='test -z "$ac_c_werror_flag"
5208                          || test ! -s conftest.err'
5209   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5210   (eval $ac_try) 2>&5
5211   ac_status=$?
5212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5213   (exit $ac_status); }; } &&
5214          { ac_try='test -s conftest.$ac_objext'
5215   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5216   (eval $ac_try) 2>&5
5217   ac_status=$?
5218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5219   (exit $ac_status); }; }; then
5220   ac_cv_header_sys_wait_h=yes
5221 else
5222   echo "$as_me: failed program was:" >&5
5223 sed 's/^/| /' conftest.$ac_ext >&5
5224
5225 ac_cv_header_sys_wait_h=no
5226 fi
5227 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5228 fi
5229 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
5230 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
5231 if test $ac_cv_header_sys_wait_h = yes; then
5232
5233 cat >>confdefs.h <<\_ACEOF
5234 #define HAVE_SYS_WAIT_H 1
5235 _ACEOF
5236
5237 fi
5238
5239
5240
5241
5242
5243
5244
5245
5246
5247
5248
5249 for ac_header in fcntl.h limits.h malloc.h sys/file.h sys/ioctl.h sys/time.h syslog.h termio.h unistd.h sys/fsuid.h
5250 do
5251 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5252 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5253   echo "$as_me:$LINENO: checking for $ac_header" >&5
5254 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5255 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5256   echo $ECHO_N "(cached) $ECHO_C" >&6
5257 fi
5258 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5259 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5260 else
5261   # Is the header compilable?
5262 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5263 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5264 cat >conftest.$ac_ext <<_ACEOF
5265 /* confdefs.h.  */
5266 _ACEOF
5267 cat confdefs.h >>conftest.$ac_ext
5268 cat >>conftest.$ac_ext <<_ACEOF
5269 /* end confdefs.h.  */
5270 $ac_includes_default
5271 #include <$ac_header>
5272 _ACEOF
5273 rm -f conftest.$ac_objext
5274 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5275   (eval $ac_compile) 2>conftest.er1
5276   ac_status=$?
5277   grep -v '^ *+' conftest.er1 >conftest.err
5278   rm -f conftest.er1
5279   cat conftest.err >&5
5280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5281   (exit $ac_status); } &&
5282          { ac_try='test -z "$ac_c_werror_flag"
5283                          || test ! -s conftest.err'
5284   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5285   (eval $ac_try) 2>&5
5286   ac_status=$?
5287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5288   (exit $ac_status); }; } &&
5289          { ac_try='test -s conftest.$ac_objext'
5290   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5291   (eval $ac_try) 2>&5
5292   ac_status=$?
5293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5294   (exit $ac_status); }; }; then
5295   ac_header_compiler=yes
5296 else
5297   echo "$as_me: failed program was:" >&5
5298 sed 's/^/| /' conftest.$ac_ext >&5
5299
5300 ac_header_compiler=no
5301 fi
5302 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5303 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5304 echo "${ECHO_T}$ac_header_compiler" >&6
5305
5306 # Is the header present?
5307 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5308 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5309 cat >conftest.$ac_ext <<_ACEOF
5310 /* confdefs.h.  */
5311 _ACEOF
5312 cat confdefs.h >>conftest.$ac_ext
5313 cat >>conftest.$ac_ext <<_ACEOF
5314 /* end confdefs.h.  */
5315 #include <$ac_header>
5316 _ACEOF
5317 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5318   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5319   ac_status=$?
5320   grep -v '^ *+' conftest.er1 >conftest.err
5321   rm -f conftest.er1
5322   cat conftest.err >&5
5323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5324   (exit $ac_status); } >/dev/null; then
5325   if test -s conftest.err; then
5326     ac_cpp_err=$ac_c_preproc_warn_flag
5327     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5328   else
5329     ac_cpp_err=
5330   fi
5331 else
5332   ac_cpp_err=yes
5333 fi
5334 if test -z "$ac_cpp_err"; then
5335   ac_header_preproc=yes
5336 else
5337   echo "$as_me: failed program was:" >&5
5338 sed 's/^/| /' conftest.$ac_ext >&5
5339
5340   ac_header_preproc=no
5341 fi
5342 rm -f conftest.err conftest.$ac_ext
5343 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5344 echo "${ECHO_T}$ac_header_preproc" >&6
5345
5346 # So?  What about this header?
5347 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5348   yes:no: )
5349     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5350 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5351     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5352 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5353     ac_header_preproc=yes
5354     ;;
5355   no:yes:* )
5356     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5357 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5358     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5359 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5360     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5361 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5362     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5363 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5364     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5365 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5366     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5367 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5368     (
5369       cat <<\_ASBOX
5370 ## ------------------------------------------ ##
5371 ## Report this to the AC_PACKAGE_NAME lists.  ##
5372 ## ------------------------------------------ ##
5373 _ASBOX
5374     ) |
5375       sed "s/^/$as_me: WARNING:     /" >&2
5376     ;;
5377 esac
5378 echo "$as_me:$LINENO: checking for $ac_header" >&5
5379 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5380 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5381   echo $ECHO_N "(cached) $ECHO_C" >&6
5382 else
5383   eval "$as_ac_Header=\$ac_header_preproc"
5384 fi
5385 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5386 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5387
5388 fi
5389 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5390   cat >>confdefs.h <<_ACEOF
5391 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5392 _ACEOF
5393
5394 fi
5395
5396 done
5397
5398
5399
5400 for ac_header in features.h
5401 do
5402 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5403 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5404   echo "$as_me:$LINENO: checking for $ac_header" >&5
5405 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5406 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5407   echo $ECHO_N "(cached) $ECHO_C" >&6
5408 fi
5409 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5410 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5411 else
5412   # Is the header compilable?
5413 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5414 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5415 cat >conftest.$ac_ext <<_ACEOF
5416 /* confdefs.h.  */
5417 _ACEOF
5418 cat confdefs.h >>conftest.$ac_ext
5419 cat >>conftest.$ac_ext <<_ACEOF
5420 /* end confdefs.h.  */
5421 $ac_includes_default
5422 #include <$ac_header>
5423 _ACEOF
5424 rm -f conftest.$ac_objext
5425 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5426   (eval $ac_compile) 2>conftest.er1
5427   ac_status=$?
5428   grep -v '^ *+' conftest.er1 >conftest.err
5429   rm -f conftest.er1
5430   cat conftest.err >&5
5431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5432   (exit $ac_status); } &&
5433          { ac_try='test -z "$ac_c_werror_flag"
5434                          || test ! -s conftest.err'
5435   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5436   (eval $ac_try) 2>&5
5437   ac_status=$?
5438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5439   (exit $ac_status); }; } &&
5440          { ac_try='test -s conftest.$ac_objext'
5441   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5442   (eval $ac_try) 2>&5
5443   ac_status=$?
5444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5445   (exit $ac_status); }; }; then
5446   ac_header_compiler=yes
5447 else
5448   echo "$as_me: failed program was:" >&5
5449 sed 's/^/| /' conftest.$ac_ext >&5
5450
5451 ac_header_compiler=no
5452 fi
5453 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5454 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5455 echo "${ECHO_T}$ac_header_compiler" >&6
5456
5457 # Is the header present?
5458 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5459 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5460 cat >conftest.$ac_ext <<_ACEOF
5461 /* confdefs.h.  */
5462 _ACEOF
5463 cat confdefs.h >>conftest.$ac_ext
5464 cat >>conftest.$ac_ext <<_ACEOF
5465 /* end confdefs.h.  */
5466 #include <$ac_header>
5467 _ACEOF
5468 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5469   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5470   ac_status=$?
5471   grep -v '^ *+' conftest.er1 >conftest.err
5472   rm -f conftest.er1
5473   cat conftest.err >&5
5474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5475   (exit $ac_status); } >/dev/null; then
5476   if test -s conftest.err; then
5477     ac_cpp_err=$ac_c_preproc_warn_flag
5478     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5479   else
5480     ac_cpp_err=
5481   fi
5482 else
5483   ac_cpp_err=yes
5484 fi
5485 if test -z "$ac_cpp_err"; then
5486   ac_header_preproc=yes
5487 else
5488   echo "$as_me: failed program was:" >&5
5489 sed 's/^/| /' conftest.$ac_ext >&5
5490
5491   ac_header_preproc=no
5492 fi
5493 rm -f conftest.err conftest.$ac_ext
5494 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5495 echo "${ECHO_T}$ac_header_preproc" >&6
5496
5497 # So?  What about this header?
5498 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5499   yes:no: )
5500     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5501 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5502     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5503 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5504     ac_header_preproc=yes
5505     ;;
5506   no:yes:* )
5507     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5508 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5509     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5510 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5511     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5512 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5513     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5514 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5515     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5516 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5517     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5518 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5519     (
5520       cat <<\_ASBOX
5521 ## ------------------------------------------ ##
5522 ## Report this to the AC_PACKAGE_NAME lists.  ##
5523 ## ------------------------------------------ ##
5524 _ASBOX
5525     ) |
5526       sed "s/^/$as_me: WARNING:     /" >&2
5527     ;;
5528 esac
5529 echo "$as_me:$LINENO: checking for $ac_header" >&5
5530 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5531 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5532   echo $ECHO_N "(cached) $ECHO_C" >&6
5533 else
5534   eval "$as_ac_Header=\$ac_header_preproc"
5535 fi
5536 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5537 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5538
5539 fi
5540 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5541   cat >>confdefs.h <<_ACEOF
5542 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5543 _ACEOF
5544
5545 fi
5546
5547 done
5548
5549
5550
5551 for ac_header in crypt.h
5552 do
5553 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5554 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5555   echo "$as_me:$LINENO: checking for $ac_header" >&5
5556 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5557 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5558   echo $ECHO_N "(cached) $ECHO_C" >&6
5559 fi
5560 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5561 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5562 else
5563   # Is the header compilable?
5564 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5565 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5566 cat >conftest.$ac_ext <<_ACEOF
5567 /* confdefs.h.  */
5568 _ACEOF
5569 cat confdefs.h >>conftest.$ac_ext
5570 cat >>conftest.$ac_ext <<_ACEOF
5571 /* end confdefs.h.  */
5572 $ac_includes_default
5573 #include <$ac_header>
5574 _ACEOF
5575 rm -f conftest.$ac_objext
5576 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5577   (eval $ac_compile) 2>conftest.er1
5578   ac_status=$?
5579   grep -v '^ *+' conftest.er1 >conftest.err
5580   rm -f conftest.er1
5581   cat conftest.err >&5
5582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5583   (exit $ac_status); } &&
5584          { ac_try='test -z "$ac_c_werror_flag"
5585                          || test ! -s conftest.err'
5586   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5587   (eval $ac_try) 2>&5
5588   ac_status=$?
5589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5590   (exit $ac_status); }; } &&
5591          { ac_try='test -s conftest.$ac_objext'
5592   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5593   (eval $ac_try) 2>&5
5594   ac_status=$?
5595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5596   (exit $ac_status); }; }; then
5597   ac_header_compiler=yes
5598 else
5599   echo "$as_me: failed program was:" >&5
5600 sed 's/^/| /' conftest.$ac_ext >&5
5601
5602 ac_header_compiler=no
5603 fi
5604 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5605 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5606 echo "${ECHO_T}$ac_header_compiler" >&6
5607
5608 # Is the header present?
5609 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5610 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5611 cat >conftest.$ac_ext <<_ACEOF
5612 /* confdefs.h.  */
5613 _ACEOF
5614 cat confdefs.h >>conftest.$ac_ext
5615 cat >>conftest.$ac_ext <<_ACEOF
5616 /* end confdefs.h.  */
5617 #include <$ac_header>
5618 _ACEOF
5619 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5620   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5621   ac_status=$?
5622   grep -v '^ *+' conftest.er1 >conftest.err
5623   rm -f conftest.er1
5624   cat conftest.err >&5
5625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5626   (exit $ac_status); } >/dev/null; then
5627   if test -s conftest.err; then
5628     ac_cpp_err=$ac_c_preproc_warn_flag
5629     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5630   else
5631     ac_cpp_err=
5632   fi
5633 else
5634   ac_cpp_err=yes
5635 fi
5636 if test -z "$ac_cpp_err"; then
5637   ac_header_preproc=yes
5638 else
5639   echo "$as_me: failed program was:" >&5
5640 sed 's/^/| /' conftest.$ac_ext >&5
5641
5642   ac_header_preproc=no
5643 fi
5644 rm -f conftest.err conftest.$ac_ext
5645 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5646 echo "${ECHO_T}$ac_header_preproc" >&6
5647
5648 # So?  What about this header?
5649 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5650   yes:no: )
5651     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5652 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5653     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5654 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5655     ac_header_preproc=yes
5656     ;;
5657   no:yes:* )
5658     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5659 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5660     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5661 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5662     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5663 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5664     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5665 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5666     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5667 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5668     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5669 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5670     (
5671       cat <<\_ASBOX
5672 ## ------------------------------------------ ##
5673 ## Report this to the AC_PACKAGE_NAME lists.  ##
5674 ## ------------------------------------------ ##
5675 _ASBOX
5676     ) |
5677       sed "s/^/$as_me: WARNING:     /" >&2
5678     ;;
5679 esac
5680 echo "$as_me:$LINENO: checking for $ac_header" >&5
5681 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5682 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5683   echo $ECHO_N "(cached) $ECHO_C" >&6
5684 else
5685   eval "$as_ac_Header=\$ac_header_preproc"
5686 fi
5687 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5688 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5689
5690 fi
5691 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5692   cat >>confdefs.h <<_ACEOF
5693 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5694 _ACEOF
5695
5696 fi
5697
5698 done
5699
5700
5701
5702
5703 for ac_header in ndbm.h db.h
5704 do
5705 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5706 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5707   echo "$as_me:$LINENO: checking for $ac_header" >&5
5708 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5709 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5710   echo $ECHO_N "(cached) $ECHO_C" >&6
5711 fi
5712 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5713 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5714 else
5715   # Is the header compilable?
5716 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5717 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5718 cat >conftest.$ac_ext <<_ACEOF
5719 /* confdefs.h.  */
5720 _ACEOF
5721 cat confdefs.h >>conftest.$ac_ext
5722 cat >>conftest.$ac_ext <<_ACEOF
5723 /* end confdefs.h.  */
5724 $ac_includes_default
5725 #include <$ac_header>
5726 _ACEOF
5727 rm -f conftest.$ac_objext
5728 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5729   (eval $ac_compile) 2>conftest.er1
5730   ac_status=$?
5731   grep -v '^ *+' conftest.er1 >conftest.err
5732   rm -f conftest.er1
5733   cat conftest.err >&5
5734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5735   (exit $ac_status); } &&
5736          { ac_try='test -z "$ac_c_werror_flag"
5737                          || test ! -s conftest.err'
5738   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5739   (eval $ac_try) 2>&5
5740   ac_status=$?
5741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5742   (exit $ac_status); }; } &&
5743          { ac_try='test -s conftest.$ac_objext'
5744   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5745   (eval $ac_try) 2>&5
5746   ac_status=$?
5747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5748   (exit $ac_status); }; }; then
5749   ac_header_compiler=yes
5750 else
5751   echo "$as_me: failed program was:" >&5
5752 sed 's/^/| /' conftest.$ac_ext >&5
5753
5754 ac_header_compiler=no
5755 fi
5756 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5757 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5758 echo "${ECHO_T}$ac_header_compiler" >&6
5759
5760 # Is the header present?
5761 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5762 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5763 cat >conftest.$ac_ext <<_ACEOF
5764 /* confdefs.h.  */
5765 _ACEOF
5766 cat confdefs.h >>conftest.$ac_ext
5767 cat >>conftest.$ac_ext <<_ACEOF
5768 /* end confdefs.h.  */
5769 #include <$ac_header>
5770 _ACEOF
5771 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5772   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5773   ac_status=$?
5774   grep -v '^ *+' conftest.er1 >conftest.err
5775   rm -f conftest.er1
5776   cat conftest.err >&5
5777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5778   (exit $ac_status); } >/dev/null; then
5779   if test -s conftest.err; then
5780     ac_cpp_err=$ac_c_preproc_warn_flag
5781     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5782   else
5783     ac_cpp_err=
5784   fi
5785 else
5786   ac_cpp_err=yes
5787 fi
5788 if test -z "$ac_cpp_err"; then
5789   ac_header_preproc=yes
5790 else
5791   echo "$as_me: failed program was:" >&5
5792 sed 's/^/| /' conftest.$ac_ext >&5
5793
5794   ac_header_preproc=no
5795 fi
5796 rm -f conftest.err conftest.$ac_ext
5797 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5798 echo "${ECHO_T}$ac_header_preproc" >&6
5799
5800 # So?  What about this header?
5801 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5802   yes:no: )
5803     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5804 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5805     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5806 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5807     ac_header_preproc=yes
5808     ;;
5809   no:yes:* )
5810     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5811 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5812     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5813 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5814     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5815 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5816     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5817 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5818     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5819 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5820     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5821 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5822     (
5823       cat <<\_ASBOX
5824 ## ------------------------------------------ ##
5825 ## Report this to the AC_PACKAGE_NAME lists.  ##
5826 ## ------------------------------------------ ##
5827 _ASBOX
5828     ) |
5829       sed "s/^/$as_me: WARNING:     /" >&2
5830     ;;
5831 esac
5832 echo "$as_me:$LINENO: checking for $ac_header" >&5
5833 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5834 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5835   echo $ECHO_N "(cached) $ECHO_C" >&6
5836 else
5837   eval "$as_ac_Header=\$ac_header_preproc"
5838 fi
5839 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5840 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5841
5842 fi
5843 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5844   cat >>confdefs.h <<_ACEOF
5845 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5846 _ACEOF
5847
5848 fi
5849
5850 done
5851
5852 HAVE_NDBM_H=$ac_cv_header_ndbm_h
5853
5854
5855
5856
5857
5858 for ac_header in lastlog.h utmp.h utmpx.h
5859 do
5860 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5861 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5862   echo "$as_me:$LINENO: checking for $ac_header" >&5
5863 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5864 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5865   echo $ECHO_N "(cached) $ECHO_C" >&6
5866 fi
5867 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5868 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5869 else
5870   # Is the header compilable?
5871 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5872 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5873 cat >conftest.$ac_ext <<_ACEOF
5874 /* confdefs.h.  */
5875 _ACEOF
5876 cat confdefs.h >>conftest.$ac_ext
5877 cat >>conftest.$ac_ext <<_ACEOF
5878 /* end confdefs.h.  */
5879 $ac_includes_default
5880 #include <$ac_header>
5881 _ACEOF
5882 rm -f conftest.$ac_objext
5883 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5884   (eval $ac_compile) 2>conftest.er1
5885   ac_status=$?
5886   grep -v '^ *+' conftest.er1 >conftest.err
5887   rm -f conftest.er1
5888   cat conftest.err >&5
5889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5890   (exit $ac_status); } &&
5891          { ac_try='test -z "$ac_c_werror_flag"
5892                          || test ! -s conftest.err'
5893   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5894   (eval $ac_try) 2>&5
5895   ac_status=$?
5896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5897   (exit $ac_status); }; } &&
5898          { ac_try='test -s conftest.$ac_objext'
5899   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5900   (eval $ac_try) 2>&5
5901   ac_status=$?
5902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5903   (exit $ac_status); }; }; then
5904   ac_header_compiler=yes
5905 else
5906   echo "$as_me: failed program was:" >&5
5907 sed 's/^/| /' conftest.$ac_ext >&5
5908
5909 ac_header_compiler=no
5910 fi
5911 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5912 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5913 echo "${ECHO_T}$ac_header_compiler" >&6
5914
5915 # Is the header present?
5916 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5917 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5918 cat >conftest.$ac_ext <<_ACEOF
5919 /* confdefs.h.  */
5920 _ACEOF
5921 cat confdefs.h >>conftest.$ac_ext
5922 cat >>conftest.$ac_ext <<_ACEOF
5923 /* end confdefs.h.  */
5924 #include <$ac_header>
5925 _ACEOF
5926 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5927   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5928   ac_status=$?
5929   grep -v '^ *+' conftest.er1 >conftest.err
5930   rm -f conftest.er1
5931   cat conftest.err >&5
5932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5933   (exit $ac_status); } >/dev/null; then
5934   if test -s conftest.err; then
5935     ac_cpp_err=$ac_c_preproc_warn_flag
5936     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5937   else
5938     ac_cpp_err=
5939   fi
5940 else
5941   ac_cpp_err=yes
5942 fi
5943 if test -z "$ac_cpp_err"; then
5944   ac_header_preproc=yes
5945 else
5946   echo "$as_me: failed program was:" >&5
5947 sed 's/^/| /' conftest.$ac_ext >&5
5948
5949   ac_header_preproc=no
5950 fi
5951 rm -f conftest.err conftest.$ac_ext
5952 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5953 echo "${ECHO_T}$ac_header_preproc" >&6
5954
5955 # So?  What about this header?
5956 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5957   yes:no: )
5958     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5959 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5960     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5961 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5962     ac_header_preproc=yes
5963     ;;
5964   no:yes:* )
5965     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5966 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5967     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5968 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5969     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5970 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5971     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5972 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5973     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5974 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5975     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5976 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5977     (
5978       cat <<\_ASBOX
5979 ## ------------------------------------------ ##
5980 ## Report this to the AC_PACKAGE_NAME lists.  ##
5981 ## ------------------------------------------ ##
5982 _ASBOX
5983     ) |
5984       sed "s/^/$as_me: WARNING:     /" >&2
5985     ;;
5986 esac
5987 echo "$as_me:$LINENO: checking for $ac_header" >&5
5988 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5989 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5990   echo $ECHO_N "(cached) $ECHO_C" >&6
5991 else
5992   eval "$as_ac_Header=\$ac_header_preproc"
5993 fi
5994 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5995 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5996
5997 fi
5998 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5999   cat >>confdefs.h <<_ACEOF
6000 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6001 _ACEOF
6002
6003 fi
6004
6005 done
6006
6007
6008
6009 echo "$as_me:$LINENO: checking path to cracklib dictionary" >&5
6010 echo $ECHO_N "checking path to cracklib dictionary... $ECHO_C" >&6
6011 DICT_DIR_CANDIDATES="/usr/lib /usr/share/dict /usr/share/lib \
6012   /usr/local/lib /usr/local/share/lib /usr/share/cracklib"
6013 DICT_FILE_CANDIDATES="pw_dict cracklib_dict"
6014 CRACKLIB_DICTPATH=""
6015 for d in $DICT_DIR_CANDIDATES ; do
6016       for f in $DICT_FILE_CANDIDATES ; do
6017               if test -r $d/$f.hwm ; then
6018                       CRACKLIB_DICTPATH=$d/$f
6019                       break 2
6020               elif test -r $d/dict/$f.hwm ; then
6021                       CRACKLIB_DICTPATH=$d/dict/$f
6022                       break 2
6023               fi
6024       done
6025 done
6026 if test -z "$CRACKLIB_DICTPATH" ; then
6027       { echo "$as_me:$LINENO: WARNING: none found - pam_cracklib will not be built" >&5
6028 echo "$as_me: WARNING: none found - pam_cracklib will not be built" >&2;}
6029 else
6030       echo "$as_me:$LINENO: result: $CRACKLIB_DICTPATH" >&5
6031 echo "${ECHO_T}$CRACKLIB_DICTPATH" >&6
6032 fi
6033
6034
6035
6036 GCC_WARNINGS="-Wall -Wwrite-strings \
6037         -Wpointer-arith -Wcast-qual -Wcast-align \
6038         -Wstrict-prototypes -Wmissing-prototypes \
6039         -Wnested-externs -Winline -Wshadow"
6040
6041 if test "$GCC" = yes; then
6042         CC=gcc                          ;
6043 ### May need per-OS attention
6044 ### Example: -D_POSIX_SOURCE: needed on Linux but harms Solaris.
6045         case $OS in
6046         linux)
6047                 OS_CFLAGS=
6048                 LD_D="$CC -shared $LDFLAGS"
6049                 WARNINGS="$GCC_WARNINGS"
6050                 PIC="-fPIC"
6051                 DYNTYPE=so
6052                 LD=gcc
6053                 LD_L="$CC -shared $LDFLAGS"
6054                 RANLIB=:
6055                 STRIP=strip
6056                 CC_STATIC="-Xlinker -export-dynamic"
6057                 ;;
6058         sunos)
6059                 OS_CFLAGS="-ansi -pedantic"
6060                 LD_D="gcc -shared -Xlinker -x"
6061                 WARNINGS="$GCC_WARNINGS"
6062                 PIC="-fPIC"
6063                 DYNTYPE=so
6064                 LD=ld
6065                 LD_L="$LD -x -shared"
6066                 RANLIB=ranlib
6067                 STRIP=strip
6068                 CC_STATIC="-Xlinker -export-dynamic"
6069                 ;;
6070         aix)
6071                 OS_CFLAGS=""
6072                 DYNTYPE=lo
6073                 LD=ld
6074                 LD_L=ld -bexpall -bM:SRE -bnoentry
6075                 LD_D="$LD_L"
6076                 RANLIB=ranlib
6077                 STRIP=strip
6078                 ;;
6079         *)
6080                 OS_CFLAGS=""
6081                 ;;
6082         esac
6083 else
6084 ###
6085 ### Non-gcc needs attention on per-OS basis
6086 ###
6087         case "$OS" in
6088         darwin)
6089 # add some stuff here (see sourceforge bug 534205)
6090 # DOCDIR=/System/Documentation/Administration/Libraries/PAM
6091 # MANDIR=/usr/share/man
6092                 ;;
6093         solaris)
6094             ### Support for Solaris-C
6095             OS_CFLAGS=""
6096             WARNINGS=""
6097             PIC="-K pic"
6098             LD=ld
6099             LD_D="cc -z text -G -R."
6100             LD_L="$LD_D"
6101             RANLIB=ranlib
6102             STRIP=strip
6103             CC_STATIC=
6104             ;;
6105         irix*)
6106             OSRELEASE=`uname -r`
6107             if test "$OSRELEASE" = 6.5; then
6108                 OS_CFLAGS=""
6109                 WARNINGS="-fullwarn"
6110                 PIC=                    #PIC code is default for IRIX
6111                 LD="cc -shared"         # modules friendly approach
6112                 LD_D="cc -shared"
6113                 LD_L="ld -G -z redlocsym"
6114                 RANLIB=echo
6115                 STRIP=strip
6116                 CC_STATIC=
6117             else
6118                 echo "IRIX prior to 6.5 not allowed for"
6119                 exit
6120             fi
6121             ;;
6122        *) echo "Native compiler on $OS is not yet supported"
6123                exit
6124             ;;
6125        esac
6126 fi
6127
6128
6129
6130
6131
6132
6133
6134
6135
6136
6137
6138
6139 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
6140 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
6141 if test "${ac_cv_c_bigendian+set}" = set; then
6142   echo $ECHO_N "(cached) $ECHO_C" >&6
6143 else
6144   # See if sys/param.h defines the BYTE_ORDER macro.
6145 cat >conftest.$ac_ext <<_ACEOF
6146 /* confdefs.h.  */
6147 _ACEOF
6148 cat confdefs.h >>conftest.$ac_ext
6149 cat >>conftest.$ac_ext <<_ACEOF
6150 /* end confdefs.h.  */
6151 #include <sys/types.h>
6152 #include <sys/param.h>
6153
6154 int
6155 main ()
6156 {
6157 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
6158  bogus endian macros
6159 #endif
6160
6161   ;
6162   return 0;
6163 }
6164 _ACEOF
6165 rm -f conftest.$ac_objext
6166 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6167   (eval $ac_compile) 2>conftest.er1
6168   ac_status=$?
6169   grep -v '^ *+' conftest.er1 >conftest.err
6170   rm -f conftest.er1
6171   cat conftest.err >&5
6172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6173   (exit $ac_status); } &&
6174          { ac_try='test -z "$ac_c_werror_flag"
6175                          || test ! -s conftest.err'
6176   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6177   (eval $ac_try) 2>&5
6178   ac_status=$?
6179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6180   (exit $ac_status); }; } &&
6181          { ac_try='test -s conftest.$ac_objext'
6182   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6183   (eval $ac_try) 2>&5
6184   ac_status=$?
6185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6186   (exit $ac_status); }; }; then
6187   # It does; now see whether it defined to BIG_ENDIAN or not.
6188 cat >conftest.$ac_ext <<_ACEOF
6189 /* confdefs.h.  */
6190 _ACEOF
6191 cat confdefs.h >>conftest.$ac_ext
6192 cat >>conftest.$ac_ext <<_ACEOF
6193 /* end confdefs.h.  */
6194 #include <sys/types.h>
6195 #include <sys/param.h>
6196
6197 int
6198 main ()
6199 {
6200 #if BYTE_ORDER != BIG_ENDIAN
6201  not big endian
6202 #endif
6203
6204   ;
6205   return 0;
6206 }
6207 _ACEOF
6208 rm -f conftest.$ac_objext
6209 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6210   (eval $ac_compile) 2>conftest.er1
6211   ac_status=$?
6212   grep -v '^ *+' conftest.er1 >conftest.err
6213   rm -f conftest.er1
6214   cat conftest.err >&5
6215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6216   (exit $ac_status); } &&
6217          { ac_try='test -z "$ac_c_werror_flag"
6218                          || test ! -s conftest.err'
6219   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6220   (eval $ac_try) 2>&5
6221   ac_status=$?
6222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6223   (exit $ac_status); }; } &&
6224          { ac_try='test -s conftest.$ac_objext'
6225   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6226   (eval $ac_try) 2>&5
6227   ac_status=$?
6228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6229   (exit $ac_status); }; }; then
6230   ac_cv_c_bigendian=yes
6231 else
6232   echo "$as_me: failed program was:" >&5
6233 sed 's/^/| /' conftest.$ac_ext >&5
6234
6235 ac_cv_c_bigendian=no
6236 fi
6237 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6238 else
6239   echo "$as_me: failed program was:" >&5
6240 sed 's/^/| /' conftest.$ac_ext >&5
6241
6242 # It does not; compile a test program.
6243 if test "$cross_compiling" = yes; then
6244   # try to guess the endianness by grepping values into an object file
6245   ac_cv_c_bigendian=unknown
6246   cat >conftest.$ac_ext <<_ACEOF
6247 /* confdefs.h.  */
6248 _ACEOF
6249 cat confdefs.h >>conftest.$ac_ext
6250 cat >>conftest.$ac_ext <<_ACEOF
6251 /* end confdefs.h.  */
6252 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
6253 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
6254 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
6255 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
6256 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
6257 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
6258 int
6259 main ()
6260 {
6261  _ascii (); _ebcdic ();
6262   ;
6263   return 0;
6264 }
6265 _ACEOF
6266 rm -f conftest.$ac_objext
6267 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6268   (eval $ac_compile) 2>conftest.er1
6269   ac_status=$?
6270   grep -v '^ *+' conftest.er1 >conftest.err
6271   rm -f conftest.er1
6272   cat conftest.err >&5
6273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6274   (exit $ac_status); } &&
6275          { ac_try='test -z "$ac_c_werror_flag"
6276                          || test ! -s conftest.err'
6277   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6278   (eval $ac_try) 2>&5
6279   ac_status=$?
6280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6281   (exit $ac_status); }; } &&
6282          { ac_try='test -s conftest.$ac_objext'
6283   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6284   (eval $ac_try) 2>&5
6285   ac_status=$?
6286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6287   (exit $ac_status); }; }; then
6288   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
6289   ac_cv_c_bigendian=yes
6290 fi
6291 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
6292   if test "$ac_cv_c_bigendian" = unknown; then
6293     ac_cv_c_bigendian=no
6294   else
6295     # finding both strings is unlikely to happen, but who knows?
6296     ac_cv_c_bigendian=unknown
6297   fi
6298 fi
6299 else
6300   echo "$as_me: failed program was:" >&5
6301 sed 's/^/| /' conftest.$ac_ext >&5
6302
6303 fi
6304 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6305 else
6306   cat >conftest.$ac_ext <<_ACEOF
6307 /* confdefs.h.  */
6308 _ACEOF
6309 cat confdefs.h >>conftest.$ac_ext
6310 cat >>conftest.$ac_ext <<_ACEOF
6311 /* end confdefs.h.  */
6312 int
6313 main ()
6314 {
6315   /* Are we little or big endian?  From Harbison&Steele.  */
6316   union
6317   {
6318     long l;
6319     char c[sizeof (long)];
6320   } u;
6321   u.l = 1;
6322   exit (u.c[sizeof (long) - 1] == 1);
6323 }
6324 _ACEOF
6325 rm -f conftest$ac_exeext
6326 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6327   (eval $ac_link) 2>&5
6328   ac_status=$?
6329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6330   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6331   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6332   (eval $ac_try) 2>&5
6333   ac_status=$?
6334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6335   (exit $ac_status); }; }; then
6336   ac_cv_c_bigendian=no
6337 else
6338   echo "$as_me: program exited with status $ac_status" >&5
6339 echo "$as_me: failed program was:" >&5
6340 sed 's/^/| /' conftest.$ac_ext >&5
6341
6342 ( exit $ac_status )
6343 ac_cv_c_bigendian=yes
6344 fi
6345 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6346 fi
6347 fi
6348 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6349 fi
6350 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
6351 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
6352 case $ac_cv_c_bigendian in
6353   yes)
6354
6355 cat >>confdefs.h <<\_ACEOF
6356 #define WORDS_BIGENDIAN 1
6357 _ACEOF
6358  ;;
6359   no)
6360      ;;
6361   *)
6362     { { echo "$as_me:$LINENO: error: unknown endianness
6363 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
6364 echo "$as_me: error: unknown endianness
6365 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
6366    { (exit 1); exit 1; }; } ;;
6367 esac
6368
6369 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
6370 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
6371 if test "${ac_cv_c_const+set}" = set; then
6372   echo $ECHO_N "(cached) $ECHO_C" >&6
6373 else
6374   cat >conftest.$ac_ext <<_ACEOF
6375 /* confdefs.h.  */
6376 _ACEOF
6377 cat confdefs.h >>conftest.$ac_ext
6378 cat >>conftest.$ac_ext <<_ACEOF
6379 /* end confdefs.h.  */
6380
6381 int
6382 main ()
6383 {
6384 /* FIXME: Include the comments suggested by Paul. */
6385 #ifndef __cplusplus
6386   /* Ultrix mips cc rejects this.  */
6387   typedef int charset[2];
6388   const charset x;
6389   /* SunOS 4.1.1 cc rejects this.  */
6390   char const *const *ccp;
6391   char **p;
6392   /* NEC SVR4.0.2 mips cc rejects this.  */
6393   struct point {int x, y;};
6394   static struct point const zero = {0,0};
6395   /* AIX XL C 1.02.0.0 rejects this.
6396      It does not let you subtract one const X* pointer from another in
6397      an arm of an if-expression whose if-part is not a constant
6398      expression */
6399   const char *g = "string";
6400   ccp = &g + (g ? g-g : 0);
6401   /* HPUX 7.0 cc rejects these. */
6402   ++ccp;
6403   p = (char**) ccp;
6404   ccp = (char const *const *) p;
6405   { /* SCO 3.2v4 cc rejects this.  */
6406     char *t;
6407     char const *s = 0 ? (char *) 0 : (char const *) 0;
6408
6409     *t++ = 0;
6410   }
6411   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
6412     int x[] = {25, 17};
6413     const int *foo = &x[0];
6414     ++foo;
6415   }
6416   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
6417     typedef const int *iptr;
6418     iptr p = 0;
6419     ++p;
6420   }
6421   { /* AIX XL C 1.02.0.0 rejects this saying
6422        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
6423     struct s { int j; const int *ap[3]; };
6424     struct s *b; b->j = 5;
6425   }
6426   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
6427     const int foo = 10;
6428   }
6429 #endif
6430
6431   ;
6432   return 0;
6433 }
6434 _ACEOF
6435 rm -f conftest.$ac_objext
6436 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6437   (eval $ac_compile) 2>conftest.er1
6438   ac_status=$?
6439   grep -v '^ *+' conftest.er1 >conftest.err
6440   rm -f conftest.er1
6441   cat conftest.err >&5
6442   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6443   (exit $ac_status); } &&
6444          { ac_try='test -z "$ac_c_werror_flag"
6445                          || test ! -s conftest.err'
6446   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6447   (eval $ac_try) 2>&5
6448   ac_status=$?
6449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6450   (exit $ac_status); }; } &&
6451          { ac_try='test -s conftest.$ac_objext'
6452   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6453   (eval $ac_try) 2>&5
6454   ac_status=$?
6455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6456   (exit $ac_status); }; }; then
6457   ac_cv_c_const=yes
6458 else
6459   echo "$as_me: failed program was:" >&5
6460 sed 's/^/| /' conftest.$ac_ext >&5
6461
6462 ac_cv_c_const=no
6463 fi
6464 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6465 fi
6466 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
6467 echo "${ECHO_T}$ac_cv_c_const" >&6
6468 if test $ac_cv_c_const = no; then
6469
6470 cat >>confdefs.h <<\_ACEOF
6471 #define const
6472 _ACEOF
6473
6474 fi
6475
6476 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
6477 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
6478 if test "${ac_cv_type_uid_t+set}" = set; then
6479   echo $ECHO_N "(cached) $ECHO_C" >&6
6480 else
6481   cat >conftest.$ac_ext <<_ACEOF
6482 /* confdefs.h.  */
6483 _ACEOF
6484 cat confdefs.h >>conftest.$ac_ext
6485 cat >>conftest.$ac_ext <<_ACEOF
6486 /* end confdefs.h.  */
6487 #include <sys/types.h>
6488
6489 _ACEOF
6490 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6491   $EGREP "uid_t" >/dev/null 2>&1; then
6492   ac_cv_type_uid_t=yes
6493 else
6494   ac_cv_type_uid_t=no
6495 fi
6496 rm -f conftest*
6497
6498 fi
6499 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
6500 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
6501 if test $ac_cv_type_uid_t = no; then
6502
6503 cat >>confdefs.h <<\_ACEOF
6504 #define uid_t int
6505 _ACEOF
6506
6507
6508 cat >>confdefs.h <<\_ACEOF
6509 #define gid_t int
6510 _ACEOF
6511
6512 fi
6513
6514 echo "$as_me:$LINENO: checking for off_t" >&5
6515 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
6516 if test "${ac_cv_type_off_t+set}" = set; then
6517   echo $ECHO_N "(cached) $ECHO_C" >&6
6518 else
6519   cat >conftest.$ac_ext <<_ACEOF
6520 /* confdefs.h.  */
6521 _ACEOF
6522 cat confdefs.h >>conftest.$ac_ext
6523 cat >>conftest.$ac_ext <<_ACEOF
6524 /* end confdefs.h.  */
6525 $ac_includes_default
6526 int
6527 main ()
6528 {
6529 if ((off_t *) 0)
6530   return 0;
6531 if (sizeof (off_t))
6532   return 0;
6533   ;
6534   return 0;
6535 }
6536 _ACEOF
6537 rm -f conftest.$ac_objext
6538 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6539   (eval $ac_compile) 2>conftest.er1
6540   ac_status=$?
6541   grep -v '^ *+' conftest.er1 >conftest.err
6542   rm -f conftest.er1
6543   cat conftest.err >&5
6544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6545   (exit $ac_status); } &&
6546          { ac_try='test -z "$ac_c_werror_flag"
6547                          || test ! -s conftest.err'
6548   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6549   (eval $ac_try) 2>&5
6550   ac_status=$?
6551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6552   (exit $ac_status); }; } &&
6553          { ac_try='test -s conftest.$ac_objext'
6554   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6555   (eval $ac_try) 2>&5
6556   ac_status=$?
6557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6558   (exit $ac_status); }; }; then
6559   ac_cv_type_off_t=yes
6560 else
6561   echo "$as_me: failed program was:" >&5
6562 sed 's/^/| /' conftest.$ac_ext >&5
6563
6564 ac_cv_type_off_t=no
6565 fi
6566 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6567 fi
6568 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
6569 echo "${ECHO_T}$ac_cv_type_off_t" >&6
6570 if test $ac_cv_type_off_t = yes; then
6571   :
6572 else
6573
6574 cat >>confdefs.h <<_ACEOF
6575 #define off_t long
6576 _ACEOF
6577
6578 fi
6579
6580 echo "$as_me:$LINENO: checking for pid_t" >&5
6581 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
6582 if test "${ac_cv_type_pid_t+set}" = set; then
6583   echo $ECHO_N "(cached) $ECHO_C" >&6
6584 else
6585   cat >conftest.$ac_ext <<_ACEOF
6586 /* confdefs.h.  */
6587 _ACEOF
6588 cat confdefs.h >>conftest.$ac_ext
6589 cat >>conftest.$ac_ext <<_ACEOF
6590 /* end confdefs.h.  */
6591 $ac_includes_default
6592 int
6593 main ()
6594 {
6595 if ((pid_t *) 0)
6596   return 0;
6597 if (sizeof (pid_t))
6598   return 0;
6599   ;
6600   return 0;
6601 }
6602 _ACEOF
6603 rm -f conftest.$ac_objext
6604 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6605   (eval $ac_compile) 2>conftest.er1
6606   ac_status=$?
6607   grep -v '^ *+' conftest.er1 >conftest.err
6608   rm -f conftest.er1
6609   cat conftest.err >&5
6610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6611   (exit $ac_status); } &&
6612          { ac_try='test -z "$ac_c_werror_flag"
6613                          || test ! -s conftest.err'
6614   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6615   (eval $ac_try) 2>&5
6616   ac_status=$?
6617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6618   (exit $ac_status); }; } &&
6619          { ac_try='test -s conftest.$ac_objext'
6620   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6621   (eval $ac_try) 2>&5
6622   ac_status=$?
6623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6624   (exit $ac_status); }; }; then
6625   ac_cv_type_pid_t=yes
6626 else
6627   echo "$as_me: failed program was:" >&5
6628 sed 's/^/| /' conftest.$ac_ext >&5
6629
6630 ac_cv_type_pid_t=no
6631 fi
6632 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6633 fi
6634 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
6635 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
6636 if test $ac_cv_type_pid_t = yes; then
6637   :
6638 else
6639
6640 cat >>confdefs.h <<_ACEOF
6641 #define pid_t int
6642 _ACEOF
6643
6644 fi
6645
6646 echo "$as_me:$LINENO: checking for size_t" >&5
6647 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
6648 if test "${ac_cv_type_size_t+set}" = set; then
6649   echo $ECHO_N "(cached) $ECHO_C" >&6
6650 else
6651   cat >conftest.$ac_ext <<_ACEOF
6652 /* confdefs.h.  */
6653 _ACEOF
6654 cat confdefs.h >>conftest.$ac_ext
6655 cat >>conftest.$ac_ext <<_ACEOF
6656 /* end confdefs.h.  */
6657 $ac_includes_default
6658 int
6659 main ()
6660 {
6661 if ((size_t *) 0)
6662   return 0;
6663 if (sizeof (size_t))
6664   return 0;
6665   ;
6666   return 0;
6667 }
6668 _ACEOF
6669 rm -f conftest.$ac_objext
6670 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6671   (eval $ac_compile) 2>conftest.er1
6672   ac_status=$?
6673   grep -v '^ *+' conftest.er1 >conftest.err
6674   rm -f conftest.er1
6675   cat conftest.err >&5
6676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6677   (exit $ac_status); } &&
6678          { ac_try='test -z "$ac_c_werror_flag"
6679                          || test ! -s conftest.err'
6680   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6681   (eval $ac_try) 2>&5
6682   ac_status=$?
6683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6684   (exit $ac_status); }; } &&
6685          { ac_try='test -s conftest.$ac_objext'
6686   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6687   (eval $ac_try) 2>&5
6688   ac_status=$?
6689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6690   (exit $ac_status); }; }; then
6691   ac_cv_type_size_t=yes
6692 else
6693   echo "$as_me: failed program was:" >&5
6694 sed 's/^/| /' conftest.$ac_ext >&5
6695
6696 ac_cv_type_size_t=no
6697 fi
6698 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6699 fi
6700 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
6701 echo "${ECHO_T}$ac_cv_type_size_t" >&6
6702 if test $ac_cv_type_size_t = yes; then
6703   :
6704 else
6705
6706 cat >>confdefs.h <<_ACEOF
6707 #define size_t unsigned
6708 _ACEOF
6709
6710 fi
6711
6712 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
6713 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
6714 if test "${ac_cv_header_time+set}" = set; then
6715   echo $ECHO_N "(cached) $ECHO_C" >&6
6716 else
6717   cat >conftest.$ac_ext <<_ACEOF
6718 /* confdefs.h.  */
6719 _ACEOF
6720 cat confdefs.h >>conftest.$ac_ext
6721 cat >>conftest.$ac_ext <<_ACEOF
6722 /* end confdefs.h.  */
6723 #include <sys/types.h>
6724 #include <sys/time.h>
6725 #include <time.h>
6726
6727 int
6728 main ()
6729 {
6730 if ((struct tm *) 0)
6731 return 0;
6732   ;
6733   return 0;
6734 }
6735 _ACEOF
6736 rm -f conftest.$ac_objext
6737 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6738   (eval $ac_compile) 2>conftest.er1
6739   ac_status=$?
6740   grep -v '^ *+' conftest.er1 >conftest.err
6741   rm -f conftest.er1
6742   cat conftest.err >&5
6743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6744   (exit $ac_status); } &&
6745          { ac_try='test -z "$ac_c_werror_flag"
6746                          || test ! -s conftest.err'
6747   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6748   (eval $ac_try) 2>&5
6749   ac_status=$?
6750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6751   (exit $ac_status); }; } &&
6752          { ac_try='test -s conftest.$ac_objext'
6753   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6754   (eval $ac_try) 2>&5
6755   ac_status=$?
6756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6757   (exit $ac_status); }; }; then
6758   ac_cv_header_time=yes
6759 else
6760   echo "$as_me: failed program was:" >&5
6761 sed 's/^/| /' conftest.$ac_ext >&5
6762
6763 ac_cv_header_time=no
6764 fi
6765 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6766 fi
6767 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
6768 echo "${ECHO_T}$ac_cv_header_time" >&6
6769 if test $ac_cv_header_time = yes; then
6770
6771 cat >>confdefs.h <<\_ACEOF
6772 #define TIME_WITH_SYS_TIME 1
6773 _ACEOF
6774
6775 fi
6776
6777 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
6778 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
6779 if test "${ac_cv_struct_tm+set}" = set; then
6780   echo $ECHO_N "(cached) $ECHO_C" >&6
6781 else
6782   cat >conftest.$ac_ext <<_ACEOF
6783 /* confdefs.h.  */
6784 _ACEOF
6785 cat confdefs.h >>conftest.$ac_ext
6786 cat >>conftest.$ac_ext <<_ACEOF
6787 /* end confdefs.h.  */
6788 #include <sys/types.h>
6789 #include <time.h>
6790
6791 int
6792 main ()
6793 {
6794 struct tm *tp; tp->tm_sec;
6795   ;
6796   return 0;
6797 }
6798 _ACEOF
6799 rm -f conftest.$ac_objext
6800 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6801   (eval $ac_compile) 2>conftest.er1
6802   ac_status=$?
6803   grep -v '^ *+' conftest.er1 >conftest.err
6804   rm -f conftest.er1
6805   cat conftest.err >&5
6806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6807   (exit $ac_status); } &&
6808          { ac_try='test -z "$ac_c_werror_flag"
6809                          || test ! -s conftest.err'
6810   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6811   (eval $ac_try) 2>&5
6812   ac_status=$?
6813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6814   (exit $ac_status); }; } &&
6815          { ac_try='test -s conftest.$ac_objext'
6816   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6817   (eval $ac_try) 2>&5
6818   ac_status=$?
6819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6820   (exit $ac_status); }; }; then
6821   ac_cv_struct_tm=time.h
6822 else
6823   echo "$as_me: failed program was:" >&5
6824 sed 's/^/| /' conftest.$ac_ext >&5
6825
6826 ac_cv_struct_tm=sys/time.h
6827 fi
6828 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6829 fi
6830 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
6831 echo "${ECHO_T}$ac_cv_struct_tm" >&6
6832 if test $ac_cv_struct_tm = sys/time.h; then
6833
6834 cat >>confdefs.h <<\_ACEOF
6835 #define TM_IN_SYS_TIME 1
6836 _ACEOF
6837
6838 fi
6839
6840
6841 echo "$as_me:$LINENO: checking type of array argument to getgroups" >&5
6842 echo $ECHO_N "checking type of array argument to getgroups... $ECHO_C" >&6
6843 if test "${ac_cv_type_getgroups+set}" = set; then
6844   echo $ECHO_N "(cached) $ECHO_C" >&6
6845 else
6846   if test "$cross_compiling" = yes; then
6847   ac_cv_type_getgroups=cross
6848 else
6849   cat >conftest.$ac_ext <<_ACEOF
6850 /* confdefs.h.  */
6851 _ACEOF
6852 cat confdefs.h >>conftest.$ac_ext
6853 cat >>conftest.$ac_ext <<_ACEOF
6854 /* end confdefs.h.  */
6855 /* Thanks to Mike Rendell for this test.  */
6856 #include <sys/types.h>
6857 #define NGID 256
6858 #undef MAX
6859 #define MAX(x, y) ((x) > (y) ? (x) : (y))
6860
6861 int
6862 main ()
6863 {
6864   gid_t gidset[NGID];
6865   int i, n;
6866   union { gid_t gval; long lval; }  val;
6867
6868   val.lval = -1;
6869   for (i = 0; i < NGID; i++)
6870     gidset[i] = val.gval;
6871   n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
6872                  gidset);
6873   /* Exit non-zero if getgroups seems to require an array of ints.  This
6874      happens when gid_t is short but getgroups modifies an array of ints.  */
6875   exit ((n > 0 && gidset[n] != val.gval) ? 1 : 0);
6876 }
6877 _ACEOF
6878 rm -f conftest$ac_exeext
6879 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6880   (eval $ac_link) 2>&5
6881   ac_status=$?
6882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6883   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6884   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6885   (eval $ac_try) 2>&5
6886   ac_status=$?
6887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6888   (exit $ac_status); }; }; then
6889   ac_cv_type_getgroups=gid_t
6890 else
6891   echo "$as_me: program exited with status $ac_status" >&5
6892 echo "$as_me: failed program was:" >&5
6893 sed 's/^/| /' conftest.$ac_ext >&5
6894
6895 ( exit $ac_status )
6896 ac_cv_type_getgroups=int
6897 fi
6898 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6899 fi
6900 if test $ac_cv_type_getgroups = cross; then
6901         cat >conftest.$ac_ext <<_ACEOF
6902 /* confdefs.h.  */
6903 _ACEOF
6904 cat confdefs.h >>conftest.$ac_ext
6905 cat >>conftest.$ac_ext <<_ACEOF
6906 /* end confdefs.h.  */
6907 #include <unistd.h>
6908
6909 _ACEOF
6910 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6911   $EGREP "getgroups.*int.*gid_t" >/dev/null 2>&1; then
6912   ac_cv_type_getgroups=gid_t
6913 else
6914   ac_cv_type_getgroups=int
6915 fi
6916 rm -f conftest*
6917
6918 fi
6919 fi
6920 echo "$as_me:$LINENO: result: $ac_cv_type_getgroups" >&5
6921 echo "${ECHO_T}$ac_cv_type_getgroups" >&6
6922
6923 cat >>confdefs.h <<_ACEOF
6924 #define GETGROUPS_T $ac_cv_type_getgroups
6925 _ACEOF
6926
6927
6928 if test $ac_cv_c_compiler_gnu = yes; then
6929     echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
6930 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
6931 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
6932   echo $ECHO_N "(cached) $ECHO_C" >&6
6933 else
6934     ac_pattern="Autoconf.*'x'"
6935   cat >conftest.$ac_ext <<_ACEOF
6936 /* confdefs.h.  */
6937 _ACEOF
6938 cat confdefs.h >>conftest.$ac_ext
6939 cat >>conftest.$ac_ext <<_ACEOF
6940 /* end confdefs.h.  */
6941 #include <sgtty.h>
6942 Autoconf TIOCGETP
6943 _ACEOF
6944 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6945   $EGREP "$ac_pattern" >/dev/null 2>&1; then
6946   ac_cv_prog_gcc_traditional=yes
6947 else
6948   ac_cv_prog_gcc_traditional=no
6949 fi
6950 rm -f conftest*
6951
6952
6953   if test $ac_cv_prog_gcc_traditional = no; then
6954     cat >conftest.$ac_ext <<_ACEOF
6955 /* confdefs.h.  */
6956 _ACEOF
6957 cat confdefs.h >>conftest.$ac_ext
6958 cat >>conftest.$ac_ext <<_ACEOF
6959 /* end confdefs.h.  */
6960 #include <termio.h>
6961 Autoconf TCGETA
6962 _ACEOF
6963 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6964   $EGREP "$ac_pattern" >/dev/null 2>&1; then
6965   ac_cv_prog_gcc_traditional=yes
6966 fi
6967 rm -f conftest*
6968
6969   fi
6970 fi
6971 echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
6972 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
6973   if test $ac_cv_prog_gcc_traditional = yes; then
6974     CC="$CC -traditional"
6975   fi
6976 fi
6977
6978 echo "$as_me:$LINENO: checking for working memcmp" >&5
6979 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
6980 if test "${ac_cv_func_memcmp_working+set}" = set; then
6981   echo $ECHO_N "(cached) $ECHO_C" >&6
6982 else
6983   if test "$cross_compiling" = yes; then
6984   ac_cv_func_memcmp_working=no
6985 else
6986   cat >conftest.$ac_ext <<_ACEOF
6987 /* confdefs.h.  */
6988 _ACEOF
6989 cat confdefs.h >>conftest.$ac_ext
6990 cat >>conftest.$ac_ext <<_ACEOF
6991 /* end confdefs.h.  */
6992 $ac_includes_default
6993 int
6994 main ()
6995 {
6996
6997   /* Some versions of memcmp are not 8-bit clean.  */
6998   char c0 = 0x40, c1 = 0x80, c2 = 0x81;
6999   if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
7000     exit (1);
7001
7002   /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
7003      or more and with at least one buffer not starting on a 4-byte boundary.
7004      William Lewis provided this test program.   */
7005   {
7006     char foo[21];
7007     char bar[21];
7008     int i;
7009     for (i = 0; i < 4; i++)
7010       {
7011         char *a = foo + i;
7012         char *b = bar + i;
7013         strcpy (a, "--------01111111");
7014         strcpy (b, "--------10000000");
7015         if (memcmp (a, b, 16) >= 0)
7016           exit (1);
7017       }
7018     exit (0);
7019   }
7020
7021   ;
7022   return 0;
7023 }
7024 _ACEOF
7025 rm -f conftest$ac_exeext
7026 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7027   (eval $ac_link) 2>&5
7028   ac_status=$?
7029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7030   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7031   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7032   (eval $ac_try) 2>&5
7033   ac_status=$?
7034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7035   (exit $ac_status); }; }; then
7036   ac_cv_func_memcmp_working=yes
7037 else
7038   echo "$as_me: program exited with status $ac_status" >&5
7039 echo "$as_me: failed program was:" >&5
7040 sed 's/^/| /' conftest.$ac_ext >&5
7041
7042 ( exit $ac_status )
7043 ac_cv_func_memcmp_working=no
7044 fi
7045 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7046 fi
7047 fi
7048 echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
7049 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
7050 test $ac_cv_func_memcmp_working = no && case $LIBOBJS in
7051     "memcmp.$ac_objext"   | \
7052   *" memcmp.$ac_objext"   | \
7053     "memcmp.$ac_objext "* | \
7054   *" memcmp.$ac_objext "* ) ;;
7055   *) LIBOBJS="$LIBOBJS memcmp.$ac_objext" ;;
7056 esac
7057
7058
7059
7060 for ac_func in vprintf
7061 do
7062 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7063 echo "$as_me:$LINENO: checking for $ac_func" >&5
7064 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7065 if eval "test \"\${$as_ac_var+set}\" = set"; then
7066   echo $ECHO_N "(cached) $ECHO_C" >&6
7067 else
7068   cat >conftest.$ac_ext <<_ACEOF
7069 /* confdefs.h.  */
7070 _ACEOF
7071 cat confdefs.h >>conftest.$ac_ext
7072 cat >>conftest.$ac_ext <<_ACEOF
7073 /* end confdefs.h.  */
7074 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7075    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
7076 #define $ac_func innocuous_$ac_func
7077
7078 /* System header to define __stub macros and hopefully few prototypes,
7079     which can conflict with char $ac_func (); below.
7080     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7081     <limits.h> exists even on freestanding compilers.  */
7082
7083 #ifdef __STDC__
7084 # include <limits.h>
7085 #else
7086 # include <assert.h>
7087 #endif
7088
7089 #undef $ac_func
7090
7091 /* Override any gcc2 internal prototype to avoid an error.  */
7092 #ifdef __cplusplus
7093 extern "C"
7094 {
7095 #endif
7096 /* We use char because int might match the return type of a gcc2
7097    builtin and then its argument prototype would still apply.  */
7098 char $ac_func ();
7099 /* The GNU C library defines this for functions which it implements
7100     to always fail with ENOSYS.  Some functions are actually named
7101     something starting with __ and the normal name is an alias.  */
7102 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7103 choke me
7104 #else
7105 char (*f) () = $ac_func;
7106 #endif
7107 #ifdef __cplusplus
7108 }
7109 #endif
7110
7111 int
7112 main ()
7113 {
7114 return f != $ac_func;
7115   ;
7116   return 0;
7117 }
7118 _ACEOF
7119 rm -f conftest.$ac_objext conftest$ac_exeext
7120 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7121   (eval $ac_link) 2>conftest.er1
7122   ac_status=$?
7123   grep -v '^ *+' conftest.er1 >conftest.err
7124   rm -f conftest.er1
7125   cat conftest.err >&5
7126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7127   (exit $ac_status); } &&
7128          { ac_try='test -z "$ac_c_werror_flag"
7129                          || test ! -s conftest.err'
7130   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7131   (eval $ac_try) 2>&5
7132   ac_status=$?
7133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7134   (exit $ac_status); }; } &&
7135          { ac_try='test -s conftest$ac_exeext'
7136   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7137   (eval $ac_try) 2>&5
7138   ac_status=$?
7139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7140   (exit $ac_status); }; }; then
7141   eval "$as_ac_var=yes"
7142 else
7143   echo "$as_me: failed program was:" >&5
7144 sed 's/^/| /' conftest.$ac_ext >&5
7145
7146 eval "$as_ac_var=no"
7147 fi
7148 rm -f conftest.err conftest.$ac_objext \
7149       conftest$ac_exeext conftest.$ac_ext
7150 fi
7151 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7152 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7153 if test `eval echo '${'$as_ac_var'}'` = yes; then
7154   cat >>confdefs.h <<_ACEOF
7155 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7156 _ACEOF
7157
7158 echo "$as_me:$LINENO: checking for _doprnt" >&5
7159 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
7160 if test "${ac_cv_func__doprnt+set}" = set; then
7161   echo $ECHO_N "(cached) $ECHO_C" >&6
7162 else
7163   cat >conftest.$ac_ext <<_ACEOF
7164 /* confdefs.h.  */
7165 _ACEOF
7166 cat confdefs.h >>conftest.$ac_ext
7167 cat >>conftest.$ac_ext <<_ACEOF
7168 /* end confdefs.h.  */
7169 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
7170    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
7171 #define _doprnt innocuous__doprnt
7172
7173 /* System header to define __stub macros and hopefully few prototypes,
7174     which can conflict with char _doprnt (); below.
7175     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7176     <limits.h> exists even on freestanding compilers.  */
7177
7178 #ifdef __STDC__
7179 # include <limits.h>
7180 #else
7181 # include <assert.h>
7182 #endif
7183
7184 #undef _doprnt
7185
7186 /* Override any gcc2 internal prototype to avoid an error.  */
7187 #ifdef __cplusplus
7188 extern "C"
7189 {
7190 #endif
7191 /* We use char because int might match the return type of a gcc2
7192    builtin and then its argument prototype would still apply.  */
7193 char _doprnt ();
7194 /* The GNU C library defines this for functions which it implements
7195     to always fail with ENOSYS.  Some functions are actually named
7196     something starting with __ and the normal name is an alias.  */
7197 #if defined (__stub__doprnt) || defined (__stub____doprnt)
7198 choke me
7199 #else
7200 char (*f) () = _doprnt;
7201 #endif
7202 #ifdef __cplusplus
7203 }
7204 #endif
7205
7206 int
7207 main ()
7208 {
7209 return f != _doprnt;
7210   ;
7211   return 0;
7212 }
7213 _ACEOF
7214 rm -f conftest.$ac_objext conftest$ac_exeext
7215 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7216   (eval $ac_link) 2>conftest.er1
7217   ac_status=$?
7218   grep -v '^ *+' conftest.er1 >conftest.err
7219   rm -f conftest.er1
7220   cat conftest.err >&5
7221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7222   (exit $ac_status); } &&
7223          { ac_try='test -z "$ac_c_werror_flag"
7224                          || test ! -s conftest.err'
7225   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7226   (eval $ac_try) 2>&5
7227   ac_status=$?
7228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7229   (exit $ac_status); }; } &&
7230          { ac_try='test -s conftest$ac_exeext'
7231   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7232   (eval $ac_try) 2>&5
7233   ac_status=$?
7234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7235   (exit $ac_status); }; }; then
7236   ac_cv_func__doprnt=yes
7237 else
7238   echo "$as_me: failed program was:" >&5
7239 sed 's/^/| /' conftest.$ac_ext >&5
7240
7241 ac_cv_func__doprnt=no
7242 fi
7243 rm -f conftest.err conftest.$ac_objext \
7244       conftest$ac_exeext conftest.$ac_ext
7245 fi
7246 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
7247 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
7248 if test $ac_cv_func__doprnt = yes; then
7249
7250 cat >>confdefs.h <<\_ACEOF
7251 #define HAVE_DOPRNT 1
7252 _ACEOF
7253
7254 fi
7255
7256 fi
7257 done
7258
7259
7260
7261
7262
7263
7264
7265
7266
7267
7268
7269
7270
7271 for ac_func in gethostname gettimeofday mkdir select strcspn strdup strerror strspn strstr strtol uname
7272 do
7273 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7274 echo "$as_me:$LINENO: checking for $ac_func" >&5
7275 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7276 if eval "test \"\${$as_ac_var+set}\" = set"; then
7277   echo $ECHO_N "(cached) $ECHO_C" >&6
7278 else
7279   cat >conftest.$ac_ext <<_ACEOF
7280 /* confdefs.h.  */
7281 _ACEOF
7282 cat confdefs.h >>conftest.$ac_ext
7283 cat >>conftest.$ac_ext <<_ACEOF
7284 /* end confdefs.h.  */
7285 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7286    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
7287 #define $ac_func innocuous_$ac_func
7288
7289 /* System header to define __stub macros and hopefully few prototypes,
7290     which can conflict with char $ac_func (); below.
7291     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7292     <limits.h> exists even on freestanding compilers.  */
7293
7294 #ifdef __STDC__
7295 # include <limits.h>
7296 #else
7297 # include <assert.h>
7298 #endif
7299
7300 #undef $ac_func
7301
7302 /* Override any gcc2 internal prototype to avoid an error.  */
7303 #ifdef __cplusplus
7304 extern "C"
7305 {
7306 #endif
7307 /* We use char because int might match the return type of a gcc2
7308    builtin and then its argument prototype would still apply.  */
7309 char $ac_func ();
7310 /* The GNU C library defines this for functions which it implements
7311     to always fail with ENOSYS.  Some functions are actually named
7312     something starting with __ and the normal name is an alias.  */
7313 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7314 choke me
7315 #else
7316 char (*f) () = $ac_func;
7317 #endif
7318 #ifdef __cplusplus
7319 }
7320 #endif
7321
7322 int
7323 main ()
7324 {
7325 return f != $ac_func;
7326   ;
7327   return 0;
7328 }
7329 _ACEOF
7330 rm -f conftest.$ac_objext conftest$ac_exeext
7331 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7332   (eval $ac_link) 2>conftest.er1
7333   ac_status=$?
7334   grep -v '^ *+' conftest.er1 >conftest.err
7335   rm -f conftest.er1
7336   cat conftest.err >&5
7337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7338   (exit $ac_status); } &&
7339          { ac_try='test -z "$ac_c_werror_flag"
7340                          || test ! -s conftest.err'
7341   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7342   (eval $ac_try) 2>&5
7343   ac_status=$?
7344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7345   (exit $ac_status); }; } &&
7346          { ac_try='test -s conftest$ac_exeext'
7347   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7348   (eval $ac_try) 2>&5
7349   ac_status=$?
7350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7351   (exit $ac_status); }; }; then
7352   eval "$as_ac_var=yes"
7353 else
7354   echo "$as_me: failed program was:" >&5
7355 sed 's/^/| /' conftest.$ac_ext >&5
7356
7357 eval "$as_ac_var=no"
7358 fi
7359 rm -f conftest.err conftest.$ac_objext \
7360       conftest$ac_exeext conftest.$ac_ext
7361 fi
7362 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7363 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7364 if test `eval echo '${'$as_ac_var'}'` = yes; then
7365   cat >>confdefs.h <<_ACEOF
7366 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7367 _ACEOF
7368
7369 fi
7370 done
7371
7372
7373
7374
7375
7376
7377
7378
7379 for ac_func in getpwnam_r getpwuid_r getgrnam_r getgrgid_r getspnam_r getgrouplist
7380 do
7381 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7382 echo "$as_me:$LINENO: checking for $ac_func" >&5
7383 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7384 if eval "test \"\${$as_ac_var+set}\" = set"; then
7385   echo $ECHO_N "(cached) $ECHO_C" >&6
7386 else
7387   cat >conftest.$ac_ext <<_ACEOF
7388 /* confdefs.h.  */
7389 _ACEOF
7390 cat confdefs.h >>conftest.$ac_ext
7391 cat >>conftest.$ac_ext <<_ACEOF
7392 /* end confdefs.h.  */
7393 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7394    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
7395 #define $ac_func innocuous_$ac_func
7396
7397 /* System header to define __stub macros and hopefully few prototypes,
7398     which can conflict with char $ac_func (); below.
7399     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7400     <limits.h> exists even on freestanding compilers.  */
7401
7402 #ifdef __STDC__
7403 # include <limits.h>
7404 #else
7405 # include <assert.h>
7406 #endif
7407
7408 #undef $ac_func
7409
7410 /* Override any gcc2 internal prototype to avoid an error.  */
7411 #ifdef __cplusplus
7412 extern "C"
7413 {
7414 #endif
7415 /* We use char because int might match the return type of a gcc2
7416    builtin and then its argument prototype would still apply.  */
7417 char $ac_func ();
7418 /* The GNU C library defines this for functions which it implements
7419     to always fail with ENOSYS.  Some functions are actually named
7420     something starting with __ and the normal name is an alias.  */
7421 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7422 choke me
7423 #else
7424 char (*f) () = $ac_func;
7425 #endif
7426 #ifdef __cplusplus
7427 }
7428 #endif
7429
7430 int
7431 main ()
7432 {
7433 return f != $ac_func;
7434   ;
7435   return 0;
7436 }
7437 _ACEOF
7438 rm -f conftest.$ac_objext conftest$ac_exeext
7439 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7440   (eval $ac_link) 2>conftest.er1
7441   ac_status=$?
7442   grep -v '^ *+' conftest.er1 >conftest.err
7443   rm -f conftest.er1
7444   cat conftest.err >&5
7445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7446   (exit $ac_status); } &&
7447          { ac_try='test -z "$ac_c_werror_flag"
7448                          || test ! -s conftest.err'
7449   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7450   (eval $ac_try) 2>&5
7451   ac_status=$?
7452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7453   (exit $ac_status); }; } &&
7454          { ac_try='test -s conftest$ac_exeext'
7455   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7456   (eval $ac_try) 2>&5
7457   ac_status=$?
7458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7459   (exit $ac_status); }; }; then
7460   eval "$as_ac_var=yes"
7461 else
7462   echo "$as_me: failed program was:" >&5
7463 sed 's/^/| /' conftest.$ac_ext >&5
7464
7465 eval "$as_ac_var=no"
7466 fi
7467 rm -f conftest.err conftest.$ac_objext \
7468       conftest$ac_exeext conftest.$ac_ext
7469 fi
7470 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7471 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7472 if test `eval echo '${'$as_ac_var'}'` = yes; then
7473   cat >>confdefs.h <<_ACEOF
7474 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7475 _ACEOF
7476
7477 fi
7478 done
7479
7480
7481 # Extract the first word of "sgml2txt", so it can be a program name with args.
7482 set dummy sgml2txt; ac_word=$2
7483 echo "$as_me:$LINENO: checking for $ac_word" >&5
7484 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7485 if test "${ac_cv_prog_HAVE_SGML2TXT+set}" = set; then
7486   echo $ECHO_N "(cached) $ECHO_C" >&6
7487 else
7488   if test -n "$HAVE_SGML2TXT"; then
7489   ac_cv_prog_HAVE_SGML2TXT="$HAVE_SGML2TXT" # Let the user override the test.
7490 else
7491 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7492 for as_dir in $PATH
7493 do
7494   IFS=$as_save_IFS
7495   test -z "$as_dir" && as_dir=.
7496   for ac_exec_ext in '' $ac_executable_extensions; do
7497   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7498     ac_cv_prog_HAVE_SGML2TXT="yes"
7499     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7500     break 2
7501   fi
7502 done
7503 done
7504
7505   test -z "$ac_cv_prog_HAVE_SGML2TXT" && ac_cv_prog_HAVE_SGML2TXT="no"
7506 fi
7507 fi
7508 HAVE_SGML2TXT=$ac_cv_prog_HAVE_SGML2TXT
7509 if test -n "$HAVE_SGML2TXT"; then
7510   echo "$as_me:$LINENO: result: $HAVE_SGML2TXT" >&5
7511 echo "${ECHO_T}$HAVE_SGML2TXT" >&6
7512 else
7513   echo "$as_me:$LINENO: result: no" >&5
7514 echo "${ECHO_T}no" >&6
7515 fi
7516
7517 # Extract the first word of "sgml2html", so it can be a program name with args.
7518 set dummy sgml2html; ac_word=$2
7519 echo "$as_me:$LINENO: checking for $ac_word" >&5
7520 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7521 if test "${ac_cv_prog_HAVE_SGML2HTML+set}" = set; then
7522   echo $ECHO_N "(cached) $ECHO_C" >&6
7523 else
7524   if test -n "$HAVE_SGML2HTML"; then
7525   ac_cv_prog_HAVE_SGML2HTML="$HAVE_SGML2HTML" # Let the user override the test.
7526 else
7527 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7528 for as_dir in $PATH
7529 do
7530   IFS=$as_save_IFS
7531   test -z "$as_dir" && as_dir=.
7532   for ac_exec_ext in '' $ac_executable_extensions; do
7533   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7534     ac_cv_prog_HAVE_SGML2HTML="yes"
7535     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7536     break 2
7537   fi
7538 done
7539 done
7540
7541   test -z "$ac_cv_prog_HAVE_SGML2HTML" && ac_cv_prog_HAVE_SGML2HTML="no"
7542 fi
7543 fi
7544 HAVE_SGML2HTML=$ac_cv_prog_HAVE_SGML2HTML
7545 if test -n "$HAVE_SGML2HTML"; then
7546   echo "$as_me:$LINENO: result: $HAVE_SGML2HTML" >&5
7547 echo "${ECHO_T}$HAVE_SGML2HTML" >&6
7548 else
7549   echo "$as_me:$LINENO: result: no" >&5
7550 echo "${ECHO_T}no" >&6
7551 fi
7552
7553 # Extract the first word of "sgml2latex", so it can be a program name with args.
7554 set dummy sgml2latex; ac_word=$2
7555 echo "$as_me:$LINENO: checking for $ac_word" >&5
7556 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7557 if test "${ac_cv_prog_HAVE_SGML2LATEX+set}" = set; then
7558   echo $ECHO_N "(cached) $ECHO_C" >&6
7559 else
7560   if test -n "$HAVE_SGML2LATEX"; then
7561   ac_cv_prog_HAVE_SGML2LATEX="$HAVE_SGML2LATEX" # Let the user override the test.
7562 else
7563 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7564 for as_dir in $PATH
7565 do
7566   IFS=$as_save_IFS
7567   test -z "$as_dir" && as_dir=.
7568   for ac_exec_ext in '' $ac_executable_extensions; do
7569   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7570     ac_cv_prog_HAVE_SGML2LATEX="yes"
7571     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7572     break 2
7573   fi
7574 done
7575 done
7576
7577   test -z "$ac_cv_prog_HAVE_SGML2LATEX" && ac_cv_prog_HAVE_SGML2LATEX="no"
7578 fi
7579 fi
7580 HAVE_SGML2LATEX=$ac_cv_prog_HAVE_SGML2LATEX
7581 if test -n "$HAVE_SGML2LATEX"; then
7582   echo "$as_me:$LINENO: result: $HAVE_SGML2LATEX" >&5
7583 echo "${ECHO_T}$HAVE_SGML2LATEX" >&6
7584 else
7585   echo "$as_me:$LINENO: result: no" >&5
7586 echo "${ECHO_T}no" >&6
7587 fi
7588
7589 if test $HAVE_SGML2LATEX = "yes" ; then
7590   if sgml2latex -h | grep -e --paper | grep  ' -p ' > /dev/null ; then
7591     PSER="sgml2latex -o ps"
7592   else
7593     PSER="sgml2latex -p"
7594   fi
7595   # Extract the first word of "ps2pdf", so it can be a program name with args.
7596 set dummy ps2pdf; ac_word=$2
7597 echo "$as_me:$LINENO: checking for $ac_word" >&5
7598 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7599 if test "${ac_cv_prog_HAVE_PS2PDF+set}" = set; then
7600   echo $ECHO_N "(cached) $ECHO_C" >&6
7601 else
7602   if test -n "$HAVE_PS2PDF"; then
7603   ac_cv_prog_HAVE_PS2PDF="$HAVE_PS2PDF" # Let the user override the test.
7604 else
7605 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7606 for as_dir in $PATH
7607 do
7608   IFS=$as_save_IFS
7609   test -z "$as_dir" && as_dir=.
7610   for ac_exec_ext in '' $ac_executable_extensions; do
7611   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7612     ac_cv_prog_HAVE_PS2PDF="yes"
7613     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7614     break 2
7615   fi
7616 done
7617 done
7618
7619   test -z "$ac_cv_prog_HAVE_PS2PDF" && ac_cv_prog_HAVE_PS2PDF="no"
7620 fi
7621 fi
7622 HAVE_PS2PDF=$ac_cv_prog_HAVE_PS2PDF
7623 if test -n "$HAVE_PS2PDF"; then
7624   echo "$as_me:$LINENO: result: $HAVE_PS2PDF" >&5
7625 echo "${ECHO_T}$HAVE_PS2PDF" >&6
7626 else
7627   echo "$as_me:$LINENO: result: no" >&5
7628 echo "${ECHO_T}no" >&6
7629 fi
7630
7631 else
7632   # Extract the first word of "sgml2ps", so it can be a program name with args.
7633 set dummy sgml2ps; ac_word=$2
7634 echo "$as_me:$LINENO: checking for $ac_word" >&5
7635 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7636 if test "${ac_cv_prog_HAVE_SGML2PS+set}" = set; then
7637   echo $ECHO_N "(cached) $ECHO_C" >&6
7638 else
7639   if test -n "$HAVE_SGML2PS"; then
7640   ac_cv_prog_HAVE_SGML2PS="$HAVE_SGML2PS" # Let the user override the test.
7641 else
7642 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7643 for as_dir in $PATH
7644 do
7645   IFS=$as_save_IFS
7646   test -z "$as_dir" && as_dir=.
7647   for ac_exec_ext in '' $ac_executable_extensions; do
7648   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7649     ac_cv_prog_HAVE_SGML2PS="yes"
7650     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7651     break 2
7652   fi
7653 done
7654 done
7655
7656   test -z "$ac_cv_prog_HAVE_SGML2PS" && ac_cv_prog_HAVE_SGML2PS="no"
7657 fi
7658 fi
7659 HAVE_SGML2PS=$ac_cv_prog_HAVE_SGML2PS
7660 if test -n "$HAVE_SGML2PS"; then
7661   echo "$as_me:$LINENO: result: $HAVE_SGML2PS" >&5
7662 echo "${ECHO_T}$HAVE_SGML2PS" >&6
7663 else
7664   echo "$as_me:$LINENO: result: no" >&5
7665 echo "${ECHO_T}no" >&6
7666 fi
7667
7668   if test $HAVE_SGML2PS = yes ; then
7669     PSER="sgml2ps"
7670   fi
7671 fi
7672
7673
7674
7675           ac_config_files="$ac_config_files Make.Rules"
7676 cat >confcache <<\_ACEOF
7677 # This file is a shell script that caches the results of configure
7678 # tests run on this system so they can be shared between configure
7679 # scripts and configure runs, see configure's option --config-cache.
7680 # It is not useful on other systems.  If it contains results you don't
7681 # want to keep, you may remove or edit it.
7682 #
7683 # config.status only pays attention to the cache file if you give it
7684 # the --recheck option to rerun configure.
7685 #
7686 # `ac_cv_env_foo' variables (set or unset) will be overridden when
7687 # loading this file, other *unset* `ac_cv_foo' will be assigned the
7688 # following values.
7689
7690 _ACEOF
7691
7692 # The following way of writing the cache mishandles newlines in values,
7693 # but we know of no workaround that is simple, portable, and efficient.
7694 # So, don't put newlines in cache variables' values.
7695 # Ultrix sh set writes to stderr and can't be redirected directly,
7696 # and sets the high bit in the cache file unless we assign to the vars.
7697 {
7698   (set) 2>&1 |
7699     case `(ac_space=' '; set | grep ac_space) 2>&1` in
7700     *ac_space=\ *)
7701       # `set' does not quote correctly, so add quotes (double-quote
7702       # substitution turns \\\\ into \\, and sed turns \\ into \).
7703       sed -n \
7704         "s/'/'\\\\''/g;
7705           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
7706       ;;
7707     *)
7708       # `set' quotes correctly as required by POSIX, so do not add quotes.
7709       sed -n \
7710         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
7711       ;;
7712     esac;
7713 } |
7714   sed '
7715      t clear
7716      : clear
7717      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
7718      t end
7719      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
7720      : end' >>confcache
7721 if diff $cache_file confcache >/dev/null 2>&1; then :; else
7722   if test -w $cache_file; then
7723     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
7724     cat confcache >$cache_file
7725   else
7726     echo "not updating unwritable cache $cache_file"
7727   fi
7728 fi
7729 rm -f confcache
7730
7731 test "x$prefix" = xNONE && prefix=$ac_default_prefix
7732 # Let make expand exec_prefix.
7733 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7734
7735 # VPATH may cause trouble with some makes, so we remove $(srcdir),
7736 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
7737 # trailing colons and then remove the whole line if VPATH becomes empty
7738 # (actually we leave an empty line to preserve line numbers).
7739 if test "x$srcdir" = x.; then
7740   ac_vpsub='/^[  ]*VPATH[        ]*=/{
7741 s/:*\$(srcdir):*/:/;
7742 s/:*\${srcdir}:*/:/;
7743 s/:*@srcdir@:*/:/;
7744 s/^\([^=]*=[     ]*\):*/\1/;
7745 s/:*$//;
7746 s/^[^=]*=[       ]*$//;
7747 }'
7748 fi
7749
7750 DEFS=-DHAVE_CONFIG_H
7751
7752 ac_libobjs=
7753 ac_ltlibobjs=
7754 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
7755   # 1. Remove the extension, and $U if already installed.
7756   ac_i=`echo "$ac_i" |
7757          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
7758   # 2. Add them.
7759   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
7760   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
7761 done
7762 LIBOBJS=$ac_libobjs
7763
7764 LTLIBOBJS=$ac_ltlibobjs
7765
7766
7767
7768 : ${CONFIG_STATUS=./config.status}
7769 ac_clean_files_save=$ac_clean_files
7770 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
7771 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
7772 echo "$as_me: creating $CONFIG_STATUS" >&6;}
7773 cat >$CONFIG_STATUS <<_ACEOF
7774 #! $SHELL
7775 # Generated by $as_me.
7776 # Run this file to recreate the current configuration.
7777 # Compiler output produced by configure, useful for debugging
7778 # configure, is in config.log if it exists.
7779
7780 debug=false
7781 ac_cs_recheck=false
7782 ac_cs_silent=false
7783 SHELL=\${CONFIG_SHELL-$SHELL}
7784 _ACEOF
7785
7786 cat >>$CONFIG_STATUS <<\_ACEOF
7787 ## --------------------- ##
7788 ## M4sh Initialization.  ##
7789 ## --------------------- ##
7790
7791 # Be Bourne compatible
7792 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
7793   emulate sh
7794   NULLCMD=:
7795   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
7796   # is contrary to our usage.  Disable this feature.
7797   alias -g '${1+"$@"}'='"$@"'
7798 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
7799   set -o posix
7800 fi
7801 DUALCASE=1; export DUALCASE # for MKS sh
7802
7803 # Support unset when possible.
7804 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
7805   as_unset=unset
7806 else
7807   as_unset=false
7808 fi
7809
7810
7811 # Work around bugs in pre-3.0 UWIN ksh.
7812 $as_unset ENV MAIL MAILPATH
7813 PS1='$ '
7814 PS2='> '
7815 PS4='+ '
7816
7817 # NLS nuisances.
7818 for as_var in \
7819   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
7820   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
7821   LC_TELEPHONE LC_TIME
7822 do
7823   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
7824     eval $as_var=C; export $as_var
7825   else
7826     $as_unset $as_var
7827   fi
7828 done
7829
7830 # Required to use basename.
7831 if expr a : '\(a\)' >/dev/null 2>&1; then
7832   as_expr=expr
7833 else
7834   as_expr=false
7835 fi
7836
7837 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
7838   as_basename=basename
7839 else
7840   as_basename=false
7841 fi
7842
7843
7844 # Name of the executable.
7845 as_me=`$as_basename "$0" ||
7846 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
7847          X"$0" : 'X\(//\)$' \| \
7848          X"$0" : 'X\(/\)$' \| \
7849          .     : '\(.\)' 2>/dev/null ||
7850 echo X/"$0" |
7851     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
7852           /^X\/\(\/\/\)$/{ s//\1/; q; }
7853           /^X\/\(\/\).*/{ s//\1/; q; }
7854           s/.*/./; q'`
7855
7856
7857 # PATH needs CR, and LINENO needs CR and PATH.
7858 # Avoid depending upon Character Ranges.
7859 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
7860 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
7861 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
7862 as_cr_digits='0123456789'
7863 as_cr_alnum=$as_cr_Letters$as_cr_digits
7864
7865 # The user is always right.
7866 if test "${PATH_SEPARATOR+set}" != set; then
7867   echo "#! /bin/sh" >conf$$.sh
7868   echo  "exit 0"   >>conf$$.sh
7869   chmod +x conf$$.sh
7870   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7871     PATH_SEPARATOR=';'
7872   else
7873     PATH_SEPARATOR=:
7874   fi
7875   rm -f conf$$.sh
7876 fi
7877
7878
7879   as_lineno_1=$LINENO
7880   as_lineno_2=$LINENO
7881   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
7882   test "x$as_lineno_1" != "x$as_lineno_2" &&
7883   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
7884   # Find who we are.  Look in the path if we contain no path at all
7885   # relative or not.
7886   case $0 in
7887     *[\\/]* ) as_myself=$0 ;;
7888     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7889 for as_dir in $PATH
7890 do
7891   IFS=$as_save_IFS
7892   test -z "$as_dir" && as_dir=.
7893   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
7894 done
7895
7896        ;;
7897   esac
7898   # We did not find ourselves, most probably we were run as `sh COMMAND'
7899   # in which case we are not to be found in the path.
7900   if test "x$as_myself" = x; then
7901     as_myself=$0
7902   fi
7903   if test ! -f "$as_myself"; then
7904     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
7905 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
7906    { (exit 1); exit 1; }; }
7907   fi
7908   case $CONFIG_SHELL in
7909   '')
7910     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7911 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
7912 do
7913   IFS=$as_save_IFS
7914   test -z "$as_dir" && as_dir=.
7915   for as_base in sh bash ksh sh5; do
7916          case $as_dir in
7917          /*)
7918            if ("$as_dir/$as_base" -c '
7919   as_lineno_1=$LINENO
7920   as_lineno_2=$LINENO
7921   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
7922   test "x$as_lineno_1" != "x$as_lineno_2" &&
7923   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
7924              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
7925              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
7926              CONFIG_SHELL=$as_dir/$as_base
7927              export CONFIG_SHELL
7928              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
7929            fi;;
7930          esac
7931        done
7932 done
7933 ;;
7934   esac
7935
7936   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
7937   # uniformly replaced by the line number.  The first 'sed' inserts a
7938   # line-number line before each line; the second 'sed' does the real
7939   # work.  The second script uses 'N' to pair each line-number line
7940   # with the numbered line, and appends trailing '-' during
7941   # substitution so that $LINENO is not a special case at line end.
7942   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
7943   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
7944   sed '=' <$as_myself |
7945     sed '
7946       N
7947       s,$,-,
7948       : loop
7949       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
7950       t loop
7951       s,-$,,
7952       s,^['$as_cr_digits']*\n,,
7953     ' >$as_me.lineno &&
7954   chmod +x $as_me.lineno ||
7955     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
7956 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
7957    { (exit 1); exit 1; }; }
7958
7959   # Don't try to exec as it changes $[0], causing all sort of problems
7960   # (the dirname of $[0] is not the place where we might find the
7961   # original and so on.  Autoconf is especially sensible to this).
7962   . ./$as_me.lineno
7963   # Exit status is that of the last command.
7964   exit
7965 }
7966
7967
7968 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
7969   *c*,-n*) ECHO_N= ECHO_C='
7970 ' ECHO_T='      ' ;;
7971   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
7972   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
7973 esac
7974
7975 if expr a : '\(a\)' >/dev/null 2>&1; then
7976   as_expr=expr
7977 else
7978   as_expr=false
7979 fi
7980
7981 rm -f conf$$ conf$$.exe conf$$.file
7982 echo >conf$$.file
7983 if ln -s conf$$.file conf$$ 2>/dev/null; then
7984   # We could just check for DJGPP; but this test a) works b) is more generic
7985   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
7986   if test -f conf$$.exe; then
7987     # Don't use ln at all; we don't have any links
7988     as_ln_s='cp -p'
7989   else
7990     as_ln_s='ln -s'
7991   fi
7992 elif ln conf$$.file conf$$ 2>/dev/null; then
7993   as_ln_s=ln
7994 else
7995   as_ln_s='cp -p'
7996 fi
7997 rm -f conf$$ conf$$.exe conf$$.file
7998
7999 if mkdir -p . 2>/dev/null; then
8000   as_mkdir_p=:
8001 else
8002   test -d ./-p && rmdir ./-p
8003   as_mkdir_p=false
8004 fi
8005
8006 as_executable_p="test -f"
8007
8008 # Sed expression to map a string onto a valid CPP name.
8009 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
8010
8011 # Sed expression to map a string onto a valid variable name.
8012 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
8013
8014
8015 # IFS
8016 # We need space, tab and new line, in precisely that order.
8017 as_nl='
8018 '
8019 IFS="   $as_nl"
8020
8021 # CDPATH.
8022 $as_unset CDPATH
8023
8024 exec 6>&1
8025
8026 # Open the log real soon, to keep \$[0] and so on meaningful, and to
8027 # report actual input values of CONFIG_FILES etc. instead of their
8028 # values after options handling.  Logging --version etc. is OK.
8029 exec 5>>config.log
8030 {
8031   echo
8032   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
8033 ## Running $as_me. ##
8034 _ASBOX
8035 } >&5
8036 cat >&5 <<_CSEOF
8037
8038 This file was extended by $as_me, which was
8039 generated by GNU Autoconf 2.59.  Invocation command line was
8040
8041   CONFIG_FILES    = $CONFIG_FILES
8042   CONFIG_HEADERS  = $CONFIG_HEADERS
8043   CONFIG_LINKS    = $CONFIG_LINKS
8044   CONFIG_COMMANDS = $CONFIG_COMMANDS
8045   $ $0 $@
8046
8047 _CSEOF
8048 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
8049 echo >&5
8050 _ACEOF
8051
8052 # Files that config.status was made for.
8053 if test -n "$ac_config_files"; then
8054   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
8055 fi
8056
8057 if test -n "$ac_config_headers"; then
8058   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
8059 fi
8060
8061 if test -n "$ac_config_links"; then
8062   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
8063 fi
8064
8065 if test -n "$ac_config_commands"; then
8066   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
8067 fi
8068
8069 cat >>$CONFIG_STATUS <<\_ACEOF
8070
8071 ac_cs_usage="\
8072 \`$as_me' instantiates files from templates according to the
8073 current configuration.
8074
8075 Usage: $0 [OPTIONS] [FILE]...
8076
8077   -h, --help       print this help, then exit
8078   -V, --version    print version number, then exit
8079   -q, --quiet      do not print progress messages
8080   -d, --debug      don't remove temporary files
8081       --recheck    update $as_me by reconfiguring in the same conditions
8082   --file=FILE[:TEMPLATE]
8083                    instantiate the configuration file FILE
8084   --header=FILE[:TEMPLATE]
8085                    instantiate the configuration header FILE
8086
8087 Configuration files:
8088 $config_files
8089
8090 Configuration headers:
8091 $config_headers
8092
8093 Report bugs to <bug-autoconf@gnu.org>."
8094 _ACEOF
8095
8096 cat >>$CONFIG_STATUS <<_ACEOF
8097 ac_cs_version="\\
8098 config.status
8099 configured by $0, generated by GNU Autoconf 2.59,
8100   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
8101
8102 Copyright (C) 2003 Free Software Foundation, Inc.
8103 This config.status script is free software; the Free Software Foundation
8104 gives unlimited permission to copy, distribute and modify it."
8105 srcdir=$srcdir
8106 INSTALL="$INSTALL"
8107 _ACEOF
8108
8109 cat >>$CONFIG_STATUS <<\_ACEOF
8110 # If no file are specified by the user, then we need to provide default
8111 # value.  By we need to know if files were specified by the user.
8112 ac_need_defaults=:
8113 while test $# != 0
8114 do
8115   case $1 in
8116   --*=*)
8117     ac_option=`expr "x$1" : 'x\([^=]*\)='`
8118     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
8119     ac_shift=:
8120     ;;
8121   -*)
8122     ac_option=$1
8123     ac_optarg=$2
8124     ac_shift=shift
8125     ;;
8126   *) # This is not an option, so the user has probably given explicit
8127      # arguments.
8128      ac_option=$1
8129      ac_need_defaults=false;;
8130   esac
8131
8132   case $ac_option in
8133   # Handling of the options.
8134 _ACEOF
8135 cat >>$CONFIG_STATUS <<\_ACEOF
8136   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
8137     ac_cs_recheck=: ;;
8138   --version | --vers* | -V )
8139     echo "$ac_cs_version"; exit 0 ;;
8140   --he | --h)
8141     # Conflict between --help and --header
8142     { { echo "$as_me:$LINENO: error: ambiguous option: $1
8143 Try \`$0 --help' for more information." >&5
8144 echo "$as_me: error: ambiguous option: $1
8145 Try \`$0 --help' for more information." >&2;}
8146    { (exit 1); exit 1; }; };;
8147   --help | --hel | -h )
8148     echo "$ac_cs_usage"; exit 0 ;;
8149   --debug | --d* | -d )
8150     debug=: ;;
8151   --file | --fil | --fi | --f )
8152     $ac_shift
8153     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
8154     ac_need_defaults=false;;
8155   --header | --heade | --head | --hea )
8156     $ac_shift
8157     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
8158     ac_need_defaults=false;;
8159   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
8160   | -silent | --silent | --silen | --sile | --sil | --si | --s)
8161     ac_cs_silent=: ;;
8162
8163   # This is an error.
8164   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
8165 Try \`$0 --help' for more information." >&5
8166 echo "$as_me: error: unrecognized option: $1
8167 Try \`$0 --help' for more information." >&2;}
8168    { (exit 1); exit 1; }; } ;;
8169
8170   *) ac_config_targets="$ac_config_targets $1" ;;
8171
8172   esac
8173   shift
8174 done
8175
8176 ac_configure_extra_args=
8177
8178 if $ac_cs_silent; then
8179   exec 6>/dev/null
8180   ac_configure_extra_args="$ac_configure_extra_args --silent"
8181 fi
8182
8183 _ACEOF
8184 cat >>$CONFIG_STATUS <<_ACEOF
8185 if \$ac_cs_recheck; then
8186   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
8187   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
8188 fi
8189
8190 _ACEOF
8191
8192
8193
8194
8195
8196 cat >>$CONFIG_STATUS <<\_ACEOF
8197 for ac_config_target in $ac_config_targets
8198 do
8199   case "$ac_config_target" in
8200   # Handling of arguments.
8201   "Make.Rules" ) CONFIG_FILES="$CONFIG_FILES Make.Rules" ;;
8202   "_pam_aconf.h" ) CONFIG_HEADERS="$CONFIG_HEADERS _pam_aconf.h" ;;
8203   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
8204 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
8205    { (exit 1); exit 1; }; };;
8206   esac
8207 done
8208
8209 # If the user did not use the arguments to specify the items to instantiate,
8210 # then the envvar interface is used.  Set only those that are not.
8211 # We use the long form for the default assignment because of an extremely
8212 # bizarre bug on SunOS 4.1.3.
8213 if $ac_need_defaults; then
8214   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
8215   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
8216 fi
8217
8218 # Have a temporary directory for convenience.  Make it in the build tree
8219 # simply because there is no reason to put it here, and in addition,
8220 # creating and moving files from /tmp can sometimes cause problems.
8221 # Create a temporary directory, and hook for its removal unless debugging.
8222 $debug ||
8223 {
8224   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
8225   trap '{ (exit 1); exit 1; }' 1 2 13 15
8226 }
8227
8228 # Create a (secure) tmp directory for tmp files.
8229
8230 {
8231   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
8232   test -n "$tmp" && test -d "$tmp"
8233 }  ||
8234 {
8235   tmp=./confstat$$-$RANDOM
8236   (umask 077 && mkdir $tmp)
8237 } ||
8238 {
8239    echo "$me: cannot create a temporary directory in ." >&2
8240    { (exit 1); exit 1; }
8241 }
8242
8243 _ACEOF
8244
8245 cat >>$CONFIG_STATUS <<_ACEOF
8246
8247 #
8248 # CONFIG_FILES section.
8249 #
8250
8251 # No need to generate the scripts if there are no CONFIG_FILES.
8252 # This happens for instance when ./config.status config.h
8253 if test -n "\$CONFIG_FILES"; then
8254   # Protect against being on the right side of a sed subst in config.status.
8255   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
8256    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
8257 s,@SHELL@,$SHELL,;t t
8258 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
8259 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
8260 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
8261 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
8262 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
8263 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
8264 s,@exec_prefix@,$exec_prefix,;t t
8265 s,@prefix@,$prefix,;t t
8266 s,@program_transform_name@,$program_transform_name,;t t
8267 s,@bindir@,$bindir,;t t
8268 s,@sbindir@,$sbindir,;t t
8269 s,@libexecdir@,$libexecdir,;t t
8270 s,@datadir@,$datadir,;t t
8271 s,@sysconfdir@,$sysconfdir,;t t
8272 s,@sharedstatedir@,$sharedstatedir,;t t
8273 s,@localstatedir@,$localstatedir,;t t
8274 s,@libdir@,$libdir,;t t
8275 s,@includedir@,$includedir,;t t
8276 s,@oldincludedir@,$oldincludedir,;t t
8277 s,@infodir@,$infodir,;t t
8278 s,@mandir@,$mandir,;t t
8279 s,@build_alias@,$build_alias,;t t
8280 s,@host_alias@,$host_alias,;t t
8281 s,@target_alias@,$target_alias,;t t
8282 s,@DEFS@,$DEFS,;t t
8283 s,@ECHO_C@,$ECHO_C,;t t
8284 s,@ECHO_N@,$ECHO_N,;t t
8285 s,@ECHO_T@,$ECHO_T,;t t
8286 s,@LIBS@,$LIBS,;t t
8287 s,@LIBPAM_VERSION_MAJOR@,$LIBPAM_VERSION_MAJOR,;t t
8288 s,@LIBPAM_VERSION_MINOR@,$LIBPAM_VERSION_MINOR,;t t
8289 s,@LOCALSRCDIR@,$LOCALSRCDIR,;t t
8290 s,@LOCALOBJDIR@,$LOCALOBJDIR,;t t
8291 s,@OS@,$OS,;t t
8292 s,@CONF_CFLAGS@,$CONF_CFLAGS,;t t
8293 s,@MKDIR@,$MKDIR,;t t
8294 s,@SHLIBMODE@,$SHLIBMODE,;t t
8295 s,@MANMODE@,$MANMODE,;t t
8296 s,@USESONAME@,$USESONAME,;t t
8297 s,@SOSWITCH@,$SOSWITCH,;t t
8298 s,@NEEDSONAME@,$NEEDSONAME,;t t
8299 s,@LDCONFIG@,$LDCONFIG,;t t
8300 s,@CC@,$CC,;t t
8301 s,@CFLAGS@,$CFLAGS,;t t
8302 s,@LDFLAGS@,$LDFLAGS,;t t
8303 s,@CPPFLAGS@,$CPPFLAGS,;t t
8304 s,@ac_ct_CC@,$ac_ct_CC,;t t
8305 s,@EXEEXT@,$EXEEXT,;t t
8306 s,@OBJEXT@,$OBJEXT,;t t
8307 s,@YACC@,$YACC,;t t
8308 s,@LEX@,$LEX,;t t
8309 s,@LEXLIB@,$LEXLIB,;t t
8310 s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
8311 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
8312 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
8313 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
8314 s,@LN_S@,$LN_S,;t t
8315 s,@SET_MAKE@,$SET_MAKE,;t t
8316 s,@WITH_DEBUG@,$WITH_DEBUG,;t t
8317 s,@WITH_MEMORY_DEBUG@,$WITH_MEMORY_DEBUG,;t t
8318 s,@WITH_LIBDEBUG@,$WITH_LIBDEBUG,;t t
8319 s,@WITH_PRELUDE@,$WITH_PRELUDE,;t t
8320 s,@FAKEROOT@,$FAKEROOT,;t t
8321 s,@SECUREDIR@,$SECUREDIR,;t t
8322 s,@SCONFIGDIR@,$SCONFIGDIR,;t t
8323 s,@SUPLEMENTED@,$SUPLEMENTED,;t t
8324 s,@INCLUDEDIR@,$INCLUDEDIR,;t t
8325 s,@DOCDIR@,$DOCDIR,;t t
8326 s,@MANDIR@,$MANDIR,;t t
8327 s,@WITH_PAMLOCKING@,$WITH_PAMLOCKING,;t t
8328 s,@PAM_READ_BOTH_CONFS@,$PAM_READ_BOTH_CONFS,;t t
8329 s,@STATIC_LIBPAM@,$STATIC_LIBPAM,;t t
8330 s,@DYNAMIC_LIBPAM@,$DYNAMIC_LIBPAM,;t t
8331 s,@DYNAMIC@,$DYNAMIC,;t t
8332 s,@STATIC@,$STATIC,;t t
8333 s,@WITH_LCKPWDF@,$WITH_LCKPWDF,;t t
8334 s,@CPP@,$CPP,;t t
8335 s,@EGREP@,$EGREP,;t t
8336 s,@PAM_NEEDS_LIBC@,$PAM_NEEDS_LIBC,;t t
8337 s,@HAVE_LCKPWDF@,$HAVE_LCKPWDF,;t t
8338 s,@LIBDL@,$LIBDL,;t t
8339 s,@HAVE_LIBCRACK@,$HAVE_LIBCRACK,;t t
8340 s,@HAVE_LIBCRYPT@,$HAVE_LIBCRYPT,;t t
8341 s,@HAVE_LIBUTIL@,$HAVE_LIBUTIL,;t t
8342 s,@HAVE_LIBNDBM@,$HAVE_LIBNDBM,;t t
8343 s,@HAVE_LIBDB@,$HAVE_LIBDB,;t t
8344 s,@HAVE_LIBFL@,$HAVE_LIBFL,;t t
8345 s,@HAVE_LIBNSL@,$HAVE_LIBNSL,;t t
8346 s,@HAVE_LIBPWDB@,$HAVE_LIBPWDB,;t t
8347 s,@HAVE_LIBFLEX@,$HAVE_LIBFLEX,;t t
8348 s,@HAVE_LIBLEX@,$HAVE_LIBLEX,;t t
8349 s,@HAVE_NDBM_H@,$HAVE_NDBM_H,;t t
8350 s,@CRACKLIB_DICTPATH@,$CRACKLIB_DICTPATH,;t t
8351 s,@DYNTYPE@,$DYNTYPE,;t t
8352 s,@OS_CFLAGS@,$OS_CFLAGS,;t t
8353 s,@WARNINGS@,$WARNINGS,;t t
8354 s,@PIC@,$PIC,;t t
8355 s,@LD@,$LD,;t t
8356 s,@LD_D@,$LD_D,;t t
8357 s,@LD_L@,$LD_L,;t t
8358 s,@RANLIB@,$RANLIB,;t t
8359 s,@STRIP@,$STRIP,;t t
8360 s,@CC_STATIC@,$CC_STATIC,;t t
8361 s,@LIBOBJS@,$LIBOBJS,;t t
8362 s,@HAVE_SGML2TXT@,$HAVE_SGML2TXT,;t t
8363 s,@HAVE_SGML2HTML@,$HAVE_SGML2HTML,;t t
8364 s,@HAVE_SGML2LATEX@,$HAVE_SGML2LATEX,;t t
8365 s,@HAVE_PS2PDF@,$HAVE_PS2PDF,;t t
8366 s,@HAVE_SGML2PS@,$HAVE_SGML2PS,;t t
8367 s,@PSER@,$PSER,;t t
8368 s,@PS2PDF@,$PS2PDF,;t t
8369 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
8370 CEOF
8371
8372 _ACEOF
8373
8374   cat >>$CONFIG_STATUS <<\_ACEOF
8375   # Split the substitutions into bite-sized pieces for seds with
8376   # small command number limits, like on Digital OSF/1 and HP-UX.
8377   ac_max_sed_lines=48
8378   ac_sed_frag=1 # Number of current file.
8379   ac_beg=1 # First line for current file.
8380   ac_end=$ac_max_sed_lines # Line after last line for current file.
8381   ac_more_lines=:
8382   ac_sed_cmds=
8383   while $ac_more_lines; do
8384     if test $ac_beg -gt 1; then
8385       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
8386     else
8387       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
8388     fi
8389     if test ! -s $tmp/subs.frag; then
8390       ac_more_lines=false
8391     else
8392       # The purpose of the label and of the branching condition is to
8393       # speed up the sed processing (if there are no `@' at all, there
8394       # is no need to browse any of the substitutions).
8395       # These are the two extra sed commands mentioned above.
8396       (echo ':t
8397   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
8398       if test -z "$ac_sed_cmds"; then
8399         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
8400       else
8401         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
8402       fi
8403       ac_sed_frag=`expr $ac_sed_frag + 1`
8404       ac_beg=$ac_end
8405       ac_end=`expr $ac_end + $ac_max_sed_lines`
8406     fi
8407   done
8408   if test -z "$ac_sed_cmds"; then
8409     ac_sed_cmds=cat
8410   fi
8411 fi # test -n "$CONFIG_FILES"
8412
8413 _ACEOF
8414 cat >>$CONFIG_STATUS <<\_ACEOF
8415 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
8416   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
8417   case $ac_file in
8418   - | *:- | *:-:* ) # input from stdin
8419         cat >$tmp/stdin
8420         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
8421         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
8422   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
8423         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
8424   * )   ac_file_in=$ac_file.in ;;
8425   esac
8426
8427   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
8428   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
8429 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8430          X"$ac_file" : 'X\(//\)[^/]' \| \
8431          X"$ac_file" : 'X\(//\)$' \| \
8432          X"$ac_file" : 'X\(/\)' \| \
8433          .     : '\(.\)' 2>/dev/null ||
8434 echo X"$ac_file" |
8435     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8436           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8437           /^X\(\/\/\)$/{ s//\1/; q; }
8438           /^X\(\/\).*/{ s//\1/; q; }
8439           s/.*/./; q'`
8440   { if $as_mkdir_p; then
8441     mkdir -p "$ac_dir"
8442   else
8443     as_dir="$ac_dir"
8444     as_dirs=
8445     while test ! -d "$as_dir"; do
8446       as_dirs="$as_dir $as_dirs"
8447       as_dir=`(dirname "$as_dir") 2>/dev/null ||
8448 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8449          X"$as_dir" : 'X\(//\)[^/]' \| \
8450          X"$as_dir" : 'X\(//\)$' \| \
8451          X"$as_dir" : 'X\(/\)' \| \
8452          .     : '\(.\)' 2>/dev/null ||
8453 echo X"$as_dir" |
8454     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8455           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8456           /^X\(\/\/\)$/{ s//\1/; q; }
8457           /^X\(\/\).*/{ s//\1/; q; }
8458           s/.*/./; q'`
8459     done
8460     test ! -n "$as_dirs" || mkdir $as_dirs
8461   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
8462 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
8463    { (exit 1); exit 1; }; }; }
8464
8465   ac_builddir=.
8466
8467 if test "$ac_dir" != .; then
8468   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
8469   # A "../" for each directory in $ac_dir_suffix.
8470   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
8471 else
8472   ac_dir_suffix= ac_top_builddir=
8473 fi
8474
8475 case $srcdir in
8476   .)  # No --srcdir option.  We are building in place.
8477     ac_srcdir=.
8478     if test -z "$ac_top_builddir"; then
8479        ac_top_srcdir=.
8480     else
8481        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
8482     fi ;;
8483   [\\/]* | ?:[\\/]* )  # Absolute path.
8484     ac_srcdir=$srcdir$ac_dir_suffix;
8485     ac_top_srcdir=$srcdir ;;
8486   *) # Relative path.
8487     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
8488     ac_top_srcdir=$ac_top_builddir$srcdir ;;
8489 esac
8490
8491 # Do not use `cd foo && pwd` to compute absolute paths, because
8492 # the directories may not exist.
8493 case `pwd` in
8494 .) ac_abs_builddir="$ac_dir";;
8495 *)
8496   case "$ac_dir" in
8497   .) ac_abs_builddir=`pwd`;;
8498   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
8499   *) ac_abs_builddir=`pwd`/"$ac_dir";;
8500   esac;;
8501 esac
8502 case $ac_abs_builddir in
8503 .) ac_abs_top_builddir=${ac_top_builddir}.;;
8504 *)
8505   case ${ac_top_builddir}. in
8506   .) ac_abs_top_builddir=$ac_abs_builddir;;
8507   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
8508   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
8509   esac;;
8510 esac
8511 case $ac_abs_builddir in
8512 .) ac_abs_srcdir=$ac_srcdir;;
8513 *)
8514   case $ac_srcdir in
8515   .) ac_abs_srcdir=$ac_abs_builddir;;
8516   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
8517   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
8518   esac;;
8519 esac
8520 case $ac_abs_builddir in
8521 .) ac_abs_top_srcdir=$ac_top_srcdir;;
8522 *)
8523   case $ac_top_srcdir in
8524   .) ac_abs_top_srcdir=$ac_abs_builddir;;
8525   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
8526   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
8527   esac;;
8528 esac
8529
8530
8531   case $INSTALL in
8532   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
8533   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
8534   esac
8535
8536   if test x"$ac_file" != x-; then
8537     { echo "$as_me:$LINENO: creating $ac_file" >&5
8538 echo "$as_me: creating $ac_file" >&6;}
8539     rm -f "$ac_file"
8540   fi
8541   # Let's still pretend it is `configure' which instantiates (i.e., don't
8542   # use $as_me), people would be surprised to read:
8543   #    /* config.h.  Generated by config.status.  */
8544   if test x"$ac_file" = x-; then
8545     configure_input=
8546   else
8547     configure_input="$ac_file.  "
8548   fi
8549   configure_input=$configure_input"Generated from `echo $ac_file_in |
8550                                      sed 's,.*/,,'` by configure."
8551
8552   # First look for the input files in the build tree, otherwise in the
8553   # src tree.
8554   ac_file_inputs=`IFS=:
8555     for f in $ac_file_in; do
8556       case $f in
8557       -) echo $tmp/stdin ;;
8558       [\\/$]*)
8559          # Absolute (can't be DOS-style, as IFS=:)
8560          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8561 echo "$as_me: error: cannot find input file: $f" >&2;}
8562    { (exit 1); exit 1; }; }
8563          echo "$f";;
8564       *) # Relative
8565          if test -f "$f"; then
8566            # Build tree
8567            echo "$f"
8568          elif test -f "$srcdir/$f"; then
8569            # Source tree
8570            echo "$srcdir/$f"
8571          else
8572            # /dev/null tree
8573            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8574 echo "$as_me: error: cannot find input file: $f" >&2;}
8575    { (exit 1); exit 1; }; }
8576          fi;;
8577       esac
8578     done` || { (exit 1); exit 1; }
8579 _ACEOF
8580 cat >>$CONFIG_STATUS <<_ACEOF
8581   sed "$ac_vpsub
8582 $extrasub
8583 _ACEOF
8584 cat >>$CONFIG_STATUS <<\_ACEOF
8585 :t
8586 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
8587 s,@configure_input@,$configure_input,;t t
8588 s,@srcdir@,$ac_srcdir,;t t
8589 s,@abs_srcdir@,$ac_abs_srcdir,;t t
8590 s,@top_srcdir@,$ac_top_srcdir,;t t
8591 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
8592 s,@builddir@,$ac_builddir,;t t
8593 s,@abs_builddir@,$ac_abs_builddir,;t t
8594 s,@top_builddir@,$ac_top_builddir,;t t
8595 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
8596 s,@INSTALL@,$ac_INSTALL,;t t
8597 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
8598   rm -f $tmp/stdin
8599   if test x"$ac_file" != x-; then
8600     mv $tmp/out $ac_file
8601   else
8602     cat $tmp/out
8603     rm -f $tmp/out
8604   fi
8605
8606 done
8607 _ACEOF
8608 cat >>$CONFIG_STATUS <<\_ACEOF
8609
8610 #
8611 # CONFIG_HEADER section.
8612 #
8613
8614 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
8615 # NAME is the cpp macro being defined and VALUE is the value it is being given.
8616 #
8617 # ac_d sets the value in "#define NAME VALUE" lines.
8618 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
8619 ac_dB='[         ].*$,\1#\2'
8620 ac_dC=' '
8621 ac_dD=',;t'
8622 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
8623 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
8624 ac_uB='$,\1#\2define\3'
8625 ac_uC=' '
8626 ac_uD=',;t'
8627
8628 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
8629   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
8630   case $ac_file in
8631   - | *:- | *:-:* ) # input from stdin
8632         cat >$tmp/stdin
8633         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
8634         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
8635   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
8636         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
8637   * )   ac_file_in=$ac_file.in ;;
8638   esac
8639
8640   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
8641 echo "$as_me: creating $ac_file" >&6;}
8642
8643   # First look for the input files in the build tree, otherwise in the
8644   # src tree.
8645   ac_file_inputs=`IFS=:
8646     for f in $ac_file_in; do
8647       case $f in
8648       -) echo $tmp/stdin ;;
8649       [\\/$]*)
8650          # Absolute (can't be DOS-style, as IFS=:)
8651          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8652 echo "$as_me: error: cannot find input file: $f" >&2;}
8653    { (exit 1); exit 1; }; }
8654          # Do quote $f, to prevent DOS paths from being IFS'd.
8655          echo "$f";;
8656       *) # Relative
8657          if test -f "$f"; then
8658            # Build tree
8659            echo "$f"
8660          elif test -f "$srcdir/$f"; then
8661            # Source tree
8662            echo "$srcdir/$f"
8663          else
8664            # /dev/null tree
8665            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8666 echo "$as_me: error: cannot find input file: $f" >&2;}
8667    { (exit 1); exit 1; }; }
8668          fi;;
8669       esac
8670     done` || { (exit 1); exit 1; }
8671   # Remove the trailing spaces.
8672   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
8673
8674 _ACEOF
8675
8676 # Transform confdefs.h into two sed scripts, `conftest.defines' and
8677 # `conftest.undefs', that substitutes the proper values into
8678 # config.h.in to produce config.h.  The first handles `#define'
8679 # templates, and the second `#undef' templates.
8680 # And first: Protect against being on the right side of a sed subst in
8681 # config.status.  Protect against being in an unquoted here document
8682 # in config.status.
8683 rm -f conftest.defines conftest.undefs
8684 # Using a here document instead of a string reduces the quoting nightmare.
8685 # Putting comments in sed scripts is not portable.
8686 #
8687 # `end' is used to avoid that the second main sed command (meant for
8688 # 0-ary CPP macros) applies to n-ary macro definitions.
8689 # See the Autoconf documentation for `clear'.
8690 cat >confdef2sed.sed <<\_ACEOF
8691 s/[\\&,]/\\&/g
8692 s,[\\$`],\\&,g
8693 t clear
8694 : clear
8695 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
8696 t end
8697 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
8698 : end
8699 _ACEOF
8700 # If some macros were called several times there might be several times
8701 # the same #defines, which is useless.  Nevertheless, we may not want to
8702 # sort them, since we want the *last* AC-DEFINE to be honored.
8703 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
8704 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
8705 rm -f confdef2sed.sed
8706
8707 # This sed command replaces #undef with comments.  This is necessary, for
8708 # example, in the case of _POSIX_SOURCE, which is predefined and required
8709 # on some systems where configure will not decide to define it.
8710 cat >>conftest.undefs <<\_ACEOF
8711 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
8712 _ACEOF
8713
8714 # Break up conftest.defines because some shells have a limit on the size
8715 # of here documents, and old seds have small limits too (100 cmds).
8716 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
8717 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
8718 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
8719 echo '  :' >>$CONFIG_STATUS
8720 rm -f conftest.tail
8721 while grep . conftest.defines >/dev/null
8722 do
8723   # Write a limited-size here document to $tmp/defines.sed.
8724   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
8725   # Speed up: don't consider the non `#define' lines.
8726   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
8727   # Work around the forget-to-reset-the-flag bug.
8728   echo 't clr' >>$CONFIG_STATUS
8729   echo ': clr' >>$CONFIG_STATUS
8730   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
8731   echo 'CEOF
8732   sed -f $tmp/defines.sed $tmp/in >$tmp/out
8733   rm -f $tmp/in
8734   mv $tmp/out $tmp/in
8735 ' >>$CONFIG_STATUS
8736   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
8737   rm -f conftest.defines
8738   mv conftest.tail conftest.defines
8739 done
8740 rm -f conftest.defines
8741 echo '  fi # grep' >>$CONFIG_STATUS
8742 echo >>$CONFIG_STATUS
8743
8744 # Break up conftest.undefs because some shells have a limit on the size
8745 # of here documents, and old seds have small limits too (100 cmds).
8746 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
8747 rm -f conftest.tail
8748 while grep . conftest.undefs >/dev/null
8749 do
8750   # Write a limited-size here document to $tmp/undefs.sed.
8751   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
8752   # Speed up: don't consider the non `#undef'
8753   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
8754   # Work around the forget-to-reset-the-flag bug.
8755   echo 't clr' >>$CONFIG_STATUS
8756   echo ': clr' >>$CONFIG_STATUS
8757   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
8758   echo 'CEOF
8759   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
8760   rm -f $tmp/in
8761   mv $tmp/out $tmp/in
8762 ' >>$CONFIG_STATUS
8763   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
8764   rm -f conftest.undefs
8765   mv conftest.tail conftest.undefs
8766 done
8767 rm -f conftest.undefs
8768
8769 cat >>$CONFIG_STATUS <<\_ACEOF
8770   # Let's still pretend it is `configure' which instantiates (i.e., don't
8771   # use $as_me), people would be surprised to read:
8772   #    /* config.h.  Generated by config.status.  */
8773   if test x"$ac_file" = x-; then
8774     echo "/* Generated by configure.  */" >$tmp/config.h
8775   else
8776     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
8777   fi
8778   cat $tmp/in >>$tmp/config.h
8779   rm -f $tmp/in
8780   if test x"$ac_file" != x-; then
8781     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
8782       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
8783 echo "$as_me: $ac_file is unchanged" >&6;}
8784     else
8785       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
8786 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8787          X"$ac_file" : 'X\(//\)[^/]' \| \
8788          X"$ac_file" : 'X\(//\)$' \| \
8789          X"$ac_file" : 'X\(/\)' \| \
8790          .     : '\(.\)' 2>/dev/null ||
8791 echo X"$ac_file" |
8792     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8793           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8794           /^X\(\/\/\)$/{ s//\1/; q; }
8795           /^X\(\/\).*/{ s//\1/; q; }
8796           s/.*/./; q'`
8797       { if $as_mkdir_p; then
8798     mkdir -p "$ac_dir"
8799   else
8800     as_dir="$ac_dir"
8801     as_dirs=
8802     while test ! -d "$as_dir"; do
8803       as_dirs="$as_dir $as_dirs"
8804       as_dir=`(dirname "$as_dir") 2>/dev/null ||
8805 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8806          X"$as_dir" : 'X\(//\)[^/]' \| \
8807          X"$as_dir" : 'X\(//\)$' \| \
8808          X"$as_dir" : 'X\(/\)' \| \
8809          .     : '\(.\)' 2>/dev/null ||
8810 echo X"$as_dir" |
8811     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8812           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8813           /^X\(\/\/\)$/{ s//\1/; q; }
8814           /^X\(\/\).*/{ s//\1/; q; }
8815           s/.*/./; q'`
8816     done
8817     test ! -n "$as_dirs" || mkdir $as_dirs
8818   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
8819 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
8820    { (exit 1); exit 1; }; }; }
8821
8822       rm -f $ac_file
8823       mv $tmp/config.h $ac_file
8824     fi
8825   else
8826     cat $tmp/config.h
8827     rm -f $tmp/config.h
8828   fi
8829 done
8830 _ACEOF
8831
8832 cat >>$CONFIG_STATUS <<\_ACEOF
8833
8834 { (exit 0); exit 0; }
8835 _ACEOF
8836 chmod +x $CONFIG_STATUS
8837 ac_clean_files=$ac_clean_files_save
8838
8839
8840 # configure is writing to config.log, and then calls config.status.
8841 # config.status does its own redirection, appending to config.log.
8842 # Unfortunately, on DOS this fails, as config.log is still kept open
8843 # by configure, so config.status won't be able to write to it; its
8844 # output is simply discarded.  So we exec the FD to /dev/null,
8845 # effectively closing config.log, so it can be properly (re)opened and
8846 # appended to by config.status.  When coming back to configure, we
8847 # need to make the FD available again.
8848 if test "$no_create" != yes; then
8849   ac_cs_success=:
8850   ac_config_status_args=
8851   test "$silent" = yes &&
8852     ac_config_status_args="$ac_config_status_args --quiet"
8853   exec 5>/dev/null
8854   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
8855   exec 5>>config.log
8856   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
8857   # would make configure fail if this is the last instruction.
8858   $ac_cs_success || { (exit 1); exit 1; }
8859 fi
8860