provide support for playhead-to-next/previous-region-boundary actions, and bindings...
[ardour.git] / libs / libsndfile / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59 for libsndfile ardour-special.
4 #
5 # Report bugs to <ardour@ardour.org>.
6 #
7 # Copyright (C) 2003 Free Software Foundation, Inc.
8 # This configure script is free software; the Free Software Foundation
9 # gives unlimited permission to copy, distribute and modify it.
10 ## --------------------- ##
11 ## M4sh Initialization.  ##
12 ## --------------------- ##
13
14 # Be Bourne compatible
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16   emulate sh
17   NULLCMD=:
18   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19   # is contrary to our usage.  Disable this feature.
20   alias -g '${1+"$@"}'='"$@"'
21 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22   set -o posix
23 fi
24 DUALCASE=1; export DUALCASE # for MKS sh
25
26 # Support unset when possible.
27 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
28   as_unset=unset
29 else
30   as_unset=false
31 fi
32
33
34 # Work around bugs in pre-3.0 UWIN ksh.
35 $as_unset ENV MAIL MAILPATH
36 PS1='$ '
37 PS2='> '
38 PS4='+ '
39
40 # NLS nuisances.
41 for as_var in \
42   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
43   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44   LC_TELEPHONE LC_TIME
45 do
46   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
47     eval $as_var=C; export $as_var
48   else
49     $as_unset $as_var
50   fi
51 done
52
53 # Required to use basename.
54 if expr a : '\(a\)' >/dev/null 2>&1; then
55   as_expr=expr
56 else
57   as_expr=false
58 fi
59
60 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
61   as_basename=basename
62 else
63   as_basename=false
64 fi
65
66
67 # Name of the executable.
68 as_me=`$as_basename "$0" ||
69 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
70          X"$0" : 'X\(//\)$' \| \
71          X"$0" : 'X\(/\)$' \| \
72          .     : '\(.\)' 2>/dev/null ||
73 echo X/"$0" |
74     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
75           /^X\/\(\/\/\)$/{ s//\1/; q; }
76           /^X\/\(\/\).*/{ s//\1/; q; }
77           s/.*/./; q'`
78
79
80 # PATH needs CR, and LINENO needs CR and PATH.
81 # Avoid depending upon Character Ranges.
82 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
83 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
84 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
85 as_cr_digits='0123456789'
86 as_cr_alnum=$as_cr_Letters$as_cr_digits
87
88 # The user is always right.
89 if test "${PATH_SEPARATOR+set}" != set; then
90   echo "#! /bin/sh" >conf$$.sh
91   echo  "exit 0"   >>conf$$.sh
92   chmod +x conf$$.sh
93   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
94     PATH_SEPARATOR=';'
95   else
96     PATH_SEPARATOR=:
97   fi
98   rm -f conf$$.sh
99 fi
100
101
102   as_lineno_1=$LINENO
103   as_lineno_2=$LINENO
104   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
105   test "x$as_lineno_1" != "x$as_lineno_2" &&
106   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
107   # Find who we are.  Look in the path if we contain no path at all
108   # relative or not.
109   case $0 in
110     *[\\/]* ) as_myself=$0 ;;
111     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
112 for as_dir in $PATH
113 do
114   IFS=$as_save_IFS
115   test -z "$as_dir" && as_dir=.
116   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
117 done
118
119        ;;
120   esac
121   # We did not find ourselves, most probably we were run as `sh COMMAND'
122   # in which case we are not to be found in the path.
123   if test "x$as_myself" = x; then
124     as_myself=$0
125   fi
126   if test ! -f "$as_myself"; then
127     { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
128    { (exit 1); exit 1; }; }
129   fi
130   case $CONFIG_SHELL in
131   '')
132     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
133 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
134 do
135   IFS=$as_save_IFS
136   test -z "$as_dir" && as_dir=.
137   for as_base in sh bash ksh sh5; do
138          case $as_dir in
139          /*)
140            if ("$as_dir/$as_base" -c '
141   as_lineno_1=$LINENO
142   as_lineno_2=$LINENO
143   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
144   test "x$as_lineno_1" != "x$as_lineno_2" &&
145   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
146              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
147              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
148              CONFIG_SHELL=$as_dir/$as_base
149              export CONFIG_SHELL
150              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
151            fi;;
152          esac
153        done
154 done
155 ;;
156   esac
157
158   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
159   # uniformly replaced by the line number.  The first 'sed' inserts a
160   # line-number line before each line; the second 'sed' does the real
161   # work.  The second script uses 'N' to pair each line-number line
162   # with the numbered line, and appends trailing '-' during
163   # substitution so that $LINENO is not a special case at line end.
164   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
165   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
166   sed '=' <$as_myself |
167     sed '
168       N
169       s,$,-,
170       : loop
171       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172       t loop
173       s,-$,,
174       s,^['$as_cr_digits']*\n,,
175     ' >$as_me.lineno &&
176   chmod +x $as_me.lineno ||
177     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
178    { (exit 1); exit 1; }; }
179
180   # Don't try to exec as it changes $[0], causing all sort of problems
181   # (the dirname of $[0] is not the place where we might find the
182   # original and so on.  Autoconf is especially sensible to this).
183   . ./$as_me.lineno
184   # Exit status is that of the last command.
185   exit
186 }
187
188
189 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
190   *c*,-n*) ECHO_N= ECHO_C='
191 ' ECHO_T='      ' ;;
192   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
193   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
194 esac
195
196 if expr a : '\(a\)' >/dev/null 2>&1; then
197   as_expr=expr
198 else
199   as_expr=false
200 fi
201
202 rm -f conf$$ conf$$.exe conf$$.file
203 echo >conf$$.file
204 if ln -s conf$$.file conf$$ 2>/dev/null; then
205   # We could just check for DJGPP; but this test a) works b) is more generic
206   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
207   if test -f conf$$.exe; then
208     # Don't use ln at all; we don't have any links
209     as_ln_s='cp -p'
210   else
211     as_ln_s='ln -s'
212   fi
213 elif ln conf$$.file conf$$ 2>/dev/null; then
214   as_ln_s=ln
215 else
216   as_ln_s='cp -p'
217 fi
218 rm -f conf$$ conf$$.exe conf$$.file
219
220 if mkdir -p . 2>/dev/null; then
221   as_mkdir_p=:
222 else
223   test -d ./-p && rmdir ./-p
224   as_mkdir_p=false
225 fi
226
227 as_executable_p="test -f"
228
229 # Sed expression to map a string onto a valid CPP name.
230 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
231
232 # Sed expression to map a string onto a valid variable name.
233 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
234
235
236 # IFS
237 # We need space, tab and new line, in precisely that order.
238 as_nl='
239 '
240 IFS="   $as_nl"
241
242 # CDPATH.
243 $as_unset CDPATH
244
245
246 # Name of the host.
247 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
248 # so uname gets run too.
249 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
250
251 exec 6>&1
252
253 #
254 # Initializations.
255 #
256 ac_default_prefix=/usr/local
257 ac_config_libobj_dir=.
258 cross_compiling=no
259 subdirs=
260 MFLAGS=
261 MAKEFLAGS=
262 SHELL=${CONFIG_SHELL-/bin/sh}
263
264 # Maximum number of lines to put in a shell here document.
265 # This variable seems obsolete.  It should probably be removed, and
266 # only ac_max_sed_lines should be used.
267 : ${ac_max_here_lines=38}
268
269 # Identity of this package.
270 PACKAGE_NAME='libsndfile'
271 PACKAGE_TARNAME='libsndfile'
272 PACKAGE_VERSION='ardour-special'
273 PACKAGE_STRING='libsndfile ardour-special'
274 PACKAGE_BUGREPORT='ardour@ardour.org'
275
276 ac_unique_file="src/sndfile.c"
277 # Factoring default headers for most tests.
278 ac_includes_default="\
279 #include <stdio.h>
280 #if HAVE_SYS_TYPES_H
281 # include <sys/types.h>
282 #endif
283 #if HAVE_SYS_STAT_H
284 # include <sys/stat.h>
285 #endif
286 #if STDC_HEADERS
287 # include <stdlib.h>
288 # include <stddef.h>
289 #else
290 # if HAVE_STDLIB_H
291 #  include <stdlib.h>
292 # endif
293 #endif
294 #if HAVE_STRING_H
295 # if !STDC_HEADERS && HAVE_MEMORY_H
296 #  include <memory.h>
297 # endif
298 # include <string.h>
299 #endif
300 #if HAVE_STRINGS_H
301 # include <strings.h>
302 #endif
303 #if HAVE_INTTYPES_H
304 # include <inttypes.h>
305 #else
306 # if HAVE_STDINT_H
307 #  include <stdint.h>
308 # endif
309 #endif
310 #if HAVE_UNISTD_H
311 # include <unistd.h>
312 #endif"
313
314 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT autogen INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA LN_S CPP EGREP GETCONF ac_ct_GETCONF TYPEOF_SF_COUNT_T SIZEOF_SF_COUNT_T SF_COUNT_MAX PKG_CONFIG SQLITE3_CFLAGS SQLITE3_LIBS htmldocdir HTML_BGCOLOUR HTML_FGCOLOUR SHLIB_VERSION_ARG SHARED_VERSION_INFO OS_SPECIFIC_CFLAGS OS_SPECIFIC_LINKS ALSA_LIBS FLAC_LIBS ENABLE_EXPERIMENTAL_CODE COMPILER_IS_GCC GCC_MAJOR_VERSION LIBTOOL_DEPS LIBOBJS LTLIBOBJS'
315 ac_subst_files=''
316
317 # Initialize some variables set by options.
318 ac_init_help=
319 ac_init_version=false
320 # The variables have the same names as the options, with
321 # dashes changed to underlines.
322 cache_file=/dev/null
323 exec_prefix=NONE
324 no_create=
325 no_recursion=
326 prefix=NONE
327 program_prefix=NONE
328 program_suffix=NONE
329 program_transform_name=s,x,x,
330 silent=
331 site=
332 srcdir=
333 verbose=
334 x_includes=NONE
335 x_libraries=NONE
336
337 # Installation directory options.
338 # These are left unexpanded so users can "make install exec_prefix=/foo"
339 # and all the variables that are supposed to be based on exec_prefix
340 # by default will actually change.
341 # Use braces instead of parens because sh, perl, etc. also accept them.
342 bindir='${exec_prefix}/bin'
343 sbindir='${exec_prefix}/sbin'
344 libexecdir='${exec_prefix}/libexec'
345 datadir='${prefix}/share'
346 sysconfdir='${prefix}/etc'
347 sharedstatedir='${prefix}/com'
348 localstatedir='${prefix}/var'
349 libdir='${exec_prefix}/lib'
350 includedir='${prefix}/include'
351 oldincludedir='/usr/include'
352 infodir='${prefix}/info'
353 mandir='${prefix}/man'
354
355 ac_prev=
356 for ac_option
357 do
358   # If the previous option needs an argument, assign it.
359   if test -n "$ac_prev"; then
360     eval "$ac_prev=\$ac_option"
361     ac_prev=
362     continue
363   fi
364
365   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
366
367   # Accept the important Cygnus configure options, so we can diagnose typos.
368
369   case $ac_option in
370
371   -bindir | --bindir | --bindi | --bind | --bin | --bi)
372     ac_prev=bindir ;;
373   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
374     bindir=$ac_optarg ;;
375
376   -build | --build | --buil | --bui | --bu)
377     ac_prev=build_alias ;;
378   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
379     build_alias=$ac_optarg ;;
380
381   -cache-file | --cache-file | --cache-fil | --cache-fi \
382   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
383     ac_prev=cache_file ;;
384   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
385   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
386     cache_file=$ac_optarg ;;
387
388   --config-cache | -C)
389     cache_file=config.cache ;;
390
391   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
392     ac_prev=datadir ;;
393   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
394   | --da=*)
395     datadir=$ac_optarg ;;
396
397   -disable-* | --disable-*)
398     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
399     # Reject names that are not valid shell variable names.
400     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
401       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
402    { (exit 1); exit 1; }; }
403     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
404     eval "enable_$ac_feature=no" ;;
405
406   -enable-* | --enable-*)
407     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
408     # Reject names that are not valid shell variable names.
409     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
410       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
411    { (exit 1); exit 1; }; }
412     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
413     case $ac_option in
414       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
415       *) ac_optarg=yes ;;
416     esac
417     eval "enable_$ac_feature='$ac_optarg'" ;;
418
419   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
420   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
421   | --exec | --exe | --ex)
422     ac_prev=exec_prefix ;;
423   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
424   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
425   | --exec=* | --exe=* | --ex=*)
426     exec_prefix=$ac_optarg ;;
427
428   -gas | --gas | --ga | --g)
429     # Obsolete; use --with-gas.
430     with_gas=yes ;;
431
432   -help | --help | --hel | --he | -h)
433     ac_init_help=long ;;
434   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
435     ac_init_help=recursive ;;
436   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
437     ac_init_help=short ;;
438
439   -host | --host | --hos | --ho)
440     ac_prev=host_alias ;;
441   -host=* | --host=* | --hos=* | --ho=*)
442     host_alias=$ac_optarg ;;
443
444   -includedir | --includedir | --includedi | --included | --include \
445   | --includ | --inclu | --incl | --inc)
446     ac_prev=includedir ;;
447   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
448   | --includ=* | --inclu=* | --incl=* | --inc=*)
449     includedir=$ac_optarg ;;
450
451   -infodir | --infodir | --infodi | --infod | --info | --inf)
452     ac_prev=infodir ;;
453   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
454     infodir=$ac_optarg ;;
455
456   -libdir | --libdir | --libdi | --libd)
457     ac_prev=libdir ;;
458   -libdir=* | --libdir=* | --libdi=* | --libd=*)
459     libdir=$ac_optarg ;;
460
461   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
462   | --libexe | --libex | --libe)
463     ac_prev=libexecdir ;;
464   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
465   | --libexe=* | --libex=* | --libe=*)
466     libexecdir=$ac_optarg ;;
467
468   -localstatedir | --localstatedir | --localstatedi | --localstated \
469   | --localstate | --localstat | --localsta | --localst \
470   | --locals | --local | --loca | --loc | --lo)
471     ac_prev=localstatedir ;;
472   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
473   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
474   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
475     localstatedir=$ac_optarg ;;
476
477   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
478     ac_prev=mandir ;;
479   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
480     mandir=$ac_optarg ;;
481
482   -nfp | --nfp | --nf)
483     # Obsolete; use --without-fp.
484     with_fp=no ;;
485
486   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
487   | --no-cr | --no-c | -n)
488     no_create=yes ;;
489
490   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
491   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
492     no_recursion=yes ;;
493
494   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
495   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
496   | --oldin | --oldi | --old | --ol | --o)
497     ac_prev=oldincludedir ;;
498   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
499   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
500   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
501     oldincludedir=$ac_optarg ;;
502
503   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
504     ac_prev=prefix ;;
505   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
506     prefix=$ac_optarg ;;
507
508   -program-prefix | --program-prefix | --program-prefi | --program-pref \
509   | --program-pre | --program-pr | --program-p)
510     ac_prev=program_prefix ;;
511   -program-prefix=* | --program-prefix=* | --program-prefi=* \
512   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
513     program_prefix=$ac_optarg ;;
514
515   -program-suffix | --program-suffix | --program-suffi | --program-suff \
516   | --program-suf | --program-su | --program-s)
517     ac_prev=program_suffix ;;
518   -program-suffix=* | --program-suffix=* | --program-suffi=* \
519   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
520     program_suffix=$ac_optarg ;;
521
522   -program-transform-name | --program-transform-name \
523   | --program-transform-nam | --program-transform-na \
524   | --program-transform-n | --program-transform- \
525   | --program-transform | --program-transfor \
526   | --program-transfo | --program-transf \
527   | --program-trans | --program-tran \
528   | --progr-tra | --program-tr | --program-t)
529     ac_prev=program_transform_name ;;
530   -program-transform-name=* | --program-transform-name=* \
531   | --program-transform-nam=* | --program-transform-na=* \
532   | --program-transform-n=* | --program-transform-=* \
533   | --program-transform=* | --program-transfor=* \
534   | --program-transfo=* | --program-transf=* \
535   | --program-trans=* | --program-tran=* \
536   | --progr-tra=* | --program-tr=* | --program-t=*)
537     program_transform_name=$ac_optarg ;;
538
539   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
540   | -silent | --silent | --silen | --sile | --sil)
541     silent=yes ;;
542
543   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
544     ac_prev=sbindir ;;
545   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
546   | --sbi=* | --sb=*)
547     sbindir=$ac_optarg ;;
548
549   -sharedstatedir | --sharedstatedir | --sharedstatedi \
550   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
551   | --sharedst | --shareds | --shared | --share | --shar \
552   | --sha | --sh)
553     ac_prev=sharedstatedir ;;
554   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
555   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
556   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
557   | --sha=* | --sh=*)
558     sharedstatedir=$ac_optarg ;;
559
560   -site | --site | --sit)
561     ac_prev=site ;;
562   -site=* | --site=* | --sit=*)
563     site=$ac_optarg ;;
564
565   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
566     ac_prev=srcdir ;;
567   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
568     srcdir=$ac_optarg ;;
569
570   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
571   | --syscon | --sysco | --sysc | --sys | --sy)
572     ac_prev=sysconfdir ;;
573   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
574   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
575     sysconfdir=$ac_optarg ;;
576
577   -target | --target | --targe | --targ | --tar | --ta | --t)
578     ac_prev=target_alias ;;
579   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
580     target_alias=$ac_optarg ;;
581
582   -v | -verbose | --verbose | --verbos | --verbo | --verb)
583     verbose=yes ;;
584
585   -version | --version | --versio | --versi | --vers | -V)
586     ac_init_version=: ;;
587
588   -with-* | --with-*)
589     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
590     # Reject names that are not valid shell variable names.
591     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
592       { echo "$as_me: error: invalid package name: $ac_package" >&2
593    { (exit 1); exit 1; }; }
594     ac_package=`echo $ac_package| sed 's/-/_/g'`
595     case $ac_option in
596       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
597       *) ac_optarg=yes ;;
598     esac
599     eval "with_$ac_package='$ac_optarg'" ;;
600
601   -without-* | --without-*)
602     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
603     # Reject names that are not valid shell variable names.
604     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
605       { echo "$as_me: error: invalid package name: $ac_package" >&2
606    { (exit 1); exit 1; }; }
607     ac_package=`echo $ac_package | sed 's/-/_/g'`
608     eval "with_$ac_package=no" ;;
609
610   --x)
611     # Obsolete; use --with-x.
612     with_x=yes ;;
613
614   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
615   | --x-incl | --x-inc | --x-in | --x-i)
616     ac_prev=x_includes ;;
617   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
618   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
619     x_includes=$ac_optarg ;;
620
621   -x-libraries | --x-libraries | --x-librarie | --x-librari \
622   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
623     ac_prev=x_libraries ;;
624   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
625   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
626     x_libraries=$ac_optarg ;;
627
628   -*) { echo "$as_me: error: unrecognized option: $ac_option
629 Try \`$0 --help' for more information." >&2
630    { (exit 1); exit 1; }; }
631     ;;
632
633   *=*)
634     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
635     # Reject names that are not valid shell variable names.
636     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
637       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
638    { (exit 1); exit 1; }; }
639     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
640     eval "$ac_envvar='$ac_optarg'"
641     export $ac_envvar ;;
642
643   *)
644     # FIXME: should be removed in autoconf 3.0.
645     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
646     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
647       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
648     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
649     ;;
650
651   esac
652 done
653
654 if test -n "$ac_prev"; then
655   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
656   { echo "$as_me: error: missing argument to $ac_option" >&2
657    { (exit 1); exit 1; }; }
658 fi
659
660 # Be sure to have absolute paths.
661 for ac_var in exec_prefix prefix
662 do
663   eval ac_val=$`echo $ac_var`
664   case $ac_val in
665     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
666     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
667    { (exit 1); exit 1; }; };;
668   esac
669 done
670
671 # Be sure to have absolute paths.
672 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
673               localstatedir libdir includedir oldincludedir infodir mandir
674 do
675   eval ac_val=$`echo $ac_var`
676   case $ac_val in
677     [\\/$]* | ?:[\\/]* ) ;;
678     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
679    { (exit 1); exit 1; }; };;
680   esac
681 done
682
683 # There might be people who depend on the old broken behavior: `$host'
684 # used to hold the argument of --host etc.
685 # FIXME: To remove some day.
686 build=$build_alias
687 host=$host_alias
688 target=$target_alias
689
690 # FIXME: To remove some day.
691 if test "x$host_alias" != x; then
692   if test "x$build_alias" = x; then
693     cross_compiling=maybe
694     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
695     If a cross compiler is detected then cross compile mode will be used." >&2
696   elif test "x$build_alias" != "x$host_alias"; then
697     cross_compiling=yes
698   fi
699 fi
700
701 ac_tool_prefix=
702 test -n "$host_alias" && ac_tool_prefix=$host_alias-
703
704 test "$silent" = yes && exec 6>/dev/null
705
706
707 # Find the source files, if location was not specified.
708 if test -z "$srcdir"; then
709   ac_srcdir_defaulted=yes
710   # Try the directory containing this script, then its parent.
711   ac_confdir=`(dirname "$0") 2>/dev/null ||
712 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
713          X"$0" : 'X\(//\)[^/]' \| \
714          X"$0" : 'X\(//\)$' \| \
715          X"$0" : 'X\(/\)' \| \
716          .     : '\(.\)' 2>/dev/null ||
717 echo X"$0" |
718     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
719           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
720           /^X\(\/\/\)$/{ s//\1/; q; }
721           /^X\(\/\).*/{ s//\1/; q; }
722           s/.*/./; q'`
723   srcdir=$ac_confdir
724   if test ! -r $srcdir/$ac_unique_file; then
725     srcdir=..
726   fi
727 else
728   ac_srcdir_defaulted=no
729 fi
730 if test ! -r $srcdir/$ac_unique_file; then
731   if test "$ac_srcdir_defaulted" = yes; then
732     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
733    { (exit 1); exit 1; }; }
734   else
735     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
736    { (exit 1); exit 1; }; }
737   fi
738 fi
739 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
740   { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
741    { (exit 1); exit 1; }; }
742 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
743 ac_env_build_alias_set=${build_alias+set}
744 ac_env_build_alias_value=$build_alias
745 ac_cv_env_build_alias_set=${build_alias+set}
746 ac_cv_env_build_alias_value=$build_alias
747 ac_env_host_alias_set=${host_alias+set}
748 ac_env_host_alias_value=$host_alias
749 ac_cv_env_host_alias_set=${host_alias+set}
750 ac_cv_env_host_alias_value=$host_alias
751 ac_env_target_alias_set=${target_alias+set}
752 ac_env_target_alias_value=$target_alias
753 ac_cv_env_target_alias_set=${target_alias+set}
754 ac_cv_env_target_alias_value=$target_alias
755 ac_env_CC_set=${CC+set}
756 ac_env_CC_value=$CC
757 ac_cv_env_CC_set=${CC+set}
758 ac_cv_env_CC_value=$CC
759 ac_env_CFLAGS_set=${CFLAGS+set}
760 ac_env_CFLAGS_value=$CFLAGS
761 ac_cv_env_CFLAGS_set=${CFLAGS+set}
762 ac_cv_env_CFLAGS_value=$CFLAGS
763 ac_env_LDFLAGS_set=${LDFLAGS+set}
764 ac_env_LDFLAGS_value=$LDFLAGS
765 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
766 ac_cv_env_LDFLAGS_value=$LDFLAGS
767 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
768 ac_env_CPPFLAGS_value=$CPPFLAGS
769 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
770 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
771 ac_env_CPP_set=${CPP+set}
772 ac_env_CPP_value=$CPP
773 ac_cv_env_CPP_set=${CPP+set}
774 ac_cv_env_CPP_value=$CPP
775
776 #
777 # Report the --help message.
778 #
779 if test "$ac_init_help" = "long"; then
780   # Omit some internal or obsolete options to make the list less imposing.
781   # This message is too long to be a string in the A/UX 3.1 sh.
782   cat <<_ACEOF
783 \`configure' configures libsndfile ardour-special to adapt to many kinds of systems.
784
785 Usage: $0 [OPTION]... [VAR=VALUE]...
786
787 To assign environment variables (e.g., CC, CFLAGS...), specify them as
788 VAR=VALUE.  See below for descriptions of some of the useful variables.
789
790 Defaults for the options are specified in brackets.
791
792 Configuration:
793   -h, --help              display this help and exit
794       --help=short        display options specific to this package
795       --help=recursive    display the short help of all the included packages
796   -V, --version           display version information and exit
797   -q, --quiet, --silent   do not print \`checking...' messages
798       --cache-file=FILE   cache test results in FILE [disabled]
799   -C, --config-cache      alias for \`--cache-file=config.cache'
800   -n, --no-create         do not create output files
801       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
802
803 _ACEOF
804
805   cat <<_ACEOF
806 Installation directories:
807   --prefix=PREFIX         install architecture-independent files in PREFIX
808                           [$ac_default_prefix]
809   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
810                           [PREFIX]
811
812 By default, \`make install' will install all the files in
813 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
814 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
815 for instance \`--prefix=\$HOME'.
816
817 For better control, use the options below.
818
819 Fine tuning of the installation directories:
820   --bindir=DIR           user executables [EPREFIX/bin]
821   --sbindir=DIR          system admin executables [EPREFIX/sbin]
822   --libexecdir=DIR       program executables [EPREFIX/libexec]
823   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
824   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
825   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
826   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
827   --libdir=DIR           object code libraries [EPREFIX/lib]
828   --includedir=DIR       C header files [PREFIX/include]
829   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
830   --infodir=DIR          info documentation [PREFIX/info]
831   --mandir=DIR           man documentation [PREFIX/man]
832 _ACEOF
833
834   cat <<\_ACEOF
835
836 System types:
837   --build=BUILD     configure for building on BUILD [guessed]
838   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
839   --target=TARGET   configure for building compilers for TARGET [HOST]
840 _ACEOF
841 fi
842
843 if test -n "$ac_init_help"; then
844   case $ac_init_help in
845      short | recursive ) echo "Configuration of libsndfile ardour-special:";;
846    esac
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   --enable-experimental   enable experimental code
853   --enable-gcc-werror     enable -Werror in all Makefiles
854   --disable-gcc-pipe      disable gcc -pipe option
855   --disable-gcc-opt       disable gcc optimisations
856   --disable-cpu-clip      disable tricky cpu specific clipper
857   --enable-bow-docs       enable black-on-white html docs
858   --disable-sqlite        disable use of sqlite
859   --disable-flac          disable use of FLAC
860   --disable-alsa          disable use of ALSA
861   --disable-largefile     omit support for large files
862
863 Some influential environment variables:
864   CC          C compiler command
865   CFLAGS      C compiler flags
866   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
867               nonstandard directory <lib dir>
868   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
869               headers in a nonstandard directory <include dir>
870   CPP         C preprocessor
871
872 Use these variables to override the choices made by `configure' or to help
873 it to find libraries and programs with nonstandard names/locations.
874
875 Report bugs to <ardour@ardour.org>.
876 _ACEOF
877 fi
878
879 if test "$ac_init_help" = "recursive"; then
880   # If there are subdirs, report their specific --help.
881   ac_popdir=`pwd`
882   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
883     test -d $ac_dir || continue
884     ac_builddir=.
885
886 if test "$ac_dir" != .; then
887   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
888   # A "../" for each directory in $ac_dir_suffix.
889   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
890 else
891   ac_dir_suffix= ac_top_builddir=
892 fi
893
894 case $srcdir in
895   .)  # No --srcdir option.  We are building in place.
896     ac_srcdir=.
897     if test -z "$ac_top_builddir"; then
898        ac_top_srcdir=.
899     else
900        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
901     fi ;;
902   [\\/]* | ?:[\\/]* )  # Absolute path.
903     ac_srcdir=$srcdir$ac_dir_suffix;
904     ac_top_srcdir=$srcdir ;;
905   *) # Relative path.
906     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
907     ac_top_srcdir=$ac_top_builddir$srcdir ;;
908 esac
909
910 # Do not use `cd foo && pwd` to compute absolute paths, because
911 # the directories may not exist.
912 case `pwd` in
913 .) ac_abs_builddir="$ac_dir";;
914 *)
915   case "$ac_dir" in
916   .) ac_abs_builddir=`pwd`;;
917   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
918   *) ac_abs_builddir=`pwd`/"$ac_dir";;
919   esac;;
920 esac
921 case $ac_abs_builddir in
922 .) ac_abs_top_builddir=${ac_top_builddir}.;;
923 *)
924   case ${ac_top_builddir}. in
925   .) ac_abs_top_builddir=$ac_abs_builddir;;
926   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
927   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
928   esac;;
929 esac
930 case $ac_abs_builddir in
931 .) ac_abs_srcdir=$ac_srcdir;;
932 *)
933   case $ac_srcdir in
934   .) ac_abs_srcdir=$ac_abs_builddir;;
935   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
936   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
937   esac;;
938 esac
939 case $ac_abs_builddir in
940 .) ac_abs_top_srcdir=$ac_top_srcdir;;
941 *)
942   case $ac_top_srcdir in
943   .) ac_abs_top_srcdir=$ac_abs_builddir;;
944   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
945   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
946   esac;;
947 esac
948
949     cd $ac_dir
950     # Check for guested configure; otherwise get Cygnus style configure.
951     if test -f $ac_srcdir/configure.gnu; then
952       echo
953       $SHELL $ac_srcdir/configure.gnu  --help=recursive
954     elif test -f $ac_srcdir/configure; then
955       echo
956       $SHELL $ac_srcdir/configure  --help=recursive
957     elif test -f $ac_srcdir/configure.ac ||
958            test -f $ac_srcdir/configure.in; then
959       echo
960       $ac_configure --help
961     else
962       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
963     fi
964     cd $ac_popdir
965   done
966 fi
967
968 test -n "$ac_init_help" && exit 0
969 if $ac_init_version; then
970   cat <<\_ACEOF
971 libsndfile configure ardour-special
972 generated by GNU Autoconf 2.59
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 libsndfile $as_me ardour-special, 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 if test -r "$cache_file"; then
1222   # Some versions of bash will fail to source /dev/null (special
1223   # files actually), so we avoid doing that.
1224   if test -f "$cache_file"; then
1225     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1226 echo "$as_me: loading cache $cache_file" >&6;}
1227     case $cache_file in
1228       [\\/]* | ?:[\\/]* ) . $cache_file;;
1229       *)                      . ./$cache_file;;
1230     esac
1231   fi
1232 else
1233   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1234 echo "$as_me: creating cache $cache_file" >&6;}
1235   >$cache_file
1236 fi
1237
1238 # Check that the precious variables saved in the cache have kept the same
1239 # value.
1240 ac_cache_corrupted=false
1241 for ac_var in `(set) 2>&1 |
1242                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1243   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1244   eval ac_new_set=\$ac_env_${ac_var}_set
1245   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1246   eval ac_new_val="\$ac_env_${ac_var}_value"
1247   case $ac_old_set,$ac_new_set in
1248     set,)
1249       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1250 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1251       ac_cache_corrupted=: ;;
1252     ,set)
1253       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1254 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1255       ac_cache_corrupted=: ;;
1256     ,);;
1257     *)
1258       if test "x$ac_old_val" != "x$ac_new_val"; then
1259         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1260 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1261         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1262 echo "$as_me:   former value:  $ac_old_val" >&2;}
1263         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1264 echo "$as_me:   current value: $ac_new_val" >&2;}
1265         ac_cache_corrupted=:
1266       fi;;
1267   esac
1268   # Pass precious variables to config.status.
1269   if test "$ac_new_set" = set; then
1270     case $ac_new_val in
1271     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1272       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1273     *) ac_arg=$ac_var=$ac_new_val ;;
1274     esac
1275     case " $ac_configure_args " in
1276       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1277       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1278     esac
1279   fi
1280 done
1281 if $ac_cache_corrupted; then
1282   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1283 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1284   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1285 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1286    { (exit 1); exit 1; }; }
1287 fi
1288
1289 ac_ext=c
1290 ac_cpp='$CPP $CPPFLAGS'
1291 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1292 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1293 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322 ac_aux_dir=
1323 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1324   if test -f $ac_dir/install-sh; then
1325     ac_aux_dir=$ac_dir
1326     ac_install_sh="$ac_aux_dir/install-sh -c"
1327     break
1328   elif test -f $ac_dir/install.sh; then
1329     ac_aux_dir=$ac_dir
1330     ac_install_sh="$ac_aux_dir/install.sh -c"
1331     break
1332   elif test -f $ac_dir/shtool; then
1333     ac_aux_dir=$ac_dir
1334     ac_install_sh="$ac_aux_dir/shtool install -c"
1335     break
1336   fi
1337 done
1338 if test -z "$ac_aux_dir"; then
1339   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1340 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1341    { (exit 1); exit 1; }; }
1342 fi
1343 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1344 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1345 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1346
1347 # Make sure we can run config.sub.
1348 $ac_config_sub sun4 >/dev/null 2>&1 ||
1349   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1350 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1351    { (exit 1); exit 1; }; }
1352
1353 echo "$as_me:$LINENO: checking build system type" >&5
1354 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1355 if test "${ac_cv_build+set}" = set; then
1356   echo $ECHO_N "(cached) $ECHO_C" >&6
1357 else
1358   ac_cv_build_alias=$build_alias
1359 test -z "$ac_cv_build_alias" &&
1360   ac_cv_build_alias=`$ac_config_guess`
1361 test -z "$ac_cv_build_alias" &&
1362   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1363 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1364    { (exit 1); exit 1; }; }
1365 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1366   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1367 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1368    { (exit 1); exit 1; }; }
1369
1370 fi
1371 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1372 echo "${ECHO_T}$ac_cv_build" >&6
1373 build=$ac_cv_build
1374 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1375 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1376 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1377
1378
1379 echo "$as_me:$LINENO: checking host system type" >&5
1380 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1381 if test "${ac_cv_host+set}" = set; then
1382   echo $ECHO_N "(cached) $ECHO_C" >&6
1383 else
1384   ac_cv_host_alias=$host_alias
1385 test -z "$ac_cv_host_alias" &&
1386   ac_cv_host_alias=$ac_cv_build_alias
1387 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1388   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1389 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1390    { (exit 1); exit 1; }; }
1391
1392 fi
1393 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1394 echo "${ECHO_T}$ac_cv_host" >&6
1395 host=$ac_cv_host
1396 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1397 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1398 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1399
1400
1401 echo "$as_me:$LINENO: checking target system type" >&5
1402 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1403 if test "${ac_cv_target+set}" = set; then
1404   echo $ECHO_N "(cached) $ECHO_C" >&6
1405 else
1406   ac_cv_target_alias=$target_alias
1407 test "x$ac_cv_target_alias" = "x" &&
1408   ac_cv_target_alias=$ac_cv_host_alias
1409 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1410   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1411 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1412    { (exit 1); exit 1; }; }
1413
1414 fi
1415 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1416 echo "${ECHO_T}$ac_cv_target" >&6
1417 target=$ac_cv_target
1418 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1419 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1420 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1421
1422
1423 # The aliases save the names the user supplied, while $host etc.
1424 # will get canonicalized.
1425 test -n "$target_alias" &&
1426   test "$program_prefix$program_suffix$program_transform_name" = \
1427     NONENONEs,x,x, &&
1428   program_prefix=${target_alias}-
1429
1430           ac_config_headers="$ac_config_headers src/config.h"
1431
1432
1433 ac_ext=c
1434 ac_cpp='$CPP $CPPFLAGS'
1435 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1436 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1437 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1438
1439
1440 #------------------------------------------------------------------------------------
1441 # Rules for library version information:
1442 #
1443 #  1. Start with version information of `0:0:0' for each libtool library.
1444 #  2. Update the version information only immediately before a public release of
1445 #     your software. More frequent updates are unnecessary, and only guarantee
1446 #     that the current interface number gets larger faster.
1447 #  3. If the library source code has changed at all since the last update, then
1448 #     increment revision (`c:r:a' becomes `c:r+1:a').
1449 #  4. If any interfaces have been added, removed, or changed since the last update,
1450 #     increment current, and set revision to 0.
1451 #  5. If any interfaces have been added since the last public release, then increment
1452 #     age.
1453 #  6. If any interfaces have been removed since the last public release, then set age
1454 #     to 0.
1455
1456 SHARED_VERSION_INFO="1:16:0"
1457
1458 ac_ext=c
1459 ac_cpp='$CPP $CPPFLAGS'
1460 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1461 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1462 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1463 if test -n "$ac_tool_prefix"; then
1464   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1465 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1466 echo "$as_me:$LINENO: checking for $ac_word" >&5
1467 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1468 if test "${ac_cv_prog_CC+set}" = set; then
1469   echo $ECHO_N "(cached) $ECHO_C" >&6
1470 else
1471   if test -n "$CC"; then
1472   ac_cv_prog_CC="$CC" # Let the user override the test.
1473 else
1474 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1475 for as_dir in $PATH
1476 do
1477   IFS=$as_save_IFS
1478   test -z "$as_dir" && as_dir=.
1479   for ac_exec_ext in '' $ac_executable_extensions; do
1480   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1481     ac_cv_prog_CC="${ac_tool_prefix}gcc"
1482     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1483     break 2
1484   fi
1485 done
1486 done
1487
1488 fi
1489 fi
1490 CC=$ac_cv_prog_CC
1491 if test -n "$CC"; then
1492   echo "$as_me:$LINENO: result: $CC" >&5
1493 echo "${ECHO_T}$CC" >&6
1494 else
1495   echo "$as_me:$LINENO: result: no" >&5
1496 echo "${ECHO_T}no" >&6
1497 fi
1498
1499 fi
1500 if test -z "$ac_cv_prog_CC"; then
1501   ac_ct_CC=$CC
1502   # Extract the first word of "gcc", so it can be a program name with args.
1503 set dummy gcc; ac_word=$2
1504 echo "$as_me:$LINENO: checking for $ac_word" >&5
1505 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1506 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1507   echo $ECHO_N "(cached) $ECHO_C" >&6
1508 else
1509   if test -n "$ac_ct_CC"; then
1510   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1511 else
1512 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1513 for as_dir in $PATH
1514 do
1515   IFS=$as_save_IFS
1516   test -z "$as_dir" && as_dir=.
1517   for ac_exec_ext in '' $ac_executable_extensions; do
1518   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1519     ac_cv_prog_ac_ct_CC="gcc"
1520     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1521     break 2
1522   fi
1523 done
1524 done
1525
1526 fi
1527 fi
1528 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1529 if test -n "$ac_ct_CC"; then
1530   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1531 echo "${ECHO_T}$ac_ct_CC" >&6
1532 else
1533   echo "$as_me:$LINENO: result: no" >&5
1534 echo "${ECHO_T}no" >&6
1535 fi
1536
1537   CC=$ac_ct_CC
1538 else
1539   CC="$ac_cv_prog_CC"
1540 fi
1541
1542 if test -z "$CC"; then
1543   if test -n "$ac_tool_prefix"; then
1544   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1545 set dummy ${ac_tool_prefix}cc; ac_word=$2
1546 echo "$as_me:$LINENO: checking for $ac_word" >&5
1547 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1548 if test "${ac_cv_prog_CC+set}" = set; then
1549   echo $ECHO_N "(cached) $ECHO_C" >&6
1550 else
1551   if test -n "$CC"; then
1552   ac_cv_prog_CC="$CC" # Let the user override the test.
1553 else
1554 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1555 for as_dir in $PATH
1556 do
1557   IFS=$as_save_IFS
1558   test -z "$as_dir" && as_dir=.
1559   for ac_exec_ext in '' $ac_executable_extensions; do
1560   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1561     ac_cv_prog_CC="${ac_tool_prefix}cc"
1562     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1563     break 2
1564   fi
1565 done
1566 done
1567
1568 fi
1569 fi
1570 CC=$ac_cv_prog_CC
1571 if test -n "$CC"; then
1572   echo "$as_me:$LINENO: result: $CC" >&5
1573 echo "${ECHO_T}$CC" >&6
1574 else
1575   echo "$as_me:$LINENO: result: no" >&5
1576 echo "${ECHO_T}no" >&6
1577 fi
1578
1579 fi
1580 if test -z "$ac_cv_prog_CC"; then
1581   ac_ct_CC=$CC
1582   # Extract the first word of "cc", so it can be a program name with args.
1583 set dummy cc; ac_word=$2
1584 echo "$as_me:$LINENO: checking for $ac_word" >&5
1585 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1586 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1587   echo $ECHO_N "(cached) $ECHO_C" >&6
1588 else
1589   if test -n "$ac_ct_CC"; then
1590   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1591 else
1592 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1593 for as_dir in $PATH
1594 do
1595   IFS=$as_save_IFS
1596   test -z "$as_dir" && as_dir=.
1597   for ac_exec_ext in '' $ac_executable_extensions; do
1598   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1599     ac_cv_prog_ac_ct_CC="cc"
1600     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1601     break 2
1602   fi
1603 done
1604 done
1605
1606 fi
1607 fi
1608 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1609 if test -n "$ac_ct_CC"; then
1610   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1611 echo "${ECHO_T}$ac_ct_CC" >&6
1612 else
1613   echo "$as_me:$LINENO: result: no" >&5
1614 echo "${ECHO_T}no" >&6
1615 fi
1616
1617   CC=$ac_ct_CC
1618 else
1619   CC="$ac_cv_prog_CC"
1620 fi
1621
1622 fi
1623 if test -z "$CC"; then
1624   # Extract the first word of "cc", so it can be a program name with args.
1625 set dummy cc; ac_word=$2
1626 echo "$as_me:$LINENO: checking for $ac_word" >&5
1627 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1628 if test "${ac_cv_prog_CC+set}" = set; then
1629   echo $ECHO_N "(cached) $ECHO_C" >&6
1630 else
1631   if test -n "$CC"; then
1632   ac_cv_prog_CC="$CC" # Let the user override the test.
1633 else
1634   ac_prog_rejected=no
1635 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1636 for as_dir in $PATH
1637 do
1638   IFS=$as_save_IFS
1639   test -z "$as_dir" && as_dir=.
1640   for ac_exec_ext in '' $ac_executable_extensions; do
1641   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1642     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1643        ac_prog_rejected=yes
1644        continue
1645      fi
1646     ac_cv_prog_CC="cc"
1647     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1648     break 2
1649   fi
1650 done
1651 done
1652
1653 if test $ac_prog_rejected = yes; then
1654   # We found a bogon in the path, so make sure we never use it.
1655   set dummy $ac_cv_prog_CC
1656   shift
1657   if test $# != 0; then
1658     # We chose a different compiler from the bogus one.
1659     # However, it has the same basename, so the bogon will be chosen
1660     # first if we set CC to just the basename; use the full file name.
1661     shift
1662     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1663   fi
1664 fi
1665 fi
1666 fi
1667 CC=$ac_cv_prog_CC
1668 if test -n "$CC"; then
1669   echo "$as_me:$LINENO: result: $CC" >&5
1670 echo "${ECHO_T}$CC" >&6
1671 else
1672   echo "$as_me:$LINENO: result: no" >&5
1673 echo "${ECHO_T}no" >&6
1674 fi
1675
1676 fi
1677 if test -z "$CC"; then
1678   if test -n "$ac_tool_prefix"; then
1679   for ac_prog in cl
1680   do
1681     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1682 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1683 echo "$as_me:$LINENO: checking for $ac_word" >&5
1684 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1685 if test "${ac_cv_prog_CC+set}" = set; then
1686   echo $ECHO_N "(cached) $ECHO_C" >&6
1687 else
1688   if test -n "$CC"; then
1689   ac_cv_prog_CC="$CC" # Let the user override the test.
1690 else
1691 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1692 for as_dir in $PATH
1693 do
1694   IFS=$as_save_IFS
1695   test -z "$as_dir" && as_dir=.
1696   for ac_exec_ext in '' $ac_executable_extensions; do
1697   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1698     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1699     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1700     break 2
1701   fi
1702 done
1703 done
1704
1705 fi
1706 fi
1707 CC=$ac_cv_prog_CC
1708 if test -n "$CC"; then
1709   echo "$as_me:$LINENO: result: $CC" >&5
1710 echo "${ECHO_T}$CC" >&6
1711 else
1712   echo "$as_me:$LINENO: result: no" >&5
1713 echo "${ECHO_T}no" >&6
1714 fi
1715
1716     test -n "$CC" && break
1717   done
1718 fi
1719 if test -z "$CC"; then
1720   ac_ct_CC=$CC
1721   for ac_prog in cl
1722 do
1723   # Extract the first word of "$ac_prog", so it can be a program name with args.
1724 set dummy $ac_prog; ac_word=$2
1725 echo "$as_me:$LINENO: checking for $ac_word" >&5
1726 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1727 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1728   echo $ECHO_N "(cached) $ECHO_C" >&6
1729 else
1730   if test -n "$ac_ct_CC"; then
1731   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1732 else
1733 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1734 for as_dir in $PATH
1735 do
1736   IFS=$as_save_IFS
1737   test -z "$as_dir" && as_dir=.
1738   for ac_exec_ext in '' $ac_executable_extensions; do
1739   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1740     ac_cv_prog_ac_ct_CC="$ac_prog"
1741     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1742     break 2
1743   fi
1744 done
1745 done
1746
1747 fi
1748 fi
1749 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1750 if test -n "$ac_ct_CC"; then
1751   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1752 echo "${ECHO_T}$ac_ct_CC" >&6
1753 else
1754   echo "$as_me:$LINENO: result: no" >&5
1755 echo "${ECHO_T}no" >&6
1756 fi
1757
1758   test -n "$ac_ct_CC" && break
1759 done
1760
1761   CC=$ac_ct_CC
1762 fi
1763
1764 fi
1765
1766
1767 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1768 See \`config.log' for more details." >&5
1769 echo "$as_me: error: no acceptable C compiler found in \$PATH
1770 See \`config.log' for more details." >&2;}
1771    { (exit 1); exit 1; }; }
1772
1773 # Provide some information about the compiler.
1774 echo "$as_me:$LINENO:" \
1775      "checking for C compiler version" >&5
1776 ac_compiler=`set X $ac_compile; echo $2`
1777 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1778   (eval $ac_compiler --version </dev/null >&5) 2>&5
1779   ac_status=$?
1780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1781   (exit $ac_status); }
1782 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1783   (eval $ac_compiler -v </dev/null >&5) 2>&5
1784   ac_status=$?
1785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1786   (exit $ac_status); }
1787 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1788   (eval $ac_compiler -V </dev/null >&5) 2>&5
1789   ac_status=$?
1790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1791   (exit $ac_status); }
1792
1793 cat >conftest.$ac_ext <<_ACEOF
1794 /* confdefs.h.  */
1795 _ACEOF
1796 cat confdefs.h >>conftest.$ac_ext
1797 cat >>conftest.$ac_ext <<_ACEOF
1798 /* end confdefs.h.  */
1799
1800 int
1801 main ()
1802 {
1803
1804   ;
1805   return 0;
1806 }
1807 _ACEOF
1808 ac_clean_files_save=$ac_clean_files
1809 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1810 # Try to create an executable without -o first, disregard a.out.
1811 # It will help us diagnose broken compilers, and finding out an intuition
1812 # of exeext.
1813 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1814 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1815 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1816 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1817   (eval $ac_link_default) 2>&5
1818   ac_status=$?
1819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1820   (exit $ac_status); }; then
1821   # Find the output, starting from the most likely.  This scheme is
1822 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1823 # resort.
1824
1825 # Be careful to initialize this variable, since it used to be cached.
1826 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1827 ac_cv_exeext=
1828 # b.out is created by i960 compilers.
1829 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1830 do
1831   test -f "$ac_file" || continue
1832   case $ac_file in
1833     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1834         ;;
1835     conftest.$ac_ext )
1836         # This is the source file.
1837         ;;
1838     [ab].out )
1839         # We found the default executable, but exeext='' is most
1840         # certainly right.
1841         break;;
1842     *.* )
1843         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1844         # FIXME: I believe we export ac_cv_exeext for Libtool,
1845         # but it would be cool to find out if it's true.  Does anybody
1846         # maintain Libtool? --akim.
1847         export ac_cv_exeext
1848         break;;
1849     * )
1850         break;;
1851   esac
1852 done
1853 else
1854   echo "$as_me: failed program was:" >&5
1855 sed 's/^/| /' conftest.$ac_ext >&5
1856
1857 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1858 See \`config.log' for more details." >&5
1859 echo "$as_me: error: C compiler cannot create executables
1860 See \`config.log' for more details." >&2;}
1861    { (exit 77); exit 77; }; }
1862 fi
1863
1864 ac_exeext=$ac_cv_exeext
1865 echo "$as_me:$LINENO: result: $ac_file" >&5
1866 echo "${ECHO_T}$ac_file" >&6
1867
1868 # Check the compiler produces executables we can run.  If not, either
1869 # the compiler is broken, or we cross compile.
1870 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1871 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1872 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1873 # If not cross compiling, check that we can run a simple program.
1874 if test "$cross_compiling" != yes; then
1875   if { ac_try='./$ac_file'
1876   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1877   (eval $ac_try) 2>&5
1878   ac_status=$?
1879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1880   (exit $ac_status); }; }; then
1881     cross_compiling=no
1882   else
1883     if test "$cross_compiling" = maybe; then
1884         cross_compiling=yes
1885     else
1886         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1887 If you meant to cross compile, use \`--host'.
1888 See \`config.log' for more details." >&5
1889 echo "$as_me: error: cannot run C compiled programs.
1890 If you meant to cross compile, use \`--host'.
1891 See \`config.log' for more details." >&2;}
1892    { (exit 1); exit 1; }; }
1893     fi
1894   fi
1895 fi
1896 echo "$as_me:$LINENO: result: yes" >&5
1897 echo "${ECHO_T}yes" >&6
1898
1899 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1900 ac_clean_files=$ac_clean_files_save
1901 # Check the compiler produces executables we can run.  If not, either
1902 # the compiler is broken, or we cross compile.
1903 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1904 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1905 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1906 echo "${ECHO_T}$cross_compiling" >&6
1907
1908 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1909 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1910 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1911   (eval $ac_link) 2>&5
1912   ac_status=$?
1913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1914   (exit $ac_status); }; then
1915   # If both `conftest.exe' and `conftest' are `present' (well, observable)
1916 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
1917 # work properly (i.e., refer to `conftest.exe'), while it won't with
1918 # `rm'.
1919 for ac_file in conftest.exe conftest conftest.*; do
1920   test -f "$ac_file" || continue
1921   case $ac_file in
1922     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1923     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1924           export ac_cv_exeext
1925           break;;
1926     * ) break;;
1927   esac
1928 done
1929 else
1930   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1931 See \`config.log' for more details." >&5
1932 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1933 See \`config.log' for more details." >&2;}
1934    { (exit 1); exit 1; }; }
1935 fi
1936
1937 rm -f conftest$ac_cv_exeext
1938 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1939 echo "${ECHO_T}$ac_cv_exeext" >&6
1940
1941 rm -f conftest.$ac_ext
1942 EXEEXT=$ac_cv_exeext
1943 ac_exeext=$EXEEXT
1944 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1945 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1946 if test "${ac_cv_objext+set}" = set; then
1947   echo $ECHO_N "(cached) $ECHO_C" >&6
1948 else
1949   cat >conftest.$ac_ext <<_ACEOF
1950 /* confdefs.h.  */
1951 _ACEOF
1952 cat confdefs.h >>conftest.$ac_ext
1953 cat >>conftest.$ac_ext <<_ACEOF
1954 /* end confdefs.h.  */
1955
1956 int
1957 main ()
1958 {
1959
1960   ;
1961   return 0;
1962 }
1963 _ACEOF
1964 rm -f conftest.o conftest.obj
1965 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1966   (eval $ac_compile) 2>&5
1967   ac_status=$?
1968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1969   (exit $ac_status); }; then
1970   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1971   case $ac_file in
1972     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1973     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1974        break;;
1975   esac
1976 done
1977 else
1978   echo "$as_me: failed program was:" >&5
1979 sed 's/^/| /' conftest.$ac_ext >&5
1980
1981 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1982 See \`config.log' for more details." >&5
1983 echo "$as_me: error: cannot compute suffix of object files: cannot compile
1984 See \`config.log' for more details." >&2;}
1985    { (exit 1); exit 1; }; }
1986 fi
1987
1988 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1989 fi
1990 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1991 echo "${ECHO_T}$ac_cv_objext" >&6
1992 OBJEXT=$ac_cv_objext
1993 ac_objext=$OBJEXT
1994 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1995 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1996 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1997   echo $ECHO_N "(cached) $ECHO_C" >&6
1998 else
1999   cat >conftest.$ac_ext <<_ACEOF
2000 /* confdefs.h.  */
2001 _ACEOF
2002 cat confdefs.h >>conftest.$ac_ext
2003 cat >>conftest.$ac_ext <<_ACEOF
2004 /* end confdefs.h.  */
2005
2006 int
2007 main ()
2008 {
2009 #ifndef __GNUC__
2010        choke me
2011 #endif
2012
2013   ;
2014   return 0;
2015 }
2016 _ACEOF
2017 rm -f conftest.$ac_objext
2018 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2019   (eval $ac_compile) 2>conftest.er1
2020   ac_status=$?
2021   grep -v '^ *+' conftest.er1 >conftest.err
2022   rm -f conftest.er1
2023   cat conftest.err >&5
2024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2025   (exit $ac_status); } &&
2026          { ac_try='test -z "$ac_c_werror_flag"
2027                          || test ! -s conftest.err'
2028   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2029   (eval $ac_try) 2>&5
2030   ac_status=$?
2031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2032   (exit $ac_status); }; } &&
2033          { ac_try='test -s conftest.$ac_objext'
2034   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2035   (eval $ac_try) 2>&5
2036   ac_status=$?
2037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2038   (exit $ac_status); }; }; then
2039   ac_compiler_gnu=yes
2040 else
2041   echo "$as_me: failed program was:" >&5
2042 sed 's/^/| /' conftest.$ac_ext >&5
2043
2044 ac_compiler_gnu=no
2045 fi
2046 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2047 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2048
2049 fi
2050 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2051 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2052 GCC=`test $ac_compiler_gnu = yes && echo yes`
2053 ac_test_CFLAGS=${CFLAGS+set}
2054 ac_save_CFLAGS=$CFLAGS
2055 CFLAGS="-g"
2056 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2057 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2058 if test "${ac_cv_prog_cc_g+set}" = set; then
2059   echo $ECHO_N "(cached) $ECHO_C" >&6
2060 else
2061   cat >conftest.$ac_ext <<_ACEOF
2062 /* confdefs.h.  */
2063 _ACEOF
2064 cat confdefs.h >>conftest.$ac_ext
2065 cat >>conftest.$ac_ext <<_ACEOF
2066 /* end confdefs.h.  */
2067
2068 int
2069 main ()
2070 {
2071
2072   ;
2073   return 0;
2074 }
2075 _ACEOF
2076 rm -f conftest.$ac_objext
2077 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2078   (eval $ac_compile) 2>conftest.er1
2079   ac_status=$?
2080   grep -v '^ *+' conftest.er1 >conftest.err
2081   rm -f conftest.er1
2082   cat conftest.err >&5
2083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2084   (exit $ac_status); } &&
2085          { ac_try='test -z "$ac_c_werror_flag"
2086                          || test ! -s conftest.err'
2087   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2088   (eval $ac_try) 2>&5
2089   ac_status=$?
2090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2091   (exit $ac_status); }; } &&
2092          { ac_try='test -s conftest.$ac_objext'
2093   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2094   (eval $ac_try) 2>&5
2095   ac_status=$?
2096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2097   (exit $ac_status); }; }; then
2098   ac_cv_prog_cc_g=yes
2099 else
2100   echo "$as_me: failed program was:" >&5
2101 sed 's/^/| /' conftest.$ac_ext >&5
2102
2103 ac_cv_prog_cc_g=no
2104 fi
2105 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2106 fi
2107 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2108 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2109 if test "$ac_test_CFLAGS" = set; then
2110   CFLAGS=$ac_save_CFLAGS
2111 elif test $ac_cv_prog_cc_g = yes; then
2112   if test "$GCC" = yes; then
2113     CFLAGS="-g -O2"
2114   else
2115     CFLAGS="-g"
2116   fi
2117 else
2118   if test "$GCC" = yes; then
2119     CFLAGS="-O2"
2120   else
2121     CFLAGS=
2122   fi
2123 fi
2124 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2125 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2126 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2127   echo $ECHO_N "(cached) $ECHO_C" >&6
2128 else
2129   ac_cv_prog_cc_stdc=no
2130 ac_save_CC=$CC
2131 cat >conftest.$ac_ext <<_ACEOF
2132 /* confdefs.h.  */
2133 _ACEOF
2134 cat confdefs.h >>conftest.$ac_ext
2135 cat >>conftest.$ac_ext <<_ACEOF
2136 /* end confdefs.h.  */
2137 #include <stdarg.h>
2138 #include <stdio.h>
2139 #include <sys/types.h>
2140 #include <sys/stat.h>
2141 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2142 struct buf { int x; };
2143 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2144 static char *e (p, i)
2145      char **p;
2146      int i;
2147 {
2148   return p[i];
2149 }
2150 static char *f (char * (*g) (char **, int), char **p, ...)
2151 {
2152   char *s;
2153   va_list v;
2154   va_start (v,p);
2155   s = g (p, va_arg (v,int));
2156   va_end (v);
2157   return s;
2158 }
2159
2160 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2161    function prototypes and stuff, but not '\xHH' hex character constants.
2162    These don't provoke an error unfortunately, instead are silently treated
2163    as 'x'.  The following induces an error, until -std1 is added to get
2164    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2165    array size at least.  It's necessary to write '\x00'==0 to get something
2166    that's true only with -std1.  */
2167 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2168
2169 int test (int i, double x);
2170 struct s1 {int (*f) (int a);};
2171 struct s2 {int (*f) (double a);};
2172 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2173 int argc;
2174 char **argv;
2175 int
2176 main ()
2177 {
2178 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2179   ;
2180   return 0;
2181 }
2182 _ACEOF
2183 # Don't try gcc -ansi; that turns off useful extensions and
2184 # breaks some systems' header files.
2185 # AIX                   -qlanglvl=ansi
2186 # Ultrix and OSF/1      -std1
2187 # HP-UX 10.20 and later -Ae
2188 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2189 # SVR4                  -Xc -D__EXTENSIONS__
2190 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2191 do
2192   CC="$ac_save_CC $ac_arg"
2193   rm -f conftest.$ac_objext
2194 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2195   (eval $ac_compile) 2>conftest.er1
2196   ac_status=$?
2197   grep -v '^ *+' conftest.er1 >conftest.err
2198   rm -f conftest.er1
2199   cat conftest.err >&5
2200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2201   (exit $ac_status); } &&
2202          { ac_try='test -z "$ac_c_werror_flag"
2203                          || test ! -s conftest.err'
2204   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2205   (eval $ac_try) 2>&5
2206   ac_status=$?
2207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2208   (exit $ac_status); }; } &&
2209          { ac_try='test -s conftest.$ac_objext'
2210   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2211   (eval $ac_try) 2>&5
2212   ac_status=$?
2213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2214   (exit $ac_status); }; }; then
2215   ac_cv_prog_cc_stdc=$ac_arg
2216 break
2217 else
2218   echo "$as_me: failed program was:" >&5
2219 sed 's/^/| /' conftest.$ac_ext >&5
2220
2221 fi
2222 rm -f conftest.err conftest.$ac_objext
2223 done
2224 rm -f conftest.$ac_ext conftest.$ac_objext
2225 CC=$ac_save_CC
2226
2227 fi
2228
2229 case "x$ac_cv_prog_cc_stdc" in
2230   x|xno)
2231     echo "$as_me:$LINENO: result: none needed" >&5
2232 echo "${ECHO_T}none needed" >&6 ;;
2233   *)
2234     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2235 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2236     CC="$CC $ac_cv_prog_cc_stdc" ;;
2237 esac
2238
2239 # Some people use a C++ compiler to compile C.  Since we use `exit',
2240 # in C++ we need to declare it.  In case someone uses the same compiler
2241 # for both compiling C and C++ we need to have the C++ compiler decide
2242 # the declaration of exit, since it's the most demanding environment.
2243 cat >conftest.$ac_ext <<_ACEOF
2244 #ifndef __cplusplus
2245   choke me
2246 #endif
2247 _ACEOF
2248 rm -f conftest.$ac_objext
2249 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2250   (eval $ac_compile) 2>conftest.er1
2251   ac_status=$?
2252   grep -v '^ *+' conftest.er1 >conftest.err
2253   rm -f conftest.er1
2254   cat conftest.err >&5
2255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2256   (exit $ac_status); } &&
2257          { ac_try='test -z "$ac_c_werror_flag"
2258                          || test ! -s conftest.err'
2259   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2260   (eval $ac_try) 2>&5
2261   ac_status=$?
2262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2263   (exit $ac_status); }; } &&
2264          { ac_try='test -s conftest.$ac_objext'
2265   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2266   (eval $ac_try) 2>&5
2267   ac_status=$?
2268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2269   (exit $ac_status); }; }; then
2270   for ac_declaration in \
2271    '' \
2272    'extern "C" void std::exit (int) throw (); using std::exit;' \
2273    'extern "C" void std::exit (int); using std::exit;' \
2274    'extern "C" void exit (int) throw ();' \
2275    'extern "C" void exit (int);' \
2276    'void exit (int);'
2277 do
2278   cat >conftest.$ac_ext <<_ACEOF
2279 /* confdefs.h.  */
2280 _ACEOF
2281 cat confdefs.h >>conftest.$ac_ext
2282 cat >>conftest.$ac_ext <<_ACEOF
2283 /* end confdefs.h.  */
2284 $ac_declaration
2285 #include <stdlib.h>
2286 int
2287 main ()
2288 {
2289 exit (42);
2290   ;
2291   return 0;
2292 }
2293 _ACEOF
2294 rm -f conftest.$ac_objext
2295 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2296   (eval $ac_compile) 2>conftest.er1
2297   ac_status=$?
2298   grep -v '^ *+' conftest.er1 >conftest.err
2299   rm -f conftest.er1
2300   cat conftest.err >&5
2301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2302   (exit $ac_status); } &&
2303          { ac_try='test -z "$ac_c_werror_flag"
2304                          || test ! -s conftest.err'
2305   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2306   (eval $ac_try) 2>&5
2307   ac_status=$?
2308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2309   (exit $ac_status); }; } &&
2310          { ac_try='test -s conftest.$ac_objext'
2311   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2312   (eval $ac_try) 2>&5
2313   ac_status=$?
2314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2315   (exit $ac_status); }; }; then
2316   :
2317 else
2318   echo "$as_me: failed program was:" >&5
2319 sed 's/^/| /' conftest.$ac_ext >&5
2320
2321 continue
2322 fi
2323 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2324   cat >conftest.$ac_ext <<_ACEOF
2325 /* confdefs.h.  */
2326 _ACEOF
2327 cat confdefs.h >>conftest.$ac_ext
2328 cat >>conftest.$ac_ext <<_ACEOF
2329 /* end confdefs.h.  */
2330 $ac_declaration
2331 int
2332 main ()
2333 {
2334 exit (42);
2335   ;
2336   return 0;
2337 }
2338 _ACEOF
2339 rm -f conftest.$ac_objext
2340 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2341   (eval $ac_compile) 2>conftest.er1
2342   ac_status=$?
2343   grep -v '^ *+' conftest.er1 >conftest.err
2344   rm -f conftest.er1
2345   cat conftest.err >&5
2346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2347   (exit $ac_status); } &&
2348          { ac_try='test -z "$ac_c_werror_flag"
2349                          || test ! -s conftest.err'
2350   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2351   (eval $ac_try) 2>&5
2352   ac_status=$?
2353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2354   (exit $ac_status); }; } &&
2355          { ac_try='test -s conftest.$ac_objext'
2356   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2357   (eval $ac_try) 2>&5
2358   ac_status=$?
2359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2360   (exit $ac_status); }; }; then
2361   break
2362 else
2363   echo "$as_me: failed program was:" >&5
2364 sed 's/^/| /' conftest.$ac_ext >&5
2365
2366 fi
2367 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2368 done
2369 rm -f conftest*
2370 if test -n "$ac_declaration"; then
2371   echo '#ifdef __cplusplus' >>confdefs.h
2372   echo $ac_declaration      >>confdefs.h
2373   echo '#endif'             >>confdefs.h
2374 fi
2375
2376 else
2377   echo "$as_me: failed program was:" >&5
2378 sed 's/^/| /' conftest.$ac_ext >&5
2379
2380 fi
2381 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2382 ac_ext=c
2383 ac_cpp='$CPP $CPPFLAGS'
2384 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2385 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2386 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2387
2388 #AM_PROG_LIBTOOL
2389
2390 # Extract the first word of "autogen", so it can be a program name with args.
2391 set dummy autogen; ac_word=$2
2392 echo "$as_me:$LINENO: checking for $ac_word" >&5
2393 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2394 if test "${ac_cv_prog_autogen+set}" = set; then
2395   echo $ECHO_N "(cached) $ECHO_C" >&6
2396 else
2397   if test -n "$autogen"; then
2398   ac_cv_prog_autogen="$autogen" # Let the user override the test.
2399 else
2400 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2401 for as_dir in $PATH
2402 do
2403   IFS=$as_save_IFS
2404   test -z "$as_dir" && as_dir=.
2405   for ac_exec_ext in '' $ac_executable_extensions; do
2406   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2407     ac_cv_prog_autogen="yes"
2408     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2409     break 2
2410   fi
2411 done
2412 done
2413
2414   test -z "$ac_cv_prog_autogen" && ac_cv_prog_autogen="no"
2415 fi
2416 fi
2417 autogen=$ac_cv_prog_autogen
2418 if test -n "$autogen"; then
2419   echo "$as_me:$LINENO: result: $autogen" >&5
2420 echo "${ECHO_T}$autogen" >&6
2421 else
2422   echo "$as_me:$LINENO: result: no" >&5
2423 echo "${ECHO_T}no" >&6
2424 fi
2425
2426
2427 # Find a good install program.  We prefer a C program (faster),
2428 # so one script is as good as another.  But avoid the broken or
2429 # incompatible versions:
2430 # SysV /etc/install, /usr/sbin/install
2431 # SunOS /usr/etc/install
2432 # IRIX /sbin/install
2433 # AIX /bin/install
2434 # AmigaOS /C/install, which installs bootblocks on floppy discs
2435 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2436 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2437 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2438 # OS/2's system install, which has a completely different semantic
2439 # ./install, which can be erroneously created by make from ./install.sh.
2440 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2441 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2442 if test -z "$INSTALL"; then
2443 if test "${ac_cv_path_install+set}" = set; then
2444   echo $ECHO_N "(cached) $ECHO_C" >&6
2445 else
2446   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2447 for as_dir in $PATH
2448 do
2449   IFS=$as_save_IFS
2450   test -z "$as_dir" && as_dir=.
2451   # Account for people who put trailing slashes in PATH elements.
2452 case $as_dir/ in
2453   ./ | .// | /cC/* | \
2454   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2455   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2456   /usr/ucb/* ) ;;
2457   *)
2458     # OSF1 and SCO ODT 3.0 have their own names for install.
2459     # Don't use installbsd from OSF since it installs stuff as root
2460     # by default.
2461     for ac_prog in ginstall scoinst install; do
2462       for ac_exec_ext in '' $ac_executable_extensions; do
2463         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2464           if test $ac_prog = install &&
2465             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2466             # AIX install.  It has an incompatible calling convention.
2467             :
2468           elif test $ac_prog = install &&
2469             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2470             # program-specific install script used by HP pwplus--don't use.
2471             :
2472           else
2473             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2474             break 3
2475           fi
2476         fi
2477       done
2478     done
2479     ;;
2480 esac
2481 done
2482
2483
2484 fi
2485   if test "${ac_cv_path_install+set}" = set; then
2486     INSTALL=$ac_cv_path_install
2487   else
2488     # As a last resort, use the slow shell script.  We don't cache a
2489     # path for INSTALL within a source directory, because that will
2490     # break other packages using the cache if that directory is
2491     # removed, or if the path is relative.
2492     INSTALL=$ac_install_sh
2493   fi
2494 fi
2495 echo "$as_me:$LINENO: result: $INSTALL" >&5
2496 echo "${ECHO_T}$INSTALL" >&6
2497
2498 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2499 # It thinks the first close brace ends the variable substitution.
2500 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2501
2502 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2503
2504 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2505
2506 echo "$as_me:$LINENO: checking whether ln -s works" >&5
2507 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
2508 LN_S=$as_ln_s
2509 if test "$LN_S" = "ln -s"; then
2510   echo "$as_me:$LINENO: result: yes" >&5
2511 echo "${ECHO_T}yes" >&6
2512 else
2513   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
2514 echo "${ECHO_T}no, using $LN_S" >&6
2515 fi
2516
2517
2518
2519 ac_ext=c
2520 ac_cpp='$CPP $CPPFLAGS'
2521 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2522 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2523 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2524 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2525 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2526 # On Suns, sometimes $CPP names a directory.
2527 if test -n "$CPP" && test -d "$CPP"; then
2528   CPP=
2529 fi
2530 if test -z "$CPP"; then
2531   if test "${ac_cv_prog_CPP+set}" = set; then
2532   echo $ECHO_N "(cached) $ECHO_C" >&6
2533 else
2534       # Double quotes because CPP needs to be expanded
2535     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2536     do
2537       ac_preproc_ok=false
2538 for ac_c_preproc_warn_flag in '' yes
2539 do
2540   # Use a header file that comes with gcc, so configuring glibc
2541   # with a fresh cross-compiler works.
2542   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2543   # <limits.h> exists even on freestanding compilers.
2544   # On the NeXT, cc -E runs the code through the compiler's parser,
2545   # not just through cpp. "Syntax error" is here to catch this case.
2546   cat >conftest.$ac_ext <<_ACEOF
2547 /* confdefs.h.  */
2548 _ACEOF
2549 cat confdefs.h >>conftest.$ac_ext
2550 cat >>conftest.$ac_ext <<_ACEOF
2551 /* end confdefs.h.  */
2552 #ifdef __STDC__
2553 # include <limits.h>
2554 #else
2555 # include <assert.h>
2556 #endif
2557                      Syntax error
2558 _ACEOF
2559 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2560   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2561   ac_status=$?
2562   grep -v '^ *+' conftest.er1 >conftest.err
2563   rm -f conftest.er1
2564   cat conftest.err >&5
2565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2566   (exit $ac_status); } >/dev/null; then
2567   if test -s conftest.err; then
2568     ac_cpp_err=$ac_c_preproc_warn_flag
2569     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2570   else
2571     ac_cpp_err=
2572   fi
2573 else
2574   ac_cpp_err=yes
2575 fi
2576 if test -z "$ac_cpp_err"; then
2577   :
2578 else
2579   echo "$as_me: failed program was:" >&5
2580 sed 's/^/| /' conftest.$ac_ext >&5
2581
2582   # Broken: fails on valid input.
2583 continue
2584 fi
2585 rm -f conftest.err conftest.$ac_ext
2586
2587   # OK, works on sane cases.  Now check whether non-existent headers
2588   # can be detected and how.
2589   cat >conftest.$ac_ext <<_ACEOF
2590 /* confdefs.h.  */
2591 _ACEOF
2592 cat confdefs.h >>conftest.$ac_ext
2593 cat >>conftest.$ac_ext <<_ACEOF
2594 /* end confdefs.h.  */
2595 #include <ac_nonexistent.h>
2596 _ACEOF
2597 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2598   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2599   ac_status=$?
2600   grep -v '^ *+' conftest.er1 >conftest.err
2601   rm -f conftest.er1
2602   cat conftest.err >&5
2603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2604   (exit $ac_status); } >/dev/null; then
2605   if test -s conftest.err; then
2606     ac_cpp_err=$ac_c_preproc_warn_flag
2607     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2608   else
2609     ac_cpp_err=
2610   fi
2611 else
2612   ac_cpp_err=yes
2613 fi
2614 if test -z "$ac_cpp_err"; then
2615   # Broken: success on invalid input.
2616 continue
2617 else
2618   echo "$as_me: failed program was:" >&5
2619 sed 's/^/| /' conftest.$ac_ext >&5
2620
2621   # Passes both tests.
2622 ac_preproc_ok=:
2623 break
2624 fi
2625 rm -f conftest.err conftest.$ac_ext
2626
2627 done
2628 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2629 rm -f conftest.err conftest.$ac_ext
2630 if $ac_preproc_ok; then
2631   break
2632 fi
2633
2634     done
2635     ac_cv_prog_CPP=$CPP
2636
2637 fi
2638   CPP=$ac_cv_prog_CPP
2639 else
2640   ac_cv_prog_CPP=$CPP
2641 fi
2642 echo "$as_me:$LINENO: result: $CPP" >&5
2643 echo "${ECHO_T}$CPP" >&6
2644 ac_preproc_ok=false
2645 for ac_c_preproc_warn_flag in '' yes
2646 do
2647   # Use a header file that comes with gcc, so configuring glibc
2648   # with a fresh cross-compiler works.
2649   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2650   # <limits.h> exists even on freestanding compilers.
2651   # On the NeXT, cc -E runs the code through the compiler's parser,
2652   # not just through cpp. "Syntax error" is here to catch this case.
2653   cat >conftest.$ac_ext <<_ACEOF
2654 /* confdefs.h.  */
2655 _ACEOF
2656 cat confdefs.h >>conftest.$ac_ext
2657 cat >>conftest.$ac_ext <<_ACEOF
2658 /* end confdefs.h.  */
2659 #ifdef __STDC__
2660 # include <limits.h>
2661 #else
2662 # include <assert.h>
2663 #endif
2664                      Syntax error
2665 _ACEOF
2666 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2667   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2668   ac_status=$?
2669   grep -v '^ *+' conftest.er1 >conftest.err
2670   rm -f conftest.er1
2671   cat conftest.err >&5
2672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2673   (exit $ac_status); } >/dev/null; then
2674   if test -s conftest.err; then
2675     ac_cpp_err=$ac_c_preproc_warn_flag
2676     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2677   else
2678     ac_cpp_err=
2679   fi
2680 else
2681   ac_cpp_err=yes
2682 fi
2683 if test -z "$ac_cpp_err"; then
2684   :
2685 else
2686   echo "$as_me: failed program was:" >&5
2687 sed 's/^/| /' conftest.$ac_ext >&5
2688
2689   # Broken: fails on valid input.
2690 continue
2691 fi
2692 rm -f conftest.err conftest.$ac_ext
2693
2694   # OK, works on sane cases.  Now check whether non-existent headers
2695   # can be detected and how.
2696   cat >conftest.$ac_ext <<_ACEOF
2697 /* confdefs.h.  */
2698 _ACEOF
2699 cat confdefs.h >>conftest.$ac_ext
2700 cat >>conftest.$ac_ext <<_ACEOF
2701 /* end confdefs.h.  */
2702 #include <ac_nonexistent.h>
2703 _ACEOF
2704 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2705   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2706   ac_status=$?
2707   grep -v '^ *+' conftest.er1 >conftest.err
2708   rm -f conftest.er1
2709   cat conftest.err >&5
2710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2711   (exit $ac_status); } >/dev/null; then
2712   if test -s conftest.err; then
2713     ac_cpp_err=$ac_c_preproc_warn_flag
2714     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2715   else
2716     ac_cpp_err=
2717   fi
2718 else
2719   ac_cpp_err=yes
2720 fi
2721 if test -z "$ac_cpp_err"; then
2722   # Broken: success on invalid input.
2723 continue
2724 else
2725   echo "$as_me: failed program was:" >&5
2726 sed 's/^/| /' conftest.$ac_ext >&5
2727
2728   # Passes both tests.
2729 ac_preproc_ok=:
2730 break
2731 fi
2732 rm -f conftest.err conftest.$ac_ext
2733
2734 done
2735 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2736 rm -f conftest.err conftest.$ac_ext
2737 if $ac_preproc_ok; then
2738   :
2739 else
2740   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2741 See \`config.log' for more details." >&5
2742 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2743 See \`config.log' for more details." >&2;}
2744    { (exit 1); exit 1; }; }
2745 fi
2746
2747 ac_ext=c
2748 ac_cpp='$CPP $CPPFLAGS'
2749 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2750 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2751 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2752
2753
2754 echo "$as_me:$LINENO: checking for egrep" >&5
2755 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
2756 if test "${ac_cv_prog_egrep+set}" = set; then
2757   echo $ECHO_N "(cached) $ECHO_C" >&6
2758 else
2759   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
2760     then ac_cv_prog_egrep='grep -E'
2761     else ac_cv_prog_egrep='egrep'
2762     fi
2763 fi
2764 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
2765 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
2766  EGREP=$ac_cv_prog_egrep
2767
2768
2769 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
2770 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
2771 if test "${ac_cv_header_stdc+set}" = set; then
2772   echo $ECHO_N "(cached) $ECHO_C" >&6
2773 else
2774   cat >conftest.$ac_ext <<_ACEOF
2775 /* confdefs.h.  */
2776 _ACEOF
2777 cat confdefs.h >>conftest.$ac_ext
2778 cat >>conftest.$ac_ext <<_ACEOF
2779 /* end confdefs.h.  */
2780 #include <stdlib.h>
2781 #include <stdarg.h>
2782 #include <string.h>
2783 #include <float.h>
2784
2785 int
2786 main ()
2787 {
2788
2789   ;
2790   return 0;
2791 }
2792 _ACEOF
2793 rm -f conftest.$ac_objext
2794 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2795   (eval $ac_compile) 2>conftest.er1
2796   ac_status=$?
2797   grep -v '^ *+' conftest.er1 >conftest.err
2798   rm -f conftest.er1
2799   cat conftest.err >&5
2800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2801   (exit $ac_status); } &&
2802          { ac_try='test -z "$ac_c_werror_flag"
2803                          || test ! -s conftest.err'
2804   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2805   (eval $ac_try) 2>&5
2806   ac_status=$?
2807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2808   (exit $ac_status); }; } &&
2809          { ac_try='test -s conftest.$ac_objext'
2810   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2811   (eval $ac_try) 2>&5
2812   ac_status=$?
2813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2814   (exit $ac_status); }; }; then
2815   ac_cv_header_stdc=yes
2816 else
2817   echo "$as_me: failed program was:" >&5
2818 sed 's/^/| /' conftest.$ac_ext >&5
2819
2820 ac_cv_header_stdc=no
2821 fi
2822 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2823
2824 if test $ac_cv_header_stdc = yes; then
2825   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2826   cat >conftest.$ac_ext <<_ACEOF
2827 /* confdefs.h.  */
2828 _ACEOF
2829 cat confdefs.h >>conftest.$ac_ext
2830 cat >>conftest.$ac_ext <<_ACEOF
2831 /* end confdefs.h.  */
2832 #include <string.h>
2833
2834 _ACEOF
2835 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2836   $EGREP "memchr" >/dev/null 2>&1; then
2837   :
2838 else
2839   ac_cv_header_stdc=no
2840 fi
2841 rm -f conftest*
2842
2843 fi
2844
2845 if test $ac_cv_header_stdc = yes; then
2846   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2847   cat >conftest.$ac_ext <<_ACEOF
2848 /* confdefs.h.  */
2849 _ACEOF
2850 cat confdefs.h >>conftest.$ac_ext
2851 cat >>conftest.$ac_ext <<_ACEOF
2852 /* end confdefs.h.  */
2853 #include <stdlib.h>
2854
2855 _ACEOF
2856 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2857   $EGREP "free" >/dev/null 2>&1; then
2858   :
2859 else
2860   ac_cv_header_stdc=no
2861 fi
2862 rm -f conftest*
2863
2864 fi
2865
2866 if test $ac_cv_header_stdc = yes; then
2867   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2868   if test "$cross_compiling" = yes; then
2869   :
2870 else
2871   cat >conftest.$ac_ext <<_ACEOF
2872 /* confdefs.h.  */
2873 _ACEOF
2874 cat confdefs.h >>conftest.$ac_ext
2875 cat >>conftest.$ac_ext <<_ACEOF
2876 /* end confdefs.h.  */
2877 #include <ctype.h>
2878 #if ((' ' & 0x0FF) == 0x020)
2879 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2880 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2881 #else
2882 # define ISLOWER(c) \
2883                    (('a' <= (c) && (c) <= 'i') \
2884                      || ('j' <= (c) && (c) <= 'r') \
2885                      || ('s' <= (c) && (c) <= 'z'))
2886 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
2887 #endif
2888
2889 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2890 int
2891 main ()
2892 {
2893   int i;
2894   for (i = 0; i < 256; i++)
2895     if (XOR (islower (i), ISLOWER (i))
2896         || toupper (i) != TOUPPER (i))
2897       exit(2);
2898   exit (0);
2899 }
2900 _ACEOF
2901 rm -f conftest$ac_exeext
2902 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2903   (eval $ac_link) 2>&5
2904   ac_status=$?
2905   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2906   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2907   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2908   (eval $ac_try) 2>&5
2909   ac_status=$?
2910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2911   (exit $ac_status); }; }; then
2912   :
2913 else
2914   echo "$as_me: program exited with status $ac_status" >&5
2915 echo "$as_me: failed program was:" >&5
2916 sed 's/^/| /' conftest.$ac_ext >&5
2917
2918 ( exit $ac_status )
2919 ac_cv_header_stdc=no
2920 fi
2921 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2922 fi
2923 fi
2924 fi
2925 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
2926 echo "${ECHO_T}$ac_cv_header_stdc" >&6
2927 if test $ac_cv_header_stdc = yes; then
2928
2929 cat >>confdefs.h <<\_ACEOF
2930 #define STDC_HEADERS 1
2931 _ACEOF
2932
2933 fi
2934
2935
2936 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
2937
2938
2939
2940
2941
2942
2943
2944
2945
2946 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
2947                   inttypes.h stdint.h unistd.h
2948 do
2949 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
2950 echo "$as_me:$LINENO: checking for $ac_header" >&5
2951 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
2952 if eval "test \"\${$as_ac_Header+set}\" = set"; then
2953   echo $ECHO_N "(cached) $ECHO_C" >&6
2954 else
2955   cat >conftest.$ac_ext <<_ACEOF
2956 /* confdefs.h.  */
2957 _ACEOF
2958 cat confdefs.h >>conftest.$ac_ext
2959 cat >>conftest.$ac_ext <<_ACEOF
2960 /* end confdefs.h.  */
2961 $ac_includes_default
2962
2963 #include <$ac_header>
2964 _ACEOF
2965 rm -f conftest.$ac_objext
2966 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2967   (eval $ac_compile) 2>conftest.er1
2968   ac_status=$?
2969   grep -v '^ *+' conftest.er1 >conftest.err
2970   rm -f conftest.er1
2971   cat conftest.err >&5
2972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2973   (exit $ac_status); } &&
2974          { ac_try='test -z "$ac_c_werror_flag"
2975                          || test ! -s conftest.err'
2976   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2977   (eval $ac_try) 2>&5
2978   ac_status=$?
2979   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2980   (exit $ac_status); }; } &&
2981          { ac_try='test -s conftest.$ac_objext'
2982   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2983   (eval $ac_try) 2>&5
2984   ac_status=$?
2985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2986   (exit $ac_status); }; }; then
2987   eval "$as_ac_Header=yes"
2988 else
2989   echo "$as_me: failed program was:" >&5
2990 sed 's/^/| /' conftest.$ac_ext >&5
2991
2992 eval "$as_ac_Header=no"
2993 fi
2994 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2995 fi
2996 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
2997 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
2998 if test `eval echo '${'$as_ac_Header'}'` = yes; then
2999   cat >>confdefs.h <<_ACEOF
3000 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3001 _ACEOF
3002
3003 fi
3004
3005 done
3006
3007
3008
3009 for ac_header in endian.h
3010 do
3011 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3012 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3013   echo "$as_me:$LINENO: checking for $ac_header" >&5
3014 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3015 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3016   echo $ECHO_N "(cached) $ECHO_C" >&6
3017 fi
3018 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3019 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3020 else
3021   # Is the header compilable?
3022 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3023 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3024 cat >conftest.$ac_ext <<_ACEOF
3025 /* confdefs.h.  */
3026 _ACEOF
3027 cat confdefs.h >>conftest.$ac_ext
3028 cat >>conftest.$ac_ext <<_ACEOF
3029 /* end confdefs.h.  */
3030 $ac_includes_default
3031 #include <$ac_header>
3032 _ACEOF
3033 rm -f conftest.$ac_objext
3034 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3035   (eval $ac_compile) 2>conftest.er1
3036   ac_status=$?
3037   grep -v '^ *+' conftest.er1 >conftest.err
3038   rm -f conftest.er1
3039   cat conftest.err >&5
3040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3041   (exit $ac_status); } &&
3042          { ac_try='test -z "$ac_c_werror_flag"
3043                          || test ! -s conftest.err'
3044   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3045   (eval $ac_try) 2>&5
3046   ac_status=$?
3047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3048   (exit $ac_status); }; } &&
3049          { ac_try='test -s conftest.$ac_objext'
3050   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3051   (eval $ac_try) 2>&5
3052   ac_status=$?
3053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3054   (exit $ac_status); }; }; then
3055   ac_header_compiler=yes
3056 else
3057   echo "$as_me: failed program was:" >&5
3058 sed 's/^/| /' conftest.$ac_ext >&5
3059
3060 ac_header_compiler=no
3061 fi
3062 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3063 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3064 echo "${ECHO_T}$ac_header_compiler" >&6
3065
3066 # Is the header present?
3067 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3068 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3069 cat >conftest.$ac_ext <<_ACEOF
3070 /* confdefs.h.  */
3071 _ACEOF
3072 cat confdefs.h >>conftest.$ac_ext
3073 cat >>conftest.$ac_ext <<_ACEOF
3074 /* end confdefs.h.  */
3075 #include <$ac_header>
3076 _ACEOF
3077 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3078   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3079   ac_status=$?
3080   grep -v '^ *+' conftest.er1 >conftest.err
3081   rm -f conftest.er1
3082   cat conftest.err >&5
3083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3084   (exit $ac_status); } >/dev/null; then
3085   if test -s conftest.err; then
3086     ac_cpp_err=$ac_c_preproc_warn_flag
3087     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3088   else
3089     ac_cpp_err=
3090   fi
3091 else
3092   ac_cpp_err=yes
3093 fi
3094 if test -z "$ac_cpp_err"; then
3095   ac_header_preproc=yes
3096 else
3097   echo "$as_me: failed program was:" >&5
3098 sed 's/^/| /' conftest.$ac_ext >&5
3099
3100   ac_header_preproc=no
3101 fi
3102 rm -f conftest.err conftest.$ac_ext
3103 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3104 echo "${ECHO_T}$ac_header_preproc" >&6
3105
3106 # So?  What about this header?
3107 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3108   yes:no: )
3109     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3110 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3111     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3112 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3113     ac_header_preproc=yes
3114     ;;
3115   no:yes:* )
3116     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3117 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3118     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
3119 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
3120     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3121 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3122     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
3123 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
3124     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3125 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3126     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3127 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
3128     (
3129       cat <<\_ASBOX
3130 ## -------------------------------- ##
3131 ## Report this to ardour@ardour.org ##
3132 ## -------------------------------- ##
3133 _ASBOX
3134     ) |
3135       sed "s/^/$as_me: WARNING:     /" >&2
3136     ;;
3137 esac
3138 echo "$as_me:$LINENO: checking for $ac_header" >&5
3139 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3140 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3141   echo $ECHO_N "(cached) $ECHO_C" >&6
3142 else
3143   eval "$as_ac_Header=\$ac_header_preproc"
3144 fi
3145 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3146 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3147
3148 fi
3149 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3150   cat >>confdefs.h <<_ACEOF
3151 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3152 _ACEOF
3153
3154 fi
3155
3156 done
3157
3158
3159 for ac_header in byteswap.h
3160 do
3161 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3162 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3163   echo "$as_me:$LINENO: checking for $ac_header" >&5
3164 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3165 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3166   echo $ECHO_N "(cached) $ECHO_C" >&6
3167 fi
3168 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3169 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3170 else
3171   # Is the header compilable?
3172 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3173 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3174 cat >conftest.$ac_ext <<_ACEOF
3175 /* confdefs.h.  */
3176 _ACEOF
3177 cat confdefs.h >>conftest.$ac_ext
3178 cat >>conftest.$ac_ext <<_ACEOF
3179 /* end confdefs.h.  */
3180 $ac_includes_default
3181 #include <$ac_header>
3182 _ACEOF
3183 rm -f conftest.$ac_objext
3184 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3185   (eval $ac_compile) 2>conftest.er1
3186   ac_status=$?
3187   grep -v '^ *+' conftest.er1 >conftest.err
3188   rm -f conftest.er1
3189   cat conftest.err >&5
3190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3191   (exit $ac_status); } &&
3192          { ac_try='test -z "$ac_c_werror_flag"
3193                          || test ! -s conftest.err'
3194   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3195   (eval $ac_try) 2>&5
3196   ac_status=$?
3197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3198   (exit $ac_status); }; } &&
3199          { ac_try='test -s conftest.$ac_objext'
3200   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3201   (eval $ac_try) 2>&5
3202   ac_status=$?
3203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3204   (exit $ac_status); }; }; then
3205   ac_header_compiler=yes
3206 else
3207   echo "$as_me: failed program was:" >&5
3208 sed 's/^/| /' conftest.$ac_ext >&5
3209
3210 ac_header_compiler=no
3211 fi
3212 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3213 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3214 echo "${ECHO_T}$ac_header_compiler" >&6
3215
3216 # Is the header present?
3217 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3218 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3219 cat >conftest.$ac_ext <<_ACEOF
3220 /* confdefs.h.  */
3221 _ACEOF
3222 cat confdefs.h >>conftest.$ac_ext
3223 cat >>conftest.$ac_ext <<_ACEOF
3224 /* end confdefs.h.  */
3225 #include <$ac_header>
3226 _ACEOF
3227 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3228   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3229   ac_status=$?
3230   grep -v '^ *+' conftest.er1 >conftest.err
3231   rm -f conftest.er1
3232   cat conftest.err >&5
3233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3234   (exit $ac_status); } >/dev/null; then
3235   if test -s conftest.err; then
3236     ac_cpp_err=$ac_c_preproc_warn_flag
3237     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3238   else
3239     ac_cpp_err=
3240   fi
3241 else
3242   ac_cpp_err=yes
3243 fi
3244 if test -z "$ac_cpp_err"; then
3245   ac_header_preproc=yes
3246 else
3247   echo "$as_me: failed program was:" >&5
3248 sed 's/^/| /' conftest.$ac_ext >&5
3249
3250   ac_header_preproc=no
3251 fi
3252 rm -f conftest.err conftest.$ac_ext
3253 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3254 echo "${ECHO_T}$ac_header_preproc" >&6
3255
3256 # So?  What about this header?
3257 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3258   yes:no: )
3259     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3260 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3261     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3262 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3263     ac_header_preproc=yes
3264     ;;
3265   no:yes:* )
3266     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3267 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3268     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
3269 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
3270     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3271 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3272     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
3273 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
3274     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3275 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3276     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3277 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
3278     (
3279       cat <<\_ASBOX
3280 ## -------------------------------- ##
3281 ## Report this to ardour@ardour.org ##
3282 ## -------------------------------- ##
3283 _ASBOX
3284     ) |
3285       sed "s/^/$as_me: WARNING:     /" >&2
3286     ;;
3287 esac
3288 echo "$as_me:$LINENO: checking for $ac_header" >&5
3289 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3290 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3291   echo $ECHO_N "(cached) $ECHO_C" >&6
3292 else
3293   eval "$as_ac_Header=\$ac_header_preproc"
3294 fi
3295 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3296 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3297
3298 fi
3299 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3300   cat >>confdefs.h <<_ACEOF
3301 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3302 _ACEOF
3303
3304 fi
3305
3306 done
3307
3308
3309 for ac_header in locale.h
3310 do
3311 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3312 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3313   echo "$as_me:$LINENO: checking for $ac_header" >&5
3314 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3315 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3316   echo $ECHO_N "(cached) $ECHO_C" >&6
3317 fi
3318 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3319 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3320 else
3321   # Is the header compilable?
3322 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3323 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3324 cat >conftest.$ac_ext <<_ACEOF
3325 /* confdefs.h.  */
3326 _ACEOF
3327 cat confdefs.h >>conftest.$ac_ext
3328 cat >>conftest.$ac_ext <<_ACEOF
3329 /* end confdefs.h.  */
3330 $ac_includes_default
3331 #include <$ac_header>
3332 _ACEOF
3333 rm -f conftest.$ac_objext
3334 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3335   (eval $ac_compile) 2>conftest.er1
3336   ac_status=$?
3337   grep -v '^ *+' conftest.er1 >conftest.err
3338   rm -f conftest.er1
3339   cat conftest.err >&5
3340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3341   (exit $ac_status); } &&
3342          { ac_try='test -z "$ac_c_werror_flag"
3343                          || test ! -s conftest.err'
3344   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3345   (eval $ac_try) 2>&5
3346   ac_status=$?
3347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3348   (exit $ac_status); }; } &&
3349          { ac_try='test -s conftest.$ac_objext'
3350   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3351   (eval $ac_try) 2>&5
3352   ac_status=$?
3353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3354   (exit $ac_status); }; }; then
3355   ac_header_compiler=yes
3356 else
3357   echo "$as_me: failed program was:" >&5
3358 sed 's/^/| /' conftest.$ac_ext >&5
3359
3360 ac_header_compiler=no
3361 fi
3362 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3363 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3364 echo "${ECHO_T}$ac_header_compiler" >&6
3365
3366 # Is the header present?
3367 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3368 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3369 cat >conftest.$ac_ext <<_ACEOF
3370 /* confdefs.h.  */
3371 _ACEOF
3372 cat confdefs.h >>conftest.$ac_ext
3373 cat >>conftest.$ac_ext <<_ACEOF
3374 /* end confdefs.h.  */
3375 #include <$ac_header>
3376 _ACEOF
3377 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3378   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3379   ac_status=$?
3380   grep -v '^ *+' conftest.er1 >conftest.err
3381   rm -f conftest.er1
3382   cat conftest.err >&5
3383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3384   (exit $ac_status); } >/dev/null; then
3385   if test -s conftest.err; then
3386     ac_cpp_err=$ac_c_preproc_warn_flag
3387     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3388   else
3389     ac_cpp_err=
3390   fi
3391 else
3392   ac_cpp_err=yes
3393 fi
3394 if test -z "$ac_cpp_err"; then
3395   ac_header_preproc=yes
3396 else
3397   echo "$as_me: failed program was:" >&5
3398 sed 's/^/| /' conftest.$ac_ext >&5
3399
3400   ac_header_preproc=no
3401 fi
3402 rm -f conftest.err conftest.$ac_ext
3403 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3404 echo "${ECHO_T}$ac_header_preproc" >&6
3405
3406 # So?  What about this header?
3407 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3408   yes:no: )
3409     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3410 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3411     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3412 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3413     ac_header_preproc=yes
3414     ;;
3415   no:yes:* )
3416     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3417 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3418     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
3419 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
3420     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3421 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3422     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
3423 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
3424     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3425 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3426     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3427 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
3428     (
3429       cat <<\_ASBOX
3430 ## -------------------------------- ##
3431 ## Report this to ardour@ardour.org ##
3432 ## -------------------------------- ##
3433 _ASBOX
3434     ) |
3435       sed "s/^/$as_me: WARNING:     /" >&2
3436     ;;
3437 esac
3438 echo "$as_me:$LINENO: checking for $ac_header" >&5
3439 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3440 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3441   echo $ECHO_N "(cached) $ECHO_C" >&6
3442 else
3443   eval "$as_ac_Header=\$ac_header_preproc"
3444 fi
3445 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3446 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3447
3448 fi
3449 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3450   cat >>confdefs.h <<_ACEOF
3451 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3452 _ACEOF
3453
3454 fi
3455
3456 done
3457
3458
3459 for ac_header in inttypes.h
3460 do
3461 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3462 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3463   echo "$as_me:$LINENO: checking for $ac_header" >&5
3464 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3465 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3466   echo $ECHO_N "(cached) $ECHO_C" >&6
3467 fi
3468 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3469 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3470 else
3471   # Is the header compilable?
3472 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3473 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3474 cat >conftest.$ac_ext <<_ACEOF
3475 /* confdefs.h.  */
3476 _ACEOF
3477 cat confdefs.h >>conftest.$ac_ext
3478 cat >>conftest.$ac_ext <<_ACEOF
3479 /* end confdefs.h.  */
3480 $ac_includes_default
3481 #include <$ac_header>
3482 _ACEOF
3483 rm -f conftest.$ac_objext
3484 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3485   (eval $ac_compile) 2>conftest.er1
3486   ac_status=$?
3487   grep -v '^ *+' conftest.er1 >conftest.err
3488   rm -f conftest.er1
3489   cat conftest.err >&5
3490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3491   (exit $ac_status); } &&
3492          { ac_try='test -z "$ac_c_werror_flag"
3493                          || test ! -s conftest.err'
3494   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3495   (eval $ac_try) 2>&5
3496   ac_status=$?
3497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3498   (exit $ac_status); }; } &&
3499          { ac_try='test -s conftest.$ac_objext'
3500   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3501   (eval $ac_try) 2>&5
3502   ac_status=$?
3503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3504   (exit $ac_status); }; }; then
3505   ac_header_compiler=yes
3506 else
3507   echo "$as_me: failed program was:" >&5
3508 sed 's/^/| /' conftest.$ac_ext >&5
3509
3510 ac_header_compiler=no
3511 fi
3512 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3513 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3514 echo "${ECHO_T}$ac_header_compiler" >&6
3515
3516 # Is the header present?
3517 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3518 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3519 cat >conftest.$ac_ext <<_ACEOF
3520 /* confdefs.h.  */
3521 _ACEOF
3522 cat confdefs.h >>conftest.$ac_ext
3523 cat >>conftest.$ac_ext <<_ACEOF
3524 /* end confdefs.h.  */
3525 #include <$ac_header>
3526 _ACEOF
3527 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3528   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3529   ac_status=$?
3530   grep -v '^ *+' conftest.er1 >conftest.err
3531   rm -f conftest.er1
3532   cat conftest.err >&5
3533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3534   (exit $ac_status); } >/dev/null; then
3535   if test -s conftest.err; then
3536     ac_cpp_err=$ac_c_preproc_warn_flag
3537     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3538   else
3539     ac_cpp_err=
3540   fi
3541 else
3542   ac_cpp_err=yes
3543 fi
3544 if test -z "$ac_cpp_err"; then
3545   ac_header_preproc=yes
3546 else
3547   echo "$as_me: failed program was:" >&5
3548 sed 's/^/| /' conftest.$ac_ext >&5
3549
3550   ac_header_preproc=no
3551 fi
3552 rm -f conftest.err conftest.$ac_ext
3553 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3554 echo "${ECHO_T}$ac_header_preproc" >&6
3555
3556 # So?  What about this header?
3557 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3558   yes:no: )
3559     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3560 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3561     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3562 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3563     ac_header_preproc=yes
3564     ;;
3565   no:yes:* )
3566     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3567 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3568     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
3569 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
3570     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3571 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3572     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
3573 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
3574     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3575 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3576     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3577 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
3578     (
3579       cat <<\_ASBOX
3580 ## -------------------------------- ##
3581 ## Report this to ardour@ardour.org ##
3582 ## -------------------------------- ##
3583 _ASBOX
3584     ) |
3585       sed "s/^/$as_me: WARNING:     /" >&2
3586     ;;
3587 esac
3588 echo "$as_me:$LINENO: checking for $ac_header" >&5
3589 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3590 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3591   echo $ECHO_N "(cached) $ECHO_C" >&6
3592 else
3593   eval "$as_ac_Header=\$ac_header_preproc"
3594 fi
3595 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3596 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3597
3598 fi
3599 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3600   cat >>confdefs.h <<_ACEOF
3601 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3602 _ACEOF
3603
3604 fi
3605
3606 done
3607
3608
3609 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
3610 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
3611 if test "${ac_cv_header_sys_wait_h+set}" = set; then
3612   echo $ECHO_N "(cached) $ECHO_C" >&6
3613 else
3614   cat >conftest.$ac_ext <<_ACEOF
3615 /* confdefs.h.  */
3616 _ACEOF
3617 cat confdefs.h >>conftest.$ac_ext
3618 cat >>conftest.$ac_ext <<_ACEOF
3619 /* end confdefs.h.  */
3620 #include <sys/types.h>
3621 #include <sys/wait.h>
3622 #ifndef WEXITSTATUS
3623 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
3624 #endif
3625 #ifndef WIFEXITED
3626 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
3627 #endif
3628
3629 int
3630 main ()
3631 {
3632   int s;
3633   wait (&s);
3634   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
3635   ;
3636   return 0;
3637 }
3638 _ACEOF
3639 rm -f conftest.$ac_objext
3640 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3641   (eval $ac_compile) 2>conftest.er1
3642   ac_status=$?
3643   grep -v '^ *+' conftest.er1 >conftest.err
3644   rm -f conftest.er1
3645   cat conftest.err >&5
3646   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3647   (exit $ac_status); } &&
3648          { ac_try='test -z "$ac_c_werror_flag"
3649                          || test ! -s conftest.err'
3650   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3651   (eval $ac_try) 2>&5
3652   ac_status=$?
3653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3654   (exit $ac_status); }; } &&
3655          { ac_try='test -s conftest.$ac_objext'
3656   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3657   (eval $ac_try) 2>&5
3658   ac_status=$?
3659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3660   (exit $ac_status); }; }; then
3661   ac_cv_header_sys_wait_h=yes
3662 else
3663   echo "$as_me: failed program was:" >&5
3664 sed 's/^/| /' conftest.$ac_ext >&5
3665
3666 ac_cv_header_sys_wait_h=no
3667 fi
3668 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3669 fi
3670 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
3671 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
3672 if test $ac_cv_header_sys_wait_h = yes; then
3673
3674 cat >>confdefs.h <<\_ACEOF
3675 #define HAVE_SYS_WAIT_H 1
3676 _ACEOF
3677
3678 fi
3679
3680
3681 echo "$as_me:$LINENO: checking whether S_IRGRP is declared" >&5
3682 echo $ECHO_N "checking whether S_IRGRP is declared... $ECHO_C" >&6
3683 if test "${ac_cv_have_decl_S_IRGRP+set}" = set; then
3684   echo $ECHO_N "(cached) $ECHO_C" >&6
3685 else
3686   cat >conftest.$ac_ext <<_ACEOF
3687 /* confdefs.h.  */
3688 _ACEOF
3689 cat confdefs.h >>conftest.$ac_ext
3690 cat >>conftest.$ac_ext <<_ACEOF
3691 /* end confdefs.h.  */
3692 $ac_includes_default
3693 int
3694 main ()
3695 {
3696 #ifndef S_IRGRP
3697   char *p = (char *) S_IRGRP;
3698 #endif
3699
3700   ;
3701   return 0;
3702 }
3703 _ACEOF
3704 rm -f conftest.$ac_objext
3705 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3706   (eval $ac_compile) 2>conftest.er1
3707   ac_status=$?
3708   grep -v '^ *+' conftest.er1 >conftest.err
3709   rm -f conftest.er1
3710   cat conftest.err >&5
3711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3712   (exit $ac_status); } &&
3713          { ac_try='test -z "$ac_c_werror_flag"
3714                          || test ! -s conftest.err'
3715   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3716   (eval $ac_try) 2>&5
3717   ac_status=$?
3718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3719   (exit $ac_status); }; } &&
3720          { ac_try='test -s conftest.$ac_objext'
3721   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3722   (eval $ac_try) 2>&5
3723   ac_status=$?
3724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3725   (exit $ac_status); }; }; then
3726   ac_cv_have_decl_S_IRGRP=yes
3727 else
3728   echo "$as_me: failed program was:" >&5
3729 sed 's/^/| /' conftest.$ac_ext >&5
3730
3731 ac_cv_have_decl_S_IRGRP=no
3732 fi
3733 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3734 fi
3735 echo "$as_me:$LINENO: result: $ac_cv_have_decl_S_IRGRP" >&5
3736 echo "${ECHO_T}$ac_cv_have_decl_S_IRGRP" >&6
3737 if test $ac_cv_have_decl_S_IRGRP = yes; then
3738
3739 cat >>confdefs.h <<_ACEOF
3740 #define HAVE_DECL_S_IRGRP 1
3741 _ACEOF
3742
3743
3744 else
3745   cat >>confdefs.h <<_ACEOF
3746 #define HAVE_DECL_S_IRGRP 0
3747 _ACEOF
3748
3749
3750 fi
3751
3752
3753
3754 cat >>confdefs.h <<_ACEOF
3755 #define HAVE_DECL_S_IRGRP ${HAVE_DECL_S_IRGRP}
3756 _ACEOF
3757
3758
3759 #====================================================================================
3760 # Check for support of the struct hack.
3761
3762 echo "$as_me:$LINENO: checking C99 struct flexible array support" >&5
3763 echo $ECHO_N "checking C99 struct flexible array support... $ECHO_C" >&6
3764 if test "${ac_cv_c99_flexible_array+set}" = set; then
3765   echo $ECHO_N "(cached) $ECHO_C" >&6
3766 else
3767   # Initialize to unknown
3768 ac_cv_c99_flexible_array=no
3769
3770 cat >conftest.$ac_ext <<_ACEOF
3771 /* confdefs.h.  */
3772 _ACEOF
3773 cat confdefs.h >>conftest.$ac_ext
3774 cat >>conftest.$ac_ext <<_ACEOF
3775 /* end confdefs.h.  */
3776
3777         #include <stdlib.h>
3778         typedef struct {
3779         int k;
3780         char buffer [] ;
3781         } MY_STRUCT ;
3782
3783 int
3784 main ()
3785 {
3786   MY_STRUCT *p = calloc (1, sizeof (MY_STRUCT) + 42);
3787   ;
3788   return 0;
3789 }
3790 _ACEOF
3791 rm -f conftest.$ac_objext conftest$ac_exeext
3792 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3793   (eval $ac_link) 2>conftest.er1
3794   ac_status=$?
3795   grep -v '^ *+' conftest.er1 >conftest.err
3796   rm -f conftest.er1
3797   cat conftest.err >&5
3798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3799   (exit $ac_status); } &&
3800          { ac_try='test -z "$ac_c_werror_flag"
3801                          || test ! -s conftest.err'
3802   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3803   (eval $ac_try) 2>&5
3804   ac_status=$?
3805   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3806   (exit $ac_status); }; } &&
3807          { ac_try='test -s conftest$ac_exeext'
3808   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3809   (eval $ac_try) 2>&5
3810   ac_status=$?
3811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3812   (exit $ac_status); }; }; then
3813   ac_cv_c99_flexible_array=yes
3814 else
3815   echo "$as_me: failed program was:" >&5
3816 sed 's/^/| /' conftest.$ac_ext >&5
3817
3818 ac_cv_c99_flexible_array=no
3819
3820 fi
3821 rm -f conftest.err conftest.$ac_objext \
3822       conftest$ac_exeext conftest.$ac_ext
3823 fi
3824 echo "$as_me:$LINENO: result: $ac_cv_c99_flexible_array" >&5
3825 echo "${ECHO_T}$ac_cv_c99_flexible_array" >&6
3826
3827
3828 if test x$ac_cv_c99_flexible_array = xyes ; then
3829
3830 cat >>confdefs.h <<\_ACEOF
3831 #define HAVE_FLEXIBLE_ARRAY 1
3832 _ACEOF
3833
3834 else
3835         { echo "$as_me:$LINENO: WARNING: *** This compiler does not support the 1999 ISO C Standard ***" >&5
3836 echo "$as_me: WARNING: *** This compiler does not support the 1999 ISO C Standard ***" >&2;}
3837         { echo "$as_me:$LINENO: WARNING: *** feature known as the flexible array struct member.     ***" >&5
3838 echo "$as_me: WARNING: *** feature known as the flexible array struct member.     ***" >&2;}
3839         cat >>confdefs.h <<\_ACEOF
3840 #define HAVE_FLEXIBLE_ARRAY 0
3841 _ACEOF
3842
3843         fi
3844
3845 #====================================================================================
3846 # Couple of initializations here. Fill in real values later.
3847
3848 SHLIB_VERSION_ARG=""
3849
3850 #====================================================================================
3851 # Finished checking, handle options.
3852
3853 # Check whether --enable-experimental or --disable-experimental was given.
3854 if test "${enable_experimental+set}" = set; then
3855   enableval="$enable_experimental"
3856
3857 fi;
3858
3859 EXPERIMENTAL_CODE=0
3860 if test x$enable_experimental = xyes ; then
3861         EXPERIMENTAL_CODE=1
3862         fi
3863
3864 cat >>confdefs.h <<_ACEOF
3865 #define ENABLE_EXPERIMENTAL_CODE ${EXPERIMENTAL_CODE}
3866 _ACEOF
3867
3868
3869 # Check whether --enable-gcc-werror or --disable-gcc-werror was given.
3870 if test "${enable_gcc_werror+set}" = set; then
3871   enableval="$enable_gcc_werror"
3872
3873 fi;
3874
3875 # Check whether --enable-gcc-pipe or --disable-gcc-pipe was given.
3876 if test "${enable_gcc_pipe+set}" = set; then
3877   enableval="$enable_gcc_pipe"
3878
3879 fi;
3880
3881 # Check whether --enable-gcc-opt or --disable-gcc-opt was given.
3882 if test "${enable_gcc_opt+set}" = set; then
3883   enableval="$enable_gcc_opt"
3884
3885 fi;
3886
3887 # Check whether --enable-cpu-clip or --disable-cpu-clip was given.
3888 if test "${enable_cpu_clip+set}" = set; then
3889   enableval="$enable_cpu_clip"
3890
3891 fi;
3892
3893 # Check whether --enable-bow-docs or --disable-bow-docs was given.
3894 if test "${enable_bow_docs+set}" = set; then
3895   enableval="$enable_bow_docs"
3896
3897 fi;
3898
3899 # Check whether --enable-sqlite or --disable-sqlite was given.
3900 if test "${enable_sqlite+set}" = set; then
3901   enableval="$enable_sqlite"
3902
3903 fi;
3904
3905 # Check whether --enable-flac or --disable-flac was given.
3906 if test "${enable_flac+set}" = set; then
3907   enableval="$enable_flac"
3908
3909 fi;
3910
3911 # Check whether --enable-alsa or --disable-alsa was given.
3912 if test "${enable_alsa+set}" = set; then
3913   enableval="$enable_alsa"
3914
3915 fi;
3916
3917 #====================================================================================
3918 # Check types and their sizes.
3919
3920 echo "$as_me:$LINENO: checking for short" >&5
3921 echo $ECHO_N "checking for short... $ECHO_C" >&6
3922 if test "${ac_cv_type_short+set}" = set; then
3923   echo $ECHO_N "(cached) $ECHO_C" >&6
3924 else
3925   cat >conftest.$ac_ext <<_ACEOF
3926 /* confdefs.h.  */
3927 _ACEOF
3928 cat confdefs.h >>conftest.$ac_ext
3929 cat >>conftest.$ac_ext <<_ACEOF
3930 /* end confdefs.h.  */
3931 $ac_includes_default
3932 int
3933 main ()
3934 {
3935 if ((short *) 0)
3936   return 0;
3937 if (sizeof (short))
3938   return 0;
3939   ;
3940   return 0;
3941 }
3942 _ACEOF
3943 rm -f conftest.$ac_objext
3944 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3945   (eval $ac_compile) 2>conftest.er1
3946   ac_status=$?
3947   grep -v '^ *+' conftest.er1 >conftest.err
3948   rm -f conftest.er1
3949   cat conftest.err >&5
3950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3951   (exit $ac_status); } &&
3952          { ac_try='test -z "$ac_c_werror_flag"
3953                          || test ! -s conftest.err'
3954   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3955   (eval $ac_try) 2>&5
3956   ac_status=$?
3957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3958   (exit $ac_status); }; } &&
3959          { ac_try='test -s conftest.$ac_objext'
3960   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3961   (eval $ac_try) 2>&5
3962   ac_status=$?
3963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3964   (exit $ac_status); }; }; then
3965   ac_cv_type_short=yes
3966 else
3967   echo "$as_me: failed program was:" >&5
3968 sed 's/^/| /' conftest.$ac_ext >&5
3969
3970 ac_cv_type_short=no
3971 fi
3972 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3973 fi
3974 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
3975 echo "${ECHO_T}$ac_cv_type_short" >&6
3976
3977 echo "$as_me:$LINENO: checking size of short" >&5
3978 echo $ECHO_N "checking size of short... $ECHO_C" >&6
3979 if test "${ac_cv_sizeof_short+set}" = set; then
3980   echo $ECHO_N "(cached) $ECHO_C" >&6
3981 else
3982   if test "$ac_cv_type_short" = yes; then
3983   # The cast to unsigned long works around a bug in the HP C Compiler
3984   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
3985   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
3986   # This bug is HP SR number 8606223364.
3987   if test "$cross_compiling" = yes; then
3988   # Depending upon the size, compute the lo and hi bounds.
3989 cat >conftest.$ac_ext <<_ACEOF
3990 /* confdefs.h.  */
3991 _ACEOF
3992 cat confdefs.h >>conftest.$ac_ext
3993 cat >>conftest.$ac_ext <<_ACEOF
3994 /* end confdefs.h.  */
3995 $ac_includes_default
3996 int
3997 main ()
3998 {
3999 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
4000 test_array [0] = 0
4001
4002   ;
4003   return 0;
4004 }
4005 _ACEOF
4006 rm -f conftest.$ac_objext
4007 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4008   (eval $ac_compile) 2>conftest.er1
4009   ac_status=$?
4010   grep -v '^ *+' conftest.er1 >conftest.err
4011   rm -f conftest.er1
4012   cat conftest.err >&5
4013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4014   (exit $ac_status); } &&
4015          { ac_try='test -z "$ac_c_werror_flag"
4016                          || 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=0 ac_mid=0
4029   while :; do
4030     cat >conftest.$ac_ext <<_ACEOF
4031 /* confdefs.h.  */
4032 _ACEOF
4033 cat confdefs.h >>conftest.$ac_ext
4034 cat >>conftest.$ac_ext <<_ACEOF
4035 /* end confdefs.h.  */
4036 $ac_includes_default
4037 int
4038 main ()
4039 {
4040 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
4041 test_array [0] = 0
4042
4043   ;
4044   return 0;
4045 }
4046 _ACEOF
4047 rm -f conftest.$ac_objext
4048 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4049   (eval $ac_compile) 2>conftest.er1
4050   ac_status=$?
4051   grep -v '^ *+' conftest.er1 >conftest.err
4052   rm -f conftest.er1
4053   cat conftest.err >&5
4054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4055   (exit $ac_status); } &&
4056          { ac_try='test -z "$ac_c_werror_flag"
4057                          || test ! -s conftest.err'
4058   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4059   (eval $ac_try) 2>&5
4060   ac_status=$?
4061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4062   (exit $ac_status); }; } &&
4063          { ac_try='test -s conftest.$ac_objext'
4064   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4065   (eval $ac_try) 2>&5
4066   ac_status=$?
4067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4068   (exit $ac_status); }; }; then
4069   ac_hi=$ac_mid; break
4070 else
4071   echo "$as_me: failed program was:" >&5
4072 sed 's/^/| /' conftest.$ac_ext >&5
4073
4074 ac_lo=`expr $ac_mid + 1`
4075                     if test $ac_lo -le $ac_mid; then
4076                       ac_lo= ac_hi=
4077                       break
4078                     fi
4079                     ac_mid=`expr 2 '*' $ac_mid + 1`
4080 fi
4081 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4082   done
4083 else
4084   echo "$as_me: failed program was:" >&5
4085 sed 's/^/| /' conftest.$ac_ext >&5
4086
4087 cat >conftest.$ac_ext <<_ACEOF
4088 /* confdefs.h.  */
4089 _ACEOF
4090 cat confdefs.h >>conftest.$ac_ext
4091 cat >>conftest.$ac_ext <<_ACEOF
4092 /* end confdefs.h.  */
4093 $ac_includes_default
4094 int
4095 main ()
4096 {
4097 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
4098 test_array [0] = 0
4099
4100   ;
4101   return 0;
4102 }
4103 _ACEOF
4104 rm -f conftest.$ac_objext
4105 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4106   (eval $ac_compile) 2>conftest.er1
4107   ac_status=$?
4108   grep -v '^ *+' conftest.er1 >conftest.err
4109   rm -f conftest.er1
4110   cat conftest.err >&5
4111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4112   (exit $ac_status); } &&
4113          { ac_try='test -z "$ac_c_werror_flag"
4114                          || test ! -s conftest.err'
4115   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4116   (eval $ac_try) 2>&5
4117   ac_status=$?
4118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4119   (exit $ac_status); }; } &&
4120          { ac_try='test -s conftest.$ac_objext'
4121   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4122   (eval $ac_try) 2>&5
4123   ac_status=$?
4124   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4125   (exit $ac_status); }; }; then
4126   ac_hi=-1 ac_mid=-1
4127   while :; do
4128     cat >conftest.$ac_ext <<_ACEOF
4129 /* confdefs.h.  */
4130 _ACEOF
4131 cat confdefs.h >>conftest.$ac_ext
4132 cat >>conftest.$ac_ext <<_ACEOF
4133 /* end confdefs.h.  */
4134 $ac_includes_default
4135 int
4136 main ()
4137 {
4138 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
4139 test_array [0] = 0
4140
4141   ;
4142   return 0;
4143 }
4144 _ACEOF
4145 rm -f conftest.$ac_objext
4146 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4147   (eval $ac_compile) 2>conftest.er1
4148   ac_status=$?
4149   grep -v '^ *+' conftest.er1 >conftest.err
4150   rm -f conftest.er1
4151   cat conftest.err >&5
4152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4153   (exit $ac_status); } &&
4154          { ac_try='test -z "$ac_c_werror_flag"
4155                          || test ! -s conftest.err'
4156   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4157   (eval $ac_try) 2>&5
4158   ac_status=$?
4159   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4160   (exit $ac_status); }; } &&
4161          { ac_try='test -s conftest.$ac_objext'
4162   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4163   (eval $ac_try) 2>&5
4164   ac_status=$?
4165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4166   (exit $ac_status); }; }; then
4167   ac_lo=$ac_mid; break
4168 else
4169   echo "$as_me: failed program was:" >&5
4170 sed 's/^/| /' conftest.$ac_ext >&5
4171
4172 ac_hi=`expr '(' $ac_mid ')' - 1`
4173                        if test $ac_mid -le $ac_hi; then
4174                          ac_lo= ac_hi=
4175                          break
4176                        fi
4177                        ac_mid=`expr 2 '*' $ac_mid`
4178 fi
4179 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4180   done
4181 else
4182   echo "$as_me: failed program was:" >&5
4183 sed 's/^/| /' conftest.$ac_ext >&5
4184
4185 ac_lo= ac_hi=
4186 fi
4187 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4188 fi
4189 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4190 # Binary search between lo and hi bounds.
4191 while test "x$ac_lo" != "x$ac_hi"; do
4192   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4193   cat >conftest.$ac_ext <<_ACEOF
4194 /* confdefs.h.  */
4195 _ACEOF
4196 cat confdefs.h >>conftest.$ac_ext
4197 cat >>conftest.$ac_ext <<_ACEOF
4198 /* end confdefs.h.  */
4199 $ac_includes_default
4200 int
4201 main ()
4202 {
4203 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
4204 test_array [0] = 0
4205
4206   ;
4207   return 0;
4208 }
4209 _ACEOF
4210 rm -f conftest.$ac_objext
4211 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4212   (eval $ac_compile) 2>conftest.er1
4213   ac_status=$?
4214   grep -v '^ *+' conftest.er1 >conftest.err
4215   rm -f conftest.er1
4216   cat conftest.err >&5
4217   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4218   (exit $ac_status); } &&
4219          { ac_try='test -z "$ac_c_werror_flag"
4220                          || test ! -s conftest.err'
4221   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4222   (eval $ac_try) 2>&5
4223   ac_status=$?
4224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4225   (exit $ac_status); }; } &&
4226          { ac_try='test -s conftest.$ac_objext'
4227   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4228   (eval $ac_try) 2>&5
4229   ac_status=$?
4230   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4231   (exit $ac_status); }; }; then
4232   ac_hi=$ac_mid
4233 else
4234   echo "$as_me: failed program was:" >&5
4235 sed 's/^/| /' conftest.$ac_ext >&5
4236
4237 ac_lo=`expr '(' $ac_mid ')' + 1`
4238 fi
4239 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4240 done
4241 case $ac_lo in
4242 ?*) ac_cv_sizeof_short=$ac_lo;;
4243 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
4244 See \`config.log' for more details." >&5
4245 echo "$as_me: error: cannot compute sizeof (short), 77
4246 See \`config.log' for more details." >&2;}
4247    { (exit 1); exit 1; }; } ;;
4248 esac
4249 else
4250   if test "$cross_compiling" = yes; then
4251   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
4252 See \`config.log' for more details." >&5
4253 echo "$as_me: error: cannot run test program while cross compiling
4254 See \`config.log' for more details." >&2;}
4255    { (exit 1); exit 1; }; }
4256 else
4257   cat >conftest.$ac_ext <<_ACEOF
4258 /* confdefs.h.  */
4259 _ACEOF
4260 cat confdefs.h >>conftest.$ac_ext
4261 cat >>conftest.$ac_ext <<_ACEOF
4262 /* end confdefs.h.  */
4263 $ac_includes_default
4264 long longval () { return (long) (sizeof (short)); }
4265 unsigned long ulongval () { return (long) (sizeof (short)); }
4266 #include <stdio.h>
4267 #include <stdlib.h>
4268 int
4269 main ()
4270 {
4271
4272   FILE *f = fopen ("conftest.val", "w");
4273   if (! f)
4274     exit (1);
4275   if (((long) (sizeof (short))) < 0)
4276     {
4277       long i = longval ();
4278       if (i != ((long) (sizeof (short))))
4279         exit (1);
4280       fprintf (f, "%ld\n", i);
4281     }
4282   else
4283     {
4284       unsigned long i = ulongval ();
4285       if (i != ((long) (sizeof (short))))
4286         exit (1);
4287       fprintf (f, "%lu\n", i);
4288     }
4289   exit (ferror (f) || fclose (f) != 0);
4290
4291   ;
4292   return 0;
4293 }
4294 _ACEOF
4295 rm -f conftest$ac_exeext
4296 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4297   (eval $ac_link) 2>&5
4298   ac_status=$?
4299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4300   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4301   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4302   (eval $ac_try) 2>&5
4303   ac_status=$?
4304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4305   (exit $ac_status); }; }; then
4306   ac_cv_sizeof_short=`cat conftest.val`
4307 else
4308   echo "$as_me: program exited with status $ac_status" >&5
4309 echo "$as_me: failed program was:" >&5
4310 sed 's/^/| /' conftest.$ac_ext >&5
4311
4312 ( exit $ac_status )
4313 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
4314 See \`config.log' for more details." >&5
4315 echo "$as_me: error: cannot compute sizeof (short), 77
4316 See \`config.log' for more details." >&2;}
4317    { (exit 1); exit 1; }; }
4318 fi
4319 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4320 fi
4321 fi
4322 rm -f conftest.val
4323 else
4324   ac_cv_sizeof_short=0
4325 fi
4326 fi
4327 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
4328 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
4329 cat >>confdefs.h <<_ACEOF
4330 #define SIZEOF_SHORT $ac_cv_sizeof_short
4331 _ACEOF
4332
4333
4334 echo "$as_me:$LINENO: checking for int" >&5
4335 echo $ECHO_N "checking for int... $ECHO_C" >&6
4336 if test "${ac_cv_type_int+set}" = set; then
4337   echo $ECHO_N "(cached) $ECHO_C" >&6
4338 else
4339   cat >conftest.$ac_ext <<_ACEOF
4340 /* confdefs.h.  */
4341 _ACEOF
4342 cat confdefs.h >>conftest.$ac_ext
4343 cat >>conftest.$ac_ext <<_ACEOF
4344 /* end confdefs.h.  */
4345 $ac_includes_default
4346 int
4347 main ()
4348 {
4349 if ((int *) 0)
4350   return 0;
4351 if (sizeof (int))
4352   return 0;
4353   ;
4354   return 0;
4355 }
4356 _ACEOF
4357 rm -f conftest.$ac_objext
4358 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4359   (eval $ac_compile) 2>conftest.er1
4360   ac_status=$?
4361   grep -v '^ *+' conftest.er1 >conftest.err
4362   rm -f conftest.er1
4363   cat conftest.err >&5
4364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4365   (exit $ac_status); } &&
4366          { ac_try='test -z "$ac_c_werror_flag"
4367                          || test ! -s conftest.err'
4368   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4369   (eval $ac_try) 2>&5
4370   ac_status=$?
4371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4372   (exit $ac_status); }; } &&
4373          { ac_try='test -s conftest.$ac_objext'
4374   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4375   (eval $ac_try) 2>&5
4376   ac_status=$?
4377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4378   (exit $ac_status); }; }; then
4379   ac_cv_type_int=yes
4380 else
4381   echo "$as_me: failed program was:" >&5
4382 sed 's/^/| /' conftest.$ac_ext >&5
4383
4384 ac_cv_type_int=no
4385 fi
4386 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4387 fi
4388 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
4389 echo "${ECHO_T}$ac_cv_type_int" >&6
4390
4391 echo "$as_me:$LINENO: checking size of int" >&5
4392 echo $ECHO_N "checking size of int... $ECHO_C" >&6
4393 if test "${ac_cv_sizeof_int+set}" = set; then
4394   echo $ECHO_N "(cached) $ECHO_C" >&6
4395 else
4396   if test "$ac_cv_type_int" = yes; then
4397   # The cast to unsigned long works around a bug in the HP C Compiler
4398   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4399   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4400   # This bug is HP SR number 8606223364.
4401   if test "$cross_compiling" = yes; then
4402   # Depending upon the size, compute the lo and hi bounds.
4403 cat >conftest.$ac_ext <<_ACEOF
4404 /* confdefs.h.  */
4405 _ACEOF
4406 cat confdefs.h >>conftest.$ac_ext
4407 cat >>conftest.$ac_ext <<_ACEOF
4408 /* end confdefs.h.  */
4409 $ac_includes_default
4410 int
4411 main ()
4412 {
4413 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
4414 test_array [0] = 0
4415
4416   ;
4417   return 0;
4418 }
4419 _ACEOF
4420 rm -f conftest.$ac_objext
4421 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4422   (eval $ac_compile) 2>conftest.er1
4423   ac_status=$?
4424   grep -v '^ *+' conftest.er1 >conftest.err
4425   rm -f conftest.er1
4426   cat conftest.err >&5
4427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4428   (exit $ac_status); } &&
4429          { ac_try='test -z "$ac_c_werror_flag"
4430                          || test ! -s conftest.err'
4431   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4432   (eval $ac_try) 2>&5
4433   ac_status=$?
4434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4435   (exit $ac_status); }; } &&
4436          { ac_try='test -s conftest.$ac_objext'
4437   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4438   (eval $ac_try) 2>&5
4439   ac_status=$?
4440   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4441   (exit $ac_status); }; }; then
4442   ac_lo=0 ac_mid=0
4443   while :; do
4444     cat >conftest.$ac_ext <<_ACEOF
4445 /* confdefs.h.  */
4446 _ACEOF
4447 cat confdefs.h >>conftest.$ac_ext
4448 cat >>conftest.$ac_ext <<_ACEOF
4449 /* end confdefs.h.  */
4450 $ac_includes_default
4451 int
4452 main ()
4453 {
4454 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
4455 test_array [0] = 0
4456
4457   ;
4458   return 0;
4459 }
4460 _ACEOF
4461 rm -f conftest.$ac_objext
4462 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4463   (eval $ac_compile) 2>conftest.er1
4464   ac_status=$?
4465   grep -v '^ *+' conftest.er1 >conftest.err
4466   rm -f conftest.er1
4467   cat conftest.err >&5
4468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4469   (exit $ac_status); } &&
4470          { ac_try='test -z "$ac_c_werror_flag"
4471                          || test ! -s conftest.err'
4472   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4473   (eval $ac_try) 2>&5
4474   ac_status=$?
4475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4476   (exit $ac_status); }; } &&
4477          { ac_try='test -s conftest.$ac_objext'
4478   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4479   (eval $ac_try) 2>&5
4480   ac_status=$?
4481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4482   (exit $ac_status); }; }; then
4483   ac_hi=$ac_mid; break
4484 else
4485   echo "$as_me: failed program was:" >&5
4486 sed 's/^/| /' conftest.$ac_ext >&5
4487
4488 ac_lo=`expr $ac_mid + 1`
4489                     if test $ac_lo -le $ac_mid; then
4490                       ac_lo= ac_hi=
4491                       break
4492                     fi
4493                     ac_mid=`expr 2 '*' $ac_mid + 1`
4494 fi
4495 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4496   done
4497 else
4498   echo "$as_me: failed program was:" >&5
4499 sed 's/^/| /' conftest.$ac_ext >&5
4500
4501 cat >conftest.$ac_ext <<_ACEOF
4502 /* confdefs.h.  */
4503 _ACEOF
4504 cat confdefs.h >>conftest.$ac_ext
4505 cat >>conftest.$ac_ext <<_ACEOF
4506 /* end confdefs.h.  */
4507 $ac_includes_default
4508 int
4509 main ()
4510 {
4511 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
4512 test_array [0] = 0
4513
4514   ;
4515   return 0;
4516 }
4517 _ACEOF
4518 rm -f conftest.$ac_objext
4519 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4520   (eval $ac_compile) 2>conftest.er1
4521   ac_status=$?
4522   grep -v '^ *+' conftest.er1 >conftest.err
4523   rm -f conftest.er1
4524   cat conftest.err >&5
4525   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4526   (exit $ac_status); } &&
4527          { ac_try='test -z "$ac_c_werror_flag"
4528                          || test ! -s conftest.err'
4529   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4530   (eval $ac_try) 2>&5
4531   ac_status=$?
4532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4533   (exit $ac_status); }; } &&
4534          { ac_try='test -s conftest.$ac_objext'
4535   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4536   (eval $ac_try) 2>&5
4537   ac_status=$?
4538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4539   (exit $ac_status); }; }; then
4540   ac_hi=-1 ac_mid=-1
4541   while :; do
4542     cat >conftest.$ac_ext <<_ACEOF
4543 /* confdefs.h.  */
4544 _ACEOF
4545 cat confdefs.h >>conftest.$ac_ext
4546 cat >>conftest.$ac_ext <<_ACEOF
4547 /* end confdefs.h.  */
4548 $ac_includes_default
4549 int
4550 main ()
4551 {
4552 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
4553 test_array [0] = 0
4554
4555   ;
4556   return 0;
4557 }
4558 _ACEOF
4559 rm -f conftest.$ac_objext
4560 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4561   (eval $ac_compile) 2>conftest.er1
4562   ac_status=$?
4563   grep -v '^ *+' conftest.er1 >conftest.err
4564   rm -f conftest.er1
4565   cat conftest.err >&5
4566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4567   (exit $ac_status); } &&
4568          { ac_try='test -z "$ac_c_werror_flag"
4569                          || test ! -s conftest.err'
4570   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4571   (eval $ac_try) 2>&5
4572   ac_status=$?
4573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4574   (exit $ac_status); }; } &&
4575          { ac_try='test -s conftest.$ac_objext'
4576   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4577   (eval $ac_try) 2>&5
4578   ac_status=$?
4579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4580   (exit $ac_status); }; }; then
4581   ac_lo=$ac_mid; break
4582 else
4583   echo "$as_me: failed program was:" >&5
4584 sed 's/^/| /' conftest.$ac_ext >&5
4585
4586 ac_hi=`expr '(' $ac_mid ')' - 1`
4587                        if test $ac_mid -le $ac_hi; then
4588                          ac_lo= ac_hi=
4589                          break
4590                        fi
4591                        ac_mid=`expr 2 '*' $ac_mid`
4592 fi
4593 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4594   done
4595 else
4596   echo "$as_me: failed program was:" >&5
4597 sed 's/^/| /' conftest.$ac_ext >&5
4598
4599 ac_lo= ac_hi=
4600 fi
4601 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4602 fi
4603 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4604 # Binary search between lo and hi bounds.
4605 while test "x$ac_lo" != "x$ac_hi"; do
4606   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4607   cat >conftest.$ac_ext <<_ACEOF
4608 /* confdefs.h.  */
4609 _ACEOF
4610 cat confdefs.h >>conftest.$ac_ext
4611 cat >>conftest.$ac_ext <<_ACEOF
4612 /* end confdefs.h.  */
4613 $ac_includes_default
4614 int
4615 main ()
4616 {
4617 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
4618 test_array [0] = 0
4619
4620   ;
4621   return 0;
4622 }
4623 _ACEOF
4624 rm -f conftest.$ac_objext
4625 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4626   (eval $ac_compile) 2>conftest.er1
4627   ac_status=$?
4628   grep -v '^ *+' conftest.er1 >conftest.err
4629   rm -f conftest.er1
4630   cat conftest.err >&5
4631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4632   (exit $ac_status); } &&
4633          { ac_try='test -z "$ac_c_werror_flag"
4634                          || test ! -s conftest.err'
4635   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4636   (eval $ac_try) 2>&5
4637   ac_status=$?
4638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4639   (exit $ac_status); }; } &&
4640          { ac_try='test -s conftest.$ac_objext'
4641   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4642   (eval $ac_try) 2>&5
4643   ac_status=$?
4644   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4645   (exit $ac_status); }; }; then
4646   ac_hi=$ac_mid
4647 else
4648   echo "$as_me: failed program was:" >&5
4649 sed 's/^/| /' conftest.$ac_ext >&5
4650
4651 ac_lo=`expr '(' $ac_mid ')' + 1`
4652 fi
4653 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4654 done
4655 case $ac_lo in
4656 ?*) ac_cv_sizeof_int=$ac_lo;;
4657 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
4658 See \`config.log' for more details." >&5
4659 echo "$as_me: error: cannot compute sizeof (int), 77
4660 See \`config.log' for more details." >&2;}
4661    { (exit 1); exit 1; }; } ;;
4662 esac
4663 else
4664   if test "$cross_compiling" = yes; then
4665   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
4666 See \`config.log' for more details." >&5
4667 echo "$as_me: error: cannot run test program while cross compiling
4668 See \`config.log' for more details." >&2;}
4669    { (exit 1); exit 1; }; }
4670 else
4671   cat >conftest.$ac_ext <<_ACEOF
4672 /* confdefs.h.  */
4673 _ACEOF
4674 cat confdefs.h >>conftest.$ac_ext
4675 cat >>conftest.$ac_ext <<_ACEOF
4676 /* end confdefs.h.  */
4677 $ac_includes_default
4678 long longval () { return (long) (sizeof (int)); }
4679 unsigned long ulongval () { return (long) (sizeof (int)); }
4680 #include <stdio.h>
4681 #include <stdlib.h>
4682 int
4683 main ()
4684 {
4685
4686   FILE *f = fopen ("conftest.val", "w");
4687   if (! f)
4688     exit (1);
4689   if (((long) (sizeof (int))) < 0)
4690     {
4691       long i = longval ();
4692       if (i != ((long) (sizeof (int))))
4693         exit (1);
4694       fprintf (f, "%ld\n", i);
4695     }
4696   else
4697     {
4698       unsigned long i = ulongval ();
4699       if (i != ((long) (sizeof (int))))
4700         exit (1);
4701       fprintf (f, "%lu\n", i);
4702     }
4703   exit (ferror (f) || fclose (f) != 0);
4704
4705   ;
4706   return 0;
4707 }
4708 _ACEOF
4709 rm -f conftest$ac_exeext
4710 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4711   (eval $ac_link) 2>&5
4712   ac_status=$?
4713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4714   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4715   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4716   (eval $ac_try) 2>&5
4717   ac_status=$?
4718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4719   (exit $ac_status); }; }; then
4720   ac_cv_sizeof_int=`cat conftest.val`
4721 else
4722   echo "$as_me: program exited with status $ac_status" >&5
4723 echo "$as_me: failed program was:" >&5
4724 sed 's/^/| /' conftest.$ac_ext >&5
4725
4726 ( exit $ac_status )
4727 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
4728 See \`config.log' for more details." >&5
4729 echo "$as_me: error: cannot compute sizeof (int), 77
4730 See \`config.log' for more details." >&2;}
4731    { (exit 1); exit 1; }; }
4732 fi
4733 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4734 fi
4735 fi
4736 rm -f conftest.val
4737 else
4738   ac_cv_sizeof_int=0
4739 fi
4740 fi
4741 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
4742 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
4743 cat >>confdefs.h <<_ACEOF
4744 #define SIZEOF_INT $ac_cv_sizeof_int
4745 _ACEOF
4746
4747
4748 echo "$as_me:$LINENO: checking for long" >&5
4749 echo $ECHO_N "checking for long... $ECHO_C" >&6
4750 if test "${ac_cv_type_long+set}" = set; then
4751   echo $ECHO_N "(cached) $ECHO_C" >&6
4752 else
4753   cat >conftest.$ac_ext <<_ACEOF
4754 /* confdefs.h.  */
4755 _ACEOF
4756 cat confdefs.h >>conftest.$ac_ext
4757 cat >>conftest.$ac_ext <<_ACEOF
4758 /* end confdefs.h.  */
4759 $ac_includes_default
4760 int
4761 main ()
4762 {
4763 if ((long *) 0)
4764   return 0;
4765 if (sizeof (long))
4766   return 0;
4767   ;
4768   return 0;
4769 }
4770 _ACEOF
4771 rm -f conftest.$ac_objext
4772 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4773   (eval $ac_compile) 2>conftest.er1
4774   ac_status=$?
4775   grep -v '^ *+' conftest.er1 >conftest.err
4776   rm -f conftest.er1
4777   cat conftest.err >&5
4778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4779   (exit $ac_status); } &&
4780          { ac_try='test -z "$ac_c_werror_flag"
4781                          || test ! -s conftest.err'
4782   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4783   (eval $ac_try) 2>&5
4784   ac_status=$?
4785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4786   (exit $ac_status); }; } &&
4787          { ac_try='test -s conftest.$ac_objext'
4788   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4789   (eval $ac_try) 2>&5
4790   ac_status=$?
4791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4792   (exit $ac_status); }; }; then
4793   ac_cv_type_long=yes
4794 else
4795   echo "$as_me: failed program was:" >&5
4796 sed 's/^/| /' conftest.$ac_ext >&5
4797
4798 ac_cv_type_long=no
4799 fi
4800 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4801 fi
4802 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
4803 echo "${ECHO_T}$ac_cv_type_long" >&6
4804
4805 echo "$as_me:$LINENO: checking size of long" >&5
4806 echo $ECHO_N "checking size of long... $ECHO_C" >&6
4807 if test "${ac_cv_sizeof_long+set}" = set; then
4808   echo $ECHO_N "(cached) $ECHO_C" >&6
4809 else
4810   if test "$ac_cv_type_long" = yes; then
4811   # The cast to unsigned long works around a bug in the HP C Compiler
4812   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4813   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4814   # This bug is HP SR number 8606223364.
4815   if test "$cross_compiling" = yes; then
4816   # Depending upon the size, compute the lo and hi bounds.
4817 cat >conftest.$ac_ext <<_ACEOF
4818 /* confdefs.h.  */
4819 _ACEOF
4820 cat confdefs.h >>conftest.$ac_ext
4821 cat >>conftest.$ac_ext <<_ACEOF
4822 /* end confdefs.h.  */
4823 $ac_includes_default
4824 int
4825 main ()
4826 {
4827 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
4828 test_array [0] = 0
4829
4830   ;
4831   return 0;
4832 }
4833 _ACEOF
4834 rm -f conftest.$ac_objext
4835 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4836   (eval $ac_compile) 2>conftest.er1
4837   ac_status=$?
4838   grep -v '^ *+' conftest.er1 >conftest.err
4839   rm -f conftest.er1
4840   cat conftest.err >&5
4841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4842   (exit $ac_status); } &&
4843          { ac_try='test -z "$ac_c_werror_flag"
4844                          || test ! -s conftest.err'
4845   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4846   (eval $ac_try) 2>&5
4847   ac_status=$?
4848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4849   (exit $ac_status); }; } &&
4850          { ac_try='test -s conftest.$ac_objext'
4851   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4852   (eval $ac_try) 2>&5
4853   ac_status=$?
4854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4855   (exit $ac_status); }; }; then
4856   ac_lo=0 ac_mid=0
4857   while :; do
4858     cat >conftest.$ac_ext <<_ACEOF
4859 /* confdefs.h.  */
4860 _ACEOF
4861 cat confdefs.h >>conftest.$ac_ext
4862 cat >>conftest.$ac_ext <<_ACEOF
4863 /* end confdefs.h.  */
4864 $ac_includes_default
4865 int
4866 main ()
4867 {
4868 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
4869 test_array [0] = 0
4870
4871   ;
4872   return 0;
4873 }
4874 _ACEOF
4875 rm -f conftest.$ac_objext
4876 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4877   (eval $ac_compile) 2>conftest.er1
4878   ac_status=$?
4879   grep -v '^ *+' conftest.er1 >conftest.err
4880   rm -f conftest.er1
4881   cat conftest.err >&5
4882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4883   (exit $ac_status); } &&
4884          { ac_try='test -z "$ac_c_werror_flag"
4885                          || test ! -s conftest.err'
4886   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4887   (eval $ac_try) 2>&5
4888   ac_status=$?
4889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4890   (exit $ac_status); }; } &&
4891          { ac_try='test -s conftest.$ac_objext'
4892   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4893   (eval $ac_try) 2>&5
4894   ac_status=$?
4895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4896   (exit $ac_status); }; }; then
4897   ac_hi=$ac_mid; break
4898 else
4899   echo "$as_me: failed program was:" >&5
4900 sed 's/^/| /' conftest.$ac_ext >&5
4901
4902 ac_lo=`expr $ac_mid + 1`
4903                     if test $ac_lo -le $ac_mid; then
4904                       ac_lo= ac_hi=
4905                       break
4906                     fi
4907                     ac_mid=`expr 2 '*' $ac_mid + 1`
4908 fi
4909 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4910   done
4911 else
4912   echo "$as_me: failed program was:" >&5
4913 sed 's/^/| /' conftest.$ac_ext >&5
4914
4915 cat >conftest.$ac_ext <<_ACEOF
4916 /* confdefs.h.  */
4917 _ACEOF
4918 cat confdefs.h >>conftest.$ac_ext
4919 cat >>conftest.$ac_ext <<_ACEOF
4920 /* end confdefs.h.  */
4921 $ac_includes_default
4922 int
4923 main ()
4924 {
4925 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
4926 test_array [0] = 0
4927
4928   ;
4929   return 0;
4930 }
4931 _ACEOF
4932 rm -f conftest.$ac_objext
4933 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4934   (eval $ac_compile) 2>conftest.er1
4935   ac_status=$?
4936   grep -v '^ *+' conftest.er1 >conftest.err
4937   rm -f conftest.er1
4938   cat conftest.err >&5
4939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4940   (exit $ac_status); } &&
4941          { ac_try='test -z "$ac_c_werror_flag"
4942                          || test ! -s conftest.err'
4943   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4944   (eval $ac_try) 2>&5
4945   ac_status=$?
4946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4947   (exit $ac_status); }; } &&
4948          { ac_try='test -s conftest.$ac_objext'
4949   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4950   (eval $ac_try) 2>&5
4951   ac_status=$?
4952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4953   (exit $ac_status); }; }; then
4954   ac_hi=-1 ac_mid=-1
4955   while :; do
4956     cat >conftest.$ac_ext <<_ACEOF
4957 /* confdefs.h.  */
4958 _ACEOF
4959 cat confdefs.h >>conftest.$ac_ext
4960 cat >>conftest.$ac_ext <<_ACEOF
4961 /* end confdefs.h.  */
4962 $ac_includes_default
4963 int
4964 main ()
4965 {
4966 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
4967 test_array [0] = 0
4968
4969   ;
4970   return 0;
4971 }
4972 _ACEOF
4973 rm -f conftest.$ac_objext
4974 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4975   (eval $ac_compile) 2>conftest.er1
4976   ac_status=$?
4977   grep -v '^ *+' conftest.er1 >conftest.err
4978   rm -f conftest.er1
4979   cat conftest.err >&5
4980   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4981   (exit $ac_status); } &&
4982          { ac_try='test -z "$ac_c_werror_flag"
4983                          || test ! -s conftest.err'
4984   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4985   (eval $ac_try) 2>&5
4986   ac_status=$?
4987   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4988   (exit $ac_status); }; } &&
4989          { ac_try='test -s conftest.$ac_objext'
4990   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4991   (eval $ac_try) 2>&5
4992   ac_status=$?
4993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4994   (exit $ac_status); }; }; then
4995   ac_lo=$ac_mid; break
4996 else
4997   echo "$as_me: failed program was:" >&5
4998 sed 's/^/| /' conftest.$ac_ext >&5
4999
5000 ac_hi=`expr '(' $ac_mid ')' - 1`
5001                        if test $ac_mid -le $ac_hi; then
5002                          ac_lo= ac_hi=
5003                          break
5004                        fi
5005                        ac_mid=`expr 2 '*' $ac_mid`
5006 fi
5007 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5008   done
5009 else
5010   echo "$as_me: failed program was:" >&5
5011 sed 's/^/| /' conftest.$ac_ext >&5
5012
5013 ac_lo= ac_hi=
5014 fi
5015 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5016 fi
5017 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5018 # Binary search between lo and hi bounds.
5019 while test "x$ac_lo" != "x$ac_hi"; do
5020   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5021   cat >conftest.$ac_ext <<_ACEOF
5022 /* confdefs.h.  */
5023 _ACEOF
5024 cat confdefs.h >>conftest.$ac_ext
5025 cat >>conftest.$ac_ext <<_ACEOF
5026 /* end confdefs.h.  */
5027 $ac_includes_default
5028 int
5029 main ()
5030 {
5031 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
5032 test_array [0] = 0
5033
5034   ;
5035   return 0;
5036 }
5037 _ACEOF
5038 rm -f conftest.$ac_objext
5039 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5040   (eval $ac_compile) 2>conftest.er1
5041   ac_status=$?
5042   grep -v '^ *+' conftest.er1 >conftest.err
5043   rm -f conftest.er1
5044   cat conftest.err >&5
5045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5046   (exit $ac_status); } &&
5047          { ac_try='test -z "$ac_c_werror_flag"
5048                          || test ! -s conftest.err'
5049   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5050   (eval $ac_try) 2>&5
5051   ac_status=$?
5052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5053   (exit $ac_status); }; } &&
5054          { ac_try='test -s conftest.$ac_objext'
5055   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5056   (eval $ac_try) 2>&5
5057   ac_status=$?
5058   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5059   (exit $ac_status); }; }; then
5060   ac_hi=$ac_mid
5061 else
5062   echo "$as_me: failed program was:" >&5
5063 sed 's/^/| /' conftest.$ac_ext >&5
5064
5065 ac_lo=`expr '(' $ac_mid ')' + 1`
5066 fi
5067 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5068 done
5069 case $ac_lo in
5070 ?*) ac_cv_sizeof_long=$ac_lo;;
5071 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
5072 See \`config.log' for more details." >&5
5073 echo "$as_me: error: cannot compute sizeof (long), 77
5074 See \`config.log' for more details." >&2;}
5075    { (exit 1); exit 1; }; } ;;
5076 esac
5077 else
5078   if test "$cross_compiling" = yes; then
5079   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5080 See \`config.log' for more details." >&5
5081 echo "$as_me: error: cannot run test program while cross compiling
5082 See \`config.log' for more details." >&2;}
5083    { (exit 1); exit 1; }; }
5084 else
5085   cat >conftest.$ac_ext <<_ACEOF
5086 /* confdefs.h.  */
5087 _ACEOF
5088 cat confdefs.h >>conftest.$ac_ext
5089 cat >>conftest.$ac_ext <<_ACEOF
5090 /* end confdefs.h.  */
5091 $ac_includes_default
5092 long longval () { return (long) (sizeof (long)); }
5093 unsigned long ulongval () { return (long) (sizeof (long)); }
5094 #include <stdio.h>
5095 #include <stdlib.h>
5096 int
5097 main ()
5098 {
5099
5100   FILE *f = fopen ("conftest.val", "w");
5101   if (! f)
5102     exit (1);
5103   if (((long) (sizeof (long))) < 0)
5104     {
5105       long i = longval ();
5106       if (i != ((long) (sizeof (long))))
5107         exit (1);
5108       fprintf (f, "%ld\n", i);
5109     }
5110   else
5111     {
5112       unsigned long i = ulongval ();
5113       if (i != ((long) (sizeof (long))))
5114         exit (1);
5115       fprintf (f, "%lu\n", i);
5116     }
5117   exit (ferror (f) || fclose (f) != 0);
5118
5119   ;
5120   return 0;
5121 }
5122 _ACEOF
5123 rm -f conftest$ac_exeext
5124 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5125   (eval $ac_link) 2>&5
5126   ac_status=$?
5127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5128   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5129   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5130   (eval $ac_try) 2>&5
5131   ac_status=$?
5132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5133   (exit $ac_status); }; }; then
5134   ac_cv_sizeof_long=`cat conftest.val`
5135 else
5136   echo "$as_me: program exited with status $ac_status" >&5
5137 echo "$as_me: failed program was:" >&5
5138 sed 's/^/| /' conftest.$ac_ext >&5
5139
5140 ( exit $ac_status )
5141 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
5142 See \`config.log' for more details." >&5
5143 echo "$as_me: error: cannot compute sizeof (long), 77
5144 See \`config.log' for more details." >&2;}
5145    { (exit 1); exit 1; }; }
5146 fi
5147 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5148 fi
5149 fi
5150 rm -f conftest.val
5151 else
5152   ac_cv_sizeof_long=0
5153 fi
5154 fi
5155 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
5156 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
5157 cat >>confdefs.h <<_ACEOF
5158 #define SIZEOF_LONG $ac_cv_sizeof_long
5159 _ACEOF
5160
5161
5162 echo "$as_me:$LINENO: checking for float" >&5
5163 echo $ECHO_N "checking for float... $ECHO_C" >&6
5164 if test "${ac_cv_type_float+set}" = set; then
5165   echo $ECHO_N "(cached) $ECHO_C" >&6
5166 else
5167   cat >conftest.$ac_ext <<_ACEOF
5168 /* confdefs.h.  */
5169 _ACEOF
5170 cat confdefs.h >>conftest.$ac_ext
5171 cat >>conftest.$ac_ext <<_ACEOF
5172 /* end confdefs.h.  */
5173 $ac_includes_default
5174 int
5175 main ()
5176 {
5177 if ((float *) 0)
5178   return 0;
5179 if (sizeof (float))
5180   return 0;
5181   ;
5182   return 0;
5183 }
5184 _ACEOF
5185 rm -f conftest.$ac_objext
5186 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5187   (eval $ac_compile) 2>conftest.er1
5188   ac_status=$?
5189   grep -v '^ *+' conftest.er1 >conftest.err
5190   rm -f conftest.er1
5191   cat conftest.err >&5
5192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5193   (exit $ac_status); } &&
5194          { ac_try='test -z "$ac_c_werror_flag"
5195                          || test ! -s conftest.err'
5196   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5197   (eval $ac_try) 2>&5
5198   ac_status=$?
5199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5200   (exit $ac_status); }; } &&
5201          { ac_try='test -s conftest.$ac_objext'
5202   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5203   (eval $ac_try) 2>&5
5204   ac_status=$?
5205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5206   (exit $ac_status); }; }; then
5207   ac_cv_type_float=yes
5208 else
5209   echo "$as_me: failed program was:" >&5
5210 sed 's/^/| /' conftest.$ac_ext >&5
5211
5212 ac_cv_type_float=no
5213 fi
5214 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5215 fi
5216 echo "$as_me:$LINENO: result: $ac_cv_type_float" >&5
5217 echo "${ECHO_T}$ac_cv_type_float" >&6
5218
5219 echo "$as_me:$LINENO: checking size of float" >&5
5220 echo $ECHO_N "checking size of float... $ECHO_C" >&6
5221 if test "${ac_cv_sizeof_float+set}" = set; then
5222   echo $ECHO_N "(cached) $ECHO_C" >&6
5223 else
5224   if test "$ac_cv_type_float" = yes; then
5225   # The cast to unsigned long works around a bug in the HP C Compiler
5226   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5227   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5228   # This bug is HP SR number 8606223364.
5229   if test "$cross_compiling" = yes; then
5230   # Depending upon the size, compute the lo and hi bounds.
5231 cat >conftest.$ac_ext <<_ACEOF
5232 /* confdefs.h.  */
5233 _ACEOF
5234 cat confdefs.h >>conftest.$ac_ext
5235 cat >>conftest.$ac_ext <<_ACEOF
5236 /* end confdefs.h.  */
5237 $ac_includes_default
5238 int
5239 main ()
5240 {
5241 static int test_array [1 - 2 * !(((long) (sizeof (float))) >= 0)];
5242 test_array [0] = 0
5243
5244   ;
5245   return 0;
5246 }
5247 _ACEOF
5248 rm -f conftest.$ac_objext
5249 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5250   (eval $ac_compile) 2>conftest.er1
5251   ac_status=$?
5252   grep -v '^ *+' conftest.er1 >conftest.err
5253   rm -f conftest.er1
5254   cat conftest.err >&5
5255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5256   (exit $ac_status); } &&
5257          { ac_try='test -z "$ac_c_werror_flag"
5258                          || test ! -s conftest.err'
5259   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5260   (eval $ac_try) 2>&5
5261   ac_status=$?
5262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5263   (exit $ac_status); }; } &&
5264          { ac_try='test -s conftest.$ac_objext'
5265   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5266   (eval $ac_try) 2>&5
5267   ac_status=$?
5268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5269   (exit $ac_status); }; }; then
5270   ac_lo=0 ac_mid=0
5271   while :; do
5272     cat >conftest.$ac_ext <<_ACEOF
5273 /* confdefs.h.  */
5274 _ACEOF
5275 cat confdefs.h >>conftest.$ac_ext
5276 cat >>conftest.$ac_ext <<_ACEOF
5277 /* end confdefs.h.  */
5278 $ac_includes_default
5279 int
5280 main ()
5281 {
5282 static int test_array [1 - 2 * !(((long) (sizeof (float))) <= $ac_mid)];
5283 test_array [0] = 0
5284
5285   ;
5286   return 0;
5287 }
5288 _ACEOF
5289 rm -f conftest.$ac_objext
5290 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5291   (eval $ac_compile) 2>conftest.er1
5292   ac_status=$?
5293   grep -v '^ *+' conftest.er1 >conftest.err
5294   rm -f conftest.er1
5295   cat conftest.err >&5
5296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5297   (exit $ac_status); } &&
5298          { ac_try='test -z "$ac_c_werror_flag"
5299                          || test ! -s conftest.err'
5300   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5301   (eval $ac_try) 2>&5
5302   ac_status=$?
5303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5304   (exit $ac_status); }; } &&
5305          { ac_try='test -s conftest.$ac_objext'
5306   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5307   (eval $ac_try) 2>&5
5308   ac_status=$?
5309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5310   (exit $ac_status); }; }; then
5311   ac_hi=$ac_mid; break
5312 else
5313   echo "$as_me: failed program was:" >&5
5314 sed 's/^/| /' conftest.$ac_ext >&5
5315
5316 ac_lo=`expr $ac_mid + 1`
5317                     if test $ac_lo -le $ac_mid; then
5318                       ac_lo= ac_hi=
5319                       break
5320                     fi
5321                     ac_mid=`expr 2 '*' $ac_mid + 1`
5322 fi
5323 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5324   done
5325 else
5326   echo "$as_me: failed program was:" >&5
5327 sed 's/^/| /' conftest.$ac_ext >&5
5328
5329 cat >conftest.$ac_ext <<_ACEOF
5330 /* confdefs.h.  */
5331 _ACEOF
5332 cat confdefs.h >>conftest.$ac_ext
5333 cat >>conftest.$ac_ext <<_ACEOF
5334 /* end confdefs.h.  */
5335 $ac_includes_default
5336 int
5337 main ()
5338 {
5339 static int test_array [1 - 2 * !(((long) (sizeof (float))) < 0)];
5340 test_array [0] = 0
5341
5342   ;
5343   return 0;
5344 }
5345 _ACEOF
5346 rm -f conftest.$ac_objext
5347 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5348   (eval $ac_compile) 2>conftest.er1
5349   ac_status=$?
5350   grep -v '^ *+' conftest.er1 >conftest.err
5351   rm -f conftest.er1
5352   cat conftest.err >&5
5353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5354   (exit $ac_status); } &&
5355          { ac_try='test -z "$ac_c_werror_flag"
5356                          || test ! -s conftest.err'
5357   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5358   (eval $ac_try) 2>&5
5359   ac_status=$?
5360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5361   (exit $ac_status); }; } &&
5362          { ac_try='test -s conftest.$ac_objext'
5363   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5364   (eval $ac_try) 2>&5
5365   ac_status=$?
5366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5367   (exit $ac_status); }; }; then
5368   ac_hi=-1 ac_mid=-1
5369   while :; do
5370     cat >conftest.$ac_ext <<_ACEOF
5371 /* confdefs.h.  */
5372 _ACEOF
5373 cat confdefs.h >>conftest.$ac_ext
5374 cat >>conftest.$ac_ext <<_ACEOF
5375 /* end confdefs.h.  */
5376 $ac_includes_default
5377 int
5378 main ()
5379 {
5380 static int test_array [1 - 2 * !(((long) (sizeof (float))) >= $ac_mid)];
5381 test_array [0] = 0
5382
5383   ;
5384   return 0;
5385 }
5386 _ACEOF
5387 rm -f conftest.$ac_objext
5388 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5389   (eval $ac_compile) 2>conftest.er1
5390   ac_status=$?
5391   grep -v '^ *+' conftest.er1 >conftest.err
5392   rm -f conftest.er1
5393   cat conftest.err >&5
5394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5395   (exit $ac_status); } &&
5396          { ac_try='test -z "$ac_c_werror_flag"
5397                          || test ! -s conftest.err'
5398   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5399   (eval $ac_try) 2>&5
5400   ac_status=$?
5401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5402   (exit $ac_status); }; } &&
5403          { ac_try='test -s conftest.$ac_objext'
5404   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5405   (eval $ac_try) 2>&5
5406   ac_status=$?
5407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5408   (exit $ac_status); }; }; then
5409   ac_lo=$ac_mid; break
5410 else
5411   echo "$as_me: failed program was:" >&5
5412 sed 's/^/| /' conftest.$ac_ext >&5
5413
5414 ac_hi=`expr '(' $ac_mid ')' - 1`
5415                        if test $ac_mid -le $ac_hi; then
5416                          ac_lo= ac_hi=
5417                          break
5418                        fi
5419                        ac_mid=`expr 2 '*' $ac_mid`
5420 fi
5421 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5422   done
5423 else
5424   echo "$as_me: failed program was:" >&5
5425 sed 's/^/| /' conftest.$ac_ext >&5
5426
5427 ac_lo= ac_hi=
5428 fi
5429 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5430 fi
5431 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5432 # Binary search between lo and hi bounds.
5433 while test "x$ac_lo" != "x$ac_hi"; do
5434   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5435   cat >conftest.$ac_ext <<_ACEOF
5436 /* confdefs.h.  */
5437 _ACEOF
5438 cat confdefs.h >>conftest.$ac_ext
5439 cat >>conftest.$ac_ext <<_ACEOF
5440 /* end confdefs.h.  */
5441 $ac_includes_default
5442 int
5443 main ()
5444 {
5445 static int test_array [1 - 2 * !(((long) (sizeof (float))) <= $ac_mid)];
5446 test_array [0] = 0
5447
5448   ;
5449   return 0;
5450 }
5451 _ACEOF
5452 rm -f conftest.$ac_objext
5453 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5454   (eval $ac_compile) 2>conftest.er1
5455   ac_status=$?
5456   grep -v '^ *+' conftest.er1 >conftest.err
5457   rm -f conftest.er1
5458   cat conftest.err >&5
5459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5460   (exit $ac_status); } &&
5461          { ac_try='test -z "$ac_c_werror_flag"
5462                          || test ! -s conftest.err'
5463   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5464   (eval $ac_try) 2>&5
5465   ac_status=$?
5466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5467   (exit $ac_status); }; } &&
5468          { ac_try='test -s conftest.$ac_objext'
5469   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5470   (eval $ac_try) 2>&5
5471   ac_status=$?
5472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5473   (exit $ac_status); }; }; then
5474   ac_hi=$ac_mid
5475 else
5476   echo "$as_me: failed program was:" >&5
5477 sed 's/^/| /' conftest.$ac_ext >&5
5478
5479 ac_lo=`expr '(' $ac_mid ')' + 1`
5480 fi
5481 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5482 done
5483 case $ac_lo in
5484 ?*) ac_cv_sizeof_float=$ac_lo;;
5485 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (float), 77
5486 See \`config.log' for more details." >&5
5487 echo "$as_me: error: cannot compute sizeof (float), 77
5488 See \`config.log' for more details." >&2;}
5489    { (exit 1); exit 1; }; } ;;
5490 esac
5491 else
5492   if test "$cross_compiling" = yes; then
5493   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5494 See \`config.log' for more details." >&5
5495 echo "$as_me: error: cannot run test program while cross compiling
5496 See \`config.log' for more details." >&2;}
5497    { (exit 1); exit 1; }; }
5498 else
5499   cat >conftest.$ac_ext <<_ACEOF
5500 /* confdefs.h.  */
5501 _ACEOF
5502 cat confdefs.h >>conftest.$ac_ext
5503 cat >>conftest.$ac_ext <<_ACEOF
5504 /* end confdefs.h.  */
5505 $ac_includes_default
5506 long longval () { return (long) (sizeof (float)); }
5507 unsigned long ulongval () { return (long) (sizeof (float)); }
5508 #include <stdio.h>
5509 #include <stdlib.h>
5510 int
5511 main ()
5512 {
5513
5514   FILE *f = fopen ("conftest.val", "w");
5515   if (! f)
5516     exit (1);
5517   if (((long) (sizeof (float))) < 0)
5518     {
5519       long i = longval ();
5520       if (i != ((long) (sizeof (float))))
5521         exit (1);
5522       fprintf (f, "%ld\n", i);
5523     }
5524   else
5525     {
5526       unsigned long i = ulongval ();
5527       if (i != ((long) (sizeof (float))))
5528         exit (1);
5529       fprintf (f, "%lu\n", i);
5530     }
5531   exit (ferror (f) || fclose (f) != 0);
5532
5533   ;
5534   return 0;
5535 }
5536 _ACEOF
5537 rm -f conftest$ac_exeext
5538 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5539   (eval $ac_link) 2>&5
5540   ac_status=$?
5541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5542   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5543   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5544   (eval $ac_try) 2>&5
5545   ac_status=$?
5546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5547   (exit $ac_status); }; }; then
5548   ac_cv_sizeof_float=`cat conftest.val`
5549 else
5550   echo "$as_me: program exited with status $ac_status" >&5
5551 echo "$as_me: failed program was:" >&5
5552 sed 's/^/| /' conftest.$ac_ext >&5
5553
5554 ( exit $ac_status )
5555 { { echo "$as_me:$LINENO: error: cannot compute sizeof (float), 77
5556 See \`config.log' for more details." >&5
5557 echo "$as_me: error: cannot compute sizeof (float), 77
5558 See \`config.log' for more details." >&2;}
5559    { (exit 1); exit 1; }; }
5560 fi
5561 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5562 fi
5563 fi
5564 rm -f conftest.val
5565 else
5566   ac_cv_sizeof_float=0
5567 fi
5568 fi
5569 echo "$as_me:$LINENO: result: $ac_cv_sizeof_float" >&5
5570 echo "${ECHO_T}$ac_cv_sizeof_float" >&6
5571 cat >>confdefs.h <<_ACEOF
5572 #define SIZEOF_FLOAT $ac_cv_sizeof_float
5573 _ACEOF
5574
5575
5576 echo "$as_me:$LINENO: checking for double" >&5
5577 echo $ECHO_N "checking for double... $ECHO_C" >&6
5578 if test "${ac_cv_type_double+set}" = set; then
5579   echo $ECHO_N "(cached) $ECHO_C" >&6
5580 else
5581   cat >conftest.$ac_ext <<_ACEOF
5582 /* confdefs.h.  */
5583 _ACEOF
5584 cat confdefs.h >>conftest.$ac_ext
5585 cat >>conftest.$ac_ext <<_ACEOF
5586 /* end confdefs.h.  */
5587 $ac_includes_default
5588 int
5589 main ()
5590 {
5591 if ((double *) 0)
5592   return 0;
5593 if (sizeof (double))
5594   return 0;
5595   ;
5596   return 0;
5597 }
5598 _ACEOF
5599 rm -f conftest.$ac_objext
5600 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5601   (eval $ac_compile) 2>conftest.er1
5602   ac_status=$?
5603   grep -v '^ *+' conftest.er1 >conftest.err
5604   rm -f conftest.er1
5605   cat conftest.err >&5
5606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5607   (exit $ac_status); } &&
5608          { ac_try='test -z "$ac_c_werror_flag"
5609                          || test ! -s conftest.err'
5610   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5611   (eval $ac_try) 2>&5
5612   ac_status=$?
5613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5614   (exit $ac_status); }; } &&
5615          { ac_try='test -s conftest.$ac_objext'
5616   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5617   (eval $ac_try) 2>&5
5618   ac_status=$?
5619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5620   (exit $ac_status); }; }; then
5621   ac_cv_type_double=yes
5622 else
5623   echo "$as_me: failed program was:" >&5
5624 sed 's/^/| /' conftest.$ac_ext >&5
5625
5626 ac_cv_type_double=no
5627 fi
5628 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5629 fi
5630 echo "$as_me:$LINENO: result: $ac_cv_type_double" >&5
5631 echo "${ECHO_T}$ac_cv_type_double" >&6
5632
5633 echo "$as_me:$LINENO: checking size of double" >&5
5634 echo $ECHO_N "checking size of double... $ECHO_C" >&6
5635 if test "${ac_cv_sizeof_double+set}" = set; then
5636   echo $ECHO_N "(cached) $ECHO_C" >&6
5637 else
5638   if test "$ac_cv_type_double" = yes; then
5639   # The cast to unsigned long works around a bug in the HP C Compiler
5640   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5641   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5642   # This bug is HP SR number 8606223364.
5643   if test "$cross_compiling" = yes; then
5644   # Depending upon the size, compute the lo and hi bounds.
5645 cat >conftest.$ac_ext <<_ACEOF
5646 /* confdefs.h.  */
5647 _ACEOF
5648 cat confdefs.h >>conftest.$ac_ext
5649 cat >>conftest.$ac_ext <<_ACEOF
5650 /* end confdefs.h.  */
5651 $ac_includes_default
5652 int
5653 main ()
5654 {
5655 static int test_array [1 - 2 * !(((long) (sizeof (double))) >= 0)];
5656 test_array [0] = 0
5657
5658   ;
5659   return 0;
5660 }
5661 _ACEOF
5662 rm -f conftest.$ac_objext
5663 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5664   (eval $ac_compile) 2>conftest.er1
5665   ac_status=$?
5666   grep -v '^ *+' conftest.er1 >conftest.err
5667   rm -f conftest.er1
5668   cat conftest.err >&5
5669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5670   (exit $ac_status); } &&
5671          { ac_try='test -z "$ac_c_werror_flag"
5672                          || test ! -s conftest.err'
5673   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5674   (eval $ac_try) 2>&5
5675   ac_status=$?
5676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5677   (exit $ac_status); }; } &&
5678          { ac_try='test -s conftest.$ac_objext'
5679   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5680   (eval $ac_try) 2>&5
5681   ac_status=$?
5682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5683   (exit $ac_status); }; }; then
5684   ac_lo=0 ac_mid=0
5685   while :; do
5686     cat >conftest.$ac_ext <<_ACEOF
5687 /* confdefs.h.  */
5688 _ACEOF
5689 cat confdefs.h >>conftest.$ac_ext
5690 cat >>conftest.$ac_ext <<_ACEOF
5691 /* end confdefs.h.  */
5692 $ac_includes_default
5693 int
5694 main ()
5695 {
5696 static int test_array [1 - 2 * !(((long) (sizeof (double))) <= $ac_mid)];
5697 test_array [0] = 0
5698
5699   ;
5700   return 0;
5701 }
5702 _ACEOF
5703 rm -f conftest.$ac_objext
5704 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5705   (eval $ac_compile) 2>conftest.er1
5706   ac_status=$?
5707   grep -v '^ *+' conftest.er1 >conftest.err
5708   rm -f conftest.er1
5709   cat conftest.err >&5
5710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5711   (exit $ac_status); } &&
5712          { ac_try='test -z "$ac_c_werror_flag"
5713                          || test ! -s conftest.err'
5714   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5715   (eval $ac_try) 2>&5
5716   ac_status=$?
5717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5718   (exit $ac_status); }; } &&
5719          { ac_try='test -s conftest.$ac_objext'
5720   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5721   (eval $ac_try) 2>&5
5722   ac_status=$?
5723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5724   (exit $ac_status); }; }; then
5725   ac_hi=$ac_mid; break
5726 else
5727   echo "$as_me: failed program was:" >&5
5728 sed 's/^/| /' conftest.$ac_ext >&5
5729
5730 ac_lo=`expr $ac_mid + 1`
5731                     if test $ac_lo -le $ac_mid; then
5732                       ac_lo= ac_hi=
5733                       break
5734                     fi
5735                     ac_mid=`expr 2 '*' $ac_mid + 1`
5736 fi
5737 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5738   done
5739 else
5740   echo "$as_me: failed program was:" >&5
5741 sed 's/^/| /' conftest.$ac_ext >&5
5742
5743 cat >conftest.$ac_ext <<_ACEOF
5744 /* confdefs.h.  */
5745 _ACEOF
5746 cat confdefs.h >>conftest.$ac_ext
5747 cat >>conftest.$ac_ext <<_ACEOF
5748 /* end confdefs.h.  */
5749 $ac_includes_default
5750 int
5751 main ()
5752 {
5753 static int test_array [1 - 2 * !(((long) (sizeof (double))) < 0)];
5754 test_array [0] = 0
5755
5756   ;
5757   return 0;
5758 }
5759 _ACEOF
5760 rm -f conftest.$ac_objext
5761 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5762   (eval $ac_compile) 2>conftest.er1
5763   ac_status=$?
5764   grep -v '^ *+' conftest.er1 >conftest.err
5765   rm -f conftest.er1
5766   cat conftest.err >&5
5767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5768   (exit $ac_status); } &&
5769          { ac_try='test -z "$ac_c_werror_flag"
5770                          || test ! -s conftest.err'
5771   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5772   (eval $ac_try) 2>&5
5773   ac_status=$?
5774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5775   (exit $ac_status); }; } &&
5776          { ac_try='test -s conftest.$ac_objext'
5777   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5778   (eval $ac_try) 2>&5
5779   ac_status=$?
5780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5781   (exit $ac_status); }; }; then
5782   ac_hi=-1 ac_mid=-1
5783   while :; do
5784     cat >conftest.$ac_ext <<_ACEOF
5785 /* confdefs.h.  */
5786 _ACEOF
5787 cat confdefs.h >>conftest.$ac_ext
5788 cat >>conftest.$ac_ext <<_ACEOF
5789 /* end confdefs.h.  */
5790 $ac_includes_default
5791 int
5792 main ()
5793 {
5794 static int test_array [1 - 2 * !(((long) (sizeof (double))) >= $ac_mid)];
5795 test_array [0] = 0
5796
5797   ;
5798   return 0;
5799 }
5800 _ACEOF
5801 rm -f conftest.$ac_objext
5802 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5803   (eval $ac_compile) 2>conftest.er1
5804   ac_status=$?
5805   grep -v '^ *+' conftest.er1 >conftest.err
5806   rm -f conftest.er1
5807   cat conftest.err >&5
5808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5809   (exit $ac_status); } &&
5810          { ac_try='test -z "$ac_c_werror_flag"
5811                          || test ! -s conftest.err'
5812   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5813   (eval $ac_try) 2>&5
5814   ac_status=$?
5815   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5816   (exit $ac_status); }; } &&
5817          { ac_try='test -s conftest.$ac_objext'
5818   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5819   (eval $ac_try) 2>&5
5820   ac_status=$?
5821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5822   (exit $ac_status); }; }; then
5823   ac_lo=$ac_mid; break
5824 else
5825   echo "$as_me: failed program was:" >&5
5826 sed 's/^/| /' conftest.$ac_ext >&5
5827
5828 ac_hi=`expr '(' $ac_mid ')' - 1`
5829                        if test $ac_mid -le $ac_hi; then
5830                          ac_lo= ac_hi=
5831                          break
5832                        fi
5833                        ac_mid=`expr 2 '*' $ac_mid`
5834 fi
5835 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5836   done
5837 else
5838   echo "$as_me: failed program was:" >&5
5839 sed 's/^/| /' conftest.$ac_ext >&5
5840
5841 ac_lo= ac_hi=
5842 fi
5843 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5844 fi
5845 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5846 # Binary search between lo and hi bounds.
5847 while test "x$ac_lo" != "x$ac_hi"; do
5848   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5849   cat >conftest.$ac_ext <<_ACEOF
5850 /* confdefs.h.  */
5851 _ACEOF
5852 cat confdefs.h >>conftest.$ac_ext
5853 cat >>conftest.$ac_ext <<_ACEOF
5854 /* end confdefs.h.  */
5855 $ac_includes_default
5856 int
5857 main ()
5858 {
5859 static int test_array [1 - 2 * !(((long) (sizeof (double))) <= $ac_mid)];
5860 test_array [0] = 0
5861
5862   ;
5863   return 0;
5864 }
5865 _ACEOF
5866 rm -f conftest.$ac_objext
5867 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5868   (eval $ac_compile) 2>conftest.er1
5869   ac_status=$?
5870   grep -v '^ *+' conftest.er1 >conftest.err
5871   rm -f conftest.er1
5872   cat conftest.err >&5
5873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5874   (exit $ac_status); } &&
5875          { ac_try='test -z "$ac_c_werror_flag"
5876                          || test ! -s conftest.err'
5877   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5878   (eval $ac_try) 2>&5
5879   ac_status=$?
5880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5881   (exit $ac_status); }; } &&
5882          { ac_try='test -s conftest.$ac_objext'
5883   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5884   (eval $ac_try) 2>&5
5885   ac_status=$?
5886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5887   (exit $ac_status); }; }; then
5888   ac_hi=$ac_mid
5889 else
5890   echo "$as_me: failed program was:" >&5
5891 sed 's/^/| /' conftest.$ac_ext >&5
5892
5893 ac_lo=`expr '(' $ac_mid ')' + 1`
5894 fi
5895 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5896 done
5897 case $ac_lo in
5898 ?*) ac_cv_sizeof_double=$ac_lo;;
5899 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (double), 77
5900 See \`config.log' for more details." >&5
5901 echo "$as_me: error: cannot compute sizeof (double), 77
5902 See \`config.log' for more details." >&2;}
5903    { (exit 1); exit 1; }; } ;;
5904 esac
5905 else
5906   if test "$cross_compiling" = yes; then
5907   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5908 See \`config.log' for more details." >&5
5909 echo "$as_me: error: cannot run test program while cross compiling
5910 See \`config.log' for more details." >&2;}
5911    { (exit 1); exit 1; }; }
5912 else
5913   cat >conftest.$ac_ext <<_ACEOF
5914 /* confdefs.h.  */
5915 _ACEOF
5916 cat confdefs.h >>conftest.$ac_ext
5917 cat >>conftest.$ac_ext <<_ACEOF
5918 /* end confdefs.h.  */
5919 $ac_includes_default
5920 long longval () { return (long) (sizeof (double)); }
5921 unsigned long ulongval () { return (long) (sizeof (double)); }
5922 #include <stdio.h>
5923 #include <stdlib.h>
5924 int
5925 main ()
5926 {
5927
5928   FILE *f = fopen ("conftest.val", "w");
5929   if (! f)
5930     exit (1);
5931   if (((long) (sizeof (double))) < 0)
5932     {
5933       long i = longval ();
5934       if (i != ((long) (sizeof (double))))
5935         exit (1);
5936       fprintf (f, "%ld\n", i);
5937     }
5938   else
5939     {
5940       unsigned long i = ulongval ();
5941       if (i != ((long) (sizeof (double))))
5942         exit (1);
5943       fprintf (f, "%lu\n", i);
5944     }
5945   exit (ferror (f) || fclose (f) != 0);
5946
5947   ;
5948   return 0;
5949 }
5950 _ACEOF
5951 rm -f conftest$ac_exeext
5952 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5953   (eval $ac_link) 2>&5
5954   ac_status=$?
5955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5956   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5957   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5958   (eval $ac_try) 2>&5
5959   ac_status=$?
5960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5961   (exit $ac_status); }; }; then
5962   ac_cv_sizeof_double=`cat conftest.val`
5963 else
5964   echo "$as_me: program exited with status $ac_status" >&5
5965 echo "$as_me: failed program was:" >&5
5966 sed 's/^/| /' conftest.$ac_ext >&5
5967
5968 ( exit $ac_status )
5969 { { echo "$as_me:$LINENO: error: cannot compute sizeof (double), 77
5970 See \`config.log' for more details." >&5
5971 echo "$as_me: error: cannot compute sizeof (double), 77
5972 See \`config.log' for more details." >&2;}
5973    { (exit 1); exit 1; }; }
5974 fi
5975 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5976 fi
5977 fi
5978 rm -f conftest.val
5979 else
5980   ac_cv_sizeof_double=0
5981 fi
5982 fi
5983 echo "$as_me:$LINENO: result: $ac_cv_sizeof_double" >&5
5984 echo "${ECHO_T}$ac_cv_sizeof_double" >&6
5985 cat >>confdefs.h <<_ACEOF
5986 #define SIZEOF_DOUBLE $ac_cv_sizeof_double
5987 _ACEOF
5988
5989
5990 echo "$as_me:$LINENO: checking for void*" >&5
5991 echo $ECHO_N "checking for void*... $ECHO_C" >&6
5992 if test "${ac_cv_type_voidp+set}" = set; then
5993   echo $ECHO_N "(cached) $ECHO_C" >&6
5994 else
5995   cat >conftest.$ac_ext <<_ACEOF
5996 /* confdefs.h.  */
5997 _ACEOF
5998 cat confdefs.h >>conftest.$ac_ext
5999 cat >>conftest.$ac_ext <<_ACEOF
6000 /* end confdefs.h.  */
6001 $ac_includes_default
6002 int
6003 main ()
6004 {
6005 if ((void* *) 0)
6006   return 0;
6007 if (sizeof (void*))
6008   return 0;
6009   ;
6010   return 0;
6011 }
6012 _ACEOF
6013 rm -f conftest.$ac_objext
6014 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6015   (eval $ac_compile) 2>conftest.er1
6016   ac_status=$?
6017   grep -v '^ *+' conftest.er1 >conftest.err
6018   rm -f conftest.er1
6019   cat conftest.err >&5
6020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6021   (exit $ac_status); } &&
6022          { ac_try='test -z "$ac_c_werror_flag"
6023                          || test ! -s conftest.err'
6024   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6025   (eval $ac_try) 2>&5
6026   ac_status=$?
6027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6028   (exit $ac_status); }; } &&
6029          { ac_try='test -s conftest.$ac_objext'
6030   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6031   (eval $ac_try) 2>&5
6032   ac_status=$?
6033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6034   (exit $ac_status); }; }; then
6035   ac_cv_type_voidp=yes
6036 else
6037   echo "$as_me: failed program was:" >&5
6038 sed 's/^/| /' conftest.$ac_ext >&5
6039
6040 ac_cv_type_voidp=no
6041 fi
6042 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6043 fi
6044 echo "$as_me:$LINENO: result: $ac_cv_type_voidp" >&5
6045 echo "${ECHO_T}$ac_cv_type_voidp" >&6
6046
6047 echo "$as_me:$LINENO: checking size of void*" >&5
6048 echo $ECHO_N "checking size of void*... $ECHO_C" >&6
6049 if test "${ac_cv_sizeof_voidp+set}" = set; then
6050   echo $ECHO_N "(cached) $ECHO_C" >&6
6051 else
6052   if test "$ac_cv_type_voidp" = yes; then
6053   # The cast to unsigned long works around a bug in the HP C Compiler
6054   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6055   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6056   # This bug is HP SR number 8606223364.
6057   if test "$cross_compiling" = yes; then
6058   # Depending upon the size, compute the lo and hi bounds.
6059 cat >conftest.$ac_ext <<_ACEOF
6060 /* confdefs.h.  */
6061 _ACEOF
6062 cat confdefs.h >>conftest.$ac_ext
6063 cat >>conftest.$ac_ext <<_ACEOF
6064 /* end confdefs.h.  */
6065 $ac_includes_default
6066 int
6067 main ()
6068 {
6069 static int test_array [1 - 2 * !(((long) (sizeof (void*))) >= 0)];
6070 test_array [0] = 0
6071
6072   ;
6073   return 0;
6074 }
6075 _ACEOF
6076 rm -f conftest.$ac_objext
6077 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6078   (eval $ac_compile) 2>conftest.er1
6079   ac_status=$?
6080   grep -v '^ *+' conftest.er1 >conftest.err
6081   rm -f conftest.er1
6082   cat conftest.err >&5
6083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6084   (exit $ac_status); } &&
6085          { ac_try='test -z "$ac_c_werror_flag"
6086                          || test ! -s conftest.err'
6087   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6088   (eval $ac_try) 2>&5
6089   ac_status=$?
6090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6091   (exit $ac_status); }; } &&
6092          { ac_try='test -s conftest.$ac_objext'
6093   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6094   (eval $ac_try) 2>&5
6095   ac_status=$?
6096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6097   (exit $ac_status); }; }; then
6098   ac_lo=0 ac_mid=0
6099   while :; do
6100     cat >conftest.$ac_ext <<_ACEOF
6101 /* confdefs.h.  */
6102 _ACEOF
6103 cat confdefs.h >>conftest.$ac_ext
6104 cat >>conftest.$ac_ext <<_ACEOF
6105 /* end confdefs.h.  */
6106 $ac_includes_default
6107 int
6108 main ()
6109 {
6110 static int test_array [1 - 2 * !(((long) (sizeof (void*))) <= $ac_mid)];
6111 test_array [0] = 0
6112
6113   ;
6114   return 0;
6115 }
6116 _ACEOF
6117 rm -f conftest.$ac_objext
6118 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6119   (eval $ac_compile) 2>conftest.er1
6120   ac_status=$?
6121   grep -v '^ *+' conftest.er1 >conftest.err
6122   rm -f conftest.er1
6123   cat conftest.err >&5
6124   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6125   (exit $ac_status); } &&
6126          { ac_try='test -z "$ac_c_werror_flag"
6127                          || test ! -s conftest.err'
6128   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6129   (eval $ac_try) 2>&5
6130   ac_status=$?
6131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6132   (exit $ac_status); }; } &&
6133          { ac_try='test -s conftest.$ac_objext'
6134   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6135   (eval $ac_try) 2>&5
6136   ac_status=$?
6137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6138   (exit $ac_status); }; }; then
6139   ac_hi=$ac_mid; break
6140 else
6141   echo "$as_me: failed program was:" >&5
6142 sed 's/^/| /' conftest.$ac_ext >&5
6143
6144 ac_lo=`expr $ac_mid + 1`
6145                     if test $ac_lo -le $ac_mid; then
6146                       ac_lo= ac_hi=
6147                       break
6148                     fi
6149                     ac_mid=`expr 2 '*' $ac_mid + 1`
6150 fi
6151 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6152   done
6153 else
6154   echo "$as_me: failed program was:" >&5
6155 sed 's/^/| /' conftest.$ac_ext >&5
6156
6157 cat >conftest.$ac_ext <<_ACEOF
6158 /* confdefs.h.  */
6159 _ACEOF
6160 cat confdefs.h >>conftest.$ac_ext
6161 cat >>conftest.$ac_ext <<_ACEOF
6162 /* end confdefs.h.  */
6163 $ac_includes_default
6164 int
6165 main ()
6166 {
6167 static int test_array [1 - 2 * !(((long) (sizeof (void*))) < 0)];
6168 test_array [0] = 0
6169
6170   ;
6171   return 0;
6172 }
6173 _ACEOF
6174 rm -f conftest.$ac_objext
6175 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6176   (eval $ac_compile) 2>conftest.er1
6177   ac_status=$?
6178   grep -v '^ *+' conftest.er1 >conftest.err
6179   rm -f conftest.er1
6180   cat conftest.err >&5
6181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6182   (exit $ac_status); } &&
6183          { ac_try='test -z "$ac_c_werror_flag"
6184                          || test ! -s conftest.err'
6185   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6186   (eval $ac_try) 2>&5
6187   ac_status=$?
6188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6189   (exit $ac_status); }; } &&
6190          { ac_try='test -s conftest.$ac_objext'
6191   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6192   (eval $ac_try) 2>&5
6193   ac_status=$?
6194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6195   (exit $ac_status); }; }; then
6196   ac_hi=-1 ac_mid=-1
6197   while :; do
6198     cat >conftest.$ac_ext <<_ACEOF
6199 /* confdefs.h.  */
6200 _ACEOF
6201 cat confdefs.h >>conftest.$ac_ext
6202 cat >>conftest.$ac_ext <<_ACEOF
6203 /* end confdefs.h.  */
6204 $ac_includes_default
6205 int
6206 main ()
6207 {
6208 static int test_array [1 - 2 * !(((long) (sizeof (void*))) >= $ac_mid)];
6209 test_array [0] = 0
6210
6211   ;
6212   return 0;
6213 }
6214 _ACEOF
6215 rm -f conftest.$ac_objext
6216 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6217   (eval $ac_compile) 2>conftest.er1
6218   ac_status=$?
6219   grep -v '^ *+' conftest.er1 >conftest.err
6220   rm -f conftest.er1
6221   cat conftest.err >&5
6222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6223   (exit $ac_status); } &&
6224          { ac_try='test -z "$ac_c_werror_flag"
6225                          || test ! -s conftest.err'
6226   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6227   (eval $ac_try) 2>&5
6228   ac_status=$?
6229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6230   (exit $ac_status); }; } &&
6231          { ac_try='test -s conftest.$ac_objext'
6232   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6233   (eval $ac_try) 2>&5
6234   ac_status=$?
6235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6236   (exit $ac_status); }; }; then
6237   ac_lo=$ac_mid; break
6238 else
6239   echo "$as_me: failed program was:" >&5
6240 sed 's/^/| /' conftest.$ac_ext >&5
6241
6242 ac_hi=`expr '(' $ac_mid ')' - 1`
6243                        if test $ac_mid -le $ac_hi; then
6244                          ac_lo= ac_hi=
6245                          break
6246                        fi
6247                        ac_mid=`expr 2 '*' $ac_mid`
6248 fi
6249 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6250   done
6251 else
6252   echo "$as_me: failed program was:" >&5
6253 sed 's/^/| /' conftest.$ac_ext >&5
6254
6255 ac_lo= ac_hi=
6256 fi
6257 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6258 fi
6259 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6260 # Binary search between lo and hi bounds.
6261 while test "x$ac_lo" != "x$ac_hi"; do
6262   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6263   cat >conftest.$ac_ext <<_ACEOF
6264 /* confdefs.h.  */
6265 _ACEOF
6266 cat confdefs.h >>conftest.$ac_ext
6267 cat >>conftest.$ac_ext <<_ACEOF
6268 /* end confdefs.h.  */
6269 $ac_includes_default
6270 int
6271 main ()
6272 {
6273 static int test_array [1 - 2 * !(((long) (sizeof (void*))) <= $ac_mid)];
6274 test_array [0] = 0
6275
6276   ;
6277   return 0;
6278 }
6279 _ACEOF
6280 rm -f conftest.$ac_objext
6281 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6282   (eval $ac_compile) 2>conftest.er1
6283   ac_status=$?
6284   grep -v '^ *+' conftest.er1 >conftest.err
6285   rm -f conftest.er1
6286   cat conftest.err >&5
6287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6288   (exit $ac_status); } &&
6289          { ac_try='test -z "$ac_c_werror_flag"
6290                          || test ! -s conftest.err'
6291   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6292   (eval $ac_try) 2>&5
6293   ac_status=$?
6294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6295   (exit $ac_status); }; } &&
6296          { ac_try='test -s conftest.$ac_objext'
6297   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6298   (eval $ac_try) 2>&5
6299   ac_status=$?
6300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6301   (exit $ac_status); }; }; then
6302   ac_hi=$ac_mid
6303 else
6304   echo "$as_me: failed program was:" >&5
6305 sed 's/^/| /' conftest.$ac_ext >&5
6306
6307 ac_lo=`expr '(' $ac_mid ')' + 1`
6308 fi
6309 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6310 done
6311 case $ac_lo in
6312 ?*) ac_cv_sizeof_voidp=$ac_lo;;
6313 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void*), 77
6314 See \`config.log' for more details." >&5
6315 echo "$as_me: error: cannot compute sizeof (void*), 77
6316 See \`config.log' for more details." >&2;}
6317    { (exit 1); exit 1; }; } ;;
6318 esac
6319 else
6320   if test "$cross_compiling" = yes; then
6321   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
6322 See \`config.log' for more details." >&5
6323 echo "$as_me: error: cannot run test program while cross compiling
6324 See \`config.log' for more details." >&2;}
6325    { (exit 1); exit 1; }; }
6326 else
6327   cat >conftest.$ac_ext <<_ACEOF
6328 /* confdefs.h.  */
6329 _ACEOF
6330 cat confdefs.h >>conftest.$ac_ext
6331 cat >>conftest.$ac_ext <<_ACEOF
6332 /* end confdefs.h.  */
6333 $ac_includes_default
6334 long longval () { return (long) (sizeof (void*)); }
6335 unsigned long ulongval () { return (long) (sizeof (void*)); }
6336 #include <stdio.h>
6337 #include <stdlib.h>
6338 int
6339 main ()
6340 {
6341
6342   FILE *f = fopen ("conftest.val", "w");
6343   if (! f)
6344     exit (1);
6345   if (((long) (sizeof (void*))) < 0)
6346     {
6347       long i = longval ();
6348       if (i != ((long) (sizeof (void*))))
6349         exit (1);
6350       fprintf (f, "%ld\n", i);
6351     }
6352   else
6353     {
6354       unsigned long i = ulongval ();
6355       if (i != ((long) (sizeof (void*))))
6356         exit (1);
6357       fprintf (f, "%lu\n", i);
6358     }
6359   exit (ferror (f) || fclose (f) != 0);
6360
6361   ;
6362   return 0;
6363 }
6364 _ACEOF
6365 rm -f conftest$ac_exeext
6366 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6367   (eval $ac_link) 2>&5
6368   ac_status=$?
6369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6370   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6371   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6372   (eval $ac_try) 2>&5
6373   ac_status=$?
6374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6375   (exit $ac_status); }; }; then
6376   ac_cv_sizeof_voidp=`cat conftest.val`
6377 else
6378   echo "$as_me: program exited with status $ac_status" >&5
6379 echo "$as_me: failed program was:" >&5
6380 sed 's/^/| /' conftest.$ac_ext >&5
6381
6382 ( exit $ac_status )
6383 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void*), 77
6384 See \`config.log' for more details." >&5
6385 echo "$as_me: error: cannot compute sizeof (void*), 77
6386 See \`config.log' for more details." >&2;}
6387    { (exit 1); exit 1; }; }
6388 fi
6389 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6390 fi
6391 fi
6392 rm -f conftest.val
6393 else
6394   ac_cv_sizeof_voidp=0
6395 fi
6396 fi
6397 echo "$as_me:$LINENO: result: $ac_cv_sizeof_voidp" >&5
6398 echo "${ECHO_T}$ac_cv_sizeof_voidp" >&6
6399 cat >>confdefs.h <<_ACEOF
6400 #define SIZEOF_VOIDP $ac_cv_sizeof_voidp
6401 _ACEOF
6402
6403
6404 echo "$as_me:$LINENO: checking for size_t" >&5
6405 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
6406 if test "${ac_cv_type_size_t+set}" = set; then
6407   echo $ECHO_N "(cached) $ECHO_C" >&6
6408 else
6409   cat >conftest.$ac_ext <<_ACEOF
6410 /* confdefs.h.  */
6411 _ACEOF
6412 cat confdefs.h >>conftest.$ac_ext
6413 cat >>conftest.$ac_ext <<_ACEOF
6414 /* end confdefs.h.  */
6415 $ac_includes_default
6416 int
6417 main ()
6418 {
6419 if ((size_t *) 0)
6420   return 0;
6421 if (sizeof (size_t))
6422   return 0;
6423   ;
6424   return 0;
6425 }
6426 _ACEOF
6427 rm -f conftest.$ac_objext
6428 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6429   (eval $ac_compile) 2>conftest.er1
6430   ac_status=$?
6431   grep -v '^ *+' conftest.er1 >conftest.err
6432   rm -f conftest.er1
6433   cat conftest.err >&5
6434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6435   (exit $ac_status); } &&
6436          { ac_try='test -z "$ac_c_werror_flag"
6437                          || test ! -s conftest.err'
6438   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6439   (eval $ac_try) 2>&5
6440   ac_status=$?
6441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6442   (exit $ac_status); }; } &&
6443          { ac_try='test -s conftest.$ac_objext'
6444   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6445   (eval $ac_try) 2>&5
6446   ac_status=$?
6447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6448   (exit $ac_status); }; }; then
6449   ac_cv_type_size_t=yes
6450 else
6451   echo "$as_me: failed program was:" >&5
6452 sed 's/^/| /' conftest.$ac_ext >&5
6453
6454 ac_cv_type_size_t=no
6455 fi
6456 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6457 fi
6458 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
6459 echo "${ECHO_T}$ac_cv_type_size_t" >&6
6460
6461 echo "$as_me:$LINENO: checking size of size_t" >&5
6462 echo $ECHO_N "checking size of size_t... $ECHO_C" >&6
6463 if test "${ac_cv_sizeof_size_t+set}" = set; then
6464   echo $ECHO_N "(cached) $ECHO_C" >&6
6465 else
6466   if test "$ac_cv_type_size_t" = yes; then
6467   # The cast to unsigned long works around a bug in the HP C Compiler
6468   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6469   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6470   # This bug is HP SR number 8606223364.
6471   if test "$cross_compiling" = yes; then
6472   # Depending upon the size, compute the lo and hi bounds.
6473 cat >conftest.$ac_ext <<_ACEOF
6474 /* confdefs.h.  */
6475 _ACEOF
6476 cat confdefs.h >>conftest.$ac_ext
6477 cat >>conftest.$ac_ext <<_ACEOF
6478 /* end confdefs.h.  */
6479 $ac_includes_default
6480 int
6481 main ()
6482 {
6483 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= 0)];
6484 test_array [0] = 0
6485
6486   ;
6487   return 0;
6488 }
6489 _ACEOF
6490 rm -f conftest.$ac_objext
6491 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6492   (eval $ac_compile) 2>conftest.er1
6493   ac_status=$?
6494   grep -v '^ *+' conftest.er1 >conftest.err
6495   rm -f conftest.er1
6496   cat conftest.err >&5
6497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6498   (exit $ac_status); } &&
6499          { ac_try='test -z "$ac_c_werror_flag"
6500                          || test ! -s conftest.err'
6501   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6502   (eval $ac_try) 2>&5
6503   ac_status=$?
6504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6505   (exit $ac_status); }; } &&
6506          { ac_try='test -s conftest.$ac_objext'
6507   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6508   (eval $ac_try) 2>&5
6509   ac_status=$?
6510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6511   (exit $ac_status); }; }; then
6512   ac_lo=0 ac_mid=0
6513   while :; do
6514     cat >conftest.$ac_ext <<_ACEOF
6515 /* confdefs.h.  */
6516 _ACEOF
6517 cat confdefs.h >>conftest.$ac_ext
6518 cat >>conftest.$ac_ext <<_ACEOF
6519 /* end confdefs.h.  */
6520 $ac_includes_default
6521 int
6522 main ()
6523 {
6524 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
6525 test_array [0] = 0
6526
6527   ;
6528   return 0;
6529 }
6530 _ACEOF
6531 rm -f conftest.$ac_objext
6532 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6533   (eval $ac_compile) 2>conftest.er1
6534   ac_status=$?
6535   grep -v '^ *+' conftest.er1 >conftest.err
6536   rm -f conftest.er1
6537   cat conftest.err >&5
6538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6539   (exit $ac_status); } &&
6540          { ac_try='test -z "$ac_c_werror_flag"
6541                          || test ! -s conftest.err'
6542   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6543   (eval $ac_try) 2>&5
6544   ac_status=$?
6545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6546   (exit $ac_status); }; } &&
6547          { ac_try='test -s conftest.$ac_objext'
6548   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6549   (eval $ac_try) 2>&5
6550   ac_status=$?
6551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6552   (exit $ac_status); }; }; then
6553   ac_hi=$ac_mid; break
6554 else
6555   echo "$as_me: failed program was:" >&5
6556 sed 's/^/| /' conftest.$ac_ext >&5
6557
6558 ac_lo=`expr $ac_mid + 1`
6559                     if test $ac_lo -le $ac_mid; then
6560                       ac_lo= ac_hi=
6561                       break
6562                     fi
6563                     ac_mid=`expr 2 '*' $ac_mid + 1`
6564 fi
6565 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6566   done
6567 else
6568   echo "$as_me: failed program was:" >&5
6569 sed 's/^/| /' conftest.$ac_ext >&5
6570
6571 cat >conftest.$ac_ext <<_ACEOF
6572 /* confdefs.h.  */
6573 _ACEOF
6574 cat confdefs.h >>conftest.$ac_ext
6575 cat >>conftest.$ac_ext <<_ACEOF
6576 /* end confdefs.h.  */
6577 $ac_includes_default
6578 int
6579 main ()
6580 {
6581 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) < 0)];
6582 test_array [0] = 0
6583
6584   ;
6585   return 0;
6586 }
6587 _ACEOF
6588 rm -f conftest.$ac_objext
6589 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6590   (eval $ac_compile) 2>conftest.er1
6591   ac_status=$?
6592   grep -v '^ *+' conftest.er1 >conftest.err
6593   rm -f conftest.er1
6594   cat conftest.err >&5
6595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6596   (exit $ac_status); } &&
6597          { ac_try='test -z "$ac_c_werror_flag"
6598                          || test ! -s conftest.err'
6599   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6600   (eval $ac_try) 2>&5
6601   ac_status=$?
6602   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6603   (exit $ac_status); }; } &&
6604          { ac_try='test -s conftest.$ac_objext'
6605   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6606   (eval $ac_try) 2>&5
6607   ac_status=$?
6608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6609   (exit $ac_status); }; }; then
6610   ac_hi=-1 ac_mid=-1
6611   while :; do
6612     cat >conftest.$ac_ext <<_ACEOF
6613 /* confdefs.h.  */
6614 _ACEOF
6615 cat confdefs.h >>conftest.$ac_ext
6616 cat >>conftest.$ac_ext <<_ACEOF
6617 /* end confdefs.h.  */
6618 $ac_includes_default
6619 int
6620 main ()
6621 {
6622 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= $ac_mid)];
6623 test_array [0] = 0
6624
6625   ;
6626   return 0;
6627 }
6628 _ACEOF
6629 rm -f conftest.$ac_objext
6630 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6631   (eval $ac_compile) 2>conftest.er1
6632   ac_status=$?
6633   grep -v '^ *+' conftest.er1 >conftest.err
6634   rm -f conftest.er1
6635   cat conftest.err >&5
6636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6637   (exit $ac_status); } &&
6638          { ac_try='test -z "$ac_c_werror_flag"
6639                          || test ! -s conftest.err'
6640   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6641   (eval $ac_try) 2>&5
6642   ac_status=$?
6643   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6644   (exit $ac_status); }; } &&
6645          { ac_try='test -s conftest.$ac_objext'
6646   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6647   (eval $ac_try) 2>&5
6648   ac_status=$?
6649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6650   (exit $ac_status); }; }; then
6651   ac_lo=$ac_mid; break
6652 else
6653   echo "$as_me: failed program was:" >&5
6654 sed 's/^/| /' conftest.$ac_ext >&5
6655
6656 ac_hi=`expr '(' $ac_mid ')' - 1`
6657                        if test $ac_mid -le $ac_hi; then
6658                          ac_lo= ac_hi=
6659                          break
6660                        fi
6661                        ac_mid=`expr 2 '*' $ac_mid`
6662 fi
6663 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6664   done
6665 else
6666   echo "$as_me: failed program was:" >&5
6667 sed 's/^/| /' conftest.$ac_ext >&5
6668
6669 ac_lo= ac_hi=
6670 fi
6671 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6672 fi
6673 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6674 # Binary search between lo and hi bounds.
6675 while test "x$ac_lo" != "x$ac_hi"; do
6676   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6677   cat >conftest.$ac_ext <<_ACEOF
6678 /* confdefs.h.  */
6679 _ACEOF
6680 cat confdefs.h >>conftest.$ac_ext
6681 cat >>conftest.$ac_ext <<_ACEOF
6682 /* end confdefs.h.  */
6683 $ac_includes_default
6684 int
6685 main ()
6686 {
6687 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
6688 test_array [0] = 0
6689
6690   ;
6691   return 0;
6692 }
6693 _ACEOF
6694 rm -f conftest.$ac_objext
6695 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6696   (eval $ac_compile) 2>conftest.er1
6697   ac_status=$?
6698   grep -v '^ *+' conftest.er1 >conftest.err
6699   rm -f conftest.er1
6700   cat conftest.err >&5
6701   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6702   (exit $ac_status); } &&
6703          { ac_try='test -z "$ac_c_werror_flag"
6704                          || test ! -s conftest.err'
6705   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6706   (eval $ac_try) 2>&5
6707   ac_status=$?
6708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6709   (exit $ac_status); }; } &&
6710          { ac_try='test -s conftest.$ac_objext'
6711   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6712   (eval $ac_try) 2>&5
6713   ac_status=$?
6714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6715   (exit $ac_status); }; }; then
6716   ac_hi=$ac_mid
6717 else
6718   echo "$as_me: failed program was:" >&5
6719 sed 's/^/| /' conftest.$ac_ext >&5
6720
6721 ac_lo=`expr '(' $ac_mid ')' + 1`
6722 fi
6723 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6724 done
6725 case $ac_lo in
6726 ?*) ac_cv_sizeof_size_t=$ac_lo;;
6727 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
6728 See \`config.log' for more details." >&5
6729 echo "$as_me: error: cannot compute sizeof (size_t), 77
6730 See \`config.log' for more details." >&2;}
6731    { (exit 1); exit 1; }; } ;;
6732 esac
6733 else
6734   if test "$cross_compiling" = yes; then
6735   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
6736 See \`config.log' for more details." >&5
6737 echo "$as_me: error: cannot run test program while cross compiling
6738 See \`config.log' for more details." >&2;}
6739    { (exit 1); exit 1; }; }
6740 else
6741   cat >conftest.$ac_ext <<_ACEOF
6742 /* confdefs.h.  */
6743 _ACEOF
6744 cat confdefs.h >>conftest.$ac_ext
6745 cat >>conftest.$ac_ext <<_ACEOF
6746 /* end confdefs.h.  */
6747 $ac_includes_default
6748 long longval () { return (long) (sizeof (size_t)); }
6749 unsigned long ulongval () { return (long) (sizeof (size_t)); }
6750 #include <stdio.h>
6751 #include <stdlib.h>
6752 int
6753 main ()
6754 {
6755
6756   FILE *f = fopen ("conftest.val", "w");
6757   if (! f)
6758     exit (1);
6759   if (((long) (sizeof (size_t))) < 0)
6760     {
6761       long i = longval ();
6762       if (i != ((long) (sizeof (size_t))))
6763         exit (1);
6764       fprintf (f, "%ld\n", i);
6765     }
6766   else
6767     {
6768       unsigned long i = ulongval ();
6769       if (i != ((long) (sizeof (size_t))))
6770         exit (1);
6771       fprintf (f, "%lu\n", i);
6772     }
6773   exit (ferror (f) || fclose (f) != 0);
6774
6775   ;
6776   return 0;
6777 }
6778 _ACEOF
6779 rm -f conftest$ac_exeext
6780 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6781   (eval $ac_link) 2>&5
6782   ac_status=$?
6783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6784   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6785   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6786   (eval $ac_try) 2>&5
6787   ac_status=$?
6788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6789   (exit $ac_status); }; }; then
6790   ac_cv_sizeof_size_t=`cat conftest.val`
6791 else
6792   echo "$as_me: program exited with status $ac_status" >&5
6793 echo "$as_me: failed program was:" >&5
6794 sed 's/^/| /' conftest.$ac_ext >&5
6795
6796 ( exit $ac_status )
6797 { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
6798 See \`config.log' for more details." >&5
6799 echo "$as_me: error: cannot compute sizeof (size_t), 77
6800 See \`config.log' for more details." >&2;}
6801    { (exit 1); exit 1; }; }
6802 fi
6803 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6804 fi
6805 fi
6806 rm -f conftest.val
6807 else
6808   ac_cv_sizeof_size_t=0
6809 fi
6810 fi
6811 echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
6812 echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6
6813 cat >>confdefs.h <<_ACEOF
6814 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
6815 _ACEOF
6816
6817
6818 echo "$as_me:$LINENO: checking for int64_t" >&5
6819 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6
6820 if test "${ac_cv_type_int64_t+set}" = set; then
6821   echo $ECHO_N "(cached) $ECHO_C" >&6
6822 else
6823   cat >conftest.$ac_ext <<_ACEOF
6824 /* confdefs.h.  */
6825 _ACEOF
6826 cat confdefs.h >>conftest.$ac_ext
6827 cat >>conftest.$ac_ext <<_ACEOF
6828 /* end confdefs.h.  */
6829 $ac_includes_default
6830 int
6831 main ()
6832 {
6833 if ((int64_t *) 0)
6834   return 0;
6835 if (sizeof (int64_t))
6836   return 0;
6837   ;
6838   return 0;
6839 }
6840 _ACEOF
6841 rm -f conftest.$ac_objext
6842 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6843   (eval $ac_compile) 2>conftest.er1
6844   ac_status=$?
6845   grep -v '^ *+' conftest.er1 >conftest.err
6846   rm -f conftest.er1
6847   cat conftest.err >&5
6848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6849   (exit $ac_status); } &&
6850          { ac_try='test -z "$ac_c_werror_flag"
6851                          || test ! -s conftest.err'
6852   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6853   (eval $ac_try) 2>&5
6854   ac_status=$?
6855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6856   (exit $ac_status); }; } &&
6857          { ac_try='test -s conftest.$ac_objext'
6858   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6859   (eval $ac_try) 2>&5
6860   ac_status=$?
6861   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6862   (exit $ac_status); }; }; then
6863   ac_cv_type_int64_t=yes
6864 else
6865   echo "$as_me: failed program was:" >&5
6866 sed 's/^/| /' conftest.$ac_ext >&5
6867
6868 ac_cv_type_int64_t=no
6869 fi
6870 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6871 fi
6872 echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
6873 echo "${ECHO_T}$ac_cv_type_int64_t" >&6
6874
6875 echo "$as_me:$LINENO: checking size of int64_t" >&5
6876 echo $ECHO_N "checking size of int64_t... $ECHO_C" >&6
6877 if test "${ac_cv_sizeof_int64_t+set}" = set; then
6878   echo $ECHO_N "(cached) $ECHO_C" >&6
6879 else
6880   if test "$ac_cv_type_int64_t" = yes; then
6881   # The cast to unsigned long works around a bug in the HP C Compiler
6882   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6883   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6884   # This bug is HP SR number 8606223364.
6885   if test "$cross_compiling" = yes; then
6886   # Depending upon the size, compute the lo and hi bounds.
6887 cat >conftest.$ac_ext <<_ACEOF
6888 /* confdefs.h.  */
6889 _ACEOF
6890 cat confdefs.h >>conftest.$ac_ext
6891 cat >>conftest.$ac_ext <<_ACEOF
6892 /* end confdefs.h.  */
6893 $ac_includes_default
6894 int
6895 main ()
6896 {
6897 static int test_array [1 - 2 * !(((long) (sizeof (int64_t))) >= 0)];
6898 test_array [0] = 0
6899
6900   ;
6901   return 0;
6902 }
6903 _ACEOF
6904 rm -f conftest.$ac_objext
6905 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6906   (eval $ac_compile) 2>conftest.er1
6907   ac_status=$?
6908   grep -v '^ *+' conftest.er1 >conftest.err
6909   rm -f conftest.er1
6910   cat conftest.err >&5
6911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6912   (exit $ac_status); } &&
6913          { ac_try='test -z "$ac_c_werror_flag"
6914                          || test ! -s conftest.err'
6915   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6916   (eval $ac_try) 2>&5
6917   ac_status=$?
6918   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6919   (exit $ac_status); }; } &&
6920          { ac_try='test -s conftest.$ac_objext'
6921   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6922   (eval $ac_try) 2>&5
6923   ac_status=$?
6924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6925   (exit $ac_status); }; }; then
6926   ac_lo=0 ac_mid=0
6927   while :; do
6928     cat >conftest.$ac_ext <<_ACEOF
6929 /* confdefs.h.  */
6930 _ACEOF
6931 cat confdefs.h >>conftest.$ac_ext
6932 cat >>conftest.$ac_ext <<_ACEOF
6933 /* end confdefs.h.  */
6934 $ac_includes_default
6935 int
6936 main ()
6937 {
6938 static int test_array [1 - 2 * !(((long) (sizeof (int64_t))) <= $ac_mid)];
6939 test_array [0] = 0
6940
6941   ;
6942   return 0;
6943 }
6944 _ACEOF
6945 rm -f conftest.$ac_objext
6946 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6947   (eval $ac_compile) 2>conftest.er1
6948   ac_status=$?
6949   grep -v '^ *+' conftest.er1 >conftest.err
6950   rm -f conftest.er1
6951   cat conftest.err >&5
6952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6953   (exit $ac_status); } &&
6954          { ac_try='test -z "$ac_c_werror_flag"
6955                          || test ! -s conftest.err'
6956   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6957   (eval $ac_try) 2>&5
6958   ac_status=$?
6959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6960   (exit $ac_status); }; } &&
6961          { ac_try='test -s conftest.$ac_objext'
6962   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6963   (eval $ac_try) 2>&5
6964   ac_status=$?
6965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6966   (exit $ac_status); }; }; then
6967   ac_hi=$ac_mid; break
6968 else
6969   echo "$as_me: failed program was:" >&5
6970 sed 's/^/| /' conftest.$ac_ext >&5
6971
6972 ac_lo=`expr $ac_mid + 1`
6973                     if test $ac_lo -le $ac_mid; then
6974                       ac_lo= ac_hi=
6975                       break
6976                     fi
6977                     ac_mid=`expr 2 '*' $ac_mid + 1`
6978 fi
6979 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6980   done
6981 else
6982   echo "$as_me: failed program was:" >&5
6983 sed 's/^/| /' conftest.$ac_ext >&5
6984
6985 cat >conftest.$ac_ext <<_ACEOF
6986 /* confdefs.h.  */
6987 _ACEOF
6988 cat confdefs.h >>conftest.$ac_ext
6989 cat >>conftest.$ac_ext <<_ACEOF
6990 /* end confdefs.h.  */
6991 $ac_includes_default
6992 int
6993 main ()
6994 {
6995 static int test_array [1 - 2 * !(((long) (sizeof (int64_t))) < 0)];
6996 test_array [0] = 0
6997
6998   ;
6999   return 0;
7000 }
7001 _ACEOF
7002 rm -f conftest.$ac_objext
7003 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7004   (eval $ac_compile) 2>conftest.er1
7005   ac_status=$?
7006   grep -v '^ *+' conftest.er1 >conftest.err
7007   rm -f conftest.er1
7008   cat conftest.err >&5
7009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7010   (exit $ac_status); } &&
7011          { ac_try='test -z "$ac_c_werror_flag"
7012                          || test ! -s conftest.err'
7013   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7014   (eval $ac_try) 2>&5
7015   ac_status=$?
7016   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7017   (exit $ac_status); }; } &&
7018          { ac_try='test -s conftest.$ac_objext'
7019   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7020   (eval $ac_try) 2>&5
7021   ac_status=$?
7022   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7023   (exit $ac_status); }; }; then
7024   ac_hi=-1 ac_mid=-1
7025   while :; do
7026     cat >conftest.$ac_ext <<_ACEOF
7027 /* confdefs.h.  */
7028 _ACEOF
7029 cat confdefs.h >>conftest.$ac_ext
7030 cat >>conftest.$ac_ext <<_ACEOF
7031 /* end confdefs.h.  */
7032 $ac_includes_default
7033 int
7034 main ()
7035 {
7036 static int test_array [1 - 2 * !(((long) (sizeof (int64_t))) >= $ac_mid)];
7037 test_array [0] = 0
7038
7039   ;
7040   return 0;
7041 }
7042 _ACEOF
7043 rm -f conftest.$ac_objext
7044 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7045   (eval $ac_compile) 2>conftest.er1
7046   ac_status=$?
7047   grep -v '^ *+' conftest.er1 >conftest.err
7048   rm -f conftest.er1
7049   cat conftest.err >&5
7050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7051   (exit $ac_status); } &&
7052          { ac_try='test -z "$ac_c_werror_flag"
7053                          || test ! -s conftest.err'
7054   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7055   (eval $ac_try) 2>&5
7056   ac_status=$?
7057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7058   (exit $ac_status); }; } &&
7059          { ac_try='test -s conftest.$ac_objext'
7060   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7061   (eval $ac_try) 2>&5
7062   ac_status=$?
7063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7064   (exit $ac_status); }; }; then
7065   ac_lo=$ac_mid; break
7066 else
7067   echo "$as_me: failed program was:" >&5
7068 sed 's/^/| /' conftest.$ac_ext >&5
7069
7070 ac_hi=`expr '(' $ac_mid ')' - 1`
7071                        if test $ac_mid -le $ac_hi; then
7072                          ac_lo= ac_hi=
7073                          break
7074                        fi
7075                        ac_mid=`expr 2 '*' $ac_mid`
7076 fi
7077 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7078   done
7079 else
7080   echo "$as_me: failed program was:" >&5
7081 sed 's/^/| /' conftest.$ac_ext >&5
7082
7083 ac_lo= ac_hi=
7084 fi
7085 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7086 fi
7087 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7088 # Binary search between lo and hi bounds.
7089 while test "x$ac_lo" != "x$ac_hi"; do
7090   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7091   cat >conftest.$ac_ext <<_ACEOF
7092 /* confdefs.h.  */
7093 _ACEOF
7094 cat confdefs.h >>conftest.$ac_ext
7095 cat >>conftest.$ac_ext <<_ACEOF
7096 /* end confdefs.h.  */
7097 $ac_includes_default
7098 int
7099 main ()
7100 {
7101 static int test_array [1 - 2 * !(((long) (sizeof (int64_t))) <= $ac_mid)];
7102 test_array [0] = 0
7103
7104   ;
7105   return 0;
7106 }
7107 _ACEOF
7108 rm -f conftest.$ac_objext
7109 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7110   (eval $ac_compile) 2>conftest.er1
7111   ac_status=$?
7112   grep -v '^ *+' conftest.er1 >conftest.err
7113   rm -f conftest.er1
7114   cat conftest.err >&5
7115   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7116   (exit $ac_status); } &&
7117          { ac_try='test -z "$ac_c_werror_flag"
7118                          || test ! -s conftest.err'
7119   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7120   (eval $ac_try) 2>&5
7121   ac_status=$?
7122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7123   (exit $ac_status); }; } &&
7124          { ac_try='test -s conftest.$ac_objext'
7125   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7126   (eval $ac_try) 2>&5
7127   ac_status=$?
7128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7129   (exit $ac_status); }; }; then
7130   ac_hi=$ac_mid
7131 else
7132   echo "$as_me: failed program was:" >&5
7133 sed 's/^/| /' conftest.$ac_ext >&5
7134
7135 ac_lo=`expr '(' $ac_mid ')' + 1`
7136 fi
7137 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7138 done
7139 case $ac_lo in
7140 ?*) ac_cv_sizeof_int64_t=$ac_lo;;
7141 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int64_t), 77
7142 See \`config.log' for more details." >&5
7143 echo "$as_me: error: cannot compute sizeof (int64_t), 77
7144 See \`config.log' for more details." >&2;}
7145    { (exit 1); exit 1; }; } ;;
7146 esac
7147 else
7148   if test "$cross_compiling" = yes; then
7149   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
7150 See \`config.log' for more details." >&5
7151 echo "$as_me: error: cannot run test program while cross compiling
7152 See \`config.log' for more details." >&2;}
7153    { (exit 1); exit 1; }; }
7154 else
7155   cat >conftest.$ac_ext <<_ACEOF
7156 /* confdefs.h.  */
7157 _ACEOF
7158 cat confdefs.h >>conftest.$ac_ext
7159 cat >>conftest.$ac_ext <<_ACEOF
7160 /* end confdefs.h.  */
7161 $ac_includes_default
7162 long longval () { return (long) (sizeof (int64_t)); }
7163 unsigned long ulongval () { return (long) (sizeof (int64_t)); }
7164 #include <stdio.h>
7165 #include <stdlib.h>
7166 int
7167 main ()
7168 {
7169
7170   FILE *f = fopen ("conftest.val", "w");
7171   if (! f)
7172     exit (1);
7173   if (((long) (sizeof (int64_t))) < 0)
7174     {
7175       long i = longval ();
7176       if (i != ((long) (sizeof (int64_t))))
7177         exit (1);
7178       fprintf (f, "%ld\n", i);
7179     }
7180   else
7181     {
7182       unsigned long i = ulongval ();
7183       if (i != ((long) (sizeof (int64_t))))
7184         exit (1);
7185       fprintf (f, "%lu\n", i);
7186     }
7187   exit (ferror (f) || fclose (f) != 0);
7188
7189   ;
7190   return 0;
7191 }
7192 _ACEOF
7193 rm -f conftest$ac_exeext
7194 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7195   (eval $ac_link) 2>&5
7196   ac_status=$?
7197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7198   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7199   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7200   (eval $ac_try) 2>&5
7201   ac_status=$?
7202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7203   (exit $ac_status); }; }; then
7204   ac_cv_sizeof_int64_t=`cat conftest.val`
7205 else
7206   echo "$as_me: program exited with status $ac_status" >&5
7207 echo "$as_me: failed program was:" >&5
7208 sed 's/^/| /' conftest.$ac_ext >&5
7209
7210 ( exit $ac_status )
7211 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int64_t), 77
7212 See \`config.log' for more details." >&5
7213 echo "$as_me: error: cannot compute sizeof (int64_t), 77
7214 See \`config.log' for more details." >&2;}
7215    { (exit 1); exit 1; }; }
7216 fi
7217 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7218 fi
7219 fi
7220 rm -f conftest.val
7221 else
7222   ac_cv_sizeof_int64_t=0
7223 fi
7224 fi
7225 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int64_t" >&5
7226 echo "${ECHO_T}$ac_cv_sizeof_int64_t" >&6
7227 cat >>confdefs.h <<_ACEOF
7228 #define SIZEOF_INT64_T $ac_cv_sizeof_int64_t
7229 _ACEOF
7230
7231
7232 echo "$as_me:$LINENO: checking for long long" >&5
7233 echo $ECHO_N "checking for long long... $ECHO_C" >&6
7234 if test "${ac_cv_type_long_long+set}" = set; then
7235   echo $ECHO_N "(cached) $ECHO_C" >&6
7236 else
7237   cat >conftest.$ac_ext <<_ACEOF
7238 /* confdefs.h.  */
7239 _ACEOF
7240 cat confdefs.h >>conftest.$ac_ext
7241 cat >>conftest.$ac_ext <<_ACEOF
7242 /* end confdefs.h.  */
7243 $ac_includes_default
7244 int
7245 main ()
7246 {
7247 if ((long long *) 0)
7248   return 0;
7249 if (sizeof (long long))
7250   return 0;
7251   ;
7252   return 0;
7253 }
7254 _ACEOF
7255 rm -f conftest.$ac_objext
7256 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7257   (eval $ac_compile) 2>conftest.er1
7258   ac_status=$?
7259   grep -v '^ *+' conftest.er1 >conftest.err
7260   rm -f conftest.er1
7261   cat conftest.err >&5
7262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7263   (exit $ac_status); } &&
7264          { ac_try='test -z "$ac_c_werror_flag"
7265                          || test ! -s conftest.err'
7266   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7267   (eval $ac_try) 2>&5
7268   ac_status=$?
7269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7270   (exit $ac_status); }; } &&
7271          { ac_try='test -s conftest.$ac_objext'
7272   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7273   (eval $ac_try) 2>&5
7274   ac_status=$?
7275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7276   (exit $ac_status); }; }; then
7277   ac_cv_type_long_long=yes
7278 else
7279   echo "$as_me: failed program was:" >&5
7280 sed 's/^/| /' conftest.$ac_ext >&5
7281
7282 ac_cv_type_long_long=no
7283 fi
7284 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7285 fi
7286 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
7287 echo "${ECHO_T}$ac_cv_type_long_long" >&6
7288
7289 echo "$as_me:$LINENO: checking size of long long" >&5
7290 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
7291 if test "${ac_cv_sizeof_long_long+set}" = set; then
7292   echo $ECHO_N "(cached) $ECHO_C" >&6
7293 else
7294   if test "$ac_cv_type_long_long" = yes; then
7295   # The cast to unsigned long works around a bug in the HP C Compiler
7296   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7297   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7298   # This bug is HP SR number 8606223364.
7299   if test "$cross_compiling" = yes; then
7300   # Depending upon the size, compute the lo and hi bounds.
7301 cat >conftest.$ac_ext <<_ACEOF
7302 /* confdefs.h.  */
7303 _ACEOF
7304 cat confdefs.h >>conftest.$ac_ext
7305 cat >>conftest.$ac_ext <<_ACEOF
7306 /* end confdefs.h.  */
7307 $ac_includes_default
7308 int
7309 main ()
7310 {
7311 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
7312 test_array [0] = 0
7313
7314   ;
7315   return 0;
7316 }
7317 _ACEOF
7318 rm -f conftest.$ac_objext
7319 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7320   (eval $ac_compile) 2>conftest.er1
7321   ac_status=$?
7322   grep -v '^ *+' conftest.er1 >conftest.err
7323   rm -f conftest.er1
7324   cat conftest.err >&5
7325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7326   (exit $ac_status); } &&
7327          { ac_try='test -z "$ac_c_werror_flag"
7328                          || test ! -s conftest.err'
7329   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7330   (eval $ac_try) 2>&5
7331   ac_status=$?
7332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7333   (exit $ac_status); }; } &&
7334          { ac_try='test -s conftest.$ac_objext'
7335   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7336   (eval $ac_try) 2>&5
7337   ac_status=$?
7338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7339   (exit $ac_status); }; }; then
7340   ac_lo=0 ac_mid=0
7341   while :; do
7342     cat >conftest.$ac_ext <<_ACEOF
7343 /* confdefs.h.  */
7344 _ACEOF
7345 cat confdefs.h >>conftest.$ac_ext
7346 cat >>conftest.$ac_ext <<_ACEOF
7347 /* end confdefs.h.  */
7348 $ac_includes_default
7349 int
7350 main ()
7351 {
7352 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
7353 test_array [0] = 0
7354
7355   ;
7356   return 0;
7357 }
7358 _ACEOF
7359 rm -f conftest.$ac_objext
7360 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7361   (eval $ac_compile) 2>conftest.er1
7362   ac_status=$?
7363   grep -v '^ *+' conftest.er1 >conftest.err
7364   rm -f conftest.er1
7365   cat conftest.err >&5
7366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7367   (exit $ac_status); } &&
7368          { ac_try='test -z "$ac_c_werror_flag"
7369                          || test ! -s conftest.err'
7370   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7371   (eval $ac_try) 2>&5
7372   ac_status=$?
7373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7374   (exit $ac_status); }; } &&
7375          { ac_try='test -s conftest.$ac_objext'
7376   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7377   (eval $ac_try) 2>&5
7378   ac_status=$?
7379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7380   (exit $ac_status); }; }; then
7381   ac_hi=$ac_mid; break
7382 else
7383   echo "$as_me: failed program was:" >&5
7384 sed 's/^/| /' conftest.$ac_ext >&5
7385
7386 ac_lo=`expr $ac_mid + 1`
7387                     if test $ac_lo -le $ac_mid; then
7388                       ac_lo= ac_hi=
7389                       break
7390                     fi
7391                     ac_mid=`expr 2 '*' $ac_mid + 1`
7392 fi
7393 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7394   done
7395 else
7396   echo "$as_me: failed program was:" >&5
7397 sed 's/^/| /' conftest.$ac_ext >&5
7398
7399 cat >conftest.$ac_ext <<_ACEOF
7400 /* confdefs.h.  */
7401 _ACEOF
7402 cat confdefs.h >>conftest.$ac_ext
7403 cat >>conftest.$ac_ext <<_ACEOF
7404 /* end confdefs.h.  */
7405 $ac_includes_default
7406 int
7407 main ()
7408 {
7409 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
7410 test_array [0] = 0
7411
7412   ;
7413   return 0;
7414 }
7415 _ACEOF
7416 rm -f conftest.$ac_objext
7417 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7418   (eval $ac_compile) 2>conftest.er1
7419   ac_status=$?
7420   grep -v '^ *+' conftest.er1 >conftest.err
7421   rm -f conftest.er1
7422   cat conftest.err >&5
7423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7424   (exit $ac_status); } &&
7425          { ac_try='test -z "$ac_c_werror_flag"
7426                          || test ! -s conftest.err'
7427   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7428   (eval $ac_try) 2>&5
7429   ac_status=$?
7430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7431   (exit $ac_status); }; } &&
7432          { ac_try='test -s conftest.$ac_objext'
7433   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7434   (eval $ac_try) 2>&5
7435   ac_status=$?
7436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7437   (exit $ac_status); }; }; then
7438   ac_hi=-1 ac_mid=-1
7439   while :; do
7440     cat >conftest.$ac_ext <<_ACEOF
7441 /* confdefs.h.  */
7442 _ACEOF
7443 cat confdefs.h >>conftest.$ac_ext
7444 cat >>conftest.$ac_ext <<_ACEOF
7445 /* end confdefs.h.  */
7446 $ac_includes_default
7447 int
7448 main ()
7449 {
7450 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
7451 test_array [0] = 0
7452
7453   ;
7454   return 0;
7455 }
7456 _ACEOF
7457 rm -f conftest.$ac_objext
7458 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7459   (eval $ac_compile) 2>conftest.er1
7460   ac_status=$?
7461   grep -v '^ *+' conftest.er1 >conftest.err
7462   rm -f conftest.er1
7463   cat conftest.err >&5
7464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7465   (exit $ac_status); } &&
7466          { ac_try='test -z "$ac_c_werror_flag"
7467                          || test ! -s conftest.err'
7468   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7469   (eval $ac_try) 2>&5
7470   ac_status=$?
7471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7472   (exit $ac_status); }; } &&
7473          { ac_try='test -s conftest.$ac_objext'
7474   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7475   (eval $ac_try) 2>&5
7476   ac_status=$?
7477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7478   (exit $ac_status); }; }; then
7479   ac_lo=$ac_mid; break
7480 else
7481   echo "$as_me: failed program was:" >&5
7482 sed 's/^/| /' conftest.$ac_ext >&5
7483
7484 ac_hi=`expr '(' $ac_mid ')' - 1`
7485                        if test $ac_mid -le $ac_hi; then
7486                          ac_lo= ac_hi=
7487                          break
7488                        fi
7489                        ac_mid=`expr 2 '*' $ac_mid`
7490 fi
7491 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7492   done
7493 else
7494   echo "$as_me: failed program was:" >&5
7495 sed 's/^/| /' conftest.$ac_ext >&5
7496
7497 ac_lo= ac_hi=
7498 fi
7499 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7500 fi
7501 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7502 # Binary search between lo and hi bounds.
7503 while test "x$ac_lo" != "x$ac_hi"; do
7504   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7505   cat >conftest.$ac_ext <<_ACEOF
7506 /* confdefs.h.  */
7507 _ACEOF
7508 cat confdefs.h >>conftest.$ac_ext
7509 cat >>conftest.$ac_ext <<_ACEOF
7510 /* end confdefs.h.  */
7511 $ac_includes_default
7512 int
7513 main ()
7514 {
7515 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
7516 test_array [0] = 0
7517
7518   ;
7519   return 0;
7520 }
7521 _ACEOF
7522 rm -f conftest.$ac_objext
7523 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7524   (eval $ac_compile) 2>conftest.er1
7525   ac_status=$?
7526   grep -v '^ *+' conftest.er1 >conftest.err
7527   rm -f conftest.er1
7528   cat conftest.err >&5
7529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7530   (exit $ac_status); } &&
7531          { ac_try='test -z "$ac_c_werror_flag"
7532                          || test ! -s conftest.err'
7533   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7534   (eval $ac_try) 2>&5
7535   ac_status=$?
7536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7537   (exit $ac_status); }; } &&
7538          { ac_try='test -s conftest.$ac_objext'
7539   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7540   (eval $ac_try) 2>&5
7541   ac_status=$?
7542   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7543   (exit $ac_status); }; }; then
7544   ac_hi=$ac_mid
7545 else
7546   echo "$as_me: failed program was:" >&5
7547 sed 's/^/| /' conftest.$ac_ext >&5
7548
7549 ac_lo=`expr '(' $ac_mid ')' + 1`
7550 fi
7551 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7552 done
7553 case $ac_lo in
7554 ?*) ac_cv_sizeof_long_long=$ac_lo;;
7555 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
7556 See \`config.log' for more details." >&5
7557 echo "$as_me: error: cannot compute sizeof (long long), 77
7558 See \`config.log' for more details." >&2;}
7559    { (exit 1); exit 1; }; } ;;
7560 esac
7561 else
7562   if test "$cross_compiling" = yes; then
7563   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
7564 See \`config.log' for more details." >&5
7565 echo "$as_me: error: cannot run test program while cross compiling
7566 See \`config.log' for more details." >&2;}
7567    { (exit 1); exit 1; }; }
7568 else
7569   cat >conftest.$ac_ext <<_ACEOF
7570 /* confdefs.h.  */
7571 _ACEOF
7572 cat confdefs.h >>conftest.$ac_ext
7573 cat >>conftest.$ac_ext <<_ACEOF
7574 /* end confdefs.h.  */
7575 $ac_includes_default
7576 long longval () { return (long) (sizeof (long long)); }
7577 unsigned long ulongval () { return (long) (sizeof (long long)); }
7578 #include <stdio.h>
7579 #include <stdlib.h>
7580 int
7581 main ()
7582 {
7583
7584   FILE *f = fopen ("conftest.val", "w");
7585   if (! f)
7586     exit (1);
7587   if (((long) (sizeof (long long))) < 0)
7588     {
7589       long i = longval ();
7590       if (i != ((long) (sizeof (long long))))
7591         exit (1);
7592       fprintf (f, "%ld\n", i);
7593     }
7594   else
7595     {
7596       unsigned long i = ulongval ();
7597       if (i != ((long) (sizeof (long long))))
7598         exit (1);
7599       fprintf (f, "%lu\n", i);
7600     }
7601   exit (ferror (f) || fclose (f) != 0);
7602
7603   ;
7604   return 0;
7605 }
7606 _ACEOF
7607 rm -f conftest$ac_exeext
7608 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7609   (eval $ac_link) 2>&5
7610   ac_status=$?
7611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7612   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7613   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7614   (eval $ac_try) 2>&5
7615   ac_status=$?
7616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7617   (exit $ac_status); }; }; then
7618   ac_cv_sizeof_long_long=`cat conftest.val`
7619 else
7620   echo "$as_me: program exited with status $ac_status" >&5
7621 echo "$as_me: failed program was:" >&5
7622 sed 's/^/| /' conftest.$ac_ext >&5
7623
7624 ( exit $ac_status )
7625 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
7626 See \`config.log' for more details." >&5
7627 echo "$as_me: error: cannot compute sizeof (long long), 77
7628 See \`config.log' for more details." >&2;}
7629    { (exit 1); exit 1; }; }
7630 fi
7631 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7632 fi
7633 fi
7634 rm -f conftest.val
7635 else
7636   ac_cv_sizeof_long_long=0
7637 fi
7638 fi
7639 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
7640 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
7641 cat >>confdefs.h <<_ACEOF
7642 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
7643 _ACEOF
7644
7645
7646
7647 #====================================================================================
7648 # Find an appropriate type for sf_count_t.
7649 # On systems supporting files larger than 2 Gig, sf_count_t must be a 64 bit value.
7650 # Unfortunately there is more than one way of ensuring this so need to do some
7651 # pretty rigourous testing here.
7652
7653 unset ac_cv_sizeof_off_t
7654
7655 echo "$as_me:$LINENO: checking for off_t" >&5
7656 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
7657 if test "${ac_cv_type_off_t+set}" = set; then
7658   echo $ECHO_N "(cached) $ECHO_C" >&6
7659 else
7660   cat >conftest.$ac_ext <<_ACEOF
7661 /* confdefs.h.  */
7662 _ACEOF
7663 cat confdefs.h >>conftest.$ac_ext
7664 cat >>conftest.$ac_ext <<_ACEOF
7665 /* end confdefs.h.  */
7666 $ac_includes_default
7667 int
7668 main ()
7669 {
7670 if ((off_t *) 0)
7671   return 0;
7672 if (sizeof (off_t))
7673   return 0;
7674   ;
7675   return 0;
7676 }
7677 _ACEOF
7678 rm -f conftest.$ac_objext
7679 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7680   (eval $ac_compile) 2>conftest.er1
7681   ac_status=$?
7682   grep -v '^ *+' conftest.er1 >conftest.err
7683   rm -f conftest.er1
7684   cat conftest.err >&5
7685   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7686   (exit $ac_status); } &&
7687          { ac_try='test -z "$ac_c_werror_flag"
7688                          || test ! -s conftest.err'
7689   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7690   (eval $ac_try) 2>&5
7691   ac_status=$?
7692   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7693   (exit $ac_status); }; } &&
7694          { ac_try='test -s conftest.$ac_objext'
7695   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7696   (eval $ac_try) 2>&5
7697   ac_status=$?
7698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7699   (exit $ac_status); }; }; then
7700   ac_cv_type_off_t=yes
7701 else
7702   echo "$as_me: failed program was:" >&5
7703 sed 's/^/| /' conftest.$ac_ext >&5
7704
7705 ac_cv_type_off_t=no
7706 fi
7707 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7708 fi
7709 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
7710 echo "${ECHO_T}$ac_cv_type_off_t" >&6
7711
7712 echo "$as_me:$LINENO: checking size of off_t" >&5
7713 echo $ECHO_N "checking size of off_t... $ECHO_C" >&6
7714 if test "${ac_cv_sizeof_off_t+set}" = set; then
7715   echo $ECHO_N "(cached) $ECHO_C" >&6
7716 else
7717   if test "$ac_cv_type_off_t" = yes; then
7718   # The cast to unsigned long works around a bug in the HP C Compiler
7719   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7720   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7721   # This bug is HP SR number 8606223364.
7722   if test "$cross_compiling" = yes; then
7723   # Depending upon the size, compute the lo and hi bounds.
7724 cat >conftest.$ac_ext <<_ACEOF
7725 /* confdefs.h.  */
7726 _ACEOF
7727 cat confdefs.h >>conftest.$ac_ext
7728 cat >>conftest.$ac_ext <<_ACEOF
7729 /* end confdefs.h.  */
7730 $ac_includes_default
7731 int
7732 main ()
7733 {
7734 static int test_array [1 - 2 * !(((long) (sizeof (off_t))) >= 0)];
7735 test_array [0] = 0
7736
7737   ;
7738   return 0;
7739 }
7740 _ACEOF
7741 rm -f conftest.$ac_objext
7742 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7743   (eval $ac_compile) 2>conftest.er1
7744   ac_status=$?
7745   grep -v '^ *+' conftest.er1 >conftest.err
7746   rm -f conftest.er1
7747   cat conftest.err >&5
7748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7749   (exit $ac_status); } &&
7750          { ac_try='test -z "$ac_c_werror_flag"
7751                          || test ! -s conftest.err'
7752   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7753   (eval $ac_try) 2>&5
7754   ac_status=$?
7755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7756   (exit $ac_status); }; } &&
7757          { ac_try='test -s conftest.$ac_objext'
7758   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7759   (eval $ac_try) 2>&5
7760   ac_status=$?
7761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7762   (exit $ac_status); }; }; then
7763   ac_lo=0 ac_mid=0
7764   while :; do
7765     cat >conftest.$ac_ext <<_ACEOF
7766 /* confdefs.h.  */
7767 _ACEOF
7768 cat confdefs.h >>conftest.$ac_ext
7769 cat >>conftest.$ac_ext <<_ACEOF
7770 /* end confdefs.h.  */
7771 $ac_includes_default
7772 int
7773 main ()
7774 {
7775 static int test_array [1 - 2 * !(((long) (sizeof (off_t))) <= $ac_mid)];
7776 test_array [0] = 0
7777
7778   ;
7779   return 0;
7780 }
7781 _ACEOF
7782 rm -f conftest.$ac_objext
7783 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7784   (eval $ac_compile) 2>conftest.er1
7785   ac_status=$?
7786   grep -v '^ *+' conftest.er1 >conftest.err
7787   rm -f conftest.er1
7788   cat conftest.err >&5
7789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7790   (exit $ac_status); } &&
7791          { ac_try='test -z "$ac_c_werror_flag"
7792                          || test ! -s conftest.err'
7793   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7794   (eval $ac_try) 2>&5
7795   ac_status=$?
7796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7797   (exit $ac_status); }; } &&
7798          { ac_try='test -s conftest.$ac_objext'
7799   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7800   (eval $ac_try) 2>&5
7801   ac_status=$?
7802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7803   (exit $ac_status); }; }; then
7804   ac_hi=$ac_mid; break
7805 else
7806   echo "$as_me: failed program was:" >&5
7807 sed 's/^/| /' conftest.$ac_ext >&5
7808
7809 ac_lo=`expr $ac_mid + 1`
7810                     if test $ac_lo -le $ac_mid; then
7811                       ac_lo= ac_hi=
7812                       break
7813                     fi
7814                     ac_mid=`expr 2 '*' $ac_mid + 1`
7815 fi
7816 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7817   done
7818 else
7819   echo "$as_me: failed program was:" >&5
7820 sed 's/^/| /' conftest.$ac_ext >&5
7821
7822 cat >conftest.$ac_ext <<_ACEOF
7823 /* confdefs.h.  */
7824 _ACEOF
7825 cat confdefs.h >>conftest.$ac_ext
7826 cat >>conftest.$ac_ext <<_ACEOF
7827 /* end confdefs.h.  */
7828 $ac_includes_default
7829 int
7830 main ()
7831 {
7832 static int test_array [1 - 2 * !(((long) (sizeof (off_t))) < 0)];
7833 test_array [0] = 0
7834
7835   ;
7836   return 0;
7837 }
7838 _ACEOF
7839 rm -f conftest.$ac_objext
7840 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7841   (eval $ac_compile) 2>conftest.er1
7842   ac_status=$?
7843   grep -v '^ *+' conftest.er1 >conftest.err
7844   rm -f conftest.er1
7845   cat conftest.err >&5
7846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7847   (exit $ac_status); } &&
7848          { ac_try='test -z "$ac_c_werror_flag"
7849                          || test ! -s conftest.err'
7850   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7851   (eval $ac_try) 2>&5
7852   ac_status=$?
7853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7854   (exit $ac_status); }; } &&
7855          { ac_try='test -s conftest.$ac_objext'
7856   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7857   (eval $ac_try) 2>&5
7858   ac_status=$?
7859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7860   (exit $ac_status); }; }; then
7861   ac_hi=-1 ac_mid=-1
7862   while :; do
7863     cat >conftest.$ac_ext <<_ACEOF
7864 /* confdefs.h.  */
7865 _ACEOF
7866 cat confdefs.h >>conftest.$ac_ext
7867 cat >>conftest.$ac_ext <<_ACEOF
7868 /* end confdefs.h.  */
7869 $ac_includes_default
7870 int
7871 main ()
7872 {
7873 static int test_array [1 - 2 * !(((long) (sizeof (off_t))) >= $ac_mid)];
7874 test_array [0] = 0
7875
7876   ;
7877   return 0;
7878 }
7879 _ACEOF
7880 rm -f conftest.$ac_objext
7881 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7882   (eval $ac_compile) 2>conftest.er1
7883   ac_status=$?
7884   grep -v '^ *+' conftest.er1 >conftest.err
7885   rm -f conftest.er1
7886   cat conftest.err >&5
7887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7888   (exit $ac_status); } &&
7889          { ac_try='test -z "$ac_c_werror_flag"
7890                          || test ! -s conftest.err'
7891   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7892   (eval $ac_try) 2>&5
7893   ac_status=$?
7894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7895   (exit $ac_status); }; } &&
7896          { ac_try='test -s conftest.$ac_objext'
7897   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7898   (eval $ac_try) 2>&5
7899   ac_status=$?
7900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7901   (exit $ac_status); }; }; then
7902   ac_lo=$ac_mid; break
7903 else
7904   echo "$as_me: failed program was:" >&5
7905 sed 's/^/| /' conftest.$ac_ext >&5
7906
7907 ac_hi=`expr '(' $ac_mid ')' - 1`
7908                        if test $ac_mid -le $ac_hi; then
7909                          ac_lo= ac_hi=
7910                          break
7911                        fi
7912                        ac_mid=`expr 2 '*' $ac_mid`
7913 fi
7914 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7915   done
7916 else
7917   echo "$as_me: failed program was:" >&5
7918 sed 's/^/| /' conftest.$ac_ext >&5
7919
7920 ac_lo= ac_hi=
7921 fi
7922 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7923 fi
7924 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7925 # Binary search between lo and hi bounds.
7926 while test "x$ac_lo" != "x$ac_hi"; do
7927   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7928   cat >conftest.$ac_ext <<_ACEOF
7929 /* confdefs.h.  */
7930 _ACEOF
7931 cat confdefs.h >>conftest.$ac_ext
7932 cat >>conftest.$ac_ext <<_ACEOF
7933 /* end confdefs.h.  */
7934 $ac_includes_default
7935 int
7936 main ()
7937 {
7938 static int test_array [1 - 2 * !(((long) (sizeof (off_t))) <= $ac_mid)];
7939 test_array [0] = 0
7940
7941   ;
7942   return 0;
7943 }
7944 _ACEOF
7945 rm -f conftest.$ac_objext
7946 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7947   (eval $ac_compile) 2>conftest.er1
7948   ac_status=$?
7949   grep -v '^ *+' conftest.er1 >conftest.err
7950   rm -f conftest.er1
7951   cat conftest.err >&5
7952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7953   (exit $ac_status); } &&
7954          { ac_try='test -z "$ac_c_werror_flag"
7955                          || test ! -s conftest.err'
7956   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7957   (eval $ac_try) 2>&5
7958   ac_status=$?
7959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7960   (exit $ac_status); }; } &&
7961          { ac_try='test -s conftest.$ac_objext'
7962   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7963   (eval $ac_try) 2>&5
7964   ac_status=$?
7965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7966   (exit $ac_status); }; }; then
7967   ac_hi=$ac_mid
7968 else
7969   echo "$as_me: failed program was:" >&5
7970 sed 's/^/| /' conftest.$ac_ext >&5
7971
7972 ac_lo=`expr '(' $ac_mid ')' + 1`
7973 fi
7974 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7975 done
7976 case $ac_lo in
7977 ?*) ac_cv_sizeof_off_t=$ac_lo;;
7978 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (off_t), 77
7979 See \`config.log' for more details." >&5
7980 echo "$as_me: error: cannot compute sizeof (off_t), 77
7981 See \`config.log' for more details." >&2;}
7982    { (exit 1); exit 1; }; } ;;
7983 esac
7984 else
7985   if test "$cross_compiling" = yes; then
7986   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
7987 See \`config.log' for more details." >&5
7988 echo "$as_me: error: cannot run test program while cross compiling
7989 See \`config.log' for more details." >&2;}
7990    { (exit 1); exit 1; }; }
7991 else
7992   cat >conftest.$ac_ext <<_ACEOF
7993 /* confdefs.h.  */
7994 _ACEOF
7995 cat confdefs.h >>conftest.$ac_ext
7996 cat >>conftest.$ac_ext <<_ACEOF
7997 /* end confdefs.h.  */
7998 $ac_includes_default
7999 long longval () { return (long) (sizeof (off_t)); }
8000 unsigned long ulongval () { return (long) (sizeof (off_t)); }
8001 #include <stdio.h>
8002 #include <stdlib.h>
8003 int
8004 main ()
8005 {
8006
8007   FILE *f = fopen ("conftest.val", "w");
8008   if (! f)
8009     exit (1);
8010   if (((long) (sizeof (off_t))) < 0)
8011     {
8012       long i = longval ();
8013       if (i != ((long) (sizeof (off_t))))
8014         exit (1);
8015       fprintf (f, "%ld\n", i);
8016     }
8017   else
8018     {
8019       unsigned long i = ulongval ();
8020       if (i != ((long) (sizeof (off_t))))
8021         exit (1);
8022       fprintf (f, "%lu\n", i);
8023     }
8024   exit (ferror (f) || fclose (f) != 0);
8025
8026   ;
8027   return 0;
8028 }
8029 _ACEOF
8030 rm -f conftest$ac_exeext
8031 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8032   (eval $ac_link) 2>&5
8033   ac_status=$?
8034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8035   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8036   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8037   (eval $ac_try) 2>&5
8038   ac_status=$?
8039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8040   (exit $ac_status); }; }; then
8041   ac_cv_sizeof_off_t=`cat conftest.val`
8042 else
8043   echo "$as_me: program exited with status $ac_status" >&5
8044 echo "$as_me: failed program was:" >&5
8045 sed 's/^/| /' conftest.$ac_ext >&5
8046
8047 ( exit $ac_status )
8048 { { echo "$as_me:$LINENO: error: cannot compute sizeof (off_t), 77
8049 See \`config.log' for more details." >&5
8050 echo "$as_me: error: cannot compute sizeof (off_t), 77
8051 See \`config.log' for more details." >&2;}
8052    { (exit 1); exit 1; }; }
8053 fi
8054 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8055 fi
8056 fi
8057 rm -f conftest.val
8058 else
8059   ac_cv_sizeof_off_t=0
8060 fi
8061 fi
8062 echo "$as_me:$LINENO: result: $ac_cv_sizeof_off_t" >&5
8063 echo "${ECHO_T}$ac_cv_sizeof_off_t" >&6
8064 cat >>confdefs.h <<_ACEOF
8065 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
8066 _ACEOF
8067
8068         # Fake default value.
8069
8070 case "$host_os" in
8071         mingw*)
8072                 TYPEOF_SF_COUNT_T="__int64"
8073                 SF_COUNT_MAX="0x7FFFFFFFFFFFFFFFLL"
8074                 SIZEOF_SF_COUNT_T=8
8075                 ;;
8076         *)
8077                 if test "x$ac_cv_sizeof_off_t" = "x8" ; then
8078                         # If sizeof (off_t) is 8, no further checking is needed.
8079                         TYPEOF_SF_COUNT_T="off_t"
8080                         SF_COUNT_MAX="0x7FFFFFFFFFFFFFFFLL"
8081                         SIZEOF_SF_COUNT_T=8
8082                 else
8083                         # Check for common 64 bit file offset types.
8084                         echo "$as_me:$LINENO: checking for loff_t" >&5
8085 echo $ECHO_N "checking for loff_t... $ECHO_C" >&6
8086 if test "${ac_cv_type_loff_t+set}" = set; then
8087   echo $ECHO_N "(cached) $ECHO_C" >&6
8088 else
8089   cat >conftest.$ac_ext <<_ACEOF
8090 /* confdefs.h.  */
8091 _ACEOF
8092 cat confdefs.h >>conftest.$ac_ext
8093 cat >>conftest.$ac_ext <<_ACEOF
8094 /* end confdefs.h.  */
8095 $ac_includes_default
8096 int
8097 main ()
8098 {
8099 if ((loff_t *) 0)
8100   return 0;
8101 if (sizeof (loff_t))
8102   return 0;
8103   ;
8104   return 0;
8105 }
8106 _ACEOF
8107 rm -f conftest.$ac_objext
8108 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8109   (eval $ac_compile) 2>conftest.er1
8110   ac_status=$?
8111   grep -v '^ *+' conftest.er1 >conftest.err
8112   rm -f conftest.er1
8113   cat conftest.err >&5
8114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8115   (exit $ac_status); } &&
8116          { ac_try='test -z "$ac_c_werror_flag"
8117                          || test ! -s conftest.err'
8118   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8119   (eval $ac_try) 2>&5
8120   ac_status=$?
8121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8122   (exit $ac_status); }; } &&
8123          { ac_try='test -s conftest.$ac_objext'
8124   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8125   (eval $ac_try) 2>&5
8126   ac_status=$?
8127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8128   (exit $ac_status); }; }; then
8129   ac_cv_type_loff_t=yes
8130 else
8131   echo "$as_me: failed program was:" >&5
8132 sed 's/^/| /' conftest.$ac_ext >&5
8133
8134 ac_cv_type_loff_t=no
8135 fi
8136 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8137 fi
8138 echo "$as_me:$LINENO: result: $ac_cv_type_loff_t" >&5
8139 echo "${ECHO_T}$ac_cv_type_loff_t" >&6
8140
8141 echo "$as_me:$LINENO: checking size of loff_t" >&5
8142 echo $ECHO_N "checking size of loff_t... $ECHO_C" >&6
8143 if test "${ac_cv_sizeof_loff_t+set}" = set; then
8144   echo $ECHO_N "(cached) $ECHO_C" >&6
8145 else
8146   if test "$ac_cv_type_loff_t" = yes; then
8147   # The cast to unsigned long works around a bug in the HP C Compiler
8148   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8149   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8150   # This bug is HP SR number 8606223364.
8151   if test "$cross_compiling" = yes; then
8152   # Depending upon the size, compute the lo and hi bounds.
8153 cat >conftest.$ac_ext <<_ACEOF
8154 /* confdefs.h.  */
8155 _ACEOF
8156 cat confdefs.h >>conftest.$ac_ext
8157 cat >>conftest.$ac_ext <<_ACEOF
8158 /* end confdefs.h.  */
8159 $ac_includes_default
8160 int
8161 main ()
8162 {
8163 static int test_array [1 - 2 * !(((long) (sizeof (loff_t))) >= 0)];
8164 test_array [0] = 0
8165
8166   ;
8167   return 0;
8168 }
8169 _ACEOF
8170 rm -f conftest.$ac_objext
8171 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8172   (eval $ac_compile) 2>conftest.er1
8173   ac_status=$?
8174   grep -v '^ *+' conftest.er1 >conftest.err
8175   rm -f conftest.er1
8176   cat conftest.err >&5
8177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8178   (exit $ac_status); } &&
8179          { ac_try='test -z "$ac_c_werror_flag"
8180                          || test ! -s conftest.err'
8181   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8182   (eval $ac_try) 2>&5
8183   ac_status=$?
8184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8185   (exit $ac_status); }; } &&
8186          { ac_try='test -s conftest.$ac_objext'
8187   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8188   (eval $ac_try) 2>&5
8189   ac_status=$?
8190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8191   (exit $ac_status); }; }; then
8192   ac_lo=0 ac_mid=0
8193   while :; do
8194     cat >conftest.$ac_ext <<_ACEOF
8195 /* confdefs.h.  */
8196 _ACEOF
8197 cat confdefs.h >>conftest.$ac_ext
8198 cat >>conftest.$ac_ext <<_ACEOF
8199 /* end confdefs.h.  */
8200 $ac_includes_default
8201 int
8202 main ()
8203 {
8204 static int test_array [1 - 2 * !(((long) (sizeof (loff_t))) <= $ac_mid)];
8205 test_array [0] = 0
8206
8207   ;
8208   return 0;
8209 }
8210 _ACEOF
8211 rm -f conftest.$ac_objext
8212 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8213   (eval $ac_compile) 2>conftest.er1
8214   ac_status=$?
8215   grep -v '^ *+' conftest.er1 >conftest.err
8216   rm -f conftest.er1
8217   cat conftest.err >&5
8218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8219   (exit $ac_status); } &&
8220          { ac_try='test -z "$ac_c_werror_flag"
8221                          || test ! -s conftest.err'
8222   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8223   (eval $ac_try) 2>&5
8224   ac_status=$?
8225   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8226   (exit $ac_status); }; } &&
8227          { ac_try='test -s conftest.$ac_objext'
8228   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8229   (eval $ac_try) 2>&5
8230   ac_status=$?
8231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8232   (exit $ac_status); }; }; then
8233   ac_hi=$ac_mid; break
8234 else
8235   echo "$as_me: failed program was:" >&5
8236 sed 's/^/| /' conftest.$ac_ext >&5
8237
8238 ac_lo=`expr $ac_mid + 1`
8239                     if test $ac_lo -le $ac_mid; then
8240                       ac_lo= ac_hi=
8241                       break
8242                     fi
8243                     ac_mid=`expr 2 '*' $ac_mid + 1`
8244 fi
8245 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8246   done
8247 else
8248   echo "$as_me: failed program was:" >&5
8249 sed 's/^/| /' conftest.$ac_ext >&5
8250
8251 cat >conftest.$ac_ext <<_ACEOF
8252 /* confdefs.h.  */
8253 _ACEOF
8254 cat confdefs.h >>conftest.$ac_ext
8255 cat >>conftest.$ac_ext <<_ACEOF
8256 /* end confdefs.h.  */
8257 $ac_includes_default
8258 int
8259 main ()
8260 {
8261 static int test_array [1 - 2 * !(((long) (sizeof (loff_t))) < 0)];
8262 test_array [0] = 0
8263
8264   ;
8265   return 0;
8266 }
8267 _ACEOF
8268 rm -f conftest.$ac_objext
8269 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8270   (eval $ac_compile) 2>conftest.er1
8271   ac_status=$?
8272   grep -v '^ *+' conftest.er1 >conftest.err
8273   rm -f conftest.er1
8274   cat conftest.err >&5
8275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8276   (exit $ac_status); } &&
8277          { ac_try='test -z "$ac_c_werror_flag"
8278                          || test ! -s conftest.err'
8279   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8280   (eval $ac_try) 2>&5
8281   ac_status=$?
8282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8283   (exit $ac_status); }; } &&
8284          { ac_try='test -s conftest.$ac_objext'
8285   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8286   (eval $ac_try) 2>&5
8287   ac_status=$?
8288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8289   (exit $ac_status); }; }; then
8290   ac_hi=-1 ac_mid=-1
8291   while :; do
8292     cat >conftest.$ac_ext <<_ACEOF
8293 /* confdefs.h.  */
8294 _ACEOF
8295 cat confdefs.h >>conftest.$ac_ext
8296 cat >>conftest.$ac_ext <<_ACEOF
8297 /* end confdefs.h.  */
8298 $ac_includes_default
8299 int
8300 main ()
8301 {
8302 static int test_array [1 - 2 * !(((long) (sizeof (loff_t))) >= $ac_mid)];
8303 test_array [0] = 0
8304
8305   ;
8306   return 0;
8307 }
8308 _ACEOF
8309 rm -f conftest.$ac_objext
8310 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8311   (eval $ac_compile) 2>conftest.er1
8312   ac_status=$?
8313   grep -v '^ *+' conftest.er1 >conftest.err
8314   rm -f conftest.er1
8315   cat conftest.err >&5
8316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8317   (exit $ac_status); } &&
8318          { ac_try='test -z "$ac_c_werror_flag"
8319                          || test ! -s conftest.err'
8320   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8321   (eval $ac_try) 2>&5
8322   ac_status=$?
8323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8324   (exit $ac_status); }; } &&
8325          { ac_try='test -s conftest.$ac_objext'
8326   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8327   (eval $ac_try) 2>&5
8328   ac_status=$?
8329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8330   (exit $ac_status); }; }; then
8331   ac_lo=$ac_mid; break
8332 else
8333   echo "$as_me: failed program was:" >&5
8334 sed 's/^/| /' conftest.$ac_ext >&5
8335
8336 ac_hi=`expr '(' $ac_mid ')' - 1`
8337                        if test $ac_mid -le $ac_hi; then
8338                          ac_lo= ac_hi=
8339                          break
8340                        fi
8341                        ac_mid=`expr 2 '*' $ac_mid`
8342 fi
8343 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8344   done
8345 else
8346   echo "$as_me: failed program was:" >&5
8347 sed 's/^/| /' conftest.$ac_ext >&5
8348
8349 ac_lo= ac_hi=
8350 fi
8351 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8352 fi
8353 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8354 # Binary search between lo and hi bounds.
8355 while test "x$ac_lo" != "x$ac_hi"; do
8356   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8357   cat >conftest.$ac_ext <<_ACEOF
8358 /* confdefs.h.  */
8359 _ACEOF
8360 cat confdefs.h >>conftest.$ac_ext
8361 cat >>conftest.$ac_ext <<_ACEOF
8362 /* end confdefs.h.  */
8363 $ac_includes_default
8364 int
8365 main ()
8366 {
8367 static int test_array [1 - 2 * !(((long) (sizeof (loff_t))) <= $ac_mid)];
8368 test_array [0] = 0
8369
8370   ;
8371   return 0;
8372 }
8373 _ACEOF
8374 rm -f conftest.$ac_objext
8375 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8376   (eval $ac_compile) 2>conftest.er1
8377   ac_status=$?
8378   grep -v '^ *+' conftest.er1 >conftest.err
8379   rm -f conftest.er1
8380   cat conftest.err >&5
8381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8382   (exit $ac_status); } &&
8383          { ac_try='test -z "$ac_c_werror_flag"
8384                          || test ! -s conftest.err'
8385   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8386   (eval $ac_try) 2>&5
8387   ac_status=$?
8388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8389   (exit $ac_status); }; } &&
8390          { ac_try='test -s conftest.$ac_objext'
8391   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8392   (eval $ac_try) 2>&5
8393   ac_status=$?
8394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8395   (exit $ac_status); }; }; then
8396   ac_hi=$ac_mid
8397 else
8398   echo "$as_me: failed program was:" >&5
8399 sed 's/^/| /' conftest.$ac_ext >&5
8400
8401 ac_lo=`expr '(' $ac_mid ')' + 1`
8402 fi
8403 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8404 done
8405 case $ac_lo in
8406 ?*) ac_cv_sizeof_loff_t=$ac_lo;;
8407 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (loff_t), 77
8408 See \`config.log' for more details." >&5
8409 echo "$as_me: error: cannot compute sizeof (loff_t), 77
8410 See \`config.log' for more details." >&2;}
8411    { (exit 1); exit 1; }; } ;;
8412 esac
8413 else
8414   if test "$cross_compiling" = yes; then
8415   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
8416 See \`config.log' for more details." >&5
8417 echo "$as_me: error: cannot run test program while cross compiling
8418 See \`config.log' for more details." >&2;}
8419    { (exit 1); exit 1; }; }
8420 else
8421   cat >conftest.$ac_ext <<_ACEOF
8422 /* confdefs.h.  */
8423 _ACEOF
8424 cat confdefs.h >>conftest.$ac_ext
8425 cat >>conftest.$ac_ext <<_ACEOF
8426 /* end confdefs.h.  */
8427 $ac_includes_default
8428 long longval () { return (long) (sizeof (loff_t)); }
8429 unsigned long ulongval () { return (long) (sizeof (loff_t)); }
8430 #include <stdio.h>
8431 #include <stdlib.h>
8432 int
8433 main ()
8434 {
8435
8436   FILE *f = fopen ("conftest.val", "w");
8437   if (! f)
8438     exit (1);
8439   if (((long) (sizeof (loff_t))) < 0)
8440     {
8441       long i = longval ();
8442       if (i != ((long) (sizeof (loff_t))))
8443         exit (1);
8444       fprintf (f, "%ld\n", i);
8445     }
8446   else
8447     {
8448       unsigned long i = ulongval ();
8449       if (i != ((long) (sizeof (loff_t))))
8450         exit (1);
8451       fprintf (f, "%lu\n", i);
8452     }
8453   exit (ferror (f) || fclose (f) != 0);
8454
8455   ;
8456   return 0;
8457 }
8458 _ACEOF
8459 rm -f conftest$ac_exeext
8460 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8461   (eval $ac_link) 2>&5
8462   ac_status=$?
8463   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8464   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8465   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8466   (eval $ac_try) 2>&5
8467   ac_status=$?
8468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8469   (exit $ac_status); }; }; then
8470   ac_cv_sizeof_loff_t=`cat conftest.val`
8471 else
8472   echo "$as_me: program exited with status $ac_status" >&5
8473 echo "$as_me: failed program was:" >&5
8474 sed 's/^/| /' conftest.$ac_ext >&5
8475
8476 ( exit $ac_status )
8477 { { echo "$as_me:$LINENO: error: cannot compute sizeof (loff_t), 77
8478 See \`config.log' for more details." >&5
8479 echo "$as_me: error: cannot compute sizeof (loff_t), 77
8480 See \`config.log' for more details." >&2;}
8481    { (exit 1); exit 1; }; }
8482 fi
8483 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8484 fi
8485 fi
8486 rm -f conftest.val
8487 else
8488   ac_cv_sizeof_loff_t=0
8489 fi
8490 fi
8491 echo "$as_me:$LINENO: result: $ac_cv_sizeof_loff_t" >&5
8492 echo "${ECHO_T}$ac_cv_sizeof_loff_t" >&6
8493 cat >>confdefs.h <<_ACEOF
8494 #define SIZEOF_LOFF_T $ac_cv_sizeof_loff_t
8495 _ACEOF
8496
8497         # Fake default value.
8498                         echo "$as_me:$LINENO: checking for off64_t" >&5
8499 echo $ECHO_N "checking for off64_t... $ECHO_C" >&6
8500 if test "${ac_cv_type_off64_t+set}" = set; then
8501   echo $ECHO_N "(cached) $ECHO_C" >&6
8502 else
8503   cat >conftest.$ac_ext <<_ACEOF
8504 /* confdefs.h.  */
8505 _ACEOF
8506 cat confdefs.h >>conftest.$ac_ext
8507 cat >>conftest.$ac_ext <<_ACEOF
8508 /* end confdefs.h.  */
8509 $ac_includes_default
8510 int
8511 main ()
8512 {
8513 if ((off64_t *) 0)
8514   return 0;
8515 if (sizeof (off64_t))
8516   return 0;
8517   ;
8518   return 0;
8519 }
8520 _ACEOF
8521 rm -f conftest.$ac_objext
8522 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8523   (eval $ac_compile) 2>conftest.er1
8524   ac_status=$?
8525   grep -v '^ *+' conftest.er1 >conftest.err
8526   rm -f conftest.er1
8527   cat conftest.err >&5
8528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8529   (exit $ac_status); } &&
8530          { ac_try='test -z "$ac_c_werror_flag"
8531                          || test ! -s conftest.err'
8532   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8533   (eval $ac_try) 2>&5
8534   ac_status=$?
8535   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8536   (exit $ac_status); }; } &&
8537          { ac_try='test -s conftest.$ac_objext'
8538   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8539   (eval $ac_try) 2>&5
8540   ac_status=$?
8541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8542   (exit $ac_status); }; }; then
8543   ac_cv_type_off64_t=yes
8544 else
8545   echo "$as_me: failed program was:" >&5
8546 sed 's/^/| /' conftest.$ac_ext >&5
8547
8548 ac_cv_type_off64_t=no
8549 fi
8550 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8551 fi
8552 echo "$as_me:$LINENO: result: $ac_cv_type_off64_t" >&5
8553 echo "${ECHO_T}$ac_cv_type_off64_t" >&6
8554
8555 echo "$as_me:$LINENO: checking size of off64_t" >&5
8556 echo $ECHO_N "checking size of off64_t... $ECHO_C" >&6
8557 if test "${ac_cv_sizeof_off64_t+set}" = set; then
8558   echo $ECHO_N "(cached) $ECHO_C" >&6
8559 else
8560   if test "$ac_cv_type_off64_t" = yes; then
8561   # The cast to unsigned long works around a bug in the HP C Compiler
8562   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8563   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8564   # This bug is HP SR number 8606223364.
8565   if test "$cross_compiling" = yes; then
8566   # Depending upon the size, compute the lo and hi bounds.
8567 cat >conftest.$ac_ext <<_ACEOF
8568 /* confdefs.h.  */
8569 _ACEOF
8570 cat confdefs.h >>conftest.$ac_ext
8571 cat >>conftest.$ac_ext <<_ACEOF
8572 /* end confdefs.h.  */
8573 $ac_includes_default
8574 int
8575 main ()
8576 {
8577 static int test_array [1 - 2 * !(((long) (sizeof (off64_t))) >= 0)];
8578 test_array [0] = 0
8579
8580   ;
8581   return 0;
8582 }
8583 _ACEOF
8584 rm -f conftest.$ac_objext
8585 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8586   (eval $ac_compile) 2>conftest.er1
8587   ac_status=$?
8588   grep -v '^ *+' conftest.er1 >conftest.err
8589   rm -f conftest.er1
8590   cat conftest.err >&5
8591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8592   (exit $ac_status); } &&
8593          { ac_try='test -z "$ac_c_werror_flag"
8594                          || test ! -s conftest.err'
8595   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8596   (eval $ac_try) 2>&5
8597   ac_status=$?
8598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8599   (exit $ac_status); }; } &&
8600          { ac_try='test -s conftest.$ac_objext'
8601   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8602   (eval $ac_try) 2>&5
8603   ac_status=$?
8604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8605   (exit $ac_status); }; }; then
8606   ac_lo=0 ac_mid=0
8607   while :; do
8608     cat >conftest.$ac_ext <<_ACEOF
8609 /* confdefs.h.  */
8610 _ACEOF
8611 cat confdefs.h >>conftest.$ac_ext
8612 cat >>conftest.$ac_ext <<_ACEOF
8613 /* end confdefs.h.  */
8614 $ac_includes_default
8615 int
8616 main ()
8617 {
8618 static int test_array [1 - 2 * !(((long) (sizeof (off64_t))) <= $ac_mid)];
8619 test_array [0] = 0
8620
8621   ;
8622   return 0;
8623 }
8624 _ACEOF
8625 rm -f conftest.$ac_objext
8626 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8627   (eval $ac_compile) 2>conftest.er1
8628   ac_status=$?
8629   grep -v '^ *+' conftest.er1 >conftest.err
8630   rm -f conftest.er1
8631   cat conftest.err >&5
8632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8633   (exit $ac_status); } &&
8634          { ac_try='test -z "$ac_c_werror_flag"
8635                          || test ! -s conftest.err'
8636   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8637   (eval $ac_try) 2>&5
8638   ac_status=$?
8639   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8640   (exit $ac_status); }; } &&
8641          { ac_try='test -s conftest.$ac_objext'
8642   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8643   (eval $ac_try) 2>&5
8644   ac_status=$?
8645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8646   (exit $ac_status); }; }; then
8647   ac_hi=$ac_mid; break
8648 else
8649   echo "$as_me: failed program was:" >&5
8650 sed 's/^/| /' conftest.$ac_ext >&5
8651
8652 ac_lo=`expr $ac_mid + 1`
8653                     if test $ac_lo -le $ac_mid; then
8654                       ac_lo= ac_hi=
8655                       break
8656                     fi
8657                     ac_mid=`expr 2 '*' $ac_mid + 1`
8658 fi
8659 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8660   done
8661 else
8662   echo "$as_me: failed program was:" >&5
8663 sed 's/^/| /' conftest.$ac_ext >&5
8664
8665 cat >conftest.$ac_ext <<_ACEOF
8666 /* confdefs.h.  */
8667 _ACEOF
8668 cat confdefs.h >>conftest.$ac_ext
8669 cat >>conftest.$ac_ext <<_ACEOF
8670 /* end confdefs.h.  */
8671 $ac_includes_default
8672 int
8673 main ()
8674 {
8675 static int test_array [1 - 2 * !(((long) (sizeof (off64_t))) < 0)];
8676 test_array [0] = 0
8677
8678   ;
8679   return 0;
8680 }
8681 _ACEOF
8682 rm -f conftest.$ac_objext
8683 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8684   (eval $ac_compile) 2>conftest.er1
8685   ac_status=$?
8686   grep -v '^ *+' conftest.er1 >conftest.err
8687   rm -f conftest.er1
8688   cat conftest.err >&5
8689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8690   (exit $ac_status); } &&
8691          { ac_try='test -z "$ac_c_werror_flag"
8692                          || test ! -s conftest.err'
8693   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8694   (eval $ac_try) 2>&5
8695   ac_status=$?
8696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8697   (exit $ac_status); }; } &&
8698          { ac_try='test -s conftest.$ac_objext'
8699   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8700   (eval $ac_try) 2>&5
8701   ac_status=$?
8702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8703   (exit $ac_status); }; }; then
8704   ac_hi=-1 ac_mid=-1
8705   while :; do
8706     cat >conftest.$ac_ext <<_ACEOF
8707 /* confdefs.h.  */
8708 _ACEOF
8709 cat confdefs.h >>conftest.$ac_ext
8710 cat >>conftest.$ac_ext <<_ACEOF
8711 /* end confdefs.h.  */
8712 $ac_includes_default
8713 int
8714 main ()
8715 {
8716 static int test_array [1 - 2 * !(((long) (sizeof (off64_t))) >= $ac_mid)];
8717 test_array [0] = 0
8718
8719   ;
8720   return 0;
8721 }
8722 _ACEOF
8723 rm -f conftest.$ac_objext
8724 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8725   (eval $ac_compile) 2>conftest.er1
8726   ac_status=$?
8727   grep -v '^ *+' conftest.er1 >conftest.err
8728   rm -f conftest.er1
8729   cat conftest.err >&5
8730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8731   (exit $ac_status); } &&
8732          { ac_try='test -z "$ac_c_werror_flag"
8733                          || test ! -s conftest.err'
8734   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8735   (eval $ac_try) 2>&5
8736   ac_status=$?
8737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8738   (exit $ac_status); }; } &&
8739          { ac_try='test -s conftest.$ac_objext'
8740   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8741   (eval $ac_try) 2>&5
8742   ac_status=$?
8743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8744   (exit $ac_status); }; }; then
8745   ac_lo=$ac_mid; break
8746 else
8747   echo "$as_me: failed program was:" >&5
8748 sed 's/^/| /' conftest.$ac_ext >&5
8749
8750 ac_hi=`expr '(' $ac_mid ')' - 1`
8751                        if test $ac_mid -le $ac_hi; then
8752                          ac_lo= ac_hi=
8753                          break
8754                        fi
8755                        ac_mid=`expr 2 '*' $ac_mid`
8756 fi
8757 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8758   done
8759 else
8760   echo "$as_me: failed program was:" >&5
8761 sed 's/^/| /' conftest.$ac_ext >&5
8762
8763 ac_lo= ac_hi=
8764 fi
8765 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8766 fi
8767 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8768 # Binary search between lo and hi bounds.
8769 while test "x$ac_lo" != "x$ac_hi"; do
8770   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8771   cat >conftest.$ac_ext <<_ACEOF
8772 /* confdefs.h.  */
8773 _ACEOF
8774 cat confdefs.h >>conftest.$ac_ext
8775 cat >>conftest.$ac_ext <<_ACEOF
8776 /* end confdefs.h.  */
8777 $ac_includes_default
8778 int
8779 main ()
8780 {
8781 static int test_array [1 - 2 * !(((long) (sizeof (off64_t))) <= $ac_mid)];
8782 test_array [0] = 0
8783
8784   ;
8785   return 0;
8786 }
8787 _ACEOF
8788 rm -f conftest.$ac_objext
8789 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8790   (eval $ac_compile) 2>conftest.er1
8791   ac_status=$?
8792   grep -v '^ *+' conftest.er1 >conftest.err
8793   rm -f conftest.er1
8794   cat conftest.err >&5
8795   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8796   (exit $ac_status); } &&
8797          { ac_try='test -z "$ac_c_werror_flag"
8798                          || test ! -s conftest.err'
8799   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8800   (eval $ac_try) 2>&5
8801   ac_status=$?
8802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8803   (exit $ac_status); }; } &&
8804          { ac_try='test -s conftest.$ac_objext'
8805   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8806   (eval $ac_try) 2>&5
8807   ac_status=$?
8808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8809   (exit $ac_status); }; }; then
8810   ac_hi=$ac_mid
8811 else
8812   echo "$as_me: failed program was:" >&5
8813 sed 's/^/| /' conftest.$ac_ext >&5
8814
8815 ac_lo=`expr '(' $ac_mid ')' + 1`
8816 fi
8817 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8818 done
8819 case $ac_lo in
8820 ?*) ac_cv_sizeof_off64_t=$ac_lo;;
8821 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (off64_t), 77
8822 See \`config.log' for more details." >&5
8823 echo "$as_me: error: cannot compute sizeof (off64_t), 77
8824 See \`config.log' for more details." >&2;}
8825    { (exit 1); exit 1; }; } ;;
8826 esac
8827 else
8828   if test "$cross_compiling" = yes; then
8829   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
8830 See \`config.log' for more details." >&5
8831 echo "$as_me: error: cannot run test program while cross compiling
8832 See \`config.log' for more details." >&2;}
8833    { (exit 1); exit 1; }; }
8834 else
8835   cat >conftest.$ac_ext <<_ACEOF
8836 /* confdefs.h.  */
8837 _ACEOF
8838 cat confdefs.h >>conftest.$ac_ext
8839 cat >>conftest.$ac_ext <<_ACEOF
8840 /* end confdefs.h.  */
8841 $ac_includes_default
8842 long longval () { return (long) (sizeof (off64_t)); }
8843 unsigned long ulongval () { return (long) (sizeof (off64_t)); }
8844 #include <stdio.h>
8845 #include <stdlib.h>
8846 int
8847 main ()
8848 {
8849
8850   FILE *f = fopen ("conftest.val", "w");
8851   if (! f)
8852     exit (1);
8853   if (((long) (sizeof (off64_t))) < 0)
8854     {
8855       long i = longval ();
8856       if (i != ((long) (sizeof (off64_t))))
8857         exit (1);
8858       fprintf (f, "%ld\n", i);
8859     }
8860   else
8861     {
8862       unsigned long i = ulongval ();
8863       if (i != ((long) (sizeof (off64_t))))
8864         exit (1);
8865       fprintf (f, "%lu\n", i);
8866     }
8867   exit (ferror (f) || fclose (f) != 0);
8868
8869   ;
8870   return 0;
8871 }
8872 _ACEOF
8873 rm -f conftest$ac_exeext
8874 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8875   (eval $ac_link) 2>&5
8876   ac_status=$?
8877   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8878   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8879   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8880   (eval $ac_try) 2>&5
8881   ac_status=$?
8882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8883   (exit $ac_status); }; }; then
8884   ac_cv_sizeof_off64_t=`cat conftest.val`
8885 else
8886   echo "$as_me: program exited with status $ac_status" >&5
8887 echo "$as_me: failed program was:" >&5
8888 sed 's/^/| /' conftest.$ac_ext >&5
8889
8890 ( exit $ac_status )
8891 { { echo "$as_me:$LINENO: error: cannot compute sizeof (off64_t), 77
8892 See \`config.log' for more details." >&5
8893 echo "$as_me: error: cannot compute sizeof (off64_t), 77
8894 See \`config.log' for more details." >&2;}
8895    { (exit 1); exit 1; }; }
8896 fi
8897 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8898 fi
8899 fi
8900 rm -f conftest.val
8901 else
8902   ac_cv_sizeof_off64_t=0
8903 fi
8904 fi
8905 echo "$as_me:$LINENO: result: $ac_cv_sizeof_off64_t" >&5
8906 echo "${ECHO_T}$ac_cv_sizeof_off64_t" >&6
8907 cat >>confdefs.h <<_ACEOF
8908 #define SIZEOF_OFF64_T $ac_cv_sizeof_off64_t
8909 _ACEOF
8910
8911         # Fake default value.
8912
8913                         TYPEOF_SF_COUNT_T="unknown"
8914                         if test "x$ac_cv_sizeof_loff_t" = "x8" ; then
8915                                 TYPEOF_SF_COUNT_T="loff_t"
8916                                 SIZEOF_SF_COUNT_T=8
8917                         elif test "x$ac_cv_sizeof_off64_t" = "x8" ; then
8918                                 TYPEOF_SF_COUNT_T="off64_t"
8919                                 SIZEOF_SF_COUNT_T=8
8920                                 fi
8921
8922                         # Save the old sizeof (off_t) value  and then unset it to see if it
8923                         # changes when Large File Support is enabled.
8924
8925                         pre_largefile_sizeof_off_t=$ac_cv_sizeof_off_t
8926                         unset ac_cv_sizeof_off_t
8927
8928
8929    # Check whether --enable-largefile or --disable-largefile was given.
8930 if test "${enable_largefile+set}" = set; then
8931   enableval="$enable_largefile"
8932
8933 fi;
8934    if test "$enable_largefile" != no; then
8935      if test -n "$ac_tool_prefix"; then
8936   # Extract the first word of "${ac_tool_prefix}getconf", so it can be a program name with args.
8937 set dummy ${ac_tool_prefix}getconf; ac_word=$2
8938 echo "$as_me:$LINENO: checking for $ac_word" >&5
8939 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8940 if test "${ac_cv_prog_GETCONF+set}" = set; then
8941   echo $ECHO_N "(cached) $ECHO_C" >&6
8942 else
8943   if test -n "$GETCONF"; then
8944   ac_cv_prog_GETCONF="$GETCONF" # Let the user override the test.
8945 else
8946 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8947 for as_dir in $PATH
8948 do
8949   IFS=$as_save_IFS
8950   test -z "$as_dir" && as_dir=.
8951   for ac_exec_ext in '' $ac_executable_extensions; do
8952   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8953     ac_cv_prog_GETCONF="${ac_tool_prefix}getconf"
8954     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8955     break 2
8956   fi
8957 done
8958 done
8959
8960 fi
8961 fi
8962 GETCONF=$ac_cv_prog_GETCONF
8963 if test -n "$GETCONF"; then
8964   echo "$as_me:$LINENO: result: $GETCONF" >&5
8965 echo "${ECHO_T}$GETCONF" >&6
8966 else
8967   echo "$as_me:$LINENO: result: no" >&5
8968 echo "${ECHO_T}no" >&6
8969 fi
8970
8971 fi
8972 if test -z "$ac_cv_prog_GETCONF"; then
8973   ac_ct_GETCONF=$GETCONF
8974   # Extract the first word of "getconf", so it can be a program name with args.
8975 set dummy getconf; ac_word=$2
8976 echo "$as_me:$LINENO: checking for $ac_word" >&5
8977 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8978 if test "${ac_cv_prog_ac_ct_GETCONF+set}" = set; then
8979   echo $ECHO_N "(cached) $ECHO_C" >&6
8980 else
8981   if test -n "$ac_ct_GETCONF"; then
8982   ac_cv_prog_ac_ct_GETCONF="$ac_ct_GETCONF" # Let the user override the test.
8983 else
8984 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8985 for as_dir in $PATH
8986 do
8987   IFS=$as_save_IFS
8988   test -z "$as_dir" && as_dir=.
8989   for ac_exec_ext in '' $ac_executable_extensions; do
8990   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8991     ac_cv_prog_ac_ct_GETCONF="getconf"
8992     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8993     break 2
8994   fi
8995 done
8996 done
8997
8998 fi
8999 fi
9000 ac_ct_GETCONF=$ac_cv_prog_ac_ct_GETCONF
9001 if test -n "$ac_ct_GETCONF"; then
9002   echo "$as_me:$LINENO: result: $ac_ct_GETCONF" >&5
9003 echo "${ECHO_T}$ac_ct_GETCONF" >&6
9004 else
9005   echo "$as_me:$LINENO: result: no" >&5
9006 echo "${ECHO_T}no" >&6
9007 fi
9008
9009   GETCONF=$ac_ct_GETCONF
9010 else
9011   GETCONF="$ac_cv_prog_GETCONF"
9012 fi
9013
9014      echo "$as_me:$LINENO: checking for CFLAGS value to request large file support" >&5
9015 echo $ECHO_N "checking for CFLAGS value to request large file support... $ECHO_C" >&6
9016 if test "${ac_cv_sys_largefile_CFLAGS+set}" = set; then
9017   echo $ECHO_N "(cached) $ECHO_C" >&6
9018 else
9019   ac_cv_sys_largefile_CFLAGS=`($GETCONF LFS_CFLAGS) 2>/dev/null` || {
9020         ac_cv_sys_largefile_CFLAGS=no
9021         case "$host_os" in
9022            # IRIX 6.2 and later require cc -n32.
9023            irix6.[2-9]* | irix6.1[0-9]* | irix[7-9].* | irix[1-9][0-9]*)
9024              if test "$GCC" != yes; then
9025                ac_cv_sys_largefile_CFLAGS=-n32
9026              fi
9027              ac_save_CC="$CC"
9028              CC="$CC $ac_cv_sys_largefile_CFLAGS"
9029              cat >conftest.$ac_ext <<_ACEOF
9030 /* confdefs.h.  */
9031 _ACEOF
9032 cat confdefs.h >>conftest.$ac_ext
9033 cat >>conftest.$ac_ext <<_ACEOF
9034 /* end confdefs.h.  */
9035
9036 int
9037 main ()
9038 {
9039
9040   ;
9041   return 0;
9042 }
9043 _ACEOF
9044 rm -f conftest.$ac_objext conftest$ac_exeext
9045 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9046   (eval $ac_link) 2>conftest.er1
9047   ac_status=$?
9048   grep -v '^ *+' conftest.er1 >conftest.err
9049   rm -f conftest.er1
9050   cat conftest.err >&5
9051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9052   (exit $ac_status); } &&
9053          { ac_try='test -z "$ac_c_werror_flag"
9054                          || test ! -s conftest.err'
9055   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9056   (eval $ac_try) 2>&5
9057   ac_status=$?
9058   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9059   (exit $ac_status); }; } &&
9060          { ac_try='test -s conftest$ac_exeext'
9061   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9062   (eval $ac_try) 2>&5
9063   ac_status=$?
9064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9065   (exit $ac_status); }; }; then
9066   :
9067 else
9068   echo "$as_me: failed program was:" >&5
9069 sed 's/^/| /' conftest.$ac_ext >&5
9070
9071 ac_cv_sys_largefile_CFLAGS=no
9072 fi
9073 rm -f conftest.err conftest.$ac_objext \
9074       conftest$ac_exeext conftest.$ac_ext
9075              CC="$ac_save_CC"
9076            esac
9077       }
9078 fi
9079 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CFLAGS" >&5
9080 echo "${ECHO_T}$ac_cv_sys_largefile_CFLAGS" >&6
9081      echo "$as_me:$LINENO: checking for LDFLAGS value to request large file support" >&5
9082 echo $ECHO_N "checking for LDFLAGS value to request large file support... $ECHO_C" >&6
9083 if test "${ac_cv_sys_largefile_LDFLAGS+set}" = set; then
9084   echo $ECHO_N "(cached) $ECHO_C" >&6
9085 else
9086   ac_cv_sys_largefile_LDFLAGS=`($GETCONF LFS_LDFLAGS) 2>/dev/null` || {
9087         ac_cv_sys_largefile_LDFLAGS=no
9088
9089       }
9090 fi
9091 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LDFLAGS" >&5
9092 echo "${ECHO_T}$ac_cv_sys_largefile_LDFLAGS" >&6
9093      echo "$as_me:$LINENO: checking for LIBS value to request large file support" >&5
9094 echo $ECHO_N "checking for LIBS value to request large file support... $ECHO_C" >&6
9095 if test "${ac_cv_sys_largefile_LIBS+set}" = set; then
9096   echo $ECHO_N "(cached) $ECHO_C" >&6
9097 else
9098   ac_cv_sys_largefile_LIBS=`($GETCONF LFS_LIBS) 2>/dev/null` || {
9099         ac_cv_sys_largefile_LIBS=no
9100
9101       }
9102 fi
9103 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LIBS" >&5
9104 echo "${ECHO_T}$ac_cv_sys_largefile_LIBS" >&6
9105
9106      for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
9107        case "$ac_flag" in
9108        no) ;;
9109        -D_FILE_OFFSET_BITS=*) ;;
9110        -D_LARGEFILE_SOURCE | -D_LARGEFILE_SOURCE=*) ;;
9111        -D_LARGE_FILES | -D_LARGE_FILES=*) ;;
9112        -D?* | -I?*)
9113          case "$ac_flag" in
9114    no) ;;
9115    ?*)
9116      case "$CPPFLAGS" in
9117      '') CPPFLAGS="$ac_flag" ;;
9118      *) CPPFLAGS=$CPPFLAGS' '"$ac_flag" ;;
9119      esac ;;
9120    esac ;;
9121        *)
9122          case "$ac_flag" in
9123    no) ;;
9124    ?*)
9125      case "$CFLAGS" in
9126      '') CFLAGS="$ac_flag" ;;
9127      *) CFLAGS=$CFLAGS' '"$ac_flag" ;;
9128      esac ;;
9129    esac ;;
9130        esac
9131      done
9132      case "$ac_cv_sys_largefile_LDFLAGS" in
9133    no) ;;
9134    ?*)
9135      case "$LDFLAGS" in
9136      '') LDFLAGS="$ac_cv_sys_largefile_LDFLAGS" ;;
9137      *) LDFLAGS=$LDFLAGS' '"$ac_cv_sys_largefile_LDFLAGS" ;;
9138      esac ;;
9139    esac
9140      case "$ac_cv_sys_largefile_LIBS" in
9141    no) ;;
9142    ?*)
9143      case "$LIBS" in
9144      '') LIBS="$ac_cv_sys_largefile_LIBS" ;;
9145      *) LIBS=$LIBS' '"$ac_cv_sys_largefile_LIBS" ;;
9146      esac ;;
9147    esac
9148      echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS" >&5
9149 echo $ECHO_N "checking for _FILE_OFFSET_BITS... $ECHO_C" >&6
9150 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
9151   echo $ECHO_N "(cached) $ECHO_C" >&6
9152 else
9153   ac_cv_sys_file_offset_bits=no
9154
9155       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
9156         case "$ac_flag" in
9157         -D_FILE_OFFSET_BITS)
9158           ac_cv_sys_file_offset_bits=1 ;;
9159         -D_FILE_OFFSET_BITS=*)
9160           ac_cv_sys_file_offset_bits=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
9161         esac
9162       done
9163
9164 fi
9165 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
9166 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
9167    if test "$ac_cv_sys_file_offset_bits" != no; then
9168
9169 cat >>confdefs.h <<_ACEOF
9170 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
9171 _ACEOF
9172
9173    fi
9174        case "$host_os" in
9175         # HP-UX 10.20 and later
9176         hpux10.[2-9][0-9]* | hpux1[1-9]* | hpux[2-9][0-9]*)
9177           ac_cv_sys_file_offset_bits=64 ;;
9178         esac
9179      echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE" >&5
9180 echo $ECHO_N "checking for _LARGEFILE_SOURCE... $ECHO_C" >&6
9181 if test "${ac_cv_sys_largefile_source+set}" = set; then
9182   echo $ECHO_N "(cached) $ECHO_C" >&6
9183 else
9184   ac_cv_sys_largefile_source=no
9185       case "$host_os" in
9186         # HP-UX 10.20 and later
9187         hpux10.[2-9][0-9]* | hpux1[1-9]* | hpux[2-9][0-9]*)
9188           ac_cv_sys_largefile_source=1 ;;
9189         esac
9190       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
9191         case "$ac_flag" in
9192         -D_LARGEFILE_SOURCE)
9193           ac_cv_sys_largefile_source=1 ;;
9194         -D_LARGEFILE_SOURCE=*)
9195           ac_cv_sys_largefile_source=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
9196         esac
9197       done
9198
9199 fi
9200 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
9201 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
9202    if test "$ac_cv_sys_largefile_source" != no; then
9203
9204 cat >>confdefs.h <<_ACEOF
9205 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
9206 _ACEOF
9207
9208    fi
9209      echo "$as_me:$LINENO: checking for _LARGE_FILES" >&5
9210 echo $ECHO_N "checking for _LARGE_FILES... $ECHO_C" >&6
9211 if test "${ac_cv_sys_large_files+set}" = set; then
9212   echo $ECHO_N "(cached) $ECHO_C" >&6
9213 else
9214   ac_cv_sys_large_files=no
9215       case "$host_os" in
9216         # AIX 4.2 and later
9217         aix4.[2-9]* | aix4.1[0-9]* | aix[5-9].* | aix[1-9][0-9]*)
9218           ac_cv_sys_large_files=1 ;;
9219         esac
9220       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
9221         case "$ac_flag" in
9222         -D_LARGE_FILES)
9223           ac_cv_sys_large_files=1 ;;
9224         -D_LARGE_FILES=*)
9225           ac_cv_sys_large_files=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
9226         esac
9227       done
9228
9229 fi
9230 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
9231 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
9232    if test "$ac_cv_sys_large_files" != no; then
9233
9234 cat >>confdefs.h <<_ACEOF
9235 #define _LARGE_FILES $ac_cv_sys_large_files
9236 _ACEOF
9237
9238    fi
9239    fi
9240
9241
9242                         if test "x$ac_cv_sys_largefile_CFLAGS" = "xno" ; then
9243                                 ac_cv_sys_largefile_CFLAGS=""
9244                                 fi
9245                         if test "x$ac_cv_sys_largefile_LDFLAGS" = "xno" ; then
9246                                 ac_cv_sys_largefile_LDFLAGS=""
9247                                 fi
9248                         if test "x$ac_cv_sys_largefile_LIBS" = "xno" ; then
9249                                 ac_cv_sys_largefile_LIBS=""
9250                                 fi
9251
9252                         echo "$as_me:$LINENO: checking for off_t" >&5
9253 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
9254 if test "${ac_cv_type_off_t+set}" = set; then
9255   echo $ECHO_N "(cached) $ECHO_C" >&6
9256 else
9257   cat >conftest.$ac_ext <<_ACEOF
9258 /* confdefs.h.  */
9259 _ACEOF
9260 cat confdefs.h >>conftest.$ac_ext
9261 cat >>conftest.$ac_ext <<_ACEOF
9262 /* end confdefs.h.  */
9263 $ac_includes_default
9264 int
9265 main ()
9266 {
9267 if ((off_t *) 0)
9268   return 0;
9269 if (sizeof (off_t))
9270   return 0;
9271   ;
9272   return 0;
9273 }
9274 _ACEOF
9275 rm -f conftest.$ac_objext
9276 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9277   (eval $ac_compile) 2>conftest.er1
9278   ac_status=$?
9279   grep -v '^ *+' conftest.er1 >conftest.err
9280   rm -f conftest.er1
9281   cat conftest.err >&5
9282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9283   (exit $ac_status); } &&
9284          { ac_try='test -z "$ac_c_werror_flag"
9285                          || test ! -s conftest.err'
9286   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9287   (eval $ac_try) 2>&5
9288   ac_status=$?
9289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9290   (exit $ac_status); }; } &&
9291          { ac_try='test -s conftest.$ac_objext'
9292   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9293   (eval $ac_try) 2>&5
9294   ac_status=$?
9295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9296   (exit $ac_status); }; }; then
9297   ac_cv_type_off_t=yes
9298 else
9299   echo "$as_me: failed program was:" >&5
9300 sed 's/^/| /' conftest.$ac_ext >&5
9301
9302 ac_cv_type_off_t=no
9303 fi
9304 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9305 fi
9306 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
9307 echo "${ECHO_T}$ac_cv_type_off_t" >&6
9308
9309 echo "$as_me:$LINENO: checking size of off_t" >&5
9310 echo $ECHO_N "checking size of off_t... $ECHO_C" >&6
9311 if test "${ac_cv_sizeof_off_t+set}" = set; then
9312   echo $ECHO_N "(cached) $ECHO_C" >&6
9313 else
9314   if test "$ac_cv_type_off_t" = yes; then
9315   # The cast to unsigned long works around a bug in the HP C Compiler
9316   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9317   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9318   # This bug is HP SR number 8606223364.
9319   if test "$cross_compiling" = yes; then
9320   # Depending upon the size, compute the lo and hi bounds.
9321 cat >conftest.$ac_ext <<_ACEOF
9322 /* confdefs.h.  */
9323 _ACEOF
9324 cat confdefs.h >>conftest.$ac_ext
9325 cat >>conftest.$ac_ext <<_ACEOF
9326 /* end confdefs.h.  */
9327 $ac_includes_default
9328 int
9329 main ()
9330 {
9331 static int test_array [1 - 2 * !(((long) (sizeof (off_t))) >= 0)];
9332 test_array [0] = 0
9333
9334   ;
9335   return 0;
9336 }
9337 _ACEOF
9338 rm -f conftest.$ac_objext
9339 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9340   (eval $ac_compile) 2>conftest.er1
9341   ac_status=$?
9342   grep -v '^ *+' conftest.er1 >conftest.err
9343   rm -f conftest.er1
9344   cat conftest.err >&5
9345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9346   (exit $ac_status); } &&
9347          { ac_try='test -z "$ac_c_werror_flag"
9348                          || test ! -s conftest.err'
9349   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9350   (eval $ac_try) 2>&5
9351   ac_status=$?
9352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9353   (exit $ac_status); }; } &&
9354          { ac_try='test -s conftest.$ac_objext'
9355   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9356   (eval $ac_try) 2>&5
9357   ac_status=$?
9358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9359   (exit $ac_status); }; }; then
9360   ac_lo=0 ac_mid=0
9361   while :; do
9362     cat >conftest.$ac_ext <<_ACEOF
9363 /* confdefs.h.  */
9364 _ACEOF
9365 cat confdefs.h >>conftest.$ac_ext
9366 cat >>conftest.$ac_ext <<_ACEOF
9367 /* end confdefs.h.  */
9368 $ac_includes_default
9369 int
9370 main ()
9371 {
9372 static int test_array [1 - 2 * !(((long) (sizeof (off_t))) <= $ac_mid)];
9373 test_array [0] = 0
9374
9375   ;
9376   return 0;
9377 }
9378 _ACEOF
9379 rm -f conftest.$ac_objext
9380 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9381   (eval $ac_compile) 2>conftest.er1
9382   ac_status=$?
9383   grep -v '^ *+' conftest.er1 >conftest.err
9384   rm -f conftest.er1
9385   cat conftest.err >&5
9386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9387   (exit $ac_status); } &&
9388          { ac_try='test -z "$ac_c_werror_flag"
9389                          || test ! -s conftest.err'
9390   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9391   (eval $ac_try) 2>&5
9392   ac_status=$?
9393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9394   (exit $ac_status); }; } &&
9395          { ac_try='test -s conftest.$ac_objext'
9396   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9397   (eval $ac_try) 2>&5
9398   ac_status=$?
9399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9400   (exit $ac_status); }; }; then
9401   ac_hi=$ac_mid; break
9402 else
9403   echo "$as_me: failed program was:" >&5
9404 sed 's/^/| /' conftest.$ac_ext >&5
9405
9406 ac_lo=`expr $ac_mid + 1`
9407                     if test $ac_lo -le $ac_mid; then
9408                       ac_lo= ac_hi=
9409                       break
9410                     fi
9411                     ac_mid=`expr 2 '*' $ac_mid + 1`
9412 fi
9413 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9414   done
9415 else
9416   echo "$as_me: failed program was:" >&5
9417 sed 's/^/| /' conftest.$ac_ext >&5
9418
9419 cat >conftest.$ac_ext <<_ACEOF
9420 /* confdefs.h.  */
9421 _ACEOF
9422 cat confdefs.h >>conftest.$ac_ext
9423 cat >>conftest.$ac_ext <<_ACEOF
9424 /* end confdefs.h.  */
9425 $ac_includes_default
9426 int
9427 main ()
9428 {
9429 static int test_array [1 - 2 * !(((long) (sizeof (off_t))) < 0)];
9430 test_array [0] = 0
9431
9432   ;
9433   return 0;
9434 }
9435 _ACEOF
9436 rm -f conftest.$ac_objext
9437 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9438   (eval $ac_compile) 2>conftest.er1
9439   ac_status=$?
9440   grep -v '^ *+' conftest.er1 >conftest.err
9441   rm -f conftest.er1
9442   cat conftest.err >&5
9443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9444   (exit $ac_status); } &&
9445          { ac_try='test -z "$ac_c_werror_flag"
9446                          || test ! -s conftest.err'
9447   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9448   (eval $ac_try) 2>&5
9449   ac_status=$?
9450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9451   (exit $ac_status); }; } &&
9452          { ac_try='test -s conftest.$ac_objext'
9453   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9454   (eval $ac_try) 2>&5
9455   ac_status=$?
9456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9457   (exit $ac_status); }; }; then
9458   ac_hi=-1 ac_mid=-1
9459   while :; do
9460     cat >conftest.$ac_ext <<_ACEOF
9461 /* confdefs.h.  */
9462 _ACEOF
9463 cat confdefs.h >>conftest.$ac_ext
9464 cat >>conftest.$ac_ext <<_ACEOF
9465 /* end confdefs.h.  */
9466 $ac_includes_default
9467 int
9468 main ()
9469 {
9470 static int test_array [1 - 2 * !(((long) (sizeof (off_t))) >= $ac_mid)];
9471 test_array [0] = 0
9472
9473   ;
9474   return 0;
9475 }
9476 _ACEOF
9477 rm -f conftest.$ac_objext
9478 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9479   (eval $ac_compile) 2>conftest.er1
9480   ac_status=$?
9481   grep -v '^ *+' conftest.er1 >conftest.err
9482   rm -f conftest.er1
9483   cat conftest.err >&5
9484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9485   (exit $ac_status); } &&
9486          { ac_try='test -z "$ac_c_werror_flag"
9487                          || test ! -s conftest.err'
9488   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9489   (eval $ac_try) 2>&5
9490   ac_status=$?
9491   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9492   (exit $ac_status); }; } &&
9493          { ac_try='test -s conftest.$ac_objext'
9494   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9495   (eval $ac_try) 2>&5
9496   ac_status=$?
9497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9498   (exit $ac_status); }; }; then
9499   ac_lo=$ac_mid; break
9500 else
9501   echo "$as_me: failed program was:" >&5
9502 sed 's/^/| /' conftest.$ac_ext >&5
9503
9504 ac_hi=`expr '(' $ac_mid ')' - 1`
9505                        if test $ac_mid -le $ac_hi; then
9506                          ac_lo= ac_hi=
9507                          break
9508                        fi
9509                        ac_mid=`expr 2 '*' $ac_mid`
9510 fi
9511 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9512   done
9513 else
9514   echo "$as_me: failed program was:" >&5
9515 sed 's/^/| /' conftest.$ac_ext >&5
9516
9517 ac_lo= ac_hi=
9518 fi
9519 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9520 fi
9521 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9522 # Binary search between lo and hi bounds.
9523 while test "x$ac_lo" != "x$ac_hi"; do
9524   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9525   cat >conftest.$ac_ext <<_ACEOF
9526 /* confdefs.h.  */
9527 _ACEOF
9528 cat confdefs.h >>conftest.$ac_ext
9529 cat >>conftest.$ac_ext <<_ACEOF
9530 /* end confdefs.h.  */
9531 $ac_includes_default
9532 int
9533 main ()
9534 {
9535 static int test_array [1 - 2 * !(((long) (sizeof (off_t))) <= $ac_mid)];
9536 test_array [0] = 0
9537
9538   ;
9539   return 0;
9540 }
9541 _ACEOF
9542 rm -f conftest.$ac_objext
9543 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9544   (eval $ac_compile) 2>conftest.er1
9545   ac_status=$?
9546   grep -v '^ *+' conftest.er1 >conftest.err
9547   rm -f conftest.er1
9548   cat conftest.err >&5
9549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9550   (exit $ac_status); } &&
9551          { ac_try='test -z "$ac_c_werror_flag"
9552                          || test ! -s conftest.err'
9553   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9554   (eval $ac_try) 2>&5
9555   ac_status=$?
9556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9557   (exit $ac_status); }; } &&
9558          { ac_try='test -s conftest.$ac_objext'
9559   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9560   (eval $ac_try) 2>&5
9561   ac_status=$?
9562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9563   (exit $ac_status); }; }; then
9564   ac_hi=$ac_mid
9565 else
9566   echo "$as_me: failed program was:" >&5
9567 sed 's/^/| /' conftest.$ac_ext >&5
9568
9569 ac_lo=`expr '(' $ac_mid ')' + 1`
9570 fi
9571 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9572 done
9573 case $ac_lo in
9574 ?*) ac_cv_sizeof_off_t=$ac_lo;;
9575 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (off_t), 77
9576 See \`config.log' for more details." >&5
9577 echo "$as_me: error: cannot compute sizeof (off_t), 77
9578 See \`config.log' for more details." >&2;}
9579    { (exit 1); exit 1; }; } ;;
9580 esac
9581 else
9582   if test "$cross_compiling" = yes; then
9583   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
9584 See \`config.log' for more details." >&5
9585 echo "$as_me: error: cannot run test program while cross compiling
9586 See \`config.log' for more details." >&2;}
9587    { (exit 1); exit 1; }; }
9588 else
9589   cat >conftest.$ac_ext <<_ACEOF
9590 /* confdefs.h.  */
9591 _ACEOF
9592 cat confdefs.h >>conftest.$ac_ext
9593 cat >>conftest.$ac_ext <<_ACEOF
9594 /* end confdefs.h.  */
9595 $ac_includes_default
9596 long longval () { return (long) (sizeof (off_t)); }
9597 unsigned long ulongval () { return (long) (sizeof (off_t)); }
9598 #include <stdio.h>
9599 #include <stdlib.h>
9600 int
9601 main ()
9602 {
9603
9604   FILE *f = fopen ("conftest.val", "w");
9605   if (! f)
9606     exit (1);
9607   if (((long) (sizeof (off_t))) < 0)
9608     {
9609       long i = longval ();
9610       if (i != ((long) (sizeof (off_t))))
9611         exit (1);
9612       fprintf (f, "%ld\n", i);
9613     }
9614   else
9615     {
9616       unsigned long i = ulongval ();
9617       if (i != ((long) (sizeof (off_t))))
9618         exit (1);
9619       fprintf (f, "%lu\n", i);
9620     }
9621   exit (ferror (f) || fclose (f) != 0);
9622
9623   ;
9624   return 0;
9625 }
9626 _ACEOF
9627 rm -f conftest$ac_exeext
9628 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9629   (eval $ac_link) 2>&5
9630   ac_status=$?
9631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9632   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9633   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9634   (eval $ac_try) 2>&5
9635   ac_status=$?
9636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9637   (exit $ac_status); }; }; then
9638   ac_cv_sizeof_off_t=`cat conftest.val`
9639 else
9640   echo "$as_me: program exited with status $ac_status" >&5
9641 echo "$as_me: failed program was:" >&5
9642 sed 's/^/| /' conftest.$ac_ext >&5
9643
9644 ( exit $ac_status )
9645 { { echo "$as_me:$LINENO: error: cannot compute sizeof (off_t), 77
9646 See \`config.log' for more details." >&5
9647 echo "$as_me: error: cannot compute sizeof (off_t), 77
9648 See \`config.log' for more details." >&2;}
9649    { (exit 1); exit 1; }; }
9650 fi
9651 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9652 fi
9653 fi
9654 rm -f conftest.val
9655 else
9656   ac_cv_sizeof_off_t=0
9657 fi
9658 fi
9659 echo "$as_me:$LINENO: result: $ac_cv_sizeof_off_t" >&5
9660 echo "${ECHO_T}$ac_cv_sizeof_off_t" >&6
9661 cat >>confdefs.h <<_ACEOF
9662 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
9663 _ACEOF
9664
9665         # Fake default value.
9666
9667                         if test "x$ac_cv_sizeof_off_t" = "x8" ; then
9668                                 SF_COUNT_MAX="0x7FFFFFFFFFFFFFFFLL"
9669                         elif test "x$ac_cv_sizeof_off_t" = "x$pre_largefile_sizeof_off_t" ; then
9670                                 { echo "$as_me:$LINENO: WARNING: This machine does not seem to support 64 bit file offsets." >&5
9671 echo "$as_me: WARNING: This machine does not seem to support 64 bit file offsets." >&2;}
9672                                 TYPEOF_SF_COUNT_T="off_t"
9673                                 SIZEOF_SF_COUNT_T=$ac_cv_sizeof_off_t
9674                         elif test "x$TYPEOF_SF_COUNT_T" = "xunknown" ; then
9675                                 echo
9676                                 echo "*** The configure process has determined that this system is capable"
9677                                 echo "*** of Large File Support but has not been able to find a type which"
9678                                 echo "*** is an unambiguous 64 bit file offset."
9679                                 echo "*** Please contact the author to help resolve this problem."
9680                                 echo
9681                                 { { echo "$as_me:$LINENO: error: Bad file offset type." >&5
9682 echo "$as_me: error: Bad file offset type." >&2;}
9683    { (exit 1); exit 1; }; }
9684                                 fi
9685                         fi
9686                 ;;
9687         esac
9688
9689 if test $SIZEOF_SF_COUNT_T = 4 ; then
9690         SF_COUNT_MAX="0x7FFFFFFF"
9691         fi
9692
9693
9694 cat >>confdefs.h <<_ACEOF
9695 #define TYPEOF_SF_COUNT_T ${TYPEOF_SF_COUNT_T}
9696 _ACEOF
9697
9698
9699
9700
9701 cat >>confdefs.h <<_ACEOF
9702 #define SIZEOF_SF_COUNT_T ${SIZEOF_SF_COUNT_T}
9703 _ACEOF
9704
9705
9706
9707
9708 cat >>confdefs.h <<_ACEOF
9709 #define SF_COUNT_MAX ${SF_COUNT_MAX}
9710 _ACEOF
9711
9712
9713
9714 echo "$as_me:$LINENO: checking for ssize_t" >&5
9715 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
9716 if test "${ac_cv_type_ssize_t+set}" = set; then
9717   echo $ECHO_N "(cached) $ECHO_C" >&6
9718 else
9719   cat >conftest.$ac_ext <<_ACEOF
9720 /* confdefs.h.  */
9721 _ACEOF
9722 cat confdefs.h >>conftest.$ac_ext
9723 cat >>conftest.$ac_ext <<_ACEOF
9724 /* end confdefs.h.  */
9725 $ac_includes_default
9726 int
9727 main ()
9728 {
9729 if ((ssize_t *) 0)
9730   return 0;
9731 if (sizeof (ssize_t))
9732   return 0;
9733   ;
9734   return 0;
9735 }
9736 _ACEOF
9737 rm -f conftest.$ac_objext
9738 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9739   (eval $ac_compile) 2>conftest.er1
9740   ac_status=$?
9741   grep -v '^ *+' conftest.er1 >conftest.err
9742   rm -f conftest.er1
9743   cat conftest.err >&5
9744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9745   (exit $ac_status); } &&
9746          { ac_try='test -z "$ac_c_werror_flag"
9747                          || test ! -s conftest.err'
9748   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9749   (eval $ac_try) 2>&5
9750   ac_status=$?
9751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9752   (exit $ac_status); }; } &&
9753          { ac_try='test -s conftest.$ac_objext'
9754   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9755   (eval $ac_try) 2>&5
9756   ac_status=$?
9757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9758   (exit $ac_status); }; }; then
9759   ac_cv_type_ssize_t=yes
9760 else
9761   echo "$as_me: failed program was:" >&5
9762 sed 's/^/| /' conftest.$ac_ext >&5
9763
9764 ac_cv_type_ssize_t=no
9765 fi
9766 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9767 fi
9768 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
9769 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
9770 if test $ac_cv_type_ssize_t = yes; then
9771
9772 cat >>confdefs.h <<_ACEOF
9773 #define HAVE_SSIZE_T 1
9774 _ACEOF
9775
9776
9777 fi
9778
9779 echo "$as_me:$LINENO: checking for ssize_t" >&5
9780 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
9781 if test "${ac_cv_type_ssize_t+set}" = set; then
9782   echo $ECHO_N "(cached) $ECHO_C" >&6
9783 else
9784   cat >conftest.$ac_ext <<_ACEOF
9785 /* confdefs.h.  */
9786 _ACEOF
9787 cat confdefs.h >>conftest.$ac_ext
9788 cat >>conftest.$ac_ext <<_ACEOF
9789 /* end confdefs.h.  */
9790 $ac_includes_default
9791 int
9792 main ()
9793 {
9794 if ((ssize_t *) 0)
9795   return 0;
9796 if (sizeof (ssize_t))
9797   return 0;
9798   ;
9799   return 0;
9800 }
9801 _ACEOF
9802 rm -f conftest.$ac_objext
9803 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9804   (eval $ac_compile) 2>conftest.er1
9805   ac_status=$?
9806   grep -v '^ *+' conftest.er1 >conftest.err
9807   rm -f conftest.er1
9808   cat conftest.err >&5
9809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9810   (exit $ac_status); } &&
9811          { ac_try='test -z "$ac_c_werror_flag"
9812                          || test ! -s conftest.err'
9813   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9814   (eval $ac_try) 2>&5
9815   ac_status=$?
9816   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9817   (exit $ac_status); }; } &&
9818          { ac_try='test -s conftest.$ac_objext'
9819   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9820   (eval $ac_try) 2>&5
9821   ac_status=$?
9822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9823   (exit $ac_status); }; }; then
9824   ac_cv_type_ssize_t=yes
9825 else
9826   echo "$as_me: failed program was:" >&5
9827 sed 's/^/| /' conftest.$ac_ext >&5
9828
9829 ac_cv_type_ssize_t=no
9830 fi
9831 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9832 fi
9833 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
9834 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
9835
9836 echo "$as_me:$LINENO: checking size of ssize_t" >&5
9837 echo $ECHO_N "checking size of ssize_t... $ECHO_C" >&6
9838 if test "${ac_cv_sizeof_ssize_t+set}" = set; then
9839   echo $ECHO_N "(cached) $ECHO_C" >&6
9840 else
9841   if test "$ac_cv_type_ssize_t" = yes; then
9842   # The cast to unsigned long works around a bug in the HP C Compiler
9843   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9844   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9845   # This bug is HP SR number 8606223364.
9846   if test "$cross_compiling" = yes; then
9847   # Depending upon the size, compute the lo and hi bounds.
9848 cat >conftest.$ac_ext <<_ACEOF
9849 /* confdefs.h.  */
9850 _ACEOF
9851 cat confdefs.h >>conftest.$ac_ext
9852 cat >>conftest.$ac_ext <<_ACEOF
9853 /* end confdefs.h.  */
9854 $ac_includes_default
9855 int
9856 main ()
9857 {
9858 static int test_array [1 - 2 * !(((long) (sizeof (ssize_t))) >= 0)];
9859 test_array [0] = 0
9860
9861   ;
9862   return 0;
9863 }
9864 _ACEOF
9865 rm -f conftest.$ac_objext
9866 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9867   (eval $ac_compile) 2>conftest.er1
9868   ac_status=$?
9869   grep -v '^ *+' conftest.er1 >conftest.err
9870   rm -f conftest.er1
9871   cat conftest.err >&5
9872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9873   (exit $ac_status); } &&
9874          { ac_try='test -z "$ac_c_werror_flag"
9875                          || test ! -s conftest.err'
9876   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9877   (eval $ac_try) 2>&5
9878   ac_status=$?
9879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9880   (exit $ac_status); }; } &&
9881          { ac_try='test -s conftest.$ac_objext'
9882   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9883   (eval $ac_try) 2>&5
9884   ac_status=$?
9885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9886   (exit $ac_status); }; }; then
9887   ac_lo=0 ac_mid=0
9888   while :; do
9889     cat >conftest.$ac_ext <<_ACEOF
9890 /* confdefs.h.  */
9891 _ACEOF
9892 cat confdefs.h >>conftest.$ac_ext
9893 cat >>conftest.$ac_ext <<_ACEOF
9894 /* end confdefs.h.  */
9895 $ac_includes_default
9896 int
9897 main ()
9898 {
9899 static int test_array [1 - 2 * !(((long) (sizeof (ssize_t))) <= $ac_mid)];
9900 test_array [0] = 0
9901
9902   ;
9903   return 0;
9904 }
9905 _ACEOF
9906 rm -f conftest.$ac_objext
9907 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9908   (eval $ac_compile) 2>conftest.er1
9909   ac_status=$?
9910   grep -v '^ *+' conftest.er1 >conftest.err
9911   rm -f conftest.er1
9912   cat conftest.err >&5
9913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9914   (exit $ac_status); } &&
9915          { ac_try='test -z "$ac_c_werror_flag"
9916                          || test ! -s conftest.err'
9917   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9918   (eval $ac_try) 2>&5
9919   ac_status=$?
9920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9921   (exit $ac_status); }; } &&
9922          { ac_try='test -s conftest.$ac_objext'
9923   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9924   (eval $ac_try) 2>&5
9925   ac_status=$?
9926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9927   (exit $ac_status); }; }; then
9928   ac_hi=$ac_mid; break
9929 else
9930   echo "$as_me: failed program was:" >&5
9931 sed 's/^/| /' conftest.$ac_ext >&5
9932
9933 ac_lo=`expr $ac_mid + 1`
9934                     if test $ac_lo -le $ac_mid; then
9935                       ac_lo= ac_hi=
9936                       break
9937                     fi
9938                     ac_mid=`expr 2 '*' $ac_mid + 1`
9939 fi
9940 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9941   done
9942 else
9943   echo "$as_me: failed program was:" >&5
9944 sed 's/^/| /' conftest.$ac_ext >&5
9945
9946 cat >conftest.$ac_ext <<_ACEOF
9947 /* confdefs.h.  */
9948 _ACEOF
9949 cat confdefs.h >>conftest.$ac_ext
9950 cat >>conftest.$ac_ext <<_ACEOF
9951 /* end confdefs.h.  */
9952 $ac_includes_default
9953 int
9954 main ()
9955 {
9956 static int test_array [1 - 2 * !(((long) (sizeof (ssize_t))) < 0)];
9957 test_array [0] = 0
9958
9959   ;
9960   return 0;
9961 }
9962 _ACEOF
9963 rm -f conftest.$ac_objext
9964 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9965   (eval $ac_compile) 2>conftest.er1
9966   ac_status=$?
9967   grep -v '^ *+' conftest.er1 >conftest.err
9968   rm -f conftest.er1
9969   cat conftest.err >&5
9970   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9971   (exit $ac_status); } &&
9972          { ac_try='test -z "$ac_c_werror_flag"
9973                          || test ! -s conftest.err'
9974   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9975   (eval $ac_try) 2>&5
9976   ac_status=$?
9977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9978   (exit $ac_status); }; } &&
9979          { ac_try='test -s conftest.$ac_objext'
9980   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9981   (eval $ac_try) 2>&5
9982   ac_status=$?
9983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9984   (exit $ac_status); }; }; then
9985   ac_hi=-1 ac_mid=-1
9986   while :; do
9987     cat >conftest.$ac_ext <<_ACEOF
9988 /* confdefs.h.  */
9989 _ACEOF
9990 cat confdefs.h >>conftest.$ac_ext
9991 cat >>conftest.$ac_ext <<_ACEOF
9992 /* end confdefs.h.  */
9993 $ac_includes_default
9994 int
9995 main ()
9996 {
9997 static int test_array [1 - 2 * !(((long) (sizeof (ssize_t))) >= $ac_mid)];
9998 test_array [0] = 0
9999
10000   ;
10001   return 0;
10002 }
10003 _ACEOF
10004 rm -f conftest.$ac_objext
10005 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10006   (eval $ac_compile) 2>conftest.er1
10007   ac_status=$?
10008   grep -v '^ *+' conftest.er1 >conftest.err
10009   rm -f conftest.er1
10010   cat conftest.err >&5
10011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10012   (exit $ac_status); } &&
10013          { ac_try='test -z "$ac_c_werror_flag"
10014                          || test ! -s conftest.err'
10015   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10016   (eval $ac_try) 2>&5
10017   ac_status=$?
10018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10019   (exit $ac_status); }; } &&
10020          { ac_try='test -s conftest.$ac_objext'
10021   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10022   (eval $ac_try) 2>&5
10023   ac_status=$?
10024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10025   (exit $ac_status); }; }; then
10026   ac_lo=$ac_mid; break
10027 else
10028   echo "$as_me: failed program was:" >&5
10029 sed 's/^/| /' conftest.$ac_ext >&5
10030
10031 ac_hi=`expr '(' $ac_mid ')' - 1`
10032                        if test $ac_mid -le $ac_hi; then
10033                          ac_lo= ac_hi=
10034                          break
10035                        fi
10036                        ac_mid=`expr 2 '*' $ac_mid`
10037 fi
10038 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10039   done
10040 else
10041   echo "$as_me: failed program was:" >&5
10042 sed 's/^/| /' conftest.$ac_ext >&5
10043
10044 ac_lo= ac_hi=
10045 fi
10046 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10047 fi
10048 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10049 # Binary search between lo and hi bounds.
10050 while test "x$ac_lo" != "x$ac_hi"; do
10051   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10052   cat >conftest.$ac_ext <<_ACEOF
10053 /* confdefs.h.  */
10054 _ACEOF
10055 cat confdefs.h >>conftest.$ac_ext
10056 cat >>conftest.$ac_ext <<_ACEOF
10057 /* end confdefs.h.  */
10058 $ac_includes_default
10059 int
10060 main ()
10061 {
10062 static int test_array [1 - 2 * !(((long) (sizeof (ssize_t))) <= $ac_mid)];
10063 test_array [0] = 0
10064
10065   ;
10066   return 0;
10067 }
10068 _ACEOF
10069 rm -f conftest.$ac_objext
10070 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10071   (eval $ac_compile) 2>conftest.er1
10072   ac_status=$?
10073   grep -v '^ *+' conftest.er1 >conftest.err
10074   rm -f conftest.er1
10075   cat conftest.err >&5
10076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10077   (exit $ac_status); } &&
10078          { ac_try='test -z "$ac_c_werror_flag"
10079                          || test ! -s conftest.err'
10080   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10081   (eval $ac_try) 2>&5
10082   ac_status=$?
10083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10084   (exit $ac_status); }; } &&
10085          { ac_try='test -s conftest.$ac_objext'
10086   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10087   (eval $ac_try) 2>&5
10088   ac_status=$?
10089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10090   (exit $ac_status); }; }; then
10091   ac_hi=$ac_mid
10092 else
10093   echo "$as_me: failed program was:" >&5
10094 sed 's/^/| /' conftest.$ac_ext >&5
10095
10096 ac_lo=`expr '(' $ac_mid ')' + 1`
10097 fi
10098 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10099 done
10100 case $ac_lo in
10101 ?*) ac_cv_sizeof_ssize_t=$ac_lo;;
10102 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (ssize_t), 77
10103 See \`config.log' for more details." >&5
10104 echo "$as_me: error: cannot compute sizeof (ssize_t), 77
10105 See \`config.log' for more details." >&2;}
10106    { (exit 1); exit 1; }; } ;;
10107 esac
10108 else
10109   if test "$cross_compiling" = yes; then
10110   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
10111 See \`config.log' for more details." >&5
10112 echo "$as_me: error: cannot run test program while cross compiling
10113 See \`config.log' for more details." >&2;}
10114    { (exit 1); exit 1; }; }
10115 else
10116   cat >conftest.$ac_ext <<_ACEOF
10117 /* confdefs.h.  */
10118 _ACEOF
10119 cat confdefs.h >>conftest.$ac_ext
10120 cat >>conftest.$ac_ext <<_ACEOF
10121 /* end confdefs.h.  */
10122 $ac_includes_default
10123 long longval () { return (long) (sizeof (ssize_t)); }
10124 unsigned long ulongval () { return (long) (sizeof (ssize_t)); }
10125 #include <stdio.h>
10126 #include <stdlib.h>
10127 int
10128 main ()
10129 {
10130
10131   FILE *f = fopen ("conftest.val", "w");
10132   if (! f)
10133     exit (1);
10134   if (((long) (sizeof (ssize_t))) < 0)
10135     {
10136       long i = longval ();
10137       if (i != ((long) (sizeof (ssize_t))))
10138         exit (1);
10139       fprintf (f, "%ld\n", i);
10140     }
10141   else
10142     {
10143       unsigned long i = ulongval ();
10144       if (i != ((long) (sizeof (ssize_t))))
10145         exit (1);
10146       fprintf (f, "%lu\n", i);
10147     }
10148   exit (ferror (f) || fclose (f) != 0);
10149
10150   ;
10151   return 0;
10152 }
10153 _ACEOF
10154 rm -f conftest$ac_exeext
10155 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10156   (eval $ac_link) 2>&5
10157   ac_status=$?
10158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10159   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10160   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10161   (eval $ac_try) 2>&5
10162   ac_status=$?
10163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10164   (exit $ac_status); }; }; then
10165   ac_cv_sizeof_ssize_t=`cat conftest.val`
10166 else
10167   echo "$as_me: program exited with status $ac_status" >&5
10168 echo "$as_me: failed program was:" >&5
10169 sed 's/^/| /' conftest.$ac_ext >&5
10170
10171 ( exit $ac_status )
10172 { { echo "$as_me:$LINENO: error: cannot compute sizeof (ssize_t), 77
10173 See \`config.log' for more details." >&5
10174 echo "$as_me: error: cannot compute sizeof (ssize_t), 77
10175 See \`config.log' for more details." >&2;}
10176    { (exit 1); exit 1; }; }
10177 fi
10178 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10179 fi
10180 fi
10181 rm -f conftest.val
10182 else
10183   ac_cv_sizeof_ssize_t=0
10184 fi
10185 fi
10186 echo "$as_me:$LINENO: result: $ac_cv_sizeof_ssize_t" >&5
10187 echo "${ECHO_T}$ac_cv_sizeof_ssize_t" >&6
10188 cat >>confdefs.h <<_ACEOF
10189 #define SIZEOF_SSIZE_T $ac_cv_sizeof_ssize_t
10190 _ACEOF
10191
10192
10193
10194 #====================================================================================
10195 # Determine endian-ness of target processor.
10196
10197 echo "$as_me:$LINENO: checking processor byte ordering" >&5
10198 echo $ECHO_N "checking processor byte ordering... $ECHO_C" >&6
10199 if test "${ac_cv_c_byte_order+set}" = set; then
10200   echo $ECHO_N "(cached) $ECHO_C" >&6
10201 else
10202   # Initialize to unknown
10203 ac_cv_c_byte_order=unknown
10204
10205 if test x$ac_cv_header_endian_h = xyes ; then
10206
10207         # First try <endian.h> which should set BYTE_ORDER.
10208
10209         cat >conftest.$ac_ext <<_ACEOF
10210 /* confdefs.h.  */
10211 _ACEOF
10212 cat confdefs.h >>conftest.$ac_ext
10213 cat >>conftest.$ac_ext <<_ACEOF
10214 /* end confdefs.h.  */
10215
10216                 #include <endian.h>
10217                 #if BYTE_ORDER != LITTLE_ENDIAN
10218                         not big endian
10219                 #endif
10220
10221 int
10222 main ()
10223 {
10224 return 0 ;
10225   ;
10226   return 0;
10227 }
10228 _ACEOF
10229 rm -f conftest.$ac_objext conftest$ac_exeext
10230 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10231   (eval $ac_link) 2>conftest.er1
10232   ac_status=$?
10233   grep -v '^ *+' conftest.er1 >conftest.err
10234   rm -f conftest.er1
10235   cat conftest.err >&5
10236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10237   (exit $ac_status); } &&
10238          { ac_try='test -z "$ac_c_werror_flag"
10239                          || test ! -s conftest.err'
10240   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10241   (eval $ac_try) 2>&5
10242   ac_status=$?
10243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10244   (exit $ac_status); }; } &&
10245          { ac_try='test -s conftest$ac_exeext'
10246   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10247   (eval $ac_try) 2>&5
10248   ac_status=$?
10249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10250   (exit $ac_status); }; }; then
10251   ac_cv_c_byte_order=little
10252
10253 else
10254   echo "$as_me: failed program was:" >&5
10255 sed 's/^/| /' conftest.$ac_ext >&5
10256
10257 fi
10258 rm -f conftest.err conftest.$ac_objext \
10259       conftest$ac_exeext conftest.$ac_ext
10260
10261         cat >conftest.$ac_ext <<_ACEOF
10262 /* confdefs.h.  */
10263 _ACEOF
10264 cat confdefs.h >>conftest.$ac_ext
10265 cat >>conftest.$ac_ext <<_ACEOF
10266 /* end confdefs.h.  */
10267
10268                 #include <endian.h>
10269                 #if BYTE_ORDER != BIG_ENDIAN
10270                         not big endian
10271                 #endif
10272
10273 int
10274 main ()
10275 {
10276 return 0 ;
10277   ;
10278   return 0;
10279 }
10280 _ACEOF
10281 rm -f conftest.$ac_objext conftest$ac_exeext
10282 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10283   (eval $ac_link) 2>conftest.er1
10284   ac_status=$?
10285   grep -v '^ *+' conftest.er1 >conftest.err
10286   rm -f conftest.er1
10287   cat conftest.err >&5
10288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10289   (exit $ac_status); } &&
10290          { ac_try='test -z "$ac_c_werror_flag"
10291                          || test ! -s conftest.err'
10292   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10293   (eval $ac_try) 2>&5
10294   ac_status=$?
10295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10296   (exit $ac_status); }; } &&
10297          { ac_try='test -s conftest$ac_exeext'
10298   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10299   (eval $ac_try) 2>&5
10300   ac_status=$?
10301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10302   (exit $ac_status); }; }; then
10303   ac_cv_c_byte_order=big
10304
10305 else
10306   echo "$as_me: failed program was:" >&5
10307 sed 's/^/| /' conftest.$ac_ext >&5
10308
10309 fi
10310 rm -f conftest.err conftest.$ac_objext \
10311       conftest$ac_exeext conftest.$ac_ext
10312
10313         fi
10314
10315 if test $ac_cv_c_byte_order = unknown ; then
10316
10317         cat >conftest.$ac_ext <<_ACEOF
10318 /* confdefs.h.  */
10319 _ACEOF
10320 cat confdefs.h >>conftest.$ac_ext
10321 cat >>conftest.$ac_ext <<_ACEOF
10322 /* end confdefs.h.  */
10323
10324                 #include <sys/types.h>
10325                 #include <sys/param.h>
10326                 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
10327                         bogus endian macros
10328                 #endif
10329
10330 int
10331 main ()
10332 {
10333 return 0 ;
10334   ;
10335   return 0;
10336 }
10337 _ACEOF
10338 rm -f conftest.$ac_objext conftest$ac_exeext
10339 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10340   (eval $ac_link) 2>conftest.er1
10341   ac_status=$?
10342   grep -v '^ *+' conftest.er1 >conftest.err
10343   rm -f conftest.er1
10344   cat conftest.err >&5
10345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10346   (exit $ac_status); } &&
10347          { ac_try='test -z "$ac_c_werror_flag"
10348                          || test ! -s conftest.err'
10349   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10350   (eval $ac_try) 2>&5
10351   ac_status=$?
10352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10353   (exit $ac_status); }; } &&
10354          { ac_try='test -s conftest$ac_exeext'
10355   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10356   (eval $ac_try) 2>&5
10357   ac_status=$?
10358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10359   (exit $ac_status); }; }; then
10360   cat >conftest.$ac_ext <<_ACEOF
10361 /* confdefs.h.  */
10362 _ACEOF
10363 cat confdefs.h >>conftest.$ac_ext
10364 cat >>conftest.$ac_ext <<_ACEOF
10365 /* end confdefs.h.  */
10366
10367                         #include <sys/types.h>
10368                         #include <sys/param.h>
10369                         #if BYTE_ORDER != LITTLE_ENDIAN
10370                                 not big endian
10371                         #endif
10372
10373 int
10374 main ()
10375 {
10376 return 0 ;
10377   ;
10378   return 0;
10379 }
10380 _ACEOF
10381 rm -f conftest.$ac_objext conftest$ac_exeext
10382 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10383   (eval $ac_link) 2>conftest.er1
10384   ac_status=$?
10385   grep -v '^ *+' conftest.er1 >conftest.err
10386   rm -f conftest.er1
10387   cat conftest.err >&5
10388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10389   (exit $ac_status); } &&
10390          { ac_try='test -z "$ac_c_werror_flag"
10391                          || test ! -s conftest.err'
10392   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10393   (eval $ac_try) 2>&5
10394   ac_status=$?
10395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10396   (exit $ac_status); }; } &&
10397          { ac_try='test -s conftest$ac_exeext'
10398   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10399   (eval $ac_try) 2>&5
10400   ac_status=$?
10401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10402   (exit $ac_status); }; }; then
10403   ac_cv_c_byte_order=little
10404
10405 else
10406   echo "$as_me: failed program was:" >&5
10407 sed 's/^/| /' conftest.$ac_ext >&5
10408
10409 fi
10410 rm -f conftest.err conftest.$ac_objext \
10411       conftest$ac_exeext conftest.$ac_ext
10412
10413                 cat >conftest.$ac_ext <<_ACEOF
10414 /* confdefs.h.  */
10415 _ACEOF
10416 cat confdefs.h >>conftest.$ac_ext
10417 cat >>conftest.$ac_ext <<_ACEOF
10418 /* end confdefs.h.  */
10419
10420                         #include <sys/types.h>
10421                         #include <sys/param.h>
10422                         #if BYTE_ORDER != LITTLE_ENDIAN
10423                                 not big endian
10424                         #endif
10425
10426 int
10427 main ()
10428 {
10429 return 0 ;
10430   ;
10431   return 0;
10432 }
10433 _ACEOF
10434 rm -f conftest.$ac_objext conftest$ac_exeext
10435 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10436   (eval $ac_link) 2>conftest.er1
10437   ac_status=$?
10438   grep -v '^ *+' conftest.er1 >conftest.err
10439   rm -f conftest.er1
10440   cat conftest.err >&5
10441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10442   (exit $ac_status); } &&
10443          { ac_try='test -z "$ac_c_werror_flag"
10444                          || test ! -s conftest.err'
10445   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10446   (eval $ac_try) 2>&5
10447   ac_status=$?
10448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10449   (exit $ac_status); }; } &&
10450          { ac_try='test -s conftest$ac_exeext'
10451   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10452   (eval $ac_try) 2>&5
10453   ac_status=$?
10454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10455   (exit $ac_status); }; }; then
10456   ac_cv_c_byte_order=little
10457
10458 else
10459   echo "$as_me: failed program was:" >&5
10460 sed 's/^/| /' conftest.$ac_ext >&5
10461
10462 fi
10463 rm -f conftest.err conftest.$ac_objext \
10464       conftest$ac_exeext conftest.$ac_ext
10465
10466
10467 else
10468   echo "$as_me: failed program was:" >&5
10469 sed 's/^/| /' conftest.$ac_ext >&5
10470
10471 fi
10472 rm -f conftest.err conftest.$ac_objext \
10473       conftest$ac_exeext conftest.$ac_ext
10474
10475         fi
10476
10477 if test $ac_cv_c_byte_order = unknown ; then
10478         if test $cross_compiling = yes ; then
10479                 # This is the last resort. Try to guess the target processor endian-ness
10480                 # by looking at the target CPU type.
10481
10482                 case "$target_cpu" in
10483                         alpha* | i?86* | mipsel* | ia64*)
10484                                 ac_cv_c_big_endian=0
10485                                 ac_cv_c_little_endian=1
10486                                 ;;
10487
10488                         m68* | mips* | powerpc* | hppa* | sparc*)
10489                                 ac_cv_c_big_endian=1
10490                                 ac_cv_c_little_endian=0
10491                                 ;;
10492
10493                         esac
10494
10495         else
10496                 if test "$cross_compiling" = yes; then
10497   ac_cv_c_byte_order=unknown
10498
10499 else
10500   cat >conftest.$ac_ext <<_ACEOF
10501 /* confdefs.h.  */
10502 _ACEOF
10503 cat confdefs.h >>conftest.$ac_ext
10504 cat >>conftest.$ac_ext <<_ACEOF
10505 /* end confdefs.h.  */
10506
10507                 int main (void)
10508                 {       /* Are we little or big endian?  From Harbison&Steele.  */
10509                         union
10510                         {       long l ;
10511                                 char c [sizeof (long)] ;
10512                         } u ;
10513                         u.l = 1 ;
10514                         return (u.c [sizeof (long) - 1] == 1);
10515                         }
10516
10517 _ACEOF
10518 rm -f conftest$ac_exeext
10519 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10520   (eval $ac_link) 2>&5
10521   ac_status=$?
10522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10523   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10524   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10525   (eval $ac_try) 2>&5
10526   ac_status=$?
10527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10528   (exit $ac_status); }; }; then
10529   :
10530 else
10531   echo "$as_me: program exited with status $ac_status" >&5
10532 echo "$as_me: failed program was:" >&5
10533 sed 's/^/| /' conftest.$ac_ext >&5
10534
10535 ( exit $ac_status )
10536 ac_cv_c_byte_order=big
10537 fi
10538 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10539 fi
10540
10541                 if test "$cross_compiling" = yes; then
10542   ac_cv_c_byte_order=unknown
10543
10544 else
10545   cat >conftest.$ac_ext <<_ACEOF
10546 /* confdefs.h.  */
10547 _ACEOF
10548 cat confdefs.h >>conftest.$ac_ext
10549 cat >>conftest.$ac_ext <<_ACEOF
10550 /* end confdefs.h.  */
10551 int main (void)
10552                 {       /* Are we little or big endian?  From Harbison&Steele.  */
10553                         union
10554                         {       long l ;
10555                                 char c [sizeof (long)] ;
10556                         } u ;
10557                         u.l = 1 ;
10558                         return (u.c [0] == 1);
10559                         }
10560 _ACEOF
10561 rm -f conftest$ac_exeext
10562 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10563   (eval $ac_link) 2>&5
10564   ac_status=$?
10565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10566   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10567   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10568   (eval $ac_try) 2>&5
10569   ac_status=$?
10570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10571   (exit $ac_status); }; }; then
10572   :
10573 else
10574   echo "$as_me: program exited with status $ac_status" >&5
10575 echo "$as_me: failed program was:" >&5
10576 sed 's/^/| /' conftest.$ac_ext >&5
10577
10578 ( exit $ac_status )
10579 ac_cv_c_byte_order=little
10580 fi
10581 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10582 fi
10583                 fi
10584         fi
10585
10586
10587 fi
10588 echo "$as_me:$LINENO: result: $ac_cv_c_byte_order" >&5
10589 echo "${ECHO_T}$ac_cv_c_byte_order" >&6
10590
10591
10592 if test $ac_cv_c_byte_order = big ; then
10593         ac_cv_c_big_endian=1
10594         ac_cv_c_little_endian=0
10595 elif test $ac_cv_c_byte_order = little ; then
10596         ac_cv_c_big_endian=0
10597         ac_cv_c_little_endian=1
10598 else
10599         ac_cv_c_big_endian=0
10600         ac_cv_c_little_endian=0
10601
10602         echo "$as_me: WARNING: *****************************************************************" >&2
10603         echo "$as_me: WARNING: *** Not able to determine endian-ness of target processor.       " >&2
10604         echo "$as_me: WARNING: *** The constants CPU_IS_BIG_ENDIAN and CPU_IS_LITTLE_ENDIAN in  " >&2
10605         echo "$as_me: WARNING: *** src/config.h may need to be hand editied.                    " >&2
10606         echo "$as_me: WARNING: *****************************************************************" >&2
10607         fi
10608
10609
10610
10611
10612 cat >>confdefs.h <<_ACEOF
10613 #define CPU_IS_BIG_ENDIAN ${ac_cv_c_big_endian}
10614 _ACEOF
10615
10616
10617 cat >>confdefs.h <<_ACEOF
10618 #define CPU_IS_LITTLE_ENDIAN ${ac_cv_c_little_endian}
10619 _ACEOF
10620
10621
10622 #====================================================================================
10623 # Check for functions.
10624
10625
10626
10627
10628
10629 for ac_func in malloc calloc realloc free
10630 do
10631 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10632 echo "$as_me:$LINENO: checking for $ac_func" >&5
10633 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10634 if eval "test \"\${$as_ac_var+set}\" = set"; then
10635   echo $ECHO_N "(cached) $ECHO_C" >&6
10636 else
10637   cat >conftest.$ac_ext <<_ACEOF
10638 /* confdefs.h.  */
10639 _ACEOF
10640 cat confdefs.h >>conftest.$ac_ext
10641 cat >>conftest.$ac_ext <<_ACEOF
10642 /* end confdefs.h.  */
10643 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10644    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10645 #define $ac_func innocuous_$ac_func
10646
10647 /* System header to define __stub macros and hopefully few prototypes,
10648     which can conflict with char $ac_func (); below.
10649     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10650     <limits.h> exists even on freestanding compilers.  */
10651
10652 #ifdef __STDC__
10653 # include <limits.h>
10654 #else
10655 # include <assert.h>
10656 #endif
10657
10658 #undef $ac_func
10659
10660 /* Override any gcc2 internal prototype to avoid an error.  */
10661 #ifdef __cplusplus
10662 extern "C"
10663 {
10664 #endif
10665 /* We use char because int might match the return type of a gcc2
10666    builtin and then its argument prototype would still apply.  */
10667 char $ac_func ();
10668 /* The GNU C library defines this for functions which it implements
10669     to always fail with ENOSYS.  Some functions are actually named
10670     something starting with __ and the normal name is an alias.  */
10671 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10672 choke me
10673 #else
10674 char (*f) () = $ac_func;
10675 #endif
10676 #ifdef __cplusplus
10677 }
10678 #endif
10679
10680 int
10681 main ()
10682 {
10683 return f != $ac_func;
10684   ;
10685   return 0;
10686 }
10687 _ACEOF
10688 rm -f conftest.$ac_objext conftest$ac_exeext
10689 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10690   (eval $ac_link) 2>conftest.er1
10691   ac_status=$?
10692   grep -v '^ *+' conftest.er1 >conftest.err
10693   rm -f conftest.er1
10694   cat conftest.err >&5
10695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10696   (exit $ac_status); } &&
10697          { ac_try='test -z "$ac_c_werror_flag"
10698                          || test ! -s conftest.err'
10699   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10700   (eval $ac_try) 2>&5
10701   ac_status=$?
10702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10703   (exit $ac_status); }; } &&
10704          { ac_try='test -s conftest$ac_exeext'
10705   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10706   (eval $ac_try) 2>&5
10707   ac_status=$?
10708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10709   (exit $ac_status); }; }; then
10710   eval "$as_ac_var=yes"
10711 else
10712   echo "$as_me: failed program was:" >&5
10713 sed 's/^/| /' conftest.$ac_ext >&5
10714
10715 eval "$as_ac_var=no"
10716 fi
10717 rm -f conftest.err conftest.$ac_objext \
10718       conftest$ac_exeext conftest.$ac_ext
10719 fi
10720 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10721 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10722 if test `eval echo '${'$as_ac_var'}'` = yes; then
10723   cat >>confdefs.h <<_ACEOF
10724 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10725 _ACEOF
10726
10727 fi
10728 done
10729
10730
10731
10732
10733
10734
10735
10736 for ac_func in open read write lseek pread pwrite
10737 do
10738 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10739 echo "$as_me:$LINENO: checking for $ac_func" >&5
10740 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10741 if eval "test \"\${$as_ac_var+set}\" = set"; then
10742   echo $ECHO_N "(cached) $ECHO_C" >&6
10743 else
10744   cat >conftest.$ac_ext <<_ACEOF
10745 /* confdefs.h.  */
10746 _ACEOF
10747 cat confdefs.h >>conftest.$ac_ext
10748 cat >>conftest.$ac_ext <<_ACEOF
10749 /* end confdefs.h.  */
10750 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10751    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10752 #define $ac_func innocuous_$ac_func
10753
10754 /* System header to define __stub macros and hopefully few prototypes,
10755     which can conflict with char $ac_func (); below.
10756     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10757     <limits.h> exists even on freestanding compilers.  */
10758
10759 #ifdef __STDC__
10760 # include <limits.h>
10761 #else
10762 # include <assert.h>
10763 #endif
10764
10765 #undef $ac_func
10766
10767 /* Override any gcc2 internal prototype to avoid an error.  */
10768 #ifdef __cplusplus
10769 extern "C"
10770 {
10771 #endif
10772 /* We use char because int might match the return type of a gcc2
10773    builtin and then its argument prototype would still apply.  */
10774 char $ac_func ();
10775 /* The GNU C library defines this for functions which it implements
10776     to always fail with ENOSYS.  Some functions are actually named
10777     something starting with __ and the normal name is an alias.  */
10778 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10779 choke me
10780 #else
10781 char (*f) () = $ac_func;
10782 #endif
10783 #ifdef __cplusplus
10784 }
10785 #endif
10786
10787 int
10788 main ()
10789 {
10790 return f != $ac_func;
10791   ;
10792   return 0;
10793 }
10794 _ACEOF
10795 rm -f conftest.$ac_objext conftest$ac_exeext
10796 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10797   (eval $ac_link) 2>conftest.er1
10798   ac_status=$?
10799   grep -v '^ *+' conftest.er1 >conftest.err
10800   rm -f conftest.er1
10801   cat conftest.err >&5
10802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10803   (exit $ac_status); } &&
10804          { ac_try='test -z "$ac_c_werror_flag"
10805                          || test ! -s conftest.err'
10806   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10807   (eval $ac_try) 2>&5
10808   ac_status=$?
10809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10810   (exit $ac_status); }; } &&
10811          { ac_try='test -s conftest$ac_exeext'
10812   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10813   (eval $ac_try) 2>&5
10814   ac_status=$?
10815   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10816   (exit $ac_status); }; }; then
10817   eval "$as_ac_var=yes"
10818 else
10819   echo "$as_me: failed program was:" >&5
10820 sed 's/^/| /' conftest.$ac_ext >&5
10821
10822 eval "$as_ac_var=no"
10823 fi
10824 rm -f conftest.err conftest.$ac_objext \
10825       conftest$ac_exeext conftest.$ac_ext
10826 fi
10827 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10828 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10829 if test `eval echo '${'$as_ac_var'}'` = yes; then
10830   cat >>confdefs.h <<_ACEOF
10831 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10832 _ACEOF
10833
10834 fi
10835 done
10836
10837
10838
10839
10840
10841 for ac_func in fstat ftruncate fsync fdatasync
10842 do
10843 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10844 echo "$as_me:$LINENO: checking for $ac_func" >&5
10845 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10846 if eval "test \"\${$as_ac_var+set}\" = set"; then
10847   echo $ECHO_N "(cached) $ECHO_C" >&6
10848 else
10849   cat >conftest.$ac_ext <<_ACEOF
10850 /* confdefs.h.  */
10851 _ACEOF
10852 cat confdefs.h >>conftest.$ac_ext
10853 cat >>conftest.$ac_ext <<_ACEOF
10854 /* end confdefs.h.  */
10855 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10856    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10857 #define $ac_func innocuous_$ac_func
10858
10859 /* System header to define __stub macros and hopefully few prototypes,
10860     which can conflict with char $ac_func (); below.
10861     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10862     <limits.h> exists even on freestanding compilers.  */
10863
10864 #ifdef __STDC__
10865 # include <limits.h>
10866 #else
10867 # include <assert.h>
10868 #endif
10869
10870 #undef $ac_func
10871
10872 /* Override any gcc2 internal prototype to avoid an error.  */
10873 #ifdef __cplusplus
10874 extern "C"
10875 {
10876 #endif
10877 /* We use char because int might match the return type of a gcc2
10878    builtin and then its argument prototype would still apply.  */
10879 char $ac_func ();
10880 /* The GNU C library defines this for functions which it implements
10881     to always fail with ENOSYS.  Some functions are actually named
10882     something starting with __ and the normal name is an alias.  */
10883 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10884 choke me
10885 #else
10886 char (*f) () = $ac_func;
10887 #endif
10888 #ifdef __cplusplus
10889 }
10890 #endif
10891
10892 int
10893 main ()
10894 {
10895 return f != $ac_func;
10896   ;
10897   return 0;
10898 }
10899 _ACEOF
10900 rm -f conftest.$ac_objext conftest$ac_exeext
10901 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10902   (eval $ac_link) 2>conftest.er1
10903   ac_status=$?
10904   grep -v '^ *+' conftest.er1 >conftest.err
10905   rm -f conftest.er1
10906   cat conftest.err >&5
10907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10908   (exit $ac_status); } &&
10909          { ac_try='test -z "$ac_c_werror_flag"
10910                          || test ! -s conftest.err'
10911   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10912   (eval $ac_try) 2>&5
10913   ac_status=$?
10914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10915   (exit $ac_status); }; } &&
10916          { ac_try='test -s conftest$ac_exeext'
10917   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10918   (eval $ac_try) 2>&5
10919   ac_status=$?
10920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10921   (exit $ac_status); }; }; then
10922   eval "$as_ac_var=yes"
10923 else
10924   echo "$as_me: failed program was:" >&5
10925 sed 's/^/| /' conftest.$ac_ext >&5
10926
10927 eval "$as_ac_var=no"
10928 fi
10929 rm -f conftest.err conftest.$ac_objext \
10930       conftest$ac_exeext conftest.$ac_ext
10931 fi
10932 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10933 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10934 if test `eval echo '${'$as_ac_var'}'` = yes; then
10935   cat >>confdefs.h <<_ACEOF
10936 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10937 _ACEOF
10938
10939 fi
10940 done
10941
10942
10943
10944 for ac_func in snprintf vsnprintf
10945 do
10946 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10947 echo "$as_me:$LINENO: checking for $ac_func" >&5
10948 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10949 if eval "test \"\${$as_ac_var+set}\" = set"; then
10950   echo $ECHO_N "(cached) $ECHO_C" >&6
10951 else
10952   cat >conftest.$ac_ext <<_ACEOF
10953 /* confdefs.h.  */
10954 _ACEOF
10955 cat confdefs.h >>conftest.$ac_ext
10956 cat >>conftest.$ac_ext <<_ACEOF
10957 /* end confdefs.h.  */
10958 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10959    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10960 #define $ac_func innocuous_$ac_func
10961
10962 /* System header to define __stub macros and hopefully few prototypes,
10963     which can conflict with char $ac_func (); below.
10964     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10965     <limits.h> exists even on freestanding compilers.  */
10966
10967 #ifdef __STDC__
10968 # include <limits.h>
10969 #else
10970 # include <assert.h>
10971 #endif
10972
10973 #undef $ac_func
10974
10975 /* Override any gcc2 internal prototype to avoid an error.  */
10976 #ifdef __cplusplus
10977 extern "C"
10978 {
10979 #endif
10980 /* We use char because int might match the return type of a gcc2
10981    builtin and then its argument prototype would still apply.  */
10982 char $ac_func ();
10983 /* The GNU C library defines this for functions which it implements
10984     to always fail with ENOSYS.  Some functions are actually named
10985     something starting with __ and the normal name is an alias.  */
10986 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10987 choke me
10988 #else
10989 char (*f) () = $ac_func;
10990 #endif
10991 #ifdef __cplusplus
10992 }
10993 #endif
10994
10995 int
10996 main ()
10997 {
10998 return f != $ac_func;
10999   ;
11000   return 0;
11001 }
11002 _ACEOF
11003 rm -f conftest.$ac_objext conftest$ac_exeext
11004 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11005   (eval $ac_link) 2>conftest.er1
11006   ac_status=$?
11007   grep -v '^ *+' conftest.er1 >conftest.err
11008   rm -f conftest.er1
11009   cat conftest.err >&5
11010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11011   (exit $ac_status); } &&
11012          { ac_try='test -z "$ac_c_werror_flag"
11013                          || test ! -s conftest.err'
11014   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11015   (eval $ac_try) 2>&5
11016   ac_status=$?
11017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11018   (exit $ac_status); }; } &&
11019          { ac_try='test -s conftest$ac_exeext'
11020   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11021   (eval $ac_try) 2>&5
11022   ac_status=$?
11023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11024   (exit $ac_status); }; }; then
11025   eval "$as_ac_var=yes"
11026 else
11027   echo "$as_me: failed program was:" >&5
11028 sed 's/^/| /' conftest.$ac_ext >&5
11029
11030 eval "$as_ac_var=no"
11031 fi
11032 rm -f conftest.err conftest.$ac_objext \
11033       conftest$ac_exeext conftest.$ac_ext
11034 fi
11035 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11036 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11037 if test `eval echo '${'$as_ac_var'}'` = yes; then
11038   cat >>confdefs.h <<_ACEOF
11039 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11040 _ACEOF
11041
11042 fi
11043 done
11044
11045
11046
11047 for ac_func in gmtime gmtime_r
11048 do
11049 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11050 echo "$as_me:$LINENO: checking for $ac_func" >&5
11051 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11052 if eval "test \"\${$as_ac_var+set}\" = set"; then
11053   echo $ECHO_N "(cached) $ECHO_C" >&6
11054 else
11055   cat >conftest.$ac_ext <<_ACEOF
11056 /* confdefs.h.  */
11057 _ACEOF
11058 cat confdefs.h >>conftest.$ac_ext
11059 cat >>conftest.$ac_ext <<_ACEOF
11060 /* end confdefs.h.  */
11061 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11062    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11063 #define $ac_func innocuous_$ac_func
11064
11065 /* System header to define __stub macros and hopefully few prototypes,
11066     which can conflict with char $ac_func (); below.
11067     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11068     <limits.h> exists even on freestanding compilers.  */
11069
11070 #ifdef __STDC__
11071 # include <limits.h>
11072 #else
11073 # include <assert.h>
11074 #endif
11075
11076 #undef $ac_func
11077
11078 /* Override any gcc2 internal prototype to avoid an error.  */
11079 #ifdef __cplusplus
11080 extern "C"
11081 {
11082 #endif
11083 /* We use char because int might match the return type of a gcc2
11084    builtin and then its argument prototype would still apply.  */
11085 char $ac_func ();
11086 /* The GNU C library defines this for functions which it implements
11087     to always fail with ENOSYS.  Some functions are actually named
11088     something starting with __ and the normal name is an alias.  */
11089 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11090 choke me
11091 #else
11092 char (*f) () = $ac_func;
11093 #endif
11094 #ifdef __cplusplus
11095 }
11096 #endif
11097
11098 int
11099 main ()
11100 {
11101 return f != $ac_func;
11102   ;
11103   return 0;
11104 }
11105 _ACEOF
11106 rm -f conftest.$ac_objext conftest$ac_exeext
11107 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11108   (eval $ac_link) 2>conftest.er1
11109   ac_status=$?
11110   grep -v '^ *+' conftest.er1 >conftest.err
11111   rm -f conftest.er1
11112   cat conftest.err >&5
11113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11114   (exit $ac_status); } &&
11115          { ac_try='test -z "$ac_c_werror_flag"
11116                          || test ! -s conftest.err'
11117   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11118   (eval $ac_try) 2>&5
11119   ac_status=$?
11120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11121   (exit $ac_status); }; } &&
11122          { ac_try='test -s conftest$ac_exeext'
11123   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11124   (eval $ac_try) 2>&5
11125   ac_status=$?
11126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11127   (exit $ac_status); }; }; then
11128   eval "$as_ac_var=yes"
11129 else
11130   echo "$as_me: failed program was:" >&5
11131 sed 's/^/| /' conftest.$ac_ext >&5
11132
11133 eval "$as_ac_var=no"
11134 fi
11135 rm -f conftest.err conftest.$ac_objext \
11136       conftest$ac_exeext conftest.$ac_ext
11137 fi
11138 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11139 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11140 if test `eval echo '${'$as_ac_var'}'` = yes; then
11141   cat >>confdefs.h <<_ACEOF
11142 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11143 _ACEOF
11144
11145 fi
11146 done
11147
11148
11149
11150 for ac_func in mmap getpagesize
11151 do
11152 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11153 echo "$as_me:$LINENO: checking for $ac_func" >&5
11154 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11155 if eval "test \"\${$as_ac_var+set}\" = set"; then
11156   echo $ECHO_N "(cached) $ECHO_C" >&6
11157 else
11158   cat >conftest.$ac_ext <<_ACEOF
11159 /* confdefs.h.  */
11160 _ACEOF
11161 cat confdefs.h >>conftest.$ac_ext
11162 cat >>conftest.$ac_ext <<_ACEOF
11163 /* end confdefs.h.  */
11164 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11165    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11166 #define $ac_func innocuous_$ac_func
11167
11168 /* System header to define __stub macros and hopefully few prototypes,
11169     which can conflict with char $ac_func (); below.
11170     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11171     <limits.h> exists even on freestanding compilers.  */
11172
11173 #ifdef __STDC__
11174 # include <limits.h>
11175 #else
11176 # include <assert.h>
11177 #endif
11178
11179 #undef $ac_func
11180
11181 /* Override any gcc2 internal prototype to avoid an error.  */
11182 #ifdef __cplusplus
11183 extern "C"
11184 {
11185 #endif
11186 /* We use char because int might match the return type of a gcc2
11187    builtin and then its argument prototype would still apply.  */
11188 char $ac_func ();
11189 /* The GNU C library defines this for functions which it implements
11190     to always fail with ENOSYS.  Some functions are actually named
11191     something starting with __ and the normal name is an alias.  */
11192 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11193 choke me
11194 #else
11195 char (*f) () = $ac_func;
11196 #endif
11197 #ifdef __cplusplus
11198 }
11199 #endif
11200
11201 int
11202 main ()
11203 {
11204 return f != $ac_func;
11205   ;
11206   return 0;
11207 }
11208 _ACEOF
11209 rm -f conftest.$ac_objext conftest$ac_exeext
11210 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11211   (eval $ac_link) 2>conftest.er1
11212   ac_status=$?
11213   grep -v '^ *+' conftest.er1 >conftest.err
11214   rm -f conftest.er1
11215   cat conftest.err >&5
11216   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11217   (exit $ac_status); } &&
11218          { ac_try='test -z "$ac_c_werror_flag"
11219                          || test ! -s conftest.err'
11220   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11221   (eval $ac_try) 2>&5
11222   ac_status=$?
11223   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11224   (exit $ac_status); }; } &&
11225          { ac_try='test -s conftest$ac_exeext'
11226   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11227   (eval $ac_try) 2>&5
11228   ac_status=$?
11229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11230   (exit $ac_status); }; }; then
11231   eval "$as_ac_var=yes"
11232 else
11233   echo "$as_me: failed program was:" >&5
11234 sed 's/^/| /' conftest.$ac_ext >&5
11235
11236 eval "$as_ac_var=no"
11237 fi
11238 rm -f conftest.err conftest.$ac_objext \
11239       conftest$ac_exeext conftest.$ac_ext
11240 fi
11241 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11242 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11243 if test `eval echo '${'$as_ac_var'}'` = yes; then
11244   cat >>confdefs.h <<_ACEOF
11245 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11246 _ACEOF
11247
11248 fi
11249 done
11250
11251
11252 for ac_func in setlocale
11253 do
11254 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11255 echo "$as_me:$LINENO: checking for $ac_func" >&5
11256 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11257 if eval "test \"\${$as_ac_var+set}\" = set"; then
11258   echo $ECHO_N "(cached) $ECHO_C" >&6
11259 else
11260   cat >conftest.$ac_ext <<_ACEOF
11261 /* confdefs.h.  */
11262 _ACEOF
11263 cat confdefs.h >>conftest.$ac_ext
11264 cat >>conftest.$ac_ext <<_ACEOF
11265 /* end confdefs.h.  */
11266 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11267    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11268 #define $ac_func innocuous_$ac_func
11269
11270 /* System header to define __stub macros and hopefully few prototypes,
11271     which can conflict with char $ac_func (); below.
11272     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11273     <limits.h> exists even on freestanding compilers.  */
11274
11275 #ifdef __STDC__
11276 # include <limits.h>
11277 #else
11278 # include <assert.h>
11279 #endif
11280
11281 #undef $ac_func
11282
11283 /* Override any gcc2 internal prototype to avoid an error.  */
11284 #ifdef __cplusplus
11285 extern "C"
11286 {
11287 #endif
11288 /* We use char because int might match the return type of a gcc2
11289    builtin and then its argument prototype would still apply.  */
11290 char $ac_func ();
11291 /* The GNU C library defines this for functions which it implements
11292     to always fail with ENOSYS.  Some functions are actually named
11293     something starting with __ and the normal name is an alias.  */
11294 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11295 choke me
11296 #else
11297 char (*f) () = $ac_func;
11298 #endif
11299 #ifdef __cplusplus
11300 }
11301 #endif
11302
11303 int
11304 main ()
11305 {
11306 return f != $ac_func;
11307   ;
11308   return 0;
11309 }
11310 _ACEOF
11311 rm -f conftest.$ac_objext conftest$ac_exeext
11312 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11313   (eval $ac_link) 2>conftest.er1
11314   ac_status=$?
11315   grep -v '^ *+' conftest.er1 >conftest.err
11316   rm -f conftest.er1
11317   cat conftest.err >&5
11318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11319   (exit $ac_status); } &&
11320          { ac_try='test -z "$ac_c_werror_flag"
11321                          || test ! -s conftest.err'
11322   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11323   (eval $ac_try) 2>&5
11324   ac_status=$?
11325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11326   (exit $ac_status); }; } &&
11327          { ac_try='test -s conftest$ac_exeext'
11328   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11329   (eval $ac_try) 2>&5
11330   ac_status=$?
11331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11332   (exit $ac_status); }; }; then
11333   eval "$as_ac_var=yes"
11334 else
11335   echo "$as_me: failed program was:" >&5
11336 sed 's/^/| /' conftest.$ac_ext >&5
11337
11338 eval "$as_ac_var=no"
11339 fi
11340 rm -f conftest.err conftest.$ac_objext \
11341       conftest$ac_exeext conftest.$ac_ext
11342 fi
11343 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11344 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11345 if test `eval echo '${'$as_ac_var'}'` = yes; then
11346   cat >>confdefs.h <<_ACEOF
11347 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11348 _ACEOF
11349
11350 fi
11351 done
11352
11353
11354
11355 echo "$as_me:$LINENO: checking for floor in -lm" >&5
11356 echo $ECHO_N "checking for floor in -lm... $ECHO_C" >&6
11357 if test "${ac_cv_lib_m_floor+set}" = set; then
11358   echo $ECHO_N "(cached) $ECHO_C" >&6
11359 else
11360   ac_check_lib_save_LIBS=$LIBS
11361 LIBS="-lm  $LIBS"
11362 cat >conftest.$ac_ext <<_ACEOF
11363 /* confdefs.h.  */
11364 _ACEOF
11365 cat confdefs.h >>conftest.$ac_ext
11366 cat >>conftest.$ac_ext <<_ACEOF
11367 /* end confdefs.h.  */
11368
11369 /* Override any gcc2 internal prototype to avoid an error.  */
11370 #ifdef __cplusplus
11371 extern "C"
11372 #endif
11373 /* We use char because int might match the return type of a gcc2
11374    builtin and then its argument prototype would still apply.  */
11375 char floor ();
11376 int
11377 main ()
11378 {
11379 floor ();
11380   ;
11381   return 0;
11382 }
11383 _ACEOF
11384 rm -f conftest.$ac_objext conftest$ac_exeext
11385 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11386   (eval $ac_link) 2>conftest.er1
11387   ac_status=$?
11388   grep -v '^ *+' conftest.er1 >conftest.err
11389   rm -f conftest.er1
11390   cat conftest.err >&5
11391   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11392   (exit $ac_status); } &&
11393          { ac_try='test -z "$ac_c_werror_flag"
11394                          || test ! -s conftest.err'
11395   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11396   (eval $ac_try) 2>&5
11397   ac_status=$?
11398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11399   (exit $ac_status); }; } &&
11400          { ac_try='test -s conftest$ac_exeext'
11401   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11402   (eval $ac_try) 2>&5
11403   ac_status=$?
11404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11405   (exit $ac_status); }; }; then
11406   ac_cv_lib_m_floor=yes
11407 else
11408   echo "$as_me: failed program was:" >&5
11409 sed 's/^/| /' conftest.$ac_ext >&5
11410
11411 ac_cv_lib_m_floor=no
11412 fi
11413 rm -f conftest.err conftest.$ac_objext \
11414       conftest$ac_exeext conftest.$ac_ext
11415 LIBS=$ac_check_lib_save_LIBS
11416 fi
11417 echo "$as_me:$LINENO: result: $ac_cv_lib_m_floor" >&5
11418 echo "${ECHO_T}$ac_cv_lib_m_floor" >&6
11419 if test $ac_cv_lib_m_floor = yes; then
11420   cat >>confdefs.h <<_ACEOF
11421 #define HAVE_LIBM 1
11422 _ACEOF
11423
11424   LIBS="-lm $LIBS"
11425
11426 fi
11427
11428
11429
11430
11431 for ac_func in floor ceil fmod
11432 do
11433 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11434 echo "$as_me:$LINENO: checking for $ac_func" >&5
11435 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11436 if eval "test \"\${$as_ac_var+set}\" = set"; then
11437   echo $ECHO_N "(cached) $ECHO_C" >&6
11438 else
11439   cat >conftest.$ac_ext <<_ACEOF
11440 /* confdefs.h.  */
11441 _ACEOF
11442 cat confdefs.h >>conftest.$ac_ext
11443 cat >>conftest.$ac_ext <<_ACEOF
11444 /* end confdefs.h.  */
11445 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11446    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11447 #define $ac_func innocuous_$ac_func
11448
11449 /* System header to define __stub macros and hopefully few prototypes,
11450     which can conflict with char $ac_func (); below.
11451     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11452     <limits.h> exists even on freestanding compilers.  */
11453
11454 #ifdef __STDC__
11455 # include <limits.h>
11456 #else
11457 # include <assert.h>
11458 #endif
11459
11460 #undef $ac_func
11461
11462 /* Override any gcc2 internal prototype to avoid an error.  */
11463 #ifdef __cplusplus
11464 extern "C"
11465 {
11466 #endif
11467 /* We use char because int might match the return type of a gcc2
11468    builtin and then its argument prototype would still apply.  */
11469 char $ac_func ();
11470 /* The GNU C library defines this for functions which it implements
11471     to always fail with ENOSYS.  Some functions are actually named
11472     something starting with __ and the normal name is an alias.  */
11473 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11474 choke me
11475 #else
11476 char (*f) () = $ac_func;
11477 #endif
11478 #ifdef __cplusplus
11479 }
11480 #endif
11481
11482 int
11483 main ()
11484 {
11485 return f != $ac_func;
11486   ;
11487   return 0;
11488 }
11489 _ACEOF
11490 rm -f conftest.$ac_objext conftest$ac_exeext
11491 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11492   (eval $ac_link) 2>conftest.er1
11493   ac_status=$?
11494   grep -v '^ *+' conftest.er1 >conftest.err
11495   rm -f conftest.er1
11496   cat conftest.err >&5
11497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11498   (exit $ac_status); } &&
11499          { ac_try='test -z "$ac_c_werror_flag"
11500                          || test ! -s conftest.err'
11501   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11502   (eval $ac_try) 2>&5
11503   ac_status=$?
11504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11505   (exit $ac_status); }; } &&
11506          { ac_try='test -s conftest$ac_exeext'
11507   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11508   (eval $ac_try) 2>&5
11509   ac_status=$?
11510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11511   (exit $ac_status); }; }; then
11512   eval "$as_ac_var=yes"
11513 else
11514   echo "$as_me: failed program was:" >&5
11515 sed 's/^/| /' conftest.$ac_ext >&5
11516
11517 eval "$as_ac_var=no"
11518 fi
11519 rm -f conftest.err conftest.$ac_objext \
11520       conftest$ac_exeext conftest.$ac_ext
11521 fi
11522 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11523 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11524 if test `eval echo '${'$as_ac_var'}'` = yes; then
11525   cat >>confdefs.h <<_ACEOF
11526 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11527 _ACEOF
11528
11529 fi
11530 done
11531
11532
11533 case "$host_os" in
11534         cygwin*)
11535                 { echo "$as_me:$LINENO: WARNING: Not using built-in lrint() and lrintf() because they are broken on Cygwin." >&5
11536 echo "$as_me: WARNING: Not using built-in lrint() and lrintf() because they are broken on Cygwin." >&2;}
11537                 ;;
11538         *)
11539                 echo "$as_me:$LINENO: checking for lrint" >&5
11540 echo $ECHO_N "checking for lrint... $ECHO_C" >&6
11541 if test "${ac_cv_c99_lrint+set}" = set; then
11542   echo $ECHO_N "(cached) $ECHO_C" >&6
11543 else
11544
11545 lrint_save_CFLAGS=$CFLAGS
11546 CFLAGS="-O2 -lm"
11547 cat >conftest.$ac_ext <<_ACEOF
11548 /* confdefs.h.  */
11549 _ACEOF
11550 cat confdefs.h >>conftest.$ac_ext
11551 cat >>conftest.$ac_ext <<_ACEOF
11552 /* end confdefs.h.  */
11553
11554 #define         _ISOC9X_SOURCE  1
11555 #define         _ISOC99_SOURCE  1
11556 #define         __USE_ISOC99    1
11557 #define         __USE_ISOC9X    1
11558
11559 #include <math.h>
11560
11561 int
11562 main ()
11563 {
11564 if (!lrint(3.14159)) lrint(2.7183);
11565   ;
11566   return 0;
11567 }
11568 _ACEOF
11569 rm -f conftest.$ac_objext conftest$ac_exeext
11570 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11571   (eval $ac_link) 2>conftest.er1
11572   ac_status=$?
11573   grep -v '^ *+' conftest.er1 >conftest.err
11574   rm -f conftest.er1
11575   cat conftest.err >&5
11576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11577   (exit $ac_status); } &&
11578          { ac_try='test -z "$ac_c_werror_flag"
11579                          || test ! -s conftest.err'
11580   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11581   (eval $ac_try) 2>&5
11582   ac_status=$?
11583   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11584   (exit $ac_status); }; } &&
11585          { ac_try='test -s conftest$ac_exeext'
11586   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11587   (eval $ac_try) 2>&5
11588   ac_status=$?
11589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11590   (exit $ac_status); }; }; then
11591   ac_cv_c99_lrint=yes
11592 else
11593   echo "$as_me: failed program was:" >&5
11594 sed 's/^/| /' conftest.$ac_ext >&5
11595
11596 ac_cv_c99_lrint=no
11597 fi
11598 rm -f conftest.err conftest.$ac_objext \
11599       conftest$ac_exeext conftest.$ac_ext
11600
11601 CFLAGS=$lrint_save_CFLAGS
11602
11603
11604 fi
11605 echo "$as_me:$LINENO: result: $ac_cv_c99_lrint" >&5
11606 echo "${ECHO_T}$ac_cv_c99_lrint" >&6
11607
11608 if test "$ac_cv_c99_lrint" = yes; then
11609
11610 cat >>confdefs.h <<\_ACEOF
11611 #define HAVE_LRINT 1
11612 _ACEOF
11613
11614 fi
11615
11616                 echo "$as_me:$LINENO: checking for lrintf" >&5
11617 echo $ECHO_N "checking for lrintf... $ECHO_C" >&6
11618 if test "${ac_cv_c99_lrintf+set}" = set; then
11619   echo $ECHO_N "(cached) $ECHO_C" >&6
11620 else
11621
11622 lrintf_save_CFLAGS=$CFLAGS
11623 CFLAGS="-O2 -lm"
11624 cat >conftest.$ac_ext <<_ACEOF
11625 /* confdefs.h.  */
11626 _ACEOF
11627 cat confdefs.h >>conftest.$ac_ext
11628 cat >>conftest.$ac_ext <<_ACEOF
11629 /* end confdefs.h.  */
11630
11631 #define         _ISOC9X_SOURCE  1
11632 #define         _ISOC99_SOURCE  1
11633 #define         __USE_ISOC99    1
11634 #define         __USE_ISOC9X    1
11635
11636 #include <math.h>
11637
11638 int
11639 main ()
11640 {
11641 if (!lrintf(3.14159)) lrintf(2.7183);
11642   ;
11643   return 0;
11644 }
11645 _ACEOF
11646 rm -f conftest.$ac_objext conftest$ac_exeext
11647 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11648   (eval $ac_link) 2>conftest.er1
11649   ac_status=$?
11650   grep -v '^ *+' conftest.er1 >conftest.err
11651   rm -f conftest.er1
11652   cat conftest.err >&5
11653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11654   (exit $ac_status); } &&
11655          { ac_try='test -z "$ac_c_werror_flag"
11656                          || test ! -s conftest.err'
11657   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11658   (eval $ac_try) 2>&5
11659   ac_status=$?
11660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11661   (exit $ac_status); }; } &&
11662          { ac_try='test -s conftest$ac_exeext'
11663   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11664   (eval $ac_try) 2>&5
11665   ac_status=$?
11666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11667   (exit $ac_status); }; }; then
11668   ac_cv_c99_lrintf=yes
11669 else
11670   echo "$as_me: failed program was:" >&5
11671 sed 's/^/| /' conftest.$ac_ext >&5
11672
11673 ac_cv_c99_lrintf=no
11674 fi
11675 rm -f conftest.err conftest.$ac_objext \
11676       conftest$ac_exeext conftest.$ac_ext
11677
11678 CFLAGS=$lrintf_save_CFLAGS
11679
11680
11681 fi
11682 echo "$as_me:$LINENO: result: $ac_cv_c99_lrintf" >&5
11683 echo "${ECHO_T}$ac_cv_c99_lrintf" >&6
11684
11685 if test "$ac_cv_c99_lrintf" = yes; then
11686
11687 cat >>confdefs.h <<\_ACEOF
11688 #define HAVE_LRINTF 1
11689 _ACEOF
11690
11691 fi
11692
11693
11694                 if test "x$ac_cv_c99_lrint" = "xno" ; then
11695                         if test "x$ac_cv_c99_lrintf" = "xno" ; then
11696                                 { echo "$as_me:$LINENO: WARNING: *** Missing C99 standard functions lrint() and lrintf()." >&5
11697 echo "$as_me: WARNING: *** Missing C99 standard functions lrint() and lrintf()." >&2;}
11698                                 { echo "$as_me:$LINENO: WARNING: *** This may cause benign compiler warnings on some systems (ie Solaris)." >&5
11699 echo "$as_me: WARNING: *** This may cause benign compiler warnings on some systems (ie Solaris)." >&2;}
11700                                 fi
11701                         fi
11702                 ;;
11703         esac
11704
11705 #====================================================================================
11706 # Check for libsqlite3 (only used in regtest).
11707
11708 ac_cv_sqlite3=no
11709 if test x$enable_sqlite != xno ; then
11710
11711   succeeded=no
11712
11713   if test -z "$PKG_CONFIG"; then
11714     # Extract the first word of "pkg-config", so it can be a program name with args.
11715 set dummy pkg-config; ac_word=$2
11716 echo "$as_me:$LINENO: checking for $ac_word" >&5
11717 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11718 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
11719   echo $ECHO_N "(cached) $ECHO_C" >&6
11720 else
11721   case $PKG_CONFIG in
11722   [\\/]* | ?:[\\/]*)
11723   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11724   ;;
11725   *)
11726   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11727 for as_dir in $PATH
11728 do
11729   IFS=$as_save_IFS
11730   test -z "$as_dir" && as_dir=.
11731   for ac_exec_ext in '' $ac_executable_extensions; do
11732   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11733     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11734     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11735     break 2
11736   fi
11737 done
11738 done
11739
11740   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11741   ;;
11742 esac
11743 fi
11744 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11745
11746 if test -n "$PKG_CONFIG"; then
11747   echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
11748 echo "${ECHO_T}$PKG_CONFIG" >&6
11749 else
11750   echo "$as_me:$LINENO: result: no" >&5
11751 echo "${ECHO_T}no" >&6
11752 fi
11753
11754   fi
11755
11756   if test "$PKG_CONFIG" = "no" ; then
11757      echo "*** The pkg-config script could not be found. Make sure it is"
11758      echo "*** in your path, or set the PKG_CONFIG environment variable"
11759      echo "*** to the full path to pkg-config."
11760      echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
11761   else
11762      PKG_CONFIG_MIN_VERSION=0.9.0
11763      if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11764         echo "$as_me:$LINENO: checking for sqlite3 >= 3.2" >&5
11765 echo $ECHO_N "checking for sqlite3 >= 3.2... $ECHO_C" >&6
11766
11767         if $PKG_CONFIG --exists "sqlite3 >= 3.2" ; then
11768             echo "$as_me:$LINENO: result: yes" >&5
11769 echo "${ECHO_T}yes" >&6
11770             succeeded=yes
11771
11772             echo "$as_me:$LINENO: checking SQLITE3_CFLAGS" >&5
11773 echo $ECHO_N "checking SQLITE3_CFLAGS... $ECHO_C" >&6
11774             SQLITE3_CFLAGS=`$PKG_CONFIG --cflags "sqlite3 >= 3.2"`
11775             echo "$as_me:$LINENO: result: $SQLITE3_CFLAGS" >&5
11776 echo "${ECHO_T}$SQLITE3_CFLAGS" >&6
11777
11778             echo "$as_me:$LINENO: checking SQLITE3_LIBS" >&5
11779 echo $ECHO_N "checking SQLITE3_LIBS... $ECHO_C" >&6
11780             SQLITE3_LIBS=`$PKG_CONFIG --libs "sqlite3 >= 3.2"`
11781             echo "$as_me:$LINENO: result: $SQLITE3_LIBS" >&5
11782 echo "${ECHO_T}$SQLITE3_LIBS" >&6
11783         else
11784             SQLITE3_CFLAGS=""
11785             SQLITE3_LIBS=""
11786             ## If we have a custom action on failure, don't print errors, but
11787             ## do set a variable so people can do so.
11788             SQLITE3_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "sqlite3 >= 3.2"`
11789
11790         fi
11791
11792
11793
11794      else
11795         echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11796         echo "*** See http://www.freedesktop.org/software/pkgconfig"
11797      fi
11798   fi
11799
11800   if test $succeeded = yes; then
11801      ac_cv_sqlite3=yes
11802   else
11803      ac_cv_sqlite3=no
11804   fi
11805
11806         fi
11807
11808 if test x$ac_cv_sqlite3 = "xyes" ; then
11809         HAVE_SQLITE3=1
11810 else
11811         HAVE_SQLITE3=0
11812         fi
11813
11814
11815 cat >>confdefs.h <<_ACEOF
11816 #define HAVE_SQLITE3 $HAVE_SQLITE3
11817 _ACEOF
11818
11819
11820 #====================================================================================
11821 # Determine if the processor can do clipping on float to int conversions.
11822
11823 if test x$enable_cpu_clip != "xno" ; then
11824         echo "$as_me:$LINENO: checking processor clipping capabilities" >&5
11825 echo $ECHO_N "checking processor clipping capabilities... $ECHO_C" >&6
11826 if test "${ac_cv_c_clip_type+set}" = set; then
11827   echo $ECHO_N "(cached) $ECHO_C" >&6
11828 else
11829   # Initialize to unknown
11830 ac_cv_c_clip_positive=unknown
11831 ac_cv_c_clip_negative=unknown
11832
11833 if test $ac_cv_c_clip_positive = unknown ; then
11834         if test "$cross_compiling" = yes; then
11835   ac_cv_c_clip_positive=unknown
11836
11837 else
11838   cat >conftest.$ac_ext <<_ACEOF
11839 /* confdefs.h.  */
11840 _ACEOF
11841 cat confdefs.h >>conftest.$ac_ext
11842 cat >>conftest.$ac_ext <<_ACEOF
11843 /* end confdefs.h.  */
11844
11845         #define _ISOC9X_SOURCE  1
11846         #define _ISOC99_SOURCE  1
11847         #define __USE_ISOC99    1
11848         #define __USE_ISOC9X    1
11849         #include <math.h>
11850         int main (void)
11851         {       double  fval ;
11852                 int k, ival ;
11853
11854                 fval = 1.0 * 0x7FFFFFFF ;
11855                 for (k = 0 ; k < 100 ; k++)
11856                 {       ival = (lrint (fval)) >> 24 ;
11857                         if (ival != 127)
11858                                 return 1 ;
11859
11860                         fval *= 1.2499999 ;
11861                         } ;
11862
11863                         return 0 ;
11864                 }
11865
11866 _ACEOF
11867 rm -f conftest$ac_exeext
11868 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11869   (eval $ac_link) 2>&5
11870   ac_status=$?
11871   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11872   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11873   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11874   (eval $ac_try) 2>&5
11875   ac_status=$?
11876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11877   (exit $ac_status); }; }; then
11878   ac_cv_c_clip_positive=yes
11879 else
11880   echo "$as_me: program exited with status $ac_status" >&5
11881 echo "$as_me: failed program was:" >&5
11882 sed 's/^/| /' conftest.$ac_ext >&5
11883
11884 ( exit $ac_status )
11885 ac_cv_c_clip_positive=no
11886 fi
11887 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11888 fi
11889
11890         if test "$cross_compiling" = yes; then
11891   ac_cv_c_clip_negative=unknown
11892
11893 else
11894   cat >conftest.$ac_ext <<_ACEOF
11895 /* confdefs.h.  */
11896 _ACEOF
11897 cat confdefs.h >>conftest.$ac_ext
11898 cat >>conftest.$ac_ext <<_ACEOF
11899 /* end confdefs.h.  */
11900
11901         #define _ISOC9X_SOURCE  1
11902         #define _ISOC99_SOURCE  1
11903         #define __USE_ISOC99    1
11904         #define __USE_ISOC9X    1
11905         #include <math.h>
11906         int main (void)
11907         {       double  fval ;
11908                 int k, ival ;
11909
11910                 fval = -8.0 * 0x10000000 ;
11911                 for (k = 0 ; k < 100 ; k++)
11912                 {       ival = (lrint (fval)) >> 24 ;
11913                         if (ival != -128)
11914                                 return 1 ;
11915
11916                         fval *= 1.2499999 ;
11917                         } ;
11918
11919                         return 0 ;
11920                 }
11921
11922 _ACEOF
11923 rm -f conftest$ac_exeext
11924 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11925   (eval $ac_link) 2>&5
11926   ac_status=$?
11927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11928   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11929   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11930   (eval $ac_try) 2>&5
11931   ac_status=$?
11932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11933   (exit $ac_status); }; }; then
11934   ac_cv_c_clip_negative=yes
11935 else
11936   echo "$as_me: program exited with status $ac_status" >&5
11937 echo "$as_me: failed program was:" >&5
11938 sed 's/^/| /' conftest.$ac_ext >&5
11939
11940 ( exit $ac_status )
11941 ac_cv_c_clip_negative=no
11942 fi
11943 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11944 fi
11945         fi
11946
11947 if test $ac_cv_c_clip_positive = yes ; then
11948         ac_cv_c_clip_positive=1
11949 else
11950         ac_cv_c_clip_positive=0
11951         fi
11952
11953 if test $ac_cv_c_clip_negative = yes ; then
11954         ac_cv_c_clip_negative=1
11955 else
11956         ac_cv_c_clip_negative=0
11957         fi
11958
11959
11960 case "$ac_cv_c_clip_positive$ac_cv_c_clip_negative" in
11961         "00")
11962                 ac_cv_c_clip_type="none"
11963                 ;;
11964         "10")
11965                 ac_cv_c_clip_type="positive"
11966                 ;;
11967         "01")
11968                 ac_cv_c_clip_type="negative"
11969                 ;;
11970         "11")
11971                 ac_cv_c_clip_type="both"
11972                 ;;
11973         esac
11974
11975
11976
11977 fi
11978 echo "$as_me:$LINENO: result: $ac_cv_c_clip_type" >&5
11979 echo "${ECHO_T}$ac_cv_c_clip_type" >&6
11980
11981
11982
11983 else
11984         echo "checking processor clipping capabilities... disabled"
11985         ac_cv_c_clip_positive=0
11986         ac_cv_c_clip_negative=0
11987         fi
11988
11989
11990 cat >>confdefs.h <<_ACEOF
11991 #define CPU_CLIPS_POSITIVE ${ac_cv_c_clip_positive}
11992 _ACEOF
11993
11994
11995 cat >>confdefs.h <<_ACEOF
11996 #define CPU_CLIPS_NEGATIVE ${ac_cv_c_clip_negative}
11997 _ACEOF
11998
11999
12000 #====================================================================================
12001 # Target OS specific stuff.
12002
12003 OS_SPECIFIC_CFLAGS=""
12004 OS_SPECIFIC_LINKS=""
12005 os_is_win32=0
12006 os_is_macosx=0
12007 use_windows_api=0
12008
12009 case "$host_os" in
12010         darwin* | rhapsody*)
12011                 os_is_macosx=1
12012                 OS_SPECIFIC_CFLAGS="-fpascal-strings -I/Developer/Headers/FlatCarbon"
12013                 OS_SPECIFIC_LINKS="-framework CoreAudio"
12014                 ;;
12015         mingw*)
12016                 os_is_win32=1
12017                 use_windows_api=1
12018                 OS_SPECIFIC_LINKS="-lwinmm"
12019                 ;;
12020         cygwin*)
12021                 os_is_win32=1
12022                 OS_SPECIFIC_LINKS="-lwinmm"
12023                 ;;
12024         esac
12025
12026
12027 cat >>confdefs.h <<_ACEOF
12028 #define OS_IS_WIN32 ${os_is_win32}
12029 _ACEOF
12030
12031
12032 cat >>confdefs.h <<_ACEOF
12033 #define OS_IS_MACOSX ${os_is_macosx}
12034 _ACEOF
12035
12036
12037 cat >>confdefs.h <<_ACEOF
12038 #define USE_WINDOWS_API ${use_windows_api}
12039 _ACEOF
12040
12041
12042 #====================================================================================
12043 # Check for ALSA.
12044
12045 ALSA_LIBS=""
12046
12047 if test x$enable_alsa != xno ; then
12048
12049 for ac_header in alsa/asoundlib.h
12050 do
12051 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12052 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12053   echo "$as_me:$LINENO: checking for $ac_header" >&5
12054 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12055 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12056   echo $ECHO_N "(cached) $ECHO_C" >&6
12057 fi
12058 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12059 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12060 else
12061   # Is the header compilable?
12062 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12063 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12064 cat >conftest.$ac_ext <<_ACEOF
12065 /* confdefs.h.  */
12066 _ACEOF
12067 cat confdefs.h >>conftest.$ac_ext
12068 cat >>conftest.$ac_ext <<_ACEOF
12069 /* end confdefs.h.  */
12070 $ac_includes_default
12071 #include <$ac_header>
12072 _ACEOF
12073 rm -f conftest.$ac_objext
12074 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12075   (eval $ac_compile) 2>conftest.er1
12076   ac_status=$?
12077   grep -v '^ *+' conftest.er1 >conftest.err
12078   rm -f conftest.er1
12079   cat conftest.err >&5
12080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12081   (exit $ac_status); } &&
12082          { ac_try='test -z "$ac_c_werror_flag"
12083                          || test ! -s conftest.err'
12084   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12085   (eval $ac_try) 2>&5
12086   ac_status=$?
12087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12088   (exit $ac_status); }; } &&
12089          { ac_try='test -s conftest.$ac_objext'
12090   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12091   (eval $ac_try) 2>&5
12092   ac_status=$?
12093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12094   (exit $ac_status); }; }; then
12095   ac_header_compiler=yes
12096 else
12097   echo "$as_me: failed program was:" >&5
12098 sed 's/^/| /' conftest.$ac_ext >&5
12099
12100 ac_header_compiler=no
12101 fi
12102 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12103 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12104 echo "${ECHO_T}$ac_header_compiler" >&6
12105
12106 # Is the header present?
12107 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12108 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12109 cat >conftest.$ac_ext <<_ACEOF
12110 /* confdefs.h.  */
12111 _ACEOF
12112 cat confdefs.h >>conftest.$ac_ext
12113 cat >>conftest.$ac_ext <<_ACEOF
12114 /* end confdefs.h.  */
12115 #include <$ac_header>
12116 _ACEOF
12117 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12118   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12119   ac_status=$?
12120   grep -v '^ *+' conftest.er1 >conftest.err
12121   rm -f conftest.er1
12122   cat conftest.err >&5
12123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12124   (exit $ac_status); } >/dev/null; then
12125   if test -s conftest.err; then
12126     ac_cpp_err=$ac_c_preproc_warn_flag
12127     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12128   else
12129     ac_cpp_err=
12130   fi
12131 else
12132   ac_cpp_err=yes
12133 fi
12134 if test -z "$ac_cpp_err"; then
12135   ac_header_preproc=yes
12136 else
12137   echo "$as_me: failed program was:" >&5
12138 sed 's/^/| /' conftest.$ac_ext >&5
12139
12140   ac_header_preproc=no
12141 fi
12142 rm -f conftest.err conftest.$ac_ext
12143 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12144 echo "${ECHO_T}$ac_header_preproc" >&6
12145
12146 # So?  What about this header?
12147 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12148   yes:no: )
12149     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12150 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12151     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12152 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12153     ac_header_preproc=yes
12154     ;;
12155   no:yes:* )
12156     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12157 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12158     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12159 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12160     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12161 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12162     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12163 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12164     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12165 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12166     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12167 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12168     (
12169       cat <<\_ASBOX
12170 ## -------------------------------- ##
12171 ## Report this to ardour@ardour.org ##
12172 ## -------------------------------- ##
12173 _ASBOX
12174     ) |
12175       sed "s/^/$as_me: WARNING:     /" >&2
12176     ;;
12177 esac
12178 echo "$as_me:$LINENO: checking for $ac_header" >&5
12179 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12180 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12181   echo $ECHO_N "(cached) $ECHO_C" >&6
12182 else
12183   eval "$as_ac_Header=\$ac_header_preproc"
12184 fi
12185 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12186 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12187
12188 fi
12189 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12190   cat >>confdefs.h <<_ACEOF
12191 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12192 _ACEOF
12193
12194 fi
12195
12196 done
12197
12198         if test x$ac_cv_header_alsa_asoundlib_h = xyes ; then
12199                 ALSA_LIBS="-lasound"
12200                 fi
12201         fi
12202
12203 #====================================================================================
12204 # Check for FLAC
12205
12206 FLAC_LIBS=""
12207
12208 if test x$enable_flac != xno ; then
12209
12210 for ac_header in FLAC/all.h
12211 do
12212 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12213 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12214   echo "$as_me:$LINENO: checking for $ac_header" >&5
12215 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12216 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12217   echo $ECHO_N "(cached) $ECHO_C" >&6
12218 fi
12219 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12220 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12221 else
12222   # Is the header compilable?
12223 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12224 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12225 cat >conftest.$ac_ext <<_ACEOF
12226 /* confdefs.h.  */
12227 _ACEOF
12228 cat confdefs.h >>conftest.$ac_ext
12229 cat >>conftest.$ac_ext <<_ACEOF
12230 /* end confdefs.h.  */
12231 $ac_includes_default
12232 #include <$ac_header>
12233 _ACEOF
12234 rm -f conftest.$ac_objext
12235 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12236   (eval $ac_compile) 2>conftest.er1
12237   ac_status=$?
12238  
12239   cat conftest.$ac_ext > blah1.c
12240
12241   echo $CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext > blah1
12242
12243   grep -v '^ *+' conftest.er1 >conftest.err
12244   rm -f conftest.er1
12245   cat conftest.err >&5
12246   
12247   cat conftest.err > blah2
12248   
12249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12250   (exit $ac_status); } &&
12251          { ac_try='test -z "$ac_c_werror_flag"
12252                          || test ! -s conftest.err'
12253   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12254   (eval $ac_try) 2>&5
12255   ac_status=$?
12256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12257   (exit $ac_status); }; } &&
12258          { ac_try='test -s conftest.$ac_objext'
12259   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12260   (eval $ac_try) 2>&5
12261   ac_status=$?
12262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12263   (exit $ac_status); }; }; then
12264   ac_header_compiler=yes
12265 else
12266   echo "$as_me: failed program was:" >&5
12267 sed 's/^/| /' conftest.$ac_ext >&5
12268
12269 ac_header_compiler=no
12270 fi
12271 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12272 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12273 echo "${ECHO_T}$ac_header_compiler" >&6
12274
12275 # Is the header present?
12276 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12277 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12278 cat >conftest.$ac_ext <<_ACEOF
12279 /* confdefs.h.  */
12280 _ACEOF
12281 cat confdefs.h >>conftest.$ac_ext
12282 cat >>conftest.$ac_ext <<_ACEOF
12283 /* end confdefs.h.  */
12284 #include <$ac_header>
12285 _ACEOF
12286 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12287   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12288   ac_status=$?
12289   grep -v '^ *+' conftest.er1 >conftest.err
12290   rm -f conftest.er1
12291   cat conftest.err >&5
12292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12293   (exit $ac_status); } >/dev/null; then
12294   if test -s conftest.err; then
12295     ac_cpp_err=$ac_c_preproc_warn_flag
12296     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12297   else
12298     ac_cpp_err=
12299   fi
12300 else
12301   ac_cpp_err=yes
12302 fi
12303 if test -z "$ac_cpp_err"; then
12304   ac_header_preproc=yes
12305 else
12306   echo "$as_me: failed program was:" >&5
12307 sed 's/^/| /' conftest.$ac_ext >&5
12308
12309   ac_header_preproc=no
12310 fi
12311 rm -f conftest.err conftest.$ac_ext
12312 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12313 echo "${ECHO_T}$ac_header_preproc" >&6
12314
12315 # So?  What about this header?
12316 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12317   yes:no: )
12318     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12319 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12320     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12321 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12322     ac_header_preproc=yes
12323     ;;
12324   no:yes:* )
12325     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12326 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12327     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12328 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12329     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12330 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12331     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12332 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12333     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12334 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12335     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12336 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12337     (
12338       cat <<\_ASBOX
12339 ## -------------------------------- ##
12340 ## Report this to ardour@ardour.org ##
12341 ## -------------------------------- ##
12342 _ASBOX
12343     ) |
12344       sed "s/^/$as_me: WARNING:     /" >&2
12345     ;;
12346 esac
12347 echo "$as_me:$LINENO: checking for $ac_header" >&5
12348 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12349 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12350   echo $ECHO_N "(cached) $ECHO_C" >&6
12351 else
12352   eval "$as_ac_Header=\$ac_header_preproc"
12353 fi
12354 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12355 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12356
12357 fi
12358 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12359   cat >>confdefs.h <<_ACEOF
12360 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12361 _ACEOF
12362
12363 fi
12364
12365 done
12366
12367         if test x$ac_cv_header_FLAC_all_h = xyes ; then
12368                 echo "$as_me:$LINENO: checking for FLAC__seekable_stream_encoder_set_tell_callback in -lFLAC" >&5
12369 echo $ECHO_N "checking for FLAC__seekable_stream_encoder_set_tell_callback in -lFLAC... $ECHO_C" >&6
12370 if test "${ac_cv_lib_FLAC_FLAC__seekable_stream_encoder_set_tell_callback+set}" = set; then
12371   echo $ECHO_N "(cached) $ECHO_C" >&6
12372 else
12373   ac_check_lib_save_LIBS=$LIBS
12374 LIBS="-lFLAC  $LIBS"
12375 cat >conftest.$ac_ext <<_ACEOF
12376 /* confdefs.h.  */
12377 _ACEOF
12378 cat confdefs.h >>conftest.$ac_ext
12379 cat >>conftest.$ac_ext <<_ACEOF
12380 /* end confdefs.h.  */
12381
12382 /* Override any gcc2 internal prototype to avoid an error.  */
12383 #ifdef __cplusplus
12384 extern "C"
12385 #endif
12386 /* We use char because int might match the return type of a gcc2
12387    builtin and then its argument prototype would still apply.  */
12388 char FLAC__seekable_stream_encoder_set_tell_callback ();
12389 int
12390 main ()
12391 {
12392 FLAC__seekable_stream_encoder_set_tell_callback ();
12393   ;
12394   return 0;
12395 }
12396 _ACEOF
12397 rm -f conftest.$ac_objext conftest$ac_exeext
12398 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12399   (eval $ac_link) 2>conftest.er1
12400   ac_status=$?
12401   grep -v '^ *+' conftest.er1 >conftest.err
12402   rm -f conftest.er1
12403   cat conftest.err >&5
12404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12405   (exit $ac_status); } &&
12406          { ac_try='test -z "$ac_c_werror_flag"
12407                          || test ! -s conftest.err'
12408   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12409   (eval $ac_try) 2>&5
12410   ac_status=$?
12411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12412   (exit $ac_status); }; } &&
12413          { ac_try='test -s conftest$ac_exeext'
12414   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12415   (eval $ac_try) 2>&5
12416   ac_status=$?
12417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12418   (exit $ac_status); }; }; then
12419   ac_cv_lib_FLAC_FLAC__seekable_stream_encoder_set_tell_callback=yes
12420 else
12421   echo "$as_me: failed program was:" >&5
12422 sed 's/^/| /' conftest.$ac_ext >&5
12423
12424 ac_cv_lib_FLAC_FLAC__seekable_stream_encoder_set_tell_callback=no
12425 fi
12426 rm -f conftest.err conftest.$ac_objext \
12427       conftest$ac_exeext conftest.$ac_ext
12428 LIBS=$ac_check_lib_save_LIBS
12429 fi
12430 echo "$as_me:$LINENO: result: $ac_cv_lib_FLAC_FLAC__seekable_stream_encoder_set_tell_callback" >&5
12431 echo "${ECHO_T}$ac_cv_lib_FLAC_FLAC__seekable_stream_encoder_set_tell_callback" >&6
12432 if test $ac_cv_lib_FLAC_FLAC__seekable_stream_encoder_set_tell_callback = yes; then
12433   HAVE_FLAC_1_1_1="yes"
12434 fi
12435
12436                 if test "x$HAVE_FLAC_1_1_1" = xyes ; then
12437
12438 cat >>confdefs.h <<\_ACEOF
12439 #define HAVE_FLAC_1_1_1 1
12440 _ACEOF
12441
12442                         fi
12443                 FLAC_LIBS="-lFLAC"
12444                 fi
12445         fi
12446
12447 #====================================================================================
12448 # Test for sanity when cross-compiling.
12449
12450 if test x$cross_compiling = xyes ; then
12451         { echo "$as_me:$LINENO: WARNING: ******************************************************************" >&5
12452 echo "$as_me: WARNING: ******************************************************************" >&2;}
12453         { echo "$as_me:$LINENO: WARNING: *** We are cross-compiling, so have to assume sizeof (short) == 2 " >&5
12454 echo "$as_me: WARNING: *** We are cross-compiling, so have to assume sizeof (short) == 2 " >&2;}
12455         { echo "$as_me:$LINENO: WARNING: *** and sizeof (int) == 4. If this is not the case there is no    " >&5
12456 echo "$as_me: WARNING: *** and sizeof (int) == 4. If this is not the case there is no    " >&2;}
12457         { echo "$as_me:$LINENO: WARNING: *** chance of this working. Please contact the mantainer.         " >&5
12458 echo "$as_me: WARNING: *** chance of this working. Please contact the mantainer.         " >&2;}
12459         { echo "$as_me:$LINENO: WARNING: ******************************************************************" >&5
12460 echo "$as_me: WARNING: ******************************************************************" >&2;}
12461         fi
12462
12463 if test $ac_cv_sizeof_short != 2 ; then
12464         { echo "$as_me:$LINENO: WARNING: ******************************************************************" >&5
12465 echo "$as_me: WARNING: ******************************************************************" >&2;}
12466         { echo "$as_me:$LINENO: WARNING: *** sizeof (short) != 2.                                          " >&5
12467 echo "$as_me: WARNING: *** sizeof (short) != 2.                                          " >&2;}
12468         { echo "$as_me:$LINENO: WARNING: ******************************************************************" >&5
12469 echo "$as_me: WARNING: ******************************************************************" >&2;}
12470         fi
12471
12472 if test $ac_cv_sizeof_int != 4 ; then
12473         { echo "$as_me:$LINENO: WARNING: ******************************************************************" >&5
12474 echo "$as_me: WARNING: ******************************************************************" >&2;}
12475         { echo "$as_me:$LINENO: WARNING: *** sizeof (int) != 4                                             " >&5
12476 echo "$as_me: WARNING: *** sizeof (int) != 4                                             " >&2;}
12477         { echo "$as_me:$LINENO: WARNING: ******************************************************************" >&5
12478 echo "$as_me: WARNING: ******************************************************************" >&2;}
12479         fi
12480
12481 if test $ac_cv_sizeof_float != 4 ; then
12482         { echo "$as_me:$LINENO: WARNING: ******************************************************************" >&5
12483 echo "$as_me: WARNING: ******************************************************************" >&2;}
12484         { echo "$as_me:$LINENO: WARNING: *** sizeof (float) != 4.                                          " >&5
12485 echo "$as_me: WARNING: *** sizeof (float) != 4.                                          " >&2;}
12486         { echo "$as_me:$LINENO: WARNING: ******************************************************************" >&5
12487 echo "$as_me: WARNING: ******************************************************************" >&2;}
12488         fi
12489
12490 if test $ac_cv_sizeof_double != 8 ; then
12491         { echo "$as_me:$LINENO: WARNING: ******************************************************************" >&5
12492 echo "$as_me: WARNING: ******************************************************************" >&2;}
12493         { echo "$as_me:$LINENO: WARNING: *** sizeof (double) != 8.                                         " >&5
12494 echo "$as_me: WARNING: *** sizeof (double) != 8.                                         " >&2;}
12495         { echo "$as_me:$LINENO: WARNING: ******************************************************************" >&5
12496 echo "$as_me: WARNING: ******************************************************************" >&2;}
12497         fi
12498
12499 if test x"$ac_cv_prog_autogen" = "xno" ; then
12500         { echo "$as_me:$LINENO: WARNING: Touching files in directory tests/." >&5
12501 echo "$as_me: WARNING: Touching files in directory tests/." >&2;}
12502         touch tests/*.c tests/*.h
12503         fi
12504
12505 #====================================================================================
12506 # Settings for the HTML documentation.
12507
12508 htmldocdir=$prefix/share/doc/libsndfile1-dev/html
12509
12510 if test $prefix = "NONE" ; then
12511         htmldocdir=/usr/local/share/doc/libsndfile1-dev/html
12512 else
12513         htmldocdir=$prefix/share/doc/libsndfile1-dev/html
12514         fi
12515
12516 if test x$enable_bow_docs = "xyes" ; then
12517         HTML_BGCOLOUR="white"
12518         HTML_FGCOLOUR="black"
12519 else
12520         HTML_BGCOLOUR="black"
12521         HTML_FGCOLOUR="white"
12522         fi
12523
12524 #====================================================================================
12525 # Now use the information from the checking stage.
12526
12527 if test x$ac_cv_c_compiler_gnu = xyes ; then
12528         echo "$as_me:$LINENO: checking if $CC accepts -std=gnu99" >&5
12529 echo $ECHO_N "checking if $CC accepts -std=gnu99... $ECHO_C" >&6
12530         ac_add_cflags__old_cflags="$CFLAGS"
12531         CFLAGS="$CFLAGS -std=gnu99"
12532         cat >conftest.$ac_ext <<_ACEOF
12533 /* confdefs.h.  */
12534 _ACEOF
12535 cat confdefs.h >>conftest.$ac_ext
12536 cat >>conftest.$ac_ext <<_ACEOF
12537 /* end confdefs.h.  */
12538 #include <stdio.h>
12539 int
12540 main ()
12541 {
12542 printf("Hello, World!\n"); return 0;
12543   ;
12544   return 0;
12545 }
12546 _ACEOF
12547 rm -f conftest.$ac_objext conftest$ac_exeext
12548 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12549   (eval $ac_link) 2>conftest.er1
12550   ac_status=$?
12551   grep -v '^ *+' conftest.er1 >conftest.err
12552   rm -f conftest.er1
12553   cat conftest.err >&5
12554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12555   (exit $ac_status); } &&
12556          { ac_try='test -z "$ac_c_werror_flag"
12557                          || test ! -s conftest.err'
12558   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12559   (eval $ac_try) 2>&5
12560   ac_status=$?
12561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12562   (exit $ac_status); }; } &&
12563          { ac_try='test -s conftest$ac_exeext'
12564   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12565   (eval $ac_try) 2>&5
12566   ac_status=$?
12567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12568   (exit $ac_status); }; }; then
12569   echo "$as_me:$LINENO: result: yes" >&5
12570 echo "${ECHO_T}yes" >&6
12571 else
12572   echo "$as_me: failed program was:" >&5
12573 sed 's/^/| /' conftest.$ac_ext >&5
12574
12575 echo "$as_me:$LINENO: result: no" >&5
12576 echo "${ECHO_T}no" >&6
12577                 CFLAGS="$ac_add_cflags__old_cflags"
12578 fi
12579 rm -f conftest.err conftest.$ac_objext \
12580       conftest$ac_exeext conftest.$ac_ext
12581
12582
12583         CFLAGS="$CFLAGS -W -Wall"
12584
12585         echo "$as_me:$LINENO: checking if $CC accepts -Wdeclaration-after-statement" >&5
12586 echo $ECHO_N "checking if $CC accepts -Wdeclaration-after-statement... $ECHO_C" >&6
12587         ac_add_cflags__old_cflags="$CFLAGS"
12588         CFLAGS="$CFLAGS -Wdeclaration-after-statement"
12589         cat >conftest.$ac_ext <<_ACEOF
12590 /* confdefs.h.  */
12591 _ACEOF
12592 cat confdefs.h >>conftest.$ac_ext
12593 cat >>conftest.$ac_ext <<_ACEOF
12594 /* end confdefs.h.  */
12595 #include <stdio.h>
12596 int
12597 main ()
12598 {
12599 printf("Hello, World!\n"); return 0;
12600   ;
12601   return 0;
12602 }
12603 _ACEOF
12604 rm -f conftest.$ac_objext conftest$ac_exeext
12605 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12606   (eval $ac_link) 2>conftest.er1
12607   ac_status=$?
12608   grep -v '^ *+' conftest.er1 >conftest.err
12609   rm -f conftest.er1
12610   cat conftest.err >&5
12611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12612   (exit $ac_status); } &&
12613          { ac_try='test -z "$ac_c_werror_flag"
12614                          || test ! -s conftest.err'
12615   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12616   (eval $ac_try) 2>&5
12617   ac_status=$?
12618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12619   (exit $ac_status); }; } &&
12620          { ac_try='test -s conftest$ac_exeext'
12621   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12622   (eval $ac_try) 2>&5
12623   ac_status=$?
12624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12625   (exit $ac_status); }; }; then
12626   echo "$as_me:$LINENO: result: yes" >&5
12627 echo "${ECHO_T}yes" >&6
12628 else
12629   echo "$as_me: failed program was:" >&5
12630 sed 's/^/| /' conftest.$ac_ext >&5
12631
12632 echo "$as_me:$LINENO: result: no" >&5
12633 echo "${ECHO_T}no" >&6
12634                 CFLAGS="$ac_add_cflags__old_cflags"
12635 fi
12636 rm -f conftest.err conftest.$ac_objext \
12637       conftest$ac_exeext conftest.$ac_ext
12638
12639
12640         if test x$enable_gcc_werror = "xyes" ; then
12641                 CFLAGS="-Werror $CFLAGS"
12642                 fi
12643
12644         CFLAGS="$CFLAGS -Wstrict-prototypes -Wmissing-prototypes -Waggregate-return -Wcast-align -Wcast-qual -Wnested-externs -Wshadow -Wbad-function-cast -Wwrite-strings"
12645         # -Wpointer-arith -Wundef -Wmissing-declarations -Winline -Wconversion"
12646
12647         if test "x$enable_gcc_opt" = "xno" ; then
12648                 temp_CFLAGS=`echo $CFLAGS | sed "s/O2/O0/"`
12649                 CFLAGS=$temp_CFLAGS
12650                 { echo "$as_me:$LINENO: WARNING: *** Compiler optimisations switched off. ***" >&5
12651 echo "$as_me: WARNING: *** Compiler optimisations switched off. ***" >&2;}
12652                 fi
12653
12654         # OS specific tweaks.
12655         case "$host_os" in
12656                 darwin* | rhapsody*)
12657                         # Disable -Wall, -pedantic and -Wshadow for Apple Darwin/Rhapsody.
12658                         # System headers on these systems are broken.
12659                         temp_CFLAGS=`echo $CFLAGS | sed "s/-Wall -pedantic//" | sed "s/-Wshadow//" | sed "s/-Waggregate-return//"`
12660                         CFLAGS=$temp_CFLAGS
12661                         SHLIB_VERSION_ARG="-Wl,-exported_symbols_list -Wl,\$(srcdir)/Symbols.darwin"
12662                         ;;
12663                 linux*)
12664                         SHLIB_VERSION_ARG="-Wl,--version-script=\$(srcdir)/Symbols.linux"
12665                         ;;
12666                 mingw*)
12667                         SHLIB_VERSION_ARG="-Wl,\$(srcdir)/libsndfile.def"
12668                         ;;
12669                 cygwin*)
12670                         SHLIB_VERSION_ARG="-Wl,\$(srcdir)/cygsndfile.def"
12671                         ;;
12672                 *)
12673                         ;;
12674                 esac
12675         if test x$enable_gcc_pipe != "xno" ; then
12676                 CFLAGS="$CFLAGS -pipe"
12677                 fi
12678
12679
12680 cat >>confdefs.h <<\_ACEOF
12681 #define COMPILER_IS_GCC 1
12682 _ACEOF
12683
12684         GCC_MAJOR_VERSION=`$CC -dumpversion | sed "s/\..*//"`
12685
12686 cat >>confdefs.h <<_ACEOF
12687 #define GCC_MAJOR_VERSION ${GCC_MAJOR_VERSION}
12688 _ACEOF
12689
12690         fi
12691
12692 CFLAGS="$CFLAGS $OS_SPECIFIC_CFLAGS"
12693
12694 if test x"$CFLAGS" = x ; then
12695         echo "Error in configure script. CFLAGS has been screwed up."
12696         exit
12697         fi
12698
12699
12700
12701
12702
12703
12704
12705
12706
12707
12708
12709
12710
12711
12712
12713
12714
12715
12716                     ac_config_files="$ac_config_files src/sndfile.h sndfile.pc"
12717
12718 cat >confcache <<\_ACEOF
12719 # This file is a shell script that caches the results of configure
12720 # tests run on this system so they can be shared between configure
12721 # scripts and configure runs, see configure's option --config-cache.
12722 # It is not useful on other systems.  If it contains results you don't
12723 # want to keep, you may remove or edit it.
12724 #
12725 # config.status only pays attention to the cache file if you give it
12726 # the --recheck option to rerun configure.
12727 #
12728 # `ac_cv_env_foo' variables (set or unset) will be overridden when
12729 # loading this file, other *unset* `ac_cv_foo' will be assigned the
12730 # following values.
12731
12732 _ACEOF
12733
12734 # The following way of writing the cache mishandles newlines in values,
12735 # but we know of no workaround that is simple, portable, and efficient.
12736 # So, don't put newlines in cache variables' values.
12737 # Ultrix sh set writes to stderr and can't be redirected directly,
12738 # and sets the high bit in the cache file unless we assign to the vars.
12739 {
12740   (set) 2>&1 |
12741     case `(ac_space=' '; set | grep ac_space) 2>&1` in
12742     *ac_space=\ *)
12743       # `set' does not quote correctly, so add quotes (double-quote
12744       # substitution turns \\\\ into \\, and sed turns \\ into \).
12745       sed -n \
12746         "s/'/'\\\\''/g;
12747           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12748       ;;
12749     *)
12750       # `set' quotes correctly as required by POSIX, so do not add quotes.
12751       sed -n \
12752         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
12753       ;;
12754     esac;
12755 } |
12756   sed '
12757      t clear
12758      : clear
12759      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12760      t end
12761      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12762      : end' >>confcache
12763 if diff $cache_file confcache >/dev/null 2>&1; then :; else
12764   if test -w $cache_file; then
12765     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
12766     cat confcache >$cache_file
12767   else
12768     echo "not updating unwritable cache $cache_file"
12769   fi
12770 fi
12771 rm -f confcache
12772
12773 test "x$prefix" = xNONE && prefix=$ac_default_prefix
12774 # Let make expand exec_prefix.
12775 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12776
12777 # VPATH may cause trouble with some makes, so we remove $(srcdir),
12778 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
12779 # trailing colons and then remove the whole line if VPATH becomes empty
12780 # (actually we leave an empty line to preserve line numbers).
12781 if test "x$srcdir" = x.; then
12782   ac_vpsub='/^[  ]*VPATH[        ]*=/{
12783 s/:*\$(srcdir):*/:/;
12784 s/:*\${srcdir}:*/:/;
12785 s/:*@srcdir@:*/:/;
12786 s/^\([^=]*=[     ]*\):*/\1/;
12787 s/:*$//;
12788 s/^[^=]*=[       ]*$//;
12789 }'
12790 fi
12791
12792 DEFS=-DHAVE_CONFIG_H
12793
12794 ac_libobjs=
12795 ac_ltlibobjs=
12796 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12797   # 1. Remove the extension, and $U if already installed.
12798   ac_i=`echo "$ac_i" |
12799          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
12800   # 2. Add them.
12801   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
12802   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
12803 done
12804 LIBOBJS=$ac_libobjs
12805
12806 LTLIBOBJS=$ac_ltlibobjs
12807
12808
12809
12810 : ${CONFIG_STATUS=./config.status}
12811 ac_clean_files_save=$ac_clean_files
12812 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12813 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
12814 echo "$as_me: creating $CONFIG_STATUS" >&6;}
12815 cat >$CONFIG_STATUS <<_ACEOF
12816 #! $SHELL
12817 # Generated by $as_me.
12818 # Run this file to recreate the current configuration.
12819 # Compiler output produced by configure, useful for debugging
12820 # configure, is in config.log if it exists.
12821
12822 debug=false
12823 ac_cs_recheck=false
12824 ac_cs_silent=false
12825 SHELL=\${CONFIG_SHELL-$SHELL}
12826 _ACEOF
12827
12828 cat >>$CONFIG_STATUS <<\_ACEOF
12829 ## --------------------- ##
12830 ## M4sh Initialization.  ##
12831 ## --------------------- ##
12832
12833 # Be Bourne compatible
12834 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
12835   emulate sh
12836   NULLCMD=:
12837   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
12838   # is contrary to our usage.  Disable this feature.
12839   alias -g '${1+"$@"}'='"$@"'
12840 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
12841   set -o posix
12842 fi
12843 DUALCASE=1; export DUALCASE # for MKS sh
12844
12845 # Support unset when possible.
12846 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
12847   as_unset=unset
12848 else
12849   as_unset=false
12850 fi
12851
12852
12853 # Work around bugs in pre-3.0 UWIN ksh.
12854 $as_unset ENV MAIL MAILPATH
12855 PS1='$ '
12856 PS2='> '
12857 PS4='+ '
12858
12859 # NLS nuisances.
12860 for as_var in \
12861   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
12862   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
12863   LC_TELEPHONE LC_TIME
12864 do
12865   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
12866     eval $as_var=C; export $as_var
12867   else
12868     $as_unset $as_var
12869   fi
12870 done
12871
12872 # Required to use basename.
12873 if expr a : '\(a\)' >/dev/null 2>&1; then
12874   as_expr=expr
12875 else
12876   as_expr=false
12877 fi
12878
12879 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
12880   as_basename=basename
12881 else
12882   as_basename=false
12883 fi
12884
12885
12886 # Name of the executable.
12887 as_me=`$as_basename "$0" ||
12888 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12889          X"$0" : 'X\(//\)$' \| \
12890          X"$0" : 'X\(/\)$' \| \
12891          .     : '\(.\)' 2>/dev/null ||
12892 echo X/"$0" |
12893     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
12894           /^X\/\(\/\/\)$/{ s//\1/; q; }
12895           /^X\/\(\/\).*/{ s//\1/; q; }
12896           s/.*/./; q'`
12897
12898
12899 # PATH needs CR, and LINENO needs CR and PATH.
12900 # Avoid depending upon Character Ranges.
12901 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12902 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12903 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12904 as_cr_digits='0123456789'
12905 as_cr_alnum=$as_cr_Letters$as_cr_digits
12906
12907 # The user is always right.
12908 if test "${PATH_SEPARATOR+set}" != set; then
12909   echo "#! /bin/sh" >conf$$.sh
12910   echo  "exit 0"   >>conf$$.sh
12911   chmod +x conf$$.sh
12912   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12913     PATH_SEPARATOR=';'
12914   else
12915     PATH_SEPARATOR=:
12916   fi
12917   rm -f conf$$.sh
12918 fi
12919
12920
12921   as_lineno_1=$LINENO
12922   as_lineno_2=$LINENO
12923   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
12924   test "x$as_lineno_1" != "x$as_lineno_2" &&
12925   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
12926   # Find who we are.  Look in the path if we contain no path at all
12927   # relative or not.
12928   case $0 in
12929     *[\\/]* ) as_myself=$0 ;;
12930     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12931 for as_dir in $PATH
12932 do
12933   IFS=$as_save_IFS
12934   test -z "$as_dir" && as_dir=.
12935   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12936 done
12937
12938        ;;
12939   esac
12940   # We did not find ourselves, most probably we were run as `sh COMMAND'
12941   # in which case we are not to be found in the path.
12942   if test "x$as_myself" = x; then
12943     as_myself=$0
12944   fi
12945   if test ! -f "$as_myself"; then
12946     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
12947 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
12948    { (exit 1); exit 1; }; }
12949   fi
12950   case $CONFIG_SHELL in
12951   '')
12952     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12953 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
12954 do
12955   IFS=$as_save_IFS
12956   test -z "$as_dir" && as_dir=.
12957   for as_base in sh bash ksh sh5; do
12958          case $as_dir in
12959          /*)
12960            if ("$as_dir/$as_base" -c '
12961   as_lineno_1=$LINENO
12962   as_lineno_2=$LINENO
12963   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
12964   test "x$as_lineno_1" != "x$as_lineno_2" &&
12965   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
12966              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
12967              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
12968              CONFIG_SHELL=$as_dir/$as_base
12969              export CONFIG_SHELL
12970              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
12971            fi;;
12972          esac
12973        done
12974 done
12975 ;;
12976   esac
12977
12978   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
12979   # uniformly replaced by the line number.  The first 'sed' inserts a
12980   # line-number line before each line; the second 'sed' does the real
12981   # work.  The second script uses 'N' to pair each line-number line
12982   # with the numbered line, and appends trailing '-' during
12983   # substitution so that $LINENO is not a special case at line end.
12984   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
12985   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
12986   sed '=' <$as_myself |
12987     sed '
12988       N
12989       s,$,-,
12990       : loop
12991       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
12992       t loop
12993       s,-$,,
12994       s,^['$as_cr_digits']*\n,,
12995     ' >$as_me.lineno &&
12996   chmod +x $as_me.lineno ||
12997     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
12998 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
12999    { (exit 1); exit 1; }; }
13000
13001   # Don't try to exec as it changes $[0], causing all sort of problems
13002   # (the dirname of $[0] is not the place where we might find the
13003   # original and so on.  Autoconf is especially sensible to this).
13004   . ./$as_me.lineno
13005   # Exit status is that of the last command.
13006   exit
13007 }
13008
13009
13010 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
13011   *c*,-n*) ECHO_N= ECHO_C='
13012 ' ECHO_T='      ' ;;
13013   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
13014   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
13015 esac
13016
13017 if expr a : '\(a\)' >/dev/null 2>&1; then
13018   as_expr=expr
13019 else
13020   as_expr=false
13021 fi
13022
13023 rm -f conf$$ conf$$.exe conf$$.file
13024 echo >conf$$.file
13025 if ln -s conf$$.file conf$$ 2>/dev/null; then
13026   # We could just check for DJGPP; but this test a) works b) is more generic
13027   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
13028   if test -f conf$$.exe; then
13029     # Don't use ln at all; we don't have any links
13030     as_ln_s='cp -p'
13031   else
13032     as_ln_s='ln -s'
13033   fi
13034 elif ln conf$$.file conf$$ 2>/dev/null; then
13035   as_ln_s=ln
13036 else
13037   as_ln_s='cp -p'
13038 fi
13039 rm -f conf$$ conf$$.exe conf$$.file
13040
13041 if mkdir -p . 2>/dev/null; then
13042   as_mkdir_p=:
13043 else
13044   test -d ./-p && rmdir ./-p
13045   as_mkdir_p=false
13046 fi
13047
13048 as_executable_p="test -f"
13049
13050 # Sed expression to map a string onto a valid CPP name.
13051 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13052
13053 # Sed expression to map a string onto a valid variable name.
13054 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13055
13056
13057 # IFS
13058 # We need space, tab and new line, in precisely that order.
13059 as_nl='
13060 '
13061 IFS="   $as_nl"
13062
13063 # CDPATH.
13064 $as_unset CDPATH
13065
13066 exec 6>&1
13067
13068 # Open the log real soon, to keep \$[0] and so on meaningful, and to
13069 # report actual input values of CONFIG_FILES etc. instead of their
13070 # values after options handling.  Logging --version etc. is OK.
13071 exec 5>>config.log
13072 {
13073   echo
13074   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13075 ## Running $as_me. ##
13076 _ASBOX
13077 } >&5
13078 cat >&5 <<_CSEOF
13079
13080 This file was extended by libsndfile $as_me ardour-special, which was
13081 generated by GNU Autoconf 2.59.  Invocation command line was
13082
13083   CONFIG_FILES    = $CONFIG_FILES
13084   CONFIG_HEADERS  = $CONFIG_HEADERS
13085   CONFIG_LINKS    = $CONFIG_LINKS
13086   CONFIG_COMMANDS = $CONFIG_COMMANDS
13087   $ $0 $@
13088
13089 _CSEOF
13090 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
13091 echo >&5
13092 _ACEOF
13093
13094 # Files that config.status was made for.
13095 if test -n "$ac_config_files"; then
13096   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
13097 fi
13098
13099 if test -n "$ac_config_headers"; then
13100   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
13101 fi
13102
13103 if test -n "$ac_config_links"; then
13104   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
13105 fi
13106
13107 if test -n "$ac_config_commands"; then
13108   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
13109 fi
13110
13111 cat >>$CONFIG_STATUS <<\_ACEOF
13112
13113 ac_cs_usage="\
13114 \`$as_me' instantiates files from templates according to the
13115 current configuration.
13116
13117 Usage: $0 [OPTIONS] [FILE]...
13118
13119   -h, --help       print this help, then exit
13120   -V, --version    print version number, then exit
13121   -q, --quiet      do not print progress messages
13122   -d, --debug      don't remove temporary files
13123       --recheck    update $as_me by reconfiguring in the same conditions
13124   --file=FILE[:TEMPLATE]
13125                    instantiate the configuration file FILE
13126   --header=FILE[:TEMPLATE]
13127                    instantiate the configuration header FILE
13128
13129 Configuration files:
13130 $config_files
13131
13132 Configuration headers:
13133 $config_headers
13134
13135 Report bugs to <bug-autoconf@gnu.org>."
13136 _ACEOF
13137
13138 cat >>$CONFIG_STATUS <<_ACEOF
13139 ac_cs_version="\\
13140 libsndfile config.status ardour-special
13141 configured by $0, generated by GNU Autoconf 2.59,
13142   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
13143
13144 Copyright (C) 2003 Free Software Foundation, Inc.
13145 This config.status script is free software; the Free Software Foundation
13146 gives unlimited permission to copy, distribute and modify it."
13147 srcdir=$srcdir
13148 INSTALL="$INSTALL"
13149 _ACEOF
13150
13151 cat >>$CONFIG_STATUS <<\_ACEOF
13152 # If no file are specified by the user, then we need to provide default
13153 # value.  By we need to know if files were specified by the user.
13154 ac_need_defaults=:
13155 while test $# != 0
13156 do
13157   case $1 in
13158   --*=*)
13159     ac_option=`expr "x$1" : 'x\([^=]*\)='`
13160     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
13161     ac_shift=:
13162     ;;
13163   -*)
13164     ac_option=$1
13165     ac_optarg=$2
13166     ac_shift=shift
13167     ;;
13168   *) # This is not an option, so the user has probably given explicit
13169      # arguments.
13170      ac_option=$1
13171      ac_need_defaults=false;;
13172   esac
13173
13174   case $ac_option in
13175   # Handling of the options.
13176 _ACEOF
13177 cat >>$CONFIG_STATUS <<\_ACEOF
13178   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13179     ac_cs_recheck=: ;;
13180   --version | --vers* | -V )
13181     echo "$ac_cs_version"; exit 0 ;;
13182   --he | --h)
13183     # Conflict between --help and --header
13184     { { echo "$as_me:$LINENO: error: ambiguous option: $1
13185 Try \`$0 --help' for more information." >&5
13186 echo "$as_me: error: ambiguous option: $1
13187 Try \`$0 --help' for more information." >&2;}
13188    { (exit 1); exit 1; }; };;
13189   --help | --hel | -h )
13190     echo "$ac_cs_usage"; exit 0 ;;
13191   --debug | --d* | -d )
13192     debug=: ;;
13193   --file | --fil | --fi | --f )
13194     $ac_shift
13195     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
13196     ac_need_defaults=false;;
13197   --header | --heade | --head | --hea )
13198     $ac_shift
13199     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
13200     ac_need_defaults=false;;
13201   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13202   | -silent | --silent | --silen | --sile | --sil | --si | --s)
13203     ac_cs_silent=: ;;
13204
13205   # This is an error.
13206   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
13207 Try \`$0 --help' for more information." >&5
13208 echo "$as_me: error: unrecognized option: $1
13209 Try \`$0 --help' for more information." >&2;}
13210    { (exit 1); exit 1; }; } ;;
13211
13212   *) ac_config_targets="$ac_config_targets $1" ;;
13213
13214   esac
13215   shift
13216 done
13217
13218 ac_configure_extra_args=
13219
13220 if $ac_cs_silent; then
13221   exec 6>/dev/null
13222   ac_configure_extra_args="$ac_configure_extra_args --silent"
13223 fi
13224
13225 _ACEOF
13226 cat >>$CONFIG_STATUS <<_ACEOF
13227 if \$ac_cs_recheck; then
13228   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
13229   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13230 fi
13231
13232 _ACEOF
13233
13234
13235
13236
13237
13238 cat >>$CONFIG_STATUS <<\_ACEOF
13239 for ac_config_target in $ac_config_targets
13240 do
13241   case "$ac_config_target" in
13242   # Handling of arguments.
13243   "src/sndfile.h" ) CONFIG_FILES="$CONFIG_FILES src/sndfile.h" ;;
13244   "sndfile.pc" ) CONFIG_FILES="$CONFIG_FILES sndfile.pc" ;;
13245   "src/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;;
13246   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
13247 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
13248    { (exit 1); exit 1; }; };;
13249   esac
13250 done
13251
13252 # If the user did not use the arguments to specify the items to instantiate,
13253 # then the envvar interface is used.  Set only those that are not.
13254 # We use the long form for the default assignment because of an extremely
13255 # bizarre bug on SunOS 4.1.3.
13256 if $ac_need_defaults; then
13257   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13258   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13259 fi
13260
13261 # Have a temporary directory for convenience.  Make it in the build tree
13262 # simply because there is no reason to put it here, and in addition,
13263 # creating and moving files from /tmp can sometimes cause problems.
13264 # Create a temporary directory, and hook for its removal unless debugging.
13265 $debug ||
13266 {
13267   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
13268   trap '{ (exit 1); exit 1; }' 1 2 13 15
13269 }
13270
13271 # Create a (secure) tmp directory for tmp files.
13272
13273 {
13274   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
13275   test -n "$tmp" && test -d "$tmp"
13276 }  ||
13277 {
13278   tmp=./confstat$$-$RANDOM
13279   (umask 077 && mkdir $tmp)
13280 } ||
13281 {
13282    echo "$me: cannot create a temporary directory in ." >&2
13283    { (exit 1); exit 1; }
13284 }
13285
13286 _ACEOF
13287
13288 cat >>$CONFIG_STATUS <<_ACEOF
13289
13290 #
13291 # CONFIG_FILES section.
13292 #
13293
13294 # No need to generate the scripts if there are no CONFIG_FILES.
13295 # This happens for instance when ./config.status config.h
13296 if test -n "\$CONFIG_FILES"; then
13297   # Protect against being on the right side of a sed subst in config.status.
13298   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
13299    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
13300 s,@SHELL@,$SHELL,;t t
13301 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
13302 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
13303 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
13304 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
13305 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
13306 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
13307 s,@exec_prefix@,$exec_prefix,;t t
13308 s,@prefix@,$prefix,;t t
13309 s,@program_transform_name@,$program_transform_name,;t t
13310 s,@bindir@,$bindir,;t t
13311 s,@sbindir@,$sbindir,;t t
13312 s,@libexecdir@,$libexecdir,;t t
13313 s,@datadir@,$datadir,;t t
13314 s,@sysconfdir@,$sysconfdir,;t t
13315 s,@sharedstatedir@,$sharedstatedir,;t t
13316 s,@localstatedir@,$localstatedir,;t t
13317 s,@libdir@,$libdir,;t t
13318 s,@includedir@,$includedir,;t t
13319 s,@oldincludedir@,$oldincludedir,;t t
13320 s,@infodir@,$infodir,;t t
13321 s,@mandir@,$mandir,;t t
13322 s,@build_alias@,$build_alias,;t t
13323 s,@host_alias@,$host_alias,;t t
13324 s,@target_alias@,$target_alias,;t t
13325 s,@DEFS@,$DEFS,;t t
13326 s,@ECHO_C@,$ECHO_C,;t t
13327 s,@ECHO_N@,$ECHO_N,;t t
13328 s,@ECHO_T@,$ECHO_T,;t t
13329 s,@LIBS@,$LIBS,;t t
13330 s,@build@,$build,;t t
13331 s,@build_cpu@,$build_cpu,;t t
13332 s,@build_vendor@,$build_vendor,;t t
13333 s,@build_os@,$build_os,;t t
13334 s,@host@,$host,;t t
13335 s,@host_cpu@,$host_cpu,;t t
13336 s,@host_vendor@,$host_vendor,;t t
13337 s,@host_os@,$host_os,;t t
13338 s,@target@,$target,;t t
13339 s,@target_cpu@,$target_cpu,;t t
13340 s,@target_vendor@,$target_vendor,;t t
13341 s,@target_os@,$target_os,;t t
13342 s,@CC@,$CC,;t t
13343 s,@CFLAGS@,$CFLAGS,;t t
13344 s,@LDFLAGS@,$LDFLAGS,;t t
13345 s,@CPPFLAGS@,$CPPFLAGS,;t t
13346 s,@ac_ct_CC@,$ac_ct_CC,;t t
13347 s,@EXEEXT@,$EXEEXT,;t t
13348 s,@OBJEXT@,$OBJEXT,;t t
13349 s,@autogen@,$autogen,;t t
13350 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
13351 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
13352 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
13353 s,@LN_S@,$LN_S,;t t
13354 s,@CPP@,$CPP,;t t
13355 s,@EGREP@,$EGREP,;t t
13356 s,@GETCONF@,$GETCONF,;t t
13357 s,@ac_ct_GETCONF@,$ac_ct_GETCONF,;t t
13358 s,@TYPEOF_SF_COUNT_T@,$TYPEOF_SF_COUNT_T,;t t
13359 s,@SIZEOF_SF_COUNT_T@,$SIZEOF_SF_COUNT_T,;t t
13360 s,@SF_COUNT_MAX@,$SF_COUNT_MAX,;t t
13361 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
13362 s,@SQLITE3_CFLAGS@,$SQLITE3_CFLAGS,;t t
13363 s,@SQLITE3_LIBS@,$SQLITE3_LIBS,;t t
13364 s,@htmldocdir@,$htmldocdir,;t t
13365 s,@HTML_BGCOLOUR@,$HTML_BGCOLOUR,;t t
13366 s,@HTML_FGCOLOUR@,$HTML_FGCOLOUR,;t t
13367 s,@SHLIB_VERSION_ARG@,$SHLIB_VERSION_ARG,;t t
13368 s,@SHARED_VERSION_INFO@,$SHARED_VERSION_INFO,;t t
13369 s,@OS_SPECIFIC_CFLAGS@,$OS_SPECIFIC_CFLAGS,;t t
13370 s,@OS_SPECIFIC_LINKS@,$OS_SPECIFIC_LINKS,;t t
13371 s,@ALSA_LIBS@,$ALSA_LIBS,;t t
13372 s,@FLAC_LIBS@,$FLAC_LIBS,;t t
13373 s,@ENABLE_EXPERIMENTAL_CODE@,$ENABLE_EXPERIMENTAL_CODE,;t t
13374 s,@COMPILER_IS_GCC@,$COMPILER_IS_GCC,;t t
13375 s,@GCC_MAJOR_VERSION@,$GCC_MAJOR_VERSION,;t t
13376 s,@LIBTOOL_DEPS@,$LIBTOOL_DEPS,;t t
13377 s,@LIBOBJS@,$LIBOBJS,;t t
13378 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
13379 CEOF
13380
13381 _ACEOF
13382
13383   cat >>$CONFIG_STATUS <<\_ACEOF
13384   # Split the substitutions into bite-sized pieces for seds with
13385   # small command number limits, like on Digital OSF/1 and HP-UX.
13386   ac_max_sed_lines=48
13387   ac_sed_frag=1 # Number of current file.
13388   ac_beg=1 # First line for current file.
13389   ac_end=$ac_max_sed_lines # Line after last line for current file.
13390   ac_more_lines=:
13391   ac_sed_cmds=
13392   while $ac_more_lines; do
13393     if test $ac_beg -gt 1; then
13394       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
13395     else
13396       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
13397     fi
13398     if test ! -s $tmp/subs.frag; then
13399       ac_more_lines=false
13400     else
13401       # The purpose of the label and of the branching condition is to
13402       # speed up the sed processing (if there are no `@' at all, there
13403       # is no need to browse any of the substitutions).
13404       # These are the two extra sed commands mentioned above.
13405       (echo ':t
13406   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
13407       if test -z "$ac_sed_cmds"; then
13408         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
13409       else
13410         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
13411       fi
13412       ac_sed_frag=`expr $ac_sed_frag + 1`
13413       ac_beg=$ac_end
13414       ac_end=`expr $ac_end + $ac_max_sed_lines`
13415     fi
13416   done
13417   if test -z "$ac_sed_cmds"; then
13418     ac_sed_cmds=cat
13419   fi
13420 fi # test -n "$CONFIG_FILES"
13421
13422 _ACEOF
13423 cat >>$CONFIG_STATUS <<\_ACEOF
13424 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
13425   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
13426   case $ac_file in
13427   - | *:- | *:-:* ) # input from stdin
13428         cat >$tmp/stdin
13429         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13430         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13431   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13432         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13433   * )   ac_file_in=$ac_file.in ;;
13434   esac
13435
13436   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
13437   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
13438 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13439          X"$ac_file" : 'X\(//\)[^/]' \| \
13440          X"$ac_file" : 'X\(//\)$' \| \
13441          X"$ac_file" : 'X\(/\)' \| \
13442          .     : '\(.\)' 2>/dev/null ||
13443 echo X"$ac_file" |
13444     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13445           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13446           /^X\(\/\/\)$/{ s//\1/; q; }
13447           /^X\(\/\).*/{ s//\1/; q; }
13448           s/.*/./; q'`
13449   { if $as_mkdir_p; then
13450     mkdir -p "$ac_dir"
13451   else
13452     as_dir="$ac_dir"
13453     as_dirs=
13454     while test ! -d "$as_dir"; do
13455       as_dirs="$as_dir $as_dirs"
13456       as_dir=`(dirname "$as_dir") 2>/dev/null ||
13457 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13458          X"$as_dir" : 'X\(//\)[^/]' \| \
13459          X"$as_dir" : 'X\(//\)$' \| \
13460          X"$as_dir" : 'X\(/\)' \| \
13461          .     : '\(.\)' 2>/dev/null ||
13462 echo X"$as_dir" |
13463     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13464           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13465           /^X\(\/\/\)$/{ s//\1/; q; }
13466           /^X\(\/\).*/{ s//\1/; q; }
13467           s/.*/./; q'`
13468     done
13469     test ! -n "$as_dirs" || mkdir $as_dirs
13470   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
13471 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
13472    { (exit 1); exit 1; }; }; }
13473
13474   ac_builddir=.
13475
13476 if test "$ac_dir" != .; then
13477   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
13478   # A "../" for each directory in $ac_dir_suffix.
13479   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
13480 else
13481   ac_dir_suffix= ac_top_builddir=
13482 fi
13483
13484 case $srcdir in
13485   .)  # No --srcdir option.  We are building in place.
13486     ac_srcdir=.
13487     if test -z "$ac_top_builddir"; then
13488        ac_top_srcdir=.
13489     else
13490        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
13491     fi ;;
13492   [\\/]* | ?:[\\/]* )  # Absolute path.
13493     ac_srcdir=$srcdir$ac_dir_suffix;
13494     ac_top_srcdir=$srcdir ;;
13495   *) # Relative path.
13496     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
13497     ac_top_srcdir=$ac_top_builddir$srcdir ;;
13498 esac
13499
13500 # Do not use `cd foo && pwd` to compute absolute paths, because
13501 # the directories may not exist.
13502 case `pwd` in
13503 .) ac_abs_builddir="$ac_dir";;
13504 *)
13505   case "$ac_dir" in
13506   .) ac_abs_builddir=`pwd`;;
13507   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
13508   *) ac_abs_builddir=`pwd`/"$ac_dir";;
13509   esac;;
13510 esac
13511 case $ac_abs_builddir in
13512 .) ac_abs_top_builddir=${ac_top_builddir}.;;
13513 *)
13514   case ${ac_top_builddir}. in
13515   .) ac_abs_top_builddir=$ac_abs_builddir;;
13516   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
13517   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
13518   esac;;
13519 esac
13520 case $ac_abs_builddir in
13521 .) ac_abs_srcdir=$ac_srcdir;;
13522 *)
13523   case $ac_srcdir in
13524   .) ac_abs_srcdir=$ac_abs_builddir;;
13525   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
13526   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
13527   esac;;
13528 esac
13529 case $ac_abs_builddir in
13530 .) ac_abs_top_srcdir=$ac_top_srcdir;;
13531 *)
13532   case $ac_top_srcdir in
13533   .) ac_abs_top_srcdir=$ac_abs_builddir;;
13534   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
13535   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
13536   esac;;
13537 esac
13538
13539
13540   case $INSTALL in
13541   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13542   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
13543   esac
13544
13545   if test x"$ac_file" != x-; then
13546     { echo "$as_me:$LINENO: creating $ac_file" >&5
13547 echo "$as_me: creating $ac_file" >&6;}
13548     rm -f "$ac_file"
13549   fi
13550   # Let's still pretend it is `configure' which instantiates (i.e., don't
13551   # use $as_me), people would be surprised to read:
13552   #    /* config.h.  Generated by config.status.  */
13553   if test x"$ac_file" = x-; then
13554     configure_input=
13555   else
13556     configure_input="$ac_file.  "
13557   fi
13558   configure_input=$configure_input"Generated from `echo $ac_file_in |
13559                                      sed 's,.*/,,'` by configure."
13560
13561   # First look for the input files in the build tree, otherwise in the
13562   # src tree.
13563   ac_file_inputs=`IFS=:
13564     for f in $ac_file_in; do
13565       case $f in
13566       -) echo $tmp/stdin ;;
13567       [\\/$]*)
13568          # Absolute (can't be DOS-style, as IFS=:)
13569          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13570 echo "$as_me: error: cannot find input file: $f" >&2;}
13571    { (exit 1); exit 1; }; }
13572          echo "$f";;
13573       *) # Relative
13574          if test -f "$f"; then
13575            # Build tree
13576            echo "$f"
13577          elif test -f "$srcdir/$f"; then
13578            # Source tree
13579            echo "$srcdir/$f"
13580          else
13581            # /dev/null tree
13582            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13583 echo "$as_me: error: cannot find input file: $f" >&2;}
13584    { (exit 1); exit 1; }; }
13585          fi;;
13586       esac
13587     done` || { (exit 1); exit 1; }
13588 _ACEOF
13589 cat >>$CONFIG_STATUS <<_ACEOF
13590   sed "$ac_vpsub
13591 $extrasub
13592 _ACEOF
13593 cat >>$CONFIG_STATUS <<\_ACEOF
13594 :t
13595 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13596 s,@configure_input@,$configure_input,;t t
13597 s,@srcdir@,$ac_srcdir,;t t
13598 s,@abs_srcdir@,$ac_abs_srcdir,;t t
13599 s,@top_srcdir@,$ac_top_srcdir,;t t
13600 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
13601 s,@builddir@,$ac_builddir,;t t
13602 s,@abs_builddir@,$ac_abs_builddir,;t t
13603 s,@top_builddir@,$ac_top_builddir,;t t
13604 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
13605 s,@INSTALL@,$ac_INSTALL,;t t
13606 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
13607   rm -f $tmp/stdin
13608   if test x"$ac_file" != x-; then
13609     mv $tmp/out $ac_file
13610   else
13611     cat $tmp/out
13612     rm -f $tmp/out
13613   fi
13614
13615 done
13616 _ACEOF
13617 cat >>$CONFIG_STATUS <<\_ACEOF
13618
13619 #
13620 # CONFIG_HEADER section.
13621 #
13622
13623 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
13624 # NAME is the cpp macro being defined and VALUE is the value it is being given.
13625 #
13626 # ac_d sets the value in "#define NAME VALUE" lines.
13627 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
13628 ac_dB='[         ].*$,\1#\2'
13629 ac_dC=' '
13630 ac_dD=',;t'
13631 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
13632 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
13633 ac_uB='$,\1#\2define\3'
13634 ac_uC=' '
13635 ac_uD=',;t'
13636
13637 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
13638   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
13639   case $ac_file in
13640   - | *:- | *:-:* ) # input from stdin
13641         cat >$tmp/stdin
13642         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13643         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13644   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13645         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13646   * )   ac_file_in=$ac_file.in ;;
13647   esac
13648
13649   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
13650 echo "$as_me: creating $ac_file" >&6;}
13651
13652   # First look for the input files in the build tree, otherwise in the
13653   # src tree.
13654   ac_file_inputs=`IFS=:
13655     for f in $ac_file_in; do
13656       case $f in
13657       -) echo $tmp/stdin ;;
13658       [\\/$]*)
13659          # Absolute (can't be DOS-style, as IFS=:)
13660          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13661 echo "$as_me: error: cannot find input file: $f" >&2;}
13662    { (exit 1); exit 1; }; }
13663          # Do quote $f, to prevent DOS paths from being IFS'd.
13664          echo "$f";;
13665       *) # Relative
13666          if test -f "$f"; then
13667            # Build tree
13668            echo "$f"
13669          elif test -f "$srcdir/$f"; then
13670            # Source tree
13671            echo "$srcdir/$f"
13672          else
13673            # /dev/null tree
13674            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13675 echo "$as_me: error: cannot find input file: $f" >&2;}
13676    { (exit 1); exit 1; }; }
13677          fi;;
13678       esac
13679     done` || { (exit 1); exit 1; }
13680   # Remove the trailing spaces.
13681   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
13682
13683 _ACEOF
13684
13685 # Transform confdefs.h into two sed scripts, `conftest.defines' and
13686 # `conftest.undefs', that substitutes the proper values into
13687 # config.h.in to produce config.h.  The first handles `#define'
13688 # templates, and the second `#undef' templates.
13689 # And first: Protect against being on the right side of a sed subst in
13690 # config.status.  Protect against being in an unquoted here document
13691 # in config.status.
13692 rm -f conftest.defines conftest.undefs
13693 # Using a here document instead of a string reduces the quoting nightmare.
13694 # Putting comments in sed scripts is not portable.
13695 #
13696 # `end' is used to avoid that the second main sed command (meant for
13697 # 0-ary CPP macros) applies to n-ary macro definitions.
13698 # See the Autoconf documentation for `clear'.
13699 cat >confdef2sed.sed <<\_ACEOF
13700 s/[\\&,]/\\&/g
13701 s,[\\$`],\\&,g
13702 t clear
13703 : clear
13704 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
13705 t end
13706 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
13707 : end
13708 _ACEOF
13709 # If some macros were called several times there might be several times
13710 # the same #defines, which is useless.  Nevertheless, we may not want to
13711 # sort them, since we want the *last* AC-DEFINE to be honored.
13712 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
13713 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
13714 rm -f confdef2sed.sed
13715
13716 # This sed command replaces #undef with comments.  This is necessary, for
13717 # example, in the case of _POSIX_SOURCE, which is predefined and required
13718 # on some systems where configure will not decide to define it.
13719 cat >>conftest.undefs <<\_ACEOF
13720 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
13721 _ACEOF
13722
13723 # Break up conftest.defines because some shells have a limit on the size
13724 # of here documents, and old seds have small limits too (100 cmds).
13725 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
13726 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
13727 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
13728 echo '  :' >>$CONFIG_STATUS
13729 rm -f conftest.tail
13730 while grep . conftest.defines >/dev/null
13731 do
13732   # Write a limited-size here document to $tmp/defines.sed.
13733   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
13734   # Speed up: don't consider the non `#define' lines.
13735   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
13736   # Work around the forget-to-reset-the-flag bug.
13737   echo 't clr' >>$CONFIG_STATUS
13738   echo ': clr' >>$CONFIG_STATUS
13739   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
13740   echo 'CEOF
13741   sed -f $tmp/defines.sed $tmp/in >$tmp/out
13742   rm -f $tmp/in
13743   mv $tmp/out $tmp/in
13744 ' >>$CONFIG_STATUS
13745   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
13746   rm -f conftest.defines
13747   mv conftest.tail conftest.defines
13748 done
13749 rm -f conftest.defines
13750 echo '  fi # grep' >>$CONFIG_STATUS
13751 echo >>$CONFIG_STATUS
13752
13753 # Break up conftest.undefs because some shells have a limit on the size
13754 # of here documents, and old seds have small limits too (100 cmds).
13755 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
13756 rm -f conftest.tail
13757 while grep . conftest.undefs >/dev/null
13758 do
13759   # Write a limited-size here document to $tmp/undefs.sed.
13760   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
13761   # Speed up: don't consider the non `#undef'
13762   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
13763   # Work around the forget-to-reset-the-flag bug.
13764   echo 't clr' >>$CONFIG_STATUS
13765   echo ': clr' >>$CONFIG_STATUS
13766   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
13767   echo 'CEOF
13768   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
13769   rm -f $tmp/in
13770   mv $tmp/out $tmp/in
13771 ' >>$CONFIG_STATUS
13772   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
13773   rm -f conftest.undefs
13774   mv conftest.tail conftest.undefs
13775 done
13776 rm -f conftest.undefs
13777
13778 cat >>$CONFIG_STATUS <<\_ACEOF
13779   # Let's still pretend it is `configure' which instantiates (i.e., don't
13780   # use $as_me), people would be surprised to read:
13781   #    /* config.h.  Generated by config.status.  */
13782   if test x"$ac_file" = x-; then
13783     echo "/* Generated by configure.  */" >$tmp/config.h
13784   else
13785     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
13786   fi
13787   cat $tmp/in >>$tmp/config.h
13788   rm -f $tmp/in
13789   if test x"$ac_file" != x-; then
13790     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
13791       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
13792 echo "$as_me: $ac_file is unchanged" >&6;}
13793     else
13794       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
13795 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13796          X"$ac_file" : 'X\(//\)[^/]' \| \
13797          X"$ac_file" : 'X\(//\)$' \| \
13798          X"$ac_file" : 'X\(/\)' \| \
13799          .     : '\(.\)' 2>/dev/null ||
13800 echo X"$ac_file" |
13801     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13802           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13803           /^X\(\/\/\)$/{ s//\1/; q; }
13804           /^X\(\/\).*/{ s//\1/; q; }
13805           s/.*/./; q'`
13806       { if $as_mkdir_p; then
13807     mkdir -p "$ac_dir"
13808   else
13809     as_dir="$ac_dir"
13810     as_dirs=
13811     while test ! -d "$as_dir"; do
13812       as_dirs="$as_dir $as_dirs"
13813       as_dir=`(dirname "$as_dir") 2>/dev/null ||
13814 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13815          X"$as_dir" : 'X\(//\)[^/]' \| \
13816          X"$as_dir" : 'X\(//\)$' \| \
13817          X"$as_dir" : 'X\(/\)' \| \
13818          .     : '\(.\)' 2>/dev/null ||
13819 echo X"$as_dir" |
13820     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13821           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13822           /^X\(\/\/\)$/{ s//\1/; q; }
13823           /^X\(\/\).*/{ s//\1/; q; }
13824           s/.*/./; q'`
13825     done
13826     test ! -n "$as_dirs" || mkdir $as_dirs
13827   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
13828 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
13829    { (exit 1); exit 1; }; }; }
13830
13831       rm -f $ac_file
13832       mv $tmp/config.h $ac_file
13833     fi
13834   else
13835     cat $tmp/config.h
13836     rm -f $tmp/config.h
13837   fi
13838 done
13839 _ACEOF
13840
13841 cat >>$CONFIG_STATUS <<\_ACEOF
13842
13843 { (exit 0); exit 0; }
13844 _ACEOF
13845 chmod +x $CONFIG_STATUS
13846 ac_clean_files=$ac_clean_files_save
13847
13848
13849 # configure is writing to config.log, and then calls config.status.
13850 # config.status does its own redirection, appending to config.log.
13851 # Unfortunately, on DOS this fails, as config.log is still kept open
13852 # by configure, so config.status won't be able to write to it; its
13853 # output is simply discarded.  So we exec the FD to /dev/null,
13854 # effectively closing config.log, so it can be properly (re)opened and
13855 # appended to by config.status.  When coming back to configure, we
13856 # need to make the FD available again.
13857 if test "$no_create" != yes; then
13858   ac_cs_success=:
13859   ac_config_status_args=
13860   test "$silent" = yes &&
13861     ac_config_status_args="$ac_config_status_args --quiet"
13862   exec 5>/dev/null
13863   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13864   exec 5>>config.log
13865   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13866   # would make configure fail if this is the last instruction.
13867   $ac_cs_success || { (exit 1); exit 1; }
13868 fi
13869
13870
13871 #====================================================================================
13872
13873 echo "$as_me:$LINENO: result:
13874 -=-=-=-=-=-=-=-=-=-= Configuration Complete =-=-=-=-=-=-=-=-=-=-
13875
13876   Configuration summary :
13877
13878     Version : ..................... ${VERSION}
13879     Experimental code : ........... ${enable_experimental:-no}
13880 " >&5
13881 echo "${ECHO_T}
13882 -=-=-=-=-=-=-=-=-=-= Configuration Complete =-=-=-=-=-=-=-=-=-=-
13883
13884   Configuration summary :
13885
13886     Version : ..................... ${VERSION}
13887     Experimental code : ........... ${enable_experimental:-no}
13888 " >&6
13889
13890 if test x$ac_cv_c_compiler_gnu = xyes ; then
13891         echo -e "  Tools :\n"
13892         echo "    Compiler is GCC : ............. ${ac_cv_c_compiler_gnu}"
13893         echo "    GCC major version : ........... ${GCC_MAJOR_VERSION}"
13894         if test $GCC_MAJOR_VERSION -lt 3 ; then
13895                 echo -e "\n    ** This compiler version allows applications to write"
13896                 echo "    ** to static strings within the library."
13897                 echo "    ** Compile with GCC version 3.X to avoid this problem."
13898                 fi
13899         fi
13900
13901 if test $libdir = "\${exec_prefix}/lib" ; then
13902         libdir="$prefix/lib"
13903         fi
13904
13905 if test $bindir = "\${exec_prefix}/bin" ; then
13906         bindir="$prefix/bin"
13907         fi
13908
13909 echo "$as_me:$LINENO: result:
13910   Installation directories :
13911
13912     Library directory : ........... $libdir
13913     Program directory : ........... $bindir
13914     Pkgconfig directory : ......... $libdir/pkgconfig
13915     HTML docs directory : ......... $htmldocdir
13916 " >&5
13917 echo "${ECHO_T}
13918   Installation directories :
13919
13920     Library directory : ........... $libdir
13921     Program directory : ........... $bindir
13922     Pkgconfig directory : ......... $libdir/pkgconfig
13923     HTML docs directory : ......... $htmldocdir
13924 " >&6
13925
13926 if test x$prefix != "x/usr" ; then
13927         echo "Compiling some other packages against libsndfile may require"
13928         echo -e "the addition of \"$libdir/pkgconfig\" to the"
13929         echo -e "PKG_CONFIG_PATH environment variable.\n"
13930         fi
13931
13932 #====================================================================================
13933