]> gcc.gnu.org Git - gcc.git/blame - libgfortran/configure
io.h, [...]: Fix formatting issues, update copyright years.
[gcc.git] / libgfortran / configure
CommitLineData
6de9cd9a
DN
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.59 for GNU Fortran Runtime Library 0.2.
4#
5# Copyright (C) 2003 Free Software Foundation, Inc.
6# This configure script is free software; the Free Software Foundation
7# gives unlimited permission to copy, distribute and modify it.
8## --------------------- ##
9## M4sh Initialization. ##
10## --------------------- ##
11
12# Be Bourne compatible
13if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14 emulate sh
15 NULLCMD=:
16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17 # is contrary to our usage. Disable this feature.
18 alias -g '${1+"$@"}'='"$@"'
19elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20 set -o posix
21fi
22DUALCASE=1; export DUALCASE # for MKS sh
23
24# Support unset when possible.
25if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26 as_unset=unset
27else
28 as_unset=false
29fi
30
31
32# Work around bugs in pre-3.0 UWIN ksh.
33$as_unset ENV MAIL MAILPATH
34PS1='$ '
35PS2='> '
36PS4='+ '
37
38# NLS nuisances.
39for as_var in \
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42 LC_TELEPHONE LC_TIME
43do
44 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C; export $as_var
46 else
47 $as_unset $as_var
48 fi
49done
50
51# Required to use basename.
52if expr a : '\(a\)' >/dev/null 2>&1; then
53 as_expr=expr
54else
55 as_expr=false
56fi
57
58if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59 as_basename=basename
60else
61 as_basename=false
62fi
63
64
65# Name of the executable.
66as_me=`$as_basename "$0" ||
67$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
71echo X/"$0" |
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
75 s/.*/./; q'`
76
77
78# PATH needs CR, and LINENO needs CR and PATH.
79# Avoid depending upon Character Ranges.
80as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83as_cr_digits='0123456789'
84as_cr_alnum=$as_cr_Letters$as_cr_digits
85
86# The user is always right.
87if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
90 chmod +x conf$$.sh
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92 PATH_SEPARATOR=';'
93 else
94 PATH_SEPARATOR=:
95 fi
96 rm -f conf$$.sh
97fi
98
99
100 as_lineno_1=$LINENO
101 as_lineno_2=$LINENO
102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" || {
105 # Find who we are. Look in the path if we contain no path at all
106 # relative or not.
107 case $0 in
108 *[\\/]* ) as_myself=$0 ;;
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110for as_dir in $PATH
111do
112 IFS=$as_save_IFS
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115done
116
117 ;;
118 esac
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x; then
122 as_myself=$0
123 fi
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
127 fi
128 case $CONFIG_SHELL in
129 '')
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132do
133 IFS=$as_save_IFS
134 test -z "$as_dir" && as_dir=.
135 for as_base in sh bash ksh sh5; do
136 case $as_dir in
137 /*)
138 if ("$as_dir/$as_base" -c '
139 as_lineno_1=$LINENO
140 as_lineno_2=$LINENO
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146 CONFIG_SHELL=$as_dir/$as_base
147 export CONFIG_SHELL
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149 fi;;
150 esac
151 done
152done
153;;
154 esac
155
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
165 sed '
166 N
167 s,$,-,
168 : loop
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170 t loop
171 s,-$,,
172 s,^['$as_cr_digits']*\n,,
173 ' >$as_me.lineno &&
174 chmod +x $as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
177
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
181 . ./$as_me.lineno
182 # Exit status is that of the last command.
183 exit
184}
185
186
187case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c*,-n*) ECHO_N= ECHO_C='
189' ECHO_T=' ' ;;
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
192esac
193
194if expr a : '\(a\)' >/dev/null 2>&1; then
195 as_expr=expr
196else
197 as_expr=false
198fi
199
200rm -f conf$$ conf$$.exe conf$$.file
201echo >conf$$.file
202if ln -s conf$$.file conf$$ 2>/dev/null; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe; then
206 # Don't use ln at all; we don't have any links
207 as_ln_s='cp -p'
208 else
209 as_ln_s='ln -s'
210 fi
211elif ln conf$$.file conf$$ 2>/dev/null; then
212 as_ln_s=ln
213else
214 as_ln_s='cp -p'
215fi
216rm -f conf$$ conf$$.exe conf$$.file
217
218if mkdir -p . 2>/dev/null; then
219 as_mkdir_p=:
220else
221 test -d ./-p && rmdir ./-p
222 as_mkdir_p=false
223fi
224
225as_executable_p="test -f"
226
227# Sed expression to map a string onto a valid CPP name.
228as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
229
230# Sed expression to map a string onto a valid variable name.
231as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
232
233
234# IFS
235# We need space, tab and new line, in precisely that order.
236as_nl='
237'
238IFS=" $as_nl"
239
240# CDPATH.
241$as_unset CDPATH
242
243
244# Name of the host.
245# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246# so uname gets run too.
247ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
248
249exec 6>&1
250
251#
252# Initializations.
253#
254ac_default_prefix=/usr/local
255ac_config_libobj_dir=.
256cross_compiling=no
257subdirs=
258MFLAGS=
259MAKEFLAGS=
260SHELL=${CONFIG_SHELL-/bin/sh}
261
262# Maximum number of lines to put in a shell here document.
263# This variable seems obsolete. It should probably be removed, and
264# only ac_max_sed_lines should be used.
265: ${ac_max_here_lines=38}
266
267# Identity of this package.
268PACKAGE_NAME='GNU Fortran Runtime Library'
269PACKAGE_TARNAME='libgfortran'
270PACKAGE_VERSION='0.2'
271PACKAGE_STRING='GNU Fortran Runtime Library 0.2'
272PACKAGE_BUGREPORT=''
273
274# Factoring default headers for most tests.
275ac_includes_default="\
276#include <stdio.h>
277#if HAVE_SYS_TYPES_H
278# include <sys/types.h>
279#endif
280#if HAVE_SYS_STAT_H
281# include <sys/stat.h>
282#endif
283#if STDC_HEADERS
284# include <stdlib.h>
285# include <stddef.h>
286#else
287# if HAVE_STDLIB_H
288# include <stdlib.h>
289# endif
290#endif
291#if HAVE_STRING_H
292# if !STDC_HEADERS && HAVE_MEMORY_H
293# include <memory.h>
294# endif
295# include <string.h>
296#endif
297#if HAVE_STRINGS_H
298# include <strings.h>
299#endif
300#if HAVE_INTTYPES_H
301# include <inttypes.h>
302#else
303# if HAVE_STDINT_H
304# include <stdint.h>
305# endif
306#endif
307#if HAVE_UNISTD_H
308# include <unistd.h>
309#endif"
310
1657a809 311ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT multi_basedir gcc_version toolexecdir toolexeclibdir CC ac_ct_CC EXEEXT OBJEXT CFLAGS AS ac_ct_AS AR ac_ct_AR RANLIB ac_ct_RANLIB LN_S LIBTOOL enable_shared enable_static F77 FFLAGS LDFLAGS ac_ct_F77 CPP CPPFLAGS EGREP MATH_OBJ LIBOBJS LTLIBOBJS'
6de9cd9a
DN
312ac_subst_files=''
313
314# Initialize some variables set by options.
315ac_init_help=
316ac_init_version=false
317# The variables have the same names as the options, with
318# dashes changed to underlines.
319cache_file=/dev/null
320exec_prefix=NONE
321no_create=
322no_recursion=
323prefix=NONE
324program_prefix=NONE
325program_suffix=NONE
326program_transform_name=s,x,x,
327silent=
328site=
329srcdir=
330verbose=
331x_includes=NONE
332x_libraries=NONE
333
334# Installation directory options.
335# These are left unexpanded so users can "make install exec_prefix=/foo"
336# and all the variables that are supposed to be based on exec_prefix
337# by default will actually change.
338# Use braces instead of parens because sh, perl, etc. also accept them.
339bindir='${exec_prefix}/bin'
340sbindir='${exec_prefix}/sbin'
341libexecdir='${exec_prefix}/libexec'
342datadir='${prefix}/share'
343sysconfdir='${prefix}/etc'
344sharedstatedir='${prefix}/com'
345localstatedir='${prefix}/var'
346libdir='${exec_prefix}/lib'
347includedir='${prefix}/include'
348oldincludedir='/usr/include'
349infodir='${prefix}/info'
350mandir='${prefix}/man'
351
352ac_prev=
353for ac_option
354do
355 # If the previous option needs an argument, assign it.
356 if test -n "$ac_prev"; then
357 eval "$ac_prev=\$ac_option"
358 ac_prev=
359 continue
360 fi
361
362 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
363
364 # Accept the important Cygnus configure options, so we can diagnose typos.
365
366 case $ac_option in
367
368 -bindir | --bindir | --bindi | --bind | --bin | --bi)
369 ac_prev=bindir ;;
370 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
371 bindir=$ac_optarg ;;
372
373 -build | --build | --buil | --bui | --bu)
374 ac_prev=build_alias ;;
375 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
376 build_alias=$ac_optarg ;;
377
378 -cache-file | --cache-file | --cache-fil | --cache-fi \
379 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
380 ac_prev=cache_file ;;
381 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
382 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
383 cache_file=$ac_optarg ;;
384
385 --config-cache | -C)
386 cache_file=config.cache ;;
387
388 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
389 ac_prev=datadir ;;
390 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
391 | --da=*)
392 datadir=$ac_optarg ;;
393
394 -disable-* | --disable-*)
395 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
396 # Reject names that are not valid shell variable names.
397 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
398 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
399 { (exit 1); exit 1; }; }
400 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
401 eval "enable_$ac_feature=no" ;;
402
403 -enable-* | --enable-*)
404 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
405 # Reject names that are not valid shell variable names.
406 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
407 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
408 { (exit 1); exit 1; }; }
409 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
410 case $ac_option in
411 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
412 *) ac_optarg=yes ;;
413 esac
414 eval "enable_$ac_feature='$ac_optarg'" ;;
415
416 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
417 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
418 | --exec | --exe | --ex)
419 ac_prev=exec_prefix ;;
420 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
421 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
422 | --exec=* | --exe=* | --ex=*)
423 exec_prefix=$ac_optarg ;;
424
425 -gas | --gas | --ga | --g)
426 # Obsolete; use --with-gas.
427 with_gas=yes ;;
428
429 -help | --help | --hel | --he | -h)
430 ac_init_help=long ;;
431 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
432 ac_init_help=recursive ;;
433 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
434 ac_init_help=short ;;
435
436 -host | --host | --hos | --ho)
437 ac_prev=host_alias ;;
438 -host=* | --host=* | --hos=* | --ho=*)
439 host_alias=$ac_optarg ;;
440
441 -includedir | --includedir | --includedi | --included | --include \
442 | --includ | --inclu | --incl | --inc)
443 ac_prev=includedir ;;
444 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
445 | --includ=* | --inclu=* | --incl=* | --inc=*)
446 includedir=$ac_optarg ;;
447
448 -infodir | --infodir | --infodi | --infod | --info | --inf)
449 ac_prev=infodir ;;
450 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
451 infodir=$ac_optarg ;;
452
453 -libdir | --libdir | --libdi | --libd)
454 ac_prev=libdir ;;
455 -libdir=* | --libdir=* | --libdi=* | --libd=*)
456 libdir=$ac_optarg ;;
457
458 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
459 | --libexe | --libex | --libe)
460 ac_prev=libexecdir ;;
461 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
462 | --libexe=* | --libex=* | --libe=*)
463 libexecdir=$ac_optarg ;;
464
465 -localstatedir | --localstatedir | --localstatedi | --localstated \
466 | --localstate | --localstat | --localsta | --localst \
467 | --locals | --local | --loca | --loc | --lo)
468 ac_prev=localstatedir ;;
469 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
470 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
471 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
472 localstatedir=$ac_optarg ;;
473
474 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
475 ac_prev=mandir ;;
476 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
477 mandir=$ac_optarg ;;
478
479 -nfp | --nfp | --nf)
480 # Obsolete; use --without-fp.
481 with_fp=no ;;
482
483 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
484 | --no-cr | --no-c | -n)
485 no_create=yes ;;
486
487 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
488 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
489 no_recursion=yes ;;
490
491 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
492 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
493 | --oldin | --oldi | --old | --ol | --o)
494 ac_prev=oldincludedir ;;
495 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
496 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
497 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
498 oldincludedir=$ac_optarg ;;
499
500 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
501 ac_prev=prefix ;;
502 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
503 prefix=$ac_optarg ;;
504
505 -program-prefix | --program-prefix | --program-prefi | --program-pref \
506 | --program-pre | --program-pr | --program-p)
507 ac_prev=program_prefix ;;
508 -program-prefix=* | --program-prefix=* | --program-prefi=* \
509 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
510 program_prefix=$ac_optarg ;;
511
512 -program-suffix | --program-suffix | --program-suffi | --program-suff \
513 | --program-suf | --program-su | --program-s)
514 ac_prev=program_suffix ;;
515 -program-suffix=* | --program-suffix=* | --program-suffi=* \
516 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
517 program_suffix=$ac_optarg ;;
518
519 -program-transform-name | --program-transform-name \
520 | --program-transform-nam | --program-transform-na \
521 | --program-transform-n | --program-transform- \
522 | --program-transform | --program-transfor \
523 | --program-transfo | --program-transf \
524 | --program-trans | --program-tran \
525 | --progr-tra | --program-tr | --program-t)
526 ac_prev=program_transform_name ;;
527 -program-transform-name=* | --program-transform-name=* \
528 | --program-transform-nam=* | --program-transform-na=* \
529 | --program-transform-n=* | --program-transform-=* \
530 | --program-transform=* | --program-transfor=* \
531 | --program-transfo=* | --program-transf=* \
532 | --program-trans=* | --program-tran=* \
533 | --progr-tra=* | --program-tr=* | --program-t=*)
534 program_transform_name=$ac_optarg ;;
535
536 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
537 | -silent | --silent | --silen | --sile | --sil)
538 silent=yes ;;
539
540 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
541 ac_prev=sbindir ;;
542 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
543 | --sbi=* | --sb=*)
544 sbindir=$ac_optarg ;;
545
546 -sharedstatedir | --sharedstatedir | --sharedstatedi \
547 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
548 | --sharedst | --shareds | --shared | --share | --shar \
549 | --sha | --sh)
550 ac_prev=sharedstatedir ;;
551 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
552 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
553 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
554 | --sha=* | --sh=*)
555 sharedstatedir=$ac_optarg ;;
556
557 -site | --site | --sit)
558 ac_prev=site ;;
559 -site=* | --site=* | --sit=*)
560 site=$ac_optarg ;;
561
562 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
563 ac_prev=srcdir ;;
564 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
565 srcdir=$ac_optarg ;;
566
567 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
568 | --syscon | --sysco | --sysc | --sys | --sy)
569 ac_prev=sysconfdir ;;
570 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
571 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
572 sysconfdir=$ac_optarg ;;
573
574 -target | --target | --targe | --targ | --tar | --ta | --t)
575 ac_prev=target_alias ;;
576 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
577 target_alias=$ac_optarg ;;
578
579 -v | -verbose | --verbose | --verbos | --verbo | --verb)
580 verbose=yes ;;
581
582 -version | --version | --versio | --versi | --vers | -V)
583 ac_init_version=: ;;
584
585 -with-* | --with-*)
586 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
587 # Reject names that are not valid shell variable names.
588 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
589 { echo "$as_me: error: invalid package name: $ac_package" >&2
590 { (exit 1); exit 1; }; }
591 ac_package=`echo $ac_package| sed 's/-/_/g'`
592 case $ac_option in
593 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
594 *) ac_optarg=yes ;;
595 esac
596 eval "with_$ac_package='$ac_optarg'" ;;
597
598 -without-* | --without-*)
599 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
600 # Reject names that are not valid shell variable names.
601 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
602 { echo "$as_me: error: invalid package name: $ac_package" >&2
603 { (exit 1); exit 1; }; }
604 ac_package=`echo $ac_package | sed 's/-/_/g'`
605 eval "with_$ac_package=no" ;;
606
607 --x)
608 # Obsolete; use --with-x.
609 with_x=yes ;;
610
611 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
612 | --x-incl | --x-inc | --x-in | --x-i)
613 ac_prev=x_includes ;;
614 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
615 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
616 x_includes=$ac_optarg ;;
617
618 -x-libraries | --x-libraries | --x-librarie | --x-librari \
619 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
620 ac_prev=x_libraries ;;
621 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
622 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
623 x_libraries=$ac_optarg ;;
624
625 -*) { echo "$as_me: error: unrecognized option: $ac_option
626Try \`$0 --help' for more information." >&2
627 { (exit 1); exit 1; }; }
628 ;;
629
630 *=*)
631 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
632 # Reject names that are not valid shell variable names.
633 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
634 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
635 { (exit 1); exit 1; }; }
636 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
637 eval "$ac_envvar='$ac_optarg'"
638 export $ac_envvar ;;
639
640 *)
641 # FIXME: should be removed in autoconf 3.0.
642 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
643 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
644 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
645 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
646 ;;
647
648 esac
649done
650
651if test -n "$ac_prev"; then
652 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
653 { echo "$as_me: error: missing argument to $ac_option" >&2
654 { (exit 1); exit 1; }; }
655fi
656
657# Be sure to have absolute paths.
658for ac_var in exec_prefix prefix
659do
660 eval ac_val=$`echo $ac_var`
661 case $ac_val in
662 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
663 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
664 { (exit 1); exit 1; }; };;
665 esac
666done
667
668# Be sure to have absolute paths.
669for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
670 localstatedir libdir includedir oldincludedir infodir mandir
671do
672 eval ac_val=$`echo $ac_var`
673 case $ac_val in
674 [\\/$]* | ?:[\\/]* ) ;;
675 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
676 { (exit 1); exit 1; }; };;
677 esac
678done
679
680# There might be people who depend on the old broken behavior: `$host'
681# used to hold the argument of --host etc.
682# FIXME: To remove some day.
683build=$build_alias
684host=$host_alias
685target=$target_alias
686
687# FIXME: To remove some day.
688if test "x$host_alias" != x; then
689 if test "x$build_alias" = x; then
690 cross_compiling=maybe
691 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
692 If a cross compiler is detected then cross compile mode will be used." >&2
693 elif test "x$build_alias" != "x$host_alias"; then
694 cross_compiling=yes
695 fi
696fi
697
698ac_tool_prefix=
699test -n "$host_alias" && ac_tool_prefix=$host_alias-
700
701test "$silent" = yes && exec 6>/dev/null
702
703
704# Find the source files, if location was not specified.
705if test -z "$srcdir"; then
706 ac_srcdir_defaulted=yes
707 # Try the directory containing this script, then its parent.
708 ac_confdir=`(dirname "$0") 2>/dev/null ||
709$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
710 X"$0" : 'X\(//\)[^/]' \| \
711 X"$0" : 'X\(//\)$' \| \
712 X"$0" : 'X\(/\)' \| \
713 . : '\(.\)' 2>/dev/null ||
714echo X"$0" |
715 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
716 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
717 /^X\(\/\/\)$/{ s//\1/; q; }
718 /^X\(\/\).*/{ s//\1/; q; }
719 s/.*/./; q'`
720 srcdir=$ac_confdir
721 if test ! -r $srcdir/$ac_unique_file; then
722 srcdir=..
723 fi
724else
725 ac_srcdir_defaulted=no
726fi
727if test ! -r $srcdir/$ac_unique_file; then
728 if test "$ac_srcdir_defaulted" = yes; then
729 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
730 { (exit 1); exit 1; }; }
731 else
732 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
733 { (exit 1); exit 1; }; }
734 fi
735fi
736(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
737 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
738 { (exit 1); exit 1; }; }
739srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
740ac_env_build_alias_set=${build_alias+set}
741ac_env_build_alias_value=$build_alias
742ac_cv_env_build_alias_set=${build_alias+set}
743ac_cv_env_build_alias_value=$build_alias
744ac_env_host_alias_set=${host_alias+set}
745ac_env_host_alias_value=$host_alias
746ac_cv_env_host_alias_set=${host_alias+set}
747ac_cv_env_host_alias_value=$host_alias
748ac_env_target_alias_set=${target_alias+set}
749ac_env_target_alias_value=$target_alias
750ac_cv_env_target_alias_set=${target_alias+set}
751ac_cv_env_target_alias_value=$target_alias
6de9cd9a
DN
752ac_env_F77_set=${F77+set}
753ac_env_F77_value=$F77
754ac_cv_env_F77_set=${F77+set}
755ac_cv_env_F77_value=$F77
756ac_env_FFLAGS_set=${FFLAGS+set}
757ac_env_FFLAGS_value=$FFLAGS
758ac_cv_env_FFLAGS_set=${FFLAGS+set}
759ac_cv_env_FFLAGS_value=$FFLAGS
96b8a615
AJ
760ac_env_LDFLAGS_set=${LDFLAGS+set}
761ac_env_LDFLAGS_value=$LDFLAGS
762ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
763ac_cv_env_LDFLAGS_value=$LDFLAGS
6de9cd9a
DN
764ac_env_CPP_set=${CPP+set}
765ac_env_CPP_value=$CPP
766ac_cv_env_CPP_set=${CPP+set}
767ac_cv_env_CPP_value=$CPP
96b8a615
AJ
768ac_env_CPPFLAGS_set=${CPPFLAGS+set}
769ac_env_CPPFLAGS_value=$CPPFLAGS
770ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
771ac_cv_env_CPPFLAGS_value=$CPPFLAGS
6de9cd9a
DN
772
773#
774# Report the --help message.
775#
776if test "$ac_init_help" = "long"; then
777 # Omit some internal or obsolete options to make the list less imposing.
778 # This message is too long to be a string in the A/UX 3.1 sh.
779 cat <<_ACEOF
780\`configure' configures GNU Fortran Runtime Library 0.2 to adapt to many kinds of systems.
781
782Usage: $0 [OPTION]... [VAR=VALUE]...
783
784To assign environment variables (e.g., CC, CFLAGS...), specify them as
785VAR=VALUE. See below for descriptions of some of the useful variables.
786
787Defaults for the options are specified in brackets.
788
789Configuration:
790 -h, --help display this help and exit
791 --help=short display options specific to this package
792 --help=recursive display the short help of all the included packages
793 -V, --version display version information and exit
794 -q, --quiet, --silent do not print \`checking...' messages
795 --cache-file=FILE cache test results in FILE [disabled]
796 -C, --config-cache alias for \`--cache-file=config.cache'
797 -n, --no-create do not create output files
798 --srcdir=DIR find the sources in DIR [configure dir or \`..']
799
800_ACEOF
801
802 cat <<_ACEOF
803Installation directories:
804 --prefix=PREFIX install architecture-independent files in PREFIX
805 [$ac_default_prefix]
806 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
807 [PREFIX]
808
809By default, \`make install' will install all the files in
810\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
811an installation prefix other than \`$ac_default_prefix' using \`--prefix',
812for instance \`--prefix=\$HOME'.
813
814For better control, use the options below.
815
816Fine tuning of the installation directories:
817 --bindir=DIR user executables [EPREFIX/bin]
818 --sbindir=DIR system admin executables [EPREFIX/sbin]
819 --libexecdir=DIR program executables [EPREFIX/libexec]
820 --datadir=DIR read-only architecture-independent data [PREFIX/share]
821 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
822 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
823 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
824 --libdir=DIR object code libraries [EPREFIX/lib]
825 --includedir=DIR C header files [PREFIX/include]
826 --oldincludedir=DIR C header files for non-gcc [/usr/include]
827 --infodir=DIR info documentation [PREFIX/info]
828 --mandir=DIR man documentation [PREFIX/man]
829_ACEOF
830
831 cat <<\_ACEOF
832
833Program names:
834 --program-prefix=PREFIX prepend PREFIX to installed program names
835 --program-suffix=SUFFIX append SUFFIX to installed program names
836 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
837
838System types:
839 --build=BUILD configure for building on BUILD [guessed]
840 --host=HOST cross-compile to build programs to run on HOST [BUILD]
96b8a615 841 --target=TARGET configure for building compilers for TARGET [HOST]
6de9cd9a
DN
842_ACEOF
843fi
844
845if test -n "$ac_init_help"; then
846 case $ac_init_help in
847 short | recursive ) echo "Configuration of GNU Fortran Runtime Library 0.2:";;
848 esac
849 cat <<\_ACEOF
850
851Optional Features:
852 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
853 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
96b8a615 854 --enable-version-specific-runtime-libs Specify that runtime libraries should be installed in a compiler-specific directory
6de9cd9a
DN
855 --enable-maintainer-mode enable make rules and dependencies not useful
856 (and sometimes confusing) to the casual installer
96b8a615 857 --enable-multilib build many library versions (default)
6de9cd9a
DN
858 --enable-shared=PKGS build shared libraries default=yes
859 --enable-static=PKGS build static libraries default=yes
860 --enable-fast-install=PKGS optimize for fast installation default=yes
861 --disable-libtool-lock avoid locking (might break parallel builds)
9cdc381b 862 --disable-largefile omit support for large files
96b8a615 863 --enable-cmath Include complex math functions
6de9cd9a
DN
864
865Optional Packages:
866 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
867 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
868 --with-gnu-ld assume the C compiler uses GNU ld default=no
869 --with-pic try to use only PIC/non-PIC objects default=use both
870
871Some influential environment variables:
872 CC C compiler command
873 CFLAGS C compiler flags
874 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
875 nonstandard directory <lib dir>
876 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
877 headers in a nonstandard directory <include dir>
878 F77 Fortran 77 compiler command
879 FFLAGS Fortran 77 compiler flags
880 CPP C preprocessor
881
882Use these variables to override the choices made by `configure' or to help
883it to find libraries and programs with nonstandard names/locations.
884
885_ACEOF
886fi
887
888if test "$ac_init_help" = "recursive"; then
889 # If there are subdirs, report their specific --help.
890 ac_popdir=`pwd`
891 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
892 test -d $ac_dir || continue
893 ac_builddir=.
894
895if test "$ac_dir" != .; then
896 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
897 # A "../" for each directory in $ac_dir_suffix.
898 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
899else
900 ac_dir_suffix= ac_top_builddir=
901fi
902
903case $srcdir in
904 .) # No --srcdir option. We are building in place.
905 ac_srcdir=.
906 if test -z "$ac_top_builddir"; then
907 ac_top_srcdir=.
908 else
909 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
910 fi ;;
911 [\\/]* | ?:[\\/]* ) # Absolute path.
912 ac_srcdir=$srcdir$ac_dir_suffix;
913 ac_top_srcdir=$srcdir ;;
914 *) # Relative path.
915 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
916 ac_top_srcdir=$ac_top_builddir$srcdir ;;
917esac
918
919# Do not use `cd foo && pwd` to compute absolute paths, because
920# the directories may not exist.
921case `pwd` in
922.) ac_abs_builddir="$ac_dir";;
923*)
924 case "$ac_dir" in
925 .) ac_abs_builddir=`pwd`;;
926 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
927 *) ac_abs_builddir=`pwd`/"$ac_dir";;
928 esac;;
929esac
930case $ac_abs_builddir in
931.) ac_abs_top_builddir=${ac_top_builddir}.;;
932*)
933 case ${ac_top_builddir}. in
934 .) ac_abs_top_builddir=$ac_abs_builddir;;
935 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
936 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
937 esac;;
938esac
939case $ac_abs_builddir in
940.) ac_abs_srcdir=$ac_srcdir;;
941*)
942 case $ac_srcdir in
943 .) ac_abs_srcdir=$ac_abs_builddir;;
944 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
945 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
946 esac;;
947esac
948case $ac_abs_builddir in
949.) ac_abs_top_srcdir=$ac_top_srcdir;;
950*)
951 case $ac_top_srcdir in
952 .) ac_abs_top_srcdir=$ac_abs_builddir;;
953 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
954 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
955 esac;;
956esac
957
958 cd $ac_dir
959 # Check for guested configure; otherwise get Cygnus style configure.
960 if test -f $ac_srcdir/configure.gnu; then
961 echo
962 $SHELL $ac_srcdir/configure.gnu --help=recursive
963 elif test -f $ac_srcdir/configure; then
964 echo
965 $SHELL $ac_srcdir/configure --help=recursive
966 elif test -f $ac_srcdir/configure.ac ||
967 test -f $ac_srcdir/configure.in; then
968 echo
969 $ac_configure --help
970 else
971 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
972 fi
453310d8 973 cd $ac_popdir
6de9cd9a
DN
974 done
975fi
976
977test -n "$ac_init_help" && exit 0
978if $ac_init_version; then
979 cat <<\_ACEOF
980GNU Fortran Runtime Library configure 0.2
981generated by GNU Autoconf 2.59
982
983Copyright (C) 2003 Free Software Foundation, Inc.
984This configure script is free software; the Free Software Foundation
985gives unlimited permission to copy, distribute and modify it.
986_ACEOF
987 exit 0
988fi
989exec 5>config.log
990cat >&5 <<_ACEOF
991This file contains any messages produced by compilers while
992running configure, to aid debugging if configure makes a mistake.
993
994It was created by GNU Fortran Runtime Library $as_me 0.2, which was
995generated by GNU Autoconf 2.59. Invocation command line was
996
997 $ $0 $@
998
999_ACEOF
1000{
1001cat <<_ASUNAME
1002## --------- ##
1003## Platform. ##
1004## --------- ##
1005
1006hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1007uname -m = `(uname -m) 2>/dev/null || echo unknown`
1008uname -r = `(uname -r) 2>/dev/null || echo unknown`
1009uname -s = `(uname -s) 2>/dev/null || echo unknown`
1010uname -v = `(uname -v) 2>/dev/null || echo unknown`
1011
1012/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1013/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1014
1015/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1016/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1017/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1018hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1019/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1020/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1021/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1022
1023_ASUNAME
1024
1025as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1026for as_dir in $PATH
1027do
1028 IFS=$as_save_IFS
1029 test -z "$as_dir" && as_dir=.
1030 echo "PATH: $as_dir"
1031done
1032
1033} >&5
1034
1035cat >&5 <<_ACEOF
1036
1037
1038## ----------- ##
1039## Core tests. ##
1040## ----------- ##
1041
1042_ACEOF
1043
1044
1045# Keep a trace of the command line.
1046# Strip out --no-create and --no-recursion so they do not pile up.
1047# Strip out --silent because we don't want to record it for future runs.
1048# Also quote any args containing shell meta-characters.
1049# Make two passes to allow for proper duplicate-argument suppression.
1050ac_configure_args=
1051ac_configure_args0=
1052ac_configure_args1=
1053ac_sep=
1054ac_must_keep_next=false
1055for ac_pass in 1 2
1056do
1057 for ac_arg
1058 do
1059 case $ac_arg in
1060 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1061 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1062 | -silent | --silent | --silen | --sile | --sil)
1063 continue ;;
1064 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1065 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1066 esac
1067 case $ac_pass in
1068 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1069 2)
1070 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1071 if test $ac_must_keep_next = true; then
1072 ac_must_keep_next=false # Got value, back to normal.
1073 else
1074 case $ac_arg in
1075 *=* | --config-cache | -C | -disable-* | --disable-* \
1076 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1077 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1078 | -with-* | --with-* | -without-* | --without-* | --x)
1079 case "$ac_configure_args0 " in
1080 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1081 esac
1082 ;;
1083 -* ) ac_must_keep_next=true ;;
1084 esac
1085 fi
1086 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1087 # Get rid of the leading space.
1088 ac_sep=" "
1089 ;;
1090 esac
1091 done
1092done
1093$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1094$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1095
1096# When interrupted or exit'd, cleanup temporary files, and complete
1097# config.log. We remove comments because anyway the quotes in there
1098# would cause problems or look ugly.
1099# WARNING: Be sure not to use single quotes in there, as some shells,
1100# such as our DU 5.0 friend, will then `close' the trap.
1101trap 'exit_status=$?
1102 # Save into config.log some information that might help in debugging.
1103 {
1104 echo
1105
1106 cat <<\_ASBOX
1107## ---------------- ##
1108## Cache variables. ##
1109## ---------------- ##
1110_ASBOX
1111 echo
1112 # The following way of writing the cache mishandles newlines in values,
1113{
1114 (set) 2>&1 |
1115 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1116 *ac_space=\ *)
1117 sed -n \
1118 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1119 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1120 ;;
1121 *)
1122 sed -n \
1123 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1124 ;;
1125 esac;
1126}
1127 echo
1128
1129 cat <<\_ASBOX
1130## ----------------- ##
1131## Output variables. ##
1132## ----------------- ##
1133_ASBOX
1134 echo
1135 for ac_var in $ac_subst_vars
1136 do
1137 eval ac_val=$`echo $ac_var`
1138 echo "$ac_var='"'"'$ac_val'"'"'"
1139 done | sort
1140 echo
1141
1142 if test -n "$ac_subst_files"; then
1143 cat <<\_ASBOX
1144## ------------- ##
1145## Output files. ##
1146## ------------- ##
1147_ASBOX
1148 echo
1149 for ac_var in $ac_subst_files
1150 do
1151 eval ac_val=$`echo $ac_var`
1152 echo "$ac_var='"'"'$ac_val'"'"'"
1153 done | sort
1154 echo
1155 fi
1156
1157 if test -s confdefs.h; then
1158 cat <<\_ASBOX
1159## ----------- ##
1160## confdefs.h. ##
1161## ----------- ##
1162_ASBOX
1163 echo
1164 sed "/^$/d" confdefs.h | sort
1165 echo
1166 fi
1167 test "$ac_signal" != 0 &&
1168 echo "$as_me: caught signal $ac_signal"
1169 echo "$as_me: exit $exit_status"
1170 } >&5
1171 rm -f core *.core &&
1172 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1173 exit $exit_status
1174 ' 0
1175for ac_signal in 1 2 13 15; do
1176 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1177done
1178ac_signal=0
1179
1180# confdefs.h avoids OS command line length limits that DEFS can exceed.
1181rm -rf conftest* confdefs.h
1182# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1183echo >confdefs.h
1184
1185# Predefined preprocessor variables.
1186
1187cat >>confdefs.h <<_ACEOF
1188#define PACKAGE_NAME "$PACKAGE_NAME"
1189_ACEOF
1190
1191
1192cat >>confdefs.h <<_ACEOF
1193#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1194_ACEOF
1195
1196
1197cat >>confdefs.h <<_ACEOF
1198#define PACKAGE_VERSION "$PACKAGE_VERSION"
1199_ACEOF
1200
1201
1202cat >>confdefs.h <<_ACEOF
1203#define PACKAGE_STRING "$PACKAGE_STRING"
1204_ACEOF
1205
1206
1207cat >>confdefs.h <<_ACEOF
1208#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1209_ACEOF
1210
1211
1212# Let the site file select an alternate cache file if it wants to.
1213# Prefer explicitly selected file to automatically selected ones.
1214if test -z "$CONFIG_SITE"; then
1215 if test "x$prefix" != xNONE; then
1216 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1217 else
1218 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1219 fi
1220fi
1221for ac_site_file in $CONFIG_SITE; do
1222 if test -r "$ac_site_file"; then
1223 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1224echo "$as_me: loading site script $ac_site_file" >&6;}
1225 sed 's/^/| /' "$ac_site_file" >&5
1226 . "$ac_site_file"
1227 fi
1228done
1229
1230if test -r "$cache_file"; then
1231 # Some versions of bash will fail to source /dev/null (special
1232 # files actually), so we avoid doing that.
1233 if test -f "$cache_file"; then
1234 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1235echo "$as_me: loading cache $cache_file" >&6;}
1236 case $cache_file in
1237 [\\/]* | ?:[\\/]* ) . $cache_file;;
1238 *) . ./$cache_file;;
1239 esac
1240 fi
1241else
1242 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1243echo "$as_me: creating cache $cache_file" >&6;}
1244 >$cache_file
1245fi
1246
1247# Check that the precious variables saved in the cache have kept the same
1248# value.
1249ac_cache_corrupted=false
1250for ac_var in `(set) 2>&1 |
1251 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1252 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1253 eval ac_new_set=\$ac_env_${ac_var}_set
1254 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1255 eval ac_new_val="\$ac_env_${ac_var}_value"
1256 case $ac_old_set,$ac_new_set in
1257 set,)
1258 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1259echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1260 ac_cache_corrupted=: ;;
1261 ,set)
1262 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1263echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1264 ac_cache_corrupted=: ;;
1265 ,);;
1266 *)
1267 if test "x$ac_old_val" != "x$ac_new_val"; then
1268 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1269echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1270 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1271echo "$as_me: former value: $ac_old_val" >&2;}
1272 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1273echo "$as_me: current value: $ac_new_val" >&2;}
1274 ac_cache_corrupted=:
1275 fi;;
1276 esac
1277 # Pass precious variables to config.status.
1278 if test "$ac_new_set" = set; then
1279 case $ac_new_val in
1280 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1281 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1282 *) ac_arg=$ac_var=$ac_new_val ;;
1283 esac
1284 case " $ac_configure_args " in
1285 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1286 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1287 esac
1288 fi
1289done
1290if $ac_cache_corrupted; then
1291 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1292echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1293 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1294echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1295 { (exit 1); exit 1; }; }
1296fi
1297
1298ac_ext=c
1299ac_cpp='$CPP $CPPFLAGS'
1300ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1301ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1302ac_compiler_gnu=$ac_cv_c_compiler_gnu
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
96b8a615
AJ
1330 ac_config_headers="$ac_config_headers config.h"
1331
1332
96b8a615
AJ
1333# -------
1334# Options
1335# -------
1336
1337echo "$as_me:$LINENO: checking for --enable-version-specific-runtime-libs" >&5
1338echo $ECHO_N "checking for --enable-version-specific-runtime-libs... $ECHO_C" >&6
1339# Check whether --enable-version-specific-runtime-libs or --disable-version-specific-runtime-libs was given.
1340if test "${enable_version_specific_runtime_libs+set}" = set; then
1341 enableval="$enable_version_specific_runtime_libs"
1342 case "$enableval" in
1343 yes) version_specific_libs=yes ;;
1344 no) version_specific_libs=no ;;
1345 *) { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable version-specific libs" >&5
1346echo "$as_me: error: Unknown argument to enable/disable version-specific libs" >&2;}
1347 { (exit 1); exit 1; }; };;
1348 esac
1349else
1350 version_specific_libs=no
1351fi;
1352echo "$as_me:$LINENO: result: $version_specific_libs" >&5
1353echo "${ECHO_T}$version_specific_libs" >&6
1354
1355
1356# Gets build, host, target, *_vendor, *_cpu, *_os, etc.
1357#
1358# You will slowly go insane if you do not grok the following fact: when
1359# building this library, the top-level /target/ becomes the library's /host/.
1360#
1361# configure then causes --target to default to --host, exactly like any
1362# other package using autoconf. Therefore, 'target' and 'host' will
1363# always be the same. This makes sense both for native and cross compilers
1364# just think about it for a little while. :-)
1365#
1366# Also, if this library is being configured as part of a cross compiler, the
1367# top-level configure script will pass the "real" host as $with_cross_host.
1368#
1369# Do not delete or change the following two lines. For why, see
1370# http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html
6de9cd9a
DN
1371ac_aux_dir=
1372for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1373 if test -f $ac_dir/install-sh; then
1374 ac_aux_dir=$ac_dir
1375 ac_install_sh="$ac_aux_dir/install-sh -c"
1376 break
1377 elif test -f $ac_dir/install.sh; then
1378 ac_aux_dir=$ac_dir
1379 ac_install_sh="$ac_aux_dir/install.sh -c"
1380 break
1381 elif test -f $ac_dir/shtool; then
1382 ac_aux_dir=$ac_dir
1383 ac_install_sh="$ac_aux_dir/shtool install -c"
1384 break
1385 fi
1386done
1387if test -z "$ac_aux_dir"; then
1388 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1389echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1390 { (exit 1); exit 1; }; }
1391fi
1392ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1393ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1394ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1395
96b8a615
AJ
1396# Make sure we can run config.sub.
1397$ac_config_sub sun4 >/dev/null 2>&1 ||
1398 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1399echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1400 { (exit 1); exit 1; }; }
1401
1402echo "$as_me:$LINENO: checking build system type" >&5
1403echo $ECHO_N "checking build system type... $ECHO_C" >&6
1404if test "${ac_cv_build+set}" = set; then
1405 echo $ECHO_N "(cached) $ECHO_C" >&6
1406else
1407 ac_cv_build_alias=$build_alias
1408test -z "$ac_cv_build_alias" &&
1409 ac_cv_build_alias=`$ac_config_guess`
1410test -z "$ac_cv_build_alias" &&
1411 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1412echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1413 { (exit 1); exit 1; }; }
1414ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1415 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1416echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1417 { (exit 1); exit 1; }; }
1418
1419fi
1420echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1421echo "${ECHO_T}$ac_cv_build" >&6
1422build=$ac_cv_build
1423build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1424build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1425build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1426
1427
1428echo "$as_me:$LINENO: checking host system type" >&5
1429echo $ECHO_N "checking host system type... $ECHO_C" >&6
1430if test "${ac_cv_host+set}" = set; then
1431 echo $ECHO_N "(cached) $ECHO_C" >&6
1432else
1433 ac_cv_host_alias=$host_alias
1434test -z "$ac_cv_host_alias" &&
1435 ac_cv_host_alias=$ac_cv_build_alias
1436ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1437 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1438echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1439 { (exit 1); exit 1; }; }
1440
1441fi
1442echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1443echo "${ECHO_T}$ac_cv_host" >&6
1444host=$ac_cv_host
1445host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1446host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1447host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1448
1449
1450echo "$as_me:$LINENO: checking target system type" >&5
1451echo $ECHO_N "checking target system type... $ECHO_C" >&6
1452if test "${ac_cv_target+set}" = set; then
1453 echo $ECHO_N "(cached) $ECHO_C" >&6
1454else
1455 ac_cv_target_alias=$target_alias
1456test "x$ac_cv_target_alias" = "x" &&
1457 ac_cv_target_alias=$ac_cv_host_alias
1458ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1459 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1460echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1461 { (exit 1); exit 1; }; }
1462
1463fi
1464echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1465echo "${ECHO_T}$ac_cv_target" >&6
1466target=$ac_cv_target
1467target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1468target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1469target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1470
1471
1472# The aliases save the names the user supplied, while $host etc.
1473# will get canonicalized.
1474test -n "$target_alias" &&
1475 test "$program_prefix$program_suffix$program_transform_name" = \
1476 NONENONEs,x,x, &&
1477 program_prefix=${target_alias}-
1478target_alias=${target_alias-$host_alias}
1479
1480# Sets up automake. Must come after AC_CANONICAL_SYSTEM. Each of the
1481# following is magically included in AUTOMAKE_OPTIONS in each Makefile.am.
1482# 1.8.2: minimum required version
1483# no-define: PACKAGE and VERSION will not be #define'd in config.h (a bunch
1484# of other PACKAGE_* variables will, however, and there's nothing
1485# we can do about that; they come from AC_INIT).
1486# foreign: we don't follow the normal rules for GNU packages (no COPYING
1487# file in the top srcdir, etc, etc), so stop complaining.
1488# no-dependencies: turns off auto dependency generation (just for now)
1489# -Wall: turns on all automake warnings...
1490# -Wno-portability: ...except this one, since GNU make is required.
1491am__api_version="1.8"
6de9cd9a
DN
1492# Find a good install program. We prefer a C program (faster),
1493# so one script is as good as another. But avoid the broken or
1494# incompatible versions:
1495# SysV /etc/install, /usr/sbin/install
1496# SunOS /usr/etc/install
1497# IRIX /sbin/install
1498# AIX /bin/install
1499# AmigaOS /C/install, which installs bootblocks on floppy discs
1500# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1501# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1502# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1503# OS/2's system install, which has a completely different semantic
1504# ./install, which can be erroneously created by make from ./install.sh.
1505echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1506echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1507if test -z "$INSTALL"; then
1508if test "${ac_cv_path_install+set}" = set; then
1509 echo $ECHO_N "(cached) $ECHO_C" >&6
1510else
1511 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1512for as_dir in $PATH
1513do
1514 IFS=$as_save_IFS
1515 test -z "$as_dir" && as_dir=.
1516 # Account for people who put trailing slashes in PATH elements.
1517case $as_dir/ in
1518 ./ | .// | /cC/* | \
1519 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1520 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1521 /usr/ucb/* ) ;;
1522 *)
1523 # OSF1 and SCO ODT 3.0 have their own names for install.
1524 # Don't use installbsd from OSF since it installs stuff as root
1525 # by default.
1526 for ac_prog in ginstall scoinst install; do
1527 for ac_exec_ext in '' $ac_executable_extensions; do
1528 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1529 if test $ac_prog = install &&
1530 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1531 # AIX install. It has an incompatible calling convention.
1532 :
1533 elif test $ac_prog = install &&
1534 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1535 # program-specific install script used by HP pwplus--don't use.
1536 :
1537 else
1538 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1539 break 3
1540 fi
1541 fi
1542 done
1543 done
1544 ;;
1545esac
1546done
1547
1548
1549fi
1550 if test "${ac_cv_path_install+set}" = set; then
1551 INSTALL=$ac_cv_path_install
1552 else
1553 # As a last resort, use the slow shell script. We don't cache a
1554 # path for INSTALL within a source directory, because that will
1555 # break other packages using the cache if that directory is
1556 # removed, or if the path is relative.
1557 INSTALL=$ac_install_sh
1558 fi
1559fi
1560echo "$as_me:$LINENO: result: $INSTALL" >&5
1561echo "${ECHO_T}$INSTALL" >&6
1562
1563# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1564# It thinks the first close brace ends the variable substitution.
1565test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1566
1567test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1568
1569test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1570
1571echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1572echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1573# Just in case
1574sleep 1
1575echo timestamp > conftest.file
1576# Do `set' in a subshell so we don't clobber the current shell's
1577# arguments. Must try -L first in case configure is actually a
1578# symlink; some systems play weird games with the mod time of symlinks
1579# (eg FreeBSD returns the mod time of the symlink's containing
1580# directory).
1581if (
1582 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1583 if test "$*" = "X"; then
1584 # -L didn't work.
1585 set X `ls -t $srcdir/configure conftest.file`
1586 fi
1587 rm -f conftest.file
1588 if test "$*" != "X $srcdir/configure conftest.file" \
1589 && test "$*" != "X conftest.file $srcdir/configure"; then
1590
1591 # If neither matched, then we have a broken ls. This can happen
1592 # if, for instance, CONFIG_SHELL is bash and it inherits a
1593 # broken ls alias from the environment. This has actually
1594 # happened. Such a system could not be considered "sane".
1595 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1596alias in your environment" >&5
1597echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1598alias in your environment" >&2;}
1599 { (exit 1); exit 1; }; }
1600 fi
1601
1602 test "$2" = conftest.file
1603 )
1604then
1605 # Ok.
1606 :
1607else
1608 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1609Check your system clock" >&5
1610echo "$as_me: error: newly created file is older than distributed files!
1611Check your system clock" >&2;}
1612 { (exit 1); exit 1; }; }
1613fi
1614echo "$as_me:$LINENO: result: yes" >&5
1615echo "${ECHO_T}yes" >&6
1616test "$program_prefix" != NONE &&
1617 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1618# Use a double $ so make ignores it.
1619test "$program_suffix" != NONE &&
1620 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1621# Double any \ or $. echo might interpret backslashes.
1622# By default was `s,x,x', remove it if useless.
1623cat <<\_ACEOF >conftest.sed
1624s/[\\$]/&&/g;s/;s,x,x,$//
1625_ACEOF
1626program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1627rm conftest.sed
1628
1629# expand $ac_aux_dir to an absolute path
1630am_aux_dir=`cd $ac_aux_dir && pwd`
1631
1632test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1633# Use eval to expand $SHELL
1634if eval "$MISSING --run true"; then
1635 am_missing_run="$MISSING --run "
1636else
1637 am_missing_run=
1638 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1639echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1640fi
1641
c9e66eda 1642if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
6de9cd9a
DN
1643 # Keeping the `.' argument allows $(mkdir_p) to be used without
1644 # argument. Indeed, we sometimes output rules like
1645 # $(mkdir_p) $(somedir)
1646 # where $(somedir) is conditionally defined.
1647 # (`test -n '$(somedir)' && $(mkdir_p) $(somedir)' is a more
1648 # expensive solution, as it forces Make to start a sub-shell.)
1649 mkdir_p='mkdir -p -- .'
1650else
1651 # On NextStep and OpenStep, the `mkdir' command does not
1652 # recognize any option. It will interpret all options as
1653 # directories to create, and then abort because `.' already
1654 # exists.
c9e66eda 1655 for d in ./-p ./--version;
6de9cd9a
DN
1656 do
1657 test -d $d && rmdir $d
1658 done
1659 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1660 if test -f "$ac_aux_dir/mkinstalldirs"; then
1661 mkdir_p='$(mkinstalldirs)'
1662 else
1663 mkdir_p='$(install_sh) -d'
1664 fi
1665fi
1666
1667for ac_prog in gawk mawk nawk awk
1668do
1669 # Extract the first word of "$ac_prog", so it can be a program name with args.
1670set dummy $ac_prog; ac_word=$2
1671echo "$as_me:$LINENO: checking for $ac_word" >&5
1672echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1673if test "${ac_cv_prog_AWK+set}" = set; then
1674 echo $ECHO_N "(cached) $ECHO_C" >&6
1675else
1676 if test -n "$AWK"; then
1677 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1678else
1679as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1680for as_dir in $PATH
1681do
1682 IFS=$as_save_IFS
1683 test -z "$as_dir" && as_dir=.
1684 for ac_exec_ext in '' $ac_executable_extensions; do
1685 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1686 ac_cv_prog_AWK="$ac_prog"
1687 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1688 break 2
1689 fi
1690done
1691done
1692
1693fi
1694fi
1695AWK=$ac_cv_prog_AWK
1696if test -n "$AWK"; then
1697 echo "$as_me:$LINENO: result: $AWK" >&5
1698echo "${ECHO_T}$AWK" >&6
1699else
1700 echo "$as_me:$LINENO: result: no" >&5
1701echo "${ECHO_T}no" >&6
1702fi
1703
1704 test -n "$AWK" && break
1705done
1706
1707echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1708echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1709set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1710if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1711 echo $ECHO_N "(cached) $ECHO_C" >&6
1712else
1713 cat >conftest.make <<\_ACEOF
1714all:
1715 @echo 'ac_maketemp="$(MAKE)"'
1716_ACEOF
1717# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1718eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1719if test -n "$ac_maketemp"; then
1720 eval ac_cv_prog_make_${ac_make}_set=yes
1721else
1722 eval ac_cv_prog_make_${ac_make}_set=no
1723fi
1724rm -f conftest.make
1725fi
1726if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1727 echo "$as_me:$LINENO: result: yes" >&5
1728echo "${ECHO_T}yes" >&6
1729 SET_MAKE=
1730else
1731 echo "$as_me:$LINENO: result: no" >&5
1732echo "${ECHO_T}no" >&6
1733 SET_MAKE="MAKE=${MAKE-make}"
1734fi
1735
1736rm -rf .tst 2>/dev/null
1737mkdir .tst 2>/dev/null
1738if test -d .tst; then
1739 am__leading_dot=.
1740else
1741 am__leading_dot=_
1742fi
1743rmdir .tst 2>/dev/null
1744
1745# test to see if srcdir already configured
1746if test "`cd $srcdir && pwd`" != "`pwd`" &&
1747 test -f $srcdir/config.status; then
1748 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1749echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1750 { (exit 1); exit 1; }; }
1751fi
1752
1753# test whether we have cygpath
1754if test -z "$CYGPATH_W"; then
1755 if (cygpath --version) >/dev/null 2>/dev/null; then
1756 CYGPATH_W='cygpath -w'
1757 else
1758 CYGPATH_W=echo
1759 fi
1760fi
1761
1762
1763# Define the identity of the package.
1764 PACKAGE='libgfortran'
1765 VERSION='0.2'
1766
1767
6de9cd9a
DN
1768# Some tools Automake needs.
1769
1770ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1771
1772
1773AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1774
1775
1776AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1777
1778
1779AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1780
1781
1782MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1783
1784
1785AMTAR=${AMTAR-"${am_missing_run}tar"}
1786
1787install_sh=${install_sh-"$am_aux_dir/install-sh"}
1788
1789# Installed binaries are usually stripped using `strip' when the user
1790# run `make install-strip'. However `strip' might not be the right
1791# tool to use in cross-compilation environments, therefore Automake
1792# will honor the `STRIP' environment variable to overrule this program.
1793if test "$cross_compiling" != no; then
1794 if test -n "$ac_tool_prefix"; then
1795 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1796set dummy ${ac_tool_prefix}strip; ac_word=$2
1797echo "$as_me:$LINENO: checking for $ac_word" >&5
1798echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1799if test "${ac_cv_prog_STRIP+set}" = set; then
1800 echo $ECHO_N "(cached) $ECHO_C" >&6
1801else
1802 if test -n "$STRIP"; then
1803 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1804else
1805as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1806for as_dir in $PATH
1807do
1808 IFS=$as_save_IFS
1809 test -z "$as_dir" && as_dir=.
1810 for ac_exec_ext in '' $ac_executable_extensions; do
1811 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1812 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1813 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1814 break 2
1815 fi
1816done
1817done
1818
1819fi
1820fi
1821STRIP=$ac_cv_prog_STRIP
1822if test -n "$STRIP"; then
1823 echo "$as_me:$LINENO: result: $STRIP" >&5
1824echo "${ECHO_T}$STRIP" >&6
1825else
1826 echo "$as_me:$LINENO: result: no" >&5
1827echo "${ECHO_T}no" >&6
1828fi
1829
1830fi
1831if test -z "$ac_cv_prog_STRIP"; then
1832 ac_ct_STRIP=$STRIP
1833 # Extract the first word of "strip", so it can be a program name with args.
1834set dummy strip; ac_word=$2
1835echo "$as_me:$LINENO: checking for $ac_word" >&5
1836echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1837if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1838 echo $ECHO_N "(cached) $ECHO_C" >&6
1839else
1840 if test -n "$ac_ct_STRIP"; then
1841 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1842else
1843as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1844for as_dir in $PATH
1845do
1846 IFS=$as_save_IFS
1847 test -z "$as_dir" && as_dir=.
1848 for ac_exec_ext in '' $ac_executable_extensions; do
1849 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1850 ac_cv_prog_ac_ct_STRIP="strip"
1851 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1852 break 2
1853 fi
1854done
1855done
1856
1857 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1858fi
1859fi
1860ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1861if test -n "$ac_ct_STRIP"; then
1862 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1863echo "${ECHO_T}$ac_ct_STRIP" >&6
1864else
1865 echo "$as_me:$LINENO: result: no" >&5
1866echo "${ECHO_T}no" >&6
1867fi
1868
1869 STRIP=$ac_ct_STRIP
1870else
1871 STRIP="$ac_cv_prog_STRIP"
1872fi
1873
1874fi
1875INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1876
1877# We need awk for the "check" target. The system "awk" is bad on
1878# some platforms.
1879
1880
1881
6de9cd9a
DN
1882
1883echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
1884echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
1885 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1886if test "${enable_maintainer_mode+set}" = set; then
1887 enableval="$enable_maintainer_mode"
1888 USE_MAINTAINER_MODE=$enableval
1889else
1890 USE_MAINTAINER_MODE=no
1891fi;
1892 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
1893echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
1894
1895
1896if test $USE_MAINTAINER_MODE = yes; then
1897 MAINTAINER_MODE_TRUE=
1898 MAINTAINER_MODE_FALSE='#'
1899else
1900 MAINTAINER_MODE_TRUE='#'
1901 MAINTAINER_MODE_FALSE=
1902fi
1903
1904 MAINT=$MAINTAINER_MODE_TRUE
1905
1906
96b8a615
AJ
1907# Default to --enable-multilib
1908# Check whether --enable-multilib or --disable-multilib was given.
1909if test "${enable_multilib+set}" = set; then
1910 enableval="$enable_multilib"
1911 case "$enableval" in
1912 yes) multilib=yes ;;
1913 no) multilib=no ;;
1914 *) { { echo "$as_me:$LINENO: error: bad value $enableval for multilib option" >&5
1915echo "$as_me: error: bad value $enableval for multilib option" >&2;}
1916 { (exit 1); exit 1; }; } ;;
1917 esac
1918else
1919 multilib=yes
1920fi;
1921
1922# We may get other options which we leave undocumented:
1923# --with-target-subdir, --with-multisrctop, --with-multisubdir
1924# See config-ml.in if you want the gory details.
1925
1926if test "$srcdir" = "."; then
1927 if test "$with_target_subdir" != "."; then
1928 multi_basedir="$srcdir/$with_multisrctop../.."
1929 else
1930 multi_basedir="$srcdir/$with_multisrctop.."
1931 fi
1932else
1933 multi_basedir="$srcdir/.."
1934fi
1935
1936
1937 ac_config_commands="$ac_config_commands default-1"
1938
1939
1940# Handy for debugging:
1941#AC_MSG_NOTICE($build / $host / $target / $host_alias / $target_alias); sleep 5
1942
1943# Are we being configured with some form of cross compiler?
1944# NB: We don't actually need to know this just now, but when, say, a test
1945# suite is included, we'll have to know.
1946if test "$build" != "$host"; then
1947 LIBGFOR_IS_NATIVE=false
1948 GCC_NO_EXECUTABLES
1949else
1950 LIBGFOR_IS_NATIVE=true
1951fi
1952
1953# Process the option "--enable-version-specific-runtime-libs"
1954gcc_version_trigger=${srcdir}/../gcc/version.c
1955gcc_version_full=`grep version_string ${gcc_version_trigger} | sed -e 's/.*\"\([^ \"]*\)[ \"].*/\1/'`
1956gcc_version=`echo ${gcc_version_full} | sed -e 's/\(^ *\) .*/\1/'`
1957
1958
1959# Calculate toolexeclibdir
1960# Also toolexecdir, though it's only used in toolexeclibdir
1961case ${version_specific_libs} in
1962 yes)
1963 # Need the gcc compiler version to know where to install libraries
1964 # and header files if --enable-version-specific-runtime-libs option
1965 # is selected.
1966 toolexecdir='$(libdir)/gcc/$(target_alias)'
1967 toolexeclibdir='$(toolexecdir)/'${gcc_version}'$(MULTISUBDIR)'
1968 ;;
1969 no)
1970 if test -n "$with_cross_host" &&
1971 test x"$with_cross_host" != x"no"; then
1972 # Install a library built with a cross compiler in tooldir, not libdir.
1973 toolexecdir='$(exec_prefix)/$(target_alias)'
1974 toolexeclibdir='$(toolexecdir)/lib'
1975 else
1976 toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
1977 toolexeclibdir='$(libdir)'
1978 fi
1979 multi_os_directory=`$CC -print-multi-os-directory`
1980 case $multi_os_directory in
1981 .) ;; # Avoid trailing /.
1982 *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
1983 esac
1984 ;;
1985esac
1986
1987
6de9cd9a 1988
96b8a615
AJ
1989# Check the compiler.
1990# The same as in boehm-gc and libstdc++. Have to borrow it from there.
1991# We must force CC to /not/ be precious variables; otherwise
1992# the wrong, non-multilib-adjusted value will be used in multilibs.
1993# As a side effect, we have to subst CFLAGS ourselves.
6de9cd9a
DN
1994
1995
1996
6de9cd9a
DN
1997ac_ext=c
1998ac_cpp='$CPP $CPPFLAGS'
1999ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2000ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2001ac_compiler_gnu=$ac_cv_c_compiler_gnu
2002if test -n "$ac_tool_prefix"; then
2003 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2004set dummy ${ac_tool_prefix}gcc; ac_word=$2
2005echo "$as_me:$LINENO: checking for $ac_word" >&5
2006echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2007if test "${ac_cv_prog_CC+set}" = set; then
2008 echo $ECHO_N "(cached) $ECHO_C" >&6
2009else
2010 if test -n "$CC"; then
2011 ac_cv_prog_CC="$CC" # Let the user override the test.
2012else
2013as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2014for as_dir in $PATH
2015do
2016 IFS=$as_save_IFS
2017 test -z "$as_dir" && as_dir=.
2018 for ac_exec_ext in '' $ac_executable_extensions; do
2019 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2020 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2021 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2022 break 2
2023 fi
2024done
2025done
2026
2027fi
2028fi
2029CC=$ac_cv_prog_CC
2030if test -n "$CC"; then
2031 echo "$as_me:$LINENO: result: $CC" >&5
2032echo "${ECHO_T}$CC" >&6
2033else
2034 echo "$as_me:$LINENO: result: no" >&5
2035echo "${ECHO_T}no" >&6
2036fi
2037
2038fi
2039if test -z "$ac_cv_prog_CC"; then
2040 ac_ct_CC=$CC
2041 # Extract the first word of "gcc", so it can be a program name with args.
2042set dummy gcc; ac_word=$2
2043echo "$as_me:$LINENO: checking for $ac_word" >&5
2044echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2045if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2046 echo $ECHO_N "(cached) $ECHO_C" >&6
2047else
2048 if test -n "$ac_ct_CC"; then
2049 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2050else
2051as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2052for as_dir in $PATH
2053do
2054 IFS=$as_save_IFS
2055 test -z "$as_dir" && as_dir=.
2056 for ac_exec_ext in '' $ac_executable_extensions; do
2057 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2058 ac_cv_prog_ac_ct_CC="gcc"
2059 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2060 break 2
2061 fi
2062done
2063done
2064
2065fi
2066fi
2067ac_ct_CC=$ac_cv_prog_ac_ct_CC
2068if test -n "$ac_ct_CC"; then
2069 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2070echo "${ECHO_T}$ac_ct_CC" >&6
2071else
2072 echo "$as_me:$LINENO: result: no" >&5
2073echo "${ECHO_T}no" >&6
2074fi
2075
2076 CC=$ac_ct_CC
2077else
2078 CC="$ac_cv_prog_CC"
2079fi
2080
2081if test -z "$CC"; then
2082 if test -n "$ac_tool_prefix"; then
2083 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2084set dummy ${ac_tool_prefix}cc; ac_word=$2
2085echo "$as_me:$LINENO: checking for $ac_word" >&5
2086echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2087if test "${ac_cv_prog_CC+set}" = set; then
2088 echo $ECHO_N "(cached) $ECHO_C" >&6
2089else
2090 if test -n "$CC"; then
2091 ac_cv_prog_CC="$CC" # Let the user override the test.
2092else
2093as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2094for as_dir in $PATH
2095do
2096 IFS=$as_save_IFS
2097 test -z "$as_dir" && as_dir=.
2098 for ac_exec_ext in '' $ac_executable_extensions; do
2099 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2100 ac_cv_prog_CC="${ac_tool_prefix}cc"
2101 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2102 break 2
2103 fi
2104done
2105done
2106
2107fi
2108fi
2109CC=$ac_cv_prog_CC
2110if test -n "$CC"; then
2111 echo "$as_me:$LINENO: result: $CC" >&5
2112echo "${ECHO_T}$CC" >&6
2113else
2114 echo "$as_me:$LINENO: result: no" >&5
2115echo "${ECHO_T}no" >&6
2116fi
2117
2118fi
2119if test -z "$ac_cv_prog_CC"; then
2120 ac_ct_CC=$CC
2121 # Extract the first word of "cc", so it can be a program name with args.
2122set dummy cc; ac_word=$2
2123echo "$as_me:$LINENO: checking for $ac_word" >&5
2124echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2125if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2126 echo $ECHO_N "(cached) $ECHO_C" >&6
2127else
2128 if test -n "$ac_ct_CC"; then
2129 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2130else
2131as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2132for as_dir in $PATH
2133do
2134 IFS=$as_save_IFS
2135 test -z "$as_dir" && as_dir=.
2136 for ac_exec_ext in '' $ac_executable_extensions; do
2137 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2138 ac_cv_prog_ac_ct_CC="cc"
2139 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2140 break 2
2141 fi
2142done
2143done
2144
2145fi
2146fi
2147ac_ct_CC=$ac_cv_prog_ac_ct_CC
2148if test -n "$ac_ct_CC"; then
2149 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2150echo "${ECHO_T}$ac_ct_CC" >&6
2151else
2152 echo "$as_me:$LINENO: result: no" >&5
2153echo "${ECHO_T}no" >&6
2154fi
2155
2156 CC=$ac_ct_CC
2157else
2158 CC="$ac_cv_prog_CC"
2159fi
2160
2161fi
2162if test -z "$CC"; then
2163 # Extract the first word of "cc", so it can be a program name with args.
2164set dummy cc; ac_word=$2
2165echo "$as_me:$LINENO: checking for $ac_word" >&5
2166echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2167if test "${ac_cv_prog_CC+set}" = set; then
2168 echo $ECHO_N "(cached) $ECHO_C" >&6
2169else
2170 if test -n "$CC"; then
2171 ac_cv_prog_CC="$CC" # Let the user override the test.
2172else
2173 ac_prog_rejected=no
2174as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2175for as_dir in $PATH
2176do
2177 IFS=$as_save_IFS
2178 test -z "$as_dir" && as_dir=.
2179 for ac_exec_ext in '' $ac_executable_extensions; do
2180 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2181 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2182 ac_prog_rejected=yes
2183 continue
2184 fi
2185 ac_cv_prog_CC="cc"
2186 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2187 break 2
2188 fi
2189done
2190done
2191
2192if test $ac_prog_rejected = yes; then
2193 # We found a bogon in the path, so make sure we never use it.
2194 set dummy $ac_cv_prog_CC
2195 shift
2196 if test $# != 0; then
2197 # We chose a different compiler from the bogus one.
2198 # However, it has the same basename, so the bogon will be chosen
2199 # first if we set CC to just the basename; use the full file name.
2200 shift
2201 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2202 fi
2203fi
2204fi
2205fi
2206CC=$ac_cv_prog_CC
2207if test -n "$CC"; then
2208 echo "$as_me:$LINENO: result: $CC" >&5
2209echo "${ECHO_T}$CC" >&6
2210else
2211 echo "$as_me:$LINENO: result: no" >&5
2212echo "${ECHO_T}no" >&6
2213fi
2214
2215fi
2216if test -z "$CC"; then
2217 if test -n "$ac_tool_prefix"; then
2218 for ac_prog in cl
2219 do
2220 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2221set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2222echo "$as_me:$LINENO: checking for $ac_word" >&5
2223echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2224if test "${ac_cv_prog_CC+set}" = set; then
2225 echo $ECHO_N "(cached) $ECHO_C" >&6
2226else
2227 if test -n "$CC"; then
2228 ac_cv_prog_CC="$CC" # Let the user override the test.
2229else
2230as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2231for as_dir in $PATH
2232do
2233 IFS=$as_save_IFS
2234 test -z "$as_dir" && as_dir=.
2235 for ac_exec_ext in '' $ac_executable_extensions; do
2236 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2237 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2238 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2239 break 2
2240 fi
2241done
2242done
2243
2244fi
2245fi
2246CC=$ac_cv_prog_CC
2247if test -n "$CC"; then
2248 echo "$as_me:$LINENO: result: $CC" >&5
2249echo "${ECHO_T}$CC" >&6
2250else
2251 echo "$as_me:$LINENO: result: no" >&5
2252echo "${ECHO_T}no" >&6
2253fi
2254
2255 test -n "$CC" && break
2256 done
2257fi
2258if test -z "$CC"; then
2259 ac_ct_CC=$CC
2260 for ac_prog in cl
2261do
2262 # Extract the first word of "$ac_prog", so it can be a program name with args.
2263set dummy $ac_prog; ac_word=$2
2264echo "$as_me:$LINENO: checking for $ac_word" >&5
2265echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2266if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2267 echo $ECHO_N "(cached) $ECHO_C" >&6
2268else
2269 if test -n "$ac_ct_CC"; then
2270 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2271else
2272as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2273for as_dir in $PATH
2274do
2275 IFS=$as_save_IFS
2276 test -z "$as_dir" && as_dir=.
2277 for ac_exec_ext in '' $ac_executable_extensions; do
2278 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2279 ac_cv_prog_ac_ct_CC="$ac_prog"
2280 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2281 break 2
2282 fi
2283done
2284done
2285
2286fi
2287fi
2288ac_ct_CC=$ac_cv_prog_ac_ct_CC
2289if test -n "$ac_ct_CC"; then
2290 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2291echo "${ECHO_T}$ac_ct_CC" >&6
2292else
2293 echo "$as_me:$LINENO: result: no" >&5
2294echo "${ECHO_T}no" >&6
2295fi
2296
2297 test -n "$ac_ct_CC" && break
2298done
2299
2300 CC=$ac_ct_CC
2301fi
2302
2303fi
2304
2305
2306test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2307See \`config.log' for more details." >&5
2308echo "$as_me: error: no acceptable C compiler found in \$PATH
2309See \`config.log' for more details." >&2;}
2310 { (exit 1); exit 1; }; }
2311
2312# Provide some information about the compiler.
2313echo "$as_me:$LINENO:" \
2314 "checking for C compiler version" >&5
2315ac_compiler=`set X $ac_compile; echo $2`
2316{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2317 (eval $ac_compiler --version </dev/null >&5) 2>&5
2318 ac_status=$?
2319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2320 (exit $ac_status); }
2321{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2322 (eval $ac_compiler -v </dev/null >&5) 2>&5
2323 ac_status=$?
2324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2325 (exit $ac_status); }
2326{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2327 (eval $ac_compiler -V </dev/null >&5) 2>&5
2328 ac_status=$?
2329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2330 (exit $ac_status); }
2331
2332cat >conftest.$ac_ext <<_ACEOF
2333/* confdefs.h. */
2334_ACEOF
2335cat confdefs.h >>conftest.$ac_ext
2336cat >>conftest.$ac_ext <<_ACEOF
2337/* end confdefs.h. */
2338
2339int
2340main ()
2341{
2342
2343 ;
2344 return 0;
2345}
2346_ACEOF
2347ac_clean_files_save=$ac_clean_files
2348ac_clean_files="$ac_clean_files a.out a.exe b.out"
2349# Try to create an executable without -o first, disregard a.out.
2350# It will help us diagnose broken compilers, and finding out an intuition
2351# of exeext.
2352echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2353echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2354ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2355if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2356 (eval $ac_link_default) 2>&5
2357 ac_status=$?
2358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2359 (exit $ac_status); }; then
2360 # Find the output, starting from the most likely. This scheme is
2361# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2362# resort.
2363
2364# Be careful to initialize this variable, since it used to be cached.
2365# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2366ac_cv_exeext=
2367# b.out is created by i960 compilers.
2368for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2369do
2370 test -f "$ac_file" || continue
2371 case $ac_file in
2372 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2373 ;;
2374 conftest.$ac_ext )
2375 # This is the source file.
2376 ;;
2377 [ab].out )
2378 # We found the default executable, but exeext='' is most
2379 # certainly right.
2380 break;;
2381 *.* )
2382 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2383 # FIXME: I believe we export ac_cv_exeext for Libtool,
2384 # but it would be cool to find out if it's true. Does anybody
2385 # maintain Libtool? --akim.
2386 export ac_cv_exeext
2387 break;;
2388 * )
2389 break;;
2390 esac
2391done
2392else
2393 echo "$as_me: failed program was:" >&5
2394sed 's/^/| /' conftest.$ac_ext >&5
2395
2396{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2397See \`config.log' for more details." >&5
2398echo "$as_me: error: C compiler cannot create executables
2399See \`config.log' for more details." >&2;}
2400 { (exit 77); exit 77; }; }
2401fi
2402
2403ac_exeext=$ac_cv_exeext
2404echo "$as_me:$LINENO: result: $ac_file" >&5
2405echo "${ECHO_T}$ac_file" >&6
2406
2407# Check the compiler produces executables we can run. If not, either
2408# the compiler is broken, or we cross compile.
2409echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2410echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2411# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2412# If not cross compiling, check that we can run a simple program.
2413if test "$cross_compiling" != yes; then
2414 if { ac_try='./$ac_file'
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 cross_compiling=no
2421 else
2422 if test "$cross_compiling" = maybe; then
2423 cross_compiling=yes
2424 else
2425 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2426If you meant to cross compile, use \`--host'.
2427See \`config.log' for more details." >&5
2428echo "$as_me: error: cannot run C compiled programs.
2429If you meant to cross compile, use \`--host'.
2430See \`config.log' for more details." >&2;}
2431 { (exit 1); exit 1; }; }
2432 fi
2433 fi
2434fi
2435echo "$as_me:$LINENO: result: yes" >&5
2436echo "${ECHO_T}yes" >&6
2437
2438rm -f a.out a.exe conftest$ac_cv_exeext b.out
2439ac_clean_files=$ac_clean_files_save
2440# Check the compiler produces executables we can run. If not, either
2441# the compiler is broken, or we cross compile.
2442echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2443echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2444echo "$as_me:$LINENO: result: $cross_compiling" >&5
2445echo "${ECHO_T}$cross_compiling" >&6
2446
2447echo "$as_me:$LINENO: checking for suffix of executables" >&5
2448echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2449if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2450 (eval $ac_link) 2>&5
2451 ac_status=$?
2452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2453 (exit $ac_status); }; then
2454 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2455# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2456# work properly (i.e., refer to `conftest.exe'), while it won't with
2457# `rm'.
2458for ac_file in conftest.exe conftest conftest.*; do
2459 test -f "$ac_file" || continue
2460 case $ac_file in
2461 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2462 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2463 export ac_cv_exeext
2464 break;;
2465 * ) break;;
2466 esac
2467done
2468else
2469 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2470See \`config.log' for more details." >&5
2471echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2472See \`config.log' for more details." >&2;}
2473 { (exit 1); exit 1; }; }
2474fi
2475
2476rm -f conftest$ac_cv_exeext
2477echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2478echo "${ECHO_T}$ac_cv_exeext" >&6
2479
2480rm -f conftest.$ac_ext
2481EXEEXT=$ac_cv_exeext
2482ac_exeext=$EXEEXT
2483echo "$as_me:$LINENO: checking for suffix of object files" >&5
2484echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2485if test "${ac_cv_objext+set}" = set; then
2486 echo $ECHO_N "(cached) $ECHO_C" >&6
2487else
2488 cat >conftest.$ac_ext <<_ACEOF
2489/* confdefs.h. */
2490_ACEOF
2491cat confdefs.h >>conftest.$ac_ext
2492cat >>conftest.$ac_ext <<_ACEOF
2493/* end confdefs.h. */
2494
2495int
2496main ()
2497{
2498
2499 ;
2500 return 0;
2501}
2502_ACEOF
2503rm -f conftest.o conftest.obj
2504if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2505 (eval $ac_compile) 2>&5
2506 ac_status=$?
2507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2508 (exit $ac_status); }; then
2509 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2510 case $ac_file in
2511 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2512 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2513 break;;
2514 esac
2515done
2516else
2517 echo "$as_me: failed program was:" >&5
2518sed 's/^/| /' conftest.$ac_ext >&5
2519
2520{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2521See \`config.log' for more details." >&5
2522echo "$as_me: error: cannot compute suffix of object files: cannot compile
2523See \`config.log' for more details." >&2;}
2524 { (exit 1); exit 1; }; }
2525fi
2526
2527rm -f conftest.$ac_cv_objext conftest.$ac_ext
2528fi
2529echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2530echo "${ECHO_T}$ac_cv_objext" >&6
2531OBJEXT=$ac_cv_objext
2532ac_objext=$OBJEXT
2533echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2534echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2535if test "${ac_cv_c_compiler_gnu+set}" = set; then
2536 echo $ECHO_N "(cached) $ECHO_C" >&6
2537else
2538 cat >conftest.$ac_ext <<_ACEOF
2539/* confdefs.h. */
2540_ACEOF
2541cat confdefs.h >>conftest.$ac_ext
2542cat >>conftest.$ac_ext <<_ACEOF
2543/* end confdefs.h. */
2544
2545int
2546main ()
2547{
2548#ifndef __GNUC__
2549 choke me
2550#endif
2551
2552 ;
2553 return 0;
2554}
2555_ACEOF
2556rm -f conftest.$ac_objext
2557if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2558 (eval $ac_compile) 2>conftest.er1
2559 ac_status=$?
2560 grep -v '^ *+' conftest.er1 >conftest.err
2561 rm -f conftest.er1
2562 cat conftest.err >&5
2563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2564 (exit $ac_status); } &&
453310d8
RS
2565 { ac_try='test -z "$ac_c_werror_flag"
2566 || test ! -s conftest.err'
6de9cd9a
DN
2567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2568 (eval $ac_try) 2>&5
2569 ac_status=$?
2570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2571 (exit $ac_status); }; } &&
2572 { ac_try='test -s conftest.$ac_objext'
2573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2574 (eval $ac_try) 2>&5
2575 ac_status=$?
2576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2577 (exit $ac_status); }; }; then
2578 ac_compiler_gnu=yes
2579else
2580 echo "$as_me: failed program was:" >&5
2581sed 's/^/| /' conftest.$ac_ext >&5
2582
2583ac_compiler_gnu=no
2584fi
2585rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2586ac_cv_c_compiler_gnu=$ac_compiler_gnu
2587
2588fi
2589echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2590echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2591GCC=`test $ac_compiler_gnu = yes && echo yes`
2592ac_test_CFLAGS=${CFLAGS+set}
2593ac_save_CFLAGS=$CFLAGS
2594CFLAGS="-g"
2595echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2596echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2597if test "${ac_cv_prog_cc_g+set}" = set; then
2598 echo $ECHO_N "(cached) $ECHO_C" >&6
2599else
2600 cat >conftest.$ac_ext <<_ACEOF
2601/* confdefs.h. */
2602_ACEOF
2603cat confdefs.h >>conftest.$ac_ext
2604cat >>conftest.$ac_ext <<_ACEOF
2605/* end confdefs.h. */
2606
2607int
2608main ()
2609{
2610
2611 ;
2612 return 0;
2613}
2614_ACEOF
2615rm -f conftest.$ac_objext
2616if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2617 (eval $ac_compile) 2>conftest.er1
2618 ac_status=$?
2619 grep -v '^ *+' conftest.er1 >conftest.err
2620 rm -f conftest.er1
2621 cat conftest.err >&5
2622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2623 (exit $ac_status); } &&
453310d8
RS
2624 { ac_try='test -z "$ac_c_werror_flag"
2625 || test ! -s conftest.err'
6de9cd9a
DN
2626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2627 (eval $ac_try) 2>&5
2628 ac_status=$?
2629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2630 (exit $ac_status); }; } &&
2631 { ac_try='test -s conftest.$ac_objext'
2632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2633 (eval $ac_try) 2>&5
2634 ac_status=$?
2635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2636 (exit $ac_status); }; }; then
2637 ac_cv_prog_cc_g=yes
2638else
2639 echo "$as_me: failed program was:" >&5
2640sed 's/^/| /' conftest.$ac_ext >&5
2641
2642ac_cv_prog_cc_g=no
2643fi
2644rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2645fi
2646echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2647echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2648if test "$ac_test_CFLAGS" = set; then
2649 CFLAGS=$ac_save_CFLAGS
2650elif test $ac_cv_prog_cc_g = yes; then
2651 if test "$GCC" = yes; then
2652 CFLAGS="-g -O2"
2653 else
2654 CFLAGS="-g"
2655 fi
2656else
2657 if test "$GCC" = yes; then
2658 CFLAGS="-O2"
2659 else
2660 CFLAGS=
2661 fi
2662fi
2663echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2664echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2665if test "${ac_cv_prog_cc_stdc+set}" = set; then
2666 echo $ECHO_N "(cached) $ECHO_C" >&6
2667else
2668 ac_cv_prog_cc_stdc=no
2669ac_save_CC=$CC
2670cat >conftest.$ac_ext <<_ACEOF
2671/* confdefs.h. */
2672_ACEOF
2673cat confdefs.h >>conftest.$ac_ext
2674cat >>conftest.$ac_ext <<_ACEOF
2675/* end confdefs.h. */
2676#include <stdarg.h>
2677#include <stdio.h>
2678#include <sys/types.h>
2679#include <sys/stat.h>
2680/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2681struct buf { int x; };
2682FILE * (*rcsopen) (struct buf *, struct stat *, int);
2683static char *e (p, i)
2684 char **p;
2685 int i;
2686{
2687 return p[i];
2688}
2689static char *f (char * (*g) (char **, int), char **p, ...)
2690{
2691 char *s;
2692 va_list v;
2693 va_start (v,p);
2694 s = g (p, va_arg (v,int));
2695 va_end (v);
2696 return s;
2697}
2698
2699/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2700 function prototypes and stuff, but not '\xHH' hex character constants.
2701 These don't provoke an error unfortunately, instead are silently treated
2702 as 'x'. The following induces an error, until -std1 is added to get
2703 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2704 array size at least. It's necessary to write '\x00'==0 to get something
2705 that's true only with -std1. */
2706int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2707
2708int test (int i, double x);
2709struct s1 {int (*f) (int a);};
2710struct s2 {int (*f) (double a);};
2711int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2712int argc;
2713char **argv;
2714int
2715main ()
2716{
2717return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2718 ;
2719 return 0;
2720}
2721_ACEOF
2722# Don't try gcc -ansi; that turns off useful extensions and
2723# breaks some systems' header files.
2724# AIX -qlanglvl=ansi
2725# Ultrix and OSF/1 -std1
2726# HP-UX 10.20 and later -Ae
2727# HP-UX older versions -Aa -D_HPUX_SOURCE
2728# SVR4 -Xc -D__EXTENSIONS__
2729for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2730do
2731 CC="$ac_save_CC $ac_arg"
2732 rm -f conftest.$ac_objext
2733if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2734 (eval $ac_compile) 2>conftest.er1
2735 ac_status=$?
2736 grep -v '^ *+' conftest.er1 >conftest.err
2737 rm -f conftest.er1
2738 cat conftest.err >&5
2739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2740 (exit $ac_status); } &&
453310d8
RS
2741 { ac_try='test -z "$ac_c_werror_flag"
2742 || test ! -s conftest.err'
6de9cd9a
DN
2743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2744 (eval $ac_try) 2>&5
2745 ac_status=$?
2746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2747 (exit $ac_status); }; } &&
2748 { ac_try='test -s conftest.$ac_objext'
2749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2750 (eval $ac_try) 2>&5
2751 ac_status=$?
2752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2753 (exit $ac_status); }; }; then
2754 ac_cv_prog_cc_stdc=$ac_arg
2755break
2756else
2757 echo "$as_me: failed program was:" >&5
2758sed 's/^/| /' conftest.$ac_ext >&5
2759
2760fi
2761rm -f conftest.err conftest.$ac_objext
2762done
2763rm -f conftest.$ac_ext conftest.$ac_objext
2764CC=$ac_save_CC
2765
2766fi
2767
2768case "x$ac_cv_prog_cc_stdc" in
2769 x|xno)
2770 echo "$as_me:$LINENO: result: none needed" >&5
2771echo "${ECHO_T}none needed" >&6 ;;
2772 *)
2773 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2774echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2775 CC="$CC $ac_cv_prog_cc_stdc" ;;
2776esac
2777
2778# Some people use a C++ compiler to compile C. Since we use `exit',
2779# in C++ we need to declare it. In case someone uses the same compiler
2780# for both compiling C and C++ we need to have the C++ compiler decide
2781# the declaration of exit, since it's the most demanding environment.
2782cat >conftest.$ac_ext <<_ACEOF
2783#ifndef __cplusplus
2784 choke me
2785#endif
2786_ACEOF
2787rm -f conftest.$ac_objext
2788if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2789 (eval $ac_compile) 2>conftest.er1
2790 ac_status=$?
2791 grep -v '^ *+' conftest.er1 >conftest.err
2792 rm -f conftest.er1
2793 cat conftest.err >&5
2794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2795 (exit $ac_status); } &&
453310d8
RS
2796 { ac_try='test -z "$ac_c_werror_flag"
2797 || test ! -s conftest.err'
6de9cd9a
DN
2798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2799 (eval $ac_try) 2>&5
2800 ac_status=$?
2801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2802 (exit $ac_status); }; } &&
2803 { ac_try='test -s conftest.$ac_objext'
2804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2805 (eval $ac_try) 2>&5
2806 ac_status=$?
2807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2808 (exit $ac_status); }; }; then
2809 for ac_declaration in \
2810 '' \
2811 'extern "C" void std::exit (int) throw (); using std::exit;' \
2812 'extern "C" void std::exit (int); using std::exit;' \
2813 'extern "C" void exit (int) throw ();' \
2814 'extern "C" void exit (int);' \
2815 'void exit (int);'
2816do
2817 cat >conftest.$ac_ext <<_ACEOF
2818/* confdefs.h. */
2819_ACEOF
2820cat confdefs.h >>conftest.$ac_ext
2821cat >>conftest.$ac_ext <<_ACEOF
2822/* end confdefs.h. */
2823$ac_declaration
2824#include <stdlib.h>
2825int
2826main ()
2827{
2828exit (42);
2829 ;
2830 return 0;
2831}
2832_ACEOF
2833rm -f conftest.$ac_objext
2834if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2835 (eval $ac_compile) 2>conftest.er1
2836 ac_status=$?
2837 grep -v '^ *+' conftest.er1 >conftest.err
2838 rm -f conftest.er1
2839 cat conftest.err >&5
2840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2841 (exit $ac_status); } &&
453310d8
RS
2842 { ac_try='test -z "$ac_c_werror_flag"
2843 || test ! -s conftest.err'
6de9cd9a
DN
2844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2845 (eval $ac_try) 2>&5
2846 ac_status=$?
2847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2848 (exit $ac_status); }; } &&
2849 { ac_try='test -s conftest.$ac_objext'
2850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2851 (eval $ac_try) 2>&5
2852 ac_status=$?
2853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2854 (exit $ac_status); }; }; then
2855 :
2856else
2857 echo "$as_me: failed program was:" >&5
2858sed 's/^/| /' conftest.$ac_ext >&5
2859
2860continue
2861fi
2862rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2863 cat >conftest.$ac_ext <<_ACEOF
2864/* confdefs.h. */
2865_ACEOF
2866cat confdefs.h >>conftest.$ac_ext
2867cat >>conftest.$ac_ext <<_ACEOF
2868/* end confdefs.h. */
2869$ac_declaration
2870int
2871main ()
2872{
2873exit (42);
2874 ;
2875 return 0;
2876}
2877_ACEOF
2878rm -f conftest.$ac_objext
2879if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2880 (eval $ac_compile) 2>conftest.er1
2881 ac_status=$?
2882 grep -v '^ *+' conftest.er1 >conftest.err
2883 rm -f conftest.er1
2884 cat conftest.err >&5
2885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2886 (exit $ac_status); } &&
453310d8
RS
2887 { ac_try='test -z "$ac_c_werror_flag"
2888 || test ! -s conftest.err'
6de9cd9a
DN
2889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2890 (eval $ac_try) 2>&5
2891 ac_status=$?
2892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2893 (exit $ac_status); }; } &&
2894 { ac_try='test -s conftest.$ac_objext'
2895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2896 (eval $ac_try) 2>&5
2897 ac_status=$?
2898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2899 (exit $ac_status); }; }; then
2900 break
2901else
2902 echo "$as_me: failed program was:" >&5
2903sed 's/^/| /' conftest.$ac_ext >&5
2904
2905fi
2906rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2907done
2908rm -f conftest*
2909if test -n "$ac_declaration"; then
2910 echo '#ifdef __cplusplus' >>confdefs.h
2911 echo $ac_declaration >>confdefs.h
2912 echo '#endif' >>confdefs.h
2913fi
2914
2915else
2916 echo "$as_me: failed program was:" >&5
2917sed 's/^/| /' conftest.$ac_ext >&5
2918
2919fi
2920rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2921ac_ext=c
2922ac_cpp='$CPP $CPPFLAGS'
2923ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2924ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2925ac_compiler_gnu=$ac_cv_c_compiler_gnu
6de9cd9a 2926
6de9cd9a 2927
6de9cd9a 2928
6de9cd9a
DN
2929
2930
96b8a615
AJ
2931# Add -Wall if we are using GCC.
2932if test "x$GCC" = "xyes"; then
2933 CFLAGS="$CFLAGS -Wall"
6de9cd9a
DN
2934fi
2935
96b8a615
AJ
2936# Find other programs we need.
2937if test -n "$ac_tool_prefix"; then
2938 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
2939set dummy ${ac_tool_prefix}as; ac_word=$2
2940echo "$as_me:$LINENO: checking for $ac_word" >&5
2941echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2942if test "${ac_cv_prog_AS+set}" = set; then
6de9cd9a
DN
2943 echo $ECHO_N "(cached) $ECHO_C" >&6
2944else
96b8a615
AJ
2945 if test -n "$AS"; then
2946 ac_cv_prog_AS="$AS" # Let the user override the test.
2947else
2948as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2949for as_dir in $PATH
2950do
2951 IFS=$as_save_IFS
2952 test -z "$as_dir" && as_dir=.
2953 for ac_exec_ext in '' $ac_executable_extensions; do
2954 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2955 ac_cv_prog_AS="${ac_tool_prefix}as"
2956 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2957 break 2
6de9cd9a 2958 fi
96b8a615
AJ
2959done
2960done
6de9cd9a 2961
96b8a615
AJ
2962fi
2963fi
2964AS=$ac_cv_prog_AS
2965if test -n "$AS"; then
2966 echo "$as_me:$LINENO: result: $AS" >&5
2967echo "${ECHO_T}$AS" >&6
6de9cd9a 2968else
96b8a615
AJ
2969 echo "$as_me:$LINENO: result: no" >&5
2970echo "${ECHO_T}no" >&6
6de9cd9a
DN
2971fi
2972
2973fi
96b8a615
AJ
2974if test -z "$ac_cv_prog_AS"; then
2975 ac_ct_AS=$AS
2976 # Extract the first word of "as", so it can be a program name with args.
2977set dummy as; ac_word=$2
2978echo "$as_me:$LINENO: checking for $ac_word" >&5
2979echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2980if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
2981 echo $ECHO_N "(cached) $ECHO_C" >&6
2982else
2983 if test -n "$ac_ct_AS"; then
2984 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
2985else
2986as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2987for as_dir in $PATH
2988do
2989 IFS=$as_save_IFS
2990 test -z "$as_dir" && as_dir=.
2991 for ac_exec_ext in '' $ac_executable_extensions; do
2992 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2993 ac_cv_prog_ac_ct_AS="as"
2994 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2995 break 2
2996 fi
2997done
2998done
6de9cd9a 2999
96b8a615
AJ
3000fi
3001fi
3002ac_ct_AS=$ac_cv_prog_ac_ct_AS
3003if test -n "$ac_ct_AS"; then
3004 echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
3005echo "${ECHO_T}$ac_ct_AS" >&6
6de9cd9a 3006else
96b8a615
AJ
3007 echo "$as_me:$LINENO: result: no" >&5
3008echo "${ECHO_T}no" >&6
6de9cd9a
DN
3009fi
3010
96b8a615
AJ
3011 AS=$ac_ct_AS
3012else
3013 AS="$ac_cv_prog_AS"
6de9cd9a
DN
3014fi
3015
6de9cd9a 3016if test -n "$ac_tool_prefix"; then
96b8a615
AJ
3017 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3018set dummy ${ac_tool_prefix}ar; ac_word=$2
6de9cd9a
DN
3019echo "$as_me:$LINENO: checking for $ac_word" >&5
3020echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
96b8a615 3021if test "${ac_cv_prog_AR+set}" = set; then
6de9cd9a
DN
3022 echo $ECHO_N "(cached) $ECHO_C" >&6
3023else
96b8a615
AJ
3024 if test -n "$AR"; then
3025 ac_cv_prog_AR="$AR" # Let the user override the test.
6de9cd9a
DN
3026else
3027as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3028for as_dir in $PATH
3029do
3030 IFS=$as_save_IFS
3031 test -z "$as_dir" && as_dir=.
3032 for ac_exec_ext in '' $ac_executable_extensions; do
3033 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
96b8a615 3034 ac_cv_prog_AR="${ac_tool_prefix}ar"
6de9cd9a
DN
3035 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3036 break 2
3037 fi
3038done
3039done
3040
3041fi
3042fi
96b8a615
AJ
3043AR=$ac_cv_prog_AR
3044if test -n "$AR"; then
3045 echo "$as_me:$LINENO: result: $AR" >&5
3046echo "${ECHO_T}$AR" >&6
6de9cd9a
DN
3047else
3048 echo "$as_me:$LINENO: result: no" >&5
3049echo "${ECHO_T}no" >&6
3050fi
3051
6de9cd9a 3052fi
96b8a615
AJ
3053if test -z "$ac_cv_prog_AR"; then
3054 ac_ct_AR=$AR
3055 # Extract the first word of "ar", so it can be a program name with args.
3056set dummy ar; ac_word=$2
6de9cd9a
DN
3057echo "$as_me:$LINENO: checking for $ac_word" >&5
3058echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
96b8a615 3059if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6de9cd9a
DN
3060 echo $ECHO_N "(cached) $ECHO_C" >&6
3061else
96b8a615
AJ
3062 if test -n "$ac_ct_AR"; then
3063 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6de9cd9a
DN
3064else
3065as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3066for as_dir in $PATH
3067do
3068 IFS=$as_save_IFS
3069 test -z "$as_dir" && as_dir=.
3070 for ac_exec_ext in '' $ac_executable_extensions; do
3071 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
96b8a615 3072 ac_cv_prog_ac_ct_AR="ar"
6de9cd9a
DN
3073 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3074 break 2
3075 fi
3076done
3077done
3078
3079fi
3080fi
96b8a615
AJ
3081ac_ct_AR=$ac_cv_prog_ac_ct_AR
3082if test -n "$ac_ct_AR"; then
3083 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
3084echo "${ECHO_T}$ac_ct_AR" >&6
6de9cd9a
DN
3085else
3086 echo "$as_me:$LINENO: result: no" >&5
3087echo "${ECHO_T}no" >&6
3088fi
3089
96b8a615
AJ
3090 AR=$ac_ct_AR
3091else
3092 AR="$ac_cv_prog_AR"
6de9cd9a
DN
3093fi
3094
96b8a615
AJ
3095if test -n "$ac_tool_prefix"; then
3096 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3097set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3098echo "$as_me:$LINENO: checking for $ac_word" >&5
3099echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3100if test "${ac_cv_prog_RANLIB+set}" = set; then
6de9cd9a
DN
3101 echo $ECHO_N "(cached) $ECHO_C" >&6
3102else
96b8a615
AJ
3103 if test -n "$RANLIB"; then
3104 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6de9cd9a 3105else
96b8a615
AJ
3106as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3107for as_dir in $PATH
3108do
3109 IFS=$as_save_IFS
3110 test -z "$as_dir" && as_dir=.
3111 for ac_exec_ext in '' $ac_executable_extensions; do
3112 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3113 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3114 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3115 break 2
3116 fi
3117done
3118done
6de9cd9a 3119
6de9cd9a 3120fi
96b8a615
AJ
3121fi
3122RANLIB=$ac_cv_prog_RANLIB
3123if test -n "$RANLIB"; then
3124 echo "$as_me:$LINENO: result: $RANLIB" >&5
3125echo "${ECHO_T}$RANLIB" >&6
3126else
3127 echo "$as_me:$LINENO: result: no" >&5
3128echo "${ECHO_T}no" >&6
3129fi
6de9cd9a
DN
3130
3131fi
96b8a615
AJ
3132if test -z "$ac_cv_prog_RANLIB"; then
3133 ac_ct_RANLIB=$RANLIB
3134 # Extract the first word of "ranlib", so it can be a program name with args.
3135set dummy ranlib; ac_word=$2
3136echo "$as_me:$LINENO: checking for $ac_word" >&5
3137echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3138if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6de9cd9a
DN
3139 echo $ECHO_N "(cached) $ECHO_C" >&6
3140else
96b8a615
AJ
3141 if test -n "$ac_ct_RANLIB"; then
3142 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6de9cd9a 3143else
96b8a615
AJ
3144as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3145for as_dir in $PATH
3146do
3147 IFS=$as_save_IFS
3148 test -z "$as_dir" && as_dir=.
3149 for ac_exec_ext in '' $ac_executable_extensions; do
3150 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3151 ac_cv_prog_ac_ct_RANLIB="ranlib"
3152 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3153 break 2
3154 fi
3155done
3156done
6de9cd9a 3157
96b8a615 3158 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB="ranlib-not-found-in-path-error"
6de9cd9a 3159fi
6de9cd9a 3160fi
96b8a615
AJ
3161ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3162if test -n "$ac_ct_RANLIB"; then
3163 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3164echo "${ECHO_T}$ac_ct_RANLIB" >&6
6de9cd9a 3165else
96b8a615
AJ
3166 echo "$as_me:$LINENO: result: no" >&5
3167echo "${ECHO_T}no" >&6
6de9cd9a
DN
3168fi
3169
96b8a615
AJ
3170 RANLIB=$ac_ct_RANLIB
3171else
3172 RANLIB="$ac_cv_prog_RANLIB"
6de9cd9a 3173fi
96b8a615
AJ
3174
3175echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3176echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
3177set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
3178if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
6de9cd9a
DN
3179 echo $ECHO_N "(cached) $ECHO_C" >&6
3180else
96b8a615
AJ
3181 cat >conftest.make <<\_ACEOF
3182all:
3183 @echo 'ac_maketemp="$(MAKE)"'
6de9cd9a 3184_ACEOF
96b8a615
AJ
3185# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3186eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
3187if test -n "$ac_maketemp"; then
3188 eval ac_cv_prog_make_${ac_make}_set=yes
6de9cd9a 3189else
96b8a615 3190 eval ac_cv_prog_make_${ac_make}_set=no
6de9cd9a 3191fi
96b8a615
AJ
3192rm -f conftest.make
3193fi
3194if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3195 echo "$as_me:$LINENO: result: yes" >&5
3196echo "${ECHO_T}yes" >&6
3197 SET_MAKE=
6de9cd9a 3198else
96b8a615
AJ
3199 echo "$as_me:$LINENO: result: no" >&5
3200echo "${ECHO_T}no" >&6
3201 SET_MAKE="MAKE=${MAKE-make}"
6de9cd9a 3202fi
6de9cd9a 3203
96b8a615
AJ
3204# Find a good install program. We prefer a C program (faster),
3205# so one script is as good as another. But avoid the broken or
3206# incompatible versions:
3207# SysV /etc/install, /usr/sbin/install
3208# SunOS /usr/etc/install
3209# IRIX /sbin/install
3210# AIX /bin/install
3211# AmigaOS /C/install, which installs bootblocks on floppy discs
3212# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3213# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3214# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3215# OS/2's system install, which has a completely different semantic
3216# ./install, which can be erroneously created by make from ./install.sh.
3217echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3218echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3219if test -z "$INSTALL"; then
3220if test "${ac_cv_path_install+set}" = set; then
3221 echo $ECHO_N "(cached) $ECHO_C" >&6
6de9cd9a 3222else
96b8a615
AJ
3223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3224for as_dir in $PATH
3225do
3226 IFS=$as_save_IFS
3227 test -z "$as_dir" && as_dir=.
3228 # Account for people who put trailing slashes in PATH elements.
3229case $as_dir/ in
3230 ./ | .// | /cC/* | \
3231 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3232 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3233 /usr/ucb/* ) ;;
3234 *)
3235 # OSF1 and SCO ODT 3.0 have their own names for install.
3236 # Don't use installbsd from OSF since it installs stuff as root
3237 # by default.
3238 for ac_prog in ginstall scoinst install; do
3239 for ac_exec_ext in '' $ac_executable_extensions; do
3240 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3241 if test $ac_prog = install &&
3242 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3243 # AIX install. It has an incompatible calling convention.
3244 :
3245 elif test $ac_prog = install &&
3246 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3247 # program-specific install script used by HP pwplus--don't use.
3248 :
3249 else
3250 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3251 break 3
3252 fi
3253 fi
3254 done
3255 done
3256 ;;
3257esac
6de9cd9a 3258done
6de9cd9a 3259
6de9cd9a
DN
3260
3261fi
96b8a615
AJ
3262 if test "${ac_cv_path_install+set}" = set; then
3263 INSTALL=$ac_cv_path_install
6de9cd9a 3264 else
96b8a615
AJ
3265 # As a last resort, use the slow shell script. We don't cache a
3266 # path for INSTALL within a source directory, because that will
3267 # break other packages using the cache if that directory is
3268 # removed, or if the path is relative.
3269 INSTALL=$ac_install_sh
6de9cd9a 3270 fi
6de9cd9a 3271fi
96b8a615
AJ
3272echo "$as_me:$LINENO: result: $INSTALL" >&5
3273echo "${ECHO_T}$INSTALL" >&6
6de9cd9a 3274
96b8a615
AJ
3275# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3276# It thinks the first close brace ends the variable substitution.
3277test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
6de9cd9a 3278
96b8a615 3279test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
6de9cd9a 3280
96b8a615 3281test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
6de9cd9a 3282
6de9cd9a 3283
96b8a615
AJ
3284# Configure libtool
3285#AC_MSG_NOTICE([====== Starting libtool configuration])
6de9cd9a 3286
96b8a615
AJ
3287# Check whether --enable-shared or --disable-shared was given.
3288if test "${enable_shared+set}" = set; then
3289 enableval="$enable_shared"
3290 p=${PACKAGE-default}
3291case $enableval in
3292yes) enable_shared=yes ;;
3293no) enable_shared=no ;;
3294*)
3295 enable_shared=no
3296 # Look at the argument we got. We use all the common list separators.
3297 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3298 for pkg in $enableval; do
3299 if test "X$pkg" = "X$p"; then
3300 enable_shared=yes
6de9cd9a 3301 fi
96b8a615
AJ
3302 done
3303 IFS="$ac_save_ifs"
3304 ;;
3305esac
6de9cd9a 3306else
96b8a615
AJ
3307 enable_shared=yes
3308fi;
3309# Check whether --enable-static or --disable-static was given.
3310if test "${enable_static+set}" = set; then
3311 enableval="$enable_static"
3312 p=${PACKAGE-default}
3313case $enableval in
3314yes) enable_static=yes ;;
3315no) enable_static=no ;;
3316*)
3317 enable_static=no
3318 # Look at the argument we got. We use all the common list separators.
3319 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3320 for pkg in $enableval; do
3321 if test "X$pkg" = "X$p"; then
3322 enable_static=yes
3323 fi
3324 done
3325 IFS="$ac_save_ifs"
3326 ;;
3327esac
3328else
3329 enable_static=yes
3330fi;
3331# Check whether --enable-fast-install or --disable-fast-install was given.
3332if test "${enable_fast_install+set}" = set; then
3333 enableval="$enable_fast_install"
3334 p=${PACKAGE-default}
3335case $enableval in
3336yes) enable_fast_install=yes ;;
3337no) enable_fast_install=no ;;
3338*)
3339 enable_fast_install=no
3340 # Look at the argument we got. We use all the common list separators.
3341 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3342 for pkg in $enableval; do
3343 if test "X$pkg" = "X$p"; then
3344 enable_fast_install=yes
3345 fi
3346 done
3347 IFS="$ac_save_ifs"
3348 ;;
3349esac
3350else
3351 enable_fast_install=yes
3352fi;
6de9cd9a 3353
96b8a615
AJ
3354# Check whether --with-gnu-ld or --without-gnu-ld was given.
3355if test "${with_gnu_ld+set}" = set; then
3356 withval="$with_gnu_ld"
3357 test "$withval" = no || with_gnu_ld=yes
3358else
3359 with_gnu_ld=no
3360fi;
3361ac_prog=ld
3362if test "$GCC" = yes; then
3363 # Check if gcc -print-prog-name=ld gives a path.
3364 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
3365echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
3366 case $host in
3367 *-*-mingw*)
3368 # gcc leaves a trailing carriage return which upsets mingw
3369 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3370 *)
3371 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3372 esac
3373 case $ac_prog in
3374 # Accept absolute paths.
3375 [\\/]* | [A-Za-z]:[\\/]*)
3376 re_direlt='/[^/][^/]*/\.\./'
3377 # Canonicalize the path of ld
3378 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
3379 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3380 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
3381 done
3382 test -z "$LD" && LD="$ac_prog"
3383 ;;
3384 "")
3385 # If it fails, then pretend we aren't using GCC.
3386 ac_prog=ld
3387 ;;
3388 *)
3389 # If it is relative, then search for the first ld in PATH.
3390 with_gnu_ld=unknown
3391 ;;
3392 esac
3393elif test "$with_gnu_ld" = yes; then
3394 echo "$as_me:$LINENO: checking for GNU ld" >&5
3395echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3396else
3397 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3398echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3399fi
3400if test "${lt_cv_path_LD+set}" = set; then
3401 echo $ECHO_N "(cached) $ECHO_C" >&6
3402else
3403 if test -z "$LD"; then
3404 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
3405 for ac_dir in $PATH; do
3406 test -z "$ac_dir" && ac_dir=.
3407 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3408 lt_cv_path_LD="$ac_dir/$ac_prog"
3409 # Check to see if the program is GNU ld. I'd rather use --version,
3410 # but apparently some GNU ld's only accept -v.
3411 # Break only if it was the GNU/non-GNU ld that we prefer.
3412 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
3413 test "$with_gnu_ld" != no && break
3414 else
3415 test "$with_gnu_ld" != yes && break
3416 fi
3417 fi
3418 done
3419 IFS="$ac_save_ifs"
3420else
3421 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3422fi
3423fi
3424
3425LD="$lt_cv_path_LD"
3426if test -n "$LD"; then
3427 echo "$as_me:$LINENO: result: $LD" >&5
3428echo "${ECHO_T}$LD" >&6
3429else
3430 echo "$as_me:$LINENO: result: no" >&5
3431echo "${ECHO_T}no" >&6
3432fi
3433test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3434echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3435 { (exit 1); exit 1; }; }
3436echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3437echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3438if test "${lt_cv_prog_gnu_ld+set}" = set; then
3439 echo $ECHO_N "(cached) $ECHO_C" >&6
3440else
3441 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3442if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
3443 lt_cv_prog_gnu_ld=yes
3444else
3445 lt_cv_prog_gnu_ld=no
3446fi
3447fi
3448echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3449echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3450with_gnu_ld=$lt_cv_prog_gnu_ld
3451
3452
3453echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3454echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3455if test "${lt_cv_ld_reload_flag+set}" = set; then
3456 echo $ECHO_N "(cached) $ECHO_C" >&6
3457else
3458 lt_cv_ld_reload_flag='-r'
3459fi
3460echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3461echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3462reload_flag=$lt_cv_ld_reload_flag
3463test -n "$reload_flag" && reload_flag=" $reload_flag"
3464
3465echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3466echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3467if test "${lt_cv_path_NM+set}" = set; then
3468 echo $ECHO_N "(cached) $ECHO_C" >&6
3469else
3470 if test -n "$NM"; then
3471 # Let the user override the test.
3472 lt_cv_path_NM="$NM"
3473else
3474 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
3475 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3476 test -z "$ac_dir" && ac_dir=.
3477 tmp_nm=$ac_dir/${ac_tool_prefix}nm
3478 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
3479 # Check to see if the nm accepts a BSD-compat flag.
3480 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3481 # nm: unknown option "B" ignored
3482 # Tru64's nm complains that /dev/null is an invalid object file
3483 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
3484 lt_cv_path_NM="$tmp_nm -B"
3485 break
3486 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
3487 lt_cv_path_NM="$tmp_nm -p"
3488 break
3489 else
3490 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3491 continue # so that we can try to find one that supports BSD flags
3492 fi
3493 fi
3494 done
3495 IFS="$ac_save_ifs"
3496 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3497fi
3498fi
3499
3500NM="$lt_cv_path_NM"
3501echo "$as_me:$LINENO: result: $NM" >&5
3502echo "${ECHO_T}$NM" >&6
3503
3504echo "$as_me:$LINENO: checking whether ln -s works" >&5
3505echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3506LN_S=$as_ln_s
3507if test "$LN_S" = "ln -s"; then
3508 echo "$as_me:$LINENO: result: yes" >&5
3509echo "${ECHO_T}yes" >&6
3510else
3511 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3512echo "${ECHO_T}no, using $LN_S" >&6
3513fi
3514
3515echo "$as_me:$LINENO: checking how to recognise dependant libraries" >&5
3516echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6
3517if test "${lt_cv_deplibs_check_method+set}" = set; then
3518 echo $ECHO_N "(cached) $ECHO_C" >&6
3519else
3520 lt_cv_file_magic_cmd='$MAGIC_CMD'
3521lt_cv_file_magic_test_file=
3522lt_cv_deplibs_check_method='unknown'
3523# Need to set the preceding variable on all platforms that support
3524# interlibrary dependencies.
3525# 'none' -- dependencies not supported.
3526# `unknown' -- same as none, but documents that we really don't know.
3527# 'pass_all' -- all dependencies passed with no checks.
3528# 'test_compile' -- check by making test program.
3529# 'file_magic [regex]' -- check by looking for files in library path
3530# which responds to the $file_magic_cmd with a given egrep regex.
3531# If you have `file' or equivalent on your system and you're not sure
3532# whether `pass_all' will *always* work, you probably want this one.
3533
3534case $host_os in
3535aix*)
3536 lt_cv_deplibs_check_method=pass_all
3537 ;;
3538
3539beos*)
3540 lt_cv_deplibs_check_method=pass_all
3541 ;;
3542
3543bsdi4*)
3544 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3545 lt_cv_file_magic_cmd='/usr/bin/file -L'
3546 lt_cv_file_magic_test_file=/shlib/libc.so
3547 ;;
3548
3549cygwin* | mingw* |pw32*)
3550 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3551 lt_cv_file_magic_cmd='$OBJDUMP -f'
3552 ;;
3553
3554darwin* | rhapsody*)
3555 # this will be overwritten by pass_all, but leave it in just in case
3556 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
3557 lt_cv_file_magic_cmd='/usr/bin/file -L'
3558 case "$host_os" in
3559 rhapsody* | darwin1.012)
3560 lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
3561 ;;
3562 *) # Darwin 1.3 on
3563 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
3564 ;;
3565 esac
3566 lt_cv_deplibs_check_method=pass_all
3567 ;;
3568
3569freebsd* | kfreebsd*-gnu)
3570 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3571 case $host_cpu in
3572 i*86 )
3573 # Not sure whether the presence of OpenBSD here was a mistake.
3574 # Let's accept both of them until this is cleared up.
3575 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3576 lt_cv_file_magic_cmd=/usr/bin/file
3577 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3578 ;;
3579 esac
3580 else
3581 lt_cv_deplibs_check_method=pass_all
3582 fi
3583 ;;
3584
3585gnu*)
3586 lt_cv_deplibs_check_method=pass_all
3587 ;;
3588
3589hpux10.20*|hpux11*)
3590 case $host_cpu in
3591 hppa*)
3592 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3593 lt_cv_file_magic_cmd=/usr/bin/file
3594 lt_cv_file_magic_test_file=/usr/lib/libc.sl
3595 ;;
3596 ia64*)
3597 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3598 lt_cv_file_magic_cmd=/usr/bin/file
3599 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3600 ;;
3601 esac
3602 ;;
3603
3604irix5* | irix6*)
3605 case $host_os in
3606 irix5*)
3607 # this will be overridden with pass_all, but let us keep it just in case
3608 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
3609 ;;
3610 *)
3611 case $LD in
3612 *-32|*"-32 ") libmagic=32-bit;;
3613 *-n32|*"-n32 ") libmagic=N32;;
3614 *-64|*"-64 ") libmagic=64-bit;;
3615 *) libmagic=never-match;;
3616 esac
3617 # this will be overridden with pass_all, but let us keep it just in case
3618 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
3619 ;;
3620 esac
3621 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
3622 lt_cv_deplibs_check_method=pass_all
3623 ;;
3624
3625# This must be Linux ELF.
3626linux-gnu*)
3627 case $host_cpu in
3628 alpha* | mips* | hppa* | i*86 | powerpc* | sparc* | ia64* | sh* )
3629 lt_cv_deplibs_check_method=pass_all ;;
3630 *)
3631 # glibc up to 2.1.1 does not perform some relocations on ARM
3632 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
3633 esac
3634 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
3635 ;;
3636
3637netbsd* | knetbsd*-gnu)
3638 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3639 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
3640 else
3641 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
3642 fi
3643 ;;
3644
3645newsos6)
3646 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3647 lt_cv_file_magic_cmd=/usr/bin/file
3648 lt_cv_file_magic_test_file=/usr/lib/libnls.so
3649 ;;
3650
3651osf3* | osf4* | osf5*)
3652 # this will be overridden with pass_all, but let us keep it just in case
3653 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
3654 lt_cv_file_magic_test_file=/shlib/libc.so
3655 lt_cv_deplibs_check_method=pass_all
3656 ;;
3657
3658sco3.2v5*)
3659 lt_cv_deplibs_check_method=pass_all
3660 ;;
3661
3662solaris*)
3663 lt_cv_deplibs_check_method=pass_all
3664 lt_cv_file_magic_test_file=/lib/libc.so
3665 ;;
3666
3667sysv5uw[78]* | sysv4*uw2*)
3668 lt_cv_deplibs_check_method=pass_all
3669 ;;
3670
3671sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3672 case $host_vendor in
3673 ncr)
3674 lt_cv_deplibs_check_method=pass_all
3675 ;;
3676 motorola)
3677 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
3678 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3679 ;;
3680 esac
3681 ;;
3682esac
3683
3684fi
3685echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3686echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3687file_magic_cmd=$lt_cv_file_magic_cmd
3688deplibs_check_method=$lt_cv_deplibs_check_method
3689
3690
3691
3692
3693
3694# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
3695
3696# Only perform the check for file, if the check method requires it
3697case $deplibs_check_method in
3698file_magic*)
3699 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
3700 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
3701echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
3702if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
3703 echo $ECHO_N "(cached) $ECHO_C" >&6
3704else
3705 case $MAGIC_CMD in
3706 /*)
3707 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
3708 ;;
3709 ?:/*)
3710 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
3711 ;;
3712 *)
3713 ac_save_MAGIC_CMD="$MAGIC_CMD"
3714 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3715 ac_dummy="/usr/bin:$PATH"
3716 for ac_dir in $ac_dummy; do
3717 test -z "$ac_dir" && ac_dir=.
3718 if test -f $ac_dir/${ac_tool_prefix}file; then
3719 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
3720 if test -n "$file_magic_test_file"; then
3721 case $deplibs_check_method in
3722 "file_magic "*)
3723 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
3724 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3725 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3726 egrep "$file_magic_regex" > /dev/null; then
3727 :
3728 else
3729 cat <<EOF 1>&2
3730
3731*** Warning: the command libtool uses to detect shared libraries,
3732*** $file_magic_cmd, produces output that libtool cannot recognize.
3733*** The result is that libtool may fail to recognize shared libraries
3734*** as such. This will affect the creation of libtool libraries that
3735*** depend on shared libraries, but programs linked with such libtool
3736*** libraries will work regardless of this problem. Nevertheless, you
3737*** may want to report the problem to your system manager and/or to
3738*** bug-libtool@gnu.org
3739
3740EOF
3741 fi ;;
3742 esac
3743 fi
3744 break
3745 fi
3746 done
3747 IFS="$ac_save_ifs"
3748 MAGIC_CMD="$ac_save_MAGIC_CMD"
3749 ;;
3750esac
3751fi
3752
3753MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3754if test -n "$MAGIC_CMD"; then
3755 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
3756echo "${ECHO_T}$MAGIC_CMD" >&6
3757else
3758 echo "$as_me:$LINENO: result: no" >&5
3759echo "${ECHO_T}no" >&6
3760fi
3761
3762if test -z "$lt_cv_path_MAGIC_CMD"; then
3763 if test -n "$ac_tool_prefix"; then
3764 echo "$as_me:$LINENO: checking for file" >&5
3765echo $ECHO_N "checking for file... $ECHO_C" >&6
3766if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
3767 echo $ECHO_N "(cached) $ECHO_C" >&6
3768else
3769 case $MAGIC_CMD in
3770 /*)
3771 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
3772 ;;
3773 ?:/*)
3774 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
3775 ;;
3776 *)
3777 ac_save_MAGIC_CMD="$MAGIC_CMD"
3778 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3779 ac_dummy="/usr/bin:$PATH"
3780 for ac_dir in $ac_dummy; do
3781 test -z "$ac_dir" && ac_dir=.
3782 if test -f $ac_dir/file; then
3783 lt_cv_path_MAGIC_CMD="$ac_dir/file"
3784 if test -n "$file_magic_test_file"; then
3785 case $deplibs_check_method in
3786 "file_magic "*)
3787 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
3788 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3789 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3790 egrep "$file_magic_regex" > /dev/null; then
3791 :
3792 else
3793 cat <<EOF 1>&2
3794
3795*** Warning: the command libtool uses to detect shared libraries,
3796*** $file_magic_cmd, produces output that libtool cannot recognize.
3797*** The result is that libtool may fail to recognize shared libraries
3798*** as such. This will affect the creation of libtool libraries that
3799*** depend on shared libraries, but programs linked with such libtool
3800*** libraries will work regardless of this problem. Nevertheless, you
3801*** may want to report the problem to your system manager and/or to
3802*** bug-libtool@gnu.org
3803
3804EOF
3805 fi ;;
3806 esac
3807 fi
3808 break
3809 fi
3810 done
3811 IFS="$ac_save_ifs"
3812 MAGIC_CMD="$ac_save_MAGIC_CMD"
3813 ;;
3814esac
3815fi
6de9cd9a 3816
96b8a615
AJ
3817MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3818if test -n "$MAGIC_CMD"; then
3819 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
3820echo "${ECHO_T}$MAGIC_CMD" >&6
6de9cd9a 3821else
96b8a615
AJ
3822 echo "$as_me:$LINENO: result: no" >&5
3823echo "${ECHO_T}no" >&6
3824fi
6de9cd9a 3825
96b8a615
AJ
3826 else
3827 MAGIC_CMD=:
3828 fi
6de9cd9a 3829fi
6de9cd9a 3830
96b8a615
AJ
3831 fi
3832 ;;
3833esac
6de9cd9a 3834
96b8a615
AJ
3835if test -n "$ac_tool_prefix"; then
3836 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3837set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3838echo "$as_me:$LINENO: checking for $ac_word" >&5
3839echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3840if test "${ac_cv_prog_RANLIB+set}" = set; then
3841 echo $ECHO_N "(cached) $ECHO_C" >&6
6de9cd9a 3842else
96b8a615
AJ
3843 if test -n "$RANLIB"; then
3844 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3845else
3846as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3847for as_dir in $PATH
3848do
3849 IFS=$as_save_IFS
3850 test -z "$as_dir" && as_dir=.
3851 for ac_exec_ext in '' $ac_executable_extensions; do
3852 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3853 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3854 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3855 break 2
3856 fi
3857done
3858done
6de9cd9a 3859
96b8a615
AJ
3860fi
3861fi
3862RANLIB=$ac_cv_prog_RANLIB
3863if test -n "$RANLIB"; then
3864 echo "$as_me:$LINENO: result: $RANLIB" >&5
3865echo "${ECHO_T}$RANLIB" >&6
3866else
3867 echo "$as_me:$LINENO: result: no" >&5
3868echo "${ECHO_T}no" >&6
6de9cd9a
DN
3869fi
3870
96b8a615
AJ
3871fi
3872if test -z "$ac_cv_prog_RANLIB"; then
3873 ac_ct_RANLIB=$RANLIB
3874 # Extract the first word of "ranlib", so it can be a program name with args.
3875set dummy ranlib; ac_word=$2
3876echo "$as_me:$LINENO: checking for $ac_word" >&5
3877echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3878if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3879 echo $ECHO_N "(cached) $ECHO_C" >&6
3880else
3881 if test -n "$ac_ct_RANLIB"; then
3882 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3883else
3884as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3885for as_dir in $PATH
3886do
3887 IFS=$as_save_IFS
3888 test -z "$as_dir" && as_dir=.
3889 for ac_exec_ext in '' $ac_executable_extensions; do
3890 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3891 ac_cv_prog_ac_ct_RANLIB="ranlib"
3892 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3893 break 2
3894 fi
3895done
3896done
6de9cd9a 3897
96b8a615
AJ
3898 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3899fi
3900fi
3901ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3902if test -n "$ac_ct_RANLIB"; then
3903 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3904echo "${ECHO_T}$ac_ct_RANLIB" >&6
6de9cd9a 3905else
96b8a615
AJ
3906 echo "$as_me:$LINENO: result: no" >&5
3907echo "${ECHO_T}no" >&6
6de9cd9a 3908fi
6de9cd9a 3909
96b8a615
AJ
3910 RANLIB=$ac_ct_RANLIB
3911else
3912 RANLIB="$ac_cv_prog_RANLIB"
6de9cd9a
DN
3913fi
3914
96b8a615
AJ
3915if test -n "$ac_tool_prefix"; then
3916 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3917set dummy ${ac_tool_prefix}strip; ac_word=$2
3918echo "$as_me:$LINENO: checking for $ac_word" >&5
3919echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3920if test "${ac_cv_prog_STRIP+set}" = set; then
3921 echo $ECHO_N "(cached) $ECHO_C" >&6
6de9cd9a 3922else
96b8a615
AJ
3923 if test -n "$STRIP"; then
3924 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3925else
3926as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3927for as_dir in $PATH
3928do
3929 IFS=$as_save_IFS
3930 test -z "$as_dir" && as_dir=.
3931 for ac_exec_ext in '' $ac_executable_extensions; do
3932 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3933 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3934 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3935 break 2
3936 fi
3937done
3938done
6de9cd9a 3939
96b8a615
AJ
3940fi
3941fi
3942STRIP=$ac_cv_prog_STRIP
3943if test -n "$STRIP"; then
3944 echo "$as_me:$LINENO: result: $STRIP" >&5
3945echo "${ECHO_T}$STRIP" >&6
6de9cd9a 3946else
96b8a615
AJ
3947 echo "$as_me:$LINENO: result: no" >&5
3948echo "${ECHO_T}no" >&6
3949fi
6de9cd9a 3950
6de9cd9a 3951fi
96b8a615
AJ
3952if test -z "$ac_cv_prog_STRIP"; then
3953 ac_ct_STRIP=$STRIP
3954 # Extract the first word of "strip", so it can be a program name with args.
3955set dummy strip; ac_word=$2
3956echo "$as_me:$LINENO: checking for $ac_word" >&5
3957echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3958if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
3959 echo $ECHO_N "(cached) $ECHO_C" >&6
3960else
3961 if test -n "$ac_ct_STRIP"; then
3962 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3963else
3964as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3965for as_dir in $PATH
3966do
3967 IFS=$as_save_IFS
3968 test -z "$as_dir" && as_dir=.
3969 for ac_exec_ext in '' $ac_executable_extensions; do
3970 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3971 ac_cv_prog_ac_ct_STRIP="strip"
3972 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3973 break 2
3974 fi
3975done
3976done
3977
3978 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
6de9cd9a
DN
3979fi
3980fi
96b8a615
AJ
3981ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3982if test -n "$ac_ct_STRIP"; then
3983 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
3984echo "${ECHO_T}$ac_ct_STRIP" >&6
3985else
3986 echo "$as_me:$LINENO: result: no" >&5
3987echo "${ECHO_T}no" >&6
6de9cd9a 3988fi
6de9cd9a 3989
96b8a615
AJ
3990 STRIP=$ac_ct_STRIP
3991else
3992 STRIP="$ac_cv_prog_STRIP"
6de9cd9a
DN
3993fi
3994
6de9cd9a 3995
96b8a615
AJ
3996# Check for any special flags to pass to ltconfig.
3997libtool_flags="--cache-file=$cache_file"
3998test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
3999test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
4000test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
4001test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
4002test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
6de9cd9a
DN
4003
4004
96b8a615
AJ
4005# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4006if test "${enable_libtool_lock+set}" = set; then
4007 enableval="$enable_libtool_lock"
6de9cd9a 4008
96b8a615
AJ
4009fi;
4010test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
4011test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
6de9cd9a
DN
4012
4013
96b8a615
AJ
4014# Check whether --with-pic or --without-pic was given.
4015if test "${with_pic+set}" = set; then
4016 withval="$with_pic"
4017 pic_mode="$withval"
6de9cd9a 4018else
96b8a615
AJ
4019 pic_mode=default
4020fi;
4021test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
4022test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
6de9cd9a 4023
96b8a615
AJ
4024# Some flags need to be propagated to the compiler or linker for good
4025# libtool support.
4026case $host in
4027*-*-irix6*)
4028 # Find out which ABI we are using.
453310d8 4029 echo '#line 4029 "configure"' > conftest.$ac_ext
96b8a615
AJ
4030 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4031 (eval $ac_compile) 2>&5
6de9cd9a
DN
4032 ac_status=$?
4033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
96b8a615
AJ
4034 (exit $ac_status); }; then
4035 if test "$lt_cv_prog_gnu_ld" = yes; then
4036 case `/usr/bin/file conftest.$ac_objext` in
4037 *32-bit*)
4038 LD="${LD-ld} -melf32bsmip"
4039 ;;
4040 *N32*)
4041 LD="${LD-ld} -melf32bmipn32"
4042 ;;
4043 *64-bit*)
4044 LD="${LD-ld} -melf64bmip"
4045 ;;
4046 esac
4047 else
4048 case `/usr/bin/file conftest.$ac_objext` in
4049 *32-bit*)
4050 LD="${LD-ld} -32"
4051 ;;
4052 *N32*)
4053 LD="${LD-ld} -n32"
4054 ;;
4055 *64-bit*)
4056 LD="${LD-ld} -64"
4057 ;;
4058 esac
4059 fi
4060 fi
4061 rm -rf conftest*
4062 ;;
6de9cd9a 4063
96b8a615
AJ
4064ia64-*-hpux*)
4065 # Find out which ABI we are using.
4066 echo 'int i;' > conftest.$ac_ext
4067 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4068 (eval $ac_compile) 2>&5
6de9cd9a
DN
4069 ac_status=$?
4070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
96b8a615
AJ
4071 (exit $ac_status); }; then
4072 case "`/usr/bin/file conftest.o`" in
4073 *ELF-32*)
4074 HPUX_IA64_MODE="32"
4075 ;;
4076 *ELF-64*)
4077 HPUX_IA64_MODE="64"
4078 ;;
4079 esac
4080 fi
4081 rm -rf conftest*
4082 ;;
6de9cd9a 4083
96b8a615
AJ
4084x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4085 # Find out which ABI we are using.
4086 echo 'int i;' > conftest.$ac_ext
4087 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4088 (eval $ac_compile) 2>&5
6de9cd9a 4089 ac_status=$?
6de9cd9a 4090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
96b8a615
AJ
4091 (exit $ac_status); }; then
4092 case "`/usr/bin/file conftest.o`" in
4093 *32-bit*)
4094 case $host in
4095 x86_64-*linux*)
4096 LD="${LD-ld} -m elf_i386"
4097 ;;
4098 ppc64-*linux*|powerpc64-*linux*)
4099 LD="${LD-ld} -m elf32ppclinux"
4100 ;;
4101 s390x-*linux*)
4102 LD="${LD-ld} -m elf_s390"
4103 ;;
4104 sparc64-*linux*)
4105 LD="${LD-ld} -m elf32_sparc"
4106 ;;
4107 esac
4108 ;;
4109 *64-bit*)
4110 case $host in
4111 x86_64-*linux*)
4112 LD="${LD-ld} -m elf_x86_64"
4113 ;;
4114 ppc*-*linux*|powerpc*-*linux*)
4115 LD="${LD-ld} -m elf64ppc"
4116 ;;
4117 s390*-*linux*)
4118 LD="${LD-ld} -m elf64_s390"
4119 ;;
4120 sparc*-*linux*)
4121 LD="${LD-ld} -m elf64_sparc"
4122 ;;
4123 esac
4124 ;;
4125 esac
6de9cd9a 4126 fi
96b8a615
AJ
4127 rm -rf conftest*
4128 ;;
6de9cd9a 4129
96b8a615
AJ
4130*-*-sco3.2v5*)
4131 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4132 SAVE_CFLAGS="$CFLAGS"
4133 CFLAGS="$CFLAGS -belf"
4134 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4135echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4136if test "${lt_cv_cc_needs_belf+set}" = set; then
6de9cd9a
DN
4137 echo $ECHO_N "(cached) $ECHO_C" >&6
4138else
6de9cd9a 4139
6de9cd9a 4140
96b8a615
AJ
4141 ac_ext=c
4142ac_cpp='$CPP $CPPFLAGS'
4143ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4144ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4145ac_compiler_gnu=$ac_cv_c_compiler_gnu
6de9cd9a 4146
96b8a615 4147 cat >conftest.$ac_ext <<_ACEOF
6de9cd9a
DN
4148/* confdefs.h. */
4149_ACEOF
4150cat confdefs.h >>conftest.$ac_ext
4151cat >>conftest.$ac_ext <<_ACEOF
4152/* end confdefs.h. */
6de9cd9a
DN
4153
4154int
4155main ()
4156{
96b8a615 4157
6de9cd9a
DN
4158 ;
4159 return 0;
4160}
4161_ACEOF
4162rm -f conftest.$ac_objext conftest$ac_exeext
4163if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4164 (eval $ac_link) 2>conftest.er1
4165 ac_status=$?
4166 grep -v '^ *+' conftest.er1 >conftest.err
4167 rm -f conftest.er1
4168 cat conftest.err >&5
4169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4170 (exit $ac_status); } &&
453310d8
RS
4171 { ac_try='test -z "$ac_c_werror_flag"
4172 || test ! -s conftest.err'
6de9cd9a
DN
4173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4174 (eval $ac_try) 2>&5
4175 ac_status=$?
4176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4177 (exit $ac_status); }; } &&
4178 { ac_try='test -s conftest$ac_exeext'
4179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4180 (eval $ac_try) 2>&5
4181 ac_status=$?
4182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4183 (exit $ac_status); }; }; then
96b8a615 4184 lt_cv_cc_needs_belf=yes
6de9cd9a
DN
4185else
4186 echo "$as_me: failed program was:" >&5
4187sed 's/^/| /' conftest.$ac_ext >&5
4188
96b8a615 4189lt_cv_cc_needs_belf=no
6de9cd9a
DN
4190fi
4191rm -f conftest.err conftest.$ac_objext \
4192 conftest$ac_exeext conftest.$ac_ext
96b8a615
AJ
4193 ac_ext=c
4194ac_cpp='$CPP $CPPFLAGS'
4195ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4196ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4197ac_compiler_gnu=$ac_cv_c_compiler_gnu
4198
6de9cd9a 4199fi
96b8a615
AJ
4200echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4201echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4202 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4203 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4204 CFLAGS="$SAVE_CFLAGS"
4205 fi
4206 ;;
4207
4208
4209esac
4210
4211
4212# Save cache, so that ltconfig can load it
4213cat >confcache <<\_ACEOF
4214# This file is a shell script that caches the results of configure
4215# tests run on this system so they can be shared between configure
4216# scripts and configure runs, see configure's option --config-cache.
4217# It is not useful on other systems. If it contains results you don't
4218# want to keep, you may remove or edit it.
4219#
4220# config.status only pays attention to the cache file if you give it
4221# the --recheck option to rerun configure.
4222#
4223# `ac_cv_env_foo' variables (set or unset) will be overridden when
4224# loading this file, other *unset* `ac_cv_foo' will be assigned the
4225# following values.
4226
6de9cd9a
DN
4227_ACEOF
4228
96b8a615
AJ
4229# The following way of writing the cache mishandles newlines in values,
4230# but we know of no workaround that is simple, portable, and efficient.
4231# So, don't put newlines in cache variables' values.
4232# Ultrix sh set writes to stderr and can't be redirected directly,
4233# and sets the high bit in the cache file unless we assign to the vars.
4234{
4235 (set) 2>&1 |
4236 case `(ac_space=' '; set | grep ac_space) 2>&1` in
4237 *ac_space=\ *)
4238 # `set' does not quote correctly, so add quotes (double-quote
4239 # substitution turns \\\\ into \\, and sed turns \\ into \).
4240 sed -n \
4241 "s/'/'\\\\''/g;
4242 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
4243 ;;
4244 *)
4245 # `set' quotes correctly as required by POSIX, so do not add quotes.
4246 sed -n \
4247 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
4248 ;;
4249 esac;
4250} |
4251 sed '
4252 t clear
4253 : clear
4254 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
4255 t end
4256 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4257 : end' >>confcache
4258if diff $cache_file confcache >/dev/null 2>&1; then :; else
4259 if test -w $cache_file; then
4260 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
4261 cat confcache >$cache_file
4262 else
4263 echo "not updating unwritable cache $cache_file"
4264 fi
6de9cd9a 4265fi
96b8a615 4266rm -f confcache
6de9cd9a 4267
96b8a615
AJ
4268# Actually configure libtool. ac_aux_dir is where install-sh is found.
4269AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
4270MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
4271LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
4272AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
4273objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
4274deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
4275${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
4276$libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
4277|| { { echo "$as_me:$LINENO: error: libtool configure failed" >&5
4278echo "$as_me: error: libtool configure failed" >&2;}
4279 { (exit 1); exit 1; }; }
4280
4281# Reload cache, that may have been modified by ltconfig
4282if test -r "$cache_file"; then
4283 # Some versions of bash will fail to source /dev/null (special
4284 # files actually), so we avoid doing that.
4285 if test -f "$cache_file"; then
4286 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
4287echo "$as_me: loading cache $cache_file" >&6;}
4288 case $cache_file in
4289 [\\/]* | ?:[\\/]* ) . $cache_file;;
4290 *) . ./$cache_file;;
4291 esac
4292 fi
4293else
4294 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
4295echo "$as_me: creating cache $cache_file" >&6;}
4296 >$cache_file
4297fi
6de9cd9a 4298
6de9cd9a 4299
96b8a615
AJ
4300# This can be used to rebuild libtool when needed
4301LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
6de9cd9a 4302
96b8a615
AJ
4303# Always use our own libtool.
4304LIBTOOL='$(SHELL) $(top_builddir)/libtool'
6de9cd9a 4305
96b8a615
AJ
4306# Redirect the config.log output again, so that the ltconfig log is not
4307# clobbered by the next message.
4308exec 5>>./config.log
6de9cd9a 4309
6de9cd9a 4310
6de9cd9a 4311
6de9cd9a 4312
6de9cd9a 4313
6de9cd9a 4314
6de9cd9a 4315
6de9cd9a 4316
96b8a615
AJ
4317#AC_MSG_NOTICE([====== Finished libtool configuration]) ; sleep 10
4318
4319# We need gfortran to compile parts of the library
4320# We can't use AC_PROG_F77 because it expects a fully working gfortran.
4321#AC_PROG_F77(gfortran)
4322F77="$GFORTRAN"
4323ac_ext=f
4324ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4325ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4326ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4327if test -n "$ac_tool_prefix"; then
4328 for ac_prog in gfortran
4329 do
4330 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4331set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4332echo "$as_me:$LINENO: checking for $ac_word" >&5
4333echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4334if test "${ac_cv_prog_F77+set}" = set; then
4335 echo $ECHO_N "(cached) $ECHO_C" >&6
6de9cd9a 4336else
96b8a615
AJ
4337 if test -n "$F77"; then
4338 ac_cv_prog_F77="$F77" # Let the user override the test.
4339else
4340as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4341for as_dir in $PATH
4342do
4343 IFS=$as_save_IFS
4344 test -z "$as_dir" && as_dir=.
4345 for ac_exec_ext in '' $ac_executable_extensions; do
4346 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4347 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
4348 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4349 break 2
4350 fi
4351done
4352done
6de9cd9a 4353
6de9cd9a 4354fi
6de9cd9a 4355fi
96b8a615
AJ
4356F77=$ac_cv_prog_F77
4357if test -n "$F77"; then
4358 echo "$as_me:$LINENO: result: $F77" >&5
4359echo "${ECHO_T}$F77" >&6
4360else
4361 echo "$as_me:$LINENO: result: no" >&5
4362echo "${ECHO_T}no" >&6
6de9cd9a 4363fi
6de9cd9a 4364
96b8a615
AJ
4365 test -n "$F77" && break
4366 done
4367fi
4368if test -z "$F77"; then
4369 ac_ct_F77=$F77
4370 for ac_prog in gfortran
4371do
4372 # Extract the first word of "$ac_prog", so it can be a program name with args.
4373set dummy $ac_prog; ac_word=$2
4374echo "$as_me:$LINENO: checking for $ac_word" >&5
4375echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4376if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
4377 echo $ECHO_N "(cached) $ECHO_C" >&6
4378else
4379 if test -n "$ac_ct_F77"; then
4380 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
4381else
4382as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4383for as_dir in $PATH
4384do
4385 IFS=$as_save_IFS
4386 test -z "$as_dir" && as_dir=.
4387 for ac_exec_ext in '' $ac_executable_extensions; do
4388 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4389 ac_cv_prog_ac_ct_F77="$ac_prog"
4390 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4391 break 2
4392 fi
4393done
4394done
6de9cd9a
DN
4395
4396fi
96b8a615
AJ
4397fi
4398ac_ct_F77=$ac_cv_prog_ac_ct_F77
4399if test -n "$ac_ct_F77"; then
4400 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
4401echo "${ECHO_T}$ac_ct_F77" >&6
4402else
4403 echo "$as_me:$LINENO: result: no" >&5
4404echo "${ECHO_T}no" >&6
4405fi
4406
4407 test -n "$ac_ct_F77" && break
4408done
4409
4410 F77=$ac_ct_F77
4411fi
4412
4413
4414# Provide some information about the compiler.
453310d8 4415echo "$as_me:4415:" \
96b8a615
AJ
4416 "checking for Fortran 77 compiler version" >&5
4417ac_compiler=`set X $ac_compile; echo $2`
4418{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4419 (eval $ac_compiler --version </dev/null >&5) 2>&5
4420 ac_status=$?
4421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4422 (exit $ac_status); }
4423{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4424 (eval $ac_compiler -v </dev/null >&5) 2>&5
4425 ac_status=$?
4426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4427 (exit $ac_status); }
4428{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4429 (eval $ac_compiler -V </dev/null >&5) 2>&5
4430 ac_status=$?
4431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4432 (exit $ac_status); }
4433rm -f a.out
6de9cd9a 4434
96b8a615
AJ
4435# If we don't use `.F' as extension, the preprocessor is not run on the
4436# input file. (Note that this only needs to work for GNU compilers.)
4437ac_save_ext=$ac_ext
4438ac_ext=F
4439echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
4440echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
4441if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6de9cd9a
DN
4442 echo $ECHO_N "(cached) $ECHO_C" >&6
4443else
4444 cat >conftest.$ac_ext <<_ACEOF
96b8a615
AJ
4445 program main
4446#ifndef __GNUC__
4447 choke me
4448#endif
4449
4450 end
6de9cd9a
DN
4451_ACEOF
4452rm -f conftest.$ac_objext
4453if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4454 (eval $ac_compile) 2>conftest.er1
4455 ac_status=$?
4456 grep -v '^ *+' conftest.er1 >conftest.err
4457 rm -f conftest.er1
4458 cat conftest.err >&5
4459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4460 (exit $ac_status); } &&
453310d8
RS
4461 { ac_try='test -z "$ac_f77_werror_flag"
4462 || test ! -s conftest.err'
6de9cd9a
DN
4463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4464 (eval $ac_try) 2>&5
4465 ac_status=$?
4466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4467 (exit $ac_status); }; } &&
4468 { ac_try='test -s conftest.$ac_objext'
4469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4470 (eval $ac_try) 2>&5
4471 ac_status=$?
4472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4473 (exit $ac_status); }; }; then
96b8a615 4474 ac_compiler_gnu=yes
6de9cd9a
DN
4475else
4476 echo "$as_me: failed program was:" >&5
4477sed 's/^/| /' conftest.$ac_ext >&5
4478
96b8a615 4479ac_compiler_gnu=no
6de9cd9a
DN
4480fi
4481rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
96b8a615 4482ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6de9cd9a
DN
4483
4484fi
96b8a615
AJ
4485echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
4486echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
4487ac_ext=$ac_save_ext
4488ac_test_FFLAGS=${FFLAGS+set}
4489ac_save_FFLAGS=$FFLAGS
4490FFLAGS=
4491echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
4492echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
4493if test "${ac_cv_prog_f77_g+set}" = set; then
6de9cd9a
DN
4494 echo $ECHO_N "(cached) $ECHO_C" >&6
4495else
96b8a615
AJ
4496 FFLAGS=-g
4497cat >conftest.$ac_ext <<_ACEOF
4498 program main
6de9cd9a 4499
96b8a615 4500 end
6de9cd9a
DN
4501_ACEOF
4502rm -f conftest.$ac_objext
4503if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4504 (eval $ac_compile) 2>conftest.er1
4505 ac_status=$?
4506 grep -v '^ *+' conftest.er1 >conftest.err
4507 rm -f conftest.er1
4508 cat conftest.err >&5
4509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4510 (exit $ac_status); } &&
453310d8
RS
4511 { ac_try='test -z "$ac_f77_werror_flag"
4512 || test ! -s conftest.err'
6de9cd9a
DN
4513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4514 (eval $ac_try) 2>&5
4515 ac_status=$?
4516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4517 (exit $ac_status); }; } &&
4518 { ac_try='test -s conftest.$ac_objext'
4519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4520 (eval $ac_try) 2>&5
4521 ac_status=$?
4522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4523 (exit $ac_status); }; }; then
96b8a615 4524 ac_cv_prog_f77_g=yes
6de9cd9a
DN
4525else
4526 echo "$as_me: failed program was:" >&5
4527sed 's/^/| /' conftest.$ac_ext >&5
4528
96b8a615 4529ac_cv_prog_f77_g=no
6de9cd9a
DN
4530fi
4531rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4532
6de9cd9a 4533fi
96b8a615
AJ
4534echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
4535echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
4536if test "$ac_test_FFLAGS" = set; then
4537 FFLAGS=$ac_save_FFLAGS
4538elif test $ac_cv_prog_f77_g = yes; then
4539 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
4540 FFLAGS="-g -O2"
4541 else
4542 FFLAGS="-g"
4543 fi
4544else
4545 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
4546 FFLAGS="-O2"
4547 else
4548 FFLAGS=
4549 fi
6de9cd9a
DN
4550fi
4551
96b8a615
AJ
4552G77=`test $ac_compiler_gnu = yes && echo yes`
4553ac_ext=c
4554ac_cpp='$CPP $CPPFLAGS'
4555ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4556ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4557ac_compiler_gnu=$ac_cv_c_compiler_gnu
6de9cd9a 4558
96b8a615 4559FFLAGS="$FFLAGS -Wall -fno-repack-arrays -fno-underscoring"
6de9cd9a 4560
9cdc381b
BD
4561# Check whether --enable-largefile or --disable-largefile was given.
4562if test "${enable_largefile+set}" = set; then
4563 enableval="$enable_largefile"
4564
4565fi;
4566if test "$enable_largefile" != no; then
4567
4568 echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
4569echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
4570if test "${ac_cv_sys_largefile_CC+set}" = set; then
4571 echo $ECHO_N "(cached) $ECHO_C" >&6
4572else
4573 ac_cv_sys_largefile_CC=no
4574 if test "$GCC" != yes; then
4575 ac_save_CC=$CC
4576 while :; do
4577 # IRIX 6.2 and later do not support large files by default,
4578 # so use the C compiler's -n32 option if that helps.
4579 cat >conftest.$ac_ext <<_ACEOF
4580/* confdefs.h. */
4581_ACEOF
4582cat confdefs.h >>conftest.$ac_ext
4583cat >>conftest.$ac_ext <<_ACEOF
4584/* end confdefs.h. */
4585#include <sys/types.h>
4586 /* Check that off_t can represent 2**63 - 1 correctly.
4587 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4588 since some C++ compilers masquerading as C compilers
4589 incorrectly reject 9223372036854775807. */
4590#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4591 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4592 && LARGE_OFF_T % 2147483647 == 1)
4593 ? 1 : -1];
4594int
4595main ()
4596{
4597
4598 ;
4599 return 0;
4600}
4601_ACEOF
4602 rm -f conftest.$ac_objext
4603if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4604 (eval $ac_compile) 2>conftest.er1
4605 ac_status=$?
4606 grep -v '^ *+' conftest.er1 >conftest.err
4607 rm -f conftest.er1
4608 cat conftest.err >&5
4609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4610 (exit $ac_status); } &&
453310d8
RS
4611 { ac_try='test -z "$ac_c_werror_flag"
4612 || test ! -s conftest.err'
9cdc381b
BD
4613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4614 (eval $ac_try) 2>&5
4615 ac_status=$?
4616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4617 (exit $ac_status); }; } &&
4618 { ac_try='test -s conftest.$ac_objext'
4619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4620 (eval $ac_try) 2>&5
4621 ac_status=$?
4622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4623 (exit $ac_status); }; }; then
4624 break
4625else
4626 echo "$as_me: failed program was:" >&5
4627sed 's/^/| /' conftest.$ac_ext >&5
4628
4629fi
4630rm -f conftest.err conftest.$ac_objext
4631 CC="$CC -n32"
4632 rm -f conftest.$ac_objext
4633if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4634 (eval $ac_compile) 2>conftest.er1
4635 ac_status=$?
4636 grep -v '^ *+' conftest.er1 >conftest.err
4637 rm -f conftest.er1
4638 cat conftest.err >&5
4639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4640 (exit $ac_status); } &&
453310d8
RS
4641 { ac_try='test -z "$ac_c_werror_flag"
4642 || test ! -s conftest.err'
9cdc381b
BD
4643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4644 (eval $ac_try) 2>&5
4645 ac_status=$?
4646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4647 (exit $ac_status); }; } &&
4648 { ac_try='test -s conftest.$ac_objext'
4649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4650 (eval $ac_try) 2>&5
4651 ac_status=$?
4652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4653 (exit $ac_status); }; }; then
4654 ac_cv_sys_largefile_CC=' -n32'; break
4655else
4656 echo "$as_me: failed program was:" >&5
4657sed 's/^/| /' conftest.$ac_ext >&5
4658
4659fi
4660rm -f conftest.err conftest.$ac_objext
4661 break
4662 done
4663 CC=$ac_save_CC
4664 rm -f conftest.$ac_ext
4665 fi
4666fi
4667echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
4668echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
4669 if test "$ac_cv_sys_largefile_CC" != no; then
4670 CC=$CC$ac_cv_sys_largefile_CC
4671 fi
4672
4673 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4674echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
4675if test "${ac_cv_sys_file_offset_bits+set}" = set; then
4676 echo $ECHO_N "(cached) $ECHO_C" >&6
4677else
4678 while :; do
4679 ac_cv_sys_file_offset_bits=no
4680 cat >conftest.$ac_ext <<_ACEOF
4681/* confdefs.h. */
4682_ACEOF
4683cat confdefs.h >>conftest.$ac_ext
4684cat >>conftest.$ac_ext <<_ACEOF
4685/* end confdefs.h. */
4686#include <sys/types.h>
4687 /* Check that off_t can represent 2**63 - 1 correctly.
4688 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4689 since some C++ compilers masquerading as C compilers
4690 incorrectly reject 9223372036854775807. */
4691#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4692 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4693 && LARGE_OFF_T % 2147483647 == 1)
4694 ? 1 : -1];
4695int
4696main ()
4697{
4698
4699 ;
4700 return 0;
4701}
4702_ACEOF
4703rm -f conftest.$ac_objext
4704if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4705 (eval $ac_compile) 2>conftest.er1
4706 ac_status=$?
4707 grep -v '^ *+' conftest.er1 >conftest.err
4708 rm -f conftest.er1
4709 cat conftest.err >&5
4710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4711 (exit $ac_status); } &&
453310d8
RS
4712 { ac_try='test -z "$ac_c_werror_flag"
4713 || test ! -s conftest.err'
9cdc381b
BD
4714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4715 (eval $ac_try) 2>&5
4716 ac_status=$?
4717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4718 (exit $ac_status); }; } &&
4719 { ac_try='test -s conftest.$ac_objext'
4720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4721 (eval $ac_try) 2>&5
4722 ac_status=$?
4723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4724 (exit $ac_status); }; }; then
4725 break
4726else
4727 echo "$as_me: failed program was:" >&5
4728sed 's/^/| /' conftest.$ac_ext >&5
4729
4730fi
4731rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4732 cat >conftest.$ac_ext <<_ACEOF
4733/* confdefs.h. */
4734_ACEOF
4735cat confdefs.h >>conftest.$ac_ext
4736cat >>conftest.$ac_ext <<_ACEOF
4737/* end confdefs.h. */
4738#define _FILE_OFFSET_BITS 64
4739#include <sys/types.h>
4740 /* Check that off_t can represent 2**63 - 1 correctly.
4741 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4742 since some C++ compilers masquerading as C compilers
4743 incorrectly reject 9223372036854775807. */
4744#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4745 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4746 && LARGE_OFF_T % 2147483647 == 1)
4747 ? 1 : -1];
4748int
4749main ()
4750{
4751
4752 ;
4753 return 0;
4754}
4755_ACEOF
4756rm -f conftest.$ac_objext
4757if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4758 (eval $ac_compile) 2>conftest.er1
4759 ac_status=$?
4760 grep -v '^ *+' conftest.er1 >conftest.err
4761 rm -f conftest.er1
4762 cat conftest.err >&5
4763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4764 (exit $ac_status); } &&
453310d8
RS
4765 { ac_try='test -z "$ac_c_werror_flag"
4766 || test ! -s conftest.err'
9cdc381b
BD
4767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4768 (eval $ac_try) 2>&5
4769 ac_status=$?
4770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4771 (exit $ac_status); }; } &&
4772 { ac_try='test -s conftest.$ac_objext'
4773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4774 (eval $ac_try) 2>&5
4775 ac_status=$?
4776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4777 (exit $ac_status); }; }; then
4778 ac_cv_sys_file_offset_bits=64; break
4779else
4780 echo "$as_me: failed program was:" >&5
4781sed 's/^/| /' conftest.$ac_ext >&5
4782
4783fi
4784rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4785 break
4786done
4787fi
4788echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
4789echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
4790if test "$ac_cv_sys_file_offset_bits" != no; then
4791
4792cat >>confdefs.h <<_ACEOF
4793#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4794_ACEOF
4795
4796fi
4797rm -f conftest*
4798 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
4799echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
4800if test "${ac_cv_sys_large_files+set}" = set; then
4801 echo $ECHO_N "(cached) $ECHO_C" >&6
4802else
4803 while :; do
4804 ac_cv_sys_large_files=no
4805 cat >conftest.$ac_ext <<_ACEOF
4806/* confdefs.h. */
4807_ACEOF
4808cat confdefs.h >>conftest.$ac_ext
4809cat >>conftest.$ac_ext <<_ACEOF
4810/* end confdefs.h. */
4811#include <sys/types.h>
4812 /* Check that off_t can represent 2**63 - 1 correctly.
4813 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4814 since some C++ compilers masquerading as C compilers
4815 incorrectly reject 9223372036854775807. */
4816#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4817 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4818 && LARGE_OFF_T % 2147483647 == 1)
4819 ? 1 : -1];
4820int
4821main ()
4822{
4823
4824 ;
4825 return 0;
4826}
4827_ACEOF
4828rm -f conftest.$ac_objext
4829if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4830 (eval $ac_compile) 2>conftest.er1
4831 ac_status=$?
4832 grep -v '^ *+' conftest.er1 >conftest.err
4833 rm -f conftest.er1
4834 cat conftest.err >&5
4835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4836 (exit $ac_status); } &&
453310d8
RS
4837 { ac_try='test -z "$ac_c_werror_flag"
4838 || test ! -s conftest.err'
9cdc381b
BD
4839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4840 (eval $ac_try) 2>&5
4841 ac_status=$?
4842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4843 (exit $ac_status); }; } &&
4844 { ac_try='test -s conftest.$ac_objext'
4845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4846 (eval $ac_try) 2>&5
4847 ac_status=$?
4848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4849 (exit $ac_status); }; }; then
4850 break
4851else
4852 echo "$as_me: failed program was:" >&5
4853sed 's/^/| /' conftest.$ac_ext >&5
4854
4855fi
4856rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4857 cat >conftest.$ac_ext <<_ACEOF
4858/* confdefs.h. */
4859_ACEOF
4860cat confdefs.h >>conftest.$ac_ext
4861cat >>conftest.$ac_ext <<_ACEOF
4862/* end confdefs.h. */
4863#define _LARGE_FILES 1
4864#include <sys/types.h>
4865 /* Check that off_t can represent 2**63 - 1 correctly.
4866 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4867 since some C++ compilers masquerading as C compilers
4868 incorrectly reject 9223372036854775807. */
4869#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4870 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4871 && LARGE_OFF_T % 2147483647 == 1)
4872 ? 1 : -1];
4873int
4874main ()
4875{
4876
4877 ;
4878 return 0;
4879}
4880_ACEOF
4881rm -f conftest.$ac_objext
4882if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4883 (eval $ac_compile) 2>conftest.er1
4884 ac_status=$?
4885 grep -v '^ *+' conftest.er1 >conftest.err
4886 rm -f conftest.er1
4887 cat conftest.err >&5
4888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4889 (exit $ac_status); } &&
453310d8
RS
4890 { ac_try='test -z "$ac_c_werror_flag"
4891 || test ! -s conftest.err'
9cdc381b
BD
4892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4893 (eval $ac_try) 2>&5
4894 ac_status=$?
4895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4896 (exit $ac_status); }; } &&
4897 { ac_try='test -s conftest.$ac_objext'
4898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4899 (eval $ac_try) 2>&5
4900 ac_status=$?
4901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4902 (exit $ac_status); }; }; then
4903 ac_cv_sys_large_files=1; break
4904else
4905 echo "$as_me: failed program was:" >&5
4906sed 's/^/| /' conftest.$ac_ext >&5
4907
4908fi
4909rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4910 break
4911done
4912fi
4913echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
4914echo "${ECHO_T}$ac_cv_sys_large_files" >&6
4915if test "$ac_cv_sys_large_files" != no; then
4916
4917cat >>confdefs.h <<_ACEOF
4918#define _LARGE_FILES $ac_cv_sys_large_files
4919_ACEOF
4920
4921fi
4922rm -f conftest*
4923fi
4924
96b8a615
AJ
4925ac_ext=c
4926ac_cpp='$CPP $CPPFLAGS'
4927ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4928ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4929ac_compiler_gnu=$ac_cv_c_compiler_gnu
4930echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4931echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
4932# On Suns, sometimes $CPP names a directory.
4933if test -n "$CPP" && test -d "$CPP"; then
4934 CPP=
6de9cd9a 4935fi
96b8a615
AJ
4936if test -z "$CPP"; then
4937 if test "${ac_cv_prog_CPP+set}" = set; then
4938 echo $ECHO_N "(cached) $ECHO_C" >&6
6de9cd9a 4939else
96b8a615
AJ
4940 # Double quotes because CPP needs to be expanded
4941 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4942 do
4943 ac_preproc_ok=false
4944for ac_c_preproc_warn_flag in '' yes
4945do
4946 # Use a header file that comes with gcc, so configuring glibc
4947 # with a fresh cross-compiler works.
4948 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4949 # <limits.h> exists even on freestanding compilers.
4950 # On the NeXT, cc -E runs the code through the compiler's parser,
4951 # not just through cpp. "Syntax error" is here to catch this case.
6de9cd9a
DN
4952 cat >conftest.$ac_ext <<_ACEOF
4953/* confdefs.h. */
4954_ACEOF
4955cat confdefs.h >>conftest.$ac_ext
4956cat >>conftest.$ac_ext <<_ACEOF
4957/* end confdefs.h. */
96b8a615
AJ
4958#ifdef __STDC__
4959# include <limits.h>
6de9cd9a 4960#else
96b8a615 4961# include <assert.h>
6de9cd9a 4962#endif
96b8a615 4963 Syntax error
6de9cd9a 4964_ACEOF
96b8a615
AJ
4965if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4966 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6de9cd9a 4967 ac_status=$?
96b8a615
AJ
4968 grep -v '^ *+' conftest.er1 >conftest.err
4969 rm -f conftest.er1
4970 cat conftest.err >&5
6de9cd9a 4971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
96b8a615
AJ
4972 (exit $ac_status); } >/dev/null; then
4973 if test -s conftest.err; then
4974 ac_cpp_err=$ac_c_preproc_warn_flag
4975 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4976 else
4977 ac_cpp_err=
4978 fi
4979else
4980 ac_cpp_err=yes
4981fi
4982if test -z "$ac_cpp_err"; then
6de9cd9a
DN
4983 :
4984else
96b8a615 4985 echo "$as_me: failed program was:" >&5
6de9cd9a
DN
4986sed 's/^/| /' conftest.$ac_ext >&5
4987
96b8a615
AJ
4988 # Broken: fails on valid input.
4989continue
6de9cd9a 4990fi
96b8a615 4991rm -f conftest.err conftest.$ac_ext
6de9cd9a 4992
96b8a615
AJ
4993 # OK, works on sane cases. Now check whether non-existent headers
4994 # can be detected and how.
4995 cat >conftest.$ac_ext <<_ACEOF
6de9cd9a
DN
4996/* confdefs.h. */
4997_ACEOF
4998cat confdefs.h >>conftest.$ac_ext
4999cat >>conftest.$ac_ext <<_ACEOF
5000/* end confdefs.h. */
96b8a615 5001#include <ac_nonexistent.h>
6de9cd9a 5002_ACEOF
96b8a615
AJ
5003if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5004 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6de9cd9a
DN
5005 ac_status=$?
5006 grep -v '^ *+' conftest.er1 >conftest.err
5007 rm -f conftest.er1
5008 cat conftest.err >&5
5009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
96b8a615
AJ
5010 (exit $ac_status); } >/dev/null; then
5011 if test -s conftest.err; then
5012 ac_cpp_err=$ac_c_preproc_warn_flag
5013 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5014 else
5015 ac_cpp_err=
5016 fi
5017else
5018 ac_cpp_err=yes
5019fi
5020if test -z "$ac_cpp_err"; then
5021 # Broken: success on invalid input.
5022continue
6de9cd9a
DN
5023else
5024 echo "$as_me: failed program was:" >&5
5025sed 's/^/| /' conftest.$ac_ext >&5
5026
96b8a615
AJ
5027 # Passes both tests.
5028ac_preproc_ok=:
5029break
6de9cd9a 5030fi
96b8a615 5031rm -f conftest.err conftest.$ac_ext
6de9cd9a 5032
96b8a615
AJ
5033done
5034# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5035rm -f conftest.err conftest.$ac_ext
5036if $ac_preproc_ok; then
5037 break
5038fi
5039
5040 done
5041 ac_cv_prog_CPP=$CPP
5042
5043fi
5044 CPP=$ac_cv_prog_CPP
5045else
5046 ac_cv_prog_CPP=$CPP
5047fi
5048echo "$as_me:$LINENO: result: $CPP" >&5
5049echo "${ECHO_T}$CPP" >&6
5050ac_preproc_ok=false
5051for ac_c_preproc_warn_flag in '' yes
5052do
5053 # Use a header file that comes with gcc, so configuring glibc
5054 # with a fresh cross-compiler works.
5055 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5056 # <limits.h> exists even on freestanding compilers.
5057 # On the NeXT, cc -E runs the code through the compiler's parser,
5058 # not just through cpp. "Syntax error" is here to catch this case.
5059 cat >conftest.$ac_ext <<_ACEOF
6de9cd9a
DN
5060/* confdefs.h. */
5061_ACEOF
5062cat confdefs.h >>conftest.$ac_ext
5063cat >>conftest.$ac_ext <<_ACEOF
5064/* end confdefs.h. */
96b8a615
AJ
5065#ifdef __STDC__
5066# include <limits.h>
5067#else
5068# include <assert.h>
5069#endif
5070 Syntax error
6de9cd9a
DN
5071_ACEOF
5072if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5073 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5074 ac_status=$?
5075 grep -v '^ *+' conftest.er1 >conftest.err
5076 rm -f conftest.er1
5077 cat conftest.err >&5
5078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5079 (exit $ac_status); } >/dev/null; then
5080 if test -s conftest.err; then
5081 ac_cpp_err=$ac_c_preproc_warn_flag
5082 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5083 else
5084 ac_cpp_err=
5085 fi
5086else
5087 ac_cpp_err=yes
5088fi
5089if test -z "$ac_cpp_err"; then
96b8a615 5090 :
6de9cd9a
DN
5091else
5092 echo "$as_me: failed program was:" >&5
5093sed 's/^/| /' conftest.$ac_ext >&5
5094
96b8a615
AJ
5095 # Broken: fails on valid input.
5096continue
6de9cd9a
DN
5097fi
5098rm -f conftest.err conftest.$ac_ext
6de9cd9a 5099
96b8a615
AJ
5100 # OK, works on sane cases. Now check whether non-existent headers
5101 # can be detected and how.
5102 cat >conftest.$ac_ext <<_ACEOF
5103/* confdefs.h. */
5104_ACEOF
5105cat confdefs.h >>conftest.$ac_ext
5106cat >>conftest.$ac_ext <<_ACEOF
5107/* end confdefs.h. */
5108#include <ac_nonexistent.h>
6de9cd9a 5109_ACEOF
96b8a615
AJ
5110if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5111 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5112 ac_status=$?
5113 grep -v '^ *+' conftest.er1 >conftest.err
5114 rm -f conftest.er1
5115 cat conftest.err >&5
5116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5117 (exit $ac_status); } >/dev/null; then
5118 if test -s conftest.err; then
5119 ac_cpp_err=$ac_c_preproc_warn_flag
5120 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5121 else
5122 ac_cpp_err=
5123 fi
5124else
5125 ac_cpp_err=yes
5126fi
5127if test -z "$ac_cpp_err"; then
5128 # Broken: success on invalid input.
5129continue
5130else
5131 echo "$as_me: failed program was:" >&5
5132sed 's/^/| /' conftest.$ac_ext >&5
6de9cd9a 5133
96b8a615
AJ
5134 # Passes both tests.
5135ac_preproc_ok=:
5136break
6de9cd9a 5137fi
96b8a615 5138rm -f conftest.err conftest.$ac_ext
6de9cd9a
DN
5139
5140done
96b8a615
AJ
5141# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5142rm -f conftest.err conftest.$ac_ext
5143if $ac_preproc_ok; then
5144 :
5145else
5146 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5147See \`config.log' for more details." >&5
5148echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5149See \`config.log' for more details." >&2;}
5150 { (exit 1); exit 1; }; }
5151fi
6de9cd9a 5152
96b8a615
AJ
5153ac_ext=c
5154ac_cpp='$CPP $CPPFLAGS'
5155ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5156ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5157ac_compiler_gnu=$ac_cv_c_compiler_gnu
6de9cd9a
DN
5158
5159
96b8a615
AJ
5160echo "$as_me:$LINENO: checking for egrep" >&5
5161echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5162if test "${ac_cv_prog_egrep+set}" = set; then
5163 echo $ECHO_N "(cached) $ECHO_C" >&6
5164else
5165 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
5166 then ac_cv_prog_egrep='grep -E'
5167 else ac_cv_prog_egrep='egrep'
5168 fi
5169fi
5170echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
5171echo "${ECHO_T}$ac_cv_prog_egrep" >&6
5172 EGREP=$ac_cv_prog_egrep
6de9cd9a
DN
5173
5174
96b8a615
AJ
5175echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5176echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5177if test "${ac_cv_header_stdc+set}" = set; then
6de9cd9a 5178 echo $ECHO_N "(cached) $ECHO_C" >&6
6de9cd9a 5179else
96b8a615 5180 cat >conftest.$ac_ext <<_ACEOF
6de9cd9a
DN
5181/* confdefs.h. */
5182_ACEOF
5183cat confdefs.h >>conftest.$ac_ext
5184cat >>conftest.$ac_ext <<_ACEOF
5185/* end confdefs.h. */
96b8a615
AJ
5186#include <stdlib.h>
5187#include <stdarg.h>
5188#include <string.h>
5189#include <float.h>
5190
5191int
5192main ()
5193{
5194
5195 ;
5196 return 0;
5197}
6de9cd9a
DN
5198_ACEOF
5199rm -f conftest.$ac_objext
5200if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5201 (eval $ac_compile) 2>conftest.er1
5202 ac_status=$?
5203 grep -v '^ *+' conftest.er1 >conftest.err
5204 rm -f conftest.er1
5205 cat conftest.err >&5
5206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5207 (exit $ac_status); } &&
453310d8
RS
5208 { ac_try='test -z "$ac_c_werror_flag"
5209 || test ! -s conftest.err'
6de9cd9a
DN
5210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5211 (eval $ac_try) 2>&5
5212 ac_status=$?
5213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5214 (exit $ac_status); }; } &&
5215 { ac_try='test -s conftest.$ac_objext'
5216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5217 (eval $ac_try) 2>&5
5218 ac_status=$?
5219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5220 (exit $ac_status); }; }; then
96b8a615 5221 ac_cv_header_stdc=yes
6de9cd9a
DN
5222else
5223 echo "$as_me: failed program was:" >&5
5224sed 's/^/| /' conftest.$ac_ext >&5
5225
96b8a615 5226ac_cv_header_stdc=no
6de9cd9a
DN
5227fi
5228rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6de9cd9a 5229
96b8a615
AJ
5230if test $ac_cv_header_stdc = yes; then
5231 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5232 cat >conftest.$ac_ext <<_ACEOF
6de9cd9a
DN
5233/* confdefs.h. */
5234_ACEOF
5235cat confdefs.h >>conftest.$ac_ext
5236cat >>conftest.$ac_ext <<_ACEOF
5237/* end confdefs.h. */
96b8a615
AJ
5238#include <string.h>
5239
6de9cd9a 5240_ACEOF
96b8a615
AJ
5241if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5242 $EGREP "memchr" >/dev/null 2>&1; then
5243 :
6de9cd9a 5244else
96b8a615 5245 ac_cv_header_stdc=no
6de9cd9a 5246fi
96b8a615
AJ
5247rm -f conftest*
5248
5249fi
5250
5251if test $ac_cv_header_stdc = yes; then
5252 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5253 cat >conftest.$ac_ext <<_ACEOF
5254/* confdefs.h. */
5255_ACEOF
5256cat confdefs.h >>conftest.$ac_ext
5257cat >>conftest.$ac_ext <<_ACEOF
5258/* end confdefs.h. */
5259#include <stdlib.h>
5260
5261_ACEOF
5262if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5263 $EGREP "free" >/dev/null 2>&1; then
5264 :
6de9cd9a 5265else
96b8a615
AJ
5266 ac_cv_header_stdc=no
5267fi
5268rm -f conftest*
5269
5270fi
5271
5272if test $ac_cv_header_stdc = yes; then
5273 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5274 if test "$cross_compiling" = yes; then
5275 :
5276else
5277 cat >conftest.$ac_ext <<_ACEOF
5278/* confdefs.h. */
5279_ACEOF
5280cat confdefs.h >>conftest.$ac_ext
5281cat >>conftest.$ac_ext <<_ACEOF
5282/* end confdefs.h. */
5283#include <ctype.h>
5284#if ((' ' & 0x0FF) == 0x020)
5285# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5286# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5287#else
5288# define ISLOWER(c) \
5289 (('a' <= (c) && (c) <= 'i') \
5290 || ('j' <= (c) && (c) <= 'r') \
5291 || ('s' <= (c) && (c) <= 'z'))
5292# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5293#endif
5294
5295#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5296int
5297main ()
5298{
5299 int i;
5300 for (i = 0; i < 256; i++)
5301 if (XOR (islower (i), ISLOWER (i))
5302 || toupper (i) != TOUPPER (i))
5303 exit(2);
5304 exit (0);
5305}
5306_ACEOF
5307rm -f conftest$ac_exeext
5308if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5309 (eval $ac_link) 2>&5
5310 ac_status=$?
5311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5312 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5314 (eval $ac_try) 2>&5
5315 ac_status=$?
5316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5317 (exit $ac_status); }; }; then
5318 :
5319else
5320 echo "$as_me: program exited with status $ac_status" >&5
5321echo "$as_me: failed program was:" >&5
6de9cd9a
DN
5322sed 's/^/| /' conftest.$ac_ext >&5
5323
96b8a615
AJ
5324( exit $ac_status )
5325ac_cv_header_stdc=no
6de9cd9a 5326fi
96b8a615
AJ
5327rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5328fi
5329fi
5330fi
5331echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5332echo "${ECHO_T}$ac_cv_header_stdc" >&6
5333if test $ac_cv_header_stdc = yes; then
6de9cd9a 5334
96b8a615
AJ
5335cat >>confdefs.h <<\_ACEOF
5336#define STDC_HEADERS 1
5337_ACEOF
5338
5339fi
5340
5341# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5342
5343
5344
5345
5346
5347
5348
5349
5350
5351for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5352 inttypes.h stdint.h unistd.h
5353do
5354as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6de9cd9a
DN
5355echo "$as_me:$LINENO: checking for $ac_header" >&5
5356echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5357if eval "test \"\${$as_ac_Header+set}\" = set"; then
5358 echo $ECHO_N "(cached) $ECHO_C" >&6
5359else
96b8a615
AJ
5360 cat >conftest.$ac_ext <<_ACEOF
5361/* confdefs.h. */
5362_ACEOF
5363cat confdefs.h >>conftest.$ac_ext
5364cat >>conftest.$ac_ext <<_ACEOF
5365/* end confdefs.h. */
5366$ac_includes_default
5367
5368#include <$ac_header>
5369_ACEOF
5370rm -f conftest.$ac_objext
5371if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5372 (eval $ac_compile) 2>conftest.er1
5373 ac_status=$?
5374 grep -v '^ *+' conftest.er1 >conftest.err
5375 rm -f conftest.er1
5376 cat conftest.err >&5
5377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5378 (exit $ac_status); } &&
453310d8
RS
5379 { ac_try='test -z "$ac_c_werror_flag"
5380 || test ! -s conftest.err'
96b8a615
AJ
5381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5382 (eval $ac_try) 2>&5
5383 ac_status=$?
5384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5385 (exit $ac_status); }; } &&
5386 { ac_try='test -s conftest.$ac_objext'
5387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5388 (eval $ac_try) 2>&5
5389 ac_status=$?
5390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5391 (exit $ac_status); }; }; then
5392 eval "$as_ac_Header=yes"
5393else
5394 echo "$as_me: failed program was:" >&5
5395sed 's/^/| /' conftest.$ac_ext >&5
5396
5397eval "$as_ac_Header=no"
5398fi
5399rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6de9cd9a
DN
5400fi
5401echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5402echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6de9cd9a
DN
5403if test `eval echo '${'$as_ac_Header'}'` = yes; then
5404 cat >>confdefs.h <<_ACEOF
5405#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5406_ACEOF
5407
5408fi
5409
5410done
5411
96b8a615
AJ
5412
5413
5414
5415for ac_header in stdlib.h unistd.h
5416do
5417as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5418if eval "test \"\${$as_ac_Header+set}\" = set"; then
5419 echo "$as_me:$LINENO: checking for $ac_header" >&5
5420echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5421if eval "test \"\${$as_ac_Header+set}\" = set"; then
6de9cd9a
DN
5422 echo $ECHO_N "(cached) $ECHO_C" >&6
5423fi
96b8a615
AJ
5424echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5425echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6de9cd9a
DN
5426else
5427 # Is the header compilable?
96b8a615
AJ
5428echo "$as_me:$LINENO: checking $ac_header usability" >&5
5429echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6de9cd9a
DN
5430cat >conftest.$ac_ext <<_ACEOF
5431/* confdefs.h. */
5432_ACEOF
5433cat confdefs.h >>conftest.$ac_ext
5434cat >>conftest.$ac_ext <<_ACEOF
5435/* end confdefs.h. */
5436$ac_includes_default
96b8a615 5437#include <$ac_header>
6de9cd9a
DN
5438_ACEOF
5439rm -f conftest.$ac_objext
5440if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5441 (eval $ac_compile) 2>conftest.er1
5442 ac_status=$?
5443 grep -v '^ *+' conftest.er1 >conftest.err
5444 rm -f conftest.er1
5445 cat conftest.err >&5
5446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5447 (exit $ac_status); } &&
453310d8
RS
5448 { ac_try='test -z "$ac_c_werror_flag"
5449 || test ! -s conftest.err'
6de9cd9a
DN
5450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5451 (eval $ac_try) 2>&5
5452 ac_status=$?
5453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5454 (exit $ac_status); }; } &&
5455 { ac_try='test -s conftest.$ac_objext'
5456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5457 (eval $ac_try) 2>&5
5458 ac_status=$?
5459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5460 (exit $ac_status); }; }; then
5461 ac_header_compiler=yes
5462else
5463 echo "$as_me: failed program was:" >&5
5464sed 's/^/| /' conftest.$ac_ext >&5
5465
5466ac_header_compiler=no
5467fi
5468rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5469echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5470echo "${ECHO_T}$ac_header_compiler" >&6
5471
5472# Is the header present?
96b8a615
AJ
5473echo "$as_me:$LINENO: checking $ac_header presence" >&5
5474echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6de9cd9a
DN
5475cat >conftest.$ac_ext <<_ACEOF
5476/* confdefs.h. */
5477_ACEOF
5478cat confdefs.h >>conftest.$ac_ext
5479cat >>conftest.$ac_ext <<_ACEOF
5480/* end confdefs.h. */
96b8a615 5481#include <$ac_header>
6de9cd9a
DN
5482_ACEOF
5483if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5484 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5485 ac_status=$?
5486 grep -v '^ *+' conftest.er1 >conftest.err
5487 rm -f conftest.er1
5488 cat conftest.err >&5
5489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5490 (exit $ac_status); } >/dev/null; then
5491 if test -s conftest.err; then
5492 ac_cpp_err=$ac_c_preproc_warn_flag
5493 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5494 else
5495 ac_cpp_err=
5496 fi
5497else
5498 ac_cpp_err=yes
5499fi
5500if test -z "$ac_cpp_err"; then
5501 ac_header_preproc=yes
5502else
5503 echo "$as_me: failed program was:" >&5
5504sed 's/^/| /' conftest.$ac_ext >&5
5505
5506 ac_header_preproc=no
5507fi
5508rm -f conftest.err conftest.$ac_ext
5509echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5510echo "${ECHO_T}$ac_header_preproc" >&6
5511
5512# So? What about this header?
5513case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5514 yes:no: )
96b8a615
AJ
5515 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5516echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5517 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5518echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6de9cd9a
DN
5519 ac_header_preproc=yes
5520 ;;
5521 no:yes:* )
96b8a615
AJ
5522 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5523echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5524 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5525echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5526 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5527echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5528 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5529echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5530 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5531echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5532 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5533echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6de9cd9a
DN
5534 (
5535 cat <<\_ASBOX
5536## ------------------------------------------------------ ##
5537## Report this to the GNU Fortran Runtime Library lists. ##
5538## ------------------------------------------------------ ##
5539_ASBOX
5540 ) |
5541 sed "s/^/$as_me: WARNING: /" >&2
5542 ;;
5543esac
96b8a615
AJ
5544echo "$as_me:$LINENO: checking for $ac_header" >&5
5545echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5546if eval "test \"\${$as_ac_Header+set}\" = set"; then
6de9cd9a
DN
5547 echo $ECHO_N "(cached) $ECHO_C" >&6
5548else
96b8a615 5549 eval "$as_ac_Header=\$ac_header_preproc"
6de9cd9a 5550fi
96b8a615
AJ
5551echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5552echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5553
5554fi
5555if test `eval echo '${'$as_ac_Header'}'` = yes; then
5556 cat >>confdefs.h <<_ACEOF
5557#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5558_ACEOF
6de9cd9a 5559
96b8a615 5560fi
6de9cd9a 5561
96b8a615 5562done
6de9cd9a
DN
5563
5564
96b8a615 5565for ac_func in getpagesize
6de9cd9a
DN
5566do
5567as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5568echo "$as_me:$LINENO: checking for $ac_func" >&5
5569echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5570if eval "test \"\${$as_ac_var+set}\" = set"; then
5571 echo $ECHO_N "(cached) $ECHO_C" >&6
5572else
5573 cat >conftest.$ac_ext <<_ACEOF
5574/* confdefs.h. */
5575_ACEOF
5576cat confdefs.h >>conftest.$ac_ext
5577cat >>conftest.$ac_ext <<_ACEOF
5578/* end confdefs.h. */
5579/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5580 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5581#define $ac_func innocuous_$ac_func
5582
5583/* System header to define __stub macros and hopefully few prototypes,
5584 which can conflict with char $ac_func (); below.
5585 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5586 <limits.h> exists even on freestanding compilers. */
5587
5588#ifdef __STDC__
5589# include <limits.h>
5590#else
5591# include <assert.h>
5592#endif
5593
5594#undef $ac_func
5595
5596/* Override any gcc2 internal prototype to avoid an error. */
5597#ifdef __cplusplus
5598extern "C"
5599{
5600#endif
5601/* We use char because int might match the return type of a gcc2
5602 builtin and then its argument prototype would still apply. */
5603char $ac_func ();
5604/* The GNU C library defines this for functions which it implements
5605 to always fail with ENOSYS. Some functions are actually named
5606 something starting with __ and the normal name is an alias. */
5607#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5608choke me
5609#else
5610char (*f) () = $ac_func;
5611#endif
5612#ifdef __cplusplus
5613}
5614#endif
5615
5616int
5617main ()
5618{
5619return f != $ac_func;
5620 ;
5621 return 0;
5622}
5623_ACEOF
5624rm -f conftest.$ac_objext conftest$ac_exeext
5625if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5626 (eval $ac_link) 2>conftest.er1
5627 ac_status=$?
5628 grep -v '^ *+' conftest.er1 >conftest.err
5629 rm -f conftest.er1
5630 cat conftest.err >&5
5631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5632 (exit $ac_status); } &&
453310d8
RS
5633 { ac_try='test -z "$ac_c_werror_flag"
5634 || test ! -s conftest.err'
6de9cd9a
DN
5635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5636 (eval $ac_try) 2>&5
5637 ac_status=$?
5638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5639 (exit $ac_status); }; } &&
5640 { ac_try='test -s conftest$ac_exeext'
5641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5642 (eval $ac_try) 2>&5
5643 ac_status=$?
5644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5645 (exit $ac_status); }; }; then
5646 eval "$as_ac_var=yes"
5647else
5648 echo "$as_me: failed program was:" >&5
5649sed 's/^/| /' conftest.$ac_ext >&5
5650
5651eval "$as_ac_var=no"
5652fi
5653rm -f conftest.err conftest.$ac_objext \
5654 conftest$ac_exeext conftest.$ac_ext
5655fi
5656echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5657echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5658if test `eval echo '${'$as_ac_var'}'` = yes; then
5659 cat >>confdefs.h <<_ACEOF
5660#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5661_ACEOF
5662
5663fi
5664done
5665
96b8a615
AJ
5666echo "$as_me:$LINENO: checking for working mmap" >&5
5667echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
5668if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
6de9cd9a 5669 echo $ECHO_N "(cached) $ECHO_C" >&6
96b8a615
AJ
5670else
5671 if test "$cross_compiling" = yes; then
5672 ac_cv_func_mmap_fixed_mapped=no
6de9cd9a
DN
5673else
5674 cat >conftest.$ac_ext <<_ACEOF
5675/* confdefs.h. */
5676_ACEOF
5677cat confdefs.h >>conftest.$ac_ext
5678cat >>conftest.$ac_ext <<_ACEOF
5679/* end confdefs.h. */
96b8a615
AJ
5680$ac_includes_default
5681/* malloc might have been renamed as rpl_malloc. */
5682#undef malloc
5683
5684/* Thanks to Mike Haertel and Jim Avera for this test.
5685 Here is a matrix of mmap possibilities:
5686 mmap private not fixed
5687 mmap private fixed at somewhere currently unmapped
5688 mmap private fixed at somewhere already mapped
5689 mmap shared not fixed
5690 mmap shared fixed at somewhere currently unmapped
5691 mmap shared fixed at somewhere already mapped
5692 For private mappings, we should verify that changes cannot be read()
5693 back from the file, nor mmap's back from the file at a different
5694 address. (There have been systems where private was not correctly
5695 implemented like the infamous i386 svr4.0, and systems where the
5696 VM page cache was not coherent with the file system buffer cache
5697 like early versions of FreeBSD and possibly contemporary NetBSD.)
5698 For shared mappings, we should conversely verify that changes get
5699 propagated back to all the places they're supposed to be.
5700
5701 Grep wants private fixed already mapped.
5702 The main things grep needs to know about mmap are:
5703 * does it exist and is it safe to write into the mmap'd area
5704 * how to use it (BSD variants) */
5705
5706#include <fcntl.h>
5707#include <sys/mman.h>
5708
5709#if !STDC_HEADERS && !HAVE_STDLIB_H
5710char *malloc ();
5711#endif
5712
5713/* This mess was copied from the GNU getpagesize.h. */
5714#if !HAVE_GETPAGESIZE
5715/* Assume that all systems that can run configure have sys/param.h. */
5716# if !HAVE_SYS_PARAM_H
5717# define HAVE_SYS_PARAM_H 1
5718# endif
5719
5720# ifdef _SC_PAGESIZE
5721# define getpagesize() sysconf(_SC_PAGESIZE)
5722# else /* no _SC_PAGESIZE */
5723# if HAVE_SYS_PARAM_H
5724# include <sys/param.h>
5725# ifdef EXEC_PAGESIZE
5726# define getpagesize() EXEC_PAGESIZE
5727# else /* no EXEC_PAGESIZE */
5728# ifdef NBPG
5729# define getpagesize() NBPG * CLSIZE
5730# ifndef CLSIZE
5731# define CLSIZE 1
5732# endif /* no CLSIZE */
5733# else /* no NBPG */
5734# ifdef NBPC
5735# define getpagesize() NBPC
5736# else /* no NBPC */
5737# ifdef PAGESIZE
5738# define getpagesize() PAGESIZE
5739# endif /* PAGESIZE */
5740# endif /* no NBPC */
5741# endif /* no NBPG */
5742# endif /* no EXEC_PAGESIZE */
5743# else /* no HAVE_SYS_PARAM_H */
5744# define getpagesize() 8192 /* punt totally */
5745# endif /* no HAVE_SYS_PARAM_H */
5746# endif /* no _SC_PAGESIZE */
5747
5748#endif /* no HAVE_GETPAGESIZE */
6de9cd9a
DN
5749
5750int
5751main ()
5752{
96b8a615
AJ
5753 char *data, *data2, *data3;
5754 int i, pagesize;
5755 int fd;
5756
5757 pagesize = getpagesize ();
5758
5759 /* First, make a file with some known garbage in it. */
5760 data = (char *) malloc (pagesize);
5761 if (!data)
5762 exit (1);
5763 for (i = 0; i < pagesize; ++i)
5764 *(data + i) = rand ();
5765 umask (0);
5766 fd = creat ("conftest.mmap", 0600);
5767 if (fd < 0)
5768 exit (1);
5769 if (write (fd, data, pagesize) != pagesize)
5770 exit (1);
5771 close (fd);
5772
5773 /* Next, try to mmap the file at a fixed address which already has
5774 something else allocated at it. If we can, also make sure that
5775 we see the same garbage. */
5776 fd = open ("conftest.mmap", O_RDWR);
5777 if (fd < 0)
5778 exit (1);
5779 data2 = (char *) malloc (2 * pagesize);
5780 if (!data2)
5781 exit (1);
5782 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
5783 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
5784 MAP_PRIVATE | MAP_FIXED, fd, 0L))
5785 exit (1);
5786 for (i = 0; i < pagesize; ++i)
5787 if (*(data + i) != *(data2 + i))
5788 exit (1);
5789
5790 /* Finally, make sure that changes to the mapped area do not
5791 percolate back to the file as seen by read(). (This is a bug on
5792 some variants of i386 svr4.0.) */
5793 for (i = 0; i < pagesize; ++i)
5794 *(data2 + i) = *(data2 + i) + 1;
5795 data3 = (char *) malloc (pagesize);
5796 if (!data3)
5797 exit (1);
5798 if (read (fd, data3, pagesize) != pagesize)
5799 exit (1);
5800 for (i = 0; i < pagesize; ++i)
5801 if (*(data + i) != *(data3 + i))
5802 exit (1);
5803 close (fd);
5804 exit (0);
6de9cd9a
DN
5805}
5806_ACEOF
96b8a615
AJ
5807rm -f conftest$ac_exeext
5808if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5809 (eval $ac_link) 2>&5
6de9cd9a
DN
5810 ac_status=$?
5811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
96b8a615 5812 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6de9cd9a
DN
5813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5814 (eval $ac_try) 2>&5
5815 ac_status=$?
5816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5817 (exit $ac_status); }; }; then
96b8a615 5818 ac_cv_func_mmap_fixed_mapped=yes
6de9cd9a 5819else
96b8a615
AJ
5820 echo "$as_me: program exited with status $ac_status" >&5
5821echo "$as_me: failed program was:" >&5
6de9cd9a
DN
5822sed 's/^/| /' conftest.$ac_ext >&5
5823
96b8a615
AJ
5824( exit $ac_status )
5825ac_cv_func_mmap_fixed_mapped=no
6de9cd9a 5826fi
96b8a615 5827rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6de9cd9a 5828fi
96b8a615
AJ
5829fi
5830echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
5831echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
5832if test $ac_cv_func_mmap_fixed_mapped = yes; then
6de9cd9a
DN
5833
5834cat >>confdefs.h <<\_ACEOF
96b8a615 5835#define HAVE_MMAP 1
6de9cd9a
DN
5836_ACEOF
5837
5838fi
96b8a615 5839rm -f conftest.mmap
6de9cd9a 5840
96b8a615
AJ
5841echo "$as_me:$LINENO: checking for off_t" >&5
5842echo $ECHO_N "checking for off_t... $ECHO_C" >&6
5843if test "${ac_cv_type_off_t+set}" = set; then
6de9cd9a
DN
5844 echo $ECHO_N "(cached) $ECHO_C" >&6
5845else
96b8a615
AJ
5846 cat >conftest.$ac_ext <<_ACEOF
5847/* confdefs.h. */
5848_ACEOF
5849cat confdefs.h >>conftest.$ac_ext
5850cat >>conftest.$ac_ext <<_ACEOF
5851/* end confdefs.h. */
5852$ac_includes_default
6de9cd9a
DN
5853int
5854main ()
5855{
96b8a615
AJ
5856if ((off_t *) 0)
5857 return 0;
5858if (sizeof (off_t))
5859 return 0;
6de9cd9a
DN
5860 ;
5861 return 0;
5862}
5863_ACEOF
96b8a615
AJ
5864rm -f conftest.$ac_objext
5865if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5866 (eval $ac_compile) 2>conftest.er1
6de9cd9a
DN
5867 ac_status=$?
5868 grep -v '^ *+' conftest.er1 >conftest.err
5869 rm -f conftest.er1
5870 cat conftest.err >&5
5871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5872 (exit $ac_status); } &&
453310d8
RS
5873 { ac_try='test -z "$ac_c_werror_flag"
5874 || test ! -s conftest.err'
6de9cd9a
DN
5875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5876 (eval $ac_try) 2>&5
5877 ac_status=$?
5878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5879 (exit $ac_status); }; } &&
96b8a615 5880 { ac_try='test -s conftest.$ac_objext'
6de9cd9a
DN
5881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5882 (eval $ac_try) 2>&5
5883 ac_status=$?
5884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5885 (exit $ac_status); }; }; then
96b8a615 5886 ac_cv_type_off_t=yes
6de9cd9a
DN
5887else
5888 echo "$as_me: failed program was:" >&5
5889sed 's/^/| /' conftest.$ac_ext >&5
5890
96b8a615 5891ac_cv_type_off_t=no
6de9cd9a 5892fi
96b8a615 5893rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6de9cd9a 5894fi
96b8a615
AJ
5895echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
5896echo "${ECHO_T}$ac_cv_type_off_t" >&6
5897if test $ac_cv_type_off_t = yes; then
5898 :
5899else
5900
5901cat >>confdefs.h <<_ACEOF
5902#define off_t long
6de9cd9a
DN
5903_ACEOF
5904
5905fi
6de9cd9a 5906
96b8a615
AJ
5907
5908# check header files
5909echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5910echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5911if test "${ac_cv_header_stdc+set}" = set; then
6de9cd9a
DN
5912 echo $ECHO_N "(cached) $ECHO_C" >&6
5913else
5914 cat >conftest.$ac_ext <<_ACEOF
5915/* confdefs.h. */
5916_ACEOF
5917cat confdefs.h >>conftest.$ac_ext
5918cat >>conftest.$ac_ext <<_ACEOF
5919/* end confdefs.h. */
96b8a615
AJ
5920#include <stdlib.h>
5921#include <stdarg.h>
5922#include <string.h>
5923#include <float.h>
5924
6de9cd9a
DN
5925int
5926main ()
5927{
96b8a615 5928
6de9cd9a
DN
5929 ;
5930 return 0;
5931}
5932_ACEOF
5933rm -f conftest.$ac_objext
5934if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5935 (eval $ac_compile) 2>conftest.er1
5936 ac_status=$?
5937 grep -v '^ *+' conftest.er1 >conftest.err
5938 rm -f conftest.er1
5939 cat conftest.err >&5
5940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5941 (exit $ac_status); } &&
453310d8
RS
5942 { ac_try='test -z "$ac_c_werror_flag"
5943 || test ! -s conftest.err'
6de9cd9a
DN
5944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5945 (eval $ac_try) 2>&5
5946 ac_status=$?
5947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5948 (exit $ac_status); }; } &&
5949 { ac_try='test -s conftest.$ac_objext'
5950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5951 (eval $ac_try) 2>&5
5952 ac_status=$?
5953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5954 (exit $ac_status); }; }; then
96b8a615 5955 ac_cv_header_stdc=yes
6de9cd9a
DN
5956else
5957 echo "$as_me: failed program was:" >&5
5958sed 's/^/| /' conftest.$ac_ext >&5
5959
96b8a615 5960ac_cv_header_stdc=no
6de9cd9a
DN
5961fi
5962rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
96b8a615
AJ
5963
5964if test $ac_cv_header_stdc = yes; then
5965 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6de9cd9a
DN
5966 cat >conftest.$ac_ext <<_ACEOF
5967/* confdefs.h. */
5968_ACEOF
5969cat confdefs.h >>conftest.$ac_ext
5970cat >>conftest.$ac_ext <<_ACEOF
5971/* end confdefs.h. */
96b8a615 5972#include <string.h>
6de9cd9a 5973
6de9cd9a 5974_ACEOF
96b8a615
AJ
5975if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5976 $EGREP "memchr" >/dev/null 2>&1; then
5977 :
6de9cd9a 5978else
96b8a615 5979 ac_cv_header_stdc=no
6de9cd9a 5980fi
96b8a615
AJ
5981rm -f conftest*
5982
6de9cd9a 5983fi
6de9cd9a 5984
96b8a615
AJ
5985if test $ac_cv_header_stdc = yes; then
5986 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5987 cat >conftest.$ac_ext <<_ACEOF
5988/* confdefs.h. */
5989_ACEOF
5990cat confdefs.h >>conftest.$ac_ext
5991cat >>conftest.$ac_ext <<_ACEOF
5992/* end confdefs.h. */
5993#include <stdlib.h>
5994
6de9cd9a 5995_ACEOF
96b8a615
AJ
5996if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5997 $EGREP "free" >/dev/null 2>&1; then
5998 :
5999else
6000 ac_cv_header_stdc=no
6001fi
6002rm -f conftest*
6de9cd9a 6003
96b8a615 6004fi
6de9cd9a 6005
96b8a615
AJ
6006if test $ac_cv_header_stdc = yes; then
6007 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6008 if test "$cross_compiling" = yes; then
6009 :
6de9cd9a
DN
6010else
6011 cat >conftest.$ac_ext <<_ACEOF
6012/* confdefs.h. */
6013_ACEOF
6014cat confdefs.h >>conftest.$ac_ext
6015cat >>conftest.$ac_ext <<_ACEOF
6016/* end confdefs.h. */
96b8a615
AJ
6017#include <ctype.h>
6018#if ((' ' & 0x0FF) == 0x020)
6019# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6020# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6de9cd9a 6021#else
96b8a615
AJ
6022# define ISLOWER(c) \
6023 (('a' <= (c) && (c) <= 'i') \
6024 || ('j' <= (c) && (c) <= 'r') \
6025 || ('s' <= (c) && (c) <= 'z'))
6026# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6de9cd9a
DN
6027#endif
6028
96b8a615 6029#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6de9cd9a
DN
6030int
6031main ()
6032{
96b8a615
AJ
6033 int i;
6034 for (i = 0; i < 256; i++)
6035 if (XOR (islower (i), ISLOWER (i))
6036 || toupper (i) != TOUPPER (i))
6037 exit(2);
6038 exit (0);
6de9cd9a
DN
6039}
6040_ACEOF
96b8a615 6041rm -f conftest$ac_exeext
6de9cd9a 6042if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
96b8a615 6043 (eval $ac_link) 2>&5
6de9cd9a
DN
6044 ac_status=$?
6045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
96b8a615 6046 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6de9cd9a
DN
6047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6048 (eval $ac_try) 2>&5
6049 ac_status=$?
96b8a615
AJ
6050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6051 (exit $ac_status); }; }; then
6052 :
6de9cd9a 6053else
96b8a615
AJ
6054 echo "$as_me: program exited with status $ac_status" >&5
6055echo "$as_me: failed program was:" >&5
6056sed 's/^/| /' conftest.$ac_ext >&5
6de9cd9a 6057
96b8a615
AJ
6058( exit $ac_status )
6059ac_cv_header_stdc=no
6de9cd9a 6060fi
96b8a615 6061rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6de9cd9a
DN
6062fi
6063fi
6de9cd9a 6064fi
96b8a615
AJ
6065echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6066echo "${ECHO_T}$ac_cv_header_stdc" >&6
6067if test $ac_cv_header_stdc = yes; then
6de9cd9a 6068
96b8a615
AJ
6069cat >>confdefs.h <<\_ACEOF
6070#define STDC_HEADERS 1
6071_ACEOF
6de9cd9a
DN
6072
6073fi
6074
6de9cd9a
DN
6075
6076
6de9cd9a 6077
6de9cd9a
DN
6078
6079
6080
96b8a615
AJ
6081for ac_header in stdlib.h stdio.h string.h stddef.h math.h unistd.h
6082do
6083as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6084if eval "test \"\${$as_ac_Header+set}\" = set"; then
6085 echo "$as_me:$LINENO: checking for $ac_header" >&5
6086echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6087if eval "test \"\${$as_ac_Header+set}\" = set"; then
6088 echo $ECHO_N "(cached) $ECHO_C" >&6
6089fi
6090echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6091echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6de9cd9a 6092else
96b8a615
AJ
6093 # Is the header compilable?
6094echo "$as_me:$LINENO: checking $ac_header usability" >&5
6095echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6096cat >conftest.$ac_ext <<_ACEOF
6097/* confdefs.h. */
6098_ACEOF
6099cat confdefs.h >>conftest.$ac_ext
6100cat >>conftest.$ac_ext <<_ACEOF
6101/* end confdefs.h. */
6102$ac_includes_default
6103#include <$ac_header>
6104_ACEOF
6105rm -f conftest.$ac_objext
6106if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6107 (eval $ac_compile) 2>conftest.er1
6108 ac_status=$?
6109 grep -v '^ *+' conftest.er1 >conftest.err
6110 rm -f conftest.er1
6111 cat conftest.err >&5
6112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6113 (exit $ac_status); } &&
453310d8
RS
6114 { ac_try='test -z "$ac_c_werror_flag"
6115 || test ! -s conftest.err'
96b8a615
AJ
6116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6117 (eval $ac_try) 2>&5
6118 ac_status=$?
6119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6120 (exit $ac_status); }; } &&
6121 { ac_try='test -s conftest.$ac_objext'
6122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6123 (eval $ac_try) 2>&5
6124 ac_status=$?
6125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6126 (exit $ac_status); }; }; then
6127 ac_header_compiler=yes
6de9cd9a 6128else
96b8a615
AJ
6129 echo "$as_me: failed program was:" >&5
6130sed 's/^/| /' conftest.$ac_ext >&5
6131
6132ac_header_compiler=no
6de9cd9a 6133fi
96b8a615
AJ
6134rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6135echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6136echo "${ECHO_T}$ac_header_compiler" >&6
6137
6138# Is the header present?
6139echo "$as_me:$LINENO: checking $ac_header presence" >&5
6140echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6141cat >conftest.$ac_ext <<_ACEOF
6142/* confdefs.h. */
6143_ACEOF
6144cat confdefs.h >>conftest.$ac_ext
6145cat >>conftest.$ac_ext <<_ACEOF
6146/* end confdefs.h. */
6147#include <$ac_header>
6148_ACEOF
6149if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6150 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6151 ac_status=$?
6152 grep -v '^ *+' conftest.er1 >conftest.err
6153 rm -f conftest.er1
6154 cat conftest.err >&5
6155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6156 (exit $ac_status); } >/dev/null; then
6157 if test -s conftest.err; then
6158 ac_cpp_err=$ac_c_preproc_warn_flag
6159 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6160 else
6161 ac_cpp_err=
6162 fi
6de9cd9a 6163else
96b8a615 6164 ac_cpp_err=yes
6de9cd9a 6165fi
96b8a615
AJ
6166if test -z "$ac_cpp_err"; then
6167 ac_header_preproc=yes
6de9cd9a 6168else
96b8a615
AJ
6169 echo "$as_me: failed program was:" >&5
6170sed 's/^/| /' conftest.$ac_ext >&5
6171
6172 ac_header_preproc=no
6de9cd9a 6173fi
96b8a615
AJ
6174rm -f conftest.err conftest.$ac_ext
6175echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6176echo "${ECHO_T}$ac_header_preproc" >&6
6177
6178# So? What about this header?
6179case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6180 yes:no: )
6181 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6182echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6183 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6184echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6185 ac_header_preproc=yes
6186 ;;
6187 no:yes:* )
6188 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6189echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6190 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6191echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6192 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6193echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6194 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6195echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6196 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6197echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6198 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6199echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6200 (
6201 cat <<\_ASBOX
6202## ------------------------------------------------------ ##
6203## Report this to the GNU Fortran Runtime Library lists. ##
6204## ------------------------------------------------------ ##
6205_ASBOX
6206 ) |
6207 sed "s/^/$as_me: WARNING: /" >&2
6208 ;;
6209esac
6210echo "$as_me:$LINENO: checking for $ac_header" >&5
6211echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6212if eval "test \"\${$as_ac_Header+set}\" = set"; then
6de9cd9a
DN
6213 echo $ECHO_N "(cached) $ECHO_C" >&6
6214else
96b8a615 6215 eval "$as_ac_Header=\$ac_header_preproc"
6de9cd9a 6216fi
96b8a615
AJ
6217echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6218echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6de9cd9a 6219
96b8a615
AJ
6220fi
6221if test `eval echo '${'$as_ac_Header'}'` = yes; then
6222 cat >>confdefs.h <<_ACEOF
6223#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6224_ACEOF
6de9cd9a 6225
6de9cd9a 6226fi
6de9cd9a 6227
96b8a615
AJ
6228done
6229
6230
6231
6232
6233
6234
6235for ac_header in time.h sys/params.h sys/time.h sys/times.h sys/resource.h
6236do
6237as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6238if eval "test \"\${$as_ac_Header+set}\" = set"; then
6239 echo "$as_me:$LINENO: checking for $ac_header" >&5
6240echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6241if eval "test \"\${$as_ac_Header+set}\" = set"; then
6de9cd9a 6242 echo $ECHO_N "(cached) $ECHO_C" >&6
96b8a615
AJ
6243fi
6244echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6245echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6de9cd9a 6246else
96b8a615
AJ
6247 # Is the header compilable?
6248echo "$as_me:$LINENO: checking $ac_header usability" >&5
6249echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6250cat >conftest.$ac_ext <<_ACEOF
6251/* confdefs.h. */
6252_ACEOF
6253cat confdefs.h >>conftest.$ac_ext
6254cat >>conftest.$ac_ext <<_ACEOF
6255/* end confdefs.h. */
6256$ac_includes_default
6257#include <$ac_header>
6258_ACEOF
6259rm -f conftest.$ac_objext
6260if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6261 (eval $ac_compile) 2>conftest.er1
6262 ac_status=$?
6263 grep -v '^ *+' conftest.er1 >conftest.err
6264 rm -f conftest.er1
6265 cat conftest.err >&5
6266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6267 (exit $ac_status); } &&
453310d8
RS
6268 { ac_try='test -z "$ac_c_werror_flag"
6269 || test ! -s conftest.err'
96b8a615
AJ
6270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6271 (eval $ac_try) 2>&5
6272 ac_status=$?
6273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6274 (exit $ac_status); }; } &&
6275 { ac_try='test -s conftest.$ac_objext'
6276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6277 (eval $ac_try) 2>&5
6278 ac_status=$?
6279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6280 (exit $ac_status); }; }; then
6281 ac_header_compiler=yes
6de9cd9a 6282else
96b8a615
AJ
6283 echo "$as_me: failed program was:" >&5
6284sed 's/^/| /' conftest.$ac_ext >&5
6de9cd9a 6285
96b8a615
AJ
6286ac_header_compiler=no
6287fi
6288rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6289echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6290echo "${ECHO_T}$ac_header_compiler" >&6
6de9cd9a 6291
96b8a615
AJ
6292# Is the header present?
6293echo "$as_me:$LINENO: checking $ac_header presence" >&5
6294echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6295cat >conftest.$ac_ext <<_ACEOF
6296/* confdefs.h. */
6297_ACEOF
6298cat confdefs.h >>conftest.$ac_ext
6299cat >>conftest.$ac_ext <<_ACEOF
6300/* end confdefs.h. */
6301#include <$ac_header>
6302_ACEOF
6303if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6304 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6305 ac_status=$?
6306 grep -v '^ *+' conftest.er1 >conftest.err
6307 rm -f conftest.er1
6308 cat conftest.err >&5
6309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6310 (exit $ac_status); } >/dev/null; then
6311 if test -s conftest.err; then
6312 ac_cpp_err=$ac_c_preproc_warn_flag
6313 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6314 else
6315 ac_cpp_err=
6316 fi
6de9cd9a 6317else
96b8a615 6318 ac_cpp_err=yes
6de9cd9a 6319fi
96b8a615
AJ
6320if test -z "$ac_cpp_err"; then
6321 ac_header_preproc=yes
6de9cd9a 6322else
96b8a615
AJ
6323 echo "$as_me: failed program was:" >&5
6324sed 's/^/| /' conftest.$ac_ext >&5
6de9cd9a 6325
96b8a615
AJ
6326 ac_header_preproc=no
6327fi
6328rm -f conftest.err conftest.$ac_ext
6329echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6330echo "${ECHO_T}$ac_header_preproc" >&6
6de9cd9a 6331
96b8a615
AJ
6332# So? What about this header?
6333case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6334 yes:no: )
6335 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6336echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6337 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6338echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6339 ac_header_preproc=yes
6de9cd9a 6340 ;;
96b8a615
AJ
6341 no:yes:* )
6342 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6343echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6344 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6345echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6346 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6347echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6348 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6349echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6350 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6351echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6352 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6353echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6354 (
6355 cat <<\_ASBOX
6356## ------------------------------------------------------ ##
6357## Report this to the GNU Fortran Runtime Library lists. ##
6358## ------------------------------------------------------ ##
6359_ASBOX
6360 ) |
6361 sed "s/^/$as_me: WARNING: /" >&2
6de9cd9a 6362 ;;
96b8a615
AJ
6363esac
6364echo "$as_me:$LINENO: checking for $ac_header" >&5
6365echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6366if eval "test \"\${$as_ac_Header+set}\" = set"; then
6367 echo $ECHO_N "(cached) $ECHO_C" >&6
6368else
6369 eval "$as_ac_Header=\$ac_header_preproc"
6370fi
6371echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6372echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6de9cd9a 6373
96b8a615
AJ
6374fi
6375if test `eval echo '${'$as_ac_Header'}'` = yes; then
6376 cat >>confdefs.h <<_ACEOF
6377#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6378_ACEOF
6de9cd9a 6379
96b8a615 6380fi
6de9cd9a 6381
96b8a615 6382done
6de9cd9a 6383
96b8a615
AJ
6384if test "${ac_cv_header_complex_h+set}" = set; then
6385 echo "$as_me:$LINENO: checking for complex.h" >&5
6386echo $ECHO_N "checking for complex.h... $ECHO_C" >&6
6387if test "${ac_cv_header_complex_h+set}" = set; then
6388 echo $ECHO_N "(cached) $ECHO_C" >&6
6389fi
6390echo "$as_me:$LINENO: result: $ac_cv_header_complex_h" >&5
6391echo "${ECHO_T}$ac_cv_header_complex_h" >&6
6392else
6393 # Is the header compilable?
6394echo "$as_me:$LINENO: checking complex.h usability" >&5
6395echo $ECHO_N "checking complex.h usability... $ECHO_C" >&6
6396cat >conftest.$ac_ext <<_ACEOF
6397/* confdefs.h. */
6398_ACEOF
6399cat confdefs.h >>conftest.$ac_ext
6400cat >>conftest.$ac_ext <<_ACEOF
6401/* end confdefs.h. */
6402$ac_includes_default
6403#include <complex.h>
6404_ACEOF
6405rm -f conftest.$ac_objext
6406if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6407 (eval $ac_compile) 2>conftest.er1
6408 ac_status=$?
6409 grep -v '^ *+' conftest.er1 >conftest.err
6410 rm -f conftest.er1
6411 cat conftest.err >&5
6412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6413 (exit $ac_status); } &&
453310d8
RS
6414 { ac_try='test -z "$ac_c_werror_flag"
6415 || test ! -s conftest.err'
96b8a615
AJ
6416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6417 (eval $ac_try) 2>&5
6418 ac_status=$?
6419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6420 (exit $ac_status); }; } &&
6421 { ac_try='test -s conftest.$ac_objext'
6422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6423 (eval $ac_try) 2>&5
6424 ac_status=$?
6425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6426 (exit $ac_status); }; }; then
6427 ac_header_compiler=yes
6428else
6429 echo "$as_me: failed program was:" >&5
6430sed 's/^/| /' conftest.$ac_ext >&5
6de9cd9a 6431
96b8a615
AJ
6432ac_header_compiler=no
6433fi
6434rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6435echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6436echo "${ECHO_T}$ac_header_compiler" >&6
6de9cd9a 6437
96b8a615
AJ
6438# Is the header present?
6439echo "$as_me:$LINENO: checking complex.h presence" >&5
6440echo $ECHO_N "checking complex.h presence... $ECHO_C" >&6
6441cat >conftest.$ac_ext <<_ACEOF
6442/* confdefs.h. */
6443_ACEOF
6444cat confdefs.h >>conftest.$ac_ext
6445cat >>conftest.$ac_ext <<_ACEOF
6446/* end confdefs.h. */
6447#include <complex.h>
6448_ACEOF
6449if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6450 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6451 ac_status=$?
6452 grep -v '^ *+' conftest.er1 >conftest.err
6453 rm -f conftest.er1
6454 cat conftest.err >&5
6455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6456 (exit $ac_status); } >/dev/null; then
6457 if test -s conftest.err; then
6458 ac_cpp_err=$ac_c_preproc_warn_flag
6459 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6de9cd9a 6460 else
96b8a615 6461 ac_cpp_err=
6de9cd9a 6462 fi
96b8a615
AJ
6463else
6464 ac_cpp_err=yes
6465fi
6466if test -z "$ac_cpp_err"; then
6467 ac_header_preproc=yes
6468else
6469 echo "$as_me: failed program was:" >&5
6470sed 's/^/| /' conftest.$ac_ext >&5
6de9cd9a 6471
96b8a615
AJ
6472 ac_header_preproc=no
6473fi
6474rm -f conftest.err conftest.$ac_ext
6475echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6476echo "${ECHO_T}$ac_header_preproc" >&6
6de9cd9a 6477
96b8a615
AJ
6478# So? What about this header?
6479case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6480 yes:no: )
6481 { echo "$as_me:$LINENO: WARNING: complex.h: accepted by the compiler, rejected by the preprocessor!" >&5
6482echo "$as_me: WARNING: complex.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6483 { echo "$as_me:$LINENO: WARNING: complex.h: proceeding with the compiler's result" >&5
6484echo "$as_me: WARNING: complex.h: proceeding with the compiler's result" >&2;}
6485 ac_header_preproc=yes
6de9cd9a 6486 ;;
96b8a615
AJ
6487 no:yes:* )
6488 { echo "$as_me:$LINENO: WARNING: complex.h: present but cannot be compiled" >&5
6489echo "$as_me: WARNING: complex.h: present but cannot be compiled" >&2;}
6490 { echo "$as_me:$LINENO: WARNING: complex.h: check for missing prerequisite headers?" >&5
6491echo "$as_me: WARNING: complex.h: check for missing prerequisite headers?" >&2;}
6492 { echo "$as_me:$LINENO: WARNING: complex.h: see the Autoconf documentation" >&5
6493echo "$as_me: WARNING: complex.h: see the Autoconf documentation" >&2;}
6494 { echo "$as_me:$LINENO: WARNING: complex.h: section \"Present But Cannot Be Compiled\"" >&5
6495echo "$as_me: WARNING: complex.h: section \"Present But Cannot Be Compiled\"" >&2;}
6496 { echo "$as_me:$LINENO: WARNING: complex.h: proceeding with the preprocessor's result" >&5
6497echo "$as_me: WARNING: complex.h: proceeding with the preprocessor's result" >&2;}
6498 { echo "$as_me:$LINENO: WARNING: complex.h: in the future, the compiler will take precedence" >&5
6499echo "$as_me: WARNING: complex.h: in the future, the compiler will take precedence" >&2;}
6500 (
6501 cat <<\_ASBOX
6502## ------------------------------------------------------ ##
6503## Report this to the GNU Fortran Runtime Library lists. ##
6504## ------------------------------------------------------ ##
6505_ASBOX
6506 ) |
6507 sed "s/^/$as_me: WARNING: /" >&2
6de9cd9a 6508 ;;
6de9cd9a 6509esac
96b8a615
AJ
6510echo "$as_me:$LINENO: checking for complex.h" >&5
6511echo $ECHO_N "checking for complex.h... $ECHO_C" >&6
6512if test "${ac_cv_header_complex_h+set}" = set; then
6513 echo $ECHO_N "(cached) $ECHO_C" >&6
6514else
6515 ac_cv_header_complex_h=$ac_header_preproc
6516fi
6517echo "$as_me:$LINENO: result: $ac_cv_header_complex_h" >&5
6518echo "${ECHO_T}$ac_cv_header_complex_h" >&6
6de9cd9a
DN
6519
6520fi
96b8a615 6521if test $ac_cv_header_complex_h = yes; then
6de9cd9a 6522
96b8a615
AJ
6523cat >>confdefs.h <<\_ACEOF
6524#define HAVE_COMPLEX_H 1
6525_ACEOF
6de9cd9a 6526
96b8a615 6527fi
6de9cd9a
DN
6528
6529
6de9cd9a 6530
96b8a615
AJ
6531# Check for complex math functions
6532echo "$as_me:$LINENO: checking for csin in -lm" >&5
6533echo $ECHO_N "checking for csin in -lm... $ECHO_C" >&6
6534if test "${ac_cv_lib_m_csin+set}" = set; then
6de9cd9a
DN
6535 echo $ECHO_N "(cached) $ECHO_C" >&6
6536else
96b8a615
AJ
6537 ac_check_lib_save_LIBS=$LIBS
6538LIBS="-lm $LIBS"
6539cat >conftest.$ac_ext <<_ACEOF
6540/* confdefs.h. */
6541_ACEOF
6542cat confdefs.h >>conftest.$ac_ext
6543cat >>conftest.$ac_ext <<_ACEOF
6544/* end confdefs.h. */
6de9cd9a 6545
96b8a615
AJ
6546/* Override any gcc2 internal prototype to avoid an error. */
6547#ifdef __cplusplus
6548extern "C"
6549#endif
6550/* We use char because int might match the return type of a gcc2
6551 builtin and then its argument prototype would still apply. */
6552char csin ();
6553int
6554main ()
6555{
6556csin ();
6557 ;
6558 return 0;
6559}
6560_ACEOF
6561rm -f conftest.$ac_objext conftest$ac_exeext
6562if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6563 (eval $ac_link) 2>conftest.er1
6564 ac_status=$?
6565 grep -v '^ *+' conftest.er1 >conftest.err
6566 rm -f conftest.er1
6567 cat conftest.err >&5
6568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6569 (exit $ac_status); } &&
453310d8
RS
6570 { ac_try='test -z "$ac_c_werror_flag"
6571 || test ! -s conftest.err'
96b8a615
AJ
6572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6573 (eval $ac_try) 2>&5
6574 ac_status=$?
6575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6576 (exit $ac_status); }; } &&
6577 { ac_try='test -s conftest$ac_exeext'
6578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6579 (eval $ac_try) 2>&5
6580 ac_status=$?
6581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6582 (exit $ac_status); }; }; then
6583 ac_cv_lib_m_csin=yes
6584else
6585 echo "$as_me: failed program was:" >&5
6586sed 's/^/| /' conftest.$ac_ext >&5
6587
6588ac_cv_lib_m_csin=no
6589fi
6590rm -f conftest.err conftest.$ac_objext \
6591 conftest$ac_exeext conftest.$ac_ext
6592LIBS=$ac_check_lib_save_LIBS
6593fi
6594echo "$as_me:$LINENO: result: $ac_cv_lib_m_csin" >&5
6595echo "${ECHO_T}$ac_cv_lib_m_csin" >&6
6596if test $ac_cv_lib_m_csin = yes; then
6597 need_math="no"
6598else
6599 need_math="yes"
6600fi
6601
6602
96b8a615
AJ
6603# Check for library functions.
6604
6605
6606for ac_func in getrusage times
6607do
6608as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6609echo "$as_me:$LINENO: checking for $ac_func" >&5
6610echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6611if eval "test \"\${$as_ac_var+set}\" = set"; then
6de9cd9a
DN
6612 echo $ECHO_N "(cached) $ECHO_C" >&6
6613else
96b8a615
AJ
6614 cat >conftest.$ac_ext <<_ACEOF
6615/* confdefs.h. */
6616_ACEOF
6617cat confdefs.h >>conftest.$ac_ext
6618cat >>conftest.$ac_ext <<_ACEOF
6619/* end confdefs.h. */
6620/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6621 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6622#define $ac_func innocuous_$ac_func
6de9cd9a 6623
96b8a615
AJ
6624/* System header to define __stub macros and hopefully few prototypes,
6625 which can conflict with char $ac_func (); below.
6626 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6627 <limits.h> exists even on freestanding compilers. */
6de9cd9a 6628
96b8a615
AJ
6629#ifdef __STDC__
6630# include <limits.h>
6631#else
6632# include <assert.h>
6633#endif
6de9cd9a 6634
96b8a615
AJ
6635#undef $ac_func
6636
6637/* Override any gcc2 internal prototype to avoid an error. */
6638#ifdef __cplusplus
6639extern "C"
6640{
6641#endif
6642/* We use char because int might match the return type of a gcc2
6643 builtin and then its argument prototype would still apply. */
6644char $ac_func ();
6645/* The GNU C library defines this for functions which it implements
6646 to always fail with ENOSYS. Some functions are actually named
6647 something starting with __ and the normal name is an alias. */
6648#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6649choke me
6650#else
6651char (*f) () = $ac_func;
6652#endif
6653#ifdef __cplusplus
6654}
6655#endif
6656
6657int
6658main ()
6659{
6660return f != $ac_func;
6661 ;
6662 return 0;
6663}
6664_ACEOF
6665rm -f conftest.$ac_objext conftest$ac_exeext
6666if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6667 (eval $ac_link) 2>conftest.er1
6668 ac_status=$?
6669 grep -v '^ *+' conftest.er1 >conftest.err
6670 rm -f conftest.er1
6671 cat conftest.err >&5
6672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6673 (exit $ac_status); } &&
453310d8
RS
6674 { ac_try='test -z "$ac_c_werror_flag"
6675 || test ! -s conftest.err'
96b8a615
AJ
6676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6677 (eval $ac_try) 2>&5
6678 ac_status=$?
6679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6680 (exit $ac_status); }; } &&
6681 { ac_try='test -s conftest$ac_exeext'
6682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6683 (eval $ac_try) 2>&5
6684 ac_status=$?
6685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6686 (exit $ac_status); }; }; then
6687 eval "$as_ac_var=yes"
6de9cd9a 6688else
96b8a615
AJ
6689 echo "$as_me: failed program was:" >&5
6690sed 's/^/| /' conftest.$ac_ext >&5
6691
6692eval "$as_ac_var=no"
6693fi
6694rm -f conftest.err conftest.$ac_objext \
6695 conftest$ac_exeext conftest.$ac_ext
6de9cd9a 6696fi
96b8a615
AJ
6697echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6698echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6699if test `eval echo '${'$as_ac_var'}'` = yes; then
6700 cat >>confdefs.h <<_ACEOF
6701#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6702_ACEOF
6de9cd9a 6703
6de9cd9a 6704fi
96b8a615 6705done
6de9cd9a 6706
6de9cd9a 6707
453310d8
RS
6708# Check for C99 (and other IEEE) math functions
6709echo "$as_me:$LINENO: checking for acosf in -lm" >&5
6710echo $ECHO_N "checking for acosf in -lm... $ECHO_C" >&6
6711if test "${ac_cv_lib_m_acosf+set}" = set; then
6712 echo $ECHO_N "(cached) $ECHO_C" >&6
6713else
6714 ac_check_lib_save_LIBS=$LIBS
6715LIBS="-lm $LIBS"
6716cat >conftest.$ac_ext <<_ACEOF
6717/* confdefs.h. */
6718_ACEOF
6719cat confdefs.h >>conftest.$ac_ext
6720cat >>conftest.$ac_ext <<_ACEOF
6721/* end confdefs.h. */
6722
6723/* Override any gcc2 internal prototype to avoid an error. */
6724#ifdef __cplusplus
6725extern "C"
6726#endif
6727/* We use char because int might match the return type of a gcc2
6728 builtin and then its argument prototype would still apply. */
6729char acosf ();
6730int
6731main ()
6732{
6733acosf ();
6734 ;
6735 return 0;
6736}
6737_ACEOF
6738rm -f conftest.$ac_objext conftest$ac_exeext
6739if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6740 (eval $ac_link) 2>conftest.er1
6741 ac_status=$?
6742 grep -v '^ *+' conftest.er1 >conftest.err
6743 rm -f conftest.er1
6744 cat conftest.err >&5
6745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6746 (exit $ac_status); } &&
6747 { ac_try='test -z "$ac_c_werror_flag"
6748 || test ! -s conftest.err'
6749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6750 (eval $ac_try) 2>&5
6751 ac_status=$?
6752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6753 (exit $ac_status); }; } &&
6754 { ac_try='test -s conftest$ac_exeext'
6755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6756 (eval $ac_try) 2>&5
6757 ac_status=$?
6758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6759 (exit $ac_status); }; }; then
6760 ac_cv_lib_m_acosf=yes
6761else
6762 echo "$as_me: failed program was:" >&5
6763sed 's/^/| /' conftest.$ac_ext >&5
6764
6765ac_cv_lib_m_acosf=no
6766fi
6767rm -f conftest.err conftest.$ac_objext \
6768 conftest$ac_exeext conftest.$ac_ext
6769LIBS=$ac_check_lib_save_LIBS
6770fi
6771echo "$as_me:$LINENO: result: $ac_cv_lib_m_acosf" >&5
6772echo "${ECHO_T}$ac_cv_lib_m_acosf" >&6
6773if test $ac_cv_lib_m_acosf = yes; then
6774
6775cat >>confdefs.h <<\_ACEOF
6776#define HAVE_ACOSF 1
6777_ACEOF
6778
6779fi
6780
6781echo "$as_me:$LINENO: checking for asinf in -lm" >&5
6782echo $ECHO_N "checking for asinf in -lm... $ECHO_C" >&6
6783if test "${ac_cv_lib_m_asinf+set}" = set; then
6784 echo $ECHO_N "(cached) $ECHO_C" >&6
6785else
6786 ac_check_lib_save_LIBS=$LIBS
6787LIBS="-lm $LIBS"
6788cat >conftest.$ac_ext <<_ACEOF
6789/* confdefs.h. */
6790_ACEOF
6791cat confdefs.h >>conftest.$ac_ext
6792cat >>conftest.$ac_ext <<_ACEOF
6793/* end confdefs.h. */
6794
6795/* Override any gcc2 internal prototype to avoid an error. */
6796#ifdef __cplusplus
6797extern "C"
6798#endif
6799/* We use char because int might match the return type of a gcc2
6800 builtin and then its argument prototype would still apply. */
6801char asinf ();
6802int
6803main ()
6804{
6805asinf ();
6806 ;
6807 return 0;
6808}
6809_ACEOF
6810rm -f conftest.$ac_objext conftest$ac_exeext
6811if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6812 (eval $ac_link) 2>conftest.er1
6813 ac_status=$?
6814 grep -v '^ *+' conftest.er1 >conftest.err
6815 rm -f conftest.er1
6816 cat conftest.err >&5
6817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6818 (exit $ac_status); } &&
6819 { ac_try='test -z "$ac_c_werror_flag"
6820 || test ! -s conftest.err'
6821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6822 (eval $ac_try) 2>&5
6823 ac_status=$?
6824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6825 (exit $ac_status); }; } &&
6826 { ac_try='test -s conftest$ac_exeext'
6827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6828 (eval $ac_try) 2>&5
6829 ac_status=$?
6830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6831 (exit $ac_status); }; }; then
6832 ac_cv_lib_m_asinf=yes
6833else
6834 echo "$as_me: failed program was:" >&5
6835sed 's/^/| /' conftest.$ac_ext >&5
6836
6837ac_cv_lib_m_asinf=no
6838fi
6839rm -f conftest.err conftest.$ac_objext \
6840 conftest$ac_exeext conftest.$ac_ext
6841LIBS=$ac_check_lib_save_LIBS
6842fi
6843echo "$as_me:$LINENO: result: $ac_cv_lib_m_asinf" >&5
6844echo "${ECHO_T}$ac_cv_lib_m_asinf" >&6
6845if test $ac_cv_lib_m_asinf = yes; then
6846
6847cat >>confdefs.h <<\_ACEOF
6848#define HAVE_ASINF 1
6849_ACEOF
6850
6851fi
6852
6853echo "$as_me:$LINENO: checking for atan2f in -lm" >&5
6854echo $ECHO_N "checking for atan2f in -lm... $ECHO_C" >&6
6855if test "${ac_cv_lib_m_atan2f+set}" = set; then
6856 echo $ECHO_N "(cached) $ECHO_C" >&6
6857else
6858 ac_check_lib_save_LIBS=$LIBS
6859LIBS="-lm $LIBS"
6860cat >conftest.$ac_ext <<_ACEOF
6861/* confdefs.h. */
6862_ACEOF
6863cat confdefs.h >>conftest.$ac_ext
6864cat >>conftest.$ac_ext <<_ACEOF
6865/* end confdefs.h. */
6866
6867/* Override any gcc2 internal prototype to avoid an error. */
6868#ifdef __cplusplus
6869extern "C"
6870#endif
6871/* We use char because int might match the return type of a gcc2
6872 builtin and then its argument prototype would still apply. */
6873char atan2f ();
6874int
6875main ()
6876{
6877atan2f ();
6878 ;
6879 return 0;
6880}
6881_ACEOF
6882rm -f conftest.$ac_objext conftest$ac_exeext
6883if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6884 (eval $ac_link) 2>conftest.er1
6885 ac_status=$?
6886 grep -v '^ *+' conftest.er1 >conftest.err
6887 rm -f conftest.er1
6888 cat conftest.err >&5
6889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6890 (exit $ac_status); } &&
6891 { ac_try='test -z "$ac_c_werror_flag"
6892 || test ! -s conftest.err'
6893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6894 (eval $ac_try) 2>&5
6895 ac_status=$?
6896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6897 (exit $ac_status); }; } &&
6898 { ac_try='test -s conftest$ac_exeext'
6899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6900 (eval $ac_try) 2>&5
6901 ac_status=$?
6902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6903 (exit $ac_status); }; }; then
6904 ac_cv_lib_m_atan2f=yes
6905else
6906 echo "$as_me: failed program was:" >&5
6907sed 's/^/| /' conftest.$ac_ext >&5
6908
6909ac_cv_lib_m_atan2f=no
6910fi
6911rm -f conftest.err conftest.$ac_objext \
6912 conftest$ac_exeext conftest.$ac_ext
6913LIBS=$ac_check_lib_save_LIBS
6914fi
6915echo "$as_me:$LINENO: result: $ac_cv_lib_m_atan2f" >&5
6916echo "${ECHO_T}$ac_cv_lib_m_atan2f" >&6
6917if test $ac_cv_lib_m_atan2f = yes; then
6918
6919cat >>confdefs.h <<\_ACEOF
6920#define HAVE_ATAN2F 1
6921_ACEOF
6922
6923fi
6924
6925echo "$as_me:$LINENO: checking for atanf in -lm" >&5
6926echo $ECHO_N "checking for atanf in -lm... $ECHO_C" >&6
6927if test "${ac_cv_lib_m_atanf+set}" = set; then
6928 echo $ECHO_N "(cached) $ECHO_C" >&6
6929else
6930 ac_check_lib_save_LIBS=$LIBS
6931LIBS="-lm $LIBS"
6932cat >conftest.$ac_ext <<_ACEOF
6933/* confdefs.h. */
6934_ACEOF
6935cat confdefs.h >>conftest.$ac_ext
6936cat >>conftest.$ac_ext <<_ACEOF
6937/* end confdefs.h. */
6938
6939/* Override any gcc2 internal prototype to avoid an error. */
6940#ifdef __cplusplus
6941extern "C"
6942#endif
6943/* We use char because int might match the return type of a gcc2
6944 builtin and then its argument prototype would still apply. */
6945char atanf ();
6946int
6947main ()
6948{
6949atanf ();
6950 ;
6951 return 0;
6952}
6953_ACEOF
6954rm -f conftest.$ac_objext conftest$ac_exeext
6955if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6956 (eval $ac_link) 2>conftest.er1
6957 ac_status=$?
6958 grep -v '^ *+' conftest.er1 >conftest.err
6959 rm -f conftest.er1
6960 cat conftest.err >&5
6961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6962 (exit $ac_status); } &&
6963 { ac_try='test -z "$ac_c_werror_flag"
6964 || test ! -s conftest.err'
6965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6966 (eval $ac_try) 2>&5
6967 ac_status=$?
6968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6969 (exit $ac_status); }; } &&
6970 { ac_try='test -s conftest$ac_exeext'
6971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6972 (eval $ac_try) 2>&5
6973 ac_status=$?
6974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6975 (exit $ac_status); }; }; then
6976 ac_cv_lib_m_atanf=yes
6977else
6978 echo "$as_me: failed program was:" >&5
6979sed 's/^/| /' conftest.$ac_ext >&5
6980
6981ac_cv_lib_m_atanf=no
6982fi
6983rm -f conftest.err conftest.$ac_objext \
6984 conftest$ac_exeext conftest.$ac_ext
6985LIBS=$ac_check_lib_save_LIBS
6986fi
6987echo "$as_me:$LINENO: result: $ac_cv_lib_m_atanf" >&5
6988echo "${ECHO_T}$ac_cv_lib_m_atanf" >&6
6989if test $ac_cv_lib_m_atanf = yes; then
6990
6991cat >>confdefs.h <<\_ACEOF
6992#define HAVE_ATANF 1
6993_ACEOF
6994
6995fi
6996
6997echo "$as_me:$LINENO: checking for ceilf in -lm" >&5
6998echo $ECHO_N "checking for ceilf in -lm... $ECHO_C" >&6
6999if test "${ac_cv_lib_m_ceilf+set}" = set; then
7000 echo $ECHO_N "(cached) $ECHO_C" >&6
7001else
7002 ac_check_lib_save_LIBS=$LIBS
7003LIBS="-lm $LIBS"
7004cat >conftest.$ac_ext <<_ACEOF
7005/* confdefs.h. */
7006_ACEOF
7007cat confdefs.h >>conftest.$ac_ext
7008cat >>conftest.$ac_ext <<_ACEOF
7009/* end confdefs.h. */
7010
7011/* Override any gcc2 internal prototype to avoid an error. */
7012#ifdef __cplusplus
7013extern "C"
7014#endif
7015/* We use char because int might match the return type of a gcc2
7016 builtin and then its argument prototype would still apply. */
7017char ceilf ();
7018int
7019main ()
7020{
7021ceilf ();
7022 ;
7023 return 0;
7024}
7025_ACEOF
7026rm -f conftest.$ac_objext conftest$ac_exeext
7027if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7028 (eval $ac_link) 2>conftest.er1
7029 ac_status=$?
7030 grep -v '^ *+' conftest.er1 >conftest.err
7031 rm -f conftest.er1
7032 cat conftest.err >&5
7033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7034 (exit $ac_status); } &&
7035 { ac_try='test -z "$ac_c_werror_flag"
7036 || test ! -s conftest.err'
7037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7038 (eval $ac_try) 2>&5
7039 ac_status=$?
7040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7041 (exit $ac_status); }; } &&
7042 { ac_try='test -s conftest$ac_exeext'
7043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7044 (eval $ac_try) 2>&5
7045 ac_status=$?
7046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7047 (exit $ac_status); }; }; then
7048 ac_cv_lib_m_ceilf=yes
7049else
7050 echo "$as_me: failed program was:" >&5
7051sed 's/^/| /' conftest.$ac_ext >&5
7052
7053ac_cv_lib_m_ceilf=no
7054fi
7055rm -f conftest.err conftest.$ac_objext \
7056 conftest$ac_exeext conftest.$ac_ext
7057LIBS=$ac_check_lib_save_LIBS
7058fi
7059echo "$as_me:$LINENO: result: $ac_cv_lib_m_ceilf" >&5
7060echo "${ECHO_T}$ac_cv_lib_m_ceilf" >&6
7061if test $ac_cv_lib_m_ceilf = yes; then
7062
7063cat >>confdefs.h <<\_ACEOF
7064#define HAVE_CEILF 1
7065_ACEOF
7066
7067fi
7068
7069echo "$as_me:$LINENO: checking for copysignf in -lm" >&5
7070echo $ECHO_N "checking for copysignf in -lm... $ECHO_C" >&6
7071if test "${ac_cv_lib_m_copysignf+set}" = set; then
7072 echo $ECHO_N "(cached) $ECHO_C" >&6
7073else
7074 ac_check_lib_save_LIBS=$LIBS
7075LIBS="-lm $LIBS"
7076cat >conftest.$ac_ext <<_ACEOF
7077/* confdefs.h. */
7078_ACEOF
7079cat confdefs.h >>conftest.$ac_ext
7080cat >>conftest.$ac_ext <<_ACEOF
7081/* end confdefs.h. */
7082
7083/* Override any gcc2 internal prototype to avoid an error. */
7084#ifdef __cplusplus
7085extern "C"
7086#endif
7087/* We use char because int might match the return type of a gcc2
7088 builtin and then its argument prototype would still apply. */
7089char copysignf ();
7090int
7091main ()
7092{
7093copysignf ();
7094 ;
7095 return 0;
7096}
7097_ACEOF
7098rm -f conftest.$ac_objext conftest$ac_exeext
7099if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7100 (eval $ac_link) 2>conftest.er1
7101 ac_status=$?
7102 grep -v '^ *+' conftest.er1 >conftest.err
7103 rm -f conftest.er1
7104 cat conftest.err >&5
7105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7106 (exit $ac_status); } &&
7107 { ac_try='test -z "$ac_c_werror_flag"
7108 || test ! -s conftest.err'
7109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7110 (eval $ac_try) 2>&5
7111 ac_status=$?
7112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7113 (exit $ac_status); }; } &&
7114 { ac_try='test -s conftest$ac_exeext'
7115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7116 (eval $ac_try) 2>&5
7117 ac_status=$?
7118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7119 (exit $ac_status); }; }; then
7120 ac_cv_lib_m_copysignf=yes
7121else
7122 echo "$as_me: failed program was:" >&5
7123sed 's/^/| /' conftest.$ac_ext >&5
7124
7125ac_cv_lib_m_copysignf=no
7126fi
7127rm -f conftest.err conftest.$ac_objext \
7128 conftest$ac_exeext conftest.$ac_ext
7129LIBS=$ac_check_lib_save_LIBS
7130fi
7131echo "$as_me:$LINENO: result: $ac_cv_lib_m_copysignf" >&5
7132echo "${ECHO_T}$ac_cv_lib_m_copysignf" >&6
7133if test $ac_cv_lib_m_copysignf = yes; then
7134
7135cat >>confdefs.h <<\_ACEOF
7136#define HAVE_COPYSIGNF 1
7137_ACEOF
7138
7139fi
7140
7141echo "$as_me:$LINENO: checking for cosf in -lm" >&5
7142echo $ECHO_N "checking for cosf in -lm... $ECHO_C" >&6
7143if test "${ac_cv_lib_m_cosf+set}" = set; then
7144 echo $ECHO_N "(cached) $ECHO_C" >&6
7145else
7146 ac_check_lib_save_LIBS=$LIBS
7147LIBS="-lm $LIBS"
7148cat >conftest.$ac_ext <<_ACEOF
7149/* confdefs.h. */
7150_ACEOF
7151cat confdefs.h >>conftest.$ac_ext
7152cat >>conftest.$ac_ext <<_ACEOF
7153/* end confdefs.h. */
7154
7155/* Override any gcc2 internal prototype to avoid an error. */
7156#ifdef __cplusplus
7157extern "C"
7158#endif
7159/* We use char because int might match the return type of a gcc2
7160 builtin and then its argument prototype would still apply. */
7161char cosf ();
7162int
7163main ()
7164{
7165cosf ();
7166 ;
7167 return 0;
7168}
7169_ACEOF
7170rm -f conftest.$ac_objext conftest$ac_exeext
7171if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7172 (eval $ac_link) 2>conftest.er1
7173 ac_status=$?
7174 grep -v '^ *+' conftest.er1 >conftest.err
7175 rm -f conftest.er1
7176 cat conftest.err >&5
7177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7178 (exit $ac_status); } &&
7179 { ac_try='test -z "$ac_c_werror_flag"
7180 || test ! -s conftest.err'
7181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7182 (eval $ac_try) 2>&5
7183 ac_status=$?
7184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7185 (exit $ac_status); }; } &&
7186 { ac_try='test -s conftest$ac_exeext'
7187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7188 (eval $ac_try) 2>&5
7189 ac_status=$?
7190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7191 (exit $ac_status); }; }; then
7192 ac_cv_lib_m_cosf=yes
7193else
7194 echo "$as_me: failed program was:" >&5
7195sed 's/^/| /' conftest.$ac_ext >&5
7196
7197ac_cv_lib_m_cosf=no
7198fi
7199rm -f conftest.err conftest.$ac_objext \
7200 conftest$ac_exeext conftest.$ac_ext
7201LIBS=$ac_check_lib_save_LIBS
7202fi
7203echo "$as_me:$LINENO: result: $ac_cv_lib_m_cosf" >&5
7204echo "${ECHO_T}$ac_cv_lib_m_cosf" >&6
7205if test $ac_cv_lib_m_cosf = yes; then
7206
7207cat >>confdefs.h <<\_ACEOF
7208#define HAVE_COSF 1
7209_ACEOF
7210
7211fi
7212
7213echo "$as_me:$LINENO: checking for coshf in -lm" >&5
7214echo $ECHO_N "checking for coshf in -lm... $ECHO_C" >&6
7215if test "${ac_cv_lib_m_coshf+set}" = set; then
7216 echo $ECHO_N "(cached) $ECHO_C" >&6
7217else
7218 ac_check_lib_save_LIBS=$LIBS
7219LIBS="-lm $LIBS"
7220cat >conftest.$ac_ext <<_ACEOF
7221/* confdefs.h. */
7222_ACEOF
7223cat confdefs.h >>conftest.$ac_ext
7224cat >>conftest.$ac_ext <<_ACEOF
7225/* end confdefs.h. */
7226
7227/* Override any gcc2 internal prototype to avoid an error. */
7228#ifdef __cplusplus
7229extern "C"
7230#endif
7231/* We use char because int might match the return type of a gcc2
7232 builtin and then its argument prototype would still apply. */
7233char coshf ();
7234int
7235main ()
7236{
7237coshf ();
7238 ;
7239 return 0;
7240}
7241_ACEOF
7242rm -f conftest.$ac_objext conftest$ac_exeext
7243if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7244 (eval $ac_link) 2>conftest.er1
7245 ac_status=$?
7246 grep -v '^ *+' conftest.er1 >conftest.err
7247 rm -f conftest.er1
7248 cat conftest.err >&5
7249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7250 (exit $ac_status); } &&
7251 { ac_try='test -z "$ac_c_werror_flag"
7252 || test ! -s conftest.err'
7253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7254 (eval $ac_try) 2>&5
7255 ac_status=$?
7256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7257 (exit $ac_status); }; } &&
7258 { ac_try='test -s conftest$ac_exeext'
7259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7260 (eval $ac_try) 2>&5
7261 ac_status=$?
7262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7263 (exit $ac_status); }; }; then
7264 ac_cv_lib_m_coshf=yes
7265else
7266 echo "$as_me: failed program was:" >&5
7267sed 's/^/| /' conftest.$ac_ext >&5
7268
7269ac_cv_lib_m_coshf=no
7270fi
7271rm -f conftest.err conftest.$ac_objext \
7272 conftest$ac_exeext conftest.$ac_ext
7273LIBS=$ac_check_lib_save_LIBS
7274fi
7275echo "$as_me:$LINENO: result: $ac_cv_lib_m_coshf" >&5
7276echo "${ECHO_T}$ac_cv_lib_m_coshf" >&6
7277if test $ac_cv_lib_m_coshf = yes; then
7278
7279cat >>confdefs.h <<\_ACEOF
7280#define HAVE_COSHF 1
7281_ACEOF
7282
7283fi
7284
7285echo "$as_me:$LINENO: checking for expf in -lm" >&5
7286echo $ECHO_N "checking for expf in -lm... $ECHO_C" >&6
7287if test "${ac_cv_lib_m_expf+set}" = set; then
7288 echo $ECHO_N "(cached) $ECHO_C" >&6
7289else
7290 ac_check_lib_save_LIBS=$LIBS
7291LIBS="-lm $LIBS"
7292cat >conftest.$ac_ext <<_ACEOF
7293/* confdefs.h. */
7294_ACEOF
7295cat confdefs.h >>conftest.$ac_ext
7296cat >>conftest.$ac_ext <<_ACEOF
7297/* end confdefs.h. */
7298
7299/* Override any gcc2 internal prototype to avoid an error. */
7300#ifdef __cplusplus
7301extern "C"
7302#endif
7303/* We use char because int might match the return type of a gcc2
7304 builtin and then its argument prototype would still apply. */
7305char expf ();
7306int
7307main ()
7308{
7309expf ();
7310 ;
7311 return 0;
7312}
7313_ACEOF
7314rm -f conftest.$ac_objext conftest$ac_exeext
7315if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7316 (eval $ac_link) 2>conftest.er1
7317 ac_status=$?
7318 grep -v '^ *+' conftest.er1 >conftest.err
7319 rm -f conftest.er1
7320 cat conftest.err >&5
7321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7322 (exit $ac_status); } &&
7323 { ac_try='test -z "$ac_c_werror_flag"
7324 || test ! -s conftest.err'
7325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7326 (eval $ac_try) 2>&5
7327 ac_status=$?
7328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7329 (exit $ac_status); }; } &&
7330 { ac_try='test -s conftest$ac_exeext'
7331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7332 (eval $ac_try) 2>&5
7333 ac_status=$?
7334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7335 (exit $ac_status); }; }; then
7336 ac_cv_lib_m_expf=yes
7337else
7338 echo "$as_me: failed program was:" >&5
7339sed 's/^/| /' conftest.$ac_ext >&5
7340
7341ac_cv_lib_m_expf=no
7342fi
7343rm -f conftest.err conftest.$ac_objext \
7344 conftest$ac_exeext conftest.$ac_ext
7345LIBS=$ac_check_lib_save_LIBS
7346fi
7347echo "$as_me:$LINENO: result: $ac_cv_lib_m_expf" >&5
7348echo "${ECHO_T}$ac_cv_lib_m_expf" >&6
7349if test $ac_cv_lib_m_expf = yes; then
7350
7351cat >>confdefs.h <<\_ACEOF
7352#define HAVE_EXPF 1
7353_ACEOF
7354
7355fi
7356
7357echo "$as_me:$LINENO: checking for floorf in -lm" >&5
7358echo $ECHO_N "checking for floorf in -lm... $ECHO_C" >&6
7359if test "${ac_cv_lib_m_floorf+set}" = set; then
7360 echo $ECHO_N "(cached) $ECHO_C" >&6
7361else
7362 ac_check_lib_save_LIBS=$LIBS
7363LIBS="-lm $LIBS"
7364cat >conftest.$ac_ext <<_ACEOF
7365/* confdefs.h. */
7366_ACEOF
7367cat confdefs.h >>conftest.$ac_ext
7368cat >>conftest.$ac_ext <<_ACEOF
7369/* end confdefs.h. */
7370
7371/* Override any gcc2 internal prototype to avoid an error. */
7372#ifdef __cplusplus
7373extern "C"
7374#endif
7375/* We use char because int might match the return type of a gcc2
7376 builtin and then its argument prototype would still apply. */
7377char floorf ();
7378int
7379main ()
7380{
7381floorf ();
7382 ;
7383 return 0;
7384}
7385_ACEOF
7386rm -f conftest.$ac_objext conftest$ac_exeext
7387if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7388 (eval $ac_link) 2>conftest.er1
7389 ac_status=$?
7390 grep -v '^ *+' conftest.er1 >conftest.err
7391 rm -f conftest.er1
7392 cat conftest.err >&5
7393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7394 (exit $ac_status); } &&
7395 { ac_try='test -z "$ac_c_werror_flag"
7396 || test ! -s conftest.err'
7397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7398 (eval $ac_try) 2>&5
7399 ac_status=$?
7400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7401 (exit $ac_status); }; } &&
7402 { ac_try='test -s conftest$ac_exeext'
7403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7404 (eval $ac_try) 2>&5
7405 ac_status=$?
7406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7407 (exit $ac_status); }; }; then
7408 ac_cv_lib_m_floorf=yes
7409else
7410 echo "$as_me: failed program was:" >&5
7411sed 's/^/| /' conftest.$ac_ext >&5
7412
7413ac_cv_lib_m_floorf=no
7414fi
7415rm -f conftest.err conftest.$ac_objext \
7416 conftest$ac_exeext conftest.$ac_ext
7417LIBS=$ac_check_lib_save_LIBS
7418fi
7419echo "$as_me:$LINENO: result: $ac_cv_lib_m_floorf" >&5
7420echo "${ECHO_T}$ac_cv_lib_m_floorf" >&6
7421if test $ac_cv_lib_m_floorf = yes; then
7422
7423cat >>confdefs.h <<\_ACEOF
7424#define HAVE_FLOORF 1
7425_ACEOF
7426
7427fi
7428
7429echo "$as_me:$LINENO: checking for frexpf in -lm" >&5
7430echo $ECHO_N "checking for frexpf in -lm... $ECHO_C" >&6
7431if test "${ac_cv_lib_m_frexpf+set}" = set; then
7432 echo $ECHO_N "(cached) $ECHO_C" >&6
7433else
7434 ac_check_lib_save_LIBS=$LIBS
7435LIBS="-lm $LIBS"
7436cat >conftest.$ac_ext <<_ACEOF
7437/* confdefs.h. */
7438_ACEOF
7439cat confdefs.h >>conftest.$ac_ext
7440cat >>conftest.$ac_ext <<_ACEOF
7441/* end confdefs.h. */
7442
7443/* Override any gcc2 internal prototype to avoid an error. */
7444#ifdef __cplusplus
7445extern "C"
7446#endif
7447/* We use char because int might match the return type of a gcc2
7448 builtin and then its argument prototype would still apply. */
7449char frexpf ();
7450int
7451main ()
7452{
7453frexpf ();
7454 ;
7455 return 0;
7456}
7457_ACEOF
7458rm -f conftest.$ac_objext conftest$ac_exeext
7459if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7460 (eval $ac_link) 2>conftest.er1
7461 ac_status=$?
7462 grep -v '^ *+' conftest.er1 >conftest.err
7463 rm -f conftest.er1
7464 cat conftest.err >&5
7465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7466 (exit $ac_status); } &&
7467 { ac_try='test -z "$ac_c_werror_flag"
7468 || test ! -s conftest.err'
7469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7470 (eval $ac_try) 2>&5
7471 ac_status=$?
7472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7473 (exit $ac_status); }; } &&
7474 { ac_try='test -s conftest$ac_exeext'
7475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7476 (eval $ac_try) 2>&5
7477 ac_status=$?
7478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7479 (exit $ac_status); }; }; then
7480 ac_cv_lib_m_frexpf=yes
7481else
7482 echo "$as_me: failed program was:" >&5
7483sed 's/^/| /' conftest.$ac_ext >&5
7484
7485ac_cv_lib_m_frexpf=no
7486fi
7487rm -f conftest.err conftest.$ac_objext \
7488 conftest$ac_exeext conftest.$ac_ext
7489LIBS=$ac_check_lib_save_LIBS
7490fi
7491echo "$as_me:$LINENO: result: $ac_cv_lib_m_frexpf" >&5
7492echo "${ECHO_T}$ac_cv_lib_m_frexpf" >&6
7493if test $ac_cv_lib_m_frexpf = yes; then
7494
7495cat >>confdefs.h <<\_ACEOF
7496#define HAVE_FREXPF 1
7497_ACEOF
7498
7499fi
7500
7501echo "$as_me:$LINENO: checking for hypotf in -lm" >&5
7502echo $ECHO_N "checking for hypotf in -lm... $ECHO_C" >&6
7503if test "${ac_cv_lib_m_hypotf+set}" = set; then
7504 echo $ECHO_N "(cached) $ECHO_C" >&6
7505else
7506 ac_check_lib_save_LIBS=$LIBS
7507LIBS="-lm $LIBS"
7508cat >conftest.$ac_ext <<_ACEOF
7509/* confdefs.h. */
7510_ACEOF
7511cat confdefs.h >>conftest.$ac_ext
7512cat >>conftest.$ac_ext <<_ACEOF
7513/* end confdefs.h. */
7514
7515/* Override any gcc2 internal prototype to avoid an error. */
7516#ifdef __cplusplus
7517extern "C"
7518#endif
7519/* We use char because int might match the return type of a gcc2
7520 builtin and then its argument prototype would still apply. */
7521char hypotf ();
7522int
7523main ()
7524{
7525hypotf ();
7526 ;
7527 return 0;
7528}
7529_ACEOF
7530rm -f conftest.$ac_objext conftest$ac_exeext
7531if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7532 (eval $ac_link) 2>conftest.er1
7533 ac_status=$?
7534 grep -v '^ *+' conftest.er1 >conftest.err
7535 rm -f conftest.er1
7536 cat conftest.err >&5
7537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7538 (exit $ac_status); } &&
7539 { ac_try='test -z "$ac_c_werror_flag"
7540 || test ! -s conftest.err'
7541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7542 (eval $ac_try) 2>&5
7543 ac_status=$?
7544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7545 (exit $ac_status); }; } &&
7546 { ac_try='test -s conftest$ac_exeext'
7547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7548 (eval $ac_try) 2>&5
7549 ac_status=$?
7550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7551 (exit $ac_status); }; }; then
7552 ac_cv_lib_m_hypotf=yes
7553else
7554 echo "$as_me: failed program was:" >&5
7555sed 's/^/| /' conftest.$ac_ext >&5
7556
7557ac_cv_lib_m_hypotf=no
7558fi
7559rm -f conftest.err conftest.$ac_objext \
7560 conftest$ac_exeext conftest.$ac_ext
7561LIBS=$ac_check_lib_save_LIBS
7562fi
7563echo "$as_me:$LINENO: result: $ac_cv_lib_m_hypotf" >&5
7564echo "${ECHO_T}$ac_cv_lib_m_hypotf" >&6
7565if test $ac_cv_lib_m_hypotf = yes; then
7566
7567cat >>confdefs.h <<\_ACEOF
7568#define HAVE_HYPOTF 1
7569_ACEOF
7570
7571fi
7572
7573echo "$as_me:$LINENO: checking for logf in -lm" >&5
7574echo $ECHO_N "checking for logf in -lm... $ECHO_C" >&6
7575if test "${ac_cv_lib_m_logf+set}" = set; then
7576 echo $ECHO_N "(cached) $ECHO_C" >&6
7577else
7578 ac_check_lib_save_LIBS=$LIBS
7579LIBS="-lm $LIBS"
7580cat >conftest.$ac_ext <<_ACEOF
7581/* confdefs.h. */
7582_ACEOF
7583cat confdefs.h >>conftest.$ac_ext
7584cat >>conftest.$ac_ext <<_ACEOF
7585/* end confdefs.h. */
7586
7587/* Override any gcc2 internal prototype to avoid an error. */
7588#ifdef __cplusplus
7589extern "C"
7590#endif
7591/* We use char because int might match the return type of a gcc2
7592 builtin and then its argument prototype would still apply. */
7593char logf ();
7594int
7595main ()
7596{
7597logf ();
7598 ;
7599 return 0;
7600}
7601_ACEOF
7602rm -f conftest.$ac_objext conftest$ac_exeext
7603if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7604 (eval $ac_link) 2>conftest.er1
7605 ac_status=$?
7606 grep -v '^ *+' conftest.er1 >conftest.err
7607 rm -f conftest.er1
7608 cat conftest.err >&5
7609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7610 (exit $ac_status); } &&
7611 { ac_try='test -z "$ac_c_werror_flag"
7612 || test ! -s conftest.err'
7613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7614 (eval $ac_try) 2>&5
7615 ac_status=$?
7616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7617 (exit $ac_status); }; } &&
7618 { ac_try='test -s conftest$ac_exeext'
7619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7620 (eval $ac_try) 2>&5
7621 ac_status=$?
7622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7623 (exit $ac_status); }; }; then
7624 ac_cv_lib_m_logf=yes
7625else
7626 echo "$as_me: failed program was:" >&5
7627sed 's/^/| /' conftest.$ac_ext >&5
7628
7629ac_cv_lib_m_logf=no
7630fi
7631rm -f conftest.err conftest.$ac_objext \
7632 conftest$ac_exeext conftest.$ac_ext
7633LIBS=$ac_check_lib_save_LIBS
7634fi
7635echo "$as_me:$LINENO: result: $ac_cv_lib_m_logf" >&5
7636echo "${ECHO_T}$ac_cv_lib_m_logf" >&6
7637if test $ac_cv_lib_m_logf = yes; then
7638
7639cat >>confdefs.h <<\_ACEOF
7640#define HAVE_LOGF 1
7641_ACEOF
7642
7643fi
7644
7645echo "$as_me:$LINENO: checking for log10f in -lm" >&5
7646echo $ECHO_N "checking for log10f in -lm... $ECHO_C" >&6
7647if test "${ac_cv_lib_m_log10f+set}" = set; then
7648 echo $ECHO_N "(cached) $ECHO_C" >&6
7649else
7650 ac_check_lib_save_LIBS=$LIBS
7651LIBS="-lm $LIBS"
7652cat >conftest.$ac_ext <<_ACEOF
7653/* confdefs.h. */
7654_ACEOF
7655cat confdefs.h >>conftest.$ac_ext
7656cat >>conftest.$ac_ext <<_ACEOF
7657/* end confdefs.h. */
7658
7659/* Override any gcc2 internal prototype to avoid an error. */
7660#ifdef __cplusplus
7661extern "C"
7662#endif
7663/* We use char because int might match the return type of a gcc2
7664 builtin and then its argument prototype would still apply. */
7665char log10f ();
7666int
7667main ()
7668{
7669log10f ();
7670 ;
7671 return 0;
7672}
7673_ACEOF
7674rm -f conftest.$ac_objext conftest$ac_exeext
7675if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7676 (eval $ac_link) 2>conftest.er1
7677 ac_status=$?
7678 grep -v '^ *+' conftest.er1 >conftest.err
7679 rm -f conftest.er1
7680 cat conftest.err >&5
7681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7682 (exit $ac_status); } &&
7683 { ac_try='test -z "$ac_c_werror_flag"
7684 || test ! -s conftest.err'
7685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7686 (eval $ac_try) 2>&5
7687 ac_status=$?
7688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7689 (exit $ac_status); }; } &&
7690 { ac_try='test -s conftest$ac_exeext'
7691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7692 (eval $ac_try) 2>&5
7693 ac_status=$?
7694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7695 (exit $ac_status); }; }; then
7696 ac_cv_lib_m_log10f=yes
7697else
7698 echo "$as_me: failed program was:" >&5
7699sed 's/^/| /' conftest.$ac_ext >&5
7700
7701ac_cv_lib_m_log10f=no
7702fi
7703rm -f conftest.err conftest.$ac_objext \
7704 conftest$ac_exeext conftest.$ac_ext
7705LIBS=$ac_check_lib_save_LIBS
7706fi
7707echo "$as_me:$LINENO: result: $ac_cv_lib_m_log10f" >&5
7708echo "${ECHO_T}$ac_cv_lib_m_log10f" >&6
7709if test $ac_cv_lib_m_log10f = yes; then
7710
7711cat >>confdefs.h <<\_ACEOF
7712#define HAVE_LOG10F 1
7713_ACEOF
7714
7715fi
7716
7717echo "$as_me:$LINENO: checking for nextafter in -lm" >&5
7718echo $ECHO_N "checking for nextafter in -lm... $ECHO_C" >&6
7719if test "${ac_cv_lib_m_nextafter+set}" = set; then
7720 echo $ECHO_N "(cached) $ECHO_C" >&6
7721else
7722 ac_check_lib_save_LIBS=$LIBS
7723LIBS="-lm $LIBS"
7724cat >conftest.$ac_ext <<_ACEOF
7725/* confdefs.h. */
7726_ACEOF
7727cat confdefs.h >>conftest.$ac_ext
7728cat >>conftest.$ac_ext <<_ACEOF
7729/* end confdefs.h. */
7730
7731/* Override any gcc2 internal prototype to avoid an error. */
7732#ifdef __cplusplus
7733extern "C"
7734#endif
7735/* We use char because int might match the return type of a gcc2
7736 builtin and then its argument prototype would still apply. */
7737char nextafter ();
7738int
7739main ()
7740{
7741nextafter ();
7742 ;
7743 return 0;
7744}
7745_ACEOF
7746rm -f conftest.$ac_objext conftest$ac_exeext
7747if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7748 (eval $ac_link) 2>conftest.er1
7749 ac_status=$?
7750 grep -v '^ *+' conftest.er1 >conftest.err
7751 rm -f conftest.er1
7752 cat conftest.err >&5
7753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7754 (exit $ac_status); } &&
7755 { ac_try='test -z "$ac_c_werror_flag"
7756 || test ! -s conftest.err'
7757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7758 (eval $ac_try) 2>&5
7759 ac_status=$?
7760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7761 (exit $ac_status); }; } &&
7762 { ac_try='test -s conftest$ac_exeext'
7763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7764 (eval $ac_try) 2>&5
7765 ac_status=$?
7766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7767 (exit $ac_status); }; }; then
7768 ac_cv_lib_m_nextafter=yes
7769else
7770 echo "$as_me: failed program was:" >&5
7771sed 's/^/| /' conftest.$ac_ext >&5
7772
7773ac_cv_lib_m_nextafter=no
7774fi
7775rm -f conftest.err conftest.$ac_objext \
7776 conftest$ac_exeext conftest.$ac_ext
7777LIBS=$ac_check_lib_save_LIBS
7778fi
7779echo "$as_me:$LINENO: result: $ac_cv_lib_m_nextafter" >&5
7780echo "${ECHO_T}$ac_cv_lib_m_nextafter" >&6
7781if test $ac_cv_lib_m_nextafter = yes; then
7782
7783cat >>confdefs.h <<\_ACEOF
7784#define HAVE_NEXTAFTER 1
7785_ACEOF
7786
7787fi
7788
7789echo "$as_me:$LINENO: checking for nextafterf in -lm" >&5
7790echo $ECHO_N "checking for nextafterf in -lm... $ECHO_C" >&6
7791if test "${ac_cv_lib_m_nextafterf+set}" = set; then
7792 echo $ECHO_N "(cached) $ECHO_C" >&6
7793else
7794 ac_check_lib_save_LIBS=$LIBS
7795LIBS="-lm $LIBS"
7796cat >conftest.$ac_ext <<_ACEOF
7797/* confdefs.h. */
7798_ACEOF
7799cat confdefs.h >>conftest.$ac_ext
7800cat >>conftest.$ac_ext <<_ACEOF
7801/* end confdefs.h. */
7802
7803/* Override any gcc2 internal prototype to avoid an error. */
7804#ifdef __cplusplus
7805extern "C"
7806#endif
7807/* We use char because int might match the return type of a gcc2
7808 builtin and then its argument prototype would still apply. */
7809char nextafterf ();
7810int
7811main ()
7812{
7813nextafterf ();
7814 ;
7815 return 0;
7816}
7817_ACEOF
7818rm -f conftest.$ac_objext conftest$ac_exeext
7819if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7820 (eval $ac_link) 2>conftest.er1
7821 ac_status=$?
7822 grep -v '^ *+' conftest.er1 >conftest.err
7823 rm -f conftest.er1
7824 cat conftest.err >&5
7825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7826 (exit $ac_status); } &&
7827 { ac_try='test -z "$ac_c_werror_flag"
7828 || test ! -s conftest.err'
7829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7830 (eval $ac_try) 2>&5
7831 ac_status=$?
7832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7833 (exit $ac_status); }; } &&
7834 { ac_try='test -s conftest$ac_exeext'
7835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7836 (eval $ac_try) 2>&5
7837 ac_status=$?
7838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7839 (exit $ac_status); }; }; then
7840 ac_cv_lib_m_nextafterf=yes
7841else
7842 echo "$as_me: failed program was:" >&5
7843sed 's/^/| /' conftest.$ac_ext >&5
7844
7845ac_cv_lib_m_nextafterf=no
7846fi
7847rm -f conftest.err conftest.$ac_objext \
7848 conftest$ac_exeext conftest.$ac_ext
7849LIBS=$ac_check_lib_save_LIBS
7850fi
7851echo "$as_me:$LINENO: result: $ac_cv_lib_m_nextafterf" >&5
7852echo "${ECHO_T}$ac_cv_lib_m_nextafterf" >&6
7853if test $ac_cv_lib_m_nextafterf = yes; then
7854
7855cat >>confdefs.h <<\_ACEOF
7856#define HAVE_NEXTAFTERF 1
7857_ACEOF
7858
7859fi
7860
a2a2059f
BD
7861echo "$as_me:$LINENO: checking for round in -lm" >&5
7862echo $ECHO_N "checking for round in -lm... $ECHO_C" >&6
7863if test "${ac_cv_lib_m_round+set}" = set; then
7864 echo $ECHO_N "(cached) $ECHO_C" >&6
7865else
7866 ac_check_lib_save_LIBS=$LIBS
7867LIBS="-lm $LIBS"
7868cat >conftest.$ac_ext <<_ACEOF
7869/* confdefs.h. */
7870_ACEOF
7871cat confdefs.h >>conftest.$ac_ext
7872cat >>conftest.$ac_ext <<_ACEOF
7873/* end confdefs.h. */
7874
7875/* Override any gcc2 internal prototype to avoid an error. */
7876#ifdef __cplusplus
7877extern "C"
7878#endif
7879/* We use char because int might match the return type of a gcc2
7880 builtin and then its argument prototype would still apply. */
453310d8
RS
7881char round ();
7882int
7883main ()
7884{
7885round ();
7886 ;
7887 return 0;
7888}
7889_ACEOF
7890rm -f conftest.$ac_objext conftest$ac_exeext
7891if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7892 (eval $ac_link) 2>conftest.er1
7893 ac_status=$?
7894 grep -v '^ *+' conftest.er1 >conftest.err
7895 rm -f conftest.er1
7896 cat conftest.err >&5
7897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7898 (exit $ac_status); } &&
7899 { ac_try='test -z "$ac_c_werror_flag"
7900 || test ! -s conftest.err'
7901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7902 (eval $ac_try) 2>&5
7903 ac_status=$?
7904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7905 (exit $ac_status); }; } &&
7906 { ac_try='test -s conftest$ac_exeext'
7907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7908 (eval $ac_try) 2>&5
7909 ac_status=$?
7910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7911 (exit $ac_status); }; }; then
7912 ac_cv_lib_m_round=yes
7913else
7914 echo "$as_me: failed program was:" >&5
7915sed 's/^/| /' conftest.$ac_ext >&5
7916
7917ac_cv_lib_m_round=no
7918fi
7919rm -f conftest.err conftest.$ac_objext \
7920 conftest$ac_exeext conftest.$ac_ext
7921LIBS=$ac_check_lib_save_LIBS
7922fi
7923echo "$as_me:$LINENO: result: $ac_cv_lib_m_round" >&5
7924echo "${ECHO_T}$ac_cv_lib_m_round" >&6
7925if test $ac_cv_lib_m_round = yes; then
7926
7927cat >>confdefs.h <<\_ACEOF
7928#define HAVE_ROUND 1
7929_ACEOF
7930
7931fi
7932
7933echo "$as_me:$LINENO: checking for roundf in -lm" >&5
7934echo $ECHO_N "checking for roundf in -lm... $ECHO_C" >&6
7935if test "${ac_cv_lib_m_roundf+set}" = set; then
7936 echo $ECHO_N "(cached) $ECHO_C" >&6
7937else
7938 ac_check_lib_save_LIBS=$LIBS
7939LIBS="-lm $LIBS"
7940cat >conftest.$ac_ext <<_ACEOF
7941/* confdefs.h. */
7942_ACEOF
7943cat confdefs.h >>conftest.$ac_ext
7944cat >>conftest.$ac_ext <<_ACEOF
7945/* end confdefs.h. */
7946
7947/* Override any gcc2 internal prototype to avoid an error. */
7948#ifdef __cplusplus
7949extern "C"
7950#endif
7951/* We use char because int might match the return type of a gcc2
7952 builtin and then its argument prototype would still apply. */
7953char roundf ();
a2a2059f
BD
7954int
7955main ()
7956{
453310d8 7957roundf ();
a2a2059f
BD
7958 ;
7959 return 0;
7960}
7961_ACEOF
7962rm -f conftest.$ac_objext conftest$ac_exeext
7963if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7964 (eval $ac_link) 2>conftest.er1
7965 ac_status=$?
7966 grep -v '^ *+' conftest.er1 >conftest.err
7967 rm -f conftest.er1
7968 cat conftest.err >&5
7969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7970 (exit $ac_status); } &&
453310d8
RS
7971 { ac_try='test -z "$ac_c_werror_flag"
7972 || test ! -s conftest.err'
a2a2059f
BD
7973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7974 (eval $ac_try) 2>&5
7975 ac_status=$?
7976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7977 (exit $ac_status); }; } &&
7978 { ac_try='test -s conftest$ac_exeext'
7979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7980 (eval $ac_try) 2>&5
7981 ac_status=$?
7982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7983 (exit $ac_status); }; }; then
453310d8 7984 ac_cv_lib_m_roundf=yes
a2a2059f
BD
7985else
7986 echo "$as_me: failed program was:" >&5
7987sed 's/^/| /' conftest.$ac_ext >&5
7988
453310d8 7989ac_cv_lib_m_roundf=no
a2a2059f
BD
7990fi
7991rm -f conftest.err conftest.$ac_objext \
7992 conftest$ac_exeext conftest.$ac_ext
7993LIBS=$ac_check_lib_save_LIBS
7994fi
453310d8
RS
7995echo "$as_me:$LINENO: result: $ac_cv_lib_m_roundf" >&5
7996echo "${ECHO_T}$ac_cv_lib_m_roundf" >&6
7997if test $ac_cv_lib_m_roundf = yes; then
a2a2059f
BD
7998
7999cat >>confdefs.h <<\_ACEOF
453310d8 8000#define HAVE_ROUNDF 1
a2a2059f
BD
8001_ACEOF
8002
8003fi
8004
453310d8
RS
8005echo "$as_me:$LINENO: checking for scalbnf in -lm" >&5
8006echo $ECHO_N "checking for scalbnf in -lm... $ECHO_C" >&6
8007if test "${ac_cv_lib_m_scalbnf+set}" = set; then
a2a2059f
BD
8008 echo $ECHO_N "(cached) $ECHO_C" >&6
8009else
8010 ac_check_lib_save_LIBS=$LIBS
8011LIBS="-lm $LIBS"
8012cat >conftest.$ac_ext <<_ACEOF
8013/* confdefs.h. */
8014_ACEOF
8015cat confdefs.h >>conftest.$ac_ext
8016cat >>conftest.$ac_ext <<_ACEOF
8017/* end confdefs.h. */
8018
8019/* Override any gcc2 internal prototype to avoid an error. */
8020#ifdef __cplusplus
8021extern "C"
8022#endif
8023/* We use char because int might match the return type of a gcc2
8024 builtin and then its argument prototype would still apply. */
453310d8 8025char scalbnf ();
a2a2059f
BD
8026int
8027main ()
8028{
453310d8 8029scalbnf ();
a2a2059f
BD
8030 ;
8031 return 0;
8032}
8033_ACEOF
8034rm -f conftest.$ac_objext conftest$ac_exeext
8035if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8036 (eval $ac_link) 2>conftest.er1
8037 ac_status=$?
8038 grep -v '^ *+' conftest.er1 >conftest.err
8039 rm -f conftest.er1
8040 cat conftest.err >&5
8041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8042 (exit $ac_status); } &&
453310d8
RS
8043 { ac_try='test -z "$ac_c_werror_flag"
8044 || test ! -s conftest.err'
a2a2059f
BD
8045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8046 (eval $ac_try) 2>&5
8047 ac_status=$?
8048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8049 (exit $ac_status); }; } &&
8050 { ac_try='test -s conftest$ac_exeext'
8051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8052 (eval $ac_try) 2>&5
8053 ac_status=$?
8054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8055 (exit $ac_status); }; }; then
453310d8 8056 ac_cv_lib_m_scalbnf=yes
a2a2059f
BD
8057else
8058 echo "$as_me: failed program was:" >&5
8059sed 's/^/| /' conftest.$ac_ext >&5
8060
453310d8 8061ac_cv_lib_m_scalbnf=no
a2a2059f
BD
8062fi
8063rm -f conftest.err conftest.$ac_objext \
8064 conftest$ac_exeext conftest.$ac_ext
8065LIBS=$ac_check_lib_save_LIBS
8066fi
453310d8
RS
8067echo "$as_me:$LINENO: result: $ac_cv_lib_m_scalbnf" >&5
8068echo "${ECHO_T}$ac_cv_lib_m_scalbnf" >&6
8069if test $ac_cv_lib_m_scalbnf = yes; then
a2a2059f
BD
8070
8071cat >>confdefs.h <<\_ACEOF
453310d8 8072#define HAVE_SCALBNF 1
a2a2059f
BD
8073_ACEOF
8074
8075fi
8076
453310d8
RS
8077echo "$as_me:$LINENO: checking for sinf in -lm" >&5
8078echo $ECHO_N "checking for sinf in -lm... $ECHO_C" >&6
8079if test "${ac_cv_lib_m_sinf+set}" = set; then
a9e7b9d3
PB
8080 echo $ECHO_N "(cached) $ECHO_C" >&6
8081else
8082 ac_check_lib_save_LIBS=$LIBS
8083LIBS="-lm $LIBS"
8084cat >conftest.$ac_ext <<_ACEOF
8085/* confdefs.h. */
8086_ACEOF
8087cat confdefs.h >>conftest.$ac_ext
8088cat >>conftest.$ac_ext <<_ACEOF
8089/* end confdefs.h. */
8090
8091/* Override any gcc2 internal prototype to avoid an error. */
8092#ifdef __cplusplus
8093extern "C"
8094#endif
8095/* We use char because int might match the return type of a gcc2
8096 builtin and then its argument prototype would still apply. */
453310d8 8097char sinf ();
a9e7b9d3
PB
8098int
8099main ()
8100{
453310d8 8101sinf ();
a9e7b9d3
PB
8102 ;
8103 return 0;
8104}
8105_ACEOF
8106rm -f conftest.$ac_objext conftest$ac_exeext
8107if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8108 (eval $ac_link) 2>conftest.er1
8109 ac_status=$?
8110 grep -v '^ *+' conftest.er1 >conftest.err
8111 rm -f conftest.er1
8112 cat conftest.err >&5
8113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8114 (exit $ac_status); } &&
453310d8
RS
8115 { ac_try='test -z "$ac_c_werror_flag"
8116 || test ! -s conftest.err'
a9e7b9d3
PB
8117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8118 (eval $ac_try) 2>&5
8119 ac_status=$?
8120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8121 (exit $ac_status); }; } &&
8122 { ac_try='test -s conftest$ac_exeext'
8123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8124 (eval $ac_try) 2>&5
8125 ac_status=$?
8126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8127 (exit $ac_status); }; }; then
453310d8 8128 ac_cv_lib_m_sinf=yes
a9e7b9d3
PB
8129else
8130 echo "$as_me: failed program was:" >&5
8131sed 's/^/| /' conftest.$ac_ext >&5
8132
453310d8 8133ac_cv_lib_m_sinf=no
a9e7b9d3
PB
8134fi
8135rm -f conftest.err conftest.$ac_objext \
8136 conftest$ac_exeext conftest.$ac_ext
8137LIBS=$ac_check_lib_save_LIBS
8138fi
453310d8
RS
8139echo "$as_me:$LINENO: result: $ac_cv_lib_m_sinf" >&5
8140echo "${ECHO_T}$ac_cv_lib_m_sinf" >&6
8141if test $ac_cv_lib_m_sinf = yes; then
a9e7b9d3
PB
8142
8143cat >>confdefs.h <<\_ACEOF
453310d8 8144#define HAVE_SINF 1
a9e7b9d3
PB
8145_ACEOF
8146
8147fi
8148
453310d8
RS
8149echo "$as_me:$LINENO: checking for sinhf in -lm" >&5
8150echo $ECHO_N "checking for sinhf in -lm... $ECHO_C" >&6
8151if test "${ac_cv_lib_m_sinhf+set}" = set; then
a9e7b9d3
PB
8152 echo $ECHO_N "(cached) $ECHO_C" >&6
8153else
8154 ac_check_lib_save_LIBS=$LIBS
8155LIBS="-lm $LIBS"
8156cat >conftest.$ac_ext <<_ACEOF
8157/* confdefs.h. */
8158_ACEOF
8159cat confdefs.h >>conftest.$ac_ext
8160cat >>conftest.$ac_ext <<_ACEOF
8161/* end confdefs.h. */
8162
8163/* Override any gcc2 internal prototype to avoid an error. */
8164#ifdef __cplusplus
8165extern "C"
8166#endif
8167/* We use char because int might match the return type of a gcc2
8168 builtin and then its argument prototype would still apply. */
453310d8 8169char sinhf ();
a9e7b9d3
PB
8170int
8171main ()
8172{
453310d8 8173sinhf ();
a9e7b9d3
PB
8174 ;
8175 return 0;
8176}
8177_ACEOF
8178rm -f conftest.$ac_objext conftest$ac_exeext
8179if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8180 (eval $ac_link) 2>conftest.er1
8181 ac_status=$?
8182 grep -v '^ *+' conftest.er1 >conftest.err
8183 rm -f conftest.er1
8184 cat conftest.err >&5
8185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8186 (exit $ac_status); } &&
453310d8
RS
8187 { ac_try='test -z "$ac_c_werror_flag"
8188 || test ! -s conftest.err'
a9e7b9d3
PB
8189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8190 (eval $ac_try) 2>&5
8191 ac_status=$?
8192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8193 (exit $ac_status); }; } &&
8194 { ac_try='test -s conftest$ac_exeext'
8195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8196 (eval $ac_try) 2>&5
8197 ac_status=$?
8198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8199 (exit $ac_status); }; }; then
453310d8 8200 ac_cv_lib_m_sinhf=yes
a9e7b9d3
PB
8201else
8202 echo "$as_me: failed program was:" >&5
8203sed 's/^/| /' conftest.$ac_ext >&5
8204
453310d8 8205ac_cv_lib_m_sinhf=no
a9e7b9d3
PB
8206fi
8207rm -f conftest.err conftest.$ac_objext \
8208 conftest$ac_exeext conftest.$ac_ext
8209LIBS=$ac_check_lib_save_LIBS
8210fi
453310d8
RS
8211echo "$as_me:$LINENO: result: $ac_cv_lib_m_sinhf" >&5
8212echo "${ECHO_T}$ac_cv_lib_m_sinhf" >&6
8213if test $ac_cv_lib_m_sinhf = yes; then
a9e7b9d3
PB
8214
8215cat >>confdefs.h <<\_ACEOF
453310d8
RS
8216#define HAVE_SINHF 1
8217_ACEOF
8218
8219fi
8220
8221echo "$as_me:$LINENO: checking for sqrtf in -lm" >&5
8222echo $ECHO_N "checking for sqrtf in -lm... $ECHO_C" >&6
8223if test "${ac_cv_lib_m_sqrtf+set}" = set; then
8224 echo $ECHO_N "(cached) $ECHO_C" >&6
8225else
8226 ac_check_lib_save_LIBS=$LIBS
8227LIBS="-lm $LIBS"
8228cat >conftest.$ac_ext <<_ACEOF
8229/* confdefs.h. */
8230_ACEOF
8231cat confdefs.h >>conftest.$ac_ext
8232cat >>conftest.$ac_ext <<_ACEOF
8233/* end confdefs.h. */
8234
8235/* Override any gcc2 internal prototype to avoid an error. */
8236#ifdef __cplusplus
8237extern "C"
8238#endif
8239/* We use char because int might match the return type of a gcc2
8240 builtin and then its argument prototype would still apply. */
8241char sqrtf ();
8242int
8243main ()
8244{
8245sqrtf ();
8246 ;
8247 return 0;
8248}
8249_ACEOF
8250rm -f conftest.$ac_objext conftest$ac_exeext
8251if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8252 (eval $ac_link) 2>conftest.er1
8253 ac_status=$?
8254 grep -v '^ *+' conftest.er1 >conftest.err
8255 rm -f conftest.er1
8256 cat conftest.err >&5
8257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8258 (exit $ac_status); } &&
8259 { ac_try='test -z "$ac_c_werror_flag"
8260 || test ! -s conftest.err'
8261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8262 (eval $ac_try) 2>&5
8263 ac_status=$?
8264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8265 (exit $ac_status); }; } &&
8266 { ac_try='test -s conftest$ac_exeext'
8267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8268 (eval $ac_try) 2>&5
8269 ac_status=$?
8270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8271 (exit $ac_status); }; }; then
8272 ac_cv_lib_m_sqrtf=yes
8273else
8274 echo "$as_me: failed program was:" >&5
8275sed 's/^/| /' conftest.$ac_ext >&5
8276
8277ac_cv_lib_m_sqrtf=no
8278fi
8279rm -f conftest.err conftest.$ac_objext \
8280 conftest$ac_exeext conftest.$ac_ext
8281LIBS=$ac_check_lib_save_LIBS
8282fi
8283echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrtf" >&5
8284echo "${ECHO_T}$ac_cv_lib_m_sqrtf" >&6
8285if test $ac_cv_lib_m_sqrtf = yes; then
8286
8287cat >>confdefs.h <<\_ACEOF
8288#define HAVE_SQRTF 1
8289_ACEOF
8290
8291fi
8292
8293echo "$as_me:$LINENO: checking for tanf in -lm" >&5
8294echo $ECHO_N "checking for tanf in -lm... $ECHO_C" >&6
8295if test "${ac_cv_lib_m_tanf+set}" = set; then
8296 echo $ECHO_N "(cached) $ECHO_C" >&6
8297else
8298 ac_check_lib_save_LIBS=$LIBS
8299LIBS="-lm $LIBS"
8300cat >conftest.$ac_ext <<_ACEOF
8301/* confdefs.h. */
8302_ACEOF
8303cat confdefs.h >>conftest.$ac_ext
8304cat >>conftest.$ac_ext <<_ACEOF
8305/* end confdefs.h. */
8306
8307/* Override any gcc2 internal prototype to avoid an error. */
8308#ifdef __cplusplus
8309extern "C"
8310#endif
8311/* We use char because int might match the return type of a gcc2
8312 builtin and then its argument prototype would still apply. */
8313char tanf ();
8314int
8315main ()
8316{
8317tanf ();
8318 ;
8319 return 0;
8320}
8321_ACEOF
8322rm -f conftest.$ac_objext conftest$ac_exeext
8323if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8324 (eval $ac_link) 2>conftest.er1
8325 ac_status=$?
8326 grep -v '^ *+' conftest.er1 >conftest.err
8327 rm -f conftest.er1
8328 cat conftest.err >&5
8329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8330 (exit $ac_status); } &&
8331 { ac_try='test -z "$ac_c_werror_flag"
8332 || test ! -s conftest.err'
8333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8334 (eval $ac_try) 2>&5
8335 ac_status=$?
8336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8337 (exit $ac_status); }; } &&
8338 { ac_try='test -s conftest$ac_exeext'
8339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8340 (eval $ac_try) 2>&5
8341 ac_status=$?
8342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8343 (exit $ac_status); }; }; then
8344 ac_cv_lib_m_tanf=yes
8345else
8346 echo "$as_me: failed program was:" >&5
8347sed 's/^/| /' conftest.$ac_ext >&5
8348
8349ac_cv_lib_m_tanf=no
8350fi
8351rm -f conftest.err conftest.$ac_objext \
8352 conftest$ac_exeext conftest.$ac_ext
8353LIBS=$ac_check_lib_save_LIBS
8354fi
8355echo "$as_me:$LINENO: result: $ac_cv_lib_m_tanf" >&5
8356echo "${ECHO_T}$ac_cv_lib_m_tanf" >&6
8357if test $ac_cv_lib_m_tanf = yes; then
8358
8359cat >>confdefs.h <<\_ACEOF
8360#define HAVE_TANF 1
8361_ACEOF
8362
8363fi
8364
8365echo "$as_me:$LINENO: checking for tanhf in -lm" >&5
8366echo $ECHO_N "checking for tanhf in -lm... $ECHO_C" >&6
8367if test "${ac_cv_lib_m_tanhf+set}" = set; then
8368 echo $ECHO_N "(cached) $ECHO_C" >&6
8369else
8370 ac_check_lib_save_LIBS=$LIBS
8371LIBS="-lm $LIBS"
8372cat >conftest.$ac_ext <<_ACEOF
8373/* confdefs.h. */
8374_ACEOF
8375cat confdefs.h >>conftest.$ac_ext
8376cat >>conftest.$ac_ext <<_ACEOF
8377/* end confdefs.h. */
8378
8379/* Override any gcc2 internal prototype to avoid an error. */
8380#ifdef __cplusplus
8381extern "C"
8382#endif
8383/* We use char because int might match the return type of a gcc2
8384 builtin and then its argument prototype would still apply. */
8385char tanhf ();
8386int
8387main ()
8388{
8389tanhf ();
8390 ;
8391 return 0;
8392}
8393_ACEOF
8394rm -f conftest.$ac_objext conftest$ac_exeext
8395if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8396 (eval $ac_link) 2>conftest.er1
8397 ac_status=$?
8398 grep -v '^ *+' conftest.er1 >conftest.err
8399 rm -f conftest.er1
8400 cat conftest.err >&5
8401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8402 (exit $ac_status); } &&
8403 { ac_try='test -z "$ac_c_werror_flag"
8404 || test ! -s conftest.err'
8405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8406 (eval $ac_try) 2>&5
8407 ac_status=$?
8408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8409 (exit $ac_status); }; } &&
8410 { ac_try='test -s conftest$ac_exeext'
8411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8412 (eval $ac_try) 2>&5
8413 ac_status=$?
8414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8415 (exit $ac_status); }; }; then
8416 ac_cv_lib_m_tanhf=yes
8417else
8418 echo "$as_me: failed program was:" >&5
8419sed 's/^/| /' conftest.$ac_ext >&5
8420
8421ac_cv_lib_m_tanhf=no
8422fi
8423rm -f conftest.err conftest.$ac_objext \
8424 conftest$ac_exeext conftest.$ac_ext
8425LIBS=$ac_check_lib_save_LIBS
8426fi
8427echo "$as_me:$LINENO: result: $ac_cv_lib_m_tanhf" >&5
8428echo "${ECHO_T}$ac_cv_lib_m_tanhf" >&6
8429if test $ac_cv_lib_m_tanhf = yes; then
8430
8431cat >>confdefs.h <<\_ACEOF
8432#define HAVE_TANHF 1
a9e7b9d3
PB
8433_ACEOF
8434
8435fi
8436
a2a2059f 8437
96b8a615
AJ
8438# Let the user override this
8439# Check whether --enable-cmath or --disable-cmath was given.
8440if test "${enable_cmath+set}" = set; then
8441 enableval="$enable_cmath"
8442 need_math=$enableval
8443fi;
8444if test "$need_math" = "yes"; then
8445 { echo "$as_me:$LINENO: Including complex math functions in libgfor" >&5
8446echo "$as_me: Including complex math functions in libgfor" >&6;};
8447 extra_math_obj='$(gfor_cmath_obj)'
8448fi
8449
8450MATH_OBJ="$extra_math_obj"
8451
8452
8453# The standard autoconf HAVE_STRUCT_TIMEZONE doesn't actually check
8454# for struct timezone, as you might think. We also need to check how
8455# to call gettimeofday if we have it.
8456echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
8457echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
8458if test "${ac_cv_header_time+set}" = set; then
6de9cd9a
DN
8459 echo $ECHO_N "(cached) $ECHO_C" >&6
8460else
96b8a615
AJ
8461 cat >conftest.$ac_ext <<_ACEOF
8462/* confdefs.h. */
8463_ACEOF
8464cat confdefs.h >>conftest.$ac_ext
8465cat >>conftest.$ac_ext <<_ACEOF
8466/* end confdefs.h. */
8467#include <sys/types.h>
8468#include <sys/time.h>
8469#include <time.h>
8470
8471int
8472main ()
8473{
8474if ((struct tm *) 0)
8475return 0;
8476 ;
8477 return 0;
8478}
8479_ACEOF
8480rm -f conftest.$ac_objext
8481if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8482 (eval $ac_compile) 2>conftest.er1
8483 ac_status=$?
8484 grep -v '^ *+' conftest.er1 >conftest.err
8485 rm -f conftest.er1
8486 cat conftest.err >&5
8487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8488 (exit $ac_status); } &&
453310d8
RS
8489 { ac_try='test -z "$ac_c_werror_flag"
8490 || test ! -s conftest.err'
96b8a615
AJ
8491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8492 (eval $ac_try) 2>&5
8493 ac_status=$?
8494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8495 (exit $ac_status); }; } &&
8496 { ac_try='test -s conftest.$ac_objext'
8497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8498 (eval $ac_try) 2>&5
8499 ac_status=$?
8500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8501 (exit $ac_status); }; }; then
8502 ac_cv_header_time=yes
8503else
8504 echo "$as_me: failed program was:" >&5
8505sed 's/^/| /' conftest.$ac_ext >&5
6de9cd9a 8506
96b8a615 8507ac_cv_header_time=no
6de9cd9a 8508fi
96b8a615 8509rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6de9cd9a 8510fi
96b8a615
AJ
8511echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
8512echo "${ECHO_T}$ac_cv_header_time" >&6
8513if test $ac_cv_header_time = yes; then
6de9cd9a 8514
96b8a615
AJ
8515cat >>confdefs.h <<\_ACEOF
8516#define TIME_WITH_SYS_TIME 1
8517_ACEOF
6de9cd9a 8518
6de9cd9a
DN
8519fi
8520
6de9cd9a 8521
96b8a615
AJ
8522
8523for ac_func in gettimeofday
8524do
8525as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8526echo "$as_me:$LINENO: checking for $ac_func" >&5
8527echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8528if eval "test \"\${$as_ac_var+set}\" = set"; then
6de9cd9a
DN
8529 echo $ECHO_N "(cached) $ECHO_C" >&6
8530else
96b8a615
AJ
8531 cat >conftest.$ac_ext <<_ACEOF
8532/* confdefs.h. */
8533_ACEOF
8534cat confdefs.h >>conftest.$ac_ext
8535cat >>conftest.$ac_ext <<_ACEOF
8536/* end confdefs.h. */
8537/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8538 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8539#define $ac_func innocuous_$ac_func
8540
8541/* System header to define __stub macros and hopefully few prototypes,
8542 which can conflict with char $ac_func (); below.
8543 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8544 <limits.h> exists even on freestanding compilers. */
8545
8546#ifdef __STDC__
8547# include <limits.h>
8548#else
8549# include <assert.h>
8550#endif
8551
8552#undef $ac_func
8553
8554/* Override any gcc2 internal prototype to avoid an error. */
8555#ifdef __cplusplus
8556extern "C"
8557{
8558#endif
8559/* We use char because int might match the return type of a gcc2
8560 builtin and then its argument prototype would still apply. */
8561char $ac_func ();
8562/* The GNU C library defines this for functions which it implements
8563 to always fail with ENOSYS. Some functions are actually named
8564 something starting with __ and the normal name is an alias. */
8565#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8566choke me
8567#else
8568char (*f) () = $ac_func;
8569#endif
8570#ifdef __cplusplus
8571}
8572#endif
8573
8574int
8575main ()
8576{
8577return f != $ac_func;
8578 ;
8579 return 0;
8580}
8581_ACEOF
8582rm -f conftest.$ac_objext conftest$ac_exeext
8583if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8584 (eval $ac_link) 2>conftest.er1
8585 ac_status=$?
8586 grep -v '^ *+' conftest.er1 >conftest.err
8587 rm -f conftest.er1
8588 cat conftest.err >&5
8589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8590 (exit $ac_status); } &&
453310d8
RS
8591 { ac_try='test -z "$ac_c_werror_flag"
8592 || test ! -s conftest.err'
96b8a615
AJ
8593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8594 (eval $ac_try) 2>&5
8595 ac_status=$?
8596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8597 (exit $ac_status); }; } &&
8598 { ac_try='test -s conftest$ac_exeext'
8599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8600 (eval $ac_try) 2>&5
8601 ac_status=$?
8602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8603 (exit $ac_status); }; }; then
8604 eval "$as_ac_var=yes"
6de9cd9a 8605else
96b8a615
AJ
8606 echo "$as_me: failed program was:" >&5
8607sed 's/^/| /' conftest.$ac_ext >&5
6de9cd9a 8608
96b8a615 8609eval "$as_ac_var=no"
6de9cd9a 8610fi
96b8a615
AJ
8611rm -f conftest.err conftest.$ac_objext \
8612 conftest$ac_exeext conftest.$ac_ext
6de9cd9a 8613fi
96b8a615
AJ
8614echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8615echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8616if test `eval echo '${'$as_ac_var'}'` = yes; then
8617 cat >>confdefs.h <<_ACEOF
8618#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8619_ACEOF
6de9cd9a
DN
8620
8621fi
6de9cd9a
DN
8622done
8623
96b8a615
AJ
8624 if test "$ac_cv_func_gettimeofday" = yes; then
8625 echo "$as_me:$LINENO: checking for struct timezone" >&5
8626echo $ECHO_N "checking for struct timezone... $ECHO_C" >&6
8627if test "${gfor_cv_struct_timezone+set}" = set; then
8628 echo $ECHO_N "(cached) $ECHO_C" >&6
8629else
8630 cat >conftest.$ac_ext <<_ACEOF
8631/* confdefs.h. */
8632_ACEOF
8633cat confdefs.h >>conftest.$ac_ext
8634cat >>conftest.$ac_ext <<_ACEOF
8635/* end confdefs.h. */
8636#include <sys/time.h>
8637int
8638main ()
8639{
8640struct timezone tz;
8641 ;
8642 return 0;
8643}
8644_ACEOF
8645rm -f conftest.$ac_objext
8646if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8647 (eval $ac_compile) 2>conftest.er1
8648 ac_status=$?
8649 grep -v '^ *+' conftest.er1 >conftest.err
8650 rm -f conftest.er1
8651 cat conftest.err >&5
8652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8653 (exit $ac_status); } &&
453310d8
RS
8654 { ac_try='test -z "$ac_c_werror_flag"
8655 || test ! -s conftest.err'
96b8a615
AJ
8656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8657 (eval $ac_try) 2>&5
8658 ac_status=$?
8659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8660 (exit $ac_status); }; } &&
8661 { ac_try='test -s conftest.$ac_objext'
8662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8663 (eval $ac_try) 2>&5
8664 ac_status=$?
8665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8666 (exit $ac_status); }; }; then
8667 gfor_cv_struct_timezone=yes
6de9cd9a 8668else
96b8a615
AJ
8669 echo "$as_me: failed program was:" >&5
8670sed 's/^/| /' conftest.$ac_ext >&5
6de9cd9a 8671
96b8a615 8672gfor_cv_struct_timezone=no
6de9cd9a 8673fi
96b8a615
AJ
8674rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8675fi
8676echo "$as_me:$LINENO: result: $gfor_cv_struct_timezone" >&5
8677echo "${ECHO_T}$gfor_cv_struct_timezone" >&6
8678 if test $gfor_cv_struct_timezone = yes; then
8679 if test "$cross_compiling" = yes; then
8680 gfor_have_struct_timezone=yes
6de9cd9a 8681else
96b8a615
AJ
8682 cat >conftest.$ac_ext <<_ACEOF
8683/* confdefs.h. */
8684_ACEOF
8685cat confdefs.h >>conftest.$ac_ext
8686cat >>conftest.$ac_ext <<_ACEOF
8687/* end confdefs.h. */
6de9cd9a 8688
96b8a615
AJ
8689#ifdef TIME_WITH_SYS_TIME
8690#include <sys/time.h>
8691#include <time.h>
8692#else
8693#ifdef HAVE_SYS_TIME_H
8694#include <sys/time.h>
8695#else
8696#include <time.h>
8697#endif
8698#endif
8699main ()
8700{
8701 struct timeval time;
8702 struct timezone dummy;
8703 if (gettimeofday (&time, &dummy))
8704 exit (1);
8705 else
8706 exit (0);
8707}
8708_ACEOF
8709rm -f conftest$ac_exeext
8710if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8711 (eval $ac_link) 2>&5
6de9cd9a
DN
8712 ac_status=$?
8713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
96b8a615
AJ
8714 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8716 (eval $ac_try) 2>&5
6de9cd9a
DN
8717 ac_status=$?
8718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
96b8a615
AJ
8719 (exit $ac_status); }; }; then
8720 gfor_have_struct_timezone=yes
6de9cd9a 8721else
96b8a615
AJ
8722 echo "$as_me: program exited with status $ac_status" >&5
8723echo "$as_me: failed program was:" >&5
8724sed 's/^/| /' conftest.$ac_ext >&5
6de9cd9a 8725
96b8a615
AJ
8726( exit $ac_status )
8727gfor_have_struct_timezone=no
8728fi
8729rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8730fi
8731 if test $gfor_have_struct_timezone = yes; then
6de9cd9a 8732
96b8a615
AJ
8733cat >>confdefs.h <<\_ACEOF
8734#define HAVE_TIMEZONE 1
8735_ACEOF
6de9cd9a 8736
96b8a615
AJ
8737 fi
8738 fi
8739
8740 echo "$as_me:$LINENO: checking whether gettimeofday can accept two arguments" >&5
8741echo $ECHO_N "checking whether gettimeofday can accept two arguments... $ECHO_C" >&6
8742if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then
8743 echo $ECHO_N "(cached) $ECHO_C" >&6
8744else
8745 cat >conftest.$ac_ext <<_ACEOF
6de9cd9a
DN
8746/* confdefs.h. */
8747_ACEOF
8748cat confdefs.h >>conftest.$ac_ext
8749cat >>conftest.$ac_ext <<_ACEOF
8750/* end confdefs.h. */
8751
96b8a615
AJ
8752#ifdef TIME_WITH_SYS_TIME
8753#include <sys/time.h>
8754#include <time.h>
8755#else
8756#ifdef HAVE_SYS_TIME_H
8757#include <sys/time.h>
8758#else
8759#include <time.h>
8760#endif
8761#endif
8762
6de9cd9a
DN
8763int
8764main ()
8765{
8766
96b8a615
AJ
8767 struct timeval time;
8768#ifdef HAVE_TIMEZONE
8769 struct timezone dummy;
8770#define DUMMY &dummy
8771#else
8772#define DUMMY NULL
8773#endif
8774 gettimeofday (&time, DUMMY);
6de9cd9a
DN
8775 ;
8776 return 0;
8777}
8778_ACEOF
8779rm -f conftest.$ac_objext conftest$ac_exeext
8780if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8781 (eval $ac_link) 2>conftest.er1
8782 ac_status=$?
8783 grep -v '^ *+' conftest.er1 >conftest.err
8784 rm -f conftest.er1
8785 cat conftest.err >&5
8786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8787 (exit $ac_status); } &&
453310d8
RS
8788 { ac_try='test -z "$ac_c_werror_flag"
8789 || test ! -s conftest.err'
6de9cd9a
DN
8790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8791 (eval $ac_try) 2>&5
8792 ac_status=$?
8793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8794 (exit $ac_status); }; } &&
8795 { ac_try='test -s conftest$ac_exeext'
8796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8797 (eval $ac_try) 2>&5
8798 ac_status=$?
8799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8800 (exit $ac_status); }; }; then
96b8a615 8801 emacs_cv_gettimeofday_two_arguments=yes
6de9cd9a
DN
8802else
8803 echo "$as_me: failed program was:" >&5
8804sed 's/^/| /' conftest.$ac_ext >&5
8805
96b8a615 8806emacs_cv_gettimeofday_two_arguments=no
6de9cd9a
DN
8807fi
8808rm -f conftest.err conftest.$ac_objext \
8809 conftest$ac_exeext conftest.$ac_ext
6de9cd9a 8810fi
96b8a615
AJ
8811echo "$as_me:$LINENO: result: $emacs_cv_gettimeofday_two_arguments" >&5
8812echo "${ECHO_T}$emacs_cv_gettimeofday_two_arguments" >&6
8813 if test $emacs_cv_gettimeofday_two_arguments = no; then
6de9cd9a 8814
96b8a615
AJ
8815cat >>confdefs.h <<\_ACEOF
8816#define GETTIMEOFDAY_ONE_ARGUMENT 1
8817_ACEOF
6de9cd9a 8818
96b8a615
AJ
8819 fi
8820 fi
6de9cd9a 8821
6de9cd9a
DN
8822cat >confcache <<\_ACEOF
8823# This file is a shell script that caches the results of configure
8824# tests run on this system so they can be shared between configure
8825# scripts and configure runs, see configure's option --config-cache.
8826# It is not useful on other systems. If it contains results you don't
8827# want to keep, you may remove or edit it.
8828#
8829# config.status only pays attention to the cache file if you give it
8830# the --recheck option to rerun configure.
8831#
8832# `ac_cv_env_foo' variables (set or unset) will be overridden when
8833# loading this file, other *unset* `ac_cv_foo' will be assigned the
8834# following values.
8835
8836_ACEOF
8837
8838# The following way of writing the cache mishandles newlines in values,
8839# but we know of no workaround that is simple, portable, and efficient.
8840# So, don't put newlines in cache variables' values.
8841# Ultrix sh set writes to stderr and can't be redirected directly,
8842# and sets the high bit in the cache file unless we assign to the vars.
8843{
8844 (set) 2>&1 |
8845 case `(ac_space=' '; set | grep ac_space) 2>&1` in
8846 *ac_space=\ *)
8847 # `set' does not quote correctly, so add quotes (double-quote
8848 # substitution turns \\\\ into \\, and sed turns \\ into \).
8849 sed -n \
8850 "s/'/'\\\\''/g;
8851 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
8852 ;;
8853 *)
8854 # `set' quotes correctly as required by POSIX, so do not add quotes.
8855 sed -n \
8856 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
8857 ;;
8858 esac;
8859} |
8860 sed '
8861 t clear
8862 : clear
8863 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
8864 t end
8865 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
8866 : end' >>confcache
8867if diff $cache_file confcache >/dev/null 2>&1; then :; else
8868 if test -w $cache_file; then
8869 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
8870 cat confcache >$cache_file
8871 else
8872 echo "not updating unwritable cache $cache_file"
8873 fi
8874fi
8875rm -f confcache
8876
96b8a615
AJ
8877if test ${multilib} = yes; then
8878 multilib_arg="--enable-multilib"
6de9cd9a 8879else
96b8a615 8880 multilib_arg=
6de9cd9a 8881fi
6de9cd9a 8882
96b8a615 8883# Write our Makefile.
6de9cd9a 8884 ac_config_files="$ac_config_files Makefile"
96b8a615 8885
6de9cd9a
DN
8886cat >confcache <<\_ACEOF
8887# This file is a shell script that caches the results of configure
8888# tests run on this system so they can be shared between configure
8889# scripts and configure runs, see configure's option --config-cache.
8890# It is not useful on other systems. If it contains results you don't
8891# want to keep, you may remove or edit it.
8892#
8893# config.status only pays attention to the cache file if you give it
8894# the --recheck option to rerun configure.
8895#
8896# `ac_cv_env_foo' variables (set or unset) will be overridden when
8897# loading this file, other *unset* `ac_cv_foo' will be assigned the
8898# following values.
8899
8900_ACEOF
8901
8902# The following way of writing the cache mishandles newlines in values,
8903# but we know of no workaround that is simple, portable, and efficient.
8904# So, don't put newlines in cache variables' values.
8905# Ultrix sh set writes to stderr and can't be redirected directly,
8906# and sets the high bit in the cache file unless we assign to the vars.
8907{
8908 (set) 2>&1 |
8909 case `(ac_space=' '; set | grep ac_space) 2>&1` in
8910 *ac_space=\ *)
8911 # `set' does not quote correctly, so add quotes (double-quote
8912 # substitution turns \\\\ into \\, and sed turns \\ into \).
8913 sed -n \
8914 "s/'/'\\\\''/g;
8915 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
8916 ;;
8917 *)
8918 # `set' quotes correctly as required by POSIX, so do not add quotes.
8919 sed -n \
8920 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
8921 ;;
8922 esac;
8923} |
8924 sed '
8925 t clear
8926 : clear
8927 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
8928 t end
8929 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
8930 : end' >>confcache
8931if diff $cache_file confcache >/dev/null 2>&1; then :; else
8932 if test -w $cache_file; then
8933 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
8934 cat confcache >$cache_file
8935 else
8936 echo "not updating unwritable cache $cache_file"
8937 fi
8938fi
8939rm -f confcache
8940
8941test "x$prefix" = xNONE && prefix=$ac_default_prefix
8942# Let make expand exec_prefix.
8943test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
8944
8945# VPATH may cause trouble with some makes, so we remove $(srcdir),
8946# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
8947# trailing colons and then remove the whole line if VPATH becomes empty
8948# (actually we leave an empty line to preserve line numbers).
8949if test "x$srcdir" = x.; then
8950 ac_vpsub='/^[ ]*VPATH[ ]*=/{
8951s/:*\$(srcdir):*/:/;
8952s/:*\${srcdir}:*/:/;
8953s/:*@srcdir@:*/:/;
8954s/^\([^=]*=[ ]*\):*/\1/;
8955s/:*$//;
8956s/^[^=]*=[ ]*$//;
8957}'
8958fi
8959
8960DEFS=-DHAVE_CONFIG_H
8961
8962ac_libobjs=
8963ac_ltlibobjs=
8964for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
8965 # 1. Remove the extension, and $U if already installed.
8966 ac_i=`echo "$ac_i" |
8967 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
8968 # 2. Add them.
8969 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
8970 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
8971done
8972LIBOBJS=$ac_libobjs
8973
8974LTLIBOBJS=$ac_ltlibobjs
8975
8976
8977if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
8978 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
8979Usually this means the macro was only invoked conditionally." >&5
8980echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
8981Usually this means the macro was only invoked conditionally." >&2;}
8982 { (exit 1); exit 1; }; }
8983fi
6de9cd9a
DN
8984
8985: ${CONFIG_STATUS=./config.status}
8986ac_clean_files_save=$ac_clean_files
8987ac_clean_files="$ac_clean_files $CONFIG_STATUS"
8988{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
8989echo "$as_me: creating $CONFIG_STATUS" >&6;}
8990cat >$CONFIG_STATUS <<_ACEOF
8991#! $SHELL
8992# Generated by $as_me.
8993# Run this file to recreate the current configuration.
8994# Compiler output produced by configure, useful for debugging
8995# configure, is in config.log if it exists.
8996
8997debug=false
8998ac_cs_recheck=false
8999ac_cs_silent=false
9000SHELL=\${CONFIG_SHELL-$SHELL}
9001_ACEOF
9002
9003cat >>$CONFIG_STATUS <<\_ACEOF
9004## --------------------- ##
9005## M4sh Initialization. ##
9006## --------------------- ##
9007
9008# Be Bourne compatible
9009if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
9010 emulate sh
9011 NULLCMD=:
9012 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
9013 # is contrary to our usage. Disable this feature.
9014 alias -g '${1+"$@"}'='"$@"'
9015elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
9016 set -o posix
9017fi
9018DUALCASE=1; export DUALCASE # for MKS sh
9019
9020# Support unset when possible.
9021if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
9022 as_unset=unset
9023else
9024 as_unset=false
9025fi
9026
9027
9028# Work around bugs in pre-3.0 UWIN ksh.
9029$as_unset ENV MAIL MAILPATH
9030PS1='$ '
9031PS2='> '
9032PS4='+ '
9033
9034# NLS nuisances.
9035for as_var in \
9036 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
9037 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
9038 LC_TELEPHONE LC_TIME
9039do
9040 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
9041 eval $as_var=C; export $as_var
9042 else
9043 $as_unset $as_var
9044 fi
9045done
9046
9047# Required to use basename.
9048if expr a : '\(a\)' >/dev/null 2>&1; then
9049 as_expr=expr
9050else
9051 as_expr=false
9052fi
9053
9054if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
9055 as_basename=basename
9056else
9057 as_basename=false
9058fi
9059
9060
9061# Name of the executable.
9062as_me=`$as_basename "$0" ||
9063$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
9064 X"$0" : 'X\(//\)$' \| \
9065 X"$0" : 'X\(/\)$' \| \
9066 . : '\(.\)' 2>/dev/null ||
9067echo X/"$0" |
9068 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
9069 /^X\/\(\/\/\)$/{ s//\1/; q; }
9070 /^X\/\(\/\).*/{ s//\1/; q; }
9071 s/.*/./; q'`
9072
9073
9074# PATH needs CR, and LINENO needs CR and PATH.
9075# Avoid depending upon Character Ranges.
9076as_cr_letters='abcdefghijklmnopqrstuvwxyz'
9077as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
9078as_cr_Letters=$as_cr_letters$as_cr_LETTERS
9079as_cr_digits='0123456789'
9080as_cr_alnum=$as_cr_Letters$as_cr_digits
9081
9082# The user is always right.
9083if test "${PATH_SEPARATOR+set}" != set; then
9084 echo "#! /bin/sh" >conf$$.sh
9085 echo "exit 0" >>conf$$.sh
9086 chmod +x conf$$.sh
9087 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
9088 PATH_SEPARATOR=';'
9089 else
9090 PATH_SEPARATOR=:
9091 fi
9092 rm -f conf$$.sh
9093fi
9094
9095
9096 as_lineno_1=$LINENO
9097 as_lineno_2=$LINENO
9098 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
9099 test "x$as_lineno_1" != "x$as_lineno_2" &&
9100 test "x$as_lineno_3" = "x$as_lineno_2" || {
9101 # Find who we are. Look in the path if we contain no path at all
9102 # relative or not.
9103 case $0 in
9104 *[\\/]* ) as_myself=$0 ;;
9105 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9106for as_dir in $PATH
9107do
9108 IFS=$as_save_IFS
9109 test -z "$as_dir" && as_dir=.
9110 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
9111done
9112
9113 ;;
9114 esac
9115 # We did not find ourselves, most probably we were run as `sh COMMAND'
9116 # in which case we are not to be found in the path.
9117 if test "x$as_myself" = x; then
9118 as_myself=$0
9119 fi
9120 if test ! -f "$as_myself"; then
9121 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
9122echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
9123 { (exit 1); exit 1; }; }
9124 fi
9125 case $CONFIG_SHELL in
9126 '')
9127 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9128for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
9129do
9130 IFS=$as_save_IFS
9131 test -z "$as_dir" && as_dir=.
9132 for as_base in sh bash ksh sh5; do
9133 case $as_dir in
9134 /*)
9135 if ("$as_dir/$as_base" -c '
9136 as_lineno_1=$LINENO
9137 as_lineno_2=$LINENO
9138 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
9139 test "x$as_lineno_1" != "x$as_lineno_2" &&
9140 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
9141 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
9142 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
9143 CONFIG_SHELL=$as_dir/$as_base
9144 export CONFIG_SHELL
9145 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
9146 fi;;
9147 esac
9148 done
9149done
9150;;
9151 esac
9152
9153 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
9154 # uniformly replaced by the line number. The first 'sed' inserts a
9155 # line-number line before each line; the second 'sed' does the real
9156 # work. The second script uses 'N' to pair each line-number line
9157 # with the numbered line, and appends trailing '-' during
9158 # substitution so that $LINENO is not a special case at line end.
9159 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
9160 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
9161 sed '=' <$as_myself |
9162 sed '
9163 N
9164 s,$,-,
9165 : loop
9166 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
9167 t loop
9168 s,-$,,
9169 s,^['$as_cr_digits']*\n,,
9170 ' >$as_me.lineno &&
9171 chmod +x $as_me.lineno ||
9172 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
9173echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
9174 { (exit 1); exit 1; }; }
9175
9176 # Don't try to exec as it changes $[0], causing all sort of problems
9177 # (the dirname of $[0] is not the place where we might find the
9178 # original and so on. Autoconf is especially sensible to this).
9179 . ./$as_me.lineno
9180 # Exit status is that of the last command.
9181 exit
9182}
9183
9184
9185case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
9186 *c*,-n*) ECHO_N= ECHO_C='
9187' ECHO_T=' ' ;;
9188 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
9189 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
9190esac
9191
9192if expr a : '\(a\)' >/dev/null 2>&1; then
9193 as_expr=expr
9194else
9195 as_expr=false
9196fi
9197
9198rm -f conf$$ conf$$.exe conf$$.file
9199echo >conf$$.file
9200if ln -s conf$$.file conf$$ 2>/dev/null; then
9201 # We could just check for DJGPP; but this test a) works b) is more generic
9202 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
9203 if test -f conf$$.exe; then
9204 # Don't use ln at all; we don't have any links
9205 as_ln_s='cp -p'
9206 else
9207 as_ln_s='ln -s'
9208 fi
9209elif ln conf$$.file conf$$ 2>/dev/null; then
9210 as_ln_s=ln
9211else
9212 as_ln_s='cp -p'
9213fi
9214rm -f conf$$ conf$$.exe conf$$.file
9215
9216if mkdir -p . 2>/dev/null; then
9217 as_mkdir_p=:
9218else
9219 test -d ./-p && rmdir ./-p
9220 as_mkdir_p=false
9221fi
9222
9223as_executable_p="test -f"
9224
9225# Sed expression to map a string onto a valid CPP name.
9226as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
9227
9228# Sed expression to map a string onto a valid variable name.
9229as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
9230
9231
9232# IFS
9233# We need space, tab and new line, in precisely that order.
9234as_nl='
9235'
9236IFS=" $as_nl"
9237
9238# CDPATH.
9239$as_unset CDPATH
9240
9241exec 6>&1
9242
9243# Open the log real soon, to keep \$[0] and so on meaningful, and to
9244# report actual input values of CONFIG_FILES etc. instead of their
9245# values after options handling. Logging --version etc. is OK.
9246exec 5>>config.log
9247{
9248 echo
9249 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
9250## Running $as_me. ##
9251_ASBOX
9252} >&5
9253cat >&5 <<_CSEOF
9254
9255This file was extended by GNU Fortran Runtime Library $as_me 0.2, which was
9256generated by GNU Autoconf 2.59. Invocation command line was
9257
9258 CONFIG_FILES = $CONFIG_FILES
9259 CONFIG_HEADERS = $CONFIG_HEADERS
9260 CONFIG_LINKS = $CONFIG_LINKS
9261 CONFIG_COMMANDS = $CONFIG_COMMANDS
9262 $ $0 $@
9263
9264_CSEOF
9265echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
9266echo >&5
9267_ACEOF
9268
9269# Files that config.status was made for.
9270if test -n "$ac_config_files"; then
9271 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
9272fi
9273
9274if test -n "$ac_config_headers"; then
9275 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
9276fi
9277
9278if test -n "$ac_config_links"; then
9279 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
9280fi
9281
9282if test -n "$ac_config_commands"; then
9283 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
9284fi
9285
9286cat >>$CONFIG_STATUS <<\_ACEOF
9287
9288ac_cs_usage="\
9289\`$as_me' instantiates files from templates according to the
9290current configuration.
9291
9292Usage: $0 [OPTIONS] [FILE]...
9293
9294 -h, --help print this help, then exit
9295 -V, --version print version number, then exit
9296 -q, --quiet do not print progress messages
9297 -d, --debug don't remove temporary files
9298 --recheck update $as_me by reconfiguring in the same conditions
9299 --file=FILE[:TEMPLATE]
9300 instantiate the configuration file FILE
9301 --header=FILE[:TEMPLATE]
9302 instantiate the configuration header FILE
9303
9304Configuration files:
9305$config_files
9306
9307Configuration headers:
9308$config_headers
9309
9310Configuration commands:
9311$config_commands
9312
9313Report bugs to <bug-autoconf@gnu.org>."
9314_ACEOF
9315
9316cat >>$CONFIG_STATUS <<_ACEOF
9317ac_cs_version="\\
9318GNU Fortran Runtime Library config.status 0.2
9319configured by $0, generated by GNU Autoconf 2.59,
9320 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
9321
9322Copyright (C) 2003 Free Software Foundation, Inc.
9323This config.status script is free software; the Free Software Foundation
9324gives unlimited permission to copy, distribute and modify it."
9325srcdir=$srcdir
9326INSTALL="$INSTALL"
9327_ACEOF
9328
9329cat >>$CONFIG_STATUS <<\_ACEOF
9330# If no file are specified by the user, then we need to provide default
9331# value. By we need to know if files were specified by the user.
9332ac_need_defaults=:
9333while test $# != 0
9334do
9335 case $1 in
9336 --*=*)
9337 ac_option=`expr "x$1" : 'x\([^=]*\)='`
9338 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
9339 ac_shift=:
9340 ;;
9341 -*)
9342 ac_option=$1
9343 ac_optarg=$2
9344 ac_shift=shift
9345 ;;
9346 *) # This is not an option, so the user has probably given explicit
9347 # arguments.
9348 ac_option=$1
9349 ac_need_defaults=false;;
9350 esac
9351
9352 case $ac_option in
9353 # Handling of the options.
9354_ACEOF
9355cat >>$CONFIG_STATUS <<\_ACEOF
9356 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
9357 ac_cs_recheck=: ;;
9358 --version | --vers* | -V )
9359 echo "$ac_cs_version"; exit 0 ;;
9360 --he | --h)
9361 # Conflict between --help and --header
9362 { { echo "$as_me:$LINENO: error: ambiguous option: $1
9363Try \`$0 --help' for more information." >&5
9364echo "$as_me: error: ambiguous option: $1
9365Try \`$0 --help' for more information." >&2;}
9366 { (exit 1); exit 1; }; };;
9367 --help | --hel | -h )
9368 echo "$ac_cs_usage"; exit 0 ;;
9369 --debug | --d* | -d )
9370 debug=: ;;
9371 --file | --fil | --fi | --f )
9372 $ac_shift
9373 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
9374 ac_need_defaults=false;;
9375 --header | --heade | --head | --hea )
9376 $ac_shift
9377 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
9378 ac_need_defaults=false;;
9379 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
9380 | -silent | --silent | --silen | --sile | --sil | --si | --s)
9381 ac_cs_silent=: ;;
9382
9383 # This is an error.
9384 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
9385Try \`$0 --help' for more information." >&5
9386echo "$as_me: error: unrecognized option: $1
9387Try \`$0 --help' for more information." >&2;}
9388 { (exit 1); exit 1; }; } ;;
9389
9390 *) ac_config_targets="$ac_config_targets $1" ;;
9391
9392 esac
9393 shift
9394done
9395
9396ac_configure_extra_args=
9397
9398if $ac_cs_silent; then
9399 exec 6>/dev/null
9400 ac_configure_extra_args="$ac_configure_extra_args --silent"
9401fi
9402
9403_ACEOF
9404cat >>$CONFIG_STATUS <<_ACEOF
9405if \$ac_cs_recheck; then
9406 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
9407 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
9408fi
9409
9410_ACEOF
9411
9412cat >>$CONFIG_STATUS <<_ACEOF
9413#
9414# INIT-COMMANDS section.
9415#
9416
96b8a615
AJ
9417
9418srcdir="$srcdir"
9419host="$host"
9420target="$target"
9421with_multisubdir="$with_multisubdir"
9422with_multisrctop="$with_multisrctop"
9423with_target_subdir="$with_target_subdir"
9424ac_configure_args="${multilib_arg} ${ac_configure_args}"
9425multi_basedir="$multi_basedir"
9426CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
9427CC="$CC"
6de9cd9a
DN
9428
9429_ACEOF
9430
9431
9432
9433cat >>$CONFIG_STATUS <<\_ACEOF
9434for ac_config_target in $ac_config_targets
9435do
9436 case "$ac_config_target" in
9437 # Handling of arguments.
9438 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
96b8a615 9439 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
6de9cd9a
DN
9440 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
9441 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
9442echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
9443 { (exit 1); exit 1; }; };;
9444 esac
9445done
9446
9447# If the user did not use the arguments to specify the items to instantiate,
9448# then the envvar interface is used. Set only those that are not.
9449# We use the long form for the default assignment because of an extremely
9450# bizarre bug on SunOS 4.1.3.
9451if $ac_need_defaults; then
9452 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
9453 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
9454 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
9455fi
9456
9457# Have a temporary directory for convenience. Make it in the build tree
9458# simply because there is no reason to put it here, and in addition,
9459# creating and moving files from /tmp can sometimes cause problems.
9460# Create a temporary directory, and hook for its removal unless debugging.
9461$debug ||
9462{
9463 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
9464 trap '{ (exit 1); exit 1; }' 1 2 13 15
9465}
9466
9467# Create a (secure) tmp directory for tmp files.
9468
9469{
9470 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
9471 test -n "$tmp" && test -d "$tmp"
9472} ||
9473{
9474 tmp=./confstat$$-$RANDOM
9475 (umask 077 && mkdir $tmp)
9476} ||
9477{
9478 echo "$me: cannot create a temporary directory in ." >&2
9479 { (exit 1); exit 1; }
9480}
9481
9482_ACEOF
9483
9484cat >>$CONFIG_STATUS <<_ACEOF
9485
9486#
9487# CONFIG_FILES section.
9488#
9489
9490# No need to generate the scripts if there are no CONFIG_FILES.
9491# This happens for instance when ./config.status config.h
9492if test -n "\$CONFIG_FILES"; then
9493 # Protect against being on the right side of a sed subst in config.status.
9494 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
9495 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
9496s,@SHELL@,$SHELL,;t t
9497s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
9498s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
9499s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
9500s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
9501s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
9502s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
9503s,@exec_prefix@,$exec_prefix,;t t
9504s,@prefix@,$prefix,;t t
9505s,@program_transform_name@,$program_transform_name,;t t
9506s,@bindir@,$bindir,;t t
9507s,@sbindir@,$sbindir,;t t
9508s,@libexecdir@,$libexecdir,;t t
9509s,@datadir@,$datadir,;t t
9510s,@sysconfdir@,$sysconfdir,;t t
9511s,@sharedstatedir@,$sharedstatedir,;t t
9512s,@localstatedir@,$localstatedir,;t t
9513s,@libdir@,$libdir,;t t
9514s,@includedir@,$includedir,;t t
9515s,@oldincludedir@,$oldincludedir,;t t
9516s,@infodir@,$infodir,;t t
9517s,@mandir@,$mandir,;t t
9518s,@build_alias@,$build_alias,;t t
9519s,@host_alias@,$host_alias,;t t
9520s,@target_alias@,$target_alias,;t t
9521s,@DEFS@,$DEFS,;t t
9522s,@ECHO_C@,$ECHO_C,;t t
9523s,@ECHO_N@,$ECHO_N,;t t
9524s,@ECHO_T@,$ECHO_T,;t t
9525s,@LIBS@,$LIBS,;t t
96b8a615
AJ
9526s,@build@,$build,;t t
9527s,@build_cpu@,$build_cpu,;t t
9528s,@build_vendor@,$build_vendor,;t t
9529s,@build_os@,$build_os,;t t
9530s,@host@,$host,;t t
9531s,@host_cpu@,$host_cpu,;t t
9532s,@host_vendor@,$host_vendor,;t t
9533s,@host_os@,$host_os,;t t
9534s,@target@,$target,;t t
9535s,@target_cpu@,$target_cpu,;t t
9536s,@target_vendor@,$target_vendor,;t t
9537s,@target_os@,$target_os,;t t
6de9cd9a
DN
9538s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
9539s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
9540s,@INSTALL_DATA@,$INSTALL_DATA,;t t
9541s,@CYGPATH_W@,$CYGPATH_W,;t t
9542s,@PACKAGE@,$PACKAGE,;t t
9543s,@VERSION@,$VERSION,;t t
9544s,@ACLOCAL@,$ACLOCAL,;t t
9545s,@AUTOCONF@,$AUTOCONF,;t t
9546s,@AUTOMAKE@,$AUTOMAKE,;t t
9547s,@AUTOHEADER@,$AUTOHEADER,;t t
9548s,@MAKEINFO@,$MAKEINFO,;t t
9549s,@AMTAR@,$AMTAR,;t t
9550s,@install_sh@,$install_sh,;t t
9551s,@STRIP@,$STRIP,;t t
9552s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
9553s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
9554s,@mkdir_p@,$mkdir_p,;t t
9555s,@AWK@,$AWK,;t t
9556s,@SET_MAKE@,$SET_MAKE,;t t
9557s,@am__leading_dot@,$am__leading_dot,;t t
9558s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
9559s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
9560s,@MAINT@,$MAINT,;t t
96b8a615
AJ
9561s,@multi_basedir@,$multi_basedir,;t t
9562s,@gcc_version@,$gcc_version,;t t
9563s,@toolexecdir@,$toolexecdir,;t t
9564s,@toolexeclibdir@,$toolexeclibdir,;t t
6de9cd9a 9565s,@CC@,$CC,;t t
6de9cd9a
DN
9566s,@ac_ct_CC@,$ac_ct_CC,;t t
9567s,@EXEEXT@,$EXEEXT,;t t
9568s,@OBJEXT@,$OBJEXT,;t t
96b8a615
AJ
9569s,@CFLAGS@,$CFLAGS,;t t
9570s,@AS@,$AS,;t t
9571s,@ac_ct_AS@,$ac_ct_AS,;t t
9572s,@AR@,$AR,;t t
9573s,@ac_ct_AR@,$ac_ct_AR,;t t
9574s,@RANLIB@,$RANLIB,;t t
9575s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
9576s,@LN_S@,$LN_S,;t t
9577s,@LIBTOOL@,$LIBTOOL,;t t
9578s,@enable_shared@,$enable_shared,;t t
9579s,@enable_static@,$enable_static,;t t
6de9cd9a
DN
9580s,@F77@,$F77,;t t
9581s,@FFLAGS@,$FFLAGS,;t t
96b8a615 9582s,@LDFLAGS@,$LDFLAGS,;t t
6de9cd9a
DN
9583s,@ac_ct_F77@,$ac_ct_F77,;t t
9584s,@CPP@,$CPP,;t t
96b8a615 9585s,@CPPFLAGS@,$CPPFLAGS,;t t
6de9cd9a
DN
9586s,@EGREP@,$EGREP,;t t
9587s,@MATH_OBJ@,$MATH_OBJ,;t t
6de9cd9a
DN
9588s,@LIBOBJS@,$LIBOBJS,;t t
9589s,@LTLIBOBJS@,$LTLIBOBJS,;t t
9590CEOF
9591
9592_ACEOF
9593
9594 cat >>$CONFIG_STATUS <<\_ACEOF
9595 # Split the substitutions into bite-sized pieces for seds with
9596 # small command number limits, like on Digital OSF/1 and HP-UX.
9597 ac_max_sed_lines=48
9598 ac_sed_frag=1 # Number of current file.
9599 ac_beg=1 # First line for current file.
9600 ac_end=$ac_max_sed_lines # Line after last line for current file.
9601 ac_more_lines=:
9602 ac_sed_cmds=
9603 while $ac_more_lines; do
9604 if test $ac_beg -gt 1; then
9605 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
9606 else
9607 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
9608 fi
9609 if test ! -s $tmp/subs.frag; then
9610 ac_more_lines=false
9611 else
9612 # The purpose of the label and of the branching condition is to
9613 # speed up the sed processing (if there are no `@' at all, there
9614 # is no need to browse any of the substitutions).
9615 # These are the two extra sed commands mentioned above.
9616 (echo ':t
9617 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
9618 if test -z "$ac_sed_cmds"; then
9619 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
9620 else
9621 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
9622 fi
9623 ac_sed_frag=`expr $ac_sed_frag + 1`
9624 ac_beg=$ac_end
9625 ac_end=`expr $ac_end + $ac_max_sed_lines`
9626 fi
9627 done
9628 if test -z "$ac_sed_cmds"; then
9629 ac_sed_cmds=cat
9630 fi
9631fi # test -n "$CONFIG_FILES"
9632
9633_ACEOF
9634cat >>$CONFIG_STATUS <<\_ACEOF
9635for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
9636 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9637 case $ac_file in
9638 - | *:- | *:-:* ) # input from stdin
9639 cat >$tmp/stdin
9640 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9641 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9642 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9643 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9644 * ) ac_file_in=$ac_file.in ;;
9645 esac
9646
9647 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
9648 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
9649$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9650 X"$ac_file" : 'X\(//\)[^/]' \| \
9651 X"$ac_file" : 'X\(//\)$' \| \
9652 X"$ac_file" : 'X\(/\)' \| \
9653 . : '\(.\)' 2>/dev/null ||
9654echo X"$ac_file" |
9655 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9656 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9657 /^X\(\/\/\)$/{ s//\1/; q; }
9658 /^X\(\/\).*/{ s//\1/; q; }
9659 s/.*/./; q'`
9660 { if $as_mkdir_p; then
9661 mkdir -p "$ac_dir"
9662 else
9663 as_dir="$ac_dir"
9664 as_dirs=
9665 while test ! -d "$as_dir"; do
9666 as_dirs="$as_dir $as_dirs"
9667 as_dir=`(dirname "$as_dir") 2>/dev/null ||
9668$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9669 X"$as_dir" : 'X\(//\)[^/]' \| \
9670 X"$as_dir" : 'X\(//\)$' \| \
9671 X"$as_dir" : 'X\(/\)' \| \
9672 . : '\(.\)' 2>/dev/null ||
9673echo X"$as_dir" |
9674 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9675 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9676 /^X\(\/\/\)$/{ s//\1/; q; }
9677 /^X\(\/\).*/{ s//\1/; q; }
9678 s/.*/./; q'`
9679 done
9680 test ! -n "$as_dirs" || mkdir $as_dirs
9681 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
9682echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
9683 { (exit 1); exit 1; }; }; }
9684
9685 ac_builddir=.
9686
9687if test "$ac_dir" != .; then
9688 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
9689 # A "../" for each directory in $ac_dir_suffix.
9690 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
9691else
9692 ac_dir_suffix= ac_top_builddir=
9693fi
9694
9695case $srcdir in
9696 .) # No --srcdir option. We are building in place.
9697 ac_srcdir=.
9698 if test -z "$ac_top_builddir"; then
9699 ac_top_srcdir=.
9700 else
9701 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
9702 fi ;;
9703 [\\/]* | ?:[\\/]* ) # Absolute path.
9704 ac_srcdir=$srcdir$ac_dir_suffix;
9705 ac_top_srcdir=$srcdir ;;
9706 *) # Relative path.
9707 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
9708 ac_top_srcdir=$ac_top_builddir$srcdir ;;
9709esac
9710
9711# Do not use `cd foo && pwd` to compute absolute paths, because
9712# the directories may not exist.
9713case `pwd` in
9714.) ac_abs_builddir="$ac_dir";;
9715*)
9716 case "$ac_dir" in
9717 .) ac_abs_builddir=`pwd`;;
9718 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
9719 *) ac_abs_builddir=`pwd`/"$ac_dir";;
9720 esac;;
9721esac
9722case $ac_abs_builddir in
9723.) ac_abs_top_builddir=${ac_top_builddir}.;;
9724*)
9725 case ${ac_top_builddir}. in
9726 .) ac_abs_top_builddir=$ac_abs_builddir;;
9727 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
9728 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
9729 esac;;
9730esac
9731case $ac_abs_builddir in
9732.) ac_abs_srcdir=$ac_srcdir;;
9733*)
9734 case $ac_srcdir in
9735 .) ac_abs_srcdir=$ac_abs_builddir;;
9736 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
9737 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
9738 esac;;
9739esac
9740case $ac_abs_builddir in
9741.) ac_abs_top_srcdir=$ac_top_srcdir;;
9742*)
9743 case $ac_top_srcdir in
9744 .) ac_abs_top_srcdir=$ac_abs_builddir;;
9745 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
9746 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
9747 esac;;
9748esac
9749
9750
9751 case $INSTALL in
9752 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
9753 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
9754 esac
9755
453310d8
RS
9756 if test x"$ac_file" != x-; then
9757 { echo "$as_me:$LINENO: creating $ac_file" >&5
9758echo "$as_me: creating $ac_file" >&6;}
9759 rm -f "$ac_file"
9760 fi
6de9cd9a
DN
9761 # Let's still pretend it is `configure' which instantiates (i.e., don't
9762 # use $as_me), people would be surprised to read:
9763 # /* config.h. Generated by config.status. */
9764 if test x"$ac_file" = x-; then
9765 configure_input=
9766 else
9767 configure_input="$ac_file. "
9768 fi
9769 configure_input=$configure_input"Generated from `echo $ac_file_in |
9770 sed 's,.*/,,'` by configure."
9771
9772 # First look for the input files in the build tree, otherwise in the
9773 # src tree.
9774 ac_file_inputs=`IFS=:
9775 for f in $ac_file_in; do
9776 case $f in
9777 -) echo $tmp/stdin ;;
9778 [\\/$]*)
9779 # Absolute (can't be DOS-style, as IFS=:)
9780 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9781echo "$as_me: error: cannot find input file: $f" >&2;}
9782 { (exit 1); exit 1; }; }
9783 echo "$f";;
9784 *) # Relative
9785 if test -f "$f"; then
9786 # Build tree
9787 echo "$f"
9788 elif test -f "$srcdir/$f"; then
9789 # Source tree
9790 echo "$srcdir/$f"
9791 else
9792 # /dev/null tree
9793 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9794echo "$as_me: error: cannot find input file: $f" >&2;}
9795 { (exit 1); exit 1; }; }
9796 fi;;
9797 esac
9798 done` || { (exit 1); exit 1; }
6de9cd9a
DN
9799_ACEOF
9800cat >>$CONFIG_STATUS <<_ACEOF
9801 sed "$ac_vpsub
9802$extrasub
9803_ACEOF
9804cat >>$CONFIG_STATUS <<\_ACEOF
9805:t
9806/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
9807s,@configure_input@,$configure_input,;t t
9808s,@srcdir@,$ac_srcdir,;t t
9809s,@abs_srcdir@,$ac_abs_srcdir,;t t
9810s,@top_srcdir@,$ac_top_srcdir,;t t
9811s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
9812s,@builddir@,$ac_builddir,;t t
9813s,@abs_builddir@,$ac_abs_builddir,;t t
9814s,@top_builddir@,$ac_top_builddir,;t t
9815s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
9816s,@INSTALL@,$ac_INSTALL,;t t
9817" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
9818 rm -f $tmp/stdin
9819 if test x"$ac_file" != x-; then
9820 mv $tmp/out $ac_file
9821 else
9822 cat $tmp/out
9823 rm -f $tmp/out
9824 fi
9825
9826done
9827_ACEOF
9828cat >>$CONFIG_STATUS <<\_ACEOF
9829
9830#
9831# CONFIG_HEADER section.
9832#
9833
9834# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
9835# NAME is the cpp macro being defined and VALUE is the value it is being given.
9836#
9837# ac_d sets the value in "#define NAME VALUE" lines.
9838ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
9839ac_dB='[ ].*$,\1#\2'
9840ac_dC=' '
9841ac_dD=',;t'
9842# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
9843ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
9844ac_uB='$,\1#\2define\3'
9845ac_uC=' '
9846ac_uD=',;t'
9847
9848for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
9849 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9850 case $ac_file in
9851 - | *:- | *:-:* ) # input from stdin
9852 cat >$tmp/stdin
9853 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9854 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9855 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9856 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9857 * ) ac_file_in=$ac_file.in ;;
9858 esac
9859
9860 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
9861echo "$as_me: creating $ac_file" >&6;}
9862
9863 # First look for the input files in the build tree, otherwise in the
9864 # src tree.
9865 ac_file_inputs=`IFS=:
9866 for f in $ac_file_in; do
9867 case $f in
9868 -) echo $tmp/stdin ;;
9869 [\\/$]*)
9870 # Absolute (can't be DOS-style, as IFS=:)
9871 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9872echo "$as_me: error: cannot find input file: $f" >&2;}
9873 { (exit 1); exit 1; }; }
9874 # Do quote $f, to prevent DOS paths from being IFS'd.
9875 echo "$f";;
9876 *) # Relative
9877 if test -f "$f"; then
9878 # Build tree
9879 echo "$f"
9880 elif test -f "$srcdir/$f"; then
9881 # Source tree
9882 echo "$srcdir/$f"
9883 else
9884 # /dev/null tree
9885 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9886echo "$as_me: error: cannot find input file: $f" >&2;}
9887 { (exit 1); exit 1; }; }
9888 fi;;
9889 esac
9890 done` || { (exit 1); exit 1; }
9891 # Remove the trailing spaces.
9892 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
9893
9894_ACEOF
9895
9896# Transform confdefs.h into two sed scripts, `conftest.defines' and
9897# `conftest.undefs', that substitutes the proper values into
9898# config.h.in to produce config.h. The first handles `#define'
9899# templates, and the second `#undef' templates.
9900# And first: Protect against being on the right side of a sed subst in
9901# config.status. Protect against being in an unquoted here document
9902# in config.status.
9903rm -f conftest.defines conftest.undefs
9904# Using a here document instead of a string reduces the quoting nightmare.
9905# Putting comments in sed scripts is not portable.
9906#
9907# `end' is used to avoid that the second main sed command (meant for
9908# 0-ary CPP macros) applies to n-ary macro definitions.
9909# See the Autoconf documentation for `clear'.
9910cat >confdef2sed.sed <<\_ACEOF
9911s/[\\&,]/\\&/g
9912s,[\\$`],\\&,g
9913t clear
9914: clear
9915s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
9916t end
9917s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
9918: end
9919_ACEOF
9920# If some macros were called several times there might be several times
9921# the same #defines, which is useless. Nevertheless, we may not want to
9922# sort them, since we want the *last* AC-DEFINE to be honored.
9923uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
9924sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
9925rm -f confdef2sed.sed
9926
9927# This sed command replaces #undef with comments. This is necessary, for
9928# example, in the case of _POSIX_SOURCE, which is predefined and required
9929# on some systems where configure will not decide to define it.
9930cat >>conftest.undefs <<\_ACEOF
9931s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
9932_ACEOF
9933
9934# Break up conftest.defines because some shells have a limit on the size
9935# of here documents, and old seds have small limits too (100 cmds).
9936echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
9937echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
9938echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
9939echo ' :' >>$CONFIG_STATUS
9940rm -f conftest.tail
9941while grep . conftest.defines >/dev/null
9942do
9943 # Write a limited-size here document to $tmp/defines.sed.
9944 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
9945 # Speed up: don't consider the non `#define' lines.
9946 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
9947 # Work around the forget-to-reset-the-flag bug.
9948 echo 't clr' >>$CONFIG_STATUS
9949 echo ': clr' >>$CONFIG_STATUS
9950 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
9951 echo 'CEOF
9952 sed -f $tmp/defines.sed $tmp/in >$tmp/out
9953 rm -f $tmp/in
9954 mv $tmp/out $tmp/in
9955' >>$CONFIG_STATUS
9956 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
9957 rm -f conftest.defines
9958 mv conftest.tail conftest.defines
9959done
9960rm -f conftest.defines
9961echo ' fi # grep' >>$CONFIG_STATUS
9962echo >>$CONFIG_STATUS
9963
9964# Break up conftest.undefs because some shells have a limit on the size
9965# of here documents, and old seds have small limits too (100 cmds).
9966echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
9967rm -f conftest.tail
9968while grep . conftest.undefs >/dev/null
9969do
9970 # Write a limited-size here document to $tmp/undefs.sed.
9971 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
9972 # Speed up: don't consider the non `#undef'
9973 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
9974 # Work around the forget-to-reset-the-flag bug.
9975 echo 't clr' >>$CONFIG_STATUS
9976 echo ': clr' >>$CONFIG_STATUS
9977 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
9978 echo 'CEOF
9979 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
9980 rm -f $tmp/in
9981 mv $tmp/out $tmp/in
9982' >>$CONFIG_STATUS
9983 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
9984 rm -f conftest.undefs
9985 mv conftest.tail conftest.undefs
9986done
9987rm -f conftest.undefs
9988
9989cat >>$CONFIG_STATUS <<\_ACEOF
9990 # Let's still pretend it is `configure' which instantiates (i.e., don't
9991 # use $as_me), people would be surprised to read:
9992 # /* config.h. Generated by config.status. */
9993 if test x"$ac_file" = x-; then
9994 echo "/* Generated by configure. */" >$tmp/config.h
9995 else
9996 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
9997 fi
9998 cat $tmp/in >>$tmp/config.h
9999 rm -f $tmp/in
10000 if test x"$ac_file" != x-; then
10001 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
10002 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
10003echo "$as_me: $ac_file is unchanged" >&6;}
10004 else
10005 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
10006$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10007 X"$ac_file" : 'X\(//\)[^/]' \| \
10008 X"$ac_file" : 'X\(//\)$' \| \
10009 X"$ac_file" : 'X\(/\)' \| \
10010 . : '\(.\)' 2>/dev/null ||
10011echo X"$ac_file" |
10012 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10013 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10014 /^X\(\/\/\)$/{ s//\1/; q; }
10015 /^X\(\/\).*/{ s//\1/; q; }
10016 s/.*/./; q'`
10017 { if $as_mkdir_p; then
10018 mkdir -p "$ac_dir"
10019 else
10020 as_dir="$ac_dir"
10021 as_dirs=
10022 while test ! -d "$as_dir"; do
10023 as_dirs="$as_dir $as_dirs"
10024 as_dir=`(dirname "$as_dir") 2>/dev/null ||
10025$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10026 X"$as_dir" : 'X\(//\)[^/]' \| \
10027 X"$as_dir" : 'X\(//\)$' \| \
10028 X"$as_dir" : 'X\(/\)' \| \
10029 . : '\(.\)' 2>/dev/null ||
10030echo X"$as_dir" |
10031 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10032 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10033 /^X\(\/\/\)$/{ s//\1/; q; }
10034 /^X\(\/\).*/{ s//\1/; q; }
10035 s/.*/./; q'`
10036 done
10037 test ! -n "$as_dirs" || mkdir $as_dirs
10038 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
10039echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
10040 { (exit 1); exit 1; }; }; }
10041
10042 rm -f $ac_file
10043 mv $tmp/config.h $ac_file
10044 fi
10045 else
10046 cat $tmp/config.h
10047 rm -f $tmp/config.h
10048 fi
10049# Compute $ac_file's index in $config_headers.
10050_am_stamp_count=1
10051for _am_header in $config_headers :; do
10052 case $_am_header in
10053 $ac_file | $ac_file:* )
10054 break ;;
10055 * )
10056 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
10057 esac
10058done
10059echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
10060$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10061 X$ac_file : 'X\(//\)[^/]' \| \
10062 X$ac_file : 'X\(//\)$' \| \
10063 X$ac_file : 'X\(/\)' \| \
10064 . : '\(.\)' 2>/dev/null ||
10065echo X$ac_file |
10066 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10067 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10068 /^X\(\/\/\)$/{ s//\1/; q; }
10069 /^X\(\/\).*/{ s//\1/; q; }
10070 s/.*/./; q'`/stamp-h$_am_stamp_count
10071done
10072_ACEOF
10073cat >>$CONFIG_STATUS <<\_ACEOF
10074
10075#
10076# CONFIG_COMMANDS section.
10077#
10078for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
10079 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
10080 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
10081 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
10082$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10083 X"$ac_dest" : 'X\(//\)[^/]' \| \
10084 X"$ac_dest" : 'X\(//\)$' \| \
10085 X"$ac_dest" : 'X\(/\)' \| \
10086 . : '\(.\)' 2>/dev/null ||
10087echo X"$ac_dest" |
10088 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10089 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10090 /^X\(\/\/\)$/{ s//\1/; q; }
10091 /^X\(\/\).*/{ s//\1/; q; }
10092 s/.*/./; q'`
10093 { if $as_mkdir_p; then
10094 mkdir -p "$ac_dir"
10095 else
10096 as_dir="$ac_dir"
10097 as_dirs=
10098 while test ! -d "$as_dir"; do
10099 as_dirs="$as_dir $as_dirs"
10100 as_dir=`(dirname "$as_dir") 2>/dev/null ||
10101$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10102 X"$as_dir" : 'X\(//\)[^/]' \| \
10103 X"$as_dir" : 'X\(//\)$' \| \
10104 X"$as_dir" : 'X\(/\)' \| \
10105 . : '\(.\)' 2>/dev/null ||
10106echo X"$as_dir" |
10107 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10108 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10109 /^X\(\/\/\)$/{ s//\1/; q; }
10110 /^X\(\/\).*/{ s//\1/; q; }
10111 s/.*/./; q'`
10112 done
10113 test ! -n "$as_dirs" || mkdir $as_dirs
10114 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
10115echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
10116 { (exit 1); exit 1; }; }; }
10117
10118 ac_builddir=.
10119
10120if test "$ac_dir" != .; then
10121 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
10122 # A "../" for each directory in $ac_dir_suffix.
10123 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
10124else
10125 ac_dir_suffix= ac_top_builddir=
10126fi
10127
10128case $srcdir in
10129 .) # No --srcdir option. We are building in place.
10130 ac_srcdir=.
10131 if test -z "$ac_top_builddir"; then
10132 ac_top_srcdir=.
10133 else
10134 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
10135 fi ;;
10136 [\\/]* | ?:[\\/]* ) # Absolute path.
10137 ac_srcdir=$srcdir$ac_dir_suffix;
10138 ac_top_srcdir=$srcdir ;;
10139 *) # Relative path.
10140 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
10141 ac_top_srcdir=$ac_top_builddir$srcdir ;;
10142esac
10143
10144# Do not use `cd foo && pwd` to compute absolute paths, because
10145# the directories may not exist.
10146case `pwd` in
10147.) ac_abs_builddir="$ac_dir";;
10148*)
10149 case "$ac_dir" in
10150 .) ac_abs_builddir=`pwd`;;
10151 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
10152 *) ac_abs_builddir=`pwd`/"$ac_dir";;
10153 esac;;
10154esac
10155case $ac_abs_builddir in
10156.) ac_abs_top_builddir=${ac_top_builddir}.;;
10157*)
10158 case ${ac_top_builddir}. in
10159 .) ac_abs_top_builddir=$ac_abs_builddir;;
10160 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
10161 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
10162 esac;;
10163esac
10164case $ac_abs_builddir in
10165.) ac_abs_srcdir=$ac_srcdir;;
10166*)
10167 case $ac_srcdir in
10168 .) ac_abs_srcdir=$ac_abs_builddir;;
10169 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
10170 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
10171 esac;;
10172esac
10173case $ac_abs_builddir in
10174.) ac_abs_top_srcdir=$ac_top_srcdir;;
10175*)
10176 case $ac_top_srcdir in
10177 .) ac_abs_top_srcdir=$ac_abs_builddir;;
10178 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
10179 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
10180 esac;;
10181esac
10182
10183
10184 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
10185echo "$as_me: executing $ac_dest commands" >&6;}
10186 case $ac_dest in
96b8a615
AJ
10187 default-1 )
10188# Only add multilib support code if we just rebuilt the top-level
10189# Makefile.
10190case " $CONFIG_FILES " in
10191 *" Makefile "*)
10192 ac_file=Makefile . ${multi_basedir}/config-ml.in
10193 ;;
10194esac ;;
6de9cd9a
DN
10195 esac
10196done
10197_ACEOF
10198
10199cat >>$CONFIG_STATUS <<\_ACEOF
10200
10201{ (exit 0); exit 0; }
10202_ACEOF
10203chmod +x $CONFIG_STATUS
10204ac_clean_files=$ac_clean_files_save
10205
10206
10207# configure is writing to config.log, and then calls config.status.
10208# config.status does its own redirection, appending to config.log.
10209# Unfortunately, on DOS this fails, as config.log is still kept open
10210# by configure, so config.status won't be able to write to it; its
10211# output is simply discarded. So we exec the FD to /dev/null,
10212# effectively closing config.log, so it can be properly (re)opened and
10213# appended to by config.status. When coming back to configure, we
10214# need to make the FD available again.
10215if test "$no_create" != yes; then
10216 ac_cs_success=:
10217 ac_config_status_args=
10218 test "$silent" = yes &&
10219 ac_config_status_args="$ac_config_status_args --quiet"
10220 exec 5>/dev/null
10221 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
10222 exec 5>>config.log
10223 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
10224 # would make configure fail if this is the last instruction.
10225 $ac_cs_success || { (exit 1); exit 1; }
10226fi
10227
This page took 0.998643 seconds and 5 git commands to generate.