New config file format
[l2tpns.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.58 for l2tpns 1.0.0.
4 #
5 # Report bugs to <fred_nerk@sourceforge.net>.
6 #
7 # Copyright (C) 2003 Free Software Foundation, Inc.
8 # This configure script is free software; the Free Software Foundation
9 # gives unlimited permission to copy, distribute and modify it.
10 ## --------------------- ##
11 ## M4sh Initialization.  ##
12 ## --------------------- ##
13
14 # Be Bourne compatible
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16   emulate sh
17   NULLCMD=:
18   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19   # is contrary to our usage.  Disable this feature.
20   alias -g '${1+"$@"}'='"$@"'
21 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22   set -o posix
23 fi
24 DUALCASE=1; export DUALCASE # for MKS sh
25
26 # Support unset when possible.
27 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
28   as_unset=unset
29 else
30   as_unset=false
31 fi
32
33
34 # Work around bugs in pre-3.0 UWIN ksh.
35 $as_unset ENV MAIL MAILPATH
36 PS1='$ '
37 PS2='> '
38 PS4='+ '
39
40 # NLS nuisances.
41 for as_var in \
42   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
43   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44   LC_TELEPHONE LC_TIME
45 do
46   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
47     eval $as_var=C; export $as_var
48   else
49     $as_unset $as_var
50   fi
51 done
52
53 # Required to use basename.
54 if expr a : '\(a\)' >/dev/null 2>&1; then
55   as_expr=expr
56 else
57   as_expr=false
58 fi
59
60 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
61   as_basename=basename
62 else
63   as_basename=false
64 fi
65
66
67 # Name of the executable.
68 as_me=`$as_basename "$0" ||
69 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
70          X"$0" : 'X\(//\)$' \| \
71          X"$0" : 'X\(/\)$' \| \
72          .     : '\(.\)' 2>/dev/null ||
73 echo X/"$0" |
74     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
75           /^X\/\(\/\/\)$/{ s//\1/; q; }
76           /^X\/\(\/\).*/{ s//\1/; q; }
77           s/.*/./; q'`
78
79
80 # PATH needs CR, and LINENO needs CR and PATH.
81 # Avoid depending upon Character Ranges.
82 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
83 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
84 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
85 as_cr_digits='0123456789'
86 as_cr_alnum=$as_cr_Letters$as_cr_digits
87
88 # The user is always right.
89 if test "${PATH_SEPARATOR+set}" != set; then
90   echo "#! /bin/sh" >conf$$.sh
91   echo  "exit 0"   >>conf$$.sh
92   chmod +x conf$$.sh
93   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
94     PATH_SEPARATOR=';'
95   else
96     PATH_SEPARATOR=:
97   fi
98   rm -f conf$$.sh
99 fi
100
101
102   as_lineno_1=$LINENO
103   as_lineno_2=$LINENO
104   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
105   test "x$as_lineno_1" != "x$as_lineno_2" &&
106   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
107   # Find who we are.  Look in the path if we contain no path at all
108   # relative or not.
109   case $0 in
110     *[\\/]* ) as_myself=$0 ;;
111     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
112 for as_dir in $PATH
113 do
114   IFS=$as_save_IFS
115   test -z "$as_dir" && as_dir=.
116   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
117 done
118
119        ;;
120   esac
121   # We did not find ourselves, most probably we were run as `sh COMMAND'
122   # in which case we are not to be found in the path.
123   if test "x$as_myself" = x; then
124     as_myself=$0
125   fi
126   if test ! -f "$as_myself"; then
127     { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
128    { (exit 1); exit 1; }; }
129   fi
130   case $CONFIG_SHELL in
131   '')
132     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
133 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
134 do
135   IFS=$as_save_IFS
136   test -z "$as_dir" && as_dir=.
137   for as_base in sh bash ksh sh5; do
138          case $as_dir in
139          /*)
140            if ("$as_dir/$as_base" -c '
141   as_lineno_1=$LINENO
142   as_lineno_2=$LINENO
143   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
144   test "x$as_lineno_1" != "x$as_lineno_2" &&
145   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
146              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
147              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
148              CONFIG_SHELL=$as_dir/$as_base
149              export CONFIG_SHELL
150              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
151            fi;;
152          esac
153        done
154 done
155 ;;
156   esac
157
158   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
159   # uniformly replaced by the line number.  The first 'sed' inserts a
160   # line-number line before each line; the second 'sed' does the real
161   # work.  The second script uses 'N' to pair each line-number line
162   # with the numbered line, and appends trailing '-' during
163   # substitution so that $LINENO is not a special case at line end.
164   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
165   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
166   sed '=' <$as_myself |
167     sed '
168       N
169       s,$,-,
170       : loop
171       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172       t loop
173       s,-$,,
174       s,^['$as_cr_digits']*\n,,
175     ' >$as_me.lineno &&
176   chmod +x $as_me.lineno ||
177     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
178    { (exit 1); exit 1; }; }
179
180   # Don't try to exec as it changes $[0], causing all sort of problems
181   # (the dirname of $[0] is not the place where we might find the
182   # original and so on.  Autoconf is especially sensible to this).
183   . ./$as_me.lineno
184   # Exit status is that of the last command.
185   exit
186 }
187
188
189 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
190   *c*,-n*) ECHO_N= ECHO_C='
191 ' ECHO_T='      ' ;;
192   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
193   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
194 esac
195
196 if expr a : '\(a\)' >/dev/null 2>&1; then
197   as_expr=expr
198 else
199   as_expr=false
200 fi
201
202 rm -f conf$$ conf$$.exe conf$$.file
203 echo >conf$$.file
204 if ln -s conf$$.file conf$$ 2>/dev/null; then
205   # We could just check for DJGPP; but this test a) works b) is more generic
206   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
207   if test -f conf$$.exe; then
208     # Don't use ln at all; we don't have any links
209     as_ln_s='cp -p'
210   else
211     as_ln_s='ln -s'
212   fi
213 elif ln conf$$.file conf$$ 2>/dev/null; then
214   as_ln_s=ln
215 else
216   as_ln_s='cp -p'
217 fi
218 rm -f conf$$ conf$$.exe conf$$.file
219
220 if mkdir -p . 2>/dev/null; then
221   as_mkdir_p=:
222 else
223   test -d ./-p && rmdir ./-p
224   as_mkdir_p=false
225 fi
226
227 as_executable_p="test -f"
228
229 # Sed expression to map a string onto a valid CPP name.
230 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
231
232 # Sed expression to map a string onto a valid variable name.
233 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
234
235
236 # IFS
237 # We need space, tab and new line, in precisely that order.
238 as_nl='
239 '
240 IFS="   $as_nl"
241
242 # CDPATH.
243 $as_unset CDPATH
244
245
246 # Name of the host.
247 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
248 # so uname gets run too.
249 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
250
251 exec 6>&1
252
253 #
254 # Initializations.
255 #
256 ac_default_prefix=/usr/local
257 ac_config_libobj_dir=.
258 cross_compiling=no
259 subdirs=
260 MFLAGS=
261 MAKEFLAGS=
262 SHELL=${CONFIG_SHELL-/bin/sh}
263
264 # Maximum number of lines to put in a shell here document.
265 # This variable seems obsolete.  It should probably be removed, and
266 # only ac_max_sed_lines should be used.
267 : ${ac_max_here_lines=38}
268
269 # Identity of this package.
270 PACKAGE_NAME='l2tpns'
271 PACKAGE_TARNAME='l2tpns'
272 PACKAGE_VERSION='1.0.0'
273 PACKAGE_STRING='l2tpns 1.0.0'
274 PACKAGE_BUGREPORT='fred_nerk@sourceforge.net'
275
276 ac_unique_file="ll.c"
277 # Factoring default headers for most tests.
278 ac_includes_default="\
279 #include <stdio.h>
280 #if HAVE_SYS_TYPES_H
281 # include <sys/types.h>
282 #endif
283 #if HAVE_SYS_STAT_H
284 # include <sys/stat.h>
285 #endif
286 #if STDC_HEADERS
287 # include <stdlib.h>
288 # include <stddef.h>
289 #else
290 # if HAVE_STDLIB_H
291 #  include <stdlib.h>
292 # endif
293 #endif
294 #if HAVE_STRING_H
295 # if !STDC_HEADERS && HAVE_MEMORY_H
296 #  include <memory.h>
297 # endif
298 # include <string.h>
299 #endif
300 #if HAVE_STRINGS_H
301 # include <strings.h>
302 #endif
303 #if HAVE_INTTYPES_H
304 # include <inttypes.h>
305 #else
306 # if HAVE_STDINT_H
307 #  include <stdint.h>
308 # endif
309 #endif
310 #if HAVE_UNISTD_H
311 # include <unistd.h>
312 #endif"
313
314 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 CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CPP EGREP LIBOBJS LTLIBOBJS'
315 ac_subst_files=''
316
317 # Initialize some variables set by options.
318 ac_init_help=
319 ac_init_version=false
320 # The variables have the same names as the options, with
321 # dashes changed to underlines.
322 cache_file=/dev/null
323 exec_prefix=NONE
324 no_create=
325 no_recursion=
326 prefix=NONE
327 program_prefix=NONE
328 program_suffix=NONE
329 program_transform_name=s,x,x,
330 silent=
331 site=
332 srcdir=
333 verbose=
334 x_includes=NONE
335 x_libraries=NONE
336
337 # Installation directory options.
338 # These are left unexpanded so users can "make install exec_prefix=/foo"
339 # and all the variables that are supposed to be based on exec_prefix
340 # by default will actually change.
341 # Use braces instead of parens because sh, perl, etc. also accept them.
342 bindir='${exec_prefix}/bin'
343 sbindir='${exec_prefix}/sbin'
344 libexecdir='${exec_prefix}/libexec'
345 datadir='${prefix}/share'
346 sysconfdir='${prefix}/etc'
347 sharedstatedir='${prefix}/com'
348 localstatedir='${prefix}/var'
349 libdir='${exec_prefix}/lib'
350 includedir='${prefix}/include'
351 oldincludedir='/usr/include'
352 infodir='${prefix}/info'
353 mandir='${prefix}/man'
354
355 ac_prev=
356 for ac_option
357 do
358   # If the previous option needs an argument, assign it.
359   if test -n "$ac_prev"; then
360     eval "$ac_prev=\$ac_option"
361     ac_prev=
362     continue
363   fi
364
365   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
366
367   # Accept the important Cygnus configure options, so we can diagnose typos.
368
369   case $ac_option in
370
371   -bindir | --bindir | --bindi | --bind | --bin | --bi)
372     ac_prev=bindir ;;
373   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
374     bindir=$ac_optarg ;;
375
376   -build | --build | --buil | --bui | --bu)
377     ac_prev=build_alias ;;
378   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
379     build_alias=$ac_optarg ;;
380
381   -cache-file | --cache-file | --cache-fil | --cache-fi \
382   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
383     ac_prev=cache_file ;;
384   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
385   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
386     cache_file=$ac_optarg ;;
387
388   --config-cache | -C)
389     cache_file=config.cache ;;
390
391   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
392     ac_prev=datadir ;;
393   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
394   | --da=*)
395     datadir=$ac_optarg ;;
396
397   -disable-* | --disable-*)
398     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
399     # Reject names that are not valid shell variable names.
400     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
401       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
402    { (exit 1); exit 1; }; }
403     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
404     eval "enable_$ac_feature=no" ;;
405
406   -enable-* | --enable-*)
407     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
408     # Reject names that are not valid shell variable names.
409     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
410       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
411    { (exit 1); exit 1; }; }
412     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
413     case $ac_option in
414       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
415       *) ac_optarg=yes ;;
416     esac
417     eval "enable_$ac_feature='$ac_optarg'" ;;
418
419   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
420   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
421   | --exec | --exe | --ex)
422     ac_prev=exec_prefix ;;
423   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
424   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
425   | --exec=* | --exe=* | --ex=*)
426     exec_prefix=$ac_optarg ;;
427
428   -gas | --gas | --ga | --g)
429     # Obsolete; use --with-gas.
430     with_gas=yes ;;
431
432   -help | --help | --hel | --he | -h)
433     ac_init_help=long ;;
434   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
435     ac_init_help=recursive ;;
436   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
437     ac_init_help=short ;;
438
439   -host | --host | --hos | --ho)
440     ac_prev=host_alias ;;
441   -host=* | --host=* | --hos=* | --ho=*)
442     host_alias=$ac_optarg ;;
443
444   -includedir | --includedir | --includedi | --included | --include \
445   | --includ | --inclu | --incl | --inc)
446     ac_prev=includedir ;;
447   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
448   | --includ=* | --inclu=* | --incl=* | --inc=*)
449     includedir=$ac_optarg ;;
450
451   -infodir | --infodir | --infodi | --infod | --info | --inf)
452     ac_prev=infodir ;;
453   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
454     infodir=$ac_optarg ;;
455
456   -libdir | --libdir | --libdi | --libd)
457     ac_prev=libdir ;;
458   -libdir=* | --libdir=* | --libdi=* | --libd=*)
459     libdir=$ac_optarg ;;
460
461   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
462   | --libexe | --libex | --libe)
463     ac_prev=libexecdir ;;
464   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
465   | --libexe=* | --libex=* | --libe=*)
466     libexecdir=$ac_optarg ;;
467
468   -localstatedir | --localstatedir | --localstatedi | --localstated \
469   | --localstate | --localstat | --localsta | --localst \
470   | --locals | --local | --loca | --loc | --lo)
471     ac_prev=localstatedir ;;
472   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
473   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
474   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
475     localstatedir=$ac_optarg ;;
476
477   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
478     ac_prev=mandir ;;
479   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
480     mandir=$ac_optarg ;;
481
482   -nfp | --nfp | --nf)
483     # Obsolete; use --without-fp.
484     with_fp=no ;;
485
486   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
487   | --no-cr | --no-c | -n)
488     no_create=yes ;;
489
490   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
491   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
492     no_recursion=yes ;;
493
494   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
495   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
496   | --oldin | --oldi | --old | --ol | --o)
497     ac_prev=oldincludedir ;;
498   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
499   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
500   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
501     oldincludedir=$ac_optarg ;;
502
503   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
504     ac_prev=prefix ;;
505   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
506     prefix=$ac_optarg ;;
507
508   -program-prefix | --program-prefix | --program-prefi | --program-pref \
509   | --program-pre | --program-pr | --program-p)
510     ac_prev=program_prefix ;;
511   -program-prefix=* | --program-prefix=* | --program-prefi=* \
512   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
513     program_prefix=$ac_optarg ;;
514
515   -program-suffix | --program-suffix | --program-suffi | --program-suff \
516   | --program-suf | --program-su | --program-s)
517     ac_prev=program_suffix ;;
518   -program-suffix=* | --program-suffix=* | --program-suffi=* \
519   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
520     program_suffix=$ac_optarg ;;
521
522   -program-transform-name | --program-transform-name \
523   | --program-transform-nam | --program-transform-na \
524   | --program-transform-n | --program-transform- \
525   | --program-transform | --program-transfor \
526   | --program-transfo | --program-transf \
527   | --program-trans | --program-tran \
528   | --progr-tra | --program-tr | --program-t)
529     ac_prev=program_transform_name ;;
530   -program-transform-name=* | --program-transform-name=* \
531   | --program-transform-nam=* | --program-transform-na=* \
532   | --program-transform-n=* | --program-transform-=* \
533   | --program-transform=* | --program-transfor=* \
534   | --program-transfo=* | --program-transf=* \
535   | --program-trans=* | --program-tran=* \
536   | --progr-tra=* | --program-tr=* | --program-t=*)
537     program_transform_name=$ac_optarg ;;
538
539   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
540   | -silent | --silent | --silen | --sile | --sil)
541     silent=yes ;;
542
543   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
544     ac_prev=sbindir ;;
545   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
546   | --sbi=* | --sb=*)
547     sbindir=$ac_optarg ;;
548
549   -sharedstatedir | --sharedstatedir | --sharedstatedi \
550   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
551   | --sharedst | --shareds | --shared | --share | --shar \
552   | --sha | --sh)
553     ac_prev=sharedstatedir ;;
554   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
555   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
556   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
557   | --sha=* | --sh=*)
558     sharedstatedir=$ac_optarg ;;
559
560   -site | --site | --sit)
561     ac_prev=site ;;
562   -site=* | --site=* | --sit=*)
563     site=$ac_optarg ;;
564
565   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
566     ac_prev=srcdir ;;
567   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
568     srcdir=$ac_optarg ;;
569
570   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
571   | --syscon | --sysco | --sysc | --sys | --sy)
572     ac_prev=sysconfdir ;;
573   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
574   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
575     sysconfdir=$ac_optarg ;;
576
577   -target | --target | --targe | --targ | --tar | --ta | --t)
578     ac_prev=target_alias ;;
579   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
580     target_alias=$ac_optarg ;;
581
582   -v | -verbose | --verbose | --verbos | --verbo | --verb)
583     verbose=yes ;;
584
585   -version | --version | --versio | --versi | --vers | -V)
586     ac_init_version=: ;;
587
588   -with-* | --with-*)
589     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
590     # Reject names that are not valid shell variable names.
591     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
592       { echo "$as_me: error: invalid package name: $ac_package" >&2
593    { (exit 1); exit 1; }; }
594     ac_package=`echo $ac_package| sed 's/-/_/g'`
595     case $ac_option in
596       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
597       *) ac_optarg=yes ;;
598     esac
599     eval "with_$ac_package='$ac_optarg'" ;;
600
601   -without-* | --without-*)
602     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
603     # Reject names that are not valid shell variable names.
604     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
605       { echo "$as_me: error: invalid package name: $ac_package" >&2
606    { (exit 1); exit 1; }; }
607     ac_package=`echo $ac_package | sed 's/-/_/g'`
608     eval "with_$ac_package=no" ;;
609
610   --x)
611     # Obsolete; use --with-x.
612     with_x=yes ;;
613
614   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
615   | --x-incl | --x-inc | --x-in | --x-i)
616     ac_prev=x_includes ;;
617   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
618   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
619     x_includes=$ac_optarg ;;
620
621   -x-libraries | --x-libraries | --x-librarie | --x-librari \
622   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
623     ac_prev=x_libraries ;;
624   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
625   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
626     x_libraries=$ac_optarg ;;
627
628   -*) { echo "$as_me: error: unrecognized option: $ac_option
629 Try \`$0 --help' for more information." >&2
630    { (exit 1); exit 1; }; }
631     ;;
632
633   *=*)
634     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
635     # Reject names that are not valid shell variable names.
636     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
637       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
638    { (exit 1); exit 1; }; }
639     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
640     eval "$ac_envvar='$ac_optarg'"
641     export $ac_envvar ;;
642
643   *)
644     # FIXME: should be removed in autoconf 3.0.
645     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
646     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
647       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
648     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
649     ;;
650
651   esac
652 done
653
654 if test -n "$ac_prev"; then
655   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
656   { echo "$as_me: error: missing argument to $ac_option" >&2
657    { (exit 1); exit 1; }; }
658 fi
659
660 # Be sure to have absolute paths.
661 for ac_var in exec_prefix prefix
662 do
663   eval ac_val=$`echo $ac_var`
664   case $ac_val in
665     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
666     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
667    { (exit 1); exit 1; }; };;
668   esac
669 done
670
671 # Be sure to have absolute paths.
672 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
673               localstatedir libdir includedir oldincludedir infodir mandir
674 do
675   eval ac_val=$`echo $ac_var`
676   case $ac_val in
677     [\\/$]* | ?:[\\/]* ) ;;
678     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
679    { (exit 1); exit 1; }; };;
680   esac
681 done
682
683 # There might be people who depend on the old broken behavior: `$host'
684 # used to hold the argument of --host etc.
685 # FIXME: To remove some day.
686 build=$build_alias
687 host=$host_alias
688 target=$target_alias
689
690 # FIXME: To remove some day.
691 if test "x$host_alias" != x; then
692   if test "x$build_alias" = x; then
693     cross_compiling=maybe
694     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
695     If a cross compiler is detected then cross compile mode will be used." >&2
696   elif test "x$build_alias" != "x$host_alias"; then
697     cross_compiling=yes
698   fi
699 fi
700
701 ac_tool_prefix=
702 test -n "$host_alias" && ac_tool_prefix=$host_alias-
703
704 test "$silent" = yes && exec 6>/dev/null
705
706
707 # Find the source files, if location was not specified.
708 if test -z "$srcdir"; then
709   ac_srcdir_defaulted=yes
710   # Try the directory containing this script, then its parent.
711   ac_confdir=`(dirname "$0") 2>/dev/null ||
712 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
713          X"$0" : 'X\(//\)[^/]' \| \
714          X"$0" : 'X\(//\)$' \| \
715          X"$0" : 'X\(/\)' \| \
716          .     : '\(.\)' 2>/dev/null ||
717 echo X"$0" |
718     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
719           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
720           /^X\(\/\/\)$/{ s//\1/; q; }
721           /^X\(\/\).*/{ s//\1/; q; }
722           s/.*/./; q'`
723   srcdir=$ac_confdir
724   if test ! -r $srcdir/$ac_unique_file; then
725     srcdir=..
726   fi
727 else
728   ac_srcdir_defaulted=no
729 fi
730 if test ! -r $srcdir/$ac_unique_file; then
731   if test "$ac_srcdir_defaulted" = yes; then
732     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
733    { (exit 1); exit 1; }; }
734   else
735     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
736    { (exit 1); exit 1; }; }
737   fi
738 fi
739 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
740   { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
741    { (exit 1); exit 1; }; }
742 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
743 ac_env_build_alias_set=${build_alias+set}
744 ac_env_build_alias_value=$build_alias
745 ac_cv_env_build_alias_set=${build_alias+set}
746 ac_cv_env_build_alias_value=$build_alias
747 ac_env_host_alias_set=${host_alias+set}
748 ac_env_host_alias_value=$host_alias
749 ac_cv_env_host_alias_set=${host_alias+set}
750 ac_cv_env_host_alias_value=$host_alias
751 ac_env_target_alias_set=${target_alias+set}
752 ac_env_target_alias_value=$target_alias
753 ac_cv_env_target_alias_set=${target_alias+set}
754 ac_cv_env_target_alias_value=$target_alias
755 ac_env_CC_set=${CC+set}
756 ac_env_CC_value=$CC
757 ac_cv_env_CC_set=${CC+set}
758 ac_cv_env_CC_value=$CC
759 ac_env_CFLAGS_set=${CFLAGS+set}
760 ac_env_CFLAGS_value=$CFLAGS
761 ac_cv_env_CFLAGS_set=${CFLAGS+set}
762 ac_cv_env_CFLAGS_value=$CFLAGS
763 ac_env_LDFLAGS_set=${LDFLAGS+set}
764 ac_env_LDFLAGS_value=$LDFLAGS
765 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
766 ac_cv_env_LDFLAGS_value=$LDFLAGS
767 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
768 ac_env_CPPFLAGS_value=$CPPFLAGS
769 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
770 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
771 ac_env_CPP_set=${CPP+set}
772 ac_env_CPP_value=$CPP
773 ac_cv_env_CPP_set=${CPP+set}
774 ac_cv_env_CPP_value=$CPP
775
776 #
777 # Report the --help message.
778 #
779 if test "$ac_init_help" = "long"; then
780   # Omit some internal or obsolete options to make the list less imposing.
781   # This message is too long to be a string in the A/UX 3.1 sh.
782   cat <<_ACEOF
783 \`configure' configures l2tpns 1.0.0 to adapt to many kinds of systems.
784
785 Usage: $0 [OPTION]... [VAR=VALUE]...
786
787 To assign environment variables (e.g., CC, CFLAGS...), specify them as
788 VAR=VALUE.  See below for descriptions of some of the useful variables.
789
790 Defaults for the options are specified in brackets.
791
792 Configuration:
793   -h, --help              display this help and exit
794       --help=short        display options specific to this package
795       --help=recursive    display the short help of all the included packages
796   -V, --version           display version information and exit
797   -q, --quiet, --silent   do not print \`checking...' messages
798       --cache-file=FILE   cache test results in FILE [disabled]
799   -C, --config-cache      alias for \`--cache-file=config.cache'
800   -n, --no-create         do not create output files
801       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
802
803 _ACEOF
804
805   cat <<_ACEOF
806 Installation directories:
807   --prefix=PREFIX         install architecture-independent files in PREFIX
808                           [$ac_default_prefix]
809   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
810                           [PREFIX]
811
812 By default, \`make install' will install all the files in
813 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
814 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
815 for instance \`--prefix=\$HOME'.
816
817 For better control, use the options below.
818
819 Fine tuning of the installation directories:
820   --bindir=DIR           user executables [EPREFIX/bin]
821   --sbindir=DIR          system admin executables [EPREFIX/sbin]
822   --libexecdir=DIR       program executables [EPREFIX/libexec]
823   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
824   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
825   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
826   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
827   --libdir=DIR           object code libraries [EPREFIX/lib]
828   --includedir=DIR       C header files [PREFIX/include]
829   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
830   --infodir=DIR          info documentation [PREFIX/info]
831   --mandir=DIR           man documentation [PREFIX/man]
832 _ACEOF
833
834   cat <<\_ACEOF
835 _ACEOF
836 fi
837
838 if test -n "$ac_init_help"; then
839   case $ac_init_help in
840      short | recursive ) echo "Configuration of l2tpns 1.0.0:";;
841    esac
842   cat <<\_ACEOF
843
844 Some influential environment variables:
845   CC          C compiler command
846   CFLAGS      C compiler flags
847   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
848               nonstandard directory <lib dir>
849   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
850               headers in a nonstandard directory <include dir>
851   CPP         C preprocessor
852
853 Use these variables to override the choices made by `configure' or to help
854 it to find libraries and programs with nonstandard names/locations.
855
856 Report bugs to <fred_nerk@sourceforge.net>.
857 _ACEOF
858 fi
859
860 if test "$ac_init_help" = "recursive"; then
861   # If there are subdirs, report their specific --help.
862   ac_popdir=`pwd`
863   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
864     test -d $ac_dir || continue
865     ac_builddir=.
866
867 if test "$ac_dir" != .; then
868   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
869   # A "../" for each directory in $ac_dir_suffix.
870   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
871 else
872   ac_dir_suffix= ac_top_builddir=
873 fi
874
875 case $srcdir in
876   .)  # No --srcdir option.  We are building in place.
877     ac_srcdir=.
878     if test -z "$ac_top_builddir"; then
879        ac_top_srcdir=.
880     else
881        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
882     fi ;;
883   [\\/]* | ?:[\\/]* )  # Absolute path.
884     ac_srcdir=$srcdir$ac_dir_suffix;
885     ac_top_srcdir=$srcdir ;;
886   *) # Relative path.
887     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
888     ac_top_srcdir=$ac_top_builddir$srcdir ;;
889 esac
890
891 # Do not use `cd foo && pwd` to compute absolute paths, because
892 # the directories may not exist.
893 case `pwd` in
894 .) ac_abs_builddir="$ac_dir";;
895 *)
896   case "$ac_dir" in
897   .) ac_abs_builddir=`pwd`;;
898   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
899   *) ac_abs_builddir=`pwd`/"$ac_dir";;
900   esac;;
901 esac
902 case $ac_abs_builddir in
903 .) ac_abs_top_builddir=${ac_top_builddir}.;;
904 *)
905   case ${ac_top_builddir}. in
906   .) ac_abs_top_builddir=$ac_abs_builddir;;
907   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
908   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
909   esac;;
910 esac
911 case $ac_abs_builddir in
912 .) ac_abs_srcdir=$ac_srcdir;;
913 *)
914   case $ac_srcdir in
915   .) ac_abs_srcdir=$ac_abs_builddir;;
916   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
917   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
918   esac;;
919 esac
920 case $ac_abs_builddir in
921 .) ac_abs_top_srcdir=$ac_top_srcdir;;
922 *)
923   case $ac_top_srcdir in
924   .) ac_abs_top_srcdir=$ac_abs_builddir;;
925   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
926   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
927   esac;;
928 esac
929
930     cd $ac_dir
931     # Check for guested configure; otherwise get Cygnus style configure.
932     if test -f $ac_srcdir/configure.gnu; then
933       echo
934       $SHELL $ac_srcdir/configure.gnu  --help=recursive
935     elif test -f $ac_srcdir/configure; then
936       echo
937       $SHELL $ac_srcdir/configure  --help=recursive
938     elif test -f $ac_srcdir/configure.ac ||
939            test -f $ac_srcdir/configure.in; then
940       echo
941       $ac_configure --help
942     else
943       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
944     fi
945     cd "$ac_popdir"
946   done
947 fi
948
949 test -n "$ac_init_help" && exit 0
950 if $ac_init_version; then
951   cat <<\_ACEOF
952 l2tpns configure 1.0.0
953 generated by GNU Autoconf 2.58
954
955 Copyright (C) 2003 Free Software Foundation, Inc.
956 This configure script is free software; the Free Software Foundation
957 gives unlimited permission to copy, distribute and modify it.
958 _ACEOF
959   exit 0
960 fi
961 exec 5>config.log
962 cat >&5 <<_ACEOF
963 This file contains any messages produced by compilers while
964 running configure, to aid debugging if configure makes a mistake.
965
966 It was created by l2tpns $as_me 1.0.0, which was
967 generated by GNU Autoconf 2.58.  Invocation command line was
968
969   $ $0 $@
970
971 _ACEOF
972 {
973 cat <<_ASUNAME
974 ## --------- ##
975 ## Platform. ##
976 ## --------- ##
977
978 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
979 uname -m = `(uname -m) 2>/dev/null || echo unknown`
980 uname -r = `(uname -r) 2>/dev/null || echo unknown`
981 uname -s = `(uname -s) 2>/dev/null || echo unknown`
982 uname -v = `(uname -v) 2>/dev/null || echo unknown`
983
984 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
985 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
986
987 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
988 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
989 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
990 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
991 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
992 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
993 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
994
995 _ASUNAME
996
997 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
998 for as_dir in $PATH
999 do
1000   IFS=$as_save_IFS
1001   test -z "$as_dir" && as_dir=.
1002   echo "PATH: $as_dir"
1003 done
1004
1005 } >&5
1006
1007 cat >&5 <<_ACEOF
1008
1009
1010 ## ----------- ##
1011 ## Core tests. ##
1012 ## ----------- ##
1013
1014 _ACEOF
1015
1016
1017 # Keep a trace of the command line.
1018 # Strip out --no-create and --no-recursion so they do not pile up.
1019 # Strip out --silent because we don't want to record it for future runs.
1020 # Also quote any args containing shell meta-characters.
1021 # Make two passes to allow for proper duplicate-argument suppression.
1022 ac_configure_args=
1023 ac_configure_args0=
1024 ac_configure_args1=
1025 ac_sep=
1026 ac_must_keep_next=false
1027 for ac_pass in 1 2
1028 do
1029   for ac_arg
1030   do
1031     case $ac_arg in
1032     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1033     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1034     | -silent | --silent | --silen | --sile | --sil)
1035       continue ;;
1036     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1037       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1038     esac
1039     case $ac_pass in
1040     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1041     2)
1042       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1043       if test $ac_must_keep_next = true; then
1044         ac_must_keep_next=false # Got value, back to normal.
1045       else
1046         case $ac_arg in
1047           *=* | --config-cache | -C | -disable-* | --disable-* \
1048           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1049           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1050           | -with-* | --with-* | -without-* | --without-* | --x)
1051             case "$ac_configure_args0 " in
1052               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1053             esac
1054             ;;
1055           -* ) ac_must_keep_next=true ;;
1056         esac
1057       fi
1058       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1059       # Get rid of the leading space.
1060       ac_sep=" "
1061       ;;
1062     esac
1063   done
1064 done
1065 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1066 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1067
1068 # When interrupted or exit'd, cleanup temporary files, and complete
1069 # config.log.  We remove comments because anyway the quotes in there
1070 # would cause problems or look ugly.
1071 # WARNING: Be sure not to use single quotes in there, as some shells,
1072 # such as our DU 5.0 friend, will then `close' the trap.
1073 trap 'exit_status=$?
1074   # Save into config.log some information that might help in debugging.
1075   {
1076     echo
1077
1078     cat <<\_ASBOX
1079 ## ---------------- ##
1080 ## Cache variables. ##
1081 ## ---------------- ##
1082 _ASBOX
1083     echo
1084     # The following way of writing the cache mishandles newlines in values,
1085 {
1086   (set) 2>&1 |
1087     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1088     *ac_space=\ *)
1089       sed -n \
1090         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1091           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1092       ;;
1093     *)
1094       sed -n \
1095         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1096       ;;
1097     esac;
1098 }
1099     echo
1100
1101     cat <<\_ASBOX
1102 ## ----------------- ##
1103 ## Output variables. ##
1104 ## ----------------- ##
1105 _ASBOX
1106     echo
1107     for ac_var in $ac_subst_vars
1108     do
1109       eval ac_val=$`echo $ac_var`
1110       echo "$ac_var='"'"'$ac_val'"'"'"
1111     done | sort
1112     echo
1113
1114     if test -n "$ac_subst_files"; then
1115       cat <<\_ASBOX
1116 ## ------------- ##
1117 ## Output files. ##
1118 ## ------------- ##
1119 _ASBOX
1120       echo
1121       for ac_var in $ac_subst_files
1122       do
1123         eval ac_val=$`echo $ac_var`
1124         echo "$ac_var='"'"'$ac_val'"'"'"
1125       done | sort
1126       echo
1127     fi
1128
1129     if test -s confdefs.h; then
1130       cat <<\_ASBOX
1131 ## ----------- ##
1132 ## confdefs.h. ##
1133 ## ----------- ##
1134 _ASBOX
1135       echo
1136       sed "/^$/d" confdefs.h | sort
1137       echo
1138     fi
1139     test "$ac_signal" != 0 &&
1140       echo "$as_me: caught signal $ac_signal"
1141     echo "$as_me: exit $exit_status"
1142   } >&5
1143   rm -f core *.core &&
1144   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1145     exit $exit_status
1146      ' 0
1147 for ac_signal in 1 2 13 15; do
1148   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1149 done
1150 ac_signal=0
1151
1152 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1153 rm -rf conftest* confdefs.h
1154 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1155 echo >confdefs.h
1156
1157 # Predefined preprocessor variables.
1158
1159 cat >>confdefs.h <<_ACEOF
1160 #define PACKAGE_NAME "$PACKAGE_NAME"
1161 _ACEOF
1162
1163
1164 cat >>confdefs.h <<_ACEOF
1165 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1166 _ACEOF
1167
1168
1169 cat >>confdefs.h <<_ACEOF
1170 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1171 _ACEOF
1172
1173
1174 cat >>confdefs.h <<_ACEOF
1175 #define PACKAGE_STRING "$PACKAGE_STRING"
1176 _ACEOF
1177
1178
1179 cat >>confdefs.h <<_ACEOF
1180 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1181 _ACEOF
1182
1183
1184 # Let the site file select an alternate cache file if it wants to.
1185 # Prefer explicitly selected file to automatically selected ones.
1186 if test -z "$CONFIG_SITE"; then
1187   if test "x$prefix" != xNONE; then
1188     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1189   else
1190     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1191   fi
1192 fi
1193 for ac_site_file in $CONFIG_SITE; do
1194   if test -r "$ac_site_file"; then
1195     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1196 echo "$as_me: loading site script $ac_site_file" >&6;}
1197     sed 's/^/| /' "$ac_site_file" >&5
1198     . "$ac_site_file"
1199   fi
1200 done
1201
1202 if test -r "$cache_file"; then
1203   # Some versions of bash will fail to source /dev/null (special
1204   # files actually), so we avoid doing that.
1205   if test -f "$cache_file"; then
1206     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1207 echo "$as_me: loading cache $cache_file" >&6;}
1208     case $cache_file in
1209       [\\/]* | ?:[\\/]* ) . $cache_file;;
1210       *)                      . ./$cache_file;;
1211     esac
1212   fi
1213 else
1214   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1215 echo "$as_me: creating cache $cache_file" >&6;}
1216   >$cache_file
1217 fi
1218
1219 # Check that the precious variables saved in the cache have kept the same
1220 # value.
1221 ac_cache_corrupted=false
1222 for ac_var in `(set) 2>&1 |
1223                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1224   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1225   eval ac_new_set=\$ac_env_${ac_var}_set
1226   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1227   eval ac_new_val="\$ac_env_${ac_var}_value"
1228   case $ac_old_set,$ac_new_set in
1229     set,)
1230       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1231 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1232       ac_cache_corrupted=: ;;
1233     ,set)
1234       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1235 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1236       ac_cache_corrupted=: ;;
1237     ,);;
1238     *)
1239       if test "x$ac_old_val" != "x$ac_new_val"; then
1240         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1241 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1242         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1243 echo "$as_me:   former value:  $ac_old_val" >&2;}
1244         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1245 echo "$as_me:   current value: $ac_new_val" >&2;}
1246         ac_cache_corrupted=:
1247       fi;;
1248   esac
1249   # Pass precious variables to config.status.
1250   if test "$ac_new_set" = set; then
1251     case $ac_new_val in
1252     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1253       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1254     *) ac_arg=$ac_var=$ac_new_val ;;
1255     esac
1256     case " $ac_configure_args " in
1257       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1258       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1259     esac
1260   fi
1261 done
1262 if $ac_cache_corrupted; then
1263   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1264 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1265   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1266 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1267    { (exit 1); exit 1; }; }
1268 fi
1269
1270 ac_ext=c
1271 ac_cpp='$CPP $CPPFLAGS'
1272 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1273 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1274 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303           ac_config_headers="$ac_config_headers config.h"
1304
1305
1306 # Checks for programs.
1307 ac_ext=c
1308 ac_cpp='$CPP $CPPFLAGS'
1309 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1310 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1311 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1312 if test -n "$ac_tool_prefix"; then
1313   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1314 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1315 echo "$as_me:$LINENO: checking for $ac_word" >&5
1316 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1317 if test "${ac_cv_prog_CC+set}" = set; then
1318   echo $ECHO_N "(cached) $ECHO_C" >&6
1319 else
1320   if test -n "$CC"; then
1321   ac_cv_prog_CC="$CC" # Let the user override the test.
1322 else
1323 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1324 for as_dir in $PATH
1325 do
1326   IFS=$as_save_IFS
1327   test -z "$as_dir" && as_dir=.
1328   for ac_exec_ext in '' $ac_executable_extensions; do
1329   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1330     ac_cv_prog_CC="${ac_tool_prefix}gcc"
1331     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1332     break 2
1333   fi
1334 done
1335 done
1336
1337 fi
1338 fi
1339 CC=$ac_cv_prog_CC
1340 if test -n "$CC"; then
1341   echo "$as_me:$LINENO: result: $CC" >&5
1342 echo "${ECHO_T}$CC" >&6
1343 else
1344   echo "$as_me:$LINENO: result: no" >&5
1345 echo "${ECHO_T}no" >&6
1346 fi
1347
1348 fi
1349 if test -z "$ac_cv_prog_CC"; then
1350   ac_ct_CC=$CC
1351   # Extract the first word of "gcc", so it can be a program name with args.
1352 set dummy gcc; ac_word=$2
1353 echo "$as_me:$LINENO: checking for $ac_word" >&5
1354 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1355 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1356   echo $ECHO_N "(cached) $ECHO_C" >&6
1357 else
1358   if test -n "$ac_ct_CC"; then
1359   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1360 else
1361 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1362 for as_dir in $PATH
1363 do
1364   IFS=$as_save_IFS
1365   test -z "$as_dir" && as_dir=.
1366   for ac_exec_ext in '' $ac_executable_extensions; do
1367   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1368     ac_cv_prog_ac_ct_CC="gcc"
1369     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1370     break 2
1371   fi
1372 done
1373 done
1374
1375 fi
1376 fi
1377 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1378 if test -n "$ac_ct_CC"; then
1379   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1380 echo "${ECHO_T}$ac_ct_CC" >&6
1381 else
1382   echo "$as_me:$LINENO: result: no" >&5
1383 echo "${ECHO_T}no" >&6
1384 fi
1385
1386   CC=$ac_ct_CC
1387 else
1388   CC="$ac_cv_prog_CC"
1389 fi
1390
1391 if test -z "$CC"; then
1392   if test -n "$ac_tool_prefix"; then
1393   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1394 set dummy ${ac_tool_prefix}cc; ac_word=$2
1395 echo "$as_me:$LINENO: checking for $ac_word" >&5
1396 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1397 if test "${ac_cv_prog_CC+set}" = set; then
1398   echo $ECHO_N "(cached) $ECHO_C" >&6
1399 else
1400   if test -n "$CC"; then
1401   ac_cv_prog_CC="$CC" # Let the user override the test.
1402 else
1403 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1404 for as_dir in $PATH
1405 do
1406   IFS=$as_save_IFS
1407   test -z "$as_dir" && as_dir=.
1408   for ac_exec_ext in '' $ac_executable_extensions; do
1409   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1410     ac_cv_prog_CC="${ac_tool_prefix}cc"
1411     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1412     break 2
1413   fi
1414 done
1415 done
1416
1417 fi
1418 fi
1419 CC=$ac_cv_prog_CC
1420 if test -n "$CC"; then
1421   echo "$as_me:$LINENO: result: $CC" >&5
1422 echo "${ECHO_T}$CC" >&6
1423 else
1424   echo "$as_me:$LINENO: result: no" >&5
1425 echo "${ECHO_T}no" >&6
1426 fi
1427
1428 fi
1429 if test -z "$ac_cv_prog_CC"; then
1430   ac_ct_CC=$CC
1431   # Extract the first word of "cc", so it can be a program name with args.
1432 set dummy cc; ac_word=$2
1433 echo "$as_me:$LINENO: checking for $ac_word" >&5
1434 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1435 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1436   echo $ECHO_N "(cached) $ECHO_C" >&6
1437 else
1438   if test -n "$ac_ct_CC"; then
1439   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1440 else
1441 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1442 for as_dir in $PATH
1443 do
1444   IFS=$as_save_IFS
1445   test -z "$as_dir" && as_dir=.
1446   for ac_exec_ext in '' $ac_executable_extensions; do
1447   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1448     ac_cv_prog_ac_ct_CC="cc"
1449     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1450     break 2
1451   fi
1452 done
1453 done
1454
1455 fi
1456 fi
1457 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1458 if test -n "$ac_ct_CC"; then
1459   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1460 echo "${ECHO_T}$ac_ct_CC" >&6
1461 else
1462   echo "$as_me:$LINENO: result: no" >&5
1463 echo "${ECHO_T}no" >&6
1464 fi
1465
1466   CC=$ac_ct_CC
1467 else
1468   CC="$ac_cv_prog_CC"
1469 fi
1470
1471 fi
1472 if test -z "$CC"; then
1473   # Extract the first word of "cc", so it can be a program name with args.
1474 set dummy cc; ac_word=$2
1475 echo "$as_me:$LINENO: checking for $ac_word" >&5
1476 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1477 if test "${ac_cv_prog_CC+set}" = set; then
1478   echo $ECHO_N "(cached) $ECHO_C" >&6
1479 else
1480   if test -n "$CC"; then
1481   ac_cv_prog_CC="$CC" # Let the user override the test.
1482 else
1483   ac_prog_rejected=no
1484 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1485 for as_dir in $PATH
1486 do
1487   IFS=$as_save_IFS
1488   test -z "$as_dir" && as_dir=.
1489   for ac_exec_ext in '' $ac_executable_extensions; do
1490   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1491     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1492        ac_prog_rejected=yes
1493        continue
1494      fi
1495     ac_cv_prog_CC="cc"
1496     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1497     break 2
1498   fi
1499 done
1500 done
1501
1502 if test $ac_prog_rejected = yes; then
1503   # We found a bogon in the path, so make sure we never use it.
1504   set dummy $ac_cv_prog_CC
1505   shift
1506   if test $# != 0; then
1507     # We chose a different compiler from the bogus one.
1508     # However, it has the same basename, so the bogon will be chosen
1509     # first if we set CC to just the basename; use the full file name.
1510     shift
1511     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1512   fi
1513 fi
1514 fi
1515 fi
1516 CC=$ac_cv_prog_CC
1517 if test -n "$CC"; then
1518   echo "$as_me:$LINENO: result: $CC" >&5
1519 echo "${ECHO_T}$CC" >&6
1520 else
1521   echo "$as_me:$LINENO: result: no" >&5
1522 echo "${ECHO_T}no" >&6
1523 fi
1524
1525 fi
1526 if test -z "$CC"; then
1527   if test -n "$ac_tool_prefix"; then
1528   for ac_prog in cl
1529   do
1530     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1531 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1532 echo "$as_me:$LINENO: checking for $ac_word" >&5
1533 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1534 if test "${ac_cv_prog_CC+set}" = set; then
1535   echo $ECHO_N "(cached) $ECHO_C" >&6
1536 else
1537   if test -n "$CC"; then
1538   ac_cv_prog_CC="$CC" # Let the user override the test.
1539 else
1540 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1541 for as_dir in $PATH
1542 do
1543   IFS=$as_save_IFS
1544   test -z "$as_dir" && as_dir=.
1545   for ac_exec_ext in '' $ac_executable_extensions; do
1546   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1547     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1548     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1549     break 2
1550   fi
1551 done
1552 done
1553
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     test -n "$CC" && break
1566   done
1567 fi
1568 if test -z "$CC"; then
1569   ac_ct_CC=$CC
1570   for ac_prog in cl
1571 do
1572   # Extract the first word of "$ac_prog", so it can be a program name with args.
1573 set dummy $ac_prog; ac_word=$2
1574 echo "$as_me:$LINENO: checking for $ac_word" >&5
1575 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1576 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1577   echo $ECHO_N "(cached) $ECHO_C" >&6
1578 else
1579   if test -n "$ac_ct_CC"; then
1580   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1581 else
1582 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1583 for as_dir in $PATH
1584 do
1585   IFS=$as_save_IFS
1586   test -z "$as_dir" && as_dir=.
1587   for ac_exec_ext in '' $ac_executable_extensions; do
1588   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1589     ac_cv_prog_ac_ct_CC="$ac_prog"
1590     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1591     break 2
1592   fi
1593 done
1594 done
1595
1596 fi
1597 fi
1598 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1599 if test -n "$ac_ct_CC"; then
1600   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1601 echo "${ECHO_T}$ac_ct_CC" >&6
1602 else
1603   echo "$as_me:$LINENO: result: no" >&5
1604 echo "${ECHO_T}no" >&6
1605 fi
1606
1607   test -n "$ac_ct_CC" && break
1608 done
1609
1610   CC=$ac_ct_CC
1611 fi
1612
1613 fi
1614
1615
1616 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1617 See \`config.log' for more details." >&5
1618 echo "$as_me: error: no acceptable C compiler found in \$PATH
1619 See \`config.log' for more details." >&2;}
1620    { (exit 1); exit 1; }; }
1621
1622 # Provide some information about the compiler.
1623 echo "$as_me:$LINENO:" \
1624      "checking for C compiler version" >&5
1625 ac_compiler=`set X $ac_compile; echo $2`
1626 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1627   (eval $ac_compiler --version </dev/null >&5) 2>&5
1628   ac_status=$?
1629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1630   (exit $ac_status); }
1631 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1632   (eval $ac_compiler -v </dev/null >&5) 2>&5
1633   ac_status=$?
1634   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1635   (exit $ac_status); }
1636 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1637   (eval $ac_compiler -V </dev/null >&5) 2>&5
1638   ac_status=$?
1639   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1640   (exit $ac_status); }
1641
1642 cat >conftest.$ac_ext <<_ACEOF
1643 /* confdefs.h.  */
1644 _ACEOF
1645 cat confdefs.h >>conftest.$ac_ext
1646 cat >>conftest.$ac_ext <<_ACEOF
1647 /* end confdefs.h.  */
1648
1649 int
1650 main ()
1651 {
1652
1653   ;
1654   return 0;
1655 }
1656 _ACEOF
1657 ac_clean_files_save=$ac_clean_files
1658 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1659 # Try to create an executable without -o first, disregard a.out.
1660 # It will help us diagnose broken compilers, and finding out an intuition
1661 # of exeext.
1662 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1663 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1664 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1665 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1666   (eval $ac_link_default) 2>&5
1667   ac_status=$?
1668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1669   (exit $ac_status); }; then
1670   # Find the output, starting from the most likely.  This scheme is
1671 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1672 # resort.
1673
1674 # Be careful to initialize this variable, since it used to be cached.
1675 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1676 ac_cv_exeext=
1677 # b.out is created by i960 compilers.
1678 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1679 do
1680   test -f "$ac_file" || continue
1681   case $ac_file in
1682     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1683         ;;
1684     conftest.$ac_ext )
1685         # This is the source file.
1686         ;;
1687     [ab].out )
1688         # We found the default executable, but exeext='' is most
1689         # certainly right.
1690         break;;
1691     *.* )
1692         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1693         # FIXME: I believe we export ac_cv_exeext for Libtool,
1694         # but it would be cool to find out if it's true.  Does anybody
1695         # maintain Libtool? --akim.
1696         export ac_cv_exeext
1697         break;;
1698     * )
1699         break;;
1700   esac
1701 done
1702 else
1703   echo "$as_me: failed program was:" >&5
1704 sed 's/^/| /' conftest.$ac_ext >&5
1705
1706 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1707 See \`config.log' for more details." >&5
1708 echo "$as_me: error: C compiler cannot create executables
1709 See \`config.log' for more details." >&2;}
1710    { (exit 77); exit 77; }; }
1711 fi
1712
1713 ac_exeext=$ac_cv_exeext
1714 echo "$as_me:$LINENO: result: $ac_file" >&5
1715 echo "${ECHO_T}$ac_file" >&6
1716
1717 # Check the compiler produces executables we can run.  If not, either
1718 # the compiler is broken, or we cross compile.
1719 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1720 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1721 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1722 # If not cross compiling, check that we can run a simple program.
1723 if test "$cross_compiling" != yes; then
1724   if { ac_try='./$ac_file'
1725   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1726   (eval $ac_try) 2>&5
1727   ac_status=$?
1728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1729   (exit $ac_status); }; }; then
1730     cross_compiling=no
1731   else
1732     if test "$cross_compiling" = maybe; then
1733         cross_compiling=yes
1734     else
1735         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1736 If you meant to cross compile, use \`--host'.
1737 See \`config.log' for more details." >&5
1738 echo "$as_me: error: cannot run C compiled programs.
1739 If you meant to cross compile, use \`--host'.
1740 See \`config.log' for more details." >&2;}
1741    { (exit 1); exit 1; }; }
1742     fi
1743   fi
1744 fi
1745 echo "$as_me:$LINENO: result: yes" >&5
1746 echo "${ECHO_T}yes" >&6
1747
1748 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1749 ac_clean_files=$ac_clean_files_save
1750 # Check the compiler produces executables we can run.  If not, either
1751 # the compiler is broken, or we cross compile.
1752 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1753 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1754 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1755 echo "${ECHO_T}$cross_compiling" >&6
1756
1757 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1758 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1759 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1760   (eval $ac_link) 2>&5
1761   ac_status=$?
1762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1763   (exit $ac_status); }; then
1764   # If both `conftest.exe' and `conftest' are `present' (well, observable)
1765 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
1766 # work properly (i.e., refer to `conftest.exe'), while it won't with
1767 # `rm'.
1768 for ac_file in conftest.exe conftest conftest.*; do
1769   test -f "$ac_file" || continue
1770   case $ac_file in
1771     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1772     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1773           export ac_cv_exeext
1774           break;;
1775     * ) break;;
1776   esac
1777 done
1778 else
1779   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1780 See \`config.log' for more details." >&5
1781 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1782 See \`config.log' for more details." >&2;}
1783    { (exit 1); exit 1; }; }
1784 fi
1785
1786 rm -f conftest$ac_cv_exeext
1787 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1788 echo "${ECHO_T}$ac_cv_exeext" >&6
1789
1790 rm -f conftest.$ac_ext
1791 EXEEXT=$ac_cv_exeext
1792 ac_exeext=$EXEEXT
1793 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1794 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1795 if test "${ac_cv_objext+set}" = set; then
1796   echo $ECHO_N "(cached) $ECHO_C" >&6
1797 else
1798   cat >conftest.$ac_ext <<_ACEOF
1799 /* confdefs.h.  */
1800 _ACEOF
1801 cat confdefs.h >>conftest.$ac_ext
1802 cat >>conftest.$ac_ext <<_ACEOF
1803 /* end confdefs.h.  */
1804
1805 int
1806 main ()
1807 {
1808
1809   ;
1810   return 0;
1811 }
1812 _ACEOF
1813 rm -f conftest.o conftest.obj
1814 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1815   (eval $ac_compile) 2>&5
1816   ac_status=$?
1817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1818   (exit $ac_status); }; then
1819   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1820   case $ac_file in
1821     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1822     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1823        break;;
1824   esac
1825 done
1826 else
1827   echo "$as_me: failed program was:" >&5
1828 sed 's/^/| /' conftest.$ac_ext >&5
1829
1830 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1831 See \`config.log' for more details." >&5
1832 echo "$as_me: error: cannot compute suffix of object files: cannot compile
1833 See \`config.log' for more details." >&2;}
1834    { (exit 1); exit 1; }; }
1835 fi
1836
1837 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1838 fi
1839 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1840 echo "${ECHO_T}$ac_cv_objext" >&6
1841 OBJEXT=$ac_cv_objext
1842 ac_objext=$OBJEXT
1843 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1844 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1845 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1846   echo $ECHO_N "(cached) $ECHO_C" >&6
1847 else
1848   cat >conftest.$ac_ext <<_ACEOF
1849 /* confdefs.h.  */
1850 _ACEOF
1851 cat confdefs.h >>conftest.$ac_ext
1852 cat >>conftest.$ac_ext <<_ACEOF
1853 /* end confdefs.h.  */
1854
1855 int
1856 main ()
1857 {
1858 #ifndef __GNUC__
1859        choke me
1860 #endif
1861
1862   ;
1863   return 0;
1864 }
1865 _ACEOF
1866 rm -f conftest.$ac_objext
1867 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1868   (eval $ac_compile) 2>conftest.er1
1869   ac_status=$?
1870   grep -v '^ *+' conftest.er1 >conftest.err
1871   rm -f conftest.er1
1872   cat conftest.err >&5
1873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1874   (exit $ac_status); } &&
1875          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
1876   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1877   (eval $ac_try) 2>&5
1878   ac_status=$?
1879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1880   (exit $ac_status); }; } &&
1881          { ac_try='test -s conftest.$ac_objext'
1882   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1883   (eval $ac_try) 2>&5
1884   ac_status=$?
1885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1886   (exit $ac_status); }; }; then
1887   ac_compiler_gnu=yes
1888 else
1889   echo "$as_me: failed program was:" >&5
1890 sed 's/^/| /' conftest.$ac_ext >&5
1891
1892 ac_compiler_gnu=no
1893 fi
1894 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1895 ac_cv_c_compiler_gnu=$ac_compiler_gnu
1896
1897 fi
1898 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
1899 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1900 GCC=`test $ac_compiler_gnu = yes && echo yes`
1901 ac_test_CFLAGS=${CFLAGS+set}
1902 ac_save_CFLAGS=$CFLAGS
1903 CFLAGS="-g"
1904 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
1905 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1906 if test "${ac_cv_prog_cc_g+set}" = set; then
1907   echo $ECHO_N "(cached) $ECHO_C" >&6
1908 else
1909   cat >conftest.$ac_ext <<_ACEOF
1910 /* confdefs.h.  */
1911 _ACEOF
1912 cat confdefs.h >>conftest.$ac_ext
1913 cat >>conftest.$ac_ext <<_ACEOF
1914 /* end confdefs.h.  */
1915
1916 int
1917 main ()
1918 {
1919
1920   ;
1921   return 0;
1922 }
1923 _ACEOF
1924 rm -f conftest.$ac_objext
1925 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1926   (eval $ac_compile) 2>conftest.er1
1927   ac_status=$?
1928   grep -v '^ *+' conftest.er1 >conftest.err
1929   rm -f conftest.er1
1930   cat conftest.err >&5
1931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1932   (exit $ac_status); } &&
1933          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
1934   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1935   (eval $ac_try) 2>&5
1936   ac_status=$?
1937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1938   (exit $ac_status); }; } &&
1939          { ac_try='test -s conftest.$ac_objext'
1940   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1941   (eval $ac_try) 2>&5
1942   ac_status=$?
1943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1944   (exit $ac_status); }; }; then
1945   ac_cv_prog_cc_g=yes
1946 else
1947   echo "$as_me: failed program was:" >&5
1948 sed 's/^/| /' conftest.$ac_ext >&5
1949
1950 ac_cv_prog_cc_g=no
1951 fi
1952 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1953 fi
1954 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
1955 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1956 if test "$ac_test_CFLAGS" = set; then
1957   CFLAGS=$ac_save_CFLAGS
1958 elif test $ac_cv_prog_cc_g = yes; then
1959   if test "$GCC" = yes; then
1960     CFLAGS="-g -O2"
1961   else
1962     CFLAGS="-g"
1963   fi
1964 else
1965   if test "$GCC" = yes; then
1966     CFLAGS="-O2"
1967   else
1968     CFLAGS=
1969   fi
1970 fi
1971 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
1972 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
1973 if test "${ac_cv_prog_cc_stdc+set}" = set; then
1974   echo $ECHO_N "(cached) $ECHO_C" >&6
1975 else
1976   ac_cv_prog_cc_stdc=no
1977 ac_save_CC=$CC
1978 cat >conftest.$ac_ext <<_ACEOF
1979 /* confdefs.h.  */
1980 _ACEOF
1981 cat confdefs.h >>conftest.$ac_ext
1982 cat >>conftest.$ac_ext <<_ACEOF
1983 /* end confdefs.h.  */
1984 #include <stdarg.h>
1985 #include <stdio.h>
1986 #include <sys/types.h>
1987 #include <sys/stat.h>
1988 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
1989 struct buf { int x; };
1990 FILE * (*rcsopen) (struct buf *, struct stat *, int);
1991 static char *e (p, i)
1992      char **p;
1993      int i;
1994 {
1995   return p[i];
1996 }
1997 static char *f (char * (*g) (char **, int), char **p, ...)
1998 {
1999   char *s;
2000   va_list v;
2001   va_start (v,p);
2002   s = g (p, va_arg (v,int));
2003   va_end (v);
2004   return s;
2005 }
2006
2007 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2008    function prototypes and stuff, but not '\xHH' hex character constants.
2009    These don't provoke an error unfortunately, instead are silently treated
2010    as 'x'.  The following induces an error, until -std1 is added to get
2011    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2012    array size at least.  It's necessary to write '\x00'==0 to get something
2013    that's true only with -std1.  */
2014 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2015
2016 int test (int i, double x);
2017 struct s1 {int (*f) (int a);};
2018 struct s2 {int (*f) (double a);};
2019 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2020 int argc;
2021 char **argv;
2022 int
2023 main ()
2024 {
2025 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2026   ;
2027   return 0;
2028 }
2029 _ACEOF
2030 # Don't try gcc -ansi; that turns off useful extensions and
2031 # breaks some systems' header files.
2032 # AIX                   -qlanglvl=ansi
2033 # Ultrix and OSF/1      -std1
2034 # HP-UX 10.20 and later -Ae
2035 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2036 # SVR4                  -Xc -D__EXTENSIONS__
2037 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2038 do
2039   CC="$ac_save_CC $ac_arg"
2040   rm -f conftest.$ac_objext
2041 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2042   (eval $ac_compile) 2>conftest.er1
2043   ac_status=$?
2044   grep -v '^ *+' conftest.er1 >conftest.err
2045   rm -f conftest.er1
2046   cat conftest.err >&5
2047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2048   (exit $ac_status); } &&
2049          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2050   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2051   (eval $ac_try) 2>&5
2052   ac_status=$?
2053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2054   (exit $ac_status); }; } &&
2055          { ac_try='test -s conftest.$ac_objext'
2056   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2057   (eval $ac_try) 2>&5
2058   ac_status=$?
2059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2060   (exit $ac_status); }; }; then
2061   ac_cv_prog_cc_stdc=$ac_arg
2062 break
2063 else
2064   echo "$as_me: failed program was:" >&5
2065 sed 's/^/| /' conftest.$ac_ext >&5
2066
2067 fi
2068 rm -f conftest.err conftest.$ac_objext
2069 done
2070 rm -f conftest.$ac_ext conftest.$ac_objext
2071 CC=$ac_save_CC
2072
2073 fi
2074
2075 case "x$ac_cv_prog_cc_stdc" in
2076   x|xno)
2077     echo "$as_me:$LINENO: result: none needed" >&5
2078 echo "${ECHO_T}none needed" >&6 ;;
2079   *)
2080     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2081 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2082     CC="$CC $ac_cv_prog_cc_stdc" ;;
2083 esac
2084
2085 # Some people use a C++ compiler to compile C.  Since we use `exit',
2086 # in C++ we need to declare it.  In case someone uses the same compiler
2087 # for both compiling C and C++ we need to have the C++ compiler decide
2088 # the declaration of exit, since it's the most demanding environment.
2089 cat >conftest.$ac_ext <<_ACEOF
2090 #ifndef __cplusplus
2091   choke me
2092 #endif
2093 _ACEOF
2094 rm -f conftest.$ac_objext
2095 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2096   (eval $ac_compile) 2>conftest.er1
2097   ac_status=$?
2098   grep -v '^ *+' conftest.er1 >conftest.err
2099   rm -f conftest.er1
2100   cat conftest.err >&5
2101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2102   (exit $ac_status); } &&
2103          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2104   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2105   (eval $ac_try) 2>&5
2106   ac_status=$?
2107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2108   (exit $ac_status); }; } &&
2109          { ac_try='test -s conftest.$ac_objext'
2110   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2111   (eval $ac_try) 2>&5
2112   ac_status=$?
2113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2114   (exit $ac_status); }; }; then
2115   for ac_declaration in \
2116    '' \
2117    'extern "C" void std::exit (int) throw (); using std::exit;' \
2118    'extern "C" void std::exit (int); using std::exit;' \
2119    'extern "C" void exit (int) throw ();' \
2120    'extern "C" void exit (int);' \
2121    'void exit (int);'
2122 do
2123   cat >conftest.$ac_ext <<_ACEOF
2124 /* confdefs.h.  */
2125 _ACEOF
2126 cat confdefs.h >>conftest.$ac_ext
2127 cat >>conftest.$ac_ext <<_ACEOF
2128 /* end confdefs.h.  */
2129 $ac_declaration
2130 #include <stdlib.h>
2131 int
2132 main ()
2133 {
2134 exit (42);
2135   ;
2136   return 0;
2137 }
2138 _ACEOF
2139 rm -f conftest.$ac_objext
2140 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2141   (eval $ac_compile) 2>conftest.er1
2142   ac_status=$?
2143   grep -v '^ *+' conftest.er1 >conftest.err
2144   rm -f conftest.er1
2145   cat conftest.err >&5
2146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2147   (exit $ac_status); } &&
2148          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2149   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2150   (eval $ac_try) 2>&5
2151   ac_status=$?
2152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2153   (exit $ac_status); }; } &&
2154          { ac_try='test -s conftest.$ac_objext'
2155   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2156   (eval $ac_try) 2>&5
2157   ac_status=$?
2158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2159   (exit $ac_status); }; }; then
2160   :
2161 else
2162   echo "$as_me: failed program was:" >&5
2163 sed 's/^/| /' conftest.$ac_ext >&5
2164
2165 continue
2166 fi
2167 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2168   cat >conftest.$ac_ext <<_ACEOF
2169 /* confdefs.h.  */
2170 _ACEOF
2171 cat confdefs.h >>conftest.$ac_ext
2172 cat >>conftest.$ac_ext <<_ACEOF
2173 /* end confdefs.h.  */
2174 $ac_declaration
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"                   || test ! -s conftest.err'
2193   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2194   (eval $ac_try) 2>&5
2195   ac_status=$?
2196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2197   (exit $ac_status); }; } &&
2198          { ac_try='test -s conftest.$ac_objext'
2199   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2200   (eval $ac_try) 2>&5
2201   ac_status=$?
2202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2203   (exit $ac_status); }; }; then
2204   break
2205 else
2206   echo "$as_me: failed program was:" >&5
2207 sed 's/^/| /' conftest.$ac_ext >&5
2208
2209 fi
2210 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2211 done
2212 rm -f conftest*
2213 if test -n "$ac_declaration"; then
2214   echo '#ifdef __cplusplus' >>confdefs.h
2215   echo $ac_declaration      >>confdefs.h
2216   echo '#endif'             >>confdefs.h
2217 fi
2218
2219 else
2220   echo "$as_me: failed program was:" >&5
2221 sed 's/^/| /' conftest.$ac_ext >&5
2222
2223 fi
2224 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2225 ac_ext=c
2226 ac_cpp='$CPP $CPPFLAGS'
2227 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2228 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2229 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2230
2231 ac_aux_dir=
2232 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
2233   if test -f $ac_dir/install-sh; then
2234     ac_aux_dir=$ac_dir
2235     ac_install_sh="$ac_aux_dir/install-sh -c"
2236     break
2237   elif test -f $ac_dir/install.sh; then
2238     ac_aux_dir=$ac_dir
2239     ac_install_sh="$ac_aux_dir/install.sh -c"
2240     break
2241   elif test -f $ac_dir/shtool; then
2242     ac_aux_dir=$ac_dir
2243     ac_install_sh="$ac_aux_dir/shtool install -c"
2244     break
2245   fi
2246 done
2247 if test -z "$ac_aux_dir"; then
2248   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
2249 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
2250    { (exit 1); exit 1; }; }
2251 fi
2252 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
2253 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
2254 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
2255
2256 # Find a good install program.  We prefer a C program (faster),
2257 # so one script is as good as another.  But avoid the broken or
2258 # incompatible versions:
2259 # SysV /etc/install, /usr/sbin/install
2260 # SunOS /usr/etc/install
2261 # IRIX /sbin/install
2262 # AIX /bin/install
2263 # AmigaOS /C/install, which installs bootblocks on floppy discs
2264 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2265 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2266 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2267 # OS/2's system install, which has a completely different semantic
2268 # ./install, which can be erroneously created by make from ./install.sh.
2269 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2270 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2271 if test -z "$INSTALL"; then
2272 if test "${ac_cv_path_install+set}" = set; then
2273   echo $ECHO_N "(cached) $ECHO_C" >&6
2274 else
2275   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2276 for as_dir in $PATH
2277 do
2278   IFS=$as_save_IFS
2279   test -z "$as_dir" && as_dir=.
2280   # Account for people who put trailing slashes in PATH elements.
2281 case $as_dir/ in
2282   ./ | .// | /cC/* | \
2283   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2284   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2285   /usr/ucb/* ) ;;
2286   *)
2287     # OSF1 and SCO ODT 3.0 have their own names for install.
2288     # Don't use installbsd from OSF since it installs stuff as root
2289     # by default.
2290     for ac_prog in ginstall scoinst install; do
2291       for ac_exec_ext in '' $ac_executable_extensions; do
2292         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2293           if test $ac_prog = install &&
2294             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2295             # AIX install.  It has an incompatible calling convention.
2296             :
2297           elif test $ac_prog = install &&
2298             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2299             # program-specific install script used by HP pwplus--don't use.
2300             :
2301           else
2302             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2303             break 3
2304           fi
2305         fi
2306       done
2307     done
2308     ;;
2309 esac
2310 done
2311
2312
2313 fi
2314   if test "${ac_cv_path_install+set}" = set; then
2315     INSTALL=$ac_cv_path_install
2316   else
2317     # As a last resort, use the slow shell script.  We don't cache a
2318     # path for INSTALL within a source directory, because that will
2319     # break other packages using the cache if that directory is
2320     # removed, or if the path is relative.
2321     INSTALL=$ac_install_sh
2322   fi
2323 fi
2324 echo "$as_me:$LINENO: result: $INSTALL" >&5
2325 echo "${ECHO_T}$INSTALL" >&6
2326
2327 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2328 # It thinks the first close brace ends the variable substitution.
2329 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2330
2331 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2332
2333 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2334
2335
2336 # Checks for header files.
2337
2338 ac_ext=c
2339 ac_cpp='$CPP $CPPFLAGS'
2340 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2341 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2342 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2343 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2344 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2345 # On Suns, sometimes $CPP names a directory.
2346 if test -n "$CPP" && test -d "$CPP"; then
2347   CPP=
2348 fi
2349 if test -z "$CPP"; then
2350   if test "${ac_cv_prog_CPP+set}" = set; then
2351   echo $ECHO_N "(cached) $ECHO_C" >&6
2352 else
2353       # Double quotes because CPP needs to be expanded
2354     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2355     do
2356       ac_preproc_ok=false
2357 for ac_c_preproc_warn_flag in '' yes
2358 do
2359   # Use a header file that comes with gcc, so configuring glibc
2360   # with a fresh cross-compiler works.
2361   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2362   # <limits.h> exists even on freestanding compilers.
2363   # On the NeXT, cc -E runs the code through the compiler's parser,
2364   # not just through cpp. "Syntax error" is here to catch this case.
2365   cat >conftest.$ac_ext <<_ACEOF
2366 /* confdefs.h.  */
2367 _ACEOF
2368 cat confdefs.h >>conftest.$ac_ext
2369 cat >>conftest.$ac_ext <<_ACEOF
2370 /* end confdefs.h.  */
2371 #ifdef __STDC__
2372 # include <limits.h>
2373 #else
2374 # include <assert.h>
2375 #endif
2376                      Syntax error
2377 _ACEOF
2378 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2379   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2380   ac_status=$?
2381   grep -v '^ *+' conftest.er1 >conftest.err
2382   rm -f conftest.er1
2383   cat conftest.err >&5
2384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2385   (exit $ac_status); } >/dev/null; then
2386   if test -s conftest.err; then
2387     ac_cpp_err=$ac_c_preproc_warn_flag
2388     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2389   else
2390     ac_cpp_err=
2391   fi
2392 else
2393   ac_cpp_err=yes
2394 fi
2395 if test -z "$ac_cpp_err"; then
2396   :
2397 else
2398   echo "$as_me: failed program was:" >&5
2399 sed 's/^/| /' conftest.$ac_ext >&5
2400
2401   # Broken: fails on valid input.
2402 continue
2403 fi
2404 rm -f conftest.err conftest.$ac_ext
2405
2406   # OK, works on sane cases.  Now check whether non-existent headers
2407   # can be detected and how.
2408   cat >conftest.$ac_ext <<_ACEOF
2409 /* confdefs.h.  */
2410 _ACEOF
2411 cat confdefs.h >>conftest.$ac_ext
2412 cat >>conftest.$ac_ext <<_ACEOF
2413 /* end confdefs.h.  */
2414 #include <ac_nonexistent.h>
2415 _ACEOF
2416 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2417   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2418   ac_status=$?
2419   grep -v '^ *+' conftest.er1 >conftest.err
2420   rm -f conftest.er1
2421   cat conftest.err >&5
2422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2423   (exit $ac_status); } >/dev/null; then
2424   if test -s conftest.err; then
2425     ac_cpp_err=$ac_c_preproc_warn_flag
2426     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2427   else
2428     ac_cpp_err=
2429   fi
2430 else
2431   ac_cpp_err=yes
2432 fi
2433 if test -z "$ac_cpp_err"; then
2434   # Broken: success on invalid input.
2435 continue
2436 else
2437   echo "$as_me: failed program was:" >&5
2438 sed 's/^/| /' conftest.$ac_ext >&5
2439
2440   # Passes both tests.
2441 ac_preproc_ok=:
2442 break
2443 fi
2444 rm -f conftest.err conftest.$ac_ext
2445
2446 done
2447 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2448 rm -f conftest.err conftest.$ac_ext
2449 if $ac_preproc_ok; then
2450   break
2451 fi
2452
2453     done
2454     ac_cv_prog_CPP=$CPP
2455
2456 fi
2457   CPP=$ac_cv_prog_CPP
2458 else
2459   ac_cv_prog_CPP=$CPP
2460 fi
2461 echo "$as_me:$LINENO: result: $CPP" >&5
2462 echo "${ECHO_T}$CPP" >&6
2463 ac_preproc_ok=false
2464 for ac_c_preproc_warn_flag in '' yes
2465 do
2466   # Use a header file that comes with gcc, so configuring glibc
2467   # with a fresh cross-compiler works.
2468   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2469   # <limits.h> exists even on freestanding compilers.
2470   # On the NeXT, cc -E runs the code through the compiler's parser,
2471   # not just through cpp. "Syntax error" is here to catch this case.
2472   cat >conftest.$ac_ext <<_ACEOF
2473 /* confdefs.h.  */
2474 _ACEOF
2475 cat confdefs.h >>conftest.$ac_ext
2476 cat >>conftest.$ac_ext <<_ACEOF
2477 /* end confdefs.h.  */
2478 #ifdef __STDC__
2479 # include <limits.h>
2480 #else
2481 # include <assert.h>
2482 #endif
2483                      Syntax error
2484 _ACEOF
2485 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2486   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2487   ac_status=$?
2488   grep -v '^ *+' conftest.er1 >conftest.err
2489   rm -f conftest.er1
2490   cat conftest.err >&5
2491   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2492   (exit $ac_status); } >/dev/null; then
2493   if test -s conftest.err; then
2494     ac_cpp_err=$ac_c_preproc_warn_flag
2495     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2496   else
2497     ac_cpp_err=
2498   fi
2499 else
2500   ac_cpp_err=yes
2501 fi
2502 if test -z "$ac_cpp_err"; then
2503   :
2504 else
2505   echo "$as_me: failed program was:" >&5
2506 sed 's/^/| /' conftest.$ac_ext >&5
2507
2508   # Broken: fails on valid input.
2509 continue
2510 fi
2511 rm -f conftest.err conftest.$ac_ext
2512
2513   # OK, works on sane cases.  Now check whether non-existent headers
2514   # can be detected and how.
2515   cat >conftest.$ac_ext <<_ACEOF
2516 /* confdefs.h.  */
2517 _ACEOF
2518 cat confdefs.h >>conftest.$ac_ext
2519 cat >>conftest.$ac_ext <<_ACEOF
2520 /* end confdefs.h.  */
2521 #include <ac_nonexistent.h>
2522 _ACEOF
2523 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2524   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2525   ac_status=$?
2526   grep -v '^ *+' conftest.er1 >conftest.err
2527   rm -f conftest.er1
2528   cat conftest.err >&5
2529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2530   (exit $ac_status); } >/dev/null; then
2531   if test -s conftest.err; then
2532     ac_cpp_err=$ac_c_preproc_warn_flag
2533     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2534   else
2535     ac_cpp_err=
2536   fi
2537 else
2538   ac_cpp_err=yes
2539 fi
2540 if test -z "$ac_cpp_err"; then
2541   # Broken: success on invalid input.
2542 continue
2543 else
2544   echo "$as_me: failed program was:" >&5
2545 sed 's/^/| /' conftest.$ac_ext >&5
2546
2547   # Passes both tests.
2548 ac_preproc_ok=:
2549 break
2550 fi
2551 rm -f conftest.err conftest.$ac_ext
2552
2553 done
2554 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2555 rm -f conftest.err conftest.$ac_ext
2556 if $ac_preproc_ok; then
2557   :
2558 else
2559   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2560 See \`config.log' for more details." >&5
2561 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2562 See \`config.log' for more details." >&2;}
2563    { (exit 1); exit 1; }; }
2564 fi
2565
2566 ac_ext=c
2567 ac_cpp='$CPP $CPPFLAGS'
2568 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2569 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2570 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2571
2572
2573 echo "$as_me:$LINENO: checking for egrep" >&5
2574 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
2575 if test "${ac_cv_prog_egrep+set}" = set; then
2576   echo $ECHO_N "(cached) $ECHO_C" >&6
2577 else
2578   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
2579     then ac_cv_prog_egrep='grep -E'
2580     else ac_cv_prog_egrep='egrep'
2581     fi
2582 fi
2583 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
2584 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
2585  EGREP=$ac_cv_prog_egrep
2586
2587
2588 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
2589 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
2590 if test "${ac_cv_header_stdc+set}" = set; then
2591   echo $ECHO_N "(cached) $ECHO_C" >&6
2592 else
2593   cat >conftest.$ac_ext <<_ACEOF
2594 /* confdefs.h.  */
2595 _ACEOF
2596 cat confdefs.h >>conftest.$ac_ext
2597 cat >>conftest.$ac_ext <<_ACEOF
2598 /* end confdefs.h.  */
2599 #include <stdlib.h>
2600 #include <stdarg.h>
2601 #include <string.h>
2602 #include <float.h>
2603
2604 int
2605 main ()
2606 {
2607
2608   ;
2609   return 0;
2610 }
2611 _ACEOF
2612 rm -f conftest.$ac_objext
2613 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2614   (eval $ac_compile) 2>conftest.er1
2615   ac_status=$?
2616   grep -v '^ *+' conftest.er1 >conftest.err
2617   rm -f conftest.er1
2618   cat conftest.err >&5
2619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2620   (exit $ac_status); } &&
2621          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2622   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2623   (eval $ac_try) 2>&5
2624   ac_status=$?
2625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2626   (exit $ac_status); }; } &&
2627          { ac_try='test -s conftest.$ac_objext'
2628   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2629   (eval $ac_try) 2>&5
2630   ac_status=$?
2631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2632   (exit $ac_status); }; }; then
2633   ac_cv_header_stdc=yes
2634 else
2635   echo "$as_me: failed program was:" >&5
2636 sed 's/^/| /' conftest.$ac_ext >&5
2637
2638 ac_cv_header_stdc=no
2639 fi
2640 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2641
2642 if test $ac_cv_header_stdc = yes; then
2643   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2644   cat >conftest.$ac_ext <<_ACEOF
2645 /* confdefs.h.  */
2646 _ACEOF
2647 cat confdefs.h >>conftest.$ac_ext
2648 cat >>conftest.$ac_ext <<_ACEOF
2649 /* end confdefs.h.  */
2650 #include <string.h>
2651
2652 _ACEOF
2653 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2654   $EGREP "memchr" >/dev/null 2>&1; then
2655   :
2656 else
2657   ac_cv_header_stdc=no
2658 fi
2659 rm -f conftest*
2660
2661 fi
2662
2663 if test $ac_cv_header_stdc = yes; then
2664   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2665   cat >conftest.$ac_ext <<_ACEOF
2666 /* confdefs.h.  */
2667 _ACEOF
2668 cat confdefs.h >>conftest.$ac_ext
2669 cat >>conftest.$ac_ext <<_ACEOF
2670 /* end confdefs.h.  */
2671 #include <stdlib.h>
2672
2673 _ACEOF
2674 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2675   $EGREP "free" >/dev/null 2>&1; then
2676   :
2677 else
2678   ac_cv_header_stdc=no
2679 fi
2680 rm -f conftest*
2681
2682 fi
2683
2684 if test $ac_cv_header_stdc = yes; then
2685   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2686   if test "$cross_compiling" = yes; then
2687   :
2688 else
2689   cat >conftest.$ac_ext <<_ACEOF
2690 /* confdefs.h.  */
2691 _ACEOF
2692 cat confdefs.h >>conftest.$ac_ext
2693 cat >>conftest.$ac_ext <<_ACEOF
2694 /* end confdefs.h.  */
2695 #include <ctype.h>
2696 #if ((' ' & 0x0FF) == 0x020)
2697 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2698 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2699 #else
2700 # define ISLOWER(c) \
2701                    (('a' <= (c) && (c) <= 'i') \
2702                      || ('j' <= (c) && (c) <= 'r') \
2703                      || ('s' <= (c) && (c) <= 'z'))
2704 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
2705 #endif
2706
2707 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2708 int
2709 main ()
2710 {
2711   int i;
2712   for (i = 0; i < 256; i++)
2713     if (XOR (islower (i), ISLOWER (i))
2714         || toupper (i) != TOUPPER (i))
2715       exit(2);
2716   exit (0);
2717 }
2718 _ACEOF
2719 rm -f conftest$ac_exeext
2720 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2721   (eval $ac_link) 2>&5
2722   ac_status=$?
2723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2724   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2725   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2726   (eval $ac_try) 2>&5
2727   ac_status=$?
2728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2729   (exit $ac_status); }; }; then
2730   :
2731 else
2732   echo "$as_me: program exited with status $ac_status" >&5
2733 echo "$as_me: failed program was:" >&5
2734 sed 's/^/| /' conftest.$ac_ext >&5
2735
2736 ( exit $ac_status )
2737 ac_cv_header_stdc=no
2738 fi
2739 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2740 fi
2741 fi
2742 fi
2743 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
2744 echo "${ECHO_T}$ac_cv_header_stdc" >&6
2745 if test $ac_cv_header_stdc = yes; then
2746
2747 cat >>confdefs.h <<\_ACEOF
2748 #define STDC_HEADERS 1
2749 _ACEOF
2750
2751 fi
2752
2753 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
2754 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
2755 if test "${ac_cv_header_sys_wait_h+set}" = set; then
2756   echo $ECHO_N "(cached) $ECHO_C" >&6
2757 else
2758   cat >conftest.$ac_ext <<_ACEOF
2759 /* confdefs.h.  */
2760 _ACEOF
2761 cat confdefs.h >>conftest.$ac_ext
2762 cat >>conftest.$ac_ext <<_ACEOF
2763 /* end confdefs.h.  */
2764 #include <sys/types.h>
2765 #include <sys/wait.h>
2766 #ifndef WEXITSTATUS
2767 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
2768 #endif
2769 #ifndef WIFEXITED
2770 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
2771 #endif
2772
2773 int
2774 main ()
2775 {
2776   int s;
2777   wait (&s);
2778   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
2779   ;
2780   return 0;
2781 }
2782 _ACEOF
2783 rm -f conftest.$ac_objext
2784 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2785   (eval $ac_compile) 2>conftest.er1
2786   ac_status=$?
2787   grep -v '^ *+' conftest.er1 >conftest.err
2788   rm -f conftest.er1
2789   cat conftest.err >&5
2790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2791   (exit $ac_status); } &&
2792          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2793   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2794   (eval $ac_try) 2>&5
2795   ac_status=$?
2796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2797   (exit $ac_status); }; } &&
2798          { ac_try='test -s conftest.$ac_objext'
2799   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2800   (eval $ac_try) 2>&5
2801   ac_status=$?
2802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2803   (exit $ac_status); }; }; then
2804   ac_cv_header_sys_wait_h=yes
2805 else
2806   echo "$as_me: failed program was:" >&5
2807 sed 's/^/| /' conftest.$ac_ext >&5
2808
2809 ac_cv_header_sys_wait_h=no
2810 fi
2811 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2812 fi
2813 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
2814 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
2815 if test $ac_cv_header_sys_wait_h = yes; then
2816
2817 cat >>confdefs.h <<\_ACEOF
2818 #define HAVE_SYS_WAIT_H 1
2819 _ACEOF
2820
2821 fi
2822
2823 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
2824
2825
2826
2827
2828
2829
2830
2831
2832
2833 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
2834                   inttypes.h stdint.h unistd.h
2835 do
2836 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
2837 echo "$as_me:$LINENO: checking for $ac_header" >&5
2838 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
2839 if eval "test \"\${$as_ac_Header+set}\" = set"; then
2840   echo $ECHO_N "(cached) $ECHO_C" >&6
2841 else
2842   cat >conftest.$ac_ext <<_ACEOF
2843 /* confdefs.h.  */
2844 _ACEOF
2845 cat confdefs.h >>conftest.$ac_ext
2846 cat >>conftest.$ac_ext <<_ACEOF
2847 /* end confdefs.h.  */
2848 $ac_includes_default
2849
2850 #include <$ac_header>
2851 _ACEOF
2852 rm -f conftest.$ac_objext
2853 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2854   (eval $ac_compile) 2>conftest.er1
2855   ac_status=$?
2856   grep -v '^ *+' conftest.er1 >conftest.err
2857   rm -f conftest.er1
2858   cat conftest.err >&5
2859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2860   (exit $ac_status); } &&
2861          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2862   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2863   (eval $ac_try) 2>&5
2864   ac_status=$?
2865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2866   (exit $ac_status); }; } &&
2867          { ac_try='test -s conftest.$ac_objext'
2868   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2869   (eval $ac_try) 2>&5
2870   ac_status=$?
2871   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2872   (exit $ac_status); }; }; then
2873   eval "$as_ac_Header=yes"
2874 else
2875   echo "$as_me: failed program was:" >&5
2876 sed 's/^/| /' conftest.$ac_ext >&5
2877
2878 eval "$as_ac_Header=no"
2879 fi
2880 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2881 fi
2882 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
2883 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
2884 if test `eval echo '${'$as_ac_Header'}'` = yes; then
2885   cat >>confdefs.h <<_ACEOF
2886 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
2887 _ACEOF
2888
2889 fi
2890
2891 done
2892
2893
2894
2895
2896
2897
2898
2899
2900
2901
2902
2903
2904
2905
2906
2907 for ac_header in arpa/inet.h fcntl.h malloc.h memory.h netdb.h netinet/in.h stdlib.h string.h sys/file.h sys/ioctl.h sys/socket.h sys/time.h unistd.h
2908 do
2909 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
2910 if eval "test \"\${$as_ac_Header+set}\" = set"; then
2911   echo "$as_me:$LINENO: checking for $ac_header" >&5
2912 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
2913 if eval "test \"\${$as_ac_Header+set}\" = set"; then
2914   echo $ECHO_N "(cached) $ECHO_C" >&6
2915 fi
2916 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
2917 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
2918 else
2919   # Is the header compilable?
2920 echo "$as_me:$LINENO: checking $ac_header usability" >&5
2921 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
2922 cat >conftest.$ac_ext <<_ACEOF
2923 /* confdefs.h.  */
2924 _ACEOF
2925 cat confdefs.h >>conftest.$ac_ext
2926 cat >>conftest.$ac_ext <<_ACEOF
2927 /* end confdefs.h.  */
2928 $ac_includes_default
2929 #include <$ac_header>
2930 _ACEOF
2931 rm -f conftest.$ac_objext
2932 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2933   (eval $ac_compile) 2>conftest.er1
2934   ac_status=$?
2935   grep -v '^ *+' conftest.er1 >conftest.err
2936   rm -f conftest.er1
2937   cat conftest.err >&5
2938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2939   (exit $ac_status); } &&
2940          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2941   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2942   (eval $ac_try) 2>&5
2943   ac_status=$?
2944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2945   (exit $ac_status); }; } &&
2946          { ac_try='test -s conftest.$ac_objext'
2947   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2948   (eval $ac_try) 2>&5
2949   ac_status=$?
2950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2951   (exit $ac_status); }; }; then
2952   ac_header_compiler=yes
2953 else
2954   echo "$as_me: failed program was:" >&5
2955 sed 's/^/| /' conftest.$ac_ext >&5
2956
2957 ac_header_compiler=no
2958 fi
2959 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2960 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
2961 echo "${ECHO_T}$ac_header_compiler" >&6
2962
2963 # Is the header present?
2964 echo "$as_me:$LINENO: checking $ac_header presence" >&5
2965 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
2966 cat >conftest.$ac_ext <<_ACEOF
2967 /* confdefs.h.  */
2968 _ACEOF
2969 cat confdefs.h >>conftest.$ac_ext
2970 cat >>conftest.$ac_ext <<_ACEOF
2971 /* end confdefs.h.  */
2972 #include <$ac_header>
2973 _ACEOF
2974 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2975   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2976   ac_status=$?
2977   grep -v '^ *+' conftest.er1 >conftest.err
2978   rm -f conftest.er1
2979   cat conftest.err >&5
2980   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2981   (exit $ac_status); } >/dev/null; then
2982   if test -s conftest.err; then
2983     ac_cpp_err=$ac_c_preproc_warn_flag
2984     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2985   else
2986     ac_cpp_err=
2987   fi
2988 else
2989   ac_cpp_err=yes
2990 fi
2991 if test -z "$ac_cpp_err"; then
2992   ac_header_preproc=yes
2993 else
2994   echo "$as_me: failed program was:" >&5
2995 sed 's/^/| /' conftest.$ac_ext >&5
2996
2997   ac_header_preproc=no
2998 fi
2999 rm -f conftest.err conftest.$ac_ext
3000 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3001 echo "${ECHO_T}$ac_header_preproc" >&6
3002
3003 # So?  What about this header?
3004 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3005   yes:no: )
3006     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3007 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3008     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3009 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3010     ac_header_preproc=yes
3011     ;;
3012   no:yes:* )
3013     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3014 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3015     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
3016 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
3017     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3018 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3019     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
3020 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
3021     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3022 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3023     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3024 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
3025     (
3026       cat <<\_ASBOX
3027 ## ---------------------------------------- ##
3028 ## Report this to fred_nerk@sourceforge.net ##
3029 ## ---------------------------------------- ##
3030 _ASBOX
3031     ) |
3032       sed "s/^/$as_me: WARNING:     /" >&2
3033     ;;
3034 esac
3035 echo "$as_me:$LINENO: checking for $ac_header" >&5
3036 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3037 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3038   echo $ECHO_N "(cached) $ECHO_C" >&6
3039 else
3040   eval "$as_ac_Header=\$ac_header_preproc"
3041 fi
3042 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3043 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3044
3045 fi
3046 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3047   cat >>confdefs.h <<_ACEOF
3048 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3049 _ACEOF
3050
3051 fi
3052
3053 done
3054
3055
3056 # Checks for typedefs, structures, and compiler characteristics.
3057 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
3058 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
3059 if test "${ac_cv_c_const+set}" = set; then
3060   echo $ECHO_N "(cached) $ECHO_C" >&6
3061 else
3062   cat >conftest.$ac_ext <<_ACEOF
3063 /* confdefs.h.  */
3064 _ACEOF
3065 cat confdefs.h >>conftest.$ac_ext
3066 cat >>conftest.$ac_ext <<_ACEOF
3067 /* end confdefs.h.  */
3068
3069 int
3070 main ()
3071 {
3072 /* FIXME: Include the comments suggested by Paul. */
3073 #ifndef __cplusplus
3074   /* Ultrix mips cc rejects this.  */
3075   typedef int charset[2];
3076   const charset x;
3077   /* SunOS 4.1.1 cc rejects this.  */
3078   char const *const *ccp;
3079   char **p;
3080   /* NEC SVR4.0.2 mips cc rejects this.  */
3081   struct point {int x, y;};
3082   static struct point const zero = {0,0};
3083   /* AIX XL C 1.02.0.0 rejects this.
3084      It does not let you subtract one const X* pointer from another in
3085      an arm of an if-expression whose if-part is not a constant
3086      expression */
3087   const char *g = "string";
3088   ccp = &g + (g ? g-g : 0);
3089   /* HPUX 7.0 cc rejects these. */
3090   ++ccp;
3091   p = (char**) ccp;
3092   ccp = (char const *const *) p;
3093   { /* SCO 3.2v4 cc rejects this.  */
3094     char *t;
3095     char const *s = 0 ? (char *) 0 : (char const *) 0;
3096
3097     *t++ = 0;
3098   }
3099   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
3100     int x[] = {25, 17};
3101     const int *foo = &x[0];
3102     ++foo;
3103   }
3104   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3105     typedef const int *iptr;
3106     iptr p = 0;
3107     ++p;
3108   }
3109   { /* AIX XL C 1.02.0.0 rejects this saying
3110        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3111     struct s { int j; const int *ap[3]; };
3112     struct s *b; b->j = 5;
3113   }
3114   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3115     const int foo = 10;
3116   }
3117 #endif
3118
3119   ;
3120   return 0;
3121 }
3122 _ACEOF
3123 rm -f conftest.$ac_objext
3124 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3125   (eval $ac_compile) 2>conftest.er1
3126   ac_status=$?
3127   grep -v '^ *+' conftest.er1 >conftest.err
3128   rm -f conftest.er1
3129   cat conftest.err >&5
3130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3131   (exit $ac_status); } &&
3132          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3133   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3134   (eval $ac_try) 2>&5
3135   ac_status=$?
3136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3137   (exit $ac_status); }; } &&
3138          { ac_try='test -s conftest.$ac_objext'
3139   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3140   (eval $ac_try) 2>&5
3141   ac_status=$?
3142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3143   (exit $ac_status); }; }; then
3144   ac_cv_c_const=yes
3145 else
3146   echo "$as_me: failed program was:" >&5
3147 sed 's/^/| /' conftest.$ac_ext >&5
3148
3149 ac_cv_c_const=no
3150 fi
3151 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3152 fi
3153 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
3154 echo "${ECHO_T}$ac_cv_c_const" >&6
3155 if test $ac_cv_c_const = no; then
3156
3157 cat >>confdefs.h <<\_ACEOF
3158 #define const
3159 _ACEOF
3160
3161 fi
3162
3163 echo "$as_me:$LINENO: checking for pid_t" >&5
3164 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
3165 if test "${ac_cv_type_pid_t+set}" = set; then
3166   echo $ECHO_N "(cached) $ECHO_C" >&6
3167 else
3168   cat >conftest.$ac_ext <<_ACEOF
3169 /* confdefs.h.  */
3170 _ACEOF
3171 cat confdefs.h >>conftest.$ac_ext
3172 cat >>conftest.$ac_ext <<_ACEOF
3173 /* end confdefs.h.  */
3174 $ac_includes_default
3175 int
3176 main ()
3177 {
3178 if ((pid_t *) 0)
3179   return 0;
3180 if (sizeof (pid_t))
3181   return 0;
3182   ;
3183   return 0;
3184 }
3185 _ACEOF
3186 rm -f conftest.$ac_objext
3187 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3188   (eval $ac_compile) 2>conftest.er1
3189   ac_status=$?
3190   grep -v '^ *+' conftest.er1 >conftest.err
3191   rm -f conftest.er1
3192   cat conftest.err >&5
3193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3194   (exit $ac_status); } &&
3195          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3196   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3197   (eval $ac_try) 2>&5
3198   ac_status=$?
3199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3200   (exit $ac_status); }; } &&
3201          { ac_try='test -s conftest.$ac_objext'
3202   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3203   (eval $ac_try) 2>&5
3204   ac_status=$?
3205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3206   (exit $ac_status); }; }; then
3207   ac_cv_type_pid_t=yes
3208 else
3209   echo "$as_me: failed program was:" >&5
3210 sed 's/^/| /' conftest.$ac_ext >&5
3211
3212 ac_cv_type_pid_t=no
3213 fi
3214 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3215 fi
3216 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
3217 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
3218 if test $ac_cv_type_pid_t = yes; then
3219   :
3220 else
3221
3222 cat >>confdefs.h <<_ACEOF
3223 #define pid_t int
3224 _ACEOF
3225
3226 fi
3227
3228 echo "$as_me:$LINENO: checking for size_t" >&5
3229 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
3230 if test "${ac_cv_type_size_t+set}" = set; then
3231   echo $ECHO_N "(cached) $ECHO_C" >&6
3232 else
3233   cat >conftest.$ac_ext <<_ACEOF
3234 /* confdefs.h.  */
3235 _ACEOF
3236 cat confdefs.h >>conftest.$ac_ext
3237 cat >>conftest.$ac_ext <<_ACEOF
3238 /* end confdefs.h.  */
3239 $ac_includes_default
3240 int
3241 main ()
3242 {
3243 if ((size_t *) 0)
3244   return 0;
3245 if (sizeof (size_t))
3246   return 0;
3247   ;
3248   return 0;
3249 }
3250 _ACEOF
3251 rm -f conftest.$ac_objext
3252 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3253   (eval $ac_compile) 2>conftest.er1
3254   ac_status=$?
3255   grep -v '^ *+' conftest.er1 >conftest.err
3256   rm -f conftest.er1
3257   cat conftest.err >&5
3258   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3259   (exit $ac_status); } &&
3260          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3261   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3262   (eval $ac_try) 2>&5
3263   ac_status=$?
3264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3265   (exit $ac_status); }; } &&
3266          { ac_try='test -s conftest.$ac_objext'
3267   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3268   (eval $ac_try) 2>&5
3269   ac_status=$?
3270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3271   (exit $ac_status); }; }; then
3272   ac_cv_type_size_t=yes
3273 else
3274   echo "$as_me: failed program was:" >&5
3275 sed 's/^/| /' conftest.$ac_ext >&5
3276
3277 ac_cv_type_size_t=no
3278 fi
3279 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3280 fi
3281 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
3282 echo "${ECHO_T}$ac_cv_type_size_t" >&6
3283 if test $ac_cv_type_size_t = yes; then
3284   :
3285 else
3286
3287 cat >>confdefs.h <<_ACEOF
3288 #define size_t unsigned
3289 _ACEOF
3290
3291 fi
3292
3293 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
3294 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
3295 if test "${ac_cv_header_time+set}" = set; then
3296   echo $ECHO_N "(cached) $ECHO_C" >&6
3297 else
3298   cat >conftest.$ac_ext <<_ACEOF
3299 /* confdefs.h.  */
3300 _ACEOF
3301 cat confdefs.h >>conftest.$ac_ext
3302 cat >>conftest.$ac_ext <<_ACEOF
3303 /* end confdefs.h.  */
3304 #include <sys/types.h>
3305 #include <sys/time.h>
3306 #include <time.h>
3307
3308 int
3309 main ()
3310 {
3311 if ((struct tm *) 0)
3312 return 0;
3313   ;
3314   return 0;
3315 }
3316 _ACEOF
3317 rm -f conftest.$ac_objext
3318 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3319   (eval $ac_compile) 2>conftest.er1
3320   ac_status=$?
3321   grep -v '^ *+' conftest.er1 >conftest.err
3322   rm -f conftest.er1
3323   cat conftest.err >&5
3324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3325   (exit $ac_status); } &&
3326          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3327   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3328   (eval $ac_try) 2>&5
3329   ac_status=$?
3330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3331   (exit $ac_status); }; } &&
3332          { ac_try='test -s conftest.$ac_objext'
3333   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3334   (eval $ac_try) 2>&5
3335   ac_status=$?
3336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3337   (exit $ac_status); }; }; then
3338   ac_cv_header_time=yes
3339 else
3340   echo "$as_me: failed program was:" >&5
3341 sed 's/^/| /' conftest.$ac_ext >&5
3342
3343 ac_cv_header_time=no
3344 fi
3345 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3346 fi
3347 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
3348 echo "${ECHO_T}$ac_cv_header_time" >&6
3349 if test $ac_cv_header_time = yes; then
3350
3351 cat >>confdefs.h <<\_ACEOF
3352 #define TIME_WITH_SYS_TIME 1
3353 _ACEOF
3354
3355 fi
3356
3357
3358 # Checks for library functions.
3359
3360
3361 for ac_header in unistd.h vfork.h
3362 do
3363 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3364 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3365   echo "$as_me:$LINENO: checking for $ac_header" >&5
3366 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3367 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3368   echo $ECHO_N "(cached) $ECHO_C" >&6
3369 fi
3370 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3371 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3372 else
3373   # Is the header compilable?
3374 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3375 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3376 cat >conftest.$ac_ext <<_ACEOF
3377 /* confdefs.h.  */
3378 _ACEOF
3379 cat confdefs.h >>conftest.$ac_ext
3380 cat >>conftest.$ac_ext <<_ACEOF
3381 /* end confdefs.h.  */
3382 $ac_includes_default
3383 #include <$ac_header>
3384 _ACEOF
3385 rm -f conftest.$ac_objext
3386 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3387   (eval $ac_compile) 2>conftest.er1
3388   ac_status=$?
3389   grep -v '^ *+' conftest.er1 >conftest.err
3390   rm -f conftest.er1
3391   cat conftest.err >&5
3392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3393   (exit $ac_status); } &&
3394          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3395   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3396   (eval $ac_try) 2>&5
3397   ac_status=$?
3398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3399   (exit $ac_status); }; } &&
3400          { ac_try='test -s conftest.$ac_objext'
3401   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3402   (eval $ac_try) 2>&5
3403   ac_status=$?
3404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3405   (exit $ac_status); }; }; then
3406   ac_header_compiler=yes
3407 else
3408   echo "$as_me: failed program was:" >&5
3409 sed 's/^/| /' conftest.$ac_ext >&5
3410
3411 ac_header_compiler=no
3412 fi
3413 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3414 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3415 echo "${ECHO_T}$ac_header_compiler" >&6
3416
3417 # Is the header present?
3418 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3419 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3420 cat >conftest.$ac_ext <<_ACEOF
3421 /* confdefs.h.  */
3422 _ACEOF
3423 cat confdefs.h >>conftest.$ac_ext
3424 cat >>conftest.$ac_ext <<_ACEOF
3425 /* end confdefs.h.  */
3426 #include <$ac_header>
3427 _ACEOF
3428 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3429   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3430   ac_status=$?
3431   grep -v '^ *+' conftest.er1 >conftest.err
3432   rm -f conftest.er1
3433   cat conftest.err >&5
3434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3435   (exit $ac_status); } >/dev/null; then
3436   if test -s conftest.err; then
3437     ac_cpp_err=$ac_c_preproc_warn_flag
3438     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3439   else
3440     ac_cpp_err=
3441   fi
3442 else
3443   ac_cpp_err=yes
3444 fi
3445 if test -z "$ac_cpp_err"; then
3446   ac_header_preproc=yes
3447 else
3448   echo "$as_me: failed program was:" >&5
3449 sed 's/^/| /' conftest.$ac_ext >&5
3450
3451   ac_header_preproc=no
3452 fi
3453 rm -f conftest.err conftest.$ac_ext
3454 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3455 echo "${ECHO_T}$ac_header_preproc" >&6
3456
3457 # So?  What about this header?
3458 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3459   yes:no: )
3460     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3461 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3462     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3463 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3464     ac_header_preproc=yes
3465     ;;
3466   no:yes:* )
3467     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3468 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3469     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
3470 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
3471     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3472 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3473     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
3474 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
3475     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3476 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3477     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3478 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
3479     (
3480       cat <<\_ASBOX
3481 ## ---------------------------------------- ##
3482 ## Report this to fred_nerk@sourceforge.net ##
3483 ## ---------------------------------------- ##
3484 _ASBOX
3485     ) |
3486       sed "s/^/$as_me: WARNING:     /" >&2
3487     ;;
3488 esac
3489 echo "$as_me:$LINENO: checking for $ac_header" >&5
3490 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3491 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3492   echo $ECHO_N "(cached) $ECHO_C" >&6
3493 else
3494   eval "$as_ac_Header=\$ac_header_preproc"
3495 fi
3496 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3497 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3498
3499 fi
3500 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3501   cat >>confdefs.h <<_ACEOF
3502 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3503 _ACEOF
3504
3505 fi
3506
3507 done
3508
3509
3510
3511 for ac_func in fork vfork
3512 do
3513 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3514 echo "$as_me:$LINENO: checking for $ac_func" >&5
3515 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3516 if eval "test \"\${$as_ac_var+set}\" = set"; then
3517   echo $ECHO_N "(cached) $ECHO_C" >&6
3518 else
3519   cat >conftest.$ac_ext <<_ACEOF
3520 /* confdefs.h.  */
3521 _ACEOF
3522 cat confdefs.h >>conftest.$ac_ext
3523 cat >>conftest.$ac_ext <<_ACEOF
3524 /* end confdefs.h.  */
3525 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
3526    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
3527 #define $ac_func innocuous_$ac_func
3528
3529 /* System header to define __stub macros and hopefully few prototypes,
3530     which can conflict with char $ac_func (); below.
3531     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3532     <limits.h> exists even on freestanding compilers.  */
3533
3534 #ifdef __STDC__
3535 # include <limits.h>
3536 #else
3537 # include <assert.h>
3538 #endif
3539
3540 #undef $ac_func
3541
3542 /* Override any gcc2 internal prototype to avoid an error.  */
3543 #ifdef __cplusplus
3544 extern "C"
3545 {
3546 #endif
3547 /* We use char because int might match the return type of a gcc2
3548    builtin and then its argument prototype would still apply.  */
3549 char $ac_func ();
3550 /* The GNU C library defines this for functions which it implements
3551     to always fail with ENOSYS.  Some functions are actually named
3552     something starting with __ and the normal name is an alias.  */
3553 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3554 choke me
3555 #else
3556 char (*f) () = $ac_func;
3557 #endif
3558 #ifdef __cplusplus
3559 }
3560 #endif
3561
3562 int
3563 main ()
3564 {
3565 return f != $ac_func;
3566   ;
3567   return 0;
3568 }
3569 _ACEOF
3570 rm -f conftest.$ac_objext conftest$ac_exeext
3571 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3572   (eval $ac_link) 2>conftest.er1
3573   ac_status=$?
3574   grep -v '^ *+' conftest.er1 >conftest.err
3575   rm -f conftest.er1
3576   cat conftest.err >&5
3577   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3578   (exit $ac_status); } &&
3579          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3580   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3581   (eval $ac_try) 2>&5
3582   ac_status=$?
3583   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3584   (exit $ac_status); }; } &&
3585          { ac_try='test -s conftest$ac_exeext'
3586   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3587   (eval $ac_try) 2>&5
3588   ac_status=$?
3589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3590   (exit $ac_status); }; }; then
3591   eval "$as_ac_var=yes"
3592 else
3593   echo "$as_me: failed program was:" >&5
3594 sed 's/^/| /' conftest.$ac_ext >&5
3595
3596 eval "$as_ac_var=no"
3597 fi
3598 rm -f conftest.err conftest.$ac_objext \
3599       conftest$ac_exeext conftest.$ac_ext
3600 fi
3601 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
3602 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
3603 if test `eval echo '${'$as_ac_var'}'` = yes; then
3604   cat >>confdefs.h <<_ACEOF
3605 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
3606 _ACEOF
3607
3608 fi
3609 done
3610
3611 if test "x$ac_cv_func_fork" = xyes; then
3612   echo "$as_me:$LINENO: checking for working fork" >&5
3613 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
3614 if test "${ac_cv_func_fork_works+set}" = set; then
3615   echo $ECHO_N "(cached) $ECHO_C" >&6
3616 else
3617   if test "$cross_compiling" = yes; then
3618   ac_cv_func_fork_works=cross
3619 else
3620   cat >conftest.$ac_ext <<_ACEOF
3621 /* By Ruediger Kuhlmann. */
3622       #include <sys/types.h>
3623       #if HAVE_UNISTD_H
3624       # include <unistd.h>
3625       #endif
3626       /* Some systems only have a dummy stub for fork() */
3627       int main ()
3628       {
3629         if (fork() < 0)
3630           exit (1);
3631         exit (0);
3632       }
3633 _ACEOF
3634 rm -f conftest$ac_exeext
3635 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3636   (eval $ac_link) 2>&5
3637   ac_status=$?
3638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3639   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3640   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3641   (eval $ac_try) 2>&5
3642   ac_status=$?
3643   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3644   (exit $ac_status); }; }; then
3645   ac_cv_func_fork_works=yes
3646 else
3647   echo "$as_me: program exited with status $ac_status" >&5
3648 echo "$as_me: failed program was:" >&5
3649 sed 's/^/| /' conftest.$ac_ext >&5
3650
3651 ( exit $ac_status )
3652 ac_cv_func_fork_works=no
3653 fi
3654 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3655 fi
3656 fi
3657 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
3658 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
3659
3660 else
3661   ac_cv_func_fork_works=$ac_cv_func_fork
3662 fi
3663 if test "x$ac_cv_func_fork_works" = xcross; then
3664   case $host in
3665     *-*-amigaos* | *-*-msdosdjgpp*)
3666       # Override, as these systems have only a dummy fork() stub
3667       ac_cv_func_fork_works=no
3668       ;;
3669     *)
3670       ac_cv_func_fork_works=yes
3671       ;;
3672   esac
3673   { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
3674 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
3675 fi
3676 ac_cv_func_vfork_works=$ac_cv_func_vfork
3677 if test "x$ac_cv_func_vfork" = xyes; then
3678   echo "$as_me:$LINENO: checking for working vfork" >&5
3679 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
3680 if test "${ac_cv_func_vfork_works+set}" = set; then
3681   echo $ECHO_N "(cached) $ECHO_C" >&6
3682 else
3683   if test "$cross_compiling" = yes; then
3684   ac_cv_func_vfork_works=cross
3685 else
3686   cat >conftest.$ac_ext <<_ACEOF
3687 /* confdefs.h.  */
3688 _ACEOF
3689 cat confdefs.h >>conftest.$ac_ext
3690 cat >>conftest.$ac_ext <<_ACEOF
3691 /* end confdefs.h.  */
3692 /* Thanks to Paul Eggert for this test.  */
3693 #include <stdio.h>
3694 #include <stdlib.h>
3695 #include <sys/types.h>
3696 #include <sys/stat.h>
3697 #include <sys/wait.h>
3698 #if HAVE_UNISTD_H
3699 # include <unistd.h>
3700 #endif
3701 #if HAVE_VFORK_H
3702 # include <vfork.h>
3703 #endif
3704 /* On some sparc systems, changes by the child to local and incoming
3705    argument registers are propagated back to the parent.  The compiler
3706    is told about this with #include <vfork.h>, but some compilers
3707    (e.g. gcc -O) don't grok <vfork.h>.  Test for this by using a
3708    static variable whose address is put into a register that is
3709    clobbered by the vfork.  */
3710 static void
3711 #ifdef __cplusplus
3712 sparc_address_test (int arg)
3713 # else
3714 sparc_address_test (arg) int arg;
3715 #endif
3716 {
3717   static pid_t child;
3718   if (!child) {
3719     child = vfork ();
3720     if (child < 0) {
3721       perror ("vfork");
3722       _exit(2);
3723     }
3724     if (!child) {
3725       arg = getpid();
3726       write(-1, "", 0);
3727       _exit (arg);
3728     }
3729   }
3730 }
3731
3732 int
3733 main ()
3734 {
3735   pid_t parent = getpid ();
3736   pid_t child;
3737
3738   sparc_address_test (0);
3739
3740   child = vfork ();
3741
3742   if (child == 0) {
3743     /* Here is another test for sparc vfork register problems.  This
3744        test uses lots of local variables, at least as many local
3745        variables as main has allocated so far including compiler
3746        temporaries.  4 locals are enough for gcc 1.40.3 on a Solaris
3747        4.1.3 sparc, but we use 8 to be safe.  A buggy compiler should
3748        reuse the register of parent for one of the local variables,
3749        since it will think that parent can't possibly be used any more
3750        in this routine.  Assigning to the local variable will thus
3751        munge parent in the parent process.  */
3752     pid_t
3753       p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
3754       p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
3755     /* Convince the compiler that p..p7 are live; otherwise, it might
3756        use the same hardware register for all 8 local variables.  */
3757     if (p != p1 || p != p2 || p != p3 || p != p4
3758         || p != p5 || p != p6 || p != p7)
3759       _exit(1);
3760
3761     /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
3762        from child file descriptors.  If the child closes a descriptor
3763        before it execs or exits, this munges the parent's descriptor
3764        as well.  Test for this by closing stdout in the child.  */
3765     _exit(close(fileno(stdout)) != 0);
3766   } else {
3767     int status;
3768     struct stat st;
3769
3770     while (wait(&status) != child)
3771       ;
3772     exit(
3773          /* Was there some problem with vforking?  */
3774          child < 0
3775
3776          /* Did the child fail?  (This shouldn't happen.)  */
3777          || status
3778
3779          /* Did the vfork/compiler bug occur?  */
3780          || parent != getpid()
3781
3782          /* Did the file descriptor bug occur?  */
3783          || fstat(fileno(stdout), &st) != 0
3784          );
3785   }
3786 }
3787 _ACEOF
3788 rm -f conftest$ac_exeext
3789 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3790   (eval $ac_link) 2>&5
3791   ac_status=$?
3792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3793   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3794   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3795   (eval $ac_try) 2>&5
3796   ac_status=$?
3797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3798   (exit $ac_status); }; }; then
3799   ac_cv_func_vfork_works=yes
3800 else
3801   echo "$as_me: program exited with status $ac_status" >&5
3802 echo "$as_me: failed program was:" >&5
3803 sed 's/^/| /' conftest.$ac_ext >&5
3804
3805 ( exit $ac_status )
3806 ac_cv_func_vfork_works=no
3807 fi
3808 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3809 fi
3810 fi
3811 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
3812 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
3813
3814 fi;
3815 if test "x$ac_cv_func_fork_works" = xcross; then
3816   ac_cv_func_vfork_works=$ac_cv_func_vfork
3817   { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
3818 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
3819 fi
3820
3821 if test "x$ac_cv_func_vfork_works" = xyes; then
3822
3823 cat >>confdefs.h <<\_ACEOF
3824 #define HAVE_WORKING_VFORK 1
3825 _ACEOF
3826
3827 else
3828
3829 cat >>confdefs.h <<\_ACEOF
3830 #define vfork fork
3831 _ACEOF
3832
3833 fi
3834 if test "x$ac_cv_func_fork_works" = xyes; then
3835
3836 cat >>confdefs.h <<\_ACEOF
3837 #define HAVE_WORKING_FORK 1
3838 _ACEOF
3839
3840 fi
3841
3842 if test $ac_cv_c_compiler_gnu = yes; then
3843     echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
3844 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
3845 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
3846   echo $ECHO_N "(cached) $ECHO_C" >&6
3847 else
3848     ac_pattern="Autoconf.*'x'"
3849   cat >conftest.$ac_ext <<_ACEOF
3850 /* confdefs.h.  */
3851 _ACEOF
3852 cat confdefs.h >>conftest.$ac_ext
3853 cat >>conftest.$ac_ext <<_ACEOF
3854 /* end confdefs.h.  */
3855 #include <sgtty.h>
3856 Autoconf TIOCGETP
3857 _ACEOF
3858 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3859   $EGREP "$ac_pattern" >/dev/null 2>&1; then
3860   ac_cv_prog_gcc_traditional=yes
3861 else
3862   ac_cv_prog_gcc_traditional=no
3863 fi
3864 rm -f conftest*
3865
3866
3867   if test $ac_cv_prog_gcc_traditional = no; then
3868     cat >conftest.$ac_ext <<_ACEOF
3869 /* confdefs.h.  */
3870 _ACEOF
3871 cat confdefs.h >>conftest.$ac_ext
3872 cat >>conftest.$ac_ext <<_ACEOF
3873 /* end confdefs.h.  */
3874 #include <termio.h>
3875 Autoconf TCGETA
3876 _ACEOF
3877 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3878   $EGREP "$ac_pattern" >/dev/null 2>&1; then
3879   ac_cv_prog_gcc_traditional=yes
3880 fi
3881 rm -f conftest*
3882
3883   fi
3884 fi
3885 echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
3886 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
3887   if test $ac_cv_prog_gcc_traditional = yes; then
3888     CC="$CC -traditional"
3889   fi
3890 fi
3891
3892
3893 for ac_header in stdlib.h
3894 do
3895 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3896 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3897   echo "$as_me:$LINENO: checking for $ac_header" >&5
3898 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3899 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3900   echo $ECHO_N "(cached) $ECHO_C" >&6
3901 fi
3902 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3903 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3904 else
3905   # Is the header compilable?
3906 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3907 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3908 cat >conftest.$ac_ext <<_ACEOF
3909 /* confdefs.h.  */
3910 _ACEOF
3911 cat confdefs.h >>conftest.$ac_ext
3912 cat >>conftest.$ac_ext <<_ACEOF
3913 /* end confdefs.h.  */
3914 $ac_includes_default
3915 #include <$ac_header>
3916 _ACEOF
3917 rm -f conftest.$ac_objext
3918 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3919   (eval $ac_compile) 2>conftest.er1
3920   ac_status=$?
3921   grep -v '^ *+' conftest.er1 >conftest.err
3922   rm -f conftest.er1
3923   cat conftest.err >&5
3924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3925   (exit $ac_status); } &&
3926          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3927   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3928   (eval $ac_try) 2>&5
3929   ac_status=$?
3930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3931   (exit $ac_status); }; } &&
3932          { ac_try='test -s conftest.$ac_objext'
3933   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3934   (eval $ac_try) 2>&5
3935   ac_status=$?
3936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3937   (exit $ac_status); }; }; then
3938   ac_header_compiler=yes
3939 else
3940   echo "$as_me: failed program was:" >&5
3941 sed 's/^/| /' conftest.$ac_ext >&5
3942
3943 ac_header_compiler=no
3944 fi
3945 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3946 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3947 echo "${ECHO_T}$ac_header_compiler" >&6
3948
3949 # Is the header present?
3950 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3951 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3952 cat >conftest.$ac_ext <<_ACEOF
3953 /* confdefs.h.  */
3954 _ACEOF
3955 cat confdefs.h >>conftest.$ac_ext
3956 cat >>conftest.$ac_ext <<_ACEOF
3957 /* end confdefs.h.  */
3958 #include <$ac_header>
3959 _ACEOF
3960 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3961   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3962   ac_status=$?
3963   grep -v '^ *+' conftest.er1 >conftest.err
3964   rm -f conftest.er1
3965   cat conftest.err >&5
3966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3967   (exit $ac_status); } >/dev/null; then
3968   if test -s conftest.err; then
3969     ac_cpp_err=$ac_c_preproc_warn_flag
3970     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3971   else
3972     ac_cpp_err=
3973   fi
3974 else
3975   ac_cpp_err=yes
3976 fi
3977 if test -z "$ac_cpp_err"; then
3978   ac_header_preproc=yes
3979 else
3980   echo "$as_me: failed program was:" >&5
3981 sed 's/^/| /' conftest.$ac_ext >&5
3982
3983   ac_header_preproc=no
3984 fi
3985 rm -f conftest.err conftest.$ac_ext
3986 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3987 echo "${ECHO_T}$ac_header_preproc" >&6
3988
3989 # So?  What about this header?
3990 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3991   yes:no: )
3992     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3993 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3994     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3995 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3996     ac_header_preproc=yes
3997     ;;
3998   no:yes:* )
3999     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4000 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4001     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
4002 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
4003     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4004 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4005     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
4006 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
4007     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4008 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4009     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4010 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4011     (
4012       cat <<\_ASBOX
4013 ## ---------------------------------------- ##
4014 ## Report this to fred_nerk@sourceforge.net ##
4015 ## ---------------------------------------- ##
4016 _ASBOX
4017     ) |
4018       sed "s/^/$as_me: WARNING:     /" >&2
4019     ;;
4020 esac
4021 echo "$as_me:$LINENO: checking for $ac_header" >&5
4022 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4023 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4024   echo $ECHO_N "(cached) $ECHO_C" >&6
4025 else
4026   eval "$as_ac_Header=\$ac_header_preproc"
4027 fi
4028 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4029 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4030
4031 fi
4032 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4033   cat >>confdefs.h <<_ACEOF
4034 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4035 _ACEOF
4036
4037 fi
4038
4039 done
4040
4041 echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
4042 echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6
4043 if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
4044   echo $ECHO_N "(cached) $ECHO_C" >&6
4045 else
4046   if test "$cross_compiling" = yes; then
4047   ac_cv_func_malloc_0_nonnull=no
4048 else
4049   cat >conftest.$ac_ext <<_ACEOF
4050 /* confdefs.h.  */
4051 _ACEOF
4052 cat confdefs.h >>conftest.$ac_ext
4053 cat >>conftest.$ac_ext <<_ACEOF
4054 /* end confdefs.h.  */
4055 #if STDC_HEADERS || HAVE_STDLIB_H
4056 # include <stdlib.h>
4057 #else
4058 char *malloc ();
4059 #endif
4060
4061 int
4062 main ()
4063 {
4064 exit (malloc (0) ? 0 : 1);
4065   ;
4066   return 0;
4067 }
4068 _ACEOF
4069 rm -f conftest$ac_exeext
4070 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4071   (eval $ac_link) 2>&5
4072   ac_status=$?
4073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4074   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4075   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4076   (eval $ac_try) 2>&5
4077   ac_status=$?
4078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4079   (exit $ac_status); }; }; then
4080   ac_cv_func_malloc_0_nonnull=yes
4081 else
4082   echo "$as_me: program exited with status $ac_status" >&5
4083 echo "$as_me: failed program was:" >&5
4084 sed 's/^/| /' conftest.$ac_ext >&5
4085
4086 ( exit $ac_status )
4087 ac_cv_func_malloc_0_nonnull=no
4088 fi
4089 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4090 fi
4091 fi
4092 echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
4093 echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6
4094 if test $ac_cv_func_malloc_0_nonnull = yes; then
4095
4096 cat >>confdefs.h <<\_ACEOF
4097 #define HAVE_MALLOC 1
4098 _ACEOF
4099
4100 else
4101   cat >>confdefs.h <<\_ACEOF
4102 #define HAVE_MALLOC 0
4103 _ACEOF
4104
4105    case $LIBOBJS in
4106     "malloc.$ac_objext"   | \
4107   *" malloc.$ac_objext"   | \
4108     "malloc.$ac_objext "* | \
4109   *" malloc.$ac_objext "* ) ;;
4110   *) LIBOBJS="$LIBOBJS malloc.$ac_objext" ;;
4111 esac
4112
4113
4114 cat >>confdefs.h <<\_ACEOF
4115 #define malloc rpl_malloc
4116 _ACEOF
4117
4118 fi
4119
4120
4121
4122 echo "$as_me:$LINENO: checking for working memcmp" >&5
4123 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
4124 if test "${ac_cv_func_memcmp_working+set}" = set; then
4125   echo $ECHO_N "(cached) $ECHO_C" >&6
4126 else
4127   if test "$cross_compiling" = yes; then
4128   ac_cv_func_memcmp_working=no
4129 else
4130   cat >conftest.$ac_ext <<_ACEOF
4131 /* confdefs.h.  */
4132 _ACEOF
4133 cat confdefs.h >>conftest.$ac_ext
4134 cat >>conftest.$ac_ext <<_ACEOF
4135 /* end confdefs.h.  */
4136 $ac_includes_default
4137 int
4138 main ()
4139 {
4140
4141   /* Some versions of memcmp are not 8-bit clean.  */
4142   char c0 = 0x40, c1 = 0x80, c2 = 0x81;
4143   if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
4144     exit (1);
4145
4146   /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
4147      or more and with at least one buffer not starting on a 4-byte boundary.
4148      William Lewis provided this test program.   */
4149   {
4150     char foo[21];
4151     char bar[21];
4152     int i;
4153     for (i = 0; i < 4; i++)
4154       {
4155         char *a = foo + i;
4156         char *b = bar + i;
4157         strcpy (a, "--------01111111");
4158         strcpy (b, "--------10000000");
4159         if (memcmp (a, b, 16) >= 0)
4160           exit (1);
4161       }
4162     exit (0);
4163   }
4164
4165   ;
4166   return 0;
4167 }
4168 _ACEOF
4169 rm -f conftest$ac_exeext
4170 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4171   (eval $ac_link) 2>&5
4172   ac_status=$?
4173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4174   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4175   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4176   (eval $ac_try) 2>&5
4177   ac_status=$?
4178   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4179   (exit $ac_status); }; }; then
4180   ac_cv_func_memcmp_working=yes
4181 else
4182   echo "$as_me: program exited with status $ac_status" >&5
4183 echo "$as_me: failed program was:" >&5
4184 sed 's/^/| /' conftest.$ac_ext >&5
4185
4186 ( exit $ac_status )
4187 ac_cv_func_memcmp_working=no
4188 fi
4189 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4190 fi
4191 fi
4192 echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
4193 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
4194 test $ac_cv_func_memcmp_working = no && case $LIBOBJS in
4195     "memcmp.$ac_objext"   | \
4196   *" memcmp.$ac_objext"   | \
4197     "memcmp.$ac_objext "* | \
4198   *" memcmp.$ac_objext "* ) ;;
4199   *) LIBOBJS="$LIBOBJS memcmp.$ac_objext" ;;
4200 esac
4201
4202
4203
4204
4205 for ac_header in stdlib.h unistd.h
4206 do
4207 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4208 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4209   echo "$as_me:$LINENO: checking for $ac_header" >&5
4210 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4211 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4212   echo $ECHO_N "(cached) $ECHO_C" >&6
4213 fi
4214 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4215 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4216 else
4217   # Is the header compilable?
4218 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4219 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4220 cat >conftest.$ac_ext <<_ACEOF
4221 /* confdefs.h.  */
4222 _ACEOF
4223 cat confdefs.h >>conftest.$ac_ext
4224 cat >>conftest.$ac_ext <<_ACEOF
4225 /* end confdefs.h.  */
4226 $ac_includes_default
4227 #include <$ac_header>
4228 _ACEOF
4229 rm -f conftest.$ac_objext
4230 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4231   (eval $ac_compile) 2>conftest.er1
4232   ac_status=$?
4233   grep -v '^ *+' conftest.er1 >conftest.err
4234   rm -f conftest.er1
4235   cat conftest.err >&5
4236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4237   (exit $ac_status); } &&
4238          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4239   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4240   (eval $ac_try) 2>&5
4241   ac_status=$?
4242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4243   (exit $ac_status); }; } &&
4244          { ac_try='test -s conftest.$ac_objext'
4245   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4246   (eval $ac_try) 2>&5
4247   ac_status=$?
4248   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4249   (exit $ac_status); }; }; then
4250   ac_header_compiler=yes
4251 else
4252   echo "$as_me: failed program was:" >&5
4253 sed 's/^/| /' conftest.$ac_ext >&5
4254
4255 ac_header_compiler=no
4256 fi
4257 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4258 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4259 echo "${ECHO_T}$ac_header_compiler" >&6
4260
4261 # Is the header present?
4262 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4263 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4264 cat >conftest.$ac_ext <<_ACEOF
4265 /* confdefs.h.  */
4266 _ACEOF
4267 cat confdefs.h >>conftest.$ac_ext
4268 cat >>conftest.$ac_ext <<_ACEOF
4269 /* end confdefs.h.  */
4270 #include <$ac_header>
4271 _ACEOF
4272 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4273   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4274   ac_status=$?
4275   grep -v '^ *+' conftest.er1 >conftest.err
4276   rm -f conftest.er1
4277   cat conftest.err >&5
4278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4279   (exit $ac_status); } >/dev/null; then
4280   if test -s conftest.err; then
4281     ac_cpp_err=$ac_c_preproc_warn_flag
4282     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4283   else
4284     ac_cpp_err=
4285   fi
4286 else
4287   ac_cpp_err=yes
4288 fi
4289 if test -z "$ac_cpp_err"; then
4290   ac_header_preproc=yes
4291 else
4292   echo "$as_me: failed program was:" >&5
4293 sed 's/^/| /' conftest.$ac_ext >&5
4294
4295   ac_header_preproc=no
4296 fi
4297 rm -f conftest.err conftest.$ac_ext
4298 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4299 echo "${ECHO_T}$ac_header_preproc" >&6
4300
4301 # So?  What about this header?
4302 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4303   yes:no: )
4304     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4305 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4306     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4307 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4308     ac_header_preproc=yes
4309     ;;
4310   no:yes:* )
4311     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4312 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4313     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
4314 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
4315     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4316 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4317     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
4318 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
4319     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4320 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4321     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4322 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4323     (
4324       cat <<\_ASBOX
4325 ## ---------------------------------------- ##
4326 ## Report this to fred_nerk@sourceforge.net ##
4327 ## ---------------------------------------- ##
4328 _ASBOX
4329     ) |
4330       sed "s/^/$as_me: WARNING:     /" >&2
4331     ;;
4332 esac
4333 echo "$as_me:$LINENO: checking for $ac_header" >&5
4334 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4335 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4336   echo $ECHO_N "(cached) $ECHO_C" >&6
4337 else
4338   eval "$as_ac_Header=\$ac_header_preproc"
4339 fi
4340 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4341 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4342
4343 fi
4344 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4345   cat >>confdefs.h <<_ACEOF
4346 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4347 _ACEOF
4348
4349 fi
4350
4351 done
4352
4353
4354 for ac_func in getpagesize
4355 do
4356 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4357 echo "$as_me:$LINENO: checking for $ac_func" >&5
4358 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4359 if eval "test \"\${$as_ac_var+set}\" = set"; then
4360   echo $ECHO_N "(cached) $ECHO_C" >&6
4361 else
4362   cat >conftest.$ac_ext <<_ACEOF
4363 /* confdefs.h.  */
4364 _ACEOF
4365 cat confdefs.h >>conftest.$ac_ext
4366 cat >>conftest.$ac_ext <<_ACEOF
4367 /* end confdefs.h.  */
4368 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4369    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
4370 #define $ac_func innocuous_$ac_func
4371
4372 /* System header to define __stub macros and hopefully few prototypes,
4373     which can conflict with char $ac_func (); below.
4374     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4375     <limits.h> exists even on freestanding compilers.  */
4376
4377 #ifdef __STDC__
4378 # include <limits.h>
4379 #else
4380 # include <assert.h>
4381 #endif
4382
4383 #undef $ac_func
4384
4385 /* Override any gcc2 internal prototype to avoid an error.  */
4386 #ifdef __cplusplus
4387 extern "C"
4388 {
4389 #endif
4390 /* We use char because int might match the return type of a gcc2
4391    builtin and then its argument prototype would still apply.  */
4392 char $ac_func ();
4393 /* The GNU C library defines this for functions which it implements
4394     to always fail with ENOSYS.  Some functions are actually named
4395     something starting with __ and the normal name is an alias.  */
4396 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4397 choke me
4398 #else
4399 char (*f) () = $ac_func;
4400 #endif
4401 #ifdef __cplusplus
4402 }
4403 #endif
4404
4405 int
4406 main ()
4407 {
4408 return f != $ac_func;
4409   ;
4410   return 0;
4411 }
4412 _ACEOF
4413 rm -f conftest.$ac_objext conftest$ac_exeext
4414 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4415   (eval $ac_link) 2>conftest.er1
4416   ac_status=$?
4417   grep -v '^ *+' conftest.er1 >conftest.err
4418   rm -f conftest.er1
4419   cat conftest.err >&5
4420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4421   (exit $ac_status); } &&
4422          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4423   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4424   (eval $ac_try) 2>&5
4425   ac_status=$?
4426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4427   (exit $ac_status); }; } &&
4428          { ac_try='test -s conftest$ac_exeext'
4429   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4430   (eval $ac_try) 2>&5
4431   ac_status=$?
4432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4433   (exit $ac_status); }; }; then
4434   eval "$as_ac_var=yes"
4435 else
4436   echo "$as_me: failed program was:" >&5
4437 sed 's/^/| /' conftest.$ac_ext >&5
4438
4439 eval "$as_ac_var=no"
4440 fi
4441 rm -f conftest.err conftest.$ac_objext \
4442       conftest$ac_exeext conftest.$ac_ext
4443 fi
4444 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4445 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4446 if test `eval echo '${'$as_ac_var'}'` = yes; then
4447   cat >>confdefs.h <<_ACEOF
4448 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4449 _ACEOF
4450
4451 fi
4452 done
4453
4454 echo "$as_me:$LINENO: checking for working mmap" >&5
4455 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
4456 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
4457   echo $ECHO_N "(cached) $ECHO_C" >&6
4458 else
4459   if test "$cross_compiling" = yes; then
4460   ac_cv_func_mmap_fixed_mapped=no
4461 else
4462   cat >conftest.$ac_ext <<_ACEOF
4463 /* confdefs.h.  */
4464 _ACEOF
4465 cat confdefs.h >>conftest.$ac_ext
4466 cat >>conftest.$ac_ext <<_ACEOF
4467 /* end confdefs.h.  */
4468 $ac_includes_default
4469 /* malloc might have been renamed as rpl_malloc. */
4470 #undef malloc
4471
4472 /* Thanks to Mike Haertel and Jim Avera for this test.
4473    Here is a matrix of mmap possibilities:
4474         mmap private not fixed
4475         mmap private fixed at somewhere currently unmapped
4476         mmap private fixed at somewhere already mapped
4477         mmap shared not fixed
4478         mmap shared fixed at somewhere currently unmapped
4479         mmap shared fixed at somewhere already mapped
4480    For private mappings, we should verify that changes cannot be read()
4481    back from the file, nor mmap's back from the file at a different
4482    address.  (There have been systems where private was not correctly
4483    implemented like the infamous i386 svr4.0, and systems where the
4484    VM page cache was not coherent with the file system buffer cache
4485    like early versions of FreeBSD and possibly contemporary NetBSD.)
4486    For shared mappings, we should conversely verify that changes get
4487    propagated back to all the places they're supposed to be.
4488
4489    Grep wants private fixed already mapped.
4490    The main things grep needs to know about mmap are:
4491    * does it exist and is it safe to write into the mmap'd area
4492    * how to use it (BSD variants)  */
4493
4494 #include <fcntl.h>
4495 #include <sys/mman.h>
4496
4497 #if !STDC_HEADERS && !HAVE_STDLIB_H
4498 char *malloc ();
4499 #endif
4500
4501 /* This mess was copied from the GNU getpagesize.h.  */
4502 #if !HAVE_GETPAGESIZE
4503 /* Assume that all systems that can run configure have sys/param.h.  */
4504 # if !HAVE_SYS_PARAM_H
4505 #  define HAVE_SYS_PARAM_H 1
4506 # endif
4507
4508 # ifdef _SC_PAGESIZE
4509 #  define getpagesize() sysconf(_SC_PAGESIZE)
4510 # else /* no _SC_PAGESIZE */
4511 #  if HAVE_SYS_PARAM_H
4512 #   include <sys/param.h>
4513 #   ifdef EXEC_PAGESIZE
4514 #    define getpagesize() EXEC_PAGESIZE
4515 #   else /* no EXEC_PAGESIZE */
4516 #    ifdef NBPG
4517 #     define getpagesize() NBPG * CLSIZE
4518 #     ifndef CLSIZE
4519 #      define CLSIZE 1
4520 #     endif /* no CLSIZE */
4521 #    else /* no NBPG */
4522 #     ifdef NBPC
4523 #      define getpagesize() NBPC
4524 #     else /* no NBPC */
4525 #      ifdef PAGESIZE
4526 #       define getpagesize() PAGESIZE
4527 #      endif /* PAGESIZE */
4528 #     endif /* no NBPC */
4529 #    endif /* no NBPG */
4530 #   endif /* no EXEC_PAGESIZE */
4531 #  else /* no HAVE_SYS_PARAM_H */
4532 #   define getpagesize() 8192   /* punt totally */
4533 #  endif /* no HAVE_SYS_PARAM_H */
4534 # endif /* no _SC_PAGESIZE */
4535
4536 #endif /* no HAVE_GETPAGESIZE */
4537
4538 int
4539 main ()
4540 {
4541   char *data, *data2, *data3;
4542   int i, pagesize;
4543   int fd;
4544
4545   pagesize = getpagesize ();
4546
4547   /* First, make a file with some known garbage in it. */
4548   data = (char *) malloc (pagesize);
4549   if (!data)
4550     exit (1);
4551   for (i = 0; i < pagesize; ++i)
4552     *(data + i) = rand ();
4553   umask (0);
4554   fd = creat ("conftest.mmap", 0600);
4555   if (fd < 0)
4556     exit (1);
4557   if (write (fd, data, pagesize) != pagesize)
4558     exit (1);
4559   close (fd);
4560
4561   /* Next, try to mmap the file at a fixed address which already has
4562      something else allocated at it.  If we can, also make sure that
4563      we see the same garbage.  */
4564   fd = open ("conftest.mmap", O_RDWR);
4565   if (fd < 0)
4566     exit (1);
4567   data2 = (char *) malloc (2 * pagesize);
4568   if (!data2)
4569     exit (1);
4570   data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
4571   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
4572                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
4573     exit (1);
4574   for (i = 0; i < pagesize; ++i)
4575     if (*(data + i) != *(data2 + i))
4576       exit (1);
4577
4578   /* Finally, make sure that changes to the mapped area do not
4579      percolate back to the file as seen by read().  (This is a bug on
4580      some variants of i386 svr4.0.)  */
4581   for (i = 0; i < pagesize; ++i)
4582     *(data2 + i) = *(data2 + i) + 1;
4583   data3 = (char *) malloc (pagesize);
4584   if (!data3)
4585     exit (1);
4586   if (read (fd, data3, pagesize) != pagesize)
4587     exit (1);
4588   for (i = 0; i < pagesize; ++i)
4589     if (*(data + i) != *(data3 + i))
4590       exit (1);
4591   close (fd);
4592   exit (0);
4593 }
4594 _ACEOF
4595 rm -f conftest$ac_exeext
4596 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4597   (eval $ac_link) 2>&5
4598   ac_status=$?
4599   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4600   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4601   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4602   (eval $ac_try) 2>&5
4603   ac_status=$?
4604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4605   (exit $ac_status); }; }; then
4606   ac_cv_func_mmap_fixed_mapped=yes
4607 else
4608   echo "$as_me: program exited with status $ac_status" >&5
4609 echo "$as_me: failed program was:" >&5
4610 sed 's/^/| /' conftest.$ac_ext >&5
4611
4612 ( exit $ac_status )
4613 ac_cv_func_mmap_fixed_mapped=no
4614 fi
4615 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4616 fi
4617 fi
4618 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
4619 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
4620 if test $ac_cv_func_mmap_fixed_mapped = yes; then
4621
4622 cat >>confdefs.h <<\_ACEOF
4623 #define HAVE_MMAP 1
4624 _ACEOF
4625
4626 fi
4627 rm -f conftest.mmap
4628
4629
4630
4631 for ac_header in sys/select.h sys/socket.h
4632 do
4633 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4634 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4635   echo "$as_me:$LINENO: checking for $ac_header" >&5
4636 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4637 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4638   echo $ECHO_N "(cached) $ECHO_C" >&6
4639 fi
4640 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4641 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4642 else
4643   # Is the header compilable?
4644 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4645 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4646 cat >conftest.$ac_ext <<_ACEOF
4647 /* confdefs.h.  */
4648 _ACEOF
4649 cat confdefs.h >>conftest.$ac_ext
4650 cat >>conftest.$ac_ext <<_ACEOF
4651 /* end confdefs.h.  */
4652 $ac_includes_default
4653 #include <$ac_header>
4654 _ACEOF
4655 rm -f conftest.$ac_objext
4656 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4657   (eval $ac_compile) 2>conftest.er1
4658   ac_status=$?
4659   grep -v '^ *+' conftest.er1 >conftest.err
4660   rm -f conftest.er1
4661   cat conftest.err >&5
4662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4663   (exit $ac_status); } &&
4664          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4665   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4666   (eval $ac_try) 2>&5
4667   ac_status=$?
4668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4669   (exit $ac_status); }; } &&
4670          { ac_try='test -s conftest.$ac_objext'
4671   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4672   (eval $ac_try) 2>&5
4673   ac_status=$?
4674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4675   (exit $ac_status); }; }; then
4676   ac_header_compiler=yes
4677 else
4678   echo "$as_me: failed program was:" >&5
4679 sed 's/^/| /' conftest.$ac_ext >&5
4680
4681 ac_header_compiler=no
4682 fi
4683 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4684 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4685 echo "${ECHO_T}$ac_header_compiler" >&6
4686
4687 # Is the header present?
4688 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4689 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4690 cat >conftest.$ac_ext <<_ACEOF
4691 /* confdefs.h.  */
4692 _ACEOF
4693 cat confdefs.h >>conftest.$ac_ext
4694 cat >>conftest.$ac_ext <<_ACEOF
4695 /* end confdefs.h.  */
4696 #include <$ac_header>
4697 _ACEOF
4698 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4699   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4700   ac_status=$?
4701   grep -v '^ *+' conftest.er1 >conftest.err
4702   rm -f conftest.er1
4703   cat conftest.err >&5
4704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4705   (exit $ac_status); } >/dev/null; then
4706   if test -s conftest.err; then
4707     ac_cpp_err=$ac_c_preproc_warn_flag
4708     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4709   else
4710     ac_cpp_err=
4711   fi
4712 else
4713   ac_cpp_err=yes
4714 fi
4715 if test -z "$ac_cpp_err"; then
4716   ac_header_preproc=yes
4717 else
4718   echo "$as_me: failed program was:" >&5
4719 sed 's/^/| /' conftest.$ac_ext >&5
4720
4721   ac_header_preproc=no
4722 fi
4723 rm -f conftest.err conftest.$ac_ext
4724 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4725 echo "${ECHO_T}$ac_header_preproc" >&6
4726
4727 # So?  What about this header?
4728 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4729   yes:no: )
4730     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4731 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4732     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4733 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4734     ac_header_preproc=yes
4735     ;;
4736   no:yes:* )
4737     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4738 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4739     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
4740 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
4741     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4742 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4743     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
4744 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
4745     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4746 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4747     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4748 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4749     (
4750       cat <<\_ASBOX
4751 ## ---------------------------------------- ##
4752 ## Report this to fred_nerk@sourceforge.net ##
4753 ## ---------------------------------------- ##
4754 _ASBOX
4755     ) |
4756       sed "s/^/$as_me: WARNING:     /" >&2
4757     ;;
4758 esac
4759 echo "$as_me:$LINENO: checking for $ac_header" >&5
4760 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4761 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4762   echo $ECHO_N "(cached) $ECHO_C" >&6
4763 else
4764   eval "$as_ac_Header=\$ac_header_preproc"
4765 fi
4766 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4767 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4768
4769 fi
4770 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4771   cat >>confdefs.h <<_ACEOF
4772 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4773 _ACEOF
4774
4775 fi
4776
4777 done
4778
4779 echo "$as_me:$LINENO: checking types of arguments for select" >&5
4780 echo $ECHO_N "checking types of arguments for select... $ECHO_C" >&6
4781 if test "${ac_cv_func_select_args+set}" = set; then
4782   echo $ECHO_N "(cached) $ECHO_C" >&6
4783 else
4784   for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
4785  for ac_arg1 in 'int' 'size_t' 'unsigned long' 'unsigned'; do
4786   for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
4787    cat >conftest.$ac_ext <<_ACEOF
4788 /* confdefs.h.  */
4789 _ACEOF
4790 cat confdefs.h >>conftest.$ac_ext
4791 cat >>conftest.$ac_ext <<_ACEOF
4792 /* end confdefs.h.  */
4793 $ac_includes_default
4794 #if HAVE_SYS_SELECT_H
4795 # include <sys/select.h>
4796 #endif
4797 #if HAVE_SYS_SOCKET_H
4798 # include <sys/socket.h>
4799 #endif
4800
4801 int
4802 main ()
4803 {
4804 extern int select ($ac_arg1,
4805                                             $ac_arg234, $ac_arg234, $ac_arg234,
4806                                             $ac_arg5);
4807   ;
4808   return 0;
4809 }
4810 _ACEOF
4811 rm -f conftest.$ac_objext
4812 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4813   (eval $ac_compile) 2>conftest.er1
4814   ac_status=$?
4815   grep -v '^ *+' conftest.er1 >conftest.err
4816   rm -f conftest.er1
4817   cat conftest.err >&5
4818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4819   (exit $ac_status); } &&
4820          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4821   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4822   (eval $ac_try) 2>&5
4823   ac_status=$?
4824   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4825   (exit $ac_status); }; } &&
4826          { ac_try='test -s conftest.$ac_objext'
4827   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4828   (eval $ac_try) 2>&5
4829   ac_status=$?
4830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4831   (exit $ac_status); }; }; then
4832   ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
4833 else
4834   echo "$as_me: failed program was:" >&5
4835 sed 's/^/| /' conftest.$ac_ext >&5
4836
4837 fi
4838 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4839   done
4840  done
4841 done
4842 # Provide a safe default value.
4843 : ${ac_cv_func_select_args='int,int *,struct timeval *'}
4844
4845 fi
4846 echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
4847 echo "${ECHO_T}$ac_cv_func_select_args" >&6
4848 ac_save_IFS=$IFS; IFS=','
4849 set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
4850 IFS=$ac_save_IFS
4851 shift
4852
4853 cat >>confdefs.h <<_ACEOF
4854 #define SELECT_TYPE_ARG1 $1
4855 _ACEOF
4856
4857
4858 cat >>confdefs.h <<_ACEOF
4859 #define SELECT_TYPE_ARG234 ($2)
4860 _ACEOF
4861
4862
4863 cat >>confdefs.h <<_ACEOF
4864 #define SELECT_TYPE_ARG5 ($3)
4865 _ACEOF
4866
4867 rm -f conftest*
4868
4869 echo "$as_me:$LINENO: checking for function prototypes" >&5
4870 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
4871 if test "$ac_cv_prog_cc_stdc" != no; then
4872   echo "$as_me:$LINENO: result: yes" >&5
4873 echo "${ECHO_T}yes" >&6
4874
4875 cat >>confdefs.h <<\_ACEOF
4876 #define PROTOTYPES 1
4877 _ACEOF
4878
4879
4880 cat >>confdefs.h <<\_ACEOF
4881 #define __PROTOTYPES 1
4882 _ACEOF
4883
4884 else
4885   echo "$as_me:$LINENO: result: no" >&5
4886 echo "${ECHO_T}no" >&6
4887 fi
4888
4889 echo "$as_me:$LINENO: checking whether setvbuf arguments are reversed" >&5
4890 echo $ECHO_N "checking whether setvbuf arguments are reversed... $ECHO_C" >&6
4891 if test "${ac_cv_func_setvbuf_reversed+set}" = set; then
4892   echo $ECHO_N "(cached) $ECHO_C" >&6
4893 else
4894   ac_cv_func_setvbuf_reversed=no
4895    cat >conftest.$ac_ext <<_ACEOF
4896 /* confdefs.h.  */
4897 _ACEOF
4898 cat confdefs.h >>conftest.$ac_ext
4899 cat >>conftest.$ac_ext <<_ACEOF
4900 /* end confdefs.h.  */
4901 #include <stdio.h>
4902 #         if PROTOTYPES
4903            int (setvbuf) (FILE *, int, char *, size_t);
4904 #         endif
4905 int
4906 main ()
4907 {
4908 char buf; return setvbuf (stdout, _IOLBF, &buf, 1);
4909   ;
4910   return 0;
4911 }
4912 _ACEOF
4913 rm -f conftest.$ac_objext conftest$ac_exeext
4914 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4915   (eval $ac_link) 2>conftest.er1
4916   ac_status=$?
4917   grep -v '^ *+' conftest.er1 >conftest.err
4918   rm -f conftest.er1
4919   cat conftest.err >&5
4920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4921   (exit $ac_status); } &&
4922          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4923   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4924   (eval $ac_try) 2>&5
4925   ac_status=$?
4926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4927   (exit $ac_status); }; } &&
4928          { ac_try='test -s conftest$ac_exeext'
4929   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4930   (eval $ac_try) 2>&5
4931   ac_status=$?
4932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4933   (exit $ac_status); }; }; then
4934   cat >conftest.$ac_ext <<_ACEOF
4935 /* confdefs.h.  */
4936 _ACEOF
4937 cat confdefs.h >>conftest.$ac_ext
4938 cat >>conftest.$ac_ext <<_ACEOF
4939 /* end confdefs.h.  */
4940 #include <stdio.h>
4941 #            if PROTOTYPES
4942               int (setvbuf) (FILE *, int, char *, size_t);
4943 #            endif
4944 int
4945 main ()
4946 {
4947 char buf; return setvbuf (stdout, &buf, _IOLBF, 1);
4948   ;
4949   return 0;
4950 }
4951 _ACEOF
4952 rm -f conftest.$ac_objext conftest$ac_exeext
4953 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4954   (eval $ac_link) 2>conftest.er1
4955   ac_status=$?
4956   grep -v '^ *+' conftest.er1 >conftest.err
4957   rm -f conftest.er1
4958   cat conftest.err >&5
4959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4960   (exit $ac_status); } &&
4961          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4962   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4963   (eval $ac_try) 2>&5
4964   ac_status=$?
4965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4966   (exit $ac_status); }; } &&
4967          { ac_try='test -s conftest$ac_exeext'
4968   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4969   (eval $ac_try) 2>&5
4970   ac_status=$?
4971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4972   (exit $ac_status); }; }; then
4973   # It compiles and links either way, so it must not be declared
4974          # with a prototype and most likely this is a K&R C compiler.
4975          # Try running it.
4976          if test "$cross_compiling" = yes; then
4977   : # Assume setvbuf is not reversed when cross-compiling.
4978 else
4979   cat >conftest.$ac_ext <<_ACEOF
4980 /* confdefs.h.  */
4981 _ACEOF
4982 cat confdefs.h >>conftest.$ac_ext
4983 cat >>conftest.$ac_ext <<_ACEOF
4984 /* end confdefs.h.  */
4985 #include <stdio.h>
4986 int
4987 main ()
4988 {
4989 /* This call has the arguments reversed.
4990                    A reversed system may check and see that the address of buf
4991                    is not _IOLBF, _IONBF, or _IOFBF, and return nonzero.  */
4992                 char buf;
4993                 if (setvbuf (stdout, _IOLBF, &buf, 1) != 0)
4994                   exit (1);
4995                 putchar ('\r');
4996                 exit (0); /* Non-reversed systems SEGV here.  */
4997   ;
4998   return 0;
4999 }
5000 _ACEOF
5001 rm -f conftest$ac_exeext
5002 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5003   (eval $ac_link) 2>&5
5004   ac_status=$?
5005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5006   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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); }; }; then
5012   ac_cv_func_setvbuf_reversed=yes
5013 else
5014   echo "$as_me: program exited with status $ac_status" >&5
5015 echo "$as_me: failed program was:" >&5
5016 sed 's/^/| /' conftest.$ac_ext >&5
5017
5018 ( exit $ac_status )
5019 rm -f core *.core
5020 fi
5021 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5022 fi
5023         ac_cv_func_setvbuf_reversed=yes
5024 else
5025   echo "$as_me: failed program was:" >&5
5026 sed 's/^/| /' conftest.$ac_ext >&5
5027
5028 fi
5029 rm -f conftest.err conftest.$ac_objext \
5030       conftest$ac_exeext conftest.$ac_ext
5031 else
5032   echo "$as_me: failed program was:" >&5
5033 sed 's/^/| /' conftest.$ac_ext >&5
5034
5035 fi
5036 rm -f conftest.err conftest.$ac_objext \
5037       conftest$ac_exeext conftest.$ac_ext
5038 fi
5039 echo "$as_me:$LINENO: result: $ac_cv_func_setvbuf_reversed" >&5
5040 echo "${ECHO_T}$ac_cv_func_setvbuf_reversed" >&6
5041 if test $ac_cv_func_setvbuf_reversed = yes; then
5042
5043 cat >>confdefs.h <<\_ACEOF
5044 #define SETVBUF_REVERSED 1
5045 _ACEOF
5046
5047 fi
5048
5049 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
5050 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
5051 if test "${ac_cv_type_signal+set}" = set; then
5052   echo $ECHO_N "(cached) $ECHO_C" >&6
5053 else
5054   cat >conftest.$ac_ext <<_ACEOF
5055 /* confdefs.h.  */
5056 _ACEOF
5057 cat confdefs.h >>conftest.$ac_ext
5058 cat >>conftest.$ac_ext <<_ACEOF
5059 /* end confdefs.h.  */
5060 #include <sys/types.h>
5061 #include <signal.h>
5062 #ifdef signal
5063 # undef signal
5064 #endif
5065 #ifdef __cplusplus
5066 extern "C" void (*signal (int, void (*)(int)))(int);
5067 #else
5068 void (*signal ()) ();
5069 #endif
5070
5071 int
5072 main ()
5073 {
5074 int i;
5075   ;
5076   return 0;
5077 }
5078 _ACEOF
5079 rm -f conftest.$ac_objext
5080 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5081   (eval $ac_compile) 2>conftest.er1
5082   ac_status=$?
5083   grep -v '^ *+' conftest.er1 >conftest.err
5084   rm -f conftest.er1
5085   cat conftest.err >&5
5086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5087   (exit $ac_status); } &&
5088          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5089   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5090   (eval $ac_try) 2>&5
5091   ac_status=$?
5092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5093   (exit $ac_status); }; } &&
5094          { ac_try='test -s conftest.$ac_objext'
5095   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5096   (eval $ac_try) 2>&5
5097   ac_status=$?
5098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5099   (exit $ac_status); }; }; then
5100   ac_cv_type_signal=void
5101 else
5102   echo "$as_me: failed program was:" >&5
5103 sed 's/^/| /' conftest.$ac_ext >&5
5104
5105 ac_cv_type_signal=int
5106 fi
5107 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5108 fi
5109 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
5110 echo "${ECHO_T}$ac_cv_type_signal" >&6
5111
5112 cat >>confdefs.h <<_ACEOF
5113 #define RETSIGTYPE $ac_cv_type_signal
5114 _ACEOF
5115
5116
5117 echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
5118 echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6
5119 if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
5120   echo $ECHO_N "(cached) $ECHO_C" >&6
5121 else
5122   rm -f conftest.sym conftest.file
5123 echo >conftest.file
5124 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
5125   if test "$cross_compiling" = yes; then
5126   ac_cv_func_lstat_dereferences_slashed_symlink=no
5127 else
5128   cat >conftest.$ac_ext <<_ACEOF
5129 /* confdefs.h.  */
5130 _ACEOF
5131 cat confdefs.h >>conftest.$ac_ext
5132 cat >>conftest.$ac_ext <<_ACEOF
5133 /* end confdefs.h.  */
5134 $ac_includes_default
5135 int
5136 main ()
5137 {
5138 struct stat sbuf;
5139      /* Linux will dereference the symlink and fail.
5140         That is better in the sense that it means we will not
5141         have to compile and use the lstat wrapper.  */
5142      exit (lstat ("conftest.sym/", &sbuf) ? 0 : 1);
5143   ;
5144   return 0;
5145 }
5146 _ACEOF
5147 rm -f conftest$ac_exeext
5148 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5149   (eval $ac_link) 2>&5
5150   ac_status=$?
5151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5152   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5153   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5154   (eval $ac_try) 2>&5
5155   ac_status=$?
5156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5157   (exit $ac_status); }; }; then
5158   ac_cv_func_lstat_dereferences_slashed_symlink=yes
5159 else
5160   echo "$as_me: program exited with status $ac_status" >&5
5161 echo "$as_me: failed program was:" >&5
5162 sed 's/^/| /' conftest.$ac_ext >&5
5163
5164 ( exit $ac_status )
5165 ac_cv_func_lstat_dereferences_slashed_symlink=no
5166 fi
5167 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5168 fi
5169 else
5170   # If the `ln -s' command failed, then we probably don't even
5171   # have an lstat function.
5172   ac_cv_func_lstat_dereferences_slashed_symlink=no
5173 fi
5174 rm -f conftest.sym conftest.file
5175
5176 fi
5177 echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
5178 echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6
5179
5180 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
5181
5182 cat >>confdefs.h <<_ACEOF
5183 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
5184 _ACEOF
5185
5186
5187 if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
5188   case $LIBOBJS in
5189     "lstat.$ac_objext"   | \
5190   *" lstat.$ac_objext"   | \
5191     "lstat.$ac_objext "* | \
5192   *" lstat.$ac_objext "* ) ;;
5193   *) LIBOBJS="$LIBOBJS lstat.$ac_objext" ;;
5194 esac
5195
5196 fi
5197
5198 echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5
5199 echo $ECHO_N "checking whether stat accepts an empty string... $ECHO_C" >&6
5200 if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then
5201   echo $ECHO_N "(cached) $ECHO_C" >&6
5202 else
5203   if test "$cross_compiling" = yes; then
5204   ac_cv_func_stat_empty_string_bug=yes
5205 else
5206   cat >conftest.$ac_ext <<_ACEOF
5207 /* confdefs.h.  */
5208 _ACEOF
5209 cat confdefs.h >>conftest.$ac_ext
5210 cat >>conftest.$ac_ext <<_ACEOF
5211 /* end confdefs.h.  */
5212 $ac_includes_default
5213 int
5214 main ()
5215 {
5216 struct stat sbuf;
5217   exit (stat ("", &sbuf) ? 1 : 0);
5218   ;
5219   return 0;
5220 }
5221 _ACEOF
5222 rm -f conftest$ac_exeext
5223 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5224   (eval $ac_link) 2>&5
5225   ac_status=$?
5226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5227   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5228   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5229   (eval $ac_try) 2>&5
5230   ac_status=$?
5231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5232   (exit $ac_status); }; }; then
5233   ac_cv_func_stat_empty_string_bug=yes
5234 else
5235   echo "$as_me: program exited with status $ac_status" >&5
5236 echo "$as_me: failed program was:" >&5
5237 sed 's/^/| /' conftest.$ac_ext >&5
5238
5239 ( exit $ac_status )
5240 ac_cv_func_stat_empty_string_bug=no
5241 fi
5242 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5243 fi
5244 fi
5245 echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5
5246 echo "${ECHO_T}$ac_cv_func_stat_empty_string_bug" >&6
5247 if test $ac_cv_func_stat_empty_string_bug = yes; then
5248   case $LIBOBJS in
5249     "stat.$ac_objext"   | \
5250   *" stat.$ac_objext"   | \
5251     "stat.$ac_objext "* | \
5252   *" stat.$ac_objext "* ) ;;
5253   *) LIBOBJS="$LIBOBJS stat.$ac_objext" ;;
5254 esac
5255
5256
5257 cat >>confdefs.h <<_ACEOF
5258 #define HAVE_STAT_EMPTY_STRING_BUG 1
5259 _ACEOF
5260
5261 fi
5262
5263
5264 for ac_func in strftime
5265 do
5266 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5267 echo "$as_me:$LINENO: checking for $ac_func" >&5
5268 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5269 if eval "test \"\${$as_ac_var+set}\" = set"; then
5270   echo $ECHO_N "(cached) $ECHO_C" >&6
5271 else
5272   cat >conftest.$ac_ext <<_ACEOF
5273 /* confdefs.h.  */
5274 _ACEOF
5275 cat confdefs.h >>conftest.$ac_ext
5276 cat >>conftest.$ac_ext <<_ACEOF
5277 /* end confdefs.h.  */
5278 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5279    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
5280 #define $ac_func innocuous_$ac_func
5281
5282 /* System header to define __stub macros and hopefully few prototypes,
5283     which can conflict with char $ac_func (); below.
5284     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5285     <limits.h> exists even on freestanding compilers.  */
5286
5287 #ifdef __STDC__
5288 # include <limits.h>
5289 #else
5290 # include <assert.h>
5291 #endif
5292
5293 #undef $ac_func
5294
5295 /* Override any gcc2 internal prototype to avoid an error.  */
5296 #ifdef __cplusplus
5297 extern "C"
5298 {
5299 #endif
5300 /* We use char because int might match the return type of a gcc2
5301    builtin and then its argument prototype would still apply.  */
5302 char $ac_func ();
5303 /* The GNU C library defines this for functions which it implements
5304     to always fail with ENOSYS.  Some functions are actually named
5305     something starting with __ and the normal name is an alias.  */
5306 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5307 choke me
5308 #else
5309 char (*f) () = $ac_func;
5310 #endif
5311 #ifdef __cplusplus
5312 }
5313 #endif
5314
5315 int
5316 main ()
5317 {
5318 return f != $ac_func;
5319   ;
5320   return 0;
5321 }
5322 _ACEOF
5323 rm -f conftest.$ac_objext conftest$ac_exeext
5324 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5325   (eval $ac_link) 2>conftest.er1
5326   ac_status=$?
5327   grep -v '^ *+' conftest.er1 >conftest.err
5328   rm -f conftest.er1
5329   cat conftest.err >&5
5330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5331   (exit $ac_status); } &&
5332          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5333   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5334   (eval $ac_try) 2>&5
5335   ac_status=$?
5336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5337   (exit $ac_status); }; } &&
5338          { ac_try='test -s conftest$ac_exeext'
5339   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5340   (eval $ac_try) 2>&5
5341   ac_status=$?
5342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5343   (exit $ac_status); }; }; then
5344   eval "$as_ac_var=yes"
5345 else
5346   echo "$as_me: failed program was:" >&5
5347 sed 's/^/| /' conftest.$ac_ext >&5
5348
5349 eval "$as_ac_var=no"
5350 fi
5351 rm -f conftest.err conftest.$ac_objext \
5352       conftest$ac_exeext conftest.$ac_ext
5353 fi
5354 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5355 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5356 if test `eval echo '${'$as_ac_var'}'` = yes; then
5357   cat >>confdefs.h <<_ACEOF
5358 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5359 _ACEOF
5360
5361 else
5362   # strftime is in -lintl on SCO UNIX.
5363 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
5364 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
5365 if test "${ac_cv_lib_intl_strftime+set}" = set; then
5366   echo $ECHO_N "(cached) $ECHO_C" >&6
5367 else
5368   ac_check_lib_save_LIBS=$LIBS
5369 LIBS="-lintl  $LIBS"
5370 cat >conftest.$ac_ext <<_ACEOF
5371 /* confdefs.h.  */
5372 _ACEOF
5373 cat confdefs.h >>conftest.$ac_ext
5374 cat >>conftest.$ac_ext <<_ACEOF
5375 /* end confdefs.h.  */
5376
5377 /* Override any gcc2 internal prototype to avoid an error.  */
5378 #ifdef __cplusplus
5379 extern "C"
5380 #endif
5381 /* We use char because int might match the return type of a gcc2
5382    builtin and then its argument prototype would still apply.  */
5383 char strftime ();
5384 int
5385 main ()
5386 {
5387 strftime ();
5388   ;
5389   return 0;
5390 }
5391 _ACEOF
5392 rm -f conftest.$ac_objext conftest$ac_exeext
5393 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5394   (eval $ac_link) 2>conftest.er1
5395   ac_status=$?
5396   grep -v '^ *+' conftest.er1 >conftest.err
5397   rm -f conftest.er1
5398   cat conftest.err >&5
5399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5400   (exit $ac_status); } &&
5401          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5402   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5403   (eval $ac_try) 2>&5
5404   ac_status=$?
5405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5406   (exit $ac_status); }; } &&
5407          { ac_try='test -s conftest$ac_exeext'
5408   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5409   (eval $ac_try) 2>&5
5410   ac_status=$?
5411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5412   (exit $ac_status); }; }; then
5413   ac_cv_lib_intl_strftime=yes
5414 else
5415   echo "$as_me: failed program was:" >&5
5416 sed 's/^/| /' conftest.$ac_ext >&5
5417
5418 ac_cv_lib_intl_strftime=no
5419 fi
5420 rm -f conftest.err conftest.$ac_objext \
5421       conftest$ac_exeext conftest.$ac_ext
5422 LIBS=$ac_check_lib_save_LIBS
5423 fi
5424 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
5425 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
5426 if test $ac_cv_lib_intl_strftime = yes; then
5427   cat >>confdefs.h <<\_ACEOF
5428 #define HAVE_STRFTIME 1
5429 _ACEOF
5430
5431 LIBS="-lintl $LIBS"
5432 fi
5433
5434 fi
5435 done
5436
5437
5438 for ac_func in vprintf
5439 do
5440 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5441 echo "$as_me:$LINENO: checking for $ac_func" >&5
5442 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5443 if eval "test \"\${$as_ac_var+set}\" = set"; then
5444   echo $ECHO_N "(cached) $ECHO_C" >&6
5445 else
5446   cat >conftest.$ac_ext <<_ACEOF
5447 /* confdefs.h.  */
5448 _ACEOF
5449 cat confdefs.h >>conftest.$ac_ext
5450 cat >>conftest.$ac_ext <<_ACEOF
5451 /* end confdefs.h.  */
5452 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5453    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
5454 #define $ac_func innocuous_$ac_func
5455
5456 /* System header to define __stub macros and hopefully few prototypes,
5457     which can conflict with char $ac_func (); below.
5458     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5459     <limits.h> exists even on freestanding compilers.  */
5460
5461 #ifdef __STDC__
5462 # include <limits.h>
5463 #else
5464 # include <assert.h>
5465 #endif
5466
5467 #undef $ac_func
5468
5469 /* Override any gcc2 internal prototype to avoid an error.  */
5470 #ifdef __cplusplus
5471 extern "C"
5472 {
5473 #endif
5474 /* We use char because int might match the return type of a gcc2
5475    builtin and then its argument prototype would still apply.  */
5476 char $ac_func ();
5477 /* The GNU C library defines this for functions which it implements
5478     to always fail with ENOSYS.  Some functions are actually named
5479     something starting with __ and the normal name is an alias.  */
5480 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5481 choke me
5482 #else
5483 char (*f) () = $ac_func;
5484 #endif
5485 #ifdef __cplusplus
5486 }
5487 #endif
5488
5489 int
5490 main ()
5491 {
5492 return f != $ac_func;
5493   ;
5494   return 0;
5495 }
5496 _ACEOF
5497 rm -f conftest.$ac_objext conftest$ac_exeext
5498 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5499   (eval $ac_link) 2>conftest.er1
5500   ac_status=$?
5501   grep -v '^ *+' conftest.er1 >conftest.err
5502   rm -f conftest.er1
5503   cat conftest.err >&5
5504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5505   (exit $ac_status); } &&
5506          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5507   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5508   (eval $ac_try) 2>&5
5509   ac_status=$?
5510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5511   (exit $ac_status); }; } &&
5512          { ac_try='test -s conftest$ac_exeext'
5513   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5514   (eval $ac_try) 2>&5
5515   ac_status=$?
5516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5517   (exit $ac_status); }; }; then
5518   eval "$as_ac_var=yes"
5519 else
5520   echo "$as_me: failed program was:" >&5
5521 sed 's/^/| /' conftest.$ac_ext >&5
5522
5523 eval "$as_ac_var=no"
5524 fi
5525 rm -f conftest.err conftest.$ac_objext \
5526       conftest$ac_exeext conftest.$ac_ext
5527 fi
5528 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5529 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5530 if test `eval echo '${'$as_ac_var'}'` = yes; then
5531   cat >>confdefs.h <<_ACEOF
5532 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5533 _ACEOF
5534
5535 echo "$as_me:$LINENO: checking for _doprnt" >&5
5536 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
5537 if test "${ac_cv_func__doprnt+set}" = set; then
5538   echo $ECHO_N "(cached) $ECHO_C" >&6
5539 else
5540   cat >conftest.$ac_ext <<_ACEOF
5541 /* confdefs.h.  */
5542 _ACEOF
5543 cat confdefs.h >>conftest.$ac_ext
5544 cat >>conftest.$ac_ext <<_ACEOF
5545 /* end confdefs.h.  */
5546 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
5547    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
5548 #define _doprnt innocuous__doprnt
5549
5550 /* System header to define __stub macros and hopefully few prototypes,
5551     which can conflict with char _doprnt (); below.
5552     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5553     <limits.h> exists even on freestanding compilers.  */
5554
5555 #ifdef __STDC__
5556 # include <limits.h>
5557 #else
5558 # include <assert.h>
5559 #endif
5560
5561 #undef _doprnt
5562
5563 /* Override any gcc2 internal prototype to avoid an error.  */
5564 #ifdef __cplusplus
5565 extern "C"
5566 {
5567 #endif
5568 /* We use char because int might match the return type of a gcc2
5569    builtin and then its argument prototype would still apply.  */
5570 char _doprnt ();
5571 /* The GNU C library defines this for functions which it implements
5572     to always fail with ENOSYS.  Some functions are actually named
5573     something starting with __ and the normal name is an alias.  */
5574 #if defined (__stub__doprnt) || defined (__stub____doprnt)
5575 choke me
5576 #else
5577 char (*f) () = _doprnt;
5578 #endif
5579 #ifdef __cplusplus
5580 }
5581 #endif
5582
5583 int
5584 main ()
5585 {
5586 return f != _doprnt;
5587   ;
5588   return 0;
5589 }
5590 _ACEOF
5591 rm -f conftest.$ac_objext conftest$ac_exeext
5592 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5593   (eval $ac_link) 2>conftest.er1
5594   ac_status=$?
5595   grep -v '^ *+' conftest.er1 >conftest.err
5596   rm -f conftest.er1
5597   cat conftest.err >&5
5598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5599   (exit $ac_status); } &&
5600          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5601   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5602   (eval $ac_try) 2>&5
5603   ac_status=$?
5604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5605   (exit $ac_status); }; } &&
5606          { ac_try='test -s conftest$ac_exeext'
5607   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5608   (eval $ac_try) 2>&5
5609   ac_status=$?
5610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5611   (exit $ac_status); }; }; then
5612   ac_cv_func__doprnt=yes
5613 else
5614   echo "$as_me: failed program was:" >&5
5615 sed 's/^/| /' conftest.$ac_ext >&5
5616
5617 ac_cv_func__doprnt=no
5618 fi
5619 rm -f conftest.err conftest.$ac_objext \
5620       conftest$ac_exeext conftest.$ac_ext
5621 fi
5622 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
5623 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
5624 if test $ac_cv_func__doprnt = yes; then
5625
5626 cat >>confdefs.h <<\_ACEOF
5627 #define HAVE_DOPRNT 1
5628 _ACEOF
5629
5630 fi
5631
5632 fi
5633 done
5634
5635
5636
5637
5638
5639
5640
5641
5642
5643
5644
5645
5646
5647
5648
5649
5650 for ac_func in alarm gethostbyname gethostname gettimeofday inet_ntoa memset pow select socket strcasecmp strchr strdup strerror strrchr
5651 do
5652 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5653 echo "$as_me:$LINENO: checking for $ac_func" >&5
5654 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5655 if eval "test \"\${$as_ac_var+set}\" = set"; then
5656   echo $ECHO_N "(cached) $ECHO_C" >&6
5657 else
5658   cat >conftest.$ac_ext <<_ACEOF
5659 /* confdefs.h.  */
5660 _ACEOF
5661 cat confdefs.h >>conftest.$ac_ext
5662 cat >>conftest.$ac_ext <<_ACEOF
5663 /* end confdefs.h.  */
5664 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5665    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
5666 #define $ac_func innocuous_$ac_func
5667
5668 /* System header to define __stub macros and hopefully few prototypes,
5669     which can conflict with char $ac_func (); below.
5670     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5671     <limits.h> exists even on freestanding compilers.  */
5672
5673 #ifdef __STDC__
5674 # include <limits.h>
5675 #else
5676 # include <assert.h>
5677 #endif
5678
5679 #undef $ac_func
5680
5681 /* Override any gcc2 internal prototype to avoid an error.  */
5682 #ifdef __cplusplus
5683 extern "C"
5684 {
5685 #endif
5686 /* We use char because int might match the return type of a gcc2
5687    builtin and then its argument prototype would still apply.  */
5688 char $ac_func ();
5689 /* The GNU C library defines this for functions which it implements
5690     to always fail with ENOSYS.  Some functions are actually named
5691     something starting with __ and the normal name is an alias.  */
5692 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5693 choke me
5694 #else
5695 char (*f) () = $ac_func;
5696 #endif
5697 #ifdef __cplusplus
5698 }
5699 #endif
5700
5701 int
5702 main ()
5703 {
5704 return f != $ac_func;
5705   ;
5706   return 0;
5707 }
5708 _ACEOF
5709 rm -f conftest.$ac_objext conftest$ac_exeext
5710 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5711   (eval $ac_link) 2>conftest.er1
5712   ac_status=$?
5713   grep -v '^ *+' conftest.er1 >conftest.err
5714   rm -f conftest.er1
5715   cat conftest.err >&5
5716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5717   (exit $ac_status); } &&
5718          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5719   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5720   (eval $ac_try) 2>&5
5721   ac_status=$?
5722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5723   (exit $ac_status); }; } &&
5724          { ac_try='test -s conftest$ac_exeext'
5725   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5726   (eval $ac_try) 2>&5
5727   ac_status=$?
5728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5729   (exit $ac_status); }; }; then
5730   eval "$as_ac_var=yes"
5731 else
5732   echo "$as_me: failed program was:" >&5
5733 sed 's/^/| /' conftest.$ac_ext >&5
5734
5735 eval "$as_ac_var=no"
5736 fi
5737 rm -f conftest.err conftest.$ac_objext \
5738       conftest$ac_exeext conftest.$ac_ext
5739 fi
5740 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5741 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5742 if test `eval echo '${'$as_ac_var'}'` = yes; then
5743   cat >>confdefs.h <<_ACEOF
5744 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5745 _ACEOF
5746
5747 fi
5748 done
5749
5750
5751 # Checks for libraries.
5752
5753 echo "$as_me:$LINENO: checking for cli_init in -lcli" >&5
5754 echo $ECHO_N "checking for cli_init in -lcli... $ECHO_C" >&6
5755 if test "${ac_cv_lib_cli_cli_init+set}" = set; then
5756   echo $ECHO_N "(cached) $ECHO_C" >&6
5757 else
5758   ac_check_lib_save_LIBS=$LIBS
5759 LIBS="-lcli  $LIBS"
5760 cat >conftest.$ac_ext <<_ACEOF
5761 /* confdefs.h.  */
5762 _ACEOF
5763 cat confdefs.h >>conftest.$ac_ext
5764 cat >>conftest.$ac_ext <<_ACEOF
5765 /* end confdefs.h.  */
5766
5767 /* Override any gcc2 internal prototype to avoid an error.  */
5768 #ifdef __cplusplus
5769 extern "C"
5770 #endif
5771 /* We use char because int might match the return type of a gcc2
5772    builtin and then its argument prototype would still apply.  */
5773 char cli_init ();
5774 int
5775 main ()
5776 {
5777 cli_init ();
5778   ;
5779   return 0;
5780 }
5781 _ACEOF
5782 rm -f conftest.$ac_objext conftest$ac_exeext
5783 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5784   (eval $ac_link) 2>conftest.er1
5785   ac_status=$?
5786   grep -v '^ *+' conftest.er1 >conftest.err
5787   rm -f conftest.er1
5788   cat conftest.err >&5
5789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5790   (exit $ac_status); } &&
5791          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5792   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5793   (eval $ac_try) 2>&5
5794   ac_status=$?
5795   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5796   (exit $ac_status); }; } &&
5797          { ac_try='test -s conftest$ac_exeext'
5798   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5799   (eval $ac_try) 2>&5
5800   ac_status=$?
5801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5802   (exit $ac_status); }; }; then
5803   ac_cv_lib_cli_cli_init=yes
5804 else
5805   echo "$as_me: failed program was:" >&5
5806 sed 's/^/| /' conftest.$ac_ext >&5
5807
5808 ac_cv_lib_cli_cli_init=no
5809 fi
5810 rm -f conftest.err conftest.$ac_objext \
5811       conftest$ac_exeext conftest.$ac_ext
5812 LIBS=$ac_check_lib_save_LIBS
5813 fi
5814 echo "$as_me:$LINENO: result: $ac_cv_lib_cli_cli_init" >&5
5815 echo "${ECHO_T}$ac_cv_lib_cli_cli_init" >&6
5816 if test $ac_cv_lib_cli_cli_init = yes; then
5817   cat >>confdefs.h <<_ACEOF
5818 #define HAVE_LIBCLI 1
5819 _ACEOF
5820
5821   LIBS="-lcli $LIBS"
5822
5823 fi
5824
5825
5826 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
5827 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
5828 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
5829   echo $ECHO_N "(cached) $ECHO_C" >&6
5830 else
5831   ac_check_lib_save_LIBS=$LIBS
5832 LIBS="-ldl  $LIBS"
5833 cat >conftest.$ac_ext <<_ACEOF
5834 /* confdefs.h.  */
5835 _ACEOF
5836 cat confdefs.h >>conftest.$ac_ext
5837 cat >>conftest.$ac_ext <<_ACEOF
5838 /* end confdefs.h.  */
5839
5840 /* Override any gcc2 internal prototype to avoid an error.  */
5841 #ifdef __cplusplus
5842 extern "C"
5843 #endif
5844 /* We use char because int might match the return type of a gcc2
5845    builtin and then its argument prototype would still apply.  */
5846 char dlopen ();
5847 int
5848 main ()
5849 {
5850 dlopen ();
5851   ;
5852   return 0;
5853 }
5854 _ACEOF
5855 rm -f conftest.$ac_objext conftest$ac_exeext
5856 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5857   (eval $ac_link) 2>conftest.er1
5858   ac_status=$?
5859   grep -v '^ *+' conftest.er1 >conftest.err
5860   rm -f conftest.er1
5861   cat conftest.err >&5
5862   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5863   (exit $ac_status); } &&
5864          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5865   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5866   (eval $ac_try) 2>&5
5867   ac_status=$?
5868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5869   (exit $ac_status); }; } &&
5870          { ac_try='test -s conftest$ac_exeext'
5871   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5872   (eval $ac_try) 2>&5
5873   ac_status=$?
5874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5875   (exit $ac_status); }; }; then
5876   ac_cv_lib_dl_dlopen=yes
5877 else
5878   echo "$as_me: failed program was:" >&5
5879 sed 's/^/| /' conftest.$ac_ext >&5
5880
5881 ac_cv_lib_dl_dlopen=no
5882 fi
5883 rm -f conftest.err conftest.$ac_objext \
5884       conftest$ac_exeext conftest.$ac_ext
5885 LIBS=$ac_check_lib_save_LIBS
5886 fi
5887 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
5888 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
5889 if test $ac_cv_lib_dl_dlopen = yes; then
5890   cat >>confdefs.h <<_ACEOF
5891 #define HAVE_LIBDL 1
5892 _ACEOF
5893
5894   LIBS="-ldl $LIBS"
5895
5896 fi
5897
5898
5899 echo "$as_me:$LINENO: checking for pow in -lm" >&5
5900 echo $ECHO_N "checking for pow in -lm... $ECHO_C" >&6
5901 if test "${ac_cv_lib_m_pow+set}" = set; then
5902   echo $ECHO_N "(cached) $ECHO_C" >&6
5903 else
5904   ac_check_lib_save_LIBS=$LIBS
5905 LIBS="-lm  $LIBS"
5906 cat >conftest.$ac_ext <<_ACEOF
5907 /* confdefs.h.  */
5908 _ACEOF
5909 cat confdefs.h >>conftest.$ac_ext
5910 cat >>conftest.$ac_ext <<_ACEOF
5911 /* end confdefs.h.  */
5912
5913 /* Override any gcc2 internal prototype to avoid an error.  */
5914 #ifdef __cplusplus
5915 extern "C"
5916 #endif
5917 /* We use char because int might match the return type of a gcc2
5918    builtin and then its argument prototype would still apply.  */
5919 char pow ();
5920 int
5921 main ()
5922 {
5923 pow ();
5924   ;
5925   return 0;
5926 }
5927 _ACEOF
5928 rm -f conftest.$ac_objext conftest$ac_exeext
5929 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5930   (eval $ac_link) 2>conftest.er1
5931   ac_status=$?
5932   grep -v '^ *+' conftest.er1 >conftest.err
5933   rm -f conftest.er1
5934   cat conftest.err >&5
5935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5936   (exit $ac_status); } &&
5937          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5938   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5939   (eval $ac_try) 2>&5
5940   ac_status=$?
5941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5942   (exit $ac_status); }; } &&
5943          { ac_try='test -s conftest$ac_exeext'
5944   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5945   (eval $ac_try) 2>&5
5946   ac_status=$?
5947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5948   (exit $ac_status); }; }; then
5949   ac_cv_lib_m_pow=yes
5950 else
5951   echo "$as_me: failed program was:" >&5
5952 sed 's/^/| /' conftest.$ac_ext >&5
5953
5954 ac_cv_lib_m_pow=no
5955 fi
5956 rm -f conftest.err conftest.$ac_objext \
5957       conftest$ac_exeext conftest.$ac_ext
5958 LIBS=$ac_check_lib_save_LIBS
5959 fi
5960 echo "$as_me:$LINENO: result: $ac_cv_lib_m_pow" >&5
5961 echo "${ECHO_T}$ac_cv_lib_m_pow" >&6
5962 if test $ac_cv_lib_m_pow = yes; then
5963   cat >>confdefs.h <<_ACEOF
5964 #define HAVE_LIBM 1
5965 _ACEOF
5966
5967   LIBS="-lm $LIBS"
5968
5969 fi
5970
5971
5972 cat >>confdefs.h <<_ACEOF
5973 #define LIBDIR "$prefix/lib/l2tpns"
5974 _ACEOF
5975
5976 cat >>confdefs.h <<_ACEOF
5977 #define ETCDIR "$sysconfdir"
5978 _ACEOF
5979
5980 cat >>confdefs.h <<_ACEOF
5981 #define BINDIR "$prefix/bin"
5982 _ACEOF
5983
5984
5985           ac_config_files="$ac_config_files Makefile"
5986
5987 cat >confcache <<\_ACEOF
5988 # This file is a shell script that caches the results of configure
5989 # tests run on this system so they can be shared between configure
5990 # scripts and configure runs, see configure's option --config-cache.
5991 # It is not useful on other systems.  If it contains results you don't
5992 # want to keep, you may remove or edit it.
5993 #
5994 # config.status only pays attention to the cache file if you give it
5995 # the --recheck option to rerun configure.
5996 #
5997 # `ac_cv_env_foo' variables (set or unset) will be overridden when
5998 # loading this file, other *unset* `ac_cv_foo' will be assigned the
5999 # following values.
6000
6001 _ACEOF
6002
6003 # The following way of writing the cache mishandles newlines in values,
6004 # but we know of no workaround that is simple, portable, and efficient.
6005 # So, don't put newlines in cache variables' values.
6006 # Ultrix sh set writes to stderr and can't be redirected directly,
6007 # and sets the high bit in the cache file unless we assign to the vars.
6008 {
6009   (set) 2>&1 |
6010     case `(ac_space=' '; set | grep ac_space) 2>&1` in
6011     *ac_space=\ *)
6012       # `set' does not quote correctly, so add quotes (double-quote
6013       # substitution turns \\\\ into \\, and sed turns \\ into \).
6014       sed -n \
6015         "s/'/'\\\\''/g;
6016           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
6017       ;;
6018     *)
6019       # `set' quotes correctly as required by POSIX, so do not add quotes.
6020       sed -n \
6021         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
6022       ;;
6023     esac;
6024 } |
6025   sed '
6026      t clear
6027      : clear
6028      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
6029      t end
6030      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
6031      : end' >>confcache
6032 if diff $cache_file confcache >/dev/null 2>&1; then :; else
6033   if test -w $cache_file; then
6034     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
6035     cat confcache >$cache_file
6036   else
6037     echo "not updating unwritable cache $cache_file"
6038   fi
6039 fi
6040 rm -f confcache
6041
6042 test "x$prefix" = xNONE && prefix=$ac_default_prefix
6043 # Let make expand exec_prefix.
6044 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6045
6046 # VPATH may cause trouble with some makes, so we remove $(srcdir),
6047 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
6048 # trailing colons and then remove the whole line if VPATH becomes empty
6049 # (actually we leave an empty line to preserve line numbers).
6050 if test "x$srcdir" = x.; then
6051   ac_vpsub='/^[  ]*VPATH[        ]*=/{
6052 s/:*\$(srcdir):*/:/;
6053 s/:*\${srcdir}:*/:/;
6054 s/:*@srcdir@:*/:/;
6055 s/^\([^=]*=[     ]*\):*/\1/;
6056 s/:*$//;
6057 s/^[^=]*=[       ]*$//;
6058 }'
6059 fi
6060
6061 DEFS=-DHAVE_CONFIG_H
6062
6063 ac_libobjs=
6064 ac_ltlibobjs=
6065 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
6066   # 1. Remove the extension, and $U if already installed.
6067   ac_i=`echo "$ac_i" |
6068          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
6069   # 2. Add them.
6070   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
6071   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
6072 done
6073 LIBOBJS=$ac_libobjs
6074
6075 LTLIBOBJS=$ac_ltlibobjs
6076
6077
6078
6079 : ${CONFIG_STATUS=./config.status}
6080 ac_clean_files_save=$ac_clean_files
6081 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
6082 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
6083 echo "$as_me: creating $CONFIG_STATUS" >&6;}
6084 cat >$CONFIG_STATUS <<_ACEOF
6085 #! $SHELL
6086 # Generated by $as_me.
6087 # Run this file to recreate the current configuration.
6088 # Compiler output produced by configure, useful for debugging
6089 # configure, is in config.log if it exists.
6090
6091 debug=false
6092 ac_cs_recheck=false
6093 ac_cs_silent=false
6094 SHELL=\${CONFIG_SHELL-$SHELL}
6095 _ACEOF
6096
6097 cat >>$CONFIG_STATUS <<\_ACEOF
6098 ## --------------------- ##
6099 ## M4sh Initialization.  ##
6100 ## --------------------- ##
6101
6102 # Be Bourne compatible
6103 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
6104   emulate sh
6105   NULLCMD=:
6106   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
6107   # is contrary to our usage.  Disable this feature.
6108   alias -g '${1+"$@"}'='"$@"'
6109 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
6110   set -o posix
6111 fi
6112 DUALCASE=1; export DUALCASE # for MKS sh
6113
6114 # Support unset when possible.
6115 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6116   as_unset=unset
6117 else
6118   as_unset=false
6119 fi
6120
6121
6122 # Work around bugs in pre-3.0 UWIN ksh.
6123 $as_unset ENV MAIL MAILPATH
6124 PS1='$ '
6125 PS2='> '
6126 PS4='+ '
6127
6128 # NLS nuisances.
6129 for as_var in \
6130   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
6131   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
6132   LC_TELEPHONE LC_TIME
6133 do
6134   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
6135     eval $as_var=C; export $as_var
6136   else
6137     $as_unset $as_var
6138   fi
6139 done
6140
6141 # Required to use basename.
6142 if expr a : '\(a\)' >/dev/null 2>&1; then
6143   as_expr=expr
6144 else
6145   as_expr=false
6146 fi
6147
6148 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
6149   as_basename=basename
6150 else
6151   as_basename=false
6152 fi
6153
6154
6155 # Name of the executable.
6156 as_me=`$as_basename "$0" ||
6157 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
6158          X"$0" : 'X\(//\)$' \| \
6159          X"$0" : 'X\(/\)$' \| \
6160          .     : '\(.\)' 2>/dev/null ||
6161 echo X/"$0" |
6162     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
6163           /^X\/\(\/\/\)$/{ s//\1/; q; }
6164           /^X\/\(\/\).*/{ s//\1/; q; }
6165           s/.*/./; q'`
6166
6167
6168 # PATH needs CR, and LINENO needs CR and PATH.
6169 # Avoid depending upon Character Ranges.
6170 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
6171 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
6172 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
6173 as_cr_digits='0123456789'
6174 as_cr_alnum=$as_cr_Letters$as_cr_digits
6175
6176 # The user is always right.
6177 if test "${PATH_SEPARATOR+set}" != set; then
6178   echo "#! /bin/sh" >conf$$.sh
6179   echo  "exit 0"   >>conf$$.sh
6180   chmod +x conf$$.sh
6181   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6182     PATH_SEPARATOR=';'
6183   else
6184     PATH_SEPARATOR=:
6185   fi
6186   rm -f conf$$.sh
6187 fi
6188
6189
6190   as_lineno_1=$LINENO
6191   as_lineno_2=$LINENO
6192   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
6193   test "x$as_lineno_1" != "x$as_lineno_2" &&
6194   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
6195   # Find who we are.  Look in the path if we contain no path at all
6196   # relative or not.
6197   case $0 in
6198     *[\\/]* ) as_myself=$0 ;;
6199     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6200 for as_dir in $PATH
6201 do
6202   IFS=$as_save_IFS
6203   test -z "$as_dir" && as_dir=.
6204   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
6205 done
6206
6207        ;;
6208   esac
6209   # We did not find ourselves, most probably we were run as `sh COMMAND'
6210   # in which case we are not to be found in the path.
6211   if test "x$as_myself" = x; then
6212     as_myself=$0
6213   fi
6214   if test ! -f "$as_myself"; then
6215     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
6216 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
6217    { (exit 1); exit 1; }; }
6218   fi
6219   case $CONFIG_SHELL in
6220   '')
6221     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6222 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
6223 do
6224   IFS=$as_save_IFS
6225   test -z "$as_dir" && as_dir=.
6226   for as_base in sh bash ksh sh5; do
6227          case $as_dir in
6228          /*)
6229            if ("$as_dir/$as_base" -c '
6230   as_lineno_1=$LINENO
6231   as_lineno_2=$LINENO
6232   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
6233   test "x$as_lineno_1" != "x$as_lineno_2" &&
6234   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
6235              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
6236              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
6237              CONFIG_SHELL=$as_dir/$as_base
6238              export CONFIG_SHELL
6239              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
6240            fi;;
6241          esac
6242        done
6243 done
6244 ;;
6245   esac
6246
6247   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
6248   # uniformly replaced by the line number.  The first 'sed' inserts a
6249   # line-number line before each line; the second 'sed' does the real
6250   # work.  The second script uses 'N' to pair each line-number line
6251   # with the numbered line, and appends trailing '-' during
6252   # substitution so that $LINENO is not a special case at line end.
6253   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
6254   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
6255   sed '=' <$as_myself |
6256     sed '
6257       N
6258       s,$,-,
6259       : loop
6260       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
6261       t loop
6262       s,-$,,
6263       s,^['$as_cr_digits']*\n,,
6264     ' >$as_me.lineno &&
6265   chmod +x $as_me.lineno ||
6266     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
6267 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
6268    { (exit 1); exit 1; }; }
6269
6270   # Don't try to exec as it changes $[0], causing all sort of problems
6271   # (the dirname of $[0] is not the place where we might find the
6272   # original and so on.  Autoconf is especially sensible to this).
6273   . ./$as_me.lineno
6274   # Exit status is that of the last command.
6275   exit
6276 }
6277
6278
6279 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
6280   *c*,-n*) ECHO_N= ECHO_C='
6281 ' ECHO_T='      ' ;;
6282   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
6283   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
6284 esac
6285
6286 if expr a : '\(a\)' >/dev/null 2>&1; then
6287   as_expr=expr
6288 else
6289   as_expr=false
6290 fi
6291
6292 rm -f conf$$ conf$$.exe conf$$.file
6293 echo >conf$$.file
6294 if ln -s conf$$.file conf$$ 2>/dev/null; then
6295   # We could just check for DJGPP; but this test a) works b) is more generic
6296   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
6297   if test -f conf$$.exe; then
6298     # Don't use ln at all; we don't have any links
6299     as_ln_s='cp -p'
6300   else
6301     as_ln_s='ln -s'
6302   fi
6303 elif ln conf$$.file conf$$ 2>/dev/null; then
6304   as_ln_s=ln
6305 else
6306   as_ln_s='cp -p'
6307 fi
6308 rm -f conf$$ conf$$.exe conf$$.file
6309
6310 if mkdir -p . 2>/dev/null; then
6311   as_mkdir_p=:
6312 else
6313   test -d ./-p && rmdir ./-p
6314   as_mkdir_p=false
6315 fi
6316
6317 as_executable_p="test -f"
6318
6319 # Sed expression to map a string onto a valid CPP name.
6320 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
6321
6322 # Sed expression to map a string onto a valid variable name.
6323 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
6324
6325
6326 # IFS
6327 # We need space, tab and new line, in precisely that order.
6328 as_nl='
6329 '
6330 IFS="   $as_nl"
6331
6332 # CDPATH.
6333 $as_unset CDPATH
6334
6335 exec 6>&1
6336
6337 # Open the log real soon, to keep \$[0] and so on meaningful, and to
6338 # report actual input values of CONFIG_FILES etc. instead of their
6339 # values after options handling.  Logging --version etc. is OK.
6340 exec 5>>config.log
6341 {
6342   echo
6343   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
6344 ## Running $as_me. ##
6345 _ASBOX
6346 } >&5
6347 cat >&5 <<_CSEOF
6348
6349 This file was extended by l2tpns $as_me 1.0.0, which was
6350 generated by GNU Autoconf 2.58.  Invocation command line was
6351
6352   CONFIG_FILES    = $CONFIG_FILES
6353   CONFIG_HEADERS  = $CONFIG_HEADERS
6354   CONFIG_LINKS    = $CONFIG_LINKS
6355   CONFIG_COMMANDS = $CONFIG_COMMANDS
6356   $ $0 $@
6357
6358 _CSEOF
6359 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
6360 echo >&5
6361 _ACEOF
6362
6363 # Files that config.status was made for.
6364 if test -n "$ac_config_files"; then
6365   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
6366 fi
6367
6368 if test -n "$ac_config_headers"; then
6369   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
6370 fi
6371
6372 if test -n "$ac_config_links"; then
6373   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
6374 fi
6375
6376 if test -n "$ac_config_commands"; then
6377   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
6378 fi
6379
6380 cat >>$CONFIG_STATUS <<\_ACEOF
6381
6382 ac_cs_usage="\
6383 \`$as_me' instantiates files from templates according to the
6384 current configuration.
6385
6386 Usage: $0 [OPTIONS] [FILE]...
6387
6388   -h, --help       print this help, then exit
6389   -V, --version    print version number, then exit
6390   -q, --quiet      do not print progress messages
6391   -d, --debug      don't remove temporary files
6392       --recheck    update $as_me by reconfiguring in the same conditions
6393   --file=FILE[:TEMPLATE]
6394                    instantiate the configuration file FILE
6395   --header=FILE[:TEMPLATE]
6396                    instantiate the configuration header FILE
6397
6398 Configuration files:
6399 $config_files
6400
6401 Configuration headers:
6402 $config_headers
6403
6404 Report bugs to <bug-autoconf@gnu.org>."
6405 _ACEOF
6406
6407 cat >>$CONFIG_STATUS <<_ACEOF
6408 ac_cs_version="\\
6409 l2tpns config.status 1.0.0
6410 configured by $0, generated by GNU Autoconf 2.58,
6411   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
6412
6413 Copyright (C) 2003 Free Software Foundation, Inc.
6414 This config.status script is free software; the Free Software Foundation
6415 gives unlimited permission to copy, distribute and modify it."
6416 srcdir=$srcdir
6417 INSTALL="$INSTALL"
6418 _ACEOF
6419
6420 cat >>$CONFIG_STATUS <<\_ACEOF
6421 # If no file are specified by the user, then we need to provide default
6422 # value.  By we need to know if files were specified by the user.
6423 ac_need_defaults=:
6424 while test $# != 0
6425 do
6426   case $1 in
6427   --*=*)
6428     ac_option=`expr "x$1" : 'x\([^=]*\)='`
6429     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
6430     ac_shift=:
6431     ;;
6432   -*)
6433     ac_option=$1
6434     ac_optarg=$2
6435     ac_shift=shift
6436     ;;
6437   *) # This is not an option, so the user has probably given explicit
6438      # arguments.
6439      ac_option=$1
6440      ac_need_defaults=false;;
6441   esac
6442
6443   case $ac_option in
6444   # Handling of the options.
6445 _ACEOF
6446 cat >>$CONFIG_STATUS <<\_ACEOF
6447   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
6448     ac_cs_recheck=: ;;
6449   --version | --vers* | -V )
6450     echo "$ac_cs_version"; exit 0 ;;
6451   --he | --h)
6452     # Conflict between --help and --header
6453     { { echo "$as_me:$LINENO: error: ambiguous option: $1
6454 Try \`$0 --help' for more information." >&5
6455 echo "$as_me: error: ambiguous option: $1
6456 Try \`$0 --help' for more information." >&2;}
6457    { (exit 1); exit 1; }; };;
6458   --help | --hel | -h )
6459     echo "$ac_cs_usage"; exit 0 ;;
6460   --debug | --d* | -d )
6461     debug=: ;;
6462   --file | --fil | --fi | --f )
6463     $ac_shift
6464     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
6465     ac_need_defaults=false;;
6466   --header | --heade | --head | --hea )
6467     $ac_shift
6468     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
6469     ac_need_defaults=false;;
6470   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
6471   | -silent | --silent | --silen | --sile | --sil | --si | --s)
6472     ac_cs_silent=: ;;
6473
6474   # This is an error.
6475   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
6476 Try \`$0 --help' for more information." >&5
6477 echo "$as_me: error: unrecognized option: $1
6478 Try \`$0 --help' for more information." >&2;}
6479    { (exit 1); exit 1; }; } ;;
6480
6481   *) ac_config_targets="$ac_config_targets $1" ;;
6482
6483   esac
6484   shift
6485 done
6486
6487 ac_configure_extra_args=
6488
6489 if $ac_cs_silent; then
6490   exec 6>/dev/null
6491   ac_configure_extra_args="$ac_configure_extra_args --silent"
6492 fi
6493
6494 _ACEOF
6495 cat >>$CONFIG_STATUS <<_ACEOF
6496 if \$ac_cs_recheck; then
6497   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
6498   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
6499 fi
6500
6501 _ACEOF
6502
6503
6504
6505
6506
6507 cat >>$CONFIG_STATUS <<\_ACEOF
6508 for ac_config_target in $ac_config_targets
6509 do
6510   case "$ac_config_target" in
6511   # Handling of arguments.
6512   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
6513   "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
6514   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
6515 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
6516    { (exit 1); exit 1; }; };;
6517   esac
6518 done
6519
6520 # If the user did not use the arguments to specify the items to instantiate,
6521 # then the envvar interface is used.  Set only those that are not.
6522 # We use the long form for the default assignment because of an extremely
6523 # bizarre bug on SunOS 4.1.3.
6524 if $ac_need_defaults; then
6525   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
6526   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
6527 fi
6528
6529 # Have a temporary directory for convenience.  Make it in the build tree
6530 # simply because there is no reason to put it here, and in addition,
6531 # creating and moving files from /tmp can sometimes cause problems.
6532 # Create a temporary directory, and hook for its removal unless debugging.
6533 $debug ||
6534 {
6535   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
6536   trap '{ (exit 1); exit 1; }' 1 2 13 15
6537 }
6538
6539 # Create a (secure) tmp directory for tmp files.
6540
6541 {
6542   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
6543   test -n "$tmp" && test -d "$tmp"
6544 }  ||
6545 {
6546   tmp=./confstat$$-$RANDOM
6547   (umask 077 && mkdir $tmp)
6548 } ||
6549 {
6550    echo "$me: cannot create a temporary directory in ." >&2
6551    { (exit 1); exit 1; }
6552 }
6553
6554 _ACEOF
6555
6556 cat >>$CONFIG_STATUS <<_ACEOF
6557
6558 #
6559 # CONFIG_FILES section.
6560 #
6561
6562 # No need to generate the scripts if there are no CONFIG_FILES.
6563 # This happens for instance when ./config.status config.h
6564 if test -n "\$CONFIG_FILES"; then
6565   # Protect against being on the right side of a sed subst in config.status.
6566   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
6567    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
6568 s,@SHELL@,$SHELL,;t t
6569 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
6570 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
6571 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
6572 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
6573 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
6574 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
6575 s,@exec_prefix@,$exec_prefix,;t t
6576 s,@prefix@,$prefix,;t t
6577 s,@program_transform_name@,$program_transform_name,;t t
6578 s,@bindir@,$bindir,;t t
6579 s,@sbindir@,$sbindir,;t t
6580 s,@libexecdir@,$libexecdir,;t t
6581 s,@datadir@,$datadir,;t t
6582 s,@sysconfdir@,$sysconfdir,;t t
6583 s,@sharedstatedir@,$sharedstatedir,;t t
6584 s,@localstatedir@,$localstatedir,;t t
6585 s,@libdir@,$libdir,;t t
6586 s,@includedir@,$includedir,;t t
6587 s,@oldincludedir@,$oldincludedir,;t t
6588 s,@infodir@,$infodir,;t t
6589 s,@mandir@,$mandir,;t t
6590 s,@build_alias@,$build_alias,;t t
6591 s,@host_alias@,$host_alias,;t t
6592 s,@target_alias@,$target_alias,;t t
6593 s,@DEFS@,$DEFS,;t t
6594 s,@ECHO_C@,$ECHO_C,;t t
6595 s,@ECHO_N@,$ECHO_N,;t t
6596 s,@ECHO_T@,$ECHO_T,;t t
6597 s,@LIBS@,$LIBS,;t t
6598 s,@CC@,$CC,;t t
6599 s,@CFLAGS@,$CFLAGS,;t t
6600 s,@LDFLAGS@,$LDFLAGS,;t t
6601 s,@CPPFLAGS@,$CPPFLAGS,;t t
6602 s,@ac_ct_CC@,$ac_ct_CC,;t t
6603 s,@EXEEXT@,$EXEEXT,;t t
6604 s,@OBJEXT@,$OBJEXT,;t t
6605 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
6606 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
6607 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
6608 s,@CPP@,$CPP,;t t
6609 s,@EGREP@,$EGREP,;t t
6610 s,@LIBOBJS@,$LIBOBJS,;t t
6611 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
6612 CEOF
6613
6614 _ACEOF
6615
6616   cat >>$CONFIG_STATUS <<\_ACEOF
6617   # Split the substitutions into bite-sized pieces for seds with
6618   # small command number limits, like on Digital OSF/1 and HP-UX.
6619   ac_max_sed_lines=48
6620   ac_sed_frag=1 # Number of current file.
6621   ac_beg=1 # First line for current file.
6622   ac_end=$ac_max_sed_lines # Line after last line for current file.
6623   ac_more_lines=:
6624   ac_sed_cmds=
6625   while $ac_more_lines; do
6626     if test $ac_beg -gt 1; then
6627       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
6628     else
6629       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
6630     fi
6631     if test ! -s $tmp/subs.frag; then
6632       ac_more_lines=false
6633     else
6634       # The purpose of the label and of the branching condition is to
6635       # speed up the sed processing (if there are no `@' at all, there
6636       # is no need to browse any of the substitutions).
6637       # These are the two extra sed commands mentioned above.
6638       (echo ':t
6639   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
6640       if test -z "$ac_sed_cmds"; then
6641         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
6642       else
6643         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
6644       fi
6645       ac_sed_frag=`expr $ac_sed_frag + 1`
6646       ac_beg=$ac_end
6647       ac_end=`expr $ac_end + $ac_max_sed_lines`
6648     fi
6649   done
6650   if test -z "$ac_sed_cmds"; then
6651     ac_sed_cmds=cat
6652   fi
6653 fi # test -n "$CONFIG_FILES"
6654
6655 _ACEOF
6656 cat >>$CONFIG_STATUS <<\_ACEOF
6657 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
6658   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6659   case $ac_file in
6660   - | *:- | *:-:* ) # input from stdin
6661         cat >$tmp/stdin
6662         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
6663         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
6664   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
6665         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
6666   * )   ac_file_in=$ac_file.in ;;
6667   esac
6668
6669   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
6670   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
6671 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6672          X"$ac_file" : 'X\(//\)[^/]' \| \
6673          X"$ac_file" : 'X\(//\)$' \| \
6674          X"$ac_file" : 'X\(/\)' \| \
6675          .     : '\(.\)' 2>/dev/null ||
6676 echo X"$ac_file" |
6677     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6678           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6679           /^X\(\/\/\)$/{ s//\1/; q; }
6680           /^X\(\/\).*/{ s//\1/; q; }
6681           s/.*/./; q'`
6682   { if $as_mkdir_p; then
6683     mkdir -p "$ac_dir"
6684   else
6685     as_dir="$ac_dir"
6686     as_dirs=
6687     while test ! -d "$as_dir"; do
6688       as_dirs="$as_dir $as_dirs"
6689       as_dir=`(dirname "$as_dir") 2>/dev/null ||
6690 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6691          X"$as_dir" : 'X\(//\)[^/]' \| \
6692          X"$as_dir" : 'X\(//\)$' \| \
6693          X"$as_dir" : 'X\(/\)' \| \
6694          .     : '\(.\)' 2>/dev/null ||
6695 echo X"$as_dir" |
6696     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6697           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6698           /^X\(\/\/\)$/{ s//\1/; q; }
6699           /^X\(\/\).*/{ s//\1/; q; }
6700           s/.*/./; q'`
6701     done
6702     test ! -n "$as_dirs" || mkdir $as_dirs
6703   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
6704 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
6705    { (exit 1); exit 1; }; }; }
6706
6707   ac_builddir=.
6708
6709 if test "$ac_dir" != .; then
6710   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
6711   # A "../" for each directory in $ac_dir_suffix.
6712   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
6713 else
6714   ac_dir_suffix= ac_top_builddir=
6715 fi
6716
6717 case $srcdir in
6718   .)  # No --srcdir option.  We are building in place.
6719     ac_srcdir=.
6720     if test -z "$ac_top_builddir"; then
6721        ac_top_srcdir=.
6722     else
6723        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
6724     fi ;;
6725   [\\/]* | ?:[\\/]* )  # Absolute path.
6726     ac_srcdir=$srcdir$ac_dir_suffix;
6727     ac_top_srcdir=$srcdir ;;
6728   *) # Relative path.
6729     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
6730     ac_top_srcdir=$ac_top_builddir$srcdir ;;
6731 esac
6732
6733 # Do not use `cd foo && pwd` to compute absolute paths, because
6734 # the directories may not exist.
6735 case `pwd` in
6736 .) ac_abs_builddir="$ac_dir";;
6737 *)
6738   case "$ac_dir" in
6739   .) ac_abs_builddir=`pwd`;;
6740   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
6741   *) ac_abs_builddir=`pwd`/"$ac_dir";;
6742   esac;;
6743 esac
6744 case $ac_abs_builddir in
6745 .) ac_abs_top_builddir=${ac_top_builddir}.;;
6746 *)
6747   case ${ac_top_builddir}. in
6748   .) ac_abs_top_builddir=$ac_abs_builddir;;
6749   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
6750   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
6751   esac;;
6752 esac
6753 case $ac_abs_builddir in
6754 .) ac_abs_srcdir=$ac_srcdir;;
6755 *)
6756   case $ac_srcdir in
6757   .) ac_abs_srcdir=$ac_abs_builddir;;
6758   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
6759   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
6760   esac;;
6761 esac
6762 case $ac_abs_builddir in
6763 .) ac_abs_top_srcdir=$ac_top_srcdir;;
6764 *)
6765   case $ac_top_srcdir in
6766   .) ac_abs_top_srcdir=$ac_abs_builddir;;
6767   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
6768   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
6769   esac;;
6770 esac
6771
6772
6773   case $INSTALL in
6774   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
6775   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
6776   esac
6777
6778   if test x"$ac_file" != x-; then
6779     { echo "$as_me:$LINENO: creating $ac_file" >&5
6780 echo "$as_me: creating $ac_file" >&6;}
6781     rm -f "$ac_file"
6782   fi
6783   # Let's still pretend it is `configure' which instantiates (i.e., don't
6784   # use $as_me), people would be surprised to read:
6785   #    /* config.h.  Generated by config.status.  */
6786   if test x"$ac_file" = x-; then
6787     configure_input=
6788   else
6789     configure_input="$ac_file.  "
6790   fi
6791   configure_input=$configure_input"Generated from `echo $ac_file_in |
6792                                      sed 's,.*/,,'` by configure."
6793
6794   # First look for the input files in the build tree, otherwise in the
6795   # src tree.
6796   ac_file_inputs=`IFS=:
6797     for f in $ac_file_in; do
6798       case $f in
6799       -) echo $tmp/stdin ;;
6800       [\\/$]*)
6801          # Absolute (can't be DOS-style, as IFS=:)
6802          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
6803 echo "$as_me: error: cannot find input file: $f" >&2;}
6804    { (exit 1); exit 1; }; }
6805          echo "$f";;
6806       *) # Relative
6807          if test -f "$f"; then
6808            # Build tree
6809            echo "$f"
6810          elif test -f "$srcdir/$f"; then
6811            # Source tree
6812            echo "$srcdir/$f"
6813          else
6814            # /dev/null tree
6815            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
6816 echo "$as_me: error: cannot find input file: $f" >&2;}
6817    { (exit 1); exit 1; }; }
6818          fi;;
6819       esac
6820     done` || { (exit 1); exit 1; }
6821 _ACEOF
6822 cat >>$CONFIG_STATUS <<_ACEOF
6823   sed "$ac_vpsub
6824 $extrasub
6825 _ACEOF
6826 cat >>$CONFIG_STATUS <<\_ACEOF
6827 :t
6828 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
6829 s,@configure_input@,$configure_input,;t t
6830 s,@srcdir@,$ac_srcdir,;t t
6831 s,@abs_srcdir@,$ac_abs_srcdir,;t t
6832 s,@top_srcdir@,$ac_top_srcdir,;t t
6833 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
6834 s,@builddir@,$ac_builddir,;t t
6835 s,@abs_builddir@,$ac_abs_builddir,;t t
6836 s,@top_builddir@,$ac_top_builddir,;t t
6837 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
6838 s,@INSTALL@,$ac_INSTALL,;t t
6839 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
6840   rm -f $tmp/stdin
6841   if test x"$ac_file" != x-; then
6842     mv $tmp/out $ac_file
6843   else
6844     cat $tmp/out
6845     rm -f $tmp/out
6846   fi
6847
6848 done
6849 _ACEOF
6850 cat >>$CONFIG_STATUS <<\_ACEOF
6851
6852 #
6853 # CONFIG_HEADER section.
6854 #
6855
6856 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
6857 # NAME is the cpp macro being defined and VALUE is the value it is being given.
6858 #
6859 # ac_d sets the value in "#define NAME VALUE" lines.
6860 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
6861 ac_dB='[         ].*$,\1#\2'
6862 ac_dC=' '
6863 ac_dD=',;t'
6864 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
6865 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
6866 ac_uB='$,\1#\2define\3'
6867 ac_uC=' '
6868 ac_uD=',;t'
6869
6870 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
6871   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6872   case $ac_file in
6873   - | *:- | *:-:* ) # input from stdin
6874         cat >$tmp/stdin
6875         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
6876         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
6877   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
6878         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
6879   * )   ac_file_in=$ac_file.in ;;
6880   esac
6881
6882   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
6883 echo "$as_me: creating $ac_file" >&6;}
6884
6885   # First look for the input files in the build tree, otherwise in the
6886   # src tree.
6887   ac_file_inputs=`IFS=:
6888     for f in $ac_file_in; do
6889       case $f in
6890       -) echo $tmp/stdin ;;
6891       [\\/$]*)
6892          # Absolute (can't be DOS-style, as IFS=:)
6893          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
6894 echo "$as_me: error: cannot find input file: $f" >&2;}
6895    { (exit 1); exit 1; }; }
6896          # Do quote $f, to prevent DOS paths from being IFS'd.
6897          echo "$f";;
6898       *) # Relative
6899          if test -f "$f"; then
6900            # Build tree
6901            echo "$f"
6902          elif test -f "$srcdir/$f"; then
6903            # Source tree
6904            echo "$srcdir/$f"
6905          else
6906            # /dev/null tree
6907            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
6908 echo "$as_me: error: cannot find input file: $f" >&2;}
6909    { (exit 1); exit 1; }; }
6910          fi;;
6911       esac
6912     done` || { (exit 1); exit 1; }
6913   # Remove the trailing spaces.
6914   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
6915
6916 _ACEOF
6917
6918 # Transform confdefs.h into two sed scripts, `conftest.defines' and
6919 # `conftest.undefs', that substitutes the proper values into
6920 # config.h.in to produce config.h.  The first handles `#define'
6921 # templates, and the second `#undef' templates.
6922 # And first: Protect against being on the right side of a sed subst in
6923 # config.status.  Protect against being in an unquoted here document
6924 # in config.status.
6925 rm -f conftest.defines conftest.undefs
6926 # Using a here document instead of a string reduces the quoting nightmare.
6927 # Putting comments in sed scripts is not portable.
6928 #
6929 # `end' is used to avoid that the second main sed command (meant for
6930 # 0-ary CPP macros) applies to n-ary macro definitions.
6931 # See the Autoconf documentation for `clear'.
6932 cat >confdef2sed.sed <<\_ACEOF
6933 s/[\\&,]/\\&/g
6934 s,[\\$`],\\&,g
6935 t clear
6936 : clear
6937 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
6938 t end
6939 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
6940 : end
6941 _ACEOF
6942 # If some macros were called several times there might be several times
6943 # the same #defines, which is useless.  Nevertheless, we may not want to
6944 # sort them, since we want the *last* AC-DEFINE to be honored.
6945 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
6946 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
6947 rm -f confdef2sed.sed
6948
6949 # This sed command replaces #undef with comments.  This is necessary, for
6950 # example, in the case of _POSIX_SOURCE, which is predefined and required
6951 # on some systems where configure will not decide to define it.
6952 cat >>conftest.undefs <<\_ACEOF
6953 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
6954 _ACEOF
6955
6956 # Break up conftest.defines because some shells have a limit on the size
6957 # of here documents, and old seds have small limits too (100 cmds).
6958 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
6959 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
6960 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
6961 echo '  :' >>$CONFIG_STATUS
6962 rm -f conftest.tail
6963 while grep . conftest.defines >/dev/null
6964 do
6965   # Write a limited-size here document to $tmp/defines.sed.
6966   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
6967   # Speed up: don't consider the non `#define' lines.
6968   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
6969   # Work around the forget-to-reset-the-flag bug.
6970   echo 't clr' >>$CONFIG_STATUS
6971   echo ': clr' >>$CONFIG_STATUS
6972   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
6973   echo 'CEOF
6974   sed -f $tmp/defines.sed $tmp/in >$tmp/out
6975   rm -f $tmp/in
6976   mv $tmp/out $tmp/in
6977 ' >>$CONFIG_STATUS
6978   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
6979   rm -f conftest.defines
6980   mv conftest.tail conftest.defines
6981 done
6982 rm -f conftest.defines
6983 echo '  fi # grep' >>$CONFIG_STATUS
6984 echo >>$CONFIG_STATUS
6985
6986 # Break up conftest.undefs because some shells have a limit on the size
6987 # of here documents, and old seds have small limits too (100 cmds).
6988 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
6989 rm -f conftest.tail
6990 while grep . conftest.undefs >/dev/null
6991 do
6992   # Write a limited-size here document to $tmp/undefs.sed.
6993   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
6994   # Speed up: don't consider the non `#undef'
6995   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
6996   # Work around the forget-to-reset-the-flag bug.
6997   echo 't clr' >>$CONFIG_STATUS
6998   echo ': clr' >>$CONFIG_STATUS
6999   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
7000   echo 'CEOF
7001   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
7002   rm -f $tmp/in
7003   mv $tmp/out $tmp/in
7004 ' >>$CONFIG_STATUS
7005   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
7006   rm -f conftest.undefs
7007   mv conftest.tail conftest.undefs
7008 done
7009 rm -f conftest.undefs
7010
7011 cat >>$CONFIG_STATUS <<\_ACEOF
7012   # Let's still pretend it is `configure' which instantiates (i.e., don't
7013   # use $as_me), people would be surprised to read:
7014   #    /* config.h.  Generated by config.status.  */
7015   if test x"$ac_file" = x-; then
7016     echo "/* Generated by configure.  */" >$tmp/config.h
7017   else
7018     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
7019   fi
7020   cat $tmp/in >>$tmp/config.h
7021   rm -f $tmp/in
7022   if test x"$ac_file" != x-; then
7023     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
7024       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
7025 echo "$as_me: $ac_file is unchanged" >&6;}
7026     else
7027       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
7028 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7029          X"$ac_file" : 'X\(//\)[^/]' \| \
7030          X"$ac_file" : 'X\(//\)$' \| \
7031          X"$ac_file" : 'X\(/\)' \| \
7032          .     : '\(.\)' 2>/dev/null ||
7033 echo X"$ac_file" |
7034     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7035           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7036           /^X\(\/\/\)$/{ s//\1/; q; }
7037           /^X\(\/\).*/{ s//\1/; q; }
7038           s/.*/./; q'`
7039       { if $as_mkdir_p; then
7040     mkdir -p "$ac_dir"
7041   else
7042     as_dir="$ac_dir"
7043     as_dirs=
7044     while test ! -d "$as_dir"; do
7045       as_dirs="$as_dir $as_dirs"
7046       as_dir=`(dirname "$as_dir") 2>/dev/null ||
7047 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7048          X"$as_dir" : 'X\(//\)[^/]' \| \
7049          X"$as_dir" : 'X\(//\)$' \| \
7050          X"$as_dir" : 'X\(/\)' \| \
7051          .     : '\(.\)' 2>/dev/null ||
7052 echo X"$as_dir" |
7053     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7054           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7055           /^X\(\/\/\)$/{ s//\1/; q; }
7056           /^X\(\/\).*/{ s//\1/; q; }
7057           s/.*/./; q'`
7058     done
7059     test ! -n "$as_dirs" || mkdir $as_dirs
7060   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
7061 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
7062    { (exit 1); exit 1; }; }; }
7063
7064       rm -f $ac_file
7065       mv $tmp/config.h $ac_file
7066     fi
7067   else
7068     cat $tmp/config.h
7069     rm -f $tmp/config.h
7070   fi
7071 done
7072 _ACEOF
7073
7074 cat >>$CONFIG_STATUS <<\_ACEOF
7075
7076 { (exit 0); exit 0; }
7077 _ACEOF
7078 chmod +x $CONFIG_STATUS
7079 ac_clean_files=$ac_clean_files_save
7080
7081
7082 # configure is writing to config.log, and then calls config.status.
7083 # config.status does its own redirection, appending to config.log.
7084 # Unfortunately, on DOS this fails, as config.log is still kept open
7085 # by configure, so config.status won't be able to write to it; its
7086 # output is simply discarded.  So we exec the FD to /dev/null,
7087 # effectively closing config.log, so it can be properly (re)opened and
7088 # appended to by config.status.  When coming back to configure, we
7089 # need to make the FD available again.
7090 if test "$no_create" != yes; then
7091   ac_cs_success=:
7092   ac_config_status_args=
7093   test "$silent" = yes &&
7094     ac_config_status_args="$ac_config_status_args --quiet"
7095   exec 5>/dev/null
7096   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
7097   exec 5>>config.log
7098   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
7099   # would make configure fail if this is the last instruction.
7100   $ac_cs_success || { (exit 1); exit 1; }
7101 fi
7102