source: Sophya/trunk/ArchTOIPipe/configure@ 2337

Last change on this file since 2337 was 2328, checked in by aubourg, 23 years ago

pour piolib

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