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