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