VirtualBox

source: vbox/trunk/src/libs/liblzf-1.51/configure@ 3317

Last change on this file since 3317 was 1, checked in by vboxsync, 55 years ago

import

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

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette