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