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