]> gcc.gnu.org Git - gcc.git/blame - libgfortran/configure
configure.ac: Check for ftruncate and chsize.
[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
e87045f3 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 install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT multi_basedir 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 FC FCFLAGS LDFLAGS ac_ct_FC extra_ldflags_libgfortran 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
c7a35fe9
AS
752ac_env_FC_set=${FC+set}
753ac_env_FC_value=$FC
754ac_cv_env_FC_set=${FC+set}
755ac_cv_env_FC_value=$FC
756ac_env_FCFLAGS_set=${FCFLAGS+set}
757ac_env_FCFLAGS_value=$FCFLAGS
758ac_cv_env_FCFLAGS_set=${FCFLAGS+set}
759ac_cv_env_FCFLAGS_value=$FCFLAGS
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>
c7a35fe9
AS
878 FC Fortran compiler command
879 FCFLAGS Fortran compiler flags
6de9cd9a
DN
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
1fb2002d 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.
d49ec2d1 1491am__api_version="1.9"
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
d49ec2d1
KC
1643 # We used to keeping the `.' as first argument, in order to
1644 # allow $(mkdir_p) to be used without argument. As in
6de9cd9a 1645 # $(mkdir_p) $(somedir)
d49ec2d1
KC
1646 # where $(somedir) is conditionally defined. However this is wrong
1647 # for two reasons:
1648 # 1. if the package is installed by a user who cannot write `.'
1649 # make install will fail,
1650 # 2. the above comment should most certainly read
1651 # $(mkdir_p) $(DESTDIR)$(somedir)
1652 # so it does not work when $(somedir) is undefined and
1653 # $(DESTDIR) is not.
1654 # To support the latter case, we have to write
1655 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1656 # so the `.' trick is pointless.
1657 mkdir_p='mkdir -p --'
6de9cd9a
DN
1658else
1659 # On NextStep and OpenStep, the `mkdir' command does not
1660 # recognize any option. It will interpret all options as
1661 # directories to create, and then abort because `.' already
1662 # exists.
c9e66eda 1663 for d in ./-p ./--version;
6de9cd9a
DN
1664 do
1665 test -d $d && rmdir $d
1666 done
1667 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1668 if test -f "$ac_aux_dir/mkinstalldirs"; then
1669 mkdir_p='$(mkinstalldirs)'
1670 else
1671 mkdir_p='$(install_sh) -d'
1672 fi
1673fi
1674
1675for ac_prog in gawk mawk nawk awk
1676do
1677 # Extract the first word of "$ac_prog", so it can be a program name with args.
1678set dummy $ac_prog; ac_word=$2
1679echo "$as_me:$LINENO: checking for $ac_word" >&5
1680echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1681if test "${ac_cv_prog_AWK+set}" = set; then
1682 echo $ECHO_N "(cached) $ECHO_C" >&6
1683else
1684 if test -n "$AWK"; then
1685 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1686else
1687as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1688for as_dir in $PATH
1689do
1690 IFS=$as_save_IFS
1691 test -z "$as_dir" && as_dir=.
1692 for ac_exec_ext in '' $ac_executable_extensions; do
1693 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1694 ac_cv_prog_AWK="$ac_prog"
1695 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1696 break 2
1697 fi
1698done
1699done
1700
1701fi
1702fi
1703AWK=$ac_cv_prog_AWK
1704if test -n "$AWK"; then
1705 echo "$as_me:$LINENO: result: $AWK" >&5
1706echo "${ECHO_T}$AWK" >&6
1707else
1708 echo "$as_me:$LINENO: result: no" >&5
1709echo "${ECHO_T}no" >&6
1710fi
1711
1712 test -n "$AWK" && break
1713done
1714
1715echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1716echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1717set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1718if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1719 echo $ECHO_N "(cached) $ECHO_C" >&6
1720else
1721 cat >conftest.make <<\_ACEOF
1722all:
1723 @echo 'ac_maketemp="$(MAKE)"'
1724_ACEOF
1725# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1726eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1727if test -n "$ac_maketemp"; then
1728 eval ac_cv_prog_make_${ac_make}_set=yes
1729else
1730 eval ac_cv_prog_make_${ac_make}_set=no
1731fi
1732rm -f conftest.make
1733fi
1734if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1735 echo "$as_me:$LINENO: result: yes" >&5
1736echo "${ECHO_T}yes" >&6
1737 SET_MAKE=
1738else
1739 echo "$as_me:$LINENO: result: no" >&5
1740echo "${ECHO_T}no" >&6
1741 SET_MAKE="MAKE=${MAKE-make}"
1742fi
1743
1744rm -rf .tst 2>/dev/null
1745mkdir .tst 2>/dev/null
1746if test -d .tst; then
1747 am__leading_dot=.
1748else
1749 am__leading_dot=_
1750fi
1751rmdir .tst 2>/dev/null
1752
1753# test to see if srcdir already configured
1754if test "`cd $srcdir && pwd`" != "`pwd`" &&
1755 test -f $srcdir/config.status; then
1756 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1757echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1758 { (exit 1); exit 1; }; }
1759fi
1760
1761# test whether we have cygpath
1762if test -z "$CYGPATH_W"; then
1763 if (cygpath --version) >/dev/null 2>/dev/null; then
1764 CYGPATH_W='cygpath -w'
1765 else
1766 CYGPATH_W=echo
1767 fi
1768fi
1769
1770
1771# Define the identity of the package.
1772 PACKAGE='libgfortran'
1773 VERSION='0.2'
1774
1775
6de9cd9a
DN
1776# Some tools Automake needs.
1777
1778ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1779
1780
1781AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1782
1783
1784AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1785
1786
1787AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1788
1789
1790MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1791
6de9cd9a
DN
1792install_sh=${install_sh-"$am_aux_dir/install-sh"}
1793
1794# Installed binaries are usually stripped using `strip' when the user
1795# run `make install-strip'. However `strip' might not be the right
1796# tool to use in cross-compilation environments, therefore Automake
1797# will honor the `STRIP' environment variable to overrule this program.
1798if test "$cross_compiling" != no; then
1799 if test -n "$ac_tool_prefix"; then
1800 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1801set dummy ${ac_tool_prefix}strip; ac_word=$2
1802echo "$as_me:$LINENO: checking for $ac_word" >&5
1803echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1804if test "${ac_cv_prog_STRIP+set}" = set; then
1805 echo $ECHO_N "(cached) $ECHO_C" >&6
1806else
1807 if test -n "$STRIP"; then
1808 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1809else
1810as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1811for as_dir in $PATH
1812do
1813 IFS=$as_save_IFS
1814 test -z "$as_dir" && as_dir=.
1815 for ac_exec_ext in '' $ac_executable_extensions; do
1816 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1817 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1818 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1819 break 2
1820 fi
1821done
1822done
1823
1824fi
1825fi
1826STRIP=$ac_cv_prog_STRIP
1827if test -n "$STRIP"; then
1828 echo "$as_me:$LINENO: result: $STRIP" >&5
1829echo "${ECHO_T}$STRIP" >&6
1830else
1831 echo "$as_me:$LINENO: result: no" >&5
1832echo "${ECHO_T}no" >&6
1833fi
1834
1835fi
1836if test -z "$ac_cv_prog_STRIP"; then
1837 ac_ct_STRIP=$STRIP
1838 # Extract the first word of "strip", so it can be a program name with args.
1839set dummy strip; ac_word=$2
1840echo "$as_me:$LINENO: checking for $ac_word" >&5
1841echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1842if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1843 echo $ECHO_N "(cached) $ECHO_C" >&6
1844else
1845 if test -n "$ac_ct_STRIP"; then
1846 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1847else
1848as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1849for as_dir in $PATH
1850do
1851 IFS=$as_save_IFS
1852 test -z "$as_dir" && as_dir=.
1853 for ac_exec_ext in '' $ac_executable_extensions; do
1854 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1855 ac_cv_prog_ac_ct_STRIP="strip"
1856 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1857 break 2
1858 fi
1859done
1860done
1861
1862 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1863fi
1864fi
1865ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1866if test -n "$ac_ct_STRIP"; then
1867 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1868echo "${ECHO_T}$ac_ct_STRIP" >&6
1869else
1870 echo "$as_me:$LINENO: result: no" >&5
1871echo "${ECHO_T}no" >&6
1872fi
1873
1874 STRIP=$ac_ct_STRIP
1875else
1876 STRIP="$ac_cv_prog_STRIP"
1877fi
1878
1879fi
1880INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1881
1882# We need awk for the "check" target. The system "awk" is bad on
1883# some platforms.
d49ec2d1
KC
1884# Always define AMTAR for backward compatibility.
1885
1886AMTAR=${AMTAR-"${am_missing_run}tar"}
1887
1888am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
1889
1890
6de9cd9a
DN
1891
1892
1893
6de9cd9a
DN
1894
1895echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
1896echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
1897 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1898if test "${enable_maintainer_mode+set}" = set; then
1899 enableval="$enable_maintainer_mode"
1900 USE_MAINTAINER_MODE=$enableval
1901else
1902 USE_MAINTAINER_MODE=no
1903fi;
1904 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
1905echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
1906
1907
1908if test $USE_MAINTAINER_MODE = yes; then
1909 MAINTAINER_MODE_TRUE=
1910 MAINTAINER_MODE_FALSE='#'
1911else
1912 MAINTAINER_MODE_TRUE='#'
1913 MAINTAINER_MODE_FALSE=
1914fi
1915
1916 MAINT=$MAINTAINER_MODE_TRUE
1917
1918
96b8a615
AJ
1919# Default to --enable-multilib
1920# Check whether --enable-multilib or --disable-multilib was given.
1921if test "${enable_multilib+set}" = set; then
1922 enableval="$enable_multilib"
1923 case "$enableval" in
1924 yes) multilib=yes ;;
1925 no) multilib=no ;;
1926 *) { { echo "$as_me:$LINENO: error: bad value $enableval for multilib option" >&5
1927echo "$as_me: error: bad value $enableval for multilib option" >&2;}
1928 { (exit 1); exit 1; }; } ;;
1929 esac
1930else
1931 multilib=yes
1932fi;
1933
1934# We may get other options which we leave undocumented:
1935# --with-target-subdir, --with-multisrctop, --with-multisubdir
1936# See config-ml.in if you want the gory details.
1937
1938if test "$srcdir" = "."; then
1939 if test "$with_target_subdir" != "."; then
1940 multi_basedir="$srcdir/$with_multisrctop../.."
1941 else
1942 multi_basedir="$srcdir/$with_multisrctop.."
1943 fi
1944else
1945 multi_basedir="$srcdir/.."
1946fi
1947
1948
1949 ac_config_commands="$ac_config_commands default-1"
1950
1951
1952# Handy for debugging:
1953#AC_MSG_NOTICE($build / $host / $target / $host_alias / $target_alias); sleep 5
1954
1955# Are we being configured with some form of cross compiler?
1956# NB: We don't actually need to know this just now, but when, say, a test
1957# suite is included, we'll have to know.
1958if test "$build" != "$host"; then
1959 LIBGFOR_IS_NATIVE=false
f77b6ca3 1960 GCC_NO_EXECUTABLES
96b8a615
AJ
1961else
1962 LIBGFOR_IS_NATIVE=true
1963fi
1964
96b8a615
AJ
1965# Calculate toolexeclibdir
1966# Also toolexecdir, though it's only used in toolexeclibdir
1967case ${version_specific_libs} in
1968 yes)
1969 # Need the gcc compiler version to know where to install libraries
1970 # and header files if --enable-version-specific-runtime-libs option
1971 # is selected.
1972 toolexecdir='$(libdir)/gcc/$(target_alias)'
140e859c 1973 toolexeclibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
96b8a615
AJ
1974 ;;
1975 no)
1976 if test -n "$with_cross_host" &&
1977 test x"$with_cross_host" != x"no"; then
1978 # Install a library built with a cross compiler in tooldir, not libdir.
1979 toolexecdir='$(exec_prefix)/$(target_alias)'
1980 toolexeclibdir='$(toolexecdir)/lib'
1981 else
1982 toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
1983 toolexeclibdir='$(libdir)'
1984 fi
1985 multi_os_directory=`$CC -print-multi-os-directory`
1986 case $multi_os_directory in
1987 .) ;; # Avoid trailing /.
1988 *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
1989 esac
1990 ;;
1991esac
1992
1993
6de9cd9a 1994
96b8a615
AJ
1995# Check the compiler.
1996# The same as in boehm-gc and libstdc++. Have to borrow it from there.
1997# We must force CC to /not/ be precious variables; otherwise
1998# the wrong, non-multilib-adjusted value will be used in multilibs.
1999# As a side effect, we have to subst CFLAGS ourselves.
6de9cd9a
DN
2000
2001
2002
6de9cd9a
DN
2003ac_ext=c
2004ac_cpp='$CPP $CPPFLAGS'
2005ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2006ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2007ac_compiler_gnu=$ac_cv_c_compiler_gnu
2008if test -n "$ac_tool_prefix"; then
2009 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2010set dummy ${ac_tool_prefix}gcc; ac_word=$2
2011echo "$as_me:$LINENO: checking for $ac_word" >&5
2012echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2013if test "${ac_cv_prog_CC+set}" = set; then
2014 echo $ECHO_N "(cached) $ECHO_C" >&6
2015else
2016 if test -n "$CC"; then
2017 ac_cv_prog_CC="$CC" # Let the user override the test.
2018else
2019as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2020for as_dir in $PATH
2021do
2022 IFS=$as_save_IFS
2023 test -z "$as_dir" && as_dir=.
2024 for ac_exec_ext in '' $ac_executable_extensions; do
2025 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2026 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2027 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2028 break 2
2029 fi
2030done
2031done
2032
2033fi
2034fi
2035CC=$ac_cv_prog_CC
2036if test -n "$CC"; then
2037 echo "$as_me:$LINENO: result: $CC" >&5
2038echo "${ECHO_T}$CC" >&6
2039else
2040 echo "$as_me:$LINENO: result: no" >&5
2041echo "${ECHO_T}no" >&6
2042fi
2043
2044fi
2045if test -z "$ac_cv_prog_CC"; then
2046 ac_ct_CC=$CC
2047 # Extract the first word of "gcc", so it can be a program name with args.
2048set dummy gcc; ac_word=$2
2049echo "$as_me:$LINENO: checking for $ac_word" >&5
2050echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2051if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2052 echo $ECHO_N "(cached) $ECHO_C" >&6
2053else
2054 if test -n "$ac_ct_CC"; then
2055 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2056else
2057as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2058for as_dir in $PATH
2059do
2060 IFS=$as_save_IFS
2061 test -z "$as_dir" && as_dir=.
2062 for ac_exec_ext in '' $ac_executable_extensions; do
2063 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2064 ac_cv_prog_ac_ct_CC="gcc"
2065 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2066 break 2
2067 fi
2068done
2069done
2070
2071fi
2072fi
2073ac_ct_CC=$ac_cv_prog_ac_ct_CC
2074if test -n "$ac_ct_CC"; then
2075 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2076echo "${ECHO_T}$ac_ct_CC" >&6
2077else
2078 echo "$as_me:$LINENO: result: no" >&5
2079echo "${ECHO_T}no" >&6
2080fi
2081
2082 CC=$ac_ct_CC
2083else
2084 CC="$ac_cv_prog_CC"
2085fi
2086
2087if test -z "$CC"; then
2088 if test -n "$ac_tool_prefix"; then
2089 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2090set dummy ${ac_tool_prefix}cc; ac_word=$2
2091echo "$as_me:$LINENO: checking for $ac_word" >&5
2092echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2093if test "${ac_cv_prog_CC+set}" = set; then
2094 echo $ECHO_N "(cached) $ECHO_C" >&6
2095else
2096 if test -n "$CC"; then
2097 ac_cv_prog_CC="$CC" # Let the user override the test.
2098else
2099as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2100for as_dir in $PATH
2101do
2102 IFS=$as_save_IFS
2103 test -z "$as_dir" && as_dir=.
2104 for ac_exec_ext in '' $ac_executable_extensions; do
2105 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2106 ac_cv_prog_CC="${ac_tool_prefix}cc"
2107 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2108 break 2
2109 fi
2110done
2111done
2112
2113fi
2114fi
2115CC=$ac_cv_prog_CC
2116if test -n "$CC"; then
2117 echo "$as_me:$LINENO: result: $CC" >&5
2118echo "${ECHO_T}$CC" >&6
2119else
2120 echo "$as_me:$LINENO: result: no" >&5
2121echo "${ECHO_T}no" >&6
2122fi
2123
2124fi
2125if test -z "$ac_cv_prog_CC"; then
2126 ac_ct_CC=$CC
2127 # Extract the first word of "cc", so it can be a program name with args.
2128set dummy cc; ac_word=$2
2129echo "$as_me:$LINENO: checking for $ac_word" >&5
2130echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2131if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2132 echo $ECHO_N "(cached) $ECHO_C" >&6
2133else
2134 if test -n "$ac_ct_CC"; then
2135 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2136else
2137as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2138for as_dir in $PATH
2139do
2140 IFS=$as_save_IFS
2141 test -z "$as_dir" && as_dir=.
2142 for ac_exec_ext in '' $ac_executable_extensions; do
2143 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2144 ac_cv_prog_ac_ct_CC="cc"
2145 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2146 break 2
2147 fi
2148done
2149done
2150
2151fi
2152fi
2153ac_ct_CC=$ac_cv_prog_ac_ct_CC
2154if test -n "$ac_ct_CC"; then
2155 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2156echo "${ECHO_T}$ac_ct_CC" >&6
2157else
2158 echo "$as_me:$LINENO: result: no" >&5
2159echo "${ECHO_T}no" >&6
2160fi
2161
2162 CC=$ac_ct_CC
2163else
2164 CC="$ac_cv_prog_CC"
2165fi
2166
2167fi
2168if test -z "$CC"; then
2169 # Extract the first word of "cc", so it can be a program name with args.
2170set dummy cc; ac_word=$2
2171echo "$as_me:$LINENO: checking for $ac_word" >&5
2172echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2173if test "${ac_cv_prog_CC+set}" = set; then
2174 echo $ECHO_N "(cached) $ECHO_C" >&6
2175else
2176 if test -n "$CC"; then
2177 ac_cv_prog_CC="$CC" # Let the user override the test.
2178else
2179 ac_prog_rejected=no
2180as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2181for as_dir in $PATH
2182do
2183 IFS=$as_save_IFS
2184 test -z "$as_dir" && as_dir=.
2185 for ac_exec_ext in '' $ac_executable_extensions; do
2186 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2187 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2188 ac_prog_rejected=yes
2189 continue
2190 fi
2191 ac_cv_prog_CC="cc"
2192 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2193 break 2
2194 fi
2195done
2196done
2197
2198if test $ac_prog_rejected = yes; then
2199 # We found a bogon in the path, so make sure we never use it.
2200 set dummy $ac_cv_prog_CC
2201 shift
2202 if test $# != 0; then
2203 # We chose a different compiler from the bogus one.
2204 # However, it has the same basename, so the bogon will be chosen
2205 # first if we set CC to just the basename; use the full file name.
2206 shift
2207 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2208 fi
2209fi
2210fi
2211fi
2212CC=$ac_cv_prog_CC
2213if test -n "$CC"; then
2214 echo "$as_me:$LINENO: result: $CC" >&5
2215echo "${ECHO_T}$CC" >&6
2216else
2217 echo "$as_me:$LINENO: result: no" >&5
2218echo "${ECHO_T}no" >&6
2219fi
2220
2221fi
2222if test -z "$CC"; then
2223 if test -n "$ac_tool_prefix"; then
2224 for ac_prog in cl
2225 do
2226 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2227set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2228echo "$as_me:$LINENO: checking for $ac_word" >&5
2229echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2230if test "${ac_cv_prog_CC+set}" = set; then
2231 echo $ECHO_N "(cached) $ECHO_C" >&6
2232else
2233 if test -n "$CC"; then
2234 ac_cv_prog_CC="$CC" # Let the user override the test.
2235else
2236as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2237for as_dir in $PATH
2238do
2239 IFS=$as_save_IFS
2240 test -z "$as_dir" && as_dir=.
2241 for ac_exec_ext in '' $ac_executable_extensions; do
2242 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2243 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2244 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2245 break 2
2246 fi
2247done
2248done
2249
2250fi
2251fi
2252CC=$ac_cv_prog_CC
2253if test -n "$CC"; then
2254 echo "$as_me:$LINENO: result: $CC" >&5
2255echo "${ECHO_T}$CC" >&6
2256else
2257 echo "$as_me:$LINENO: result: no" >&5
2258echo "${ECHO_T}no" >&6
2259fi
2260
2261 test -n "$CC" && break
2262 done
2263fi
2264if test -z "$CC"; then
2265 ac_ct_CC=$CC
2266 for ac_prog in cl
2267do
2268 # Extract the first word of "$ac_prog", so it can be a program name with args.
2269set dummy $ac_prog; ac_word=$2
2270echo "$as_me:$LINENO: checking for $ac_word" >&5
2271echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2272if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2273 echo $ECHO_N "(cached) $ECHO_C" >&6
2274else
2275 if test -n "$ac_ct_CC"; then
2276 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2277else
2278as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2279for as_dir in $PATH
2280do
2281 IFS=$as_save_IFS
2282 test -z "$as_dir" && as_dir=.
2283 for ac_exec_ext in '' $ac_executable_extensions; do
2284 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2285 ac_cv_prog_ac_ct_CC="$ac_prog"
2286 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2287 break 2
2288 fi
2289done
2290done
2291
2292fi
2293fi
2294ac_ct_CC=$ac_cv_prog_ac_ct_CC
2295if test -n "$ac_ct_CC"; then
2296 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2297echo "${ECHO_T}$ac_ct_CC" >&6
2298else
2299 echo "$as_me:$LINENO: result: no" >&5
2300echo "${ECHO_T}no" >&6
2301fi
2302
2303 test -n "$ac_ct_CC" && break
2304done
2305
2306 CC=$ac_ct_CC
2307fi
2308
2309fi
2310
2311
2312test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2313See \`config.log' for more details." >&5
2314echo "$as_me: error: no acceptable C compiler found in \$PATH
2315See \`config.log' for more details." >&2;}
2316 { (exit 1); exit 1; }; }
2317
2318# Provide some information about the compiler.
2319echo "$as_me:$LINENO:" \
2320 "checking for C compiler version" >&5
2321ac_compiler=`set X $ac_compile; echo $2`
2322{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2323 (eval $ac_compiler --version </dev/null >&5) 2>&5
2324 ac_status=$?
2325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2326 (exit $ac_status); }
2327{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2328 (eval $ac_compiler -v </dev/null >&5) 2>&5
2329 ac_status=$?
2330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2331 (exit $ac_status); }
2332{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2333 (eval $ac_compiler -V </dev/null >&5) 2>&5
2334 ac_status=$?
2335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2336 (exit $ac_status); }
2337
2338cat >conftest.$ac_ext <<_ACEOF
2339/* confdefs.h. */
2340_ACEOF
2341cat confdefs.h >>conftest.$ac_ext
2342cat >>conftest.$ac_ext <<_ACEOF
2343/* end confdefs.h. */
2344
2345int
2346main ()
2347{
2348
2349 ;
2350 return 0;
2351}
2352_ACEOF
2353ac_clean_files_save=$ac_clean_files
2354ac_clean_files="$ac_clean_files a.out a.exe b.out"
2355# Try to create an executable without -o first, disregard a.out.
2356# It will help us diagnose broken compilers, and finding out an intuition
2357# of exeext.
2358echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2359echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2360ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2361if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2362 (eval $ac_link_default) 2>&5
2363 ac_status=$?
2364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2365 (exit $ac_status); }; then
2366 # Find the output, starting from the most likely. This scheme is
2367# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2368# resort.
2369
2370# Be careful to initialize this variable, since it used to be cached.
2371# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2372ac_cv_exeext=
2373# b.out is created by i960 compilers.
2374for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2375do
2376 test -f "$ac_file" || continue
2377 case $ac_file in
2378 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2379 ;;
2380 conftest.$ac_ext )
2381 # This is the source file.
2382 ;;
2383 [ab].out )
2384 # We found the default executable, but exeext='' is most
2385 # certainly right.
2386 break;;
2387 *.* )
2388 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2389 # FIXME: I believe we export ac_cv_exeext for Libtool,
2390 # but it would be cool to find out if it's true. Does anybody
2391 # maintain Libtool? --akim.
2392 export ac_cv_exeext
2393 break;;
2394 * )
2395 break;;
2396 esac
2397done
2398else
2399 echo "$as_me: failed program was:" >&5
2400sed 's/^/| /' conftest.$ac_ext >&5
2401
2402{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2403See \`config.log' for more details." >&5
2404echo "$as_me: error: C compiler cannot create executables
2405See \`config.log' for more details." >&2;}
2406 { (exit 77); exit 77; }; }
2407fi
2408
2409ac_exeext=$ac_cv_exeext
2410echo "$as_me:$LINENO: result: $ac_file" >&5
2411echo "${ECHO_T}$ac_file" >&6
2412
2413# Check the compiler produces executables we can run. If not, either
2414# the compiler is broken, or we cross compile.
2415echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2416echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2417# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2418# If not cross compiling, check that we can run a simple program.
2419if test "$cross_compiling" != yes; then
2420 if { ac_try='./$ac_file'
2421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2422 (eval $ac_try) 2>&5
2423 ac_status=$?
2424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2425 (exit $ac_status); }; }; then
2426 cross_compiling=no
2427 else
2428 if test "$cross_compiling" = maybe; then
2429 cross_compiling=yes
2430 else
2431 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2432If you meant to cross compile, use \`--host'.
2433See \`config.log' for more details." >&5
2434echo "$as_me: error: cannot run C compiled programs.
2435If you meant to cross compile, use \`--host'.
2436See \`config.log' for more details." >&2;}
2437 { (exit 1); exit 1; }; }
2438 fi
2439 fi
2440fi
2441echo "$as_me:$LINENO: result: yes" >&5
2442echo "${ECHO_T}yes" >&6
2443
2444rm -f a.out a.exe conftest$ac_cv_exeext b.out
2445ac_clean_files=$ac_clean_files_save
2446# Check the compiler produces executables we can run. If not, either
2447# the compiler is broken, or we cross compile.
2448echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2449echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2450echo "$as_me:$LINENO: result: $cross_compiling" >&5
2451echo "${ECHO_T}$cross_compiling" >&6
2452
2453echo "$as_me:$LINENO: checking for suffix of executables" >&5
2454echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2455if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2456 (eval $ac_link) 2>&5
2457 ac_status=$?
2458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2459 (exit $ac_status); }; then
2460 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2461# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2462# work properly (i.e., refer to `conftest.exe'), while it won't with
2463# `rm'.
2464for ac_file in conftest.exe conftest conftest.*; do
2465 test -f "$ac_file" || continue
2466 case $ac_file in
2467 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2468 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2469 export ac_cv_exeext
2470 break;;
2471 * ) break;;
2472 esac
2473done
2474else
2475 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2476See \`config.log' for more details." >&5
2477echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2478See \`config.log' for more details." >&2;}
2479 { (exit 1); exit 1; }; }
2480fi
2481
2482rm -f conftest$ac_cv_exeext
2483echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2484echo "${ECHO_T}$ac_cv_exeext" >&6
2485
2486rm -f conftest.$ac_ext
2487EXEEXT=$ac_cv_exeext
2488ac_exeext=$EXEEXT
2489echo "$as_me:$LINENO: checking for suffix of object files" >&5
2490echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2491if test "${ac_cv_objext+set}" = set; then
2492 echo $ECHO_N "(cached) $ECHO_C" >&6
2493else
2494 cat >conftest.$ac_ext <<_ACEOF
2495/* confdefs.h. */
2496_ACEOF
2497cat confdefs.h >>conftest.$ac_ext
2498cat >>conftest.$ac_ext <<_ACEOF
2499/* end confdefs.h. */
2500
2501int
2502main ()
2503{
2504
2505 ;
2506 return 0;
2507}
2508_ACEOF
2509rm -f conftest.o conftest.obj
2510if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2511 (eval $ac_compile) 2>&5
2512 ac_status=$?
2513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2514 (exit $ac_status); }; then
2515 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2516 case $ac_file in
2517 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2518 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2519 break;;
2520 esac
2521done
2522else
2523 echo "$as_me: failed program was:" >&5
2524sed 's/^/| /' conftest.$ac_ext >&5
2525
2526{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2527See \`config.log' for more details." >&5
2528echo "$as_me: error: cannot compute suffix of object files: cannot compile
2529See \`config.log' for more details." >&2;}
2530 { (exit 1); exit 1; }; }
2531fi
2532
2533rm -f conftest.$ac_cv_objext conftest.$ac_ext
2534fi
2535echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2536echo "${ECHO_T}$ac_cv_objext" >&6
2537OBJEXT=$ac_cv_objext
2538ac_objext=$OBJEXT
2539echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2540echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2541if test "${ac_cv_c_compiler_gnu+set}" = set; then
2542 echo $ECHO_N "(cached) $ECHO_C" >&6
2543else
2544 cat >conftest.$ac_ext <<_ACEOF
2545/* confdefs.h. */
2546_ACEOF
2547cat confdefs.h >>conftest.$ac_ext
2548cat >>conftest.$ac_ext <<_ACEOF
2549/* end confdefs.h. */
2550
2551int
2552main ()
2553{
2554#ifndef __GNUC__
2555 choke me
2556#endif
2557
2558 ;
2559 return 0;
2560}
2561_ACEOF
2562rm -f conftest.$ac_objext
2563if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2564 (eval $ac_compile) 2>conftest.er1
2565 ac_status=$?
2566 grep -v '^ *+' conftest.er1 >conftest.err
2567 rm -f conftest.er1
2568 cat conftest.err >&5
2569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2570 (exit $ac_status); } &&
1fb2002d 2571 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6de9cd9a
DN
2572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2573 (eval $ac_try) 2>&5
2574 ac_status=$?
2575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2576 (exit $ac_status); }; } &&
2577 { ac_try='test -s conftest.$ac_objext'
2578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2579 (eval $ac_try) 2>&5
2580 ac_status=$?
2581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2582 (exit $ac_status); }; }; then
2583 ac_compiler_gnu=yes
2584else
2585 echo "$as_me: failed program was:" >&5
2586sed 's/^/| /' conftest.$ac_ext >&5
2587
2588ac_compiler_gnu=no
2589fi
2590rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2591ac_cv_c_compiler_gnu=$ac_compiler_gnu
2592
2593fi
2594echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2595echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2596GCC=`test $ac_compiler_gnu = yes && echo yes`
2597ac_test_CFLAGS=${CFLAGS+set}
2598ac_save_CFLAGS=$CFLAGS
2599CFLAGS="-g"
2600echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2601echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2602if test "${ac_cv_prog_cc_g+set}" = set; then
2603 echo $ECHO_N "(cached) $ECHO_C" >&6
2604else
2605 cat >conftest.$ac_ext <<_ACEOF
2606/* confdefs.h. */
2607_ACEOF
2608cat confdefs.h >>conftest.$ac_ext
2609cat >>conftest.$ac_ext <<_ACEOF
2610/* end confdefs.h. */
2611
2612int
2613main ()
2614{
2615
2616 ;
2617 return 0;
2618}
2619_ACEOF
2620rm -f conftest.$ac_objext
2621if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2622 (eval $ac_compile) 2>conftest.er1
2623 ac_status=$?
2624 grep -v '^ *+' conftest.er1 >conftest.err
2625 rm -f conftest.er1
2626 cat conftest.err >&5
2627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2628 (exit $ac_status); } &&
1fb2002d 2629 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6de9cd9a
DN
2630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2631 (eval $ac_try) 2>&5
2632 ac_status=$?
2633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2634 (exit $ac_status); }; } &&
2635 { ac_try='test -s conftest.$ac_objext'
2636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2637 (eval $ac_try) 2>&5
2638 ac_status=$?
2639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2640 (exit $ac_status); }; }; then
2641 ac_cv_prog_cc_g=yes
2642else
2643 echo "$as_me: failed program was:" >&5
2644sed 's/^/| /' conftest.$ac_ext >&5
2645
2646ac_cv_prog_cc_g=no
2647fi
2648rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2649fi
2650echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2651echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2652if test "$ac_test_CFLAGS" = set; then
2653 CFLAGS=$ac_save_CFLAGS
2654elif test $ac_cv_prog_cc_g = yes; then
2655 if test "$GCC" = yes; then
2656 CFLAGS="-g -O2"
2657 else
2658 CFLAGS="-g"
2659 fi
2660else
2661 if test "$GCC" = yes; then
2662 CFLAGS="-O2"
2663 else
2664 CFLAGS=
2665 fi
2666fi
2667echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2668echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2669if test "${ac_cv_prog_cc_stdc+set}" = set; then
2670 echo $ECHO_N "(cached) $ECHO_C" >&6
2671else
2672 ac_cv_prog_cc_stdc=no
2673ac_save_CC=$CC
2674cat >conftest.$ac_ext <<_ACEOF
2675/* confdefs.h. */
2676_ACEOF
2677cat confdefs.h >>conftest.$ac_ext
2678cat >>conftest.$ac_ext <<_ACEOF
2679/* end confdefs.h. */
2680#include <stdarg.h>
2681#include <stdio.h>
2682#include <sys/types.h>
2683#include <sys/stat.h>
2684/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2685struct buf { int x; };
2686FILE * (*rcsopen) (struct buf *, struct stat *, int);
2687static char *e (p, i)
2688 char **p;
2689 int i;
2690{
2691 return p[i];
2692}
2693static char *f (char * (*g) (char **, int), char **p, ...)
2694{
2695 char *s;
2696 va_list v;
2697 va_start (v,p);
2698 s = g (p, va_arg (v,int));
2699 va_end (v);
2700 return s;
2701}
2702
2703/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2704 function prototypes and stuff, but not '\xHH' hex character constants.
2705 These don't provoke an error unfortunately, instead are silently treated
2706 as 'x'. The following induces an error, until -std1 is added to get
2707 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2708 array size at least. It's necessary to write '\x00'==0 to get something
2709 that's true only with -std1. */
2710int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2711
2712int test (int i, double x);
2713struct s1 {int (*f) (int a);};
2714struct s2 {int (*f) (double a);};
2715int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2716int argc;
2717char **argv;
2718int
2719main ()
2720{
2721return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2722 ;
2723 return 0;
2724}
2725_ACEOF
2726# Don't try gcc -ansi; that turns off useful extensions and
2727# breaks some systems' header files.
2728# AIX -qlanglvl=ansi
2729# Ultrix and OSF/1 -std1
2730# HP-UX 10.20 and later -Ae
2731# HP-UX older versions -Aa -D_HPUX_SOURCE
2732# SVR4 -Xc -D__EXTENSIONS__
2733for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2734do
2735 CC="$ac_save_CC $ac_arg"
2736 rm -f conftest.$ac_objext
2737if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2738 (eval $ac_compile) 2>conftest.er1
2739 ac_status=$?
2740 grep -v '^ *+' conftest.er1 >conftest.err
2741 rm -f conftest.er1
2742 cat conftest.err >&5
2743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2744 (exit $ac_status); } &&
1fb2002d 2745 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6de9cd9a
DN
2746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2747 (eval $ac_try) 2>&5
2748 ac_status=$?
2749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2750 (exit $ac_status); }; } &&
2751 { ac_try='test -s conftest.$ac_objext'
2752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2753 (eval $ac_try) 2>&5
2754 ac_status=$?
2755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2756 (exit $ac_status); }; }; then
2757 ac_cv_prog_cc_stdc=$ac_arg
2758break
2759else
2760 echo "$as_me: failed program was:" >&5
2761sed 's/^/| /' conftest.$ac_ext >&5
2762
2763fi
2764rm -f conftest.err conftest.$ac_objext
2765done
2766rm -f conftest.$ac_ext conftest.$ac_objext
2767CC=$ac_save_CC
2768
2769fi
2770
2771case "x$ac_cv_prog_cc_stdc" in
2772 x|xno)
2773 echo "$as_me:$LINENO: result: none needed" >&5
2774echo "${ECHO_T}none needed" >&6 ;;
2775 *)
2776 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2777echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2778 CC="$CC $ac_cv_prog_cc_stdc" ;;
2779esac
2780
2781# Some people use a C++ compiler to compile C. Since we use `exit',
2782# in C++ we need to declare it. In case someone uses the same compiler
2783# for both compiling C and C++ we need to have the C++ compiler decide
2784# the declaration of exit, since it's the most demanding environment.
2785cat >conftest.$ac_ext <<_ACEOF
2786#ifndef __cplusplus
2787 choke me
2788#endif
2789_ACEOF
2790rm -f conftest.$ac_objext
2791if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2792 (eval $ac_compile) 2>conftest.er1
2793 ac_status=$?
2794 grep -v '^ *+' conftest.er1 >conftest.err
2795 rm -f conftest.er1
2796 cat conftest.err >&5
2797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2798 (exit $ac_status); } &&
1fb2002d 2799 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6de9cd9a
DN
2800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2801 (eval $ac_try) 2>&5
2802 ac_status=$?
2803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2804 (exit $ac_status); }; } &&
2805 { ac_try='test -s conftest.$ac_objext'
2806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2807 (eval $ac_try) 2>&5
2808 ac_status=$?
2809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2810 (exit $ac_status); }; }; then
2811 for ac_declaration in \
2812 '' \
2813 'extern "C" void std::exit (int) throw (); using std::exit;' \
2814 'extern "C" void std::exit (int); using std::exit;' \
2815 'extern "C" void exit (int) throw ();' \
2816 'extern "C" void exit (int);' \
2817 'void exit (int);'
2818do
2819 cat >conftest.$ac_ext <<_ACEOF
2820/* confdefs.h. */
2821_ACEOF
2822cat confdefs.h >>conftest.$ac_ext
2823cat >>conftest.$ac_ext <<_ACEOF
2824/* end confdefs.h. */
2825$ac_declaration
2826#include <stdlib.h>
2827int
2828main ()
2829{
2830exit (42);
2831 ;
2832 return 0;
2833}
2834_ACEOF
2835rm -f conftest.$ac_objext
2836if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2837 (eval $ac_compile) 2>conftest.er1
2838 ac_status=$?
2839 grep -v '^ *+' conftest.er1 >conftest.err
2840 rm -f conftest.er1
2841 cat conftest.err >&5
2842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2843 (exit $ac_status); } &&
1fb2002d 2844 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6de9cd9a
DN
2845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2846 (eval $ac_try) 2>&5
2847 ac_status=$?
2848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2849 (exit $ac_status); }; } &&
2850 { ac_try='test -s conftest.$ac_objext'
2851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2852 (eval $ac_try) 2>&5
2853 ac_status=$?
2854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2855 (exit $ac_status); }; }; then
2856 :
2857else
2858 echo "$as_me: failed program was:" >&5
2859sed 's/^/| /' conftest.$ac_ext >&5
2860
2861continue
2862fi
2863rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2864 cat >conftest.$ac_ext <<_ACEOF
2865/* confdefs.h. */
2866_ACEOF
2867cat confdefs.h >>conftest.$ac_ext
2868cat >>conftest.$ac_ext <<_ACEOF
2869/* end confdefs.h. */
2870$ac_declaration
2871int
2872main ()
2873{
2874exit (42);
2875 ;
2876 return 0;
2877}
2878_ACEOF
2879rm -f conftest.$ac_objext
2880if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2881 (eval $ac_compile) 2>conftest.er1
2882 ac_status=$?
2883 grep -v '^ *+' conftest.er1 >conftest.err
2884 rm -f conftest.er1
2885 cat conftest.err >&5
2886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2887 (exit $ac_status); } &&
1fb2002d 2888 { ac_try='test -z "$ac_c_werror_flag" || 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*)
2c92e90f 3627 lt_cv_deplibs_check_method=pass_all
96b8a615
AJ
3628 ;;
3629
3630netbsd* | knetbsd*-gnu)
3631 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3632 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
3633 else
3634 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
3635 fi
3636 ;;
3637
3638newsos6)
3639 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3640 lt_cv_file_magic_cmd=/usr/bin/file
3641 lt_cv_file_magic_test_file=/usr/lib/libnls.so
3642 ;;
3643
3644osf3* | osf4* | osf5*)
3645 # this will be overridden with pass_all, but let us keep it just in case
3646 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
3647 lt_cv_file_magic_test_file=/shlib/libc.so
3648 lt_cv_deplibs_check_method=pass_all
3649 ;;
3650
3651sco3.2v5*)
3652 lt_cv_deplibs_check_method=pass_all
3653 ;;
3654
3655solaris*)
3656 lt_cv_deplibs_check_method=pass_all
3657 lt_cv_file_magic_test_file=/lib/libc.so
3658 ;;
3659
3660sysv5uw[78]* | sysv4*uw2*)
3661 lt_cv_deplibs_check_method=pass_all
3662 ;;
3663
3664sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3665 case $host_vendor in
3666 ncr)
3667 lt_cv_deplibs_check_method=pass_all
3668 ;;
3669 motorola)
3670 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]'
3671 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3672 ;;
3673 esac
3674 ;;
3675esac
3676
3677fi
3678echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3679echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3680file_magic_cmd=$lt_cv_file_magic_cmd
3681deplibs_check_method=$lt_cv_deplibs_check_method
3682
3683
3684
3685
3686
3687# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
3688
6dab073b
MS
3689# find the maximum length of command line arguments
3690echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
3691echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
3692if test "${lt_cv_sys_max_cmd_len+set}" = set; then
3693 echo $ECHO_N "(cached) $ECHO_C" >&6
3694else
3695 i=0
3696 teststring="ABCD"
3697
3698 case $build_os in
3699 msdosdjgpp*)
3700 # On DJGPP, this test can blow up pretty badly due to problems in libc
3701 # (any single argument exceeding 2000 bytes causes a buffer overrun
3702 # during glob expansion). Even if it were fixed, the result of this
3703 # check would be larger than it should be.
3704 lt_cv_sys_max_cmd_len=12288; # 12K is about right
3705 ;;
3706
3707 cygwin* | mingw*)
3708 # On Win9x/ME, this test blows up -- it succeeds, but takes
3709 # about 5 minutes as the teststring grows exponentially.
3710 # Worse, since 9x/ME are not pre-emptively multitasking,
3711 # you end up with a "frozen" computer, even though with patience
3712 # the test eventually succeeds (with a max line length of 256k).
3713 # Instead, let's just punt: use the minimum linelength reported by
3714 # all of the supported platforms: 8192 (on NT/2K/XP).
3715 lt_cv_sys_max_cmd_len=8192;
3716 ;;
3717
3718 amigaos*)
3719 # On AmigaOS with pdksh, this test takes hours, literally.
3720 # So we just punt and use a minimum line length of 8192.
3721 lt_cv_sys_max_cmd_len=8192;
3722 ;;
3723
3724 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
3725 # This has been around since 386BSD, at least. Likely further.
3726 if test -x /sbin/sysctl; then
3727 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
3728 elif test -x /usr/sbin/sysctl; then
3729 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
3730 else
3731 lt_cv_sys_max_cmd_len=65536 # usable default for *BSD
3732 fi
3733 # And add a safety zone
3734 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
3735 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
3736 ;;
3737 esac
3738
3739fi
3740
3741if test -n $lt_cv_sys_max_cmd_len ; then
3742 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
3743echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
3744else
3745 echo "$as_me:$LINENO: result: none" >&5
3746echo "${ECHO_T}none" >&6
3747fi
3748
3749
96b8a615
AJ
3750# Only perform the check for file, if the check method requires it
3751case $deplibs_check_method in
3752file_magic*)
3753 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
3754 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
3755echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
3756if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
3757 echo $ECHO_N "(cached) $ECHO_C" >&6
3758else
3759 case $MAGIC_CMD in
3760 /*)
3761 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
3762 ;;
3763 ?:/*)
3764 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
3765 ;;
3766 *)
3767 ac_save_MAGIC_CMD="$MAGIC_CMD"
3768 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3769 ac_dummy="/usr/bin:$PATH"
3770 for ac_dir in $ac_dummy; do
3771 test -z "$ac_dir" && ac_dir=.
3772 if test -f $ac_dir/${ac_tool_prefix}file; then
3773 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
3774 if test -n "$file_magic_test_file"; then
3775 case $deplibs_check_method in
3776 "file_magic "*)
3777 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
3778 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3779 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3780 egrep "$file_magic_regex" > /dev/null; then
3781 :
3782 else
3783 cat <<EOF 1>&2
3784
3785*** Warning: the command libtool uses to detect shared libraries,
3786*** $file_magic_cmd, produces output that libtool cannot recognize.
3787*** The result is that libtool may fail to recognize shared libraries
3788*** as such. This will affect the creation of libtool libraries that
3789*** depend on shared libraries, but programs linked with such libtool
3790*** libraries will work regardless of this problem. Nevertheless, you
3791*** may want to report the problem to your system manager and/or to
3792*** bug-libtool@gnu.org
3793
3794EOF
3795 fi ;;
3796 esac
3797 fi
3798 break
3799 fi
3800 done
3801 IFS="$ac_save_ifs"
3802 MAGIC_CMD="$ac_save_MAGIC_CMD"
3803 ;;
3804esac
3805fi
3806
3807MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3808if test -n "$MAGIC_CMD"; then
3809 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
3810echo "${ECHO_T}$MAGIC_CMD" >&6
3811else
3812 echo "$as_me:$LINENO: result: no" >&5
3813echo "${ECHO_T}no" >&6
3814fi
3815
3816if test -z "$lt_cv_path_MAGIC_CMD"; then
3817 if test -n "$ac_tool_prefix"; then
3818 echo "$as_me:$LINENO: checking for file" >&5
3819echo $ECHO_N "checking for file... $ECHO_C" >&6
3820if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
3821 echo $ECHO_N "(cached) $ECHO_C" >&6
3822else
3823 case $MAGIC_CMD in
3824 /*)
3825 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
3826 ;;
3827 ?:/*)
3828 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
3829 ;;
3830 *)
3831 ac_save_MAGIC_CMD="$MAGIC_CMD"
3832 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3833 ac_dummy="/usr/bin:$PATH"
3834 for ac_dir in $ac_dummy; do
3835 test -z "$ac_dir" && ac_dir=.
3836 if test -f $ac_dir/file; then
3837 lt_cv_path_MAGIC_CMD="$ac_dir/file"
3838 if test -n "$file_magic_test_file"; then
3839 case $deplibs_check_method in
3840 "file_magic "*)
3841 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
3842 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3843 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3844 egrep "$file_magic_regex" > /dev/null; then
3845 :
3846 else
3847 cat <<EOF 1>&2
3848
3849*** Warning: the command libtool uses to detect shared libraries,
3850*** $file_magic_cmd, produces output that libtool cannot recognize.
3851*** The result is that libtool may fail to recognize shared libraries
3852*** as such. This will affect the creation of libtool libraries that
3853*** depend on shared libraries, but programs linked with such libtool
3854*** libraries will work regardless of this problem. Nevertheless, you
3855*** may want to report the problem to your system manager and/or to
3856*** bug-libtool@gnu.org
3857
3858EOF
3859 fi ;;
3860 esac
3861 fi
3862 break
3863 fi
3864 done
3865 IFS="$ac_save_ifs"
3866 MAGIC_CMD="$ac_save_MAGIC_CMD"
3867 ;;
3868esac
3869fi
6de9cd9a 3870
96b8a615
AJ
3871MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3872if test -n "$MAGIC_CMD"; then
3873 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
3874echo "${ECHO_T}$MAGIC_CMD" >&6
6de9cd9a 3875else
96b8a615
AJ
3876 echo "$as_me:$LINENO: result: no" >&5
3877echo "${ECHO_T}no" >&6
3878fi
6de9cd9a 3879
96b8a615
AJ
3880 else
3881 MAGIC_CMD=:
3882 fi
6de9cd9a 3883fi
6de9cd9a 3884
96b8a615
AJ
3885 fi
3886 ;;
3887esac
6de9cd9a 3888
96b8a615
AJ
3889if test -n "$ac_tool_prefix"; then
3890 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3891set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3892echo "$as_me:$LINENO: checking for $ac_word" >&5
3893echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3894if test "${ac_cv_prog_RANLIB+set}" = set; then
3895 echo $ECHO_N "(cached) $ECHO_C" >&6
6de9cd9a 3896else
96b8a615
AJ
3897 if test -n "$RANLIB"; then
3898 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3899else
3900as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3901for as_dir in $PATH
3902do
3903 IFS=$as_save_IFS
3904 test -z "$as_dir" && as_dir=.
3905 for ac_exec_ext in '' $ac_executable_extensions; do
3906 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3907 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3908 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3909 break 2
3910 fi
3911done
3912done
6de9cd9a 3913
96b8a615
AJ
3914fi
3915fi
3916RANLIB=$ac_cv_prog_RANLIB
3917if test -n "$RANLIB"; then
3918 echo "$as_me:$LINENO: result: $RANLIB" >&5
3919echo "${ECHO_T}$RANLIB" >&6
3920else
3921 echo "$as_me:$LINENO: result: no" >&5
3922echo "${ECHO_T}no" >&6
6de9cd9a
DN
3923fi
3924
96b8a615
AJ
3925fi
3926if test -z "$ac_cv_prog_RANLIB"; then
3927 ac_ct_RANLIB=$RANLIB
3928 # Extract the first word of "ranlib", so it can be a program name with args.
3929set dummy ranlib; ac_word=$2
3930echo "$as_me:$LINENO: checking for $ac_word" >&5
3931echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3932if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3933 echo $ECHO_N "(cached) $ECHO_C" >&6
3934else
3935 if test -n "$ac_ct_RANLIB"; then
3936 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3937else
3938as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3939for as_dir in $PATH
3940do
3941 IFS=$as_save_IFS
3942 test -z "$as_dir" && as_dir=.
3943 for ac_exec_ext in '' $ac_executable_extensions; do
3944 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3945 ac_cv_prog_ac_ct_RANLIB="ranlib"
3946 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3947 break 2
3948 fi
3949done
3950done
6de9cd9a 3951
96b8a615
AJ
3952 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3953fi
3954fi
3955ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3956if test -n "$ac_ct_RANLIB"; then
3957 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3958echo "${ECHO_T}$ac_ct_RANLIB" >&6
6de9cd9a 3959else
96b8a615
AJ
3960 echo "$as_me:$LINENO: result: no" >&5
3961echo "${ECHO_T}no" >&6
6de9cd9a 3962fi
6de9cd9a 3963
96b8a615
AJ
3964 RANLIB=$ac_ct_RANLIB
3965else
3966 RANLIB="$ac_cv_prog_RANLIB"
6de9cd9a
DN
3967fi
3968
96b8a615
AJ
3969if test -n "$ac_tool_prefix"; then
3970 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3971set dummy ${ac_tool_prefix}strip; ac_word=$2
3972echo "$as_me:$LINENO: checking for $ac_word" >&5
3973echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3974if test "${ac_cv_prog_STRIP+set}" = set; then
3975 echo $ECHO_N "(cached) $ECHO_C" >&6
6de9cd9a 3976else
96b8a615
AJ
3977 if test -n "$STRIP"; then
3978 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3979else
3980as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3981for as_dir in $PATH
3982do
3983 IFS=$as_save_IFS
3984 test -z "$as_dir" && as_dir=.
3985 for ac_exec_ext in '' $ac_executable_extensions; do
3986 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3987 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3988 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3989 break 2
3990 fi
3991done
3992done
6de9cd9a 3993
96b8a615
AJ
3994fi
3995fi
3996STRIP=$ac_cv_prog_STRIP
3997if test -n "$STRIP"; then
3998 echo "$as_me:$LINENO: result: $STRIP" >&5
3999echo "${ECHO_T}$STRIP" >&6
6de9cd9a 4000else
96b8a615
AJ
4001 echo "$as_me:$LINENO: result: no" >&5
4002echo "${ECHO_T}no" >&6
4003fi
6de9cd9a 4004
6de9cd9a 4005fi
96b8a615
AJ
4006if test -z "$ac_cv_prog_STRIP"; then
4007 ac_ct_STRIP=$STRIP
4008 # Extract the first word of "strip", so it can be a program name with args.
4009set dummy strip; ac_word=$2
4010echo "$as_me:$LINENO: checking for $ac_word" >&5
4011echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4012if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4013 echo $ECHO_N "(cached) $ECHO_C" >&6
4014else
4015 if test -n "$ac_ct_STRIP"; then
4016 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4017else
4018as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4019for as_dir in $PATH
4020do
4021 IFS=$as_save_IFS
4022 test -z "$as_dir" && as_dir=.
4023 for ac_exec_ext in '' $ac_executable_extensions; do
4024 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4025 ac_cv_prog_ac_ct_STRIP="strip"
4026 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4027 break 2
4028 fi
4029done
4030done
4031
4032 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
6de9cd9a
DN
4033fi
4034fi
96b8a615
AJ
4035ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4036if test -n "$ac_ct_STRIP"; then
4037 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4038echo "${ECHO_T}$ac_ct_STRIP" >&6
4039else
4040 echo "$as_me:$LINENO: result: no" >&5
4041echo "${ECHO_T}no" >&6
6de9cd9a 4042fi
6de9cd9a 4043
96b8a615
AJ
4044 STRIP=$ac_ct_STRIP
4045else
4046 STRIP="$ac_cv_prog_STRIP"
6de9cd9a
DN
4047fi
4048
6de9cd9a 4049
96b8a615
AJ
4050# Check for any special flags to pass to ltconfig.
4051libtool_flags="--cache-file=$cache_file"
4052test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
4053test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
4054test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
4055test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
4056test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
6de9cd9a
DN
4057
4058
96b8a615
AJ
4059# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4060if test "${enable_libtool_lock+set}" = set; then
4061 enableval="$enable_libtool_lock"
6de9cd9a 4062
96b8a615
AJ
4063fi;
4064test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
4065test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
6de9cd9a
DN
4066
4067
96b8a615
AJ
4068# Check whether --with-pic or --without-pic was given.
4069if test "${with_pic+set}" = set; then
4070 withval="$with_pic"
4071 pic_mode="$withval"
6de9cd9a 4072else
96b8a615
AJ
4073 pic_mode=default
4074fi;
4075test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
4076test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
6de9cd9a 4077
96b8a615
AJ
4078# Some flags need to be propagated to the compiler or linker for good
4079# libtool support.
4080case $host in
4081*-*-irix6*)
4082 # Find out which ABI we are using.
1fb2002d 4083 echo '#line 4083 "configure"' > conftest.$ac_ext
96b8a615
AJ
4084 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4085 (eval $ac_compile) 2>&5
6de9cd9a
DN
4086 ac_status=$?
4087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
96b8a615
AJ
4088 (exit $ac_status); }; then
4089 if test "$lt_cv_prog_gnu_ld" = yes; then
4090 case `/usr/bin/file conftest.$ac_objext` in
4091 *32-bit*)
4092 LD="${LD-ld} -melf32bsmip"
4093 ;;
4094 *N32*)
4095 LD="${LD-ld} -melf32bmipn32"
4096 ;;
4097 *64-bit*)
4098 LD="${LD-ld} -melf64bmip"
4099 ;;
4100 esac
4101 else
4102 case `/usr/bin/file conftest.$ac_objext` in
4103 *32-bit*)
4104 LD="${LD-ld} -32"
4105 ;;
4106 *N32*)
4107 LD="${LD-ld} -n32"
4108 ;;
4109 *64-bit*)
4110 LD="${LD-ld} -64"
4111 ;;
4112 esac
4113 fi
4114 fi
4115 rm -rf conftest*
4116 ;;
6de9cd9a 4117
96b8a615
AJ
4118ia64-*-hpux*)
4119 # Find out which ABI we are using.
4120 echo 'int i;' > conftest.$ac_ext
4121 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4122 (eval $ac_compile) 2>&5
6de9cd9a
DN
4123 ac_status=$?
4124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
96b8a615
AJ
4125 (exit $ac_status); }; then
4126 case "`/usr/bin/file conftest.o`" in
4127 *ELF-32*)
4128 HPUX_IA64_MODE="32"
4129 ;;
4130 *ELF-64*)
4131 HPUX_IA64_MODE="64"
4132 ;;
4133 esac
4134 fi
4135 rm -rf conftest*
4136 ;;
6de9cd9a 4137
96b8a615
AJ
4138x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4139 # Find out which ABI we are using.
4140 echo 'int i;' > conftest.$ac_ext
4141 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4142 (eval $ac_compile) 2>&5
6de9cd9a 4143 ac_status=$?
6de9cd9a 4144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
96b8a615
AJ
4145 (exit $ac_status); }; then
4146 case "`/usr/bin/file conftest.o`" in
4147 *32-bit*)
4148 case $host in
4149 x86_64-*linux*)
4150 LD="${LD-ld} -m elf_i386"
4151 ;;
4152 ppc64-*linux*|powerpc64-*linux*)
4153 LD="${LD-ld} -m elf32ppclinux"
4154 ;;
4155 s390x-*linux*)
4156 LD="${LD-ld} -m elf_s390"
4157 ;;
4158 sparc64-*linux*)
4159 LD="${LD-ld} -m elf32_sparc"
4160 ;;
4161 esac
4162 ;;
4163 *64-bit*)
4164 case $host in
4165 x86_64-*linux*)
4166 LD="${LD-ld} -m elf_x86_64"
4167 ;;
4168 ppc*-*linux*|powerpc*-*linux*)
4169 LD="${LD-ld} -m elf64ppc"
4170 ;;
4171 s390*-*linux*)
4172 LD="${LD-ld} -m elf64_s390"
4173 ;;
4174 sparc*-*linux*)
4175 LD="${LD-ld} -m elf64_sparc"
4176 ;;
4177 esac
4178 ;;
4179 esac
6de9cd9a 4180 fi
96b8a615
AJ
4181 rm -rf conftest*
4182 ;;
6de9cd9a 4183
96b8a615
AJ
4184*-*-sco3.2v5*)
4185 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4186 SAVE_CFLAGS="$CFLAGS"
4187 CFLAGS="$CFLAGS -belf"
4188 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4189echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4190if test "${lt_cv_cc_needs_belf+set}" = set; then
6de9cd9a
DN
4191 echo $ECHO_N "(cached) $ECHO_C" >&6
4192else
6de9cd9a 4193
6de9cd9a 4194
96b8a615
AJ
4195 ac_ext=c
4196ac_cpp='$CPP $CPPFLAGS'
4197ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4198ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4199ac_compiler_gnu=$ac_cv_c_compiler_gnu
6de9cd9a 4200
f77b6ca3 4201 cat >conftest.$ac_ext <<_ACEOF
6de9cd9a
DN
4202/* confdefs.h. */
4203_ACEOF
4204cat confdefs.h >>conftest.$ac_ext
4205cat >>conftest.$ac_ext <<_ACEOF
4206/* end confdefs.h. */
6de9cd9a
DN
4207
4208int
4209main ()
4210{
96b8a615 4211
6de9cd9a
DN
4212 ;
4213 return 0;
4214}
4215_ACEOF
4216rm -f conftest.$ac_objext conftest$ac_exeext
4217if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4218 (eval $ac_link) 2>conftest.er1
4219 ac_status=$?
4220 grep -v '^ *+' conftest.er1 >conftest.err
4221 rm -f conftest.er1
4222 cat conftest.err >&5
4223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4224 (exit $ac_status); } &&
1fb2002d 4225 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6de9cd9a
DN
4226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4227 (eval $ac_try) 2>&5
4228 ac_status=$?
4229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4230 (exit $ac_status); }; } &&
4231 { ac_try='test -s conftest$ac_exeext'
4232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4233 (eval $ac_try) 2>&5
4234 ac_status=$?
4235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4236 (exit $ac_status); }; }; then
96b8a615 4237 lt_cv_cc_needs_belf=yes
6de9cd9a
DN
4238else
4239 echo "$as_me: failed program was:" >&5
4240sed 's/^/| /' conftest.$ac_ext >&5
4241
96b8a615 4242lt_cv_cc_needs_belf=no
6de9cd9a
DN
4243fi
4244rm -f conftest.err conftest.$ac_objext \
4245 conftest$ac_exeext conftest.$ac_ext
96b8a615
AJ
4246 ac_ext=c
4247ac_cpp='$CPP $CPPFLAGS'
4248ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4249ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4250ac_compiler_gnu=$ac_cv_c_compiler_gnu
4251
6de9cd9a 4252fi
96b8a615
AJ
4253echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4254echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4255 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4256 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4257 CFLAGS="$SAVE_CFLAGS"
4258 fi
4259 ;;
4260
4261
4262esac
4263
4264
4265# Save cache, so that ltconfig can load it
4266cat >confcache <<\_ACEOF
4267# This file is a shell script that caches the results of configure
4268# tests run on this system so they can be shared between configure
4269# scripts and configure runs, see configure's option --config-cache.
4270# It is not useful on other systems. If it contains results you don't
4271# want to keep, you may remove or edit it.
4272#
4273# config.status only pays attention to the cache file if you give it
4274# the --recheck option to rerun configure.
4275#
4276# `ac_cv_env_foo' variables (set or unset) will be overridden when
4277# loading this file, other *unset* `ac_cv_foo' will be assigned the
4278# following values.
4279
6de9cd9a
DN
4280_ACEOF
4281
96b8a615
AJ
4282# The following way of writing the cache mishandles newlines in values,
4283# but we know of no workaround that is simple, portable, and efficient.
4284# So, don't put newlines in cache variables' values.
4285# Ultrix sh set writes to stderr and can't be redirected directly,
4286# and sets the high bit in the cache file unless we assign to the vars.
4287{
4288 (set) 2>&1 |
4289 case `(ac_space=' '; set | grep ac_space) 2>&1` in
4290 *ac_space=\ *)
4291 # `set' does not quote correctly, so add quotes (double-quote
4292 # substitution turns \\\\ into \\, and sed turns \\ into \).
4293 sed -n \
4294 "s/'/'\\\\''/g;
4295 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
4296 ;;
4297 *)
4298 # `set' quotes correctly as required by POSIX, so do not add quotes.
4299 sed -n \
4300 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
4301 ;;
4302 esac;
4303} |
4304 sed '
4305 t clear
4306 : clear
4307 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
4308 t end
4309 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4310 : end' >>confcache
4311if diff $cache_file confcache >/dev/null 2>&1; then :; else
4312 if test -w $cache_file; then
4313 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
4314 cat confcache >$cache_file
4315 else
4316 echo "not updating unwritable cache $cache_file"
4317 fi
6de9cd9a 4318fi
96b8a615 4319rm -f confcache
6de9cd9a 4320
96b8a615
AJ
4321# Actually configure libtool. ac_aux_dir is where install-sh is found.
4322AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
4323MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
4324LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
4325AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
4326objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
4327deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
4328${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
4329$libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
4330|| { { echo "$as_me:$LINENO: error: libtool configure failed" >&5
4331echo "$as_me: error: libtool configure failed" >&2;}
4332 { (exit 1); exit 1; }; }
4333
4334# Reload cache, that may have been modified by ltconfig
4335if test -r "$cache_file"; then
4336 # Some versions of bash will fail to source /dev/null (special
4337 # files actually), so we avoid doing that.
4338 if test -f "$cache_file"; then
4339 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
4340echo "$as_me: loading cache $cache_file" >&6;}
4341 case $cache_file in
4342 [\\/]* | ?:[\\/]* ) . $cache_file;;
4343 *) . ./$cache_file;;
4344 esac
4345 fi
4346else
4347 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
4348echo "$as_me: creating cache $cache_file" >&6;}
4349 >$cache_file
4350fi
6de9cd9a 4351
6de9cd9a 4352
96b8a615
AJ
4353# This can be used to rebuild libtool when needed
4354LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
6de9cd9a 4355
96b8a615
AJ
4356# Always use our own libtool.
4357LIBTOOL='$(SHELL) $(top_builddir)/libtool'
6de9cd9a 4358
96b8a615
AJ
4359# Redirect the config.log output again, so that the ltconfig log is not
4360# clobbered by the next message.
4361exec 5>>./config.log
6de9cd9a 4362
6de9cd9a 4363
6de9cd9a 4364
6de9cd9a 4365
6de9cd9a 4366
6de9cd9a 4367
6de9cd9a 4368
6de9cd9a 4369
96b8a615
AJ
4370#AC_MSG_NOTICE([====== Finished libtool configuration]) ; sleep 10
4371
4372# We need gfortran to compile parts of the library
c7a35fe9
AS
4373# We can't use AC_PROG_FC because it expects a fully working gfortran.
4374#AC_PROG_FC(gfortran)
4375FC="$GFORTRAN"
4376ac_ext=${FC_SRCEXT-f}
4377ac_compile='$FC -c $FCFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext >&5'
4378ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext $LIBS >&5'
4379ac_compiler_gnu=$ac_cv_fc_compiler_gnu
96b8a615
AJ
4380if test -n "$ac_tool_prefix"; then
4381 for ac_prog in gfortran
4382 do
4383 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4384set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4385echo "$as_me:$LINENO: checking for $ac_word" >&5
4386echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
c7a35fe9 4387if test "${ac_cv_prog_FC+set}" = set; then
96b8a615 4388 echo $ECHO_N "(cached) $ECHO_C" >&6
6de9cd9a 4389else
c7a35fe9
AS
4390 if test -n "$FC"; then
4391 ac_cv_prog_FC="$FC" # Let the user override the test.
96b8a615
AJ
4392else
4393as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4394for as_dir in $PATH
4395do
4396 IFS=$as_save_IFS
4397 test -z "$as_dir" && as_dir=.
4398 for ac_exec_ext in '' $ac_executable_extensions; do
4399 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c7a35fe9 4400 ac_cv_prog_FC="$ac_tool_prefix$ac_prog"
96b8a615
AJ
4401 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4402 break 2
4403 fi
4404done
4405done
6de9cd9a 4406
6de9cd9a 4407fi
6de9cd9a 4408fi
c7a35fe9
AS
4409FC=$ac_cv_prog_FC
4410if test -n "$FC"; then
4411 echo "$as_me:$LINENO: result: $FC" >&5
4412echo "${ECHO_T}$FC" >&6
96b8a615
AJ
4413else
4414 echo "$as_me:$LINENO: result: no" >&5
4415echo "${ECHO_T}no" >&6
6de9cd9a 4416fi
6de9cd9a 4417
c7a35fe9 4418 test -n "$FC" && break
96b8a615
AJ
4419 done
4420fi
c7a35fe9
AS
4421if test -z "$FC"; then
4422 ac_ct_FC=$FC
96b8a615
AJ
4423 for ac_prog in gfortran
4424do
4425 # Extract the first word of "$ac_prog", so it can be a program name with args.
4426set dummy $ac_prog; ac_word=$2
4427echo "$as_me:$LINENO: checking for $ac_word" >&5
4428echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
c7a35fe9 4429if test "${ac_cv_prog_ac_ct_FC+set}" = set; then
96b8a615
AJ
4430 echo $ECHO_N "(cached) $ECHO_C" >&6
4431else
c7a35fe9
AS
4432 if test -n "$ac_ct_FC"; then
4433 ac_cv_prog_ac_ct_FC="$ac_ct_FC" # Let the user override the test.
96b8a615
AJ
4434else
4435as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4436for as_dir in $PATH
4437do
4438 IFS=$as_save_IFS
4439 test -z "$as_dir" && as_dir=.
4440 for ac_exec_ext in '' $ac_executable_extensions; do
4441 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c7a35fe9 4442 ac_cv_prog_ac_ct_FC="$ac_prog"
96b8a615
AJ
4443 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4444 break 2
4445 fi
4446done
4447done
6de9cd9a
DN
4448
4449fi
96b8a615 4450fi
c7a35fe9
AS
4451ac_ct_FC=$ac_cv_prog_ac_ct_FC
4452if test -n "$ac_ct_FC"; then
4453 echo "$as_me:$LINENO: result: $ac_ct_FC" >&5
4454echo "${ECHO_T}$ac_ct_FC" >&6
96b8a615
AJ
4455else
4456 echo "$as_me:$LINENO: result: no" >&5
4457echo "${ECHO_T}no" >&6
4458fi
4459
c7a35fe9 4460 test -n "$ac_ct_FC" && break
96b8a615
AJ
4461done
4462
c7a35fe9 4463 FC=$ac_ct_FC
96b8a615
AJ
4464fi
4465
4466
4467# Provide some information about the compiler.
1fb2002d 4468echo "$as_me:4468:" \
c7a35fe9 4469 "checking for Fortran compiler version" >&5
96b8a615
AJ
4470ac_compiler=`set X $ac_compile; echo $2`
4471{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4472 (eval $ac_compiler --version </dev/null >&5) 2>&5
4473 ac_status=$?
4474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4475 (exit $ac_status); }
4476{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4477 (eval $ac_compiler -v </dev/null >&5) 2>&5
4478 ac_status=$?
4479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4480 (exit $ac_status); }
4481{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4482 (eval $ac_compiler -V </dev/null >&5) 2>&5
4483 ac_status=$?
4484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4485 (exit $ac_status); }
4486rm -f a.out
6de9cd9a 4487
96b8a615
AJ
4488# If we don't use `.F' as extension, the preprocessor is not run on the
4489# input file. (Note that this only needs to work for GNU compilers.)
4490ac_save_ext=$ac_ext
4491ac_ext=F
c7a35fe9
AS
4492echo "$as_me:$LINENO: checking whether we are using the GNU Fortran compiler" >&5
4493echo $ECHO_N "checking whether we are using the GNU Fortran compiler... $ECHO_C" >&6
4494if test "${ac_cv_fc_compiler_gnu+set}" = set; then
6de9cd9a
DN
4495 echo $ECHO_N "(cached) $ECHO_C" >&6
4496else
4497 cat >conftest.$ac_ext <<_ACEOF
96b8a615
AJ
4498 program main
4499#ifndef __GNUC__
4500 choke me
4501#endif
4502
4503 end
6de9cd9a
DN
4504_ACEOF
4505rm -f conftest.$ac_objext
4506if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4507 (eval $ac_compile) 2>conftest.er1
4508 ac_status=$?
4509 grep -v '^ *+' conftest.er1 >conftest.err
4510 rm -f conftest.er1
4511 cat conftest.err >&5
4512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4513 (exit $ac_status); } &&
1fb2002d 4514 { ac_try='test -z "$ac_fc_werror_flag" || test ! -s conftest.err'
6de9cd9a
DN
4515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4516 (eval $ac_try) 2>&5
4517 ac_status=$?
4518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4519 (exit $ac_status); }; } &&
4520 { ac_try='test -s conftest.$ac_objext'
4521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4522 (eval $ac_try) 2>&5
4523 ac_status=$?
4524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4525 (exit $ac_status); }; }; then
96b8a615 4526 ac_compiler_gnu=yes
6de9cd9a
DN
4527else
4528 echo "$as_me: failed program was:" >&5
4529sed 's/^/| /' conftest.$ac_ext >&5
4530
96b8a615 4531ac_compiler_gnu=no
6de9cd9a
DN
4532fi
4533rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c7a35fe9 4534ac_cv_fc_compiler_gnu=$ac_compiler_gnu
6de9cd9a
DN
4535
4536fi
c7a35fe9
AS
4537echo "$as_me:$LINENO: result: $ac_cv_fc_compiler_gnu" >&5
4538echo "${ECHO_T}$ac_cv_fc_compiler_gnu" >&6
96b8a615 4539ac_ext=$ac_save_ext
c7a35fe9
AS
4540ac_test_FFLAGS=${FCFLAGS+set}
4541ac_save_FFLAGS=$FCFLAGS
4542FCFLAGS=
4543echo "$as_me:$LINENO: checking whether $FC accepts -g" >&5
4544echo $ECHO_N "checking whether $FC accepts -g... $ECHO_C" >&6
4545if test "${ac_cv_prog_fc_g+set}" = set; then
6de9cd9a
DN
4546 echo $ECHO_N "(cached) $ECHO_C" >&6
4547else
c7a35fe9 4548 FCFLAGS=-g
96b8a615
AJ
4549cat >conftest.$ac_ext <<_ACEOF
4550 program main
6de9cd9a 4551
96b8a615 4552 end
6de9cd9a
DN
4553_ACEOF
4554rm -f conftest.$ac_objext
4555if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4556 (eval $ac_compile) 2>conftest.er1
4557 ac_status=$?
4558 grep -v '^ *+' conftest.er1 >conftest.err
4559 rm -f conftest.er1
4560 cat conftest.err >&5
4561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4562 (exit $ac_status); } &&
1fb2002d 4563 { ac_try='test -z "$ac_fc_werror_flag" || test ! -s conftest.err'
6de9cd9a
DN
4564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4565 (eval $ac_try) 2>&5
4566 ac_status=$?
4567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4568 (exit $ac_status); }; } &&
4569 { ac_try='test -s conftest.$ac_objext'
4570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4571 (eval $ac_try) 2>&5
4572 ac_status=$?
4573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4574 (exit $ac_status); }; }; then
c7a35fe9 4575 ac_cv_prog_fc_g=yes
6de9cd9a
DN
4576else
4577 echo "$as_me: failed program was:" >&5
4578sed 's/^/| /' conftest.$ac_ext >&5
4579
c7a35fe9 4580ac_cv_prog_fc_g=no
6de9cd9a
DN
4581fi
4582rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4583
6de9cd9a 4584fi
c7a35fe9
AS
4585echo "$as_me:$LINENO: result: $ac_cv_prog_fc_g" >&5
4586echo "${ECHO_T}$ac_cv_prog_fc_g" >&6
96b8a615 4587if test "$ac_test_FFLAGS" = set; then
c7a35fe9
AS
4588 FCFLAGS=$ac_save_FFLAGS
4589elif test $ac_cv_prog_fc_g = yes; then
4590 if test "x$ac_cv_fc_compiler_gnu" = xyes; then
4591 FCFLAGS="-g -O2"
96b8a615 4592 else
c7a35fe9 4593 FCFLAGS="-g"
96b8a615
AJ
4594 fi
4595else
c7a35fe9
AS
4596 if test "x$ac_cv_fc_compiler_gnu" = xyes; then
4597 FCFLAGS="-O2"
96b8a615 4598 else
c7a35fe9 4599 FCFLAGS=
96b8a615 4600 fi
6de9cd9a
DN
4601fi
4602
96b8a615
AJ
4603ac_ext=c
4604ac_cpp='$CPP $CPPFLAGS'
4605ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4606ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4607ac_compiler_gnu=$ac_cv_c_compiler_gnu
6de9cd9a 4608
c7a35fe9 4609FCFLAGS="$FCFLAGS -Wall -fno-repack-arrays -fno-underscoring"
6de9cd9a 4610
e87045f3
AP
4611# extra LD Flags which are required for targets
4612case "${host}" in
4613 *-darwin*)
4614 # Darwin needs -single_module when linking libgfortran
4615 extra_ldflags_libgfortran=-Wl,-single_module
4616 ;;
4617esac
4618
4619
9cdc381b
BD
4620# Check whether --enable-largefile or --disable-largefile was given.
4621if test "${enable_largefile+set}" = set; then
4622 enableval="$enable_largefile"
4623
4624fi;
4625if test "$enable_largefile" != no; then
4626
4627 echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
4628echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
4629if test "${ac_cv_sys_largefile_CC+set}" = set; then
4630 echo $ECHO_N "(cached) $ECHO_C" >&6
4631else
4632 ac_cv_sys_largefile_CC=no
4633 if test "$GCC" != yes; then
4634 ac_save_CC=$CC
4635 while :; do
4636 # IRIX 6.2 and later do not support large files by default,
4637 # so use the C compiler's -n32 option if that helps.
4638 cat >conftest.$ac_ext <<_ACEOF
4639/* confdefs.h. */
4640_ACEOF
4641cat confdefs.h >>conftest.$ac_ext
4642cat >>conftest.$ac_ext <<_ACEOF
4643/* end confdefs.h. */
4644#include <sys/types.h>
4645 /* Check that off_t can represent 2**63 - 1 correctly.
4646 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4647 since some C++ compilers masquerading as C compilers
4648 incorrectly reject 9223372036854775807. */
4649#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4650 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4651 && LARGE_OFF_T % 2147483647 == 1)
4652 ? 1 : -1];
4653int
4654main ()
4655{
4656
4657 ;
4658 return 0;
4659}
4660_ACEOF
4661 rm -f conftest.$ac_objext
4662if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4663 (eval $ac_compile) 2>conftest.er1
4664 ac_status=$?
4665 grep -v '^ *+' conftest.er1 >conftest.err
4666 rm -f conftest.er1
4667 cat conftest.err >&5
4668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4669 (exit $ac_status); } &&
1fb2002d 4670 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9cdc381b
BD
4671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4672 (eval $ac_try) 2>&5
4673 ac_status=$?
4674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4675 (exit $ac_status); }; } &&
4676 { ac_try='test -s conftest.$ac_objext'
4677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4678 (eval $ac_try) 2>&5
4679 ac_status=$?
4680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4681 (exit $ac_status); }; }; then
4682 break
4683else
4684 echo "$as_me: failed program was:" >&5
4685sed 's/^/| /' conftest.$ac_ext >&5
4686
4687fi
4688rm -f conftest.err conftest.$ac_objext
4689 CC="$CC -n32"
4690 rm -f conftest.$ac_objext
4691if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4692 (eval $ac_compile) 2>conftest.er1
4693 ac_status=$?
4694 grep -v '^ *+' conftest.er1 >conftest.err
4695 rm -f conftest.er1
4696 cat conftest.err >&5
4697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4698 (exit $ac_status); } &&
1fb2002d 4699 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9cdc381b
BD
4700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4701 (eval $ac_try) 2>&5
4702 ac_status=$?
4703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4704 (exit $ac_status); }; } &&
4705 { ac_try='test -s conftest.$ac_objext'
4706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4707 (eval $ac_try) 2>&5
4708 ac_status=$?
4709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4710 (exit $ac_status); }; }; then
4711 ac_cv_sys_largefile_CC=' -n32'; break
4712else
4713 echo "$as_me: failed program was:" >&5
4714sed 's/^/| /' conftest.$ac_ext >&5
4715
4716fi
4717rm -f conftest.err conftest.$ac_objext
4718 break
4719 done
4720 CC=$ac_save_CC
4721 rm -f conftest.$ac_ext
4722 fi
4723fi
4724echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
4725echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
4726 if test "$ac_cv_sys_largefile_CC" != no; then
4727 CC=$CC$ac_cv_sys_largefile_CC
4728 fi
4729
4730 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4731echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
4732if test "${ac_cv_sys_file_offset_bits+set}" = set; then
4733 echo $ECHO_N "(cached) $ECHO_C" >&6
4734else
4735 while :; do
4736 ac_cv_sys_file_offset_bits=no
4737 cat >conftest.$ac_ext <<_ACEOF
4738/* confdefs.h. */
4739_ACEOF
4740cat confdefs.h >>conftest.$ac_ext
4741cat >>conftest.$ac_ext <<_ACEOF
4742/* end confdefs.h. */
4743#include <sys/types.h>
4744 /* Check that off_t can represent 2**63 - 1 correctly.
4745 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4746 since some C++ compilers masquerading as C compilers
4747 incorrectly reject 9223372036854775807. */
4748#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4749 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4750 && LARGE_OFF_T % 2147483647 == 1)
4751 ? 1 : -1];
4752int
4753main ()
4754{
4755
4756 ;
4757 return 0;
4758}
4759_ACEOF
4760rm -f conftest.$ac_objext
4761if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4762 (eval $ac_compile) 2>conftest.er1
4763 ac_status=$?
4764 grep -v '^ *+' conftest.er1 >conftest.err
4765 rm -f conftest.er1
4766 cat conftest.err >&5
4767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4768 (exit $ac_status); } &&
1fb2002d 4769 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9cdc381b
BD
4770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4771 (eval $ac_try) 2>&5
4772 ac_status=$?
4773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4774 (exit $ac_status); }; } &&
4775 { ac_try='test -s conftest.$ac_objext'
4776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4777 (eval $ac_try) 2>&5
4778 ac_status=$?
4779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4780 (exit $ac_status); }; }; then
4781 break
4782else
4783 echo "$as_me: failed program was:" >&5
4784sed 's/^/| /' conftest.$ac_ext >&5
4785
4786fi
4787rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4788 cat >conftest.$ac_ext <<_ACEOF
4789/* confdefs.h. */
4790_ACEOF
4791cat confdefs.h >>conftest.$ac_ext
4792cat >>conftest.$ac_ext <<_ACEOF
4793/* end confdefs.h. */
4794#define _FILE_OFFSET_BITS 64
4795#include <sys/types.h>
4796 /* Check that off_t can represent 2**63 - 1 correctly.
4797 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4798 since some C++ compilers masquerading as C compilers
4799 incorrectly reject 9223372036854775807. */
4800#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4801 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4802 && LARGE_OFF_T % 2147483647 == 1)
4803 ? 1 : -1];
4804int
4805main ()
4806{
4807
4808 ;
4809 return 0;
4810}
4811_ACEOF
4812rm -f conftest.$ac_objext
4813if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4814 (eval $ac_compile) 2>conftest.er1
4815 ac_status=$?
4816 grep -v '^ *+' conftest.er1 >conftest.err
4817 rm -f conftest.er1
4818 cat conftest.err >&5
4819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4820 (exit $ac_status); } &&
1fb2002d 4821 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9cdc381b
BD
4822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4823 (eval $ac_try) 2>&5
4824 ac_status=$?
4825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4826 (exit $ac_status); }; } &&
4827 { ac_try='test -s conftest.$ac_objext'
4828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4829 (eval $ac_try) 2>&5
4830 ac_status=$?
4831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4832 (exit $ac_status); }; }; then
4833 ac_cv_sys_file_offset_bits=64; break
4834else
4835 echo "$as_me: failed program was:" >&5
4836sed 's/^/| /' conftest.$ac_ext >&5
4837
4838fi
4839rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4840 break
4841done
4842fi
4843echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
4844echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
4845if test "$ac_cv_sys_file_offset_bits" != no; then
4846
4847cat >>confdefs.h <<_ACEOF
4848#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4849_ACEOF
4850
4851fi
4852rm -f conftest*
4853 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
4854echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
4855if test "${ac_cv_sys_large_files+set}" = set; then
4856 echo $ECHO_N "(cached) $ECHO_C" >&6
4857else
4858 while :; do
4859 ac_cv_sys_large_files=no
4860 cat >conftest.$ac_ext <<_ACEOF
4861/* confdefs.h. */
4862_ACEOF
4863cat confdefs.h >>conftest.$ac_ext
4864cat >>conftest.$ac_ext <<_ACEOF
4865/* end confdefs.h. */
4866#include <sys/types.h>
4867 /* Check that off_t can represent 2**63 - 1 correctly.
4868 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4869 since some C++ compilers masquerading as C compilers
4870 incorrectly reject 9223372036854775807. */
4871#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4872 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4873 && LARGE_OFF_T % 2147483647 == 1)
4874 ? 1 : -1];
4875int
4876main ()
4877{
4878
4879 ;
4880 return 0;
4881}
4882_ACEOF
4883rm -f conftest.$ac_objext
4884if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4885 (eval $ac_compile) 2>conftest.er1
4886 ac_status=$?
4887 grep -v '^ *+' conftest.er1 >conftest.err
4888 rm -f conftest.er1
4889 cat conftest.err >&5
4890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4891 (exit $ac_status); } &&
1fb2002d 4892 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9cdc381b
BD
4893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4894 (eval $ac_try) 2>&5
4895 ac_status=$?
4896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4897 (exit $ac_status); }; } &&
4898 { ac_try='test -s conftest.$ac_objext'
4899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4900 (eval $ac_try) 2>&5
4901 ac_status=$?
4902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4903 (exit $ac_status); }; }; then
4904 break
4905else
4906 echo "$as_me: failed program was:" >&5
4907sed 's/^/| /' conftest.$ac_ext >&5
4908
4909fi
4910rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4911 cat >conftest.$ac_ext <<_ACEOF
4912/* confdefs.h. */
4913_ACEOF
4914cat confdefs.h >>conftest.$ac_ext
4915cat >>conftest.$ac_ext <<_ACEOF
4916/* end confdefs.h. */
4917#define _LARGE_FILES 1
4918#include <sys/types.h>
4919 /* Check that off_t can represent 2**63 - 1 correctly.
4920 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4921 since some C++ compilers masquerading as C compilers
4922 incorrectly reject 9223372036854775807. */
4923#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4924 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4925 && LARGE_OFF_T % 2147483647 == 1)
4926 ? 1 : -1];
4927int
4928main ()
4929{
4930
4931 ;
4932 return 0;
4933}
4934_ACEOF
4935rm -f conftest.$ac_objext
4936if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4937 (eval $ac_compile) 2>conftest.er1
4938 ac_status=$?
4939 grep -v '^ *+' conftest.er1 >conftest.err
4940 rm -f conftest.er1
4941 cat conftest.err >&5
4942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4943 (exit $ac_status); } &&
1fb2002d 4944 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9cdc381b
BD
4945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4946 (eval $ac_try) 2>&5
4947 ac_status=$?
4948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4949 (exit $ac_status); }; } &&
4950 { ac_try='test -s conftest.$ac_objext'
4951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4952 (eval $ac_try) 2>&5
4953 ac_status=$?
4954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4955 (exit $ac_status); }; }; then
4956 ac_cv_sys_large_files=1; break
4957else
4958 echo "$as_me: failed program was:" >&5
4959sed 's/^/| /' conftest.$ac_ext >&5
4960
4961fi
4962rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4963 break
4964done
4965fi
4966echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
4967echo "${ECHO_T}$ac_cv_sys_large_files" >&6
4968if test "$ac_cv_sys_large_files" != no; then
4969
4970cat >>confdefs.h <<_ACEOF
4971#define _LARGE_FILES $ac_cv_sys_large_files
4972_ACEOF
4973
4974fi
4975rm -f conftest*
4976fi
4977
f77b6ca3 4978ac_ext=c
96b8a615
AJ
4979ac_cpp='$CPP $CPPFLAGS'
4980ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4981ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4982ac_compiler_gnu=$ac_cv_c_compiler_gnu
4983echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4984echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
4985# On Suns, sometimes $CPP names a directory.
4986if test -n "$CPP" && test -d "$CPP"; then
4987 CPP=
6de9cd9a 4988fi
96b8a615
AJ
4989if test -z "$CPP"; then
4990 if test "${ac_cv_prog_CPP+set}" = set; then
4991 echo $ECHO_N "(cached) $ECHO_C" >&6
6de9cd9a 4992else
96b8a615
AJ
4993 # Double quotes because CPP needs to be expanded
4994 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4995 do
4996 ac_preproc_ok=false
4997for ac_c_preproc_warn_flag in '' yes
4998do
4999 # Use a header file that comes with gcc, so configuring glibc
5000 # with a fresh cross-compiler works.
5001 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5002 # <limits.h> exists even on freestanding compilers.
5003 # On the NeXT, cc -E runs the code through the compiler's parser,
5004 # not just through cpp. "Syntax error" is here to catch this case.
6de9cd9a
DN
5005 cat >conftest.$ac_ext <<_ACEOF
5006/* confdefs.h. */
5007_ACEOF
5008cat confdefs.h >>conftest.$ac_ext
5009cat >>conftest.$ac_ext <<_ACEOF
5010/* end confdefs.h. */
96b8a615
AJ
5011#ifdef __STDC__
5012# include <limits.h>
6de9cd9a 5013#else
96b8a615 5014# include <assert.h>
6de9cd9a 5015#endif
96b8a615 5016 Syntax error
6de9cd9a 5017_ACEOF
96b8a615
AJ
5018if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5019 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6de9cd9a 5020 ac_status=$?
96b8a615
AJ
5021 grep -v '^ *+' conftest.er1 >conftest.err
5022 rm -f conftest.er1
5023 cat conftest.err >&5
6de9cd9a 5024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
96b8a615
AJ
5025 (exit $ac_status); } >/dev/null; then
5026 if test -s conftest.err; then
5027 ac_cpp_err=$ac_c_preproc_warn_flag
5028 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5029 else
5030 ac_cpp_err=
5031 fi
5032else
5033 ac_cpp_err=yes
5034fi
5035if test -z "$ac_cpp_err"; then
6de9cd9a
DN
5036 :
5037else
96b8a615 5038 echo "$as_me: failed program was:" >&5
6de9cd9a
DN
5039sed 's/^/| /' conftest.$ac_ext >&5
5040
96b8a615
AJ
5041 # Broken: fails on valid input.
5042continue
6de9cd9a 5043fi
96b8a615 5044rm -f conftest.err conftest.$ac_ext
6de9cd9a 5045
96b8a615
AJ
5046 # OK, works on sane cases. Now check whether non-existent headers
5047 # can be detected and how.
5048 cat >conftest.$ac_ext <<_ACEOF
6de9cd9a
DN
5049/* confdefs.h. */
5050_ACEOF
5051cat confdefs.h >>conftest.$ac_ext
5052cat >>conftest.$ac_ext <<_ACEOF
5053/* end confdefs.h. */
96b8a615 5054#include <ac_nonexistent.h>
6de9cd9a 5055_ACEOF
96b8a615
AJ
5056if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5057 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6de9cd9a
DN
5058 ac_status=$?
5059 grep -v '^ *+' conftest.er1 >conftest.err
5060 rm -f conftest.er1
5061 cat conftest.err >&5
5062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
96b8a615
AJ
5063 (exit $ac_status); } >/dev/null; then
5064 if test -s conftest.err; then
5065 ac_cpp_err=$ac_c_preproc_warn_flag
5066 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5067 else
5068 ac_cpp_err=
5069 fi
5070else
5071 ac_cpp_err=yes
5072fi
5073if test -z "$ac_cpp_err"; then
5074 # Broken: success on invalid input.
5075continue
6de9cd9a
DN
5076else
5077 echo "$as_me: failed program was:" >&5
5078sed 's/^/| /' conftest.$ac_ext >&5
5079
96b8a615
AJ
5080 # Passes both tests.
5081ac_preproc_ok=:
5082break
6de9cd9a 5083fi
96b8a615 5084rm -f conftest.err conftest.$ac_ext
6de9cd9a 5085
96b8a615
AJ
5086done
5087# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5088rm -f conftest.err conftest.$ac_ext
5089if $ac_preproc_ok; then
5090 break
5091fi
5092
5093 done
5094 ac_cv_prog_CPP=$CPP
5095
5096fi
5097 CPP=$ac_cv_prog_CPP
5098else
5099 ac_cv_prog_CPP=$CPP
5100fi
5101echo "$as_me:$LINENO: result: $CPP" >&5
5102echo "${ECHO_T}$CPP" >&6
5103ac_preproc_ok=false
5104for ac_c_preproc_warn_flag in '' yes
5105do
5106 # Use a header file that comes with gcc, so configuring glibc
5107 # with a fresh cross-compiler works.
5108 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5109 # <limits.h> exists even on freestanding compilers.
5110 # On the NeXT, cc -E runs the code through the compiler's parser,
5111 # not just through cpp. "Syntax error" is here to catch this case.
5112 cat >conftest.$ac_ext <<_ACEOF
6de9cd9a
DN
5113/* confdefs.h. */
5114_ACEOF
5115cat confdefs.h >>conftest.$ac_ext
5116cat >>conftest.$ac_ext <<_ACEOF
5117/* end confdefs.h. */
96b8a615
AJ
5118#ifdef __STDC__
5119# include <limits.h>
5120#else
5121# include <assert.h>
5122#endif
5123 Syntax error
6de9cd9a
DN
5124_ACEOF
5125if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5126 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5127 ac_status=$?
5128 grep -v '^ *+' conftest.er1 >conftest.err
5129 rm -f conftest.er1
5130 cat conftest.err >&5
5131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5132 (exit $ac_status); } >/dev/null; then
5133 if test -s conftest.err; then
5134 ac_cpp_err=$ac_c_preproc_warn_flag
5135 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5136 else
5137 ac_cpp_err=
5138 fi
5139else
5140 ac_cpp_err=yes
5141fi
5142if test -z "$ac_cpp_err"; then
96b8a615 5143 :
6de9cd9a
DN
5144else
5145 echo "$as_me: failed program was:" >&5
5146sed 's/^/| /' conftest.$ac_ext >&5
5147
96b8a615
AJ
5148 # Broken: fails on valid input.
5149continue
6de9cd9a
DN
5150fi
5151rm -f conftest.err conftest.$ac_ext
6de9cd9a 5152
96b8a615
AJ
5153 # OK, works on sane cases. Now check whether non-existent headers
5154 # can be detected and how.
5155 cat >conftest.$ac_ext <<_ACEOF
5156/* confdefs.h. */
5157_ACEOF
5158cat confdefs.h >>conftest.$ac_ext
5159cat >>conftest.$ac_ext <<_ACEOF
5160/* end confdefs.h. */
5161#include <ac_nonexistent.h>
6de9cd9a 5162_ACEOF
96b8a615
AJ
5163if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5164 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5165 ac_status=$?
5166 grep -v '^ *+' conftest.er1 >conftest.err
5167 rm -f conftest.er1
5168 cat conftest.err >&5
5169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5170 (exit $ac_status); } >/dev/null; then
5171 if test -s conftest.err; then
5172 ac_cpp_err=$ac_c_preproc_warn_flag
5173 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5174 else
5175 ac_cpp_err=
5176 fi
5177else
5178 ac_cpp_err=yes
5179fi
5180if test -z "$ac_cpp_err"; then
5181 # Broken: success on invalid input.
5182continue
5183else
5184 echo "$as_me: failed program was:" >&5
5185sed 's/^/| /' conftest.$ac_ext >&5
6de9cd9a 5186
96b8a615
AJ
5187 # Passes both tests.
5188ac_preproc_ok=:
5189break
6de9cd9a 5190fi
96b8a615 5191rm -f conftest.err conftest.$ac_ext
6de9cd9a
DN
5192
5193done
96b8a615
AJ
5194# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5195rm -f conftest.err conftest.$ac_ext
5196if $ac_preproc_ok; then
5197 :
5198else
5199 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5200See \`config.log' for more details." >&5
5201echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5202See \`config.log' for more details." >&2;}
5203 { (exit 1); exit 1; }; }
5204fi
6de9cd9a 5205
96b8a615
AJ
5206ac_ext=c
5207ac_cpp='$CPP $CPPFLAGS'
5208ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5209ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5210ac_compiler_gnu=$ac_cv_c_compiler_gnu
6de9cd9a
DN
5211
5212
96b8a615
AJ
5213echo "$as_me:$LINENO: checking for egrep" >&5
5214echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5215if test "${ac_cv_prog_egrep+set}" = set; then
5216 echo $ECHO_N "(cached) $ECHO_C" >&6
5217else
5218 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
5219 then ac_cv_prog_egrep='grep -E'
5220 else ac_cv_prog_egrep='egrep'
5221 fi
5222fi
5223echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
5224echo "${ECHO_T}$ac_cv_prog_egrep" >&6
5225 EGREP=$ac_cv_prog_egrep
6de9cd9a
DN
5226
5227
96b8a615
AJ
5228echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5229echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5230if test "${ac_cv_header_stdc+set}" = set; then
6de9cd9a 5231 echo $ECHO_N "(cached) $ECHO_C" >&6
6de9cd9a 5232else
96b8a615 5233 cat >conftest.$ac_ext <<_ACEOF
6de9cd9a
DN
5234/* confdefs.h. */
5235_ACEOF
5236cat confdefs.h >>conftest.$ac_ext
5237cat >>conftest.$ac_ext <<_ACEOF
5238/* end confdefs.h. */
96b8a615
AJ
5239#include <stdlib.h>
5240#include <stdarg.h>
5241#include <string.h>
5242#include <float.h>
5243
5244int
5245main ()
5246{
5247
5248 ;
5249 return 0;
5250}
6de9cd9a
DN
5251_ACEOF
5252rm -f conftest.$ac_objext
5253if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5254 (eval $ac_compile) 2>conftest.er1
5255 ac_status=$?
5256 grep -v '^ *+' conftest.er1 >conftest.err
5257 rm -f conftest.er1
5258 cat conftest.err >&5
5259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5260 (exit $ac_status); } &&
1fb2002d 5261 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6de9cd9a
DN
5262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5263 (eval $ac_try) 2>&5
5264 ac_status=$?
5265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5266 (exit $ac_status); }; } &&
5267 { ac_try='test -s conftest.$ac_objext'
5268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5269 (eval $ac_try) 2>&5
5270 ac_status=$?
5271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5272 (exit $ac_status); }; }; then
96b8a615 5273 ac_cv_header_stdc=yes
6de9cd9a
DN
5274else
5275 echo "$as_me: failed program was:" >&5
5276sed 's/^/| /' conftest.$ac_ext >&5
5277
96b8a615 5278ac_cv_header_stdc=no
6de9cd9a
DN
5279fi
5280rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6de9cd9a 5281
96b8a615
AJ
5282if test $ac_cv_header_stdc = yes; then
5283 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5284 cat >conftest.$ac_ext <<_ACEOF
6de9cd9a
DN
5285/* confdefs.h. */
5286_ACEOF
5287cat confdefs.h >>conftest.$ac_ext
5288cat >>conftest.$ac_ext <<_ACEOF
5289/* end confdefs.h. */
96b8a615
AJ
5290#include <string.h>
5291
6de9cd9a 5292_ACEOF
96b8a615
AJ
5293if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5294 $EGREP "memchr" >/dev/null 2>&1; then
5295 :
6de9cd9a 5296else
96b8a615 5297 ac_cv_header_stdc=no
6de9cd9a 5298fi
96b8a615
AJ
5299rm -f conftest*
5300
5301fi
5302
5303if test $ac_cv_header_stdc = yes; then
5304 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5305 cat >conftest.$ac_ext <<_ACEOF
5306/* confdefs.h. */
5307_ACEOF
5308cat confdefs.h >>conftest.$ac_ext
5309cat >>conftest.$ac_ext <<_ACEOF
5310/* end confdefs.h. */
5311#include <stdlib.h>
5312
5313_ACEOF
5314if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5315 $EGREP "free" >/dev/null 2>&1; then
5316 :
6de9cd9a 5317else
96b8a615
AJ
5318 ac_cv_header_stdc=no
5319fi
5320rm -f conftest*
5321
5322fi
5323
5324if test $ac_cv_header_stdc = yes; then
5325 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5326 if test "$cross_compiling" = yes; then
5327 :
5328else
5329 cat >conftest.$ac_ext <<_ACEOF
5330/* confdefs.h. */
5331_ACEOF
5332cat confdefs.h >>conftest.$ac_ext
5333cat >>conftest.$ac_ext <<_ACEOF
5334/* end confdefs.h. */
5335#include <ctype.h>
5336#if ((' ' & 0x0FF) == 0x020)
5337# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5338# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5339#else
5340# define ISLOWER(c) \
5341 (('a' <= (c) && (c) <= 'i') \
5342 || ('j' <= (c) && (c) <= 'r') \
5343 || ('s' <= (c) && (c) <= 'z'))
5344# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5345#endif
5346
5347#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5348int
5349main ()
5350{
5351 int i;
5352 for (i = 0; i < 256; i++)
5353 if (XOR (islower (i), ISLOWER (i))
5354 || toupper (i) != TOUPPER (i))
5355 exit(2);
5356 exit (0);
5357}
5358_ACEOF
5359rm -f conftest$ac_exeext
5360if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5361 (eval $ac_link) 2>&5
5362 ac_status=$?
5363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5364 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5366 (eval $ac_try) 2>&5
5367 ac_status=$?
5368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5369 (exit $ac_status); }; }; then
5370 :
5371else
5372 echo "$as_me: program exited with status $ac_status" >&5
5373echo "$as_me: failed program was:" >&5
6de9cd9a
DN
5374sed 's/^/| /' conftest.$ac_ext >&5
5375
96b8a615
AJ
5376( exit $ac_status )
5377ac_cv_header_stdc=no
6de9cd9a 5378fi
96b8a615
AJ
5379rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5380fi
5381fi
5382fi
5383echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5384echo "${ECHO_T}$ac_cv_header_stdc" >&6
5385if test $ac_cv_header_stdc = yes; then
6de9cd9a 5386
96b8a615
AJ
5387cat >>confdefs.h <<\_ACEOF
5388#define STDC_HEADERS 1
5389_ACEOF
5390
5391fi
5392
5393# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5394
5395
5396
5397
5398
5399
5400
5401
5402
5403for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5404 inttypes.h stdint.h unistd.h
5405do
5406as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6de9cd9a
DN
5407echo "$as_me:$LINENO: checking for $ac_header" >&5
5408echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5409if eval "test \"\${$as_ac_Header+set}\" = set"; then
5410 echo $ECHO_N "(cached) $ECHO_C" >&6
5411else
96b8a615
AJ
5412 cat >conftest.$ac_ext <<_ACEOF
5413/* confdefs.h. */
5414_ACEOF
5415cat confdefs.h >>conftest.$ac_ext
5416cat >>conftest.$ac_ext <<_ACEOF
5417/* end confdefs.h. */
5418$ac_includes_default
5419
5420#include <$ac_header>
5421_ACEOF
5422rm -f conftest.$ac_objext
5423if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5424 (eval $ac_compile) 2>conftest.er1
5425 ac_status=$?
5426 grep -v '^ *+' conftest.er1 >conftest.err
5427 rm -f conftest.er1
5428 cat conftest.err >&5
5429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5430 (exit $ac_status); } &&
1fb2002d 5431 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
96b8a615
AJ
5432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5433 (eval $ac_try) 2>&5
5434 ac_status=$?
5435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5436 (exit $ac_status); }; } &&
5437 { ac_try='test -s conftest.$ac_objext'
5438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5439 (eval $ac_try) 2>&5
5440 ac_status=$?
5441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5442 (exit $ac_status); }; }; then
5443 eval "$as_ac_Header=yes"
5444else
5445 echo "$as_me: failed program was:" >&5
5446sed 's/^/| /' conftest.$ac_ext >&5
5447
5448eval "$as_ac_Header=no"
5449fi
5450rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6de9cd9a
DN
5451fi
5452echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5453echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6de9cd9a
DN
5454if test `eval echo '${'$as_ac_Header'}'` = yes; then
5455 cat >>confdefs.h <<_ACEOF
5456#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5457_ACEOF
5458
5459fi
5460
5461done
5462
96b8a615
AJ
5463
5464
5465
5466for ac_header in stdlib.h unistd.h
5467do
5468as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5469if eval "test \"\${$as_ac_Header+set}\" = set"; then
5470 echo "$as_me:$LINENO: checking for $ac_header" >&5
5471echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5472if eval "test \"\${$as_ac_Header+set}\" = set"; then
6de9cd9a
DN
5473 echo $ECHO_N "(cached) $ECHO_C" >&6
5474fi
96b8a615
AJ
5475echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5476echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6de9cd9a
DN
5477else
5478 # Is the header compilable?
96b8a615
AJ
5479echo "$as_me:$LINENO: checking $ac_header usability" >&5
5480echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6de9cd9a
DN
5481cat >conftest.$ac_ext <<_ACEOF
5482/* confdefs.h. */
5483_ACEOF
5484cat confdefs.h >>conftest.$ac_ext
5485cat >>conftest.$ac_ext <<_ACEOF
5486/* end confdefs.h. */
5487$ac_includes_default
96b8a615 5488#include <$ac_header>
6de9cd9a
DN
5489_ACEOF
5490rm -f conftest.$ac_objext
5491if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5492 (eval $ac_compile) 2>conftest.er1
5493 ac_status=$?
5494 grep -v '^ *+' conftest.er1 >conftest.err
5495 rm -f conftest.er1
5496 cat conftest.err >&5
5497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5498 (exit $ac_status); } &&
1fb2002d 5499 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6de9cd9a
DN
5500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5501 (eval $ac_try) 2>&5
5502 ac_status=$?
5503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5504 (exit $ac_status); }; } &&
5505 { ac_try='test -s conftest.$ac_objext'
5506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5507 (eval $ac_try) 2>&5
5508 ac_status=$?
5509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5510 (exit $ac_status); }; }; then
5511 ac_header_compiler=yes
5512else
5513 echo "$as_me: failed program was:" >&5
5514sed 's/^/| /' conftest.$ac_ext >&5
5515
5516ac_header_compiler=no
5517fi
5518rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5519echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5520echo "${ECHO_T}$ac_header_compiler" >&6
5521
5522# Is the header present?
96b8a615
AJ
5523echo "$as_me:$LINENO: checking $ac_header presence" >&5
5524echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6de9cd9a
DN
5525cat >conftest.$ac_ext <<_ACEOF
5526/* confdefs.h. */
5527_ACEOF
5528cat confdefs.h >>conftest.$ac_ext
5529cat >>conftest.$ac_ext <<_ACEOF
5530/* end confdefs.h. */
96b8a615 5531#include <$ac_header>
6de9cd9a
DN
5532_ACEOF
5533if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5534 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5535 ac_status=$?
5536 grep -v '^ *+' conftest.er1 >conftest.err
5537 rm -f conftest.er1
5538 cat conftest.err >&5
5539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5540 (exit $ac_status); } >/dev/null; then
5541 if test -s conftest.err; then
5542 ac_cpp_err=$ac_c_preproc_warn_flag
5543 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5544 else
5545 ac_cpp_err=
5546 fi
5547else
5548 ac_cpp_err=yes
5549fi
5550if test -z "$ac_cpp_err"; then
5551 ac_header_preproc=yes
5552else
5553 echo "$as_me: failed program was:" >&5
5554sed 's/^/| /' conftest.$ac_ext >&5
5555
5556 ac_header_preproc=no
5557fi
5558rm -f conftest.err conftest.$ac_ext
5559echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5560echo "${ECHO_T}$ac_header_preproc" >&6
5561
5562# So? What about this header?
5563case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5564 yes:no: )
96b8a615
AJ
5565 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5566echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5567 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5568echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6de9cd9a
DN
5569 ac_header_preproc=yes
5570 ;;
5571 no:yes:* )
96b8a615
AJ
5572 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5573echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5574 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5575echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5576 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5577echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5578 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5579echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5580 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5581echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5582 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5583echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6de9cd9a
DN
5584 (
5585 cat <<\_ASBOX
5586## ------------------------------------------------------ ##
5587## Report this to the GNU Fortran Runtime Library lists. ##
5588## ------------------------------------------------------ ##
5589_ASBOX
5590 ) |
5591 sed "s/^/$as_me: WARNING: /" >&2
5592 ;;
5593esac
96b8a615
AJ
5594echo "$as_me:$LINENO: checking for $ac_header" >&5
5595echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5596if eval "test \"\${$as_ac_Header+set}\" = set"; then
6de9cd9a
DN
5597 echo $ECHO_N "(cached) $ECHO_C" >&6
5598else
96b8a615 5599 eval "$as_ac_Header=\$ac_header_preproc"
6de9cd9a 5600fi
96b8a615
AJ
5601echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5602echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5603
5604fi
5605if test `eval echo '${'$as_ac_Header'}'` = yes; then
5606 cat >>confdefs.h <<_ACEOF
5607#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5608_ACEOF
6de9cd9a 5609
96b8a615 5610fi
6de9cd9a 5611
96b8a615 5612done
6de9cd9a
DN
5613
5614
96b8a615 5615for ac_func in getpagesize
6de9cd9a
DN
5616do
5617as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5618echo "$as_me:$LINENO: checking for $ac_func" >&5
5619echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5620if eval "test \"\${$as_ac_var+set}\" = set"; then
5621 echo $ECHO_N "(cached) $ECHO_C" >&6
5622else
f77b6ca3 5623 cat >conftest.$ac_ext <<_ACEOF
6de9cd9a
DN
5624/* confdefs.h. */
5625_ACEOF
5626cat confdefs.h >>conftest.$ac_ext
5627cat >>conftest.$ac_ext <<_ACEOF
5628/* end confdefs.h. */
5629/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5630 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5631#define $ac_func innocuous_$ac_func
5632
5633/* System header to define __stub macros and hopefully few prototypes,
5634 which can conflict with char $ac_func (); below.
5635 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5636 <limits.h> exists even on freestanding compilers. */
5637
5638#ifdef __STDC__
5639# include <limits.h>
5640#else
5641# include <assert.h>
5642#endif
5643
5644#undef $ac_func
5645
5646/* Override any gcc2 internal prototype to avoid an error. */
5647#ifdef __cplusplus
5648extern "C"
5649{
5650#endif
5651/* We use char because int might match the return type of a gcc2
5652 builtin and then its argument prototype would still apply. */
5653char $ac_func ();
5654/* The GNU C library defines this for functions which it implements
5655 to always fail with ENOSYS. Some functions are actually named
5656 something starting with __ and the normal name is an alias. */
5657#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5658choke me
5659#else
5660char (*f) () = $ac_func;
5661#endif
5662#ifdef __cplusplus
5663}
5664#endif
5665
5666int
5667main ()
5668{
5669return f != $ac_func;
5670 ;
5671 return 0;
5672}
5673_ACEOF
5674rm -f conftest.$ac_objext conftest$ac_exeext
5675if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5676 (eval $ac_link) 2>conftest.er1
5677 ac_status=$?
5678 grep -v '^ *+' conftest.er1 >conftest.err
5679 rm -f conftest.er1
5680 cat conftest.err >&5
5681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5682 (exit $ac_status); } &&
1fb2002d 5683 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6de9cd9a
DN
5684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5685 (eval $ac_try) 2>&5
5686 ac_status=$?
5687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5688 (exit $ac_status); }; } &&
5689 { ac_try='test -s conftest$ac_exeext'
5690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5691 (eval $ac_try) 2>&5
5692 ac_status=$?
5693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5694 (exit $ac_status); }; }; then
5695 eval "$as_ac_var=yes"
5696else
5697 echo "$as_me: failed program was:" >&5
5698sed 's/^/| /' conftest.$ac_ext >&5
5699
5700eval "$as_ac_var=no"
5701fi
5702rm -f conftest.err conftest.$ac_objext \
5703 conftest$ac_exeext conftest.$ac_ext
5704fi
5705echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5706echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5707if test `eval echo '${'$as_ac_var'}'` = yes; then
5708 cat >>confdefs.h <<_ACEOF
5709#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5710_ACEOF
5711
5712fi
5713done
5714
96b8a615
AJ
5715echo "$as_me:$LINENO: checking for working mmap" >&5
5716echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
5717if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
6de9cd9a 5718 echo $ECHO_N "(cached) $ECHO_C" >&6
96b8a615
AJ
5719else
5720 if test "$cross_compiling" = yes; then
5721 ac_cv_func_mmap_fixed_mapped=no
6de9cd9a
DN
5722else
5723 cat >conftest.$ac_ext <<_ACEOF
5724/* confdefs.h. */
5725_ACEOF
5726cat confdefs.h >>conftest.$ac_ext
5727cat >>conftest.$ac_ext <<_ACEOF
5728/* end confdefs.h. */
96b8a615
AJ
5729$ac_includes_default
5730/* malloc might have been renamed as rpl_malloc. */
5731#undef malloc
5732
5733/* Thanks to Mike Haertel and Jim Avera for this test.
5734 Here is a matrix of mmap possibilities:
5735 mmap private not fixed
5736 mmap private fixed at somewhere currently unmapped
5737 mmap private fixed at somewhere already mapped
5738 mmap shared not fixed
5739 mmap shared fixed at somewhere currently unmapped
5740 mmap shared fixed at somewhere already mapped
5741 For private mappings, we should verify that changes cannot be read()
5742 back from the file, nor mmap's back from the file at a different
5743 address. (There have been systems where private was not correctly
5744 implemented like the infamous i386 svr4.0, and systems where the
5745 VM page cache was not coherent with the file system buffer cache
5746 like early versions of FreeBSD and possibly contemporary NetBSD.)
5747 For shared mappings, we should conversely verify that changes get
5748 propagated back to all the places they're supposed to be.
5749
5750 Grep wants private fixed already mapped.
5751 The main things grep needs to know about mmap are:
5752 * does it exist and is it safe to write into the mmap'd area
5753 * how to use it (BSD variants) */
5754
5755#include <fcntl.h>
5756#include <sys/mman.h>
5757
5758#if !STDC_HEADERS && !HAVE_STDLIB_H
5759char *malloc ();
5760#endif
5761
5762/* This mess was copied from the GNU getpagesize.h. */
5763#if !HAVE_GETPAGESIZE
5764/* Assume that all systems that can run configure have sys/param.h. */
5765# if !HAVE_SYS_PARAM_H
5766# define HAVE_SYS_PARAM_H 1
5767# endif
5768
5769# ifdef _SC_PAGESIZE
5770# define getpagesize() sysconf(_SC_PAGESIZE)
5771# else /* no _SC_PAGESIZE */
5772# if HAVE_SYS_PARAM_H
5773# include <sys/param.h>
5774# ifdef EXEC_PAGESIZE
5775# define getpagesize() EXEC_PAGESIZE
5776# else /* no EXEC_PAGESIZE */
5777# ifdef NBPG
5778# define getpagesize() NBPG * CLSIZE
5779# ifndef CLSIZE
5780# define CLSIZE 1
5781# endif /* no CLSIZE */
5782# else /* no NBPG */
5783# ifdef NBPC
5784# define getpagesize() NBPC
5785# else /* no NBPC */
5786# ifdef PAGESIZE
5787# define getpagesize() PAGESIZE
5788# endif /* PAGESIZE */
5789# endif /* no NBPC */
5790# endif /* no NBPG */
5791# endif /* no EXEC_PAGESIZE */
5792# else /* no HAVE_SYS_PARAM_H */
5793# define getpagesize() 8192 /* punt totally */
5794# endif /* no HAVE_SYS_PARAM_H */
5795# endif /* no _SC_PAGESIZE */
5796
5797#endif /* no HAVE_GETPAGESIZE */
6de9cd9a
DN
5798
5799int
5800main ()
5801{
96b8a615
AJ
5802 char *data, *data2, *data3;
5803 int i, pagesize;
5804 int fd;
5805
5806 pagesize = getpagesize ();
5807
5808 /* First, make a file with some known garbage in it. */
5809 data = (char *) malloc (pagesize);
5810 if (!data)
5811 exit (1);
5812 for (i = 0; i < pagesize; ++i)
5813 *(data + i) = rand ();
5814 umask (0);
5815 fd = creat ("conftest.mmap", 0600);
5816 if (fd < 0)
5817 exit (1);
5818 if (write (fd, data, pagesize) != pagesize)
5819 exit (1);
5820 close (fd);
5821
5822 /* Next, try to mmap the file at a fixed address which already has
5823 something else allocated at it. If we can, also make sure that
5824 we see the same garbage. */
5825 fd = open ("conftest.mmap", O_RDWR);
5826 if (fd < 0)
5827 exit (1);
5828 data2 = (char *) malloc (2 * pagesize);
5829 if (!data2)
5830 exit (1);
5831 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
5832 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
5833 MAP_PRIVATE | MAP_FIXED, fd, 0L))
5834 exit (1);
5835 for (i = 0; i < pagesize; ++i)
5836 if (*(data + i) != *(data2 + i))
5837 exit (1);
5838
5839 /* Finally, make sure that changes to the mapped area do not
5840 percolate back to the file as seen by read(). (This is a bug on
5841 some variants of i386 svr4.0.) */
5842 for (i = 0; i < pagesize; ++i)
5843 *(data2 + i) = *(data2 + i) + 1;
5844 data3 = (char *) malloc (pagesize);
5845 if (!data3)
5846 exit (1);
5847 if (read (fd, data3, pagesize) != pagesize)
5848 exit (1);
5849 for (i = 0; i < pagesize; ++i)
5850 if (*(data + i) != *(data3 + i))
5851 exit (1);
5852 close (fd);
5853 exit (0);
6de9cd9a
DN
5854}
5855_ACEOF
96b8a615
AJ
5856rm -f conftest$ac_exeext
5857if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5858 (eval $ac_link) 2>&5
6de9cd9a
DN
5859 ac_status=$?
5860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
96b8a615 5861 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6de9cd9a
DN
5862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5863 (eval $ac_try) 2>&5
5864 ac_status=$?
5865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5866 (exit $ac_status); }; }; then
96b8a615 5867 ac_cv_func_mmap_fixed_mapped=yes
6de9cd9a 5868else
96b8a615
AJ
5869 echo "$as_me: program exited with status $ac_status" >&5
5870echo "$as_me: failed program was:" >&5
6de9cd9a
DN
5871sed 's/^/| /' conftest.$ac_ext >&5
5872
96b8a615
AJ
5873( exit $ac_status )
5874ac_cv_func_mmap_fixed_mapped=no
6de9cd9a 5875fi
96b8a615 5876rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6de9cd9a 5877fi
96b8a615
AJ
5878fi
5879echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
5880echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
5881if test $ac_cv_func_mmap_fixed_mapped = yes; then
6de9cd9a
DN
5882
5883cat >>confdefs.h <<\_ACEOF
96b8a615 5884#define HAVE_MMAP 1
6de9cd9a
DN
5885_ACEOF
5886
5887fi
96b8a615 5888rm -f conftest.mmap
6de9cd9a 5889
96b8a615
AJ
5890echo "$as_me:$LINENO: checking for off_t" >&5
5891echo $ECHO_N "checking for off_t... $ECHO_C" >&6
5892if test "${ac_cv_type_off_t+set}" = set; then
6de9cd9a
DN
5893 echo $ECHO_N "(cached) $ECHO_C" >&6
5894else
96b8a615
AJ
5895 cat >conftest.$ac_ext <<_ACEOF
5896/* confdefs.h. */
5897_ACEOF
5898cat confdefs.h >>conftest.$ac_ext
5899cat >>conftest.$ac_ext <<_ACEOF
5900/* end confdefs.h. */
5901$ac_includes_default
6de9cd9a
DN
5902int
5903main ()
5904{
96b8a615
AJ
5905if ((off_t *) 0)
5906 return 0;
5907if (sizeof (off_t))
5908 return 0;
6de9cd9a
DN
5909 ;
5910 return 0;
5911}
5912_ACEOF
96b8a615
AJ
5913rm -f conftest.$ac_objext
5914if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5915 (eval $ac_compile) 2>conftest.er1
6de9cd9a
DN
5916 ac_status=$?
5917 grep -v '^ *+' conftest.er1 >conftest.err
5918 rm -f conftest.er1
5919 cat conftest.err >&5
5920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5921 (exit $ac_status); } &&
1fb2002d 5922 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6de9cd9a
DN
5923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5924 (eval $ac_try) 2>&5
5925 ac_status=$?
5926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5927 (exit $ac_status); }; } &&
96b8a615 5928 { ac_try='test -s conftest.$ac_objext'
6de9cd9a
DN
5929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5930 (eval $ac_try) 2>&5
5931 ac_status=$?
5932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5933 (exit $ac_status); }; }; then
96b8a615 5934 ac_cv_type_off_t=yes
6de9cd9a
DN
5935else
5936 echo "$as_me: failed program was:" >&5
5937sed 's/^/| /' conftest.$ac_ext >&5
5938
96b8a615 5939ac_cv_type_off_t=no
6de9cd9a 5940fi
96b8a615 5941rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6de9cd9a 5942fi
96b8a615
AJ
5943echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
5944echo "${ECHO_T}$ac_cv_type_off_t" >&6
5945if test $ac_cv_type_off_t = yes; then
5946 :
5947else
5948
5949cat >>confdefs.h <<_ACEOF
5950#define off_t long
6de9cd9a
DN
5951_ACEOF
5952
5953fi
6de9cd9a 5954
96b8a615
AJ
5955
5956# check header files
5957echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5958echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5959if test "${ac_cv_header_stdc+set}" = set; then
6de9cd9a
DN
5960 echo $ECHO_N "(cached) $ECHO_C" >&6
5961else
5962 cat >conftest.$ac_ext <<_ACEOF
5963/* confdefs.h. */
5964_ACEOF
5965cat confdefs.h >>conftest.$ac_ext
5966cat >>conftest.$ac_ext <<_ACEOF
5967/* end confdefs.h. */
96b8a615
AJ
5968#include <stdlib.h>
5969#include <stdarg.h>
5970#include <string.h>
5971#include <float.h>
5972
6de9cd9a
DN
5973int
5974main ()
5975{
96b8a615 5976
6de9cd9a
DN
5977 ;
5978 return 0;
5979}
5980_ACEOF
5981rm -f conftest.$ac_objext
5982if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5983 (eval $ac_compile) 2>conftest.er1
5984 ac_status=$?
5985 grep -v '^ *+' conftest.er1 >conftest.err
5986 rm -f conftest.er1
5987 cat conftest.err >&5
5988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5989 (exit $ac_status); } &&
1fb2002d 5990 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6de9cd9a
DN
5991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5992 (eval $ac_try) 2>&5
5993 ac_status=$?
5994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5995 (exit $ac_status); }; } &&
5996 { ac_try='test -s conftest.$ac_objext'
5997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5998 (eval $ac_try) 2>&5
5999 ac_status=$?
6000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6001 (exit $ac_status); }; }; then
96b8a615 6002 ac_cv_header_stdc=yes
6de9cd9a
DN
6003else
6004 echo "$as_me: failed program was:" >&5
6005sed 's/^/| /' conftest.$ac_ext >&5
6006
96b8a615 6007ac_cv_header_stdc=no
6de9cd9a
DN
6008fi
6009rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
96b8a615
AJ
6010
6011if test $ac_cv_header_stdc = yes; then
6012 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6de9cd9a
DN
6013 cat >conftest.$ac_ext <<_ACEOF
6014/* confdefs.h. */
6015_ACEOF
6016cat confdefs.h >>conftest.$ac_ext
6017cat >>conftest.$ac_ext <<_ACEOF
6018/* end confdefs.h. */
96b8a615 6019#include <string.h>
6de9cd9a 6020
6de9cd9a 6021_ACEOF
96b8a615
AJ
6022if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6023 $EGREP "memchr" >/dev/null 2>&1; then
6024 :
6de9cd9a 6025else
96b8a615 6026 ac_cv_header_stdc=no
6de9cd9a 6027fi
96b8a615
AJ
6028rm -f conftest*
6029
6de9cd9a 6030fi
6de9cd9a 6031
96b8a615
AJ
6032if test $ac_cv_header_stdc = yes; then
6033 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6034 cat >conftest.$ac_ext <<_ACEOF
6035/* confdefs.h. */
6036_ACEOF
6037cat confdefs.h >>conftest.$ac_ext
6038cat >>conftest.$ac_ext <<_ACEOF
6039/* end confdefs.h. */
6040#include <stdlib.h>
6041
6de9cd9a 6042_ACEOF
96b8a615
AJ
6043if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6044 $EGREP "free" >/dev/null 2>&1; then
6045 :
6046else
6047 ac_cv_header_stdc=no
6048fi
6049rm -f conftest*
6de9cd9a 6050
96b8a615 6051fi
6de9cd9a 6052
96b8a615
AJ
6053if test $ac_cv_header_stdc = yes; then
6054 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6055 if test "$cross_compiling" = yes; then
6056 :
6de9cd9a
DN
6057else
6058 cat >conftest.$ac_ext <<_ACEOF
6059/* confdefs.h. */
6060_ACEOF
6061cat confdefs.h >>conftest.$ac_ext
6062cat >>conftest.$ac_ext <<_ACEOF
6063/* end confdefs.h. */
96b8a615
AJ
6064#include <ctype.h>
6065#if ((' ' & 0x0FF) == 0x020)
6066# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6067# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6de9cd9a 6068#else
96b8a615
AJ
6069# define ISLOWER(c) \
6070 (('a' <= (c) && (c) <= 'i') \
6071 || ('j' <= (c) && (c) <= 'r') \
6072 || ('s' <= (c) && (c) <= 'z'))
6073# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6de9cd9a
DN
6074#endif
6075
96b8a615 6076#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6de9cd9a
DN
6077int
6078main ()
6079{
96b8a615
AJ
6080 int i;
6081 for (i = 0; i < 256; i++)
6082 if (XOR (islower (i), ISLOWER (i))
6083 || toupper (i) != TOUPPER (i))
6084 exit(2);
6085 exit (0);
6de9cd9a
DN
6086}
6087_ACEOF
96b8a615 6088rm -f conftest$ac_exeext
6de9cd9a 6089if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
96b8a615 6090 (eval $ac_link) 2>&5
6de9cd9a
DN
6091 ac_status=$?
6092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
96b8a615 6093 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6de9cd9a
DN
6094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6095 (eval $ac_try) 2>&5
6096 ac_status=$?
96b8a615
AJ
6097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6098 (exit $ac_status); }; }; then
6099 :
6de9cd9a 6100else
96b8a615
AJ
6101 echo "$as_me: program exited with status $ac_status" >&5
6102echo "$as_me: failed program was:" >&5
6103sed 's/^/| /' conftest.$ac_ext >&5
6de9cd9a 6104
96b8a615
AJ
6105( exit $ac_status )
6106ac_cv_header_stdc=no
6de9cd9a 6107fi
96b8a615 6108rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6de9cd9a
DN
6109fi
6110fi
6de9cd9a 6111fi
96b8a615
AJ
6112echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6113echo "${ECHO_T}$ac_cv_header_stdc" >&6
6114if test $ac_cv_header_stdc = yes; then
6de9cd9a 6115
96b8a615
AJ
6116cat >>confdefs.h <<\_ACEOF
6117#define STDC_HEADERS 1
6118_ACEOF
6de9cd9a
DN
6119
6120fi
6121
6de9cd9a
DN
6122
6123
6de9cd9a 6124
6de9cd9a
DN
6125
6126
6127
f77b6ca3
FXC
6128
6129for ac_header in stdlib.h stdio.h string.h stddef.h math.h unistd.h signal.h
96b8a615
AJ
6130do
6131as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6132if eval "test \"\${$as_ac_Header+set}\" = set"; then
6133 echo "$as_me:$LINENO: checking for $ac_header" >&5
6134echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6135if eval "test \"\${$as_ac_Header+set}\" = set"; then
6136 echo $ECHO_N "(cached) $ECHO_C" >&6
6137fi
6138echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6139echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6de9cd9a 6140else
96b8a615
AJ
6141 # Is the header compilable?
6142echo "$as_me:$LINENO: checking $ac_header usability" >&5
6143echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6144cat >conftest.$ac_ext <<_ACEOF
6145/* confdefs.h. */
6146_ACEOF
6147cat confdefs.h >>conftest.$ac_ext
6148cat >>conftest.$ac_ext <<_ACEOF
6149/* end confdefs.h. */
6150$ac_includes_default
6151#include <$ac_header>
6152_ACEOF
6153rm -f conftest.$ac_objext
6154if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6155 (eval $ac_compile) 2>conftest.er1
6156 ac_status=$?
6157 grep -v '^ *+' conftest.er1 >conftest.err
6158 rm -f conftest.er1
6159 cat conftest.err >&5
6160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6161 (exit $ac_status); } &&
1fb2002d 6162 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
96b8a615
AJ
6163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6164 (eval $ac_try) 2>&5
6165 ac_status=$?
6166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6167 (exit $ac_status); }; } &&
6168 { ac_try='test -s conftest.$ac_objext'
6169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6170 (eval $ac_try) 2>&5
6171 ac_status=$?
6172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6173 (exit $ac_status); }; }; then
6174 ac_header_compiler=yes
6de9cd9a 6175else
96b8a615
AJ
6176 echo "$as_me: failed program was:" >&5
6177sed 's/^/| /' conftest.$ac_ext >&5
6178
6179ac_header_compiler=no
6de9cd9a 6180fi
96b8a615
AJ
6181rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6182echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6183echo "${ECHO_T}$ac_header_compiler" >&6
6184
6185# Is the header present?
6186echo "$as_me:$LINENO: checking $ac_header presence" >&5
6187echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6188cat >conftest.$ac_ext <<_ACEOF
6189/* confdefs.h. */
6190_ACEOF
6191cat confdefs.h >>conftest.$ac_ext
6192cat >>conftest.$ac_ext <<_ACEOF
6193/* end confdefs.h. */
6194#include <$ac_header>
6195_ACEOF
6196if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6197 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6198 ac_status=$?
6199 grep -v '^ *+' conftest.er1 >conftest.err
6200 rm -f conftest.er1
6201 cat conftest.err >&5
6202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6203 (exit $ac_status); } >/dev/null; then
6204 if test -s conftest.err; then
6205 ac_cpp_err=$ac_c_preproc_warn_flag
6206 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6207 else
6208 ac_cpp_err=
6209 fi
6de9cd9a 6210else
96b8a615 6211 ac_cpp_err=yes
6de9cd9a 6212fi
96b8a615
AJ
6213if test -z "$ac_cpp_err"; then
6214 ac_header_preproc=yes
6de9cd9a 6215else
96b8a615
AJ
6216 echo "$as_me: failed program was:" >&5
6217sed 's/^/| /' conftest.$ac_ext >&5
6218
6219 ac_header_preproc=no
6de9cd9a 6220fi
96b8a615
AJ
6221rm -f conftest.err conftest.$ac_ext
6222echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6223echo "${ECHO_T}$ac_header_preproc" >&6
6224
6225# So? What about this header?
6226case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6227 yes:no: )
6228 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6229echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6230 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6231echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6232 ac_header_preproc=yes
6233 ;;
6234 no:yes:* )
6235 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6236echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6237 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6238echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6239 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6240echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6241 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6242echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6243 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6244echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6245 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6246echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6247 (
6248 cat <<\_ASBOX
6249## ------------------------------------------------------ ##
6250## Report this to the GNU Fortran Runtime Library lists. ##
6251## ------------------------------------------------------ ##
6252_ASBOX
6253 ) |
6254 sed "s/^/$as_me: WARNING: /" >&2
6255 ;;
6256esac
6257echo "$as_me:$LINENO: checking for $ac_header" >&5
6258echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6259if eval "test \"\${$as_ac_Header+set}\" = set"; then
6de9cd9a
DN
6260 echo $ECHO_N "(cached) $ECHO_C" >&6
6261else
96b8a615 6262 eval "$as_ac_Header=\$ac_header_preproc"
6de9cd9a 6263fi
96b8a615
AJ
6264echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6265echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6de9cd9a 6266
96b8a615
AJ
6267fi
6268if test `eval echo '${'$as_ac_Header'}'` = yes; then
6269 cat >>confdefs.h <<_ACEOF
6270#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6271_ACEOF
6de9cd9a 6272
6de9cd9a 6273fi
6de9cd9a 6274
96b8a615
AJ
6275done
6276
6277
6278
6279
6280
6281
6282for ac_header in time.h sys/params.h sys/time.h sys/times.h sys/resource.h
6283do
6284as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6285if eval "test \"\${$as_ac_Header+set}\" = set"; then
6286 echo "$as_me:$LINENO: checking for $ac_header" >&5
f596fc98
AL
6287echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6288if eval "test \"\${$as_ac_Header+set}\" = set"; then
6289 echo $ECHO_N "(cached) $ECHO_C" >&6
6290fi
6291echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6292echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6293else
6294 # Is the header compilable?
6295echo "$as_me:$LINENO: checking $ac_header usability" >&5
6296echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6297cat >conftest.$ac_ext <<_ACEOF
6298/* confdefs.h. */
6299_ACEOF
6300cat confdefs.h >>conftest.$ac_ext
6301cat >>conftest.$ac_ext <<_ACEOF
6302/* end confdefs.h. */
6303$ac_includes_default
6304#include <$ac_header>
6305_ACEOF
6306rm -f conftest.$ac_objext
6307if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6308 (eval $ac_compile) 2>conftest.er1
6309 ac_status=$?
6310 grep -v '^ *+' conftest.er1 >conftest.err
6311 rm -f conftest.er1
6312 cat conftest.err >&5
6313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6314 (exit $ac_status); } &&
1fb2002d 6315 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
f596fc98
AL
6316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6317 (eval $ac_try) 2>&5
6318 ac_status=$?
6319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6320 (exit $ac_status); }; } &&
6321 { ac_try='test -s conftest.$ac_objext'
6322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6323 (eval $ac_try) 2>&5
6324 ac_status=$?
6325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6326 (exit $ac_status); }; }; then
6327 ac_header_compiler=yes
6328else
6329 echo "$as_me: failed program was:" >&5
6330sed 's/^/| /' conftest.$ac_ext >&5
6331
6332ac_header_compiler=no
6333fi
6334rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6335echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6336echo "${ECHO_T}$ac_header_compiler" >&6
6337
6338# Is the header present?
6339echo "$as_me:$LINENO: checking $ac_header presence" >&5
6340echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6341cat >conftest.$ac_ext <<_ACEOF
6342/* confdefs.h. */
6343_ACEOF
6344cat confdefs.h >>conftest.$ac_ext
6345cat >>conftest.$ac_ext <<_ACEOF
6346/* end confdefs.h. */
6347#include <$ac_header>
6348_ACEOF
6349if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6350 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6351 ac_status=$?
6352 grep -v '^ *+' conftest.er1 >conftest.err
6353 rm -f conftest.er1
6354 cat conftest.err >&5
6355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6356 (exit $ac_status); } >/dev/null; then
6357 if test -s conftest.err; then
6358 ac_cpp_err=$ac_c_preproc_warn_flag
6359 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6360 else
6361 ac_cpp_err=
6362 fi
6363else
6364 ac_cpp_err=yes
6365fi
6366if test -z "$ac_cpp_err"; then
6367 ac_header_preproc=yes
6368else
6369 echo "$as_me: failed program was:" >&5
6370sed 's/^/| /' conftest.$ac_ext >&5
6371
6372 ac_header_preproc=no
6373fi
6374rm -f conftest.err conftest.$ac_ext
6375echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6376echo "${ECHO_T}$ac_header_preproc" >&6
6377
6378# So? What about this header?
6379case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6380 yes:no: )
6381 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6382echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6383 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6384echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6385 ac_header_preproc=yes
6386 ;;
6387 no:yes:* )
6388 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6389echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6390 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6391echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6392 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6393echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6394 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6395echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6396 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6397echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6398 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6399echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6400 (
6401 cat <<\_ASBOX
6402## ------------------------------------------------------ ##
6403## Report this to the GNU Fortran Runtime Library lists. ##
6404## ------------------------------------------------------ ##
6405_ASBOX
6406 ) |
6407 sed "s/^/$as_me: WARNING: /" >&2
6408 ;;
6409esac
6410echo "$as_me:$LINENO: checking for $ac_header" >&5
6411echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6412if eval "test \"\${$as_ac_Header+set}\" = set"; then
6413 echo $ECHO_N "(cached) $ECHO_C" >&6
6414else
6415 eval "$as_ac_Header=\$ac_header_preproc"
6416fi
6417echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6418echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6419
6420fi
6421if test `eval echo '${'$as_ac_Header'}'` = yes; then
6422 cat >>confdefs.h <<_ACEOF
6423#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6424_ACEOF
6425
6426fi
6427
6428done
6429
6430
df65f093
SK
6431
6432
6e4d9244
EB
6433
6434for ac_header in sys/mman.h sys/types.h sys/stat.h ieeefp.h
f596fc98
AL
6435do
6436as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6437if eval "test \"\${$as_ac_Header+set}\" = set"; then
6438 echo "$as_me:$LINENO: checking for $ac_header" >&5
96b8a615
AJ
6439echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6440if eval "test \"\${$as_ac_Header+set}\" = set"; then
6de9cd9a 6441 echo $ECHO_N "(cached) $ECHO_C" >&6
96b8a615
AJ
6442fi
6443echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6444echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6de9cd9a 6445else
96b8a615
AJ
6446 # Is the header compilable?
6447echo "$as_me:$LINENO: checking $ac_header usability" >&5
6448echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6449cat >conftest.$ac_ext <<_ACEOF
6450/* confdefs.h. */
6451_ACEOF
6452cat confdefs.h >>conftest.$ac_ext
6453cat >>conftest.$ac_ext <<_ACEOF
6454/* end confdefs.h. */
6455$ac_includes_default
6456#include <$ac_header>
6457_ACEOF
6458rm -f conftest.$ac_objext
6459if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6460 (eval $ac_compile) 2>conftest.er1
6461 ac_status=$?
6462 grep -v '^ *+' conftest.er1 >conftest.err
6463 rm -f conftest.er1
6464 cat conftest.err >&5
6465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6466 (exit $ac_status); } &&
1fb2002d 6467 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
96b8a615
AJ
6468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6469 (eval $ac_try) 2>&5
6470 ac_status=$?
6471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6472 (exit $ac_status); }; } &&
6473 { ac_try='test -s conftest.$ac_objext'
6474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6475 (eval $ac_try) 2>&5
6476 ac_status=$?
6477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6478 (exit $ac_status); }; }; then
6479 ac_header_compiler=yes
6de9cd9a 6480else
96b8a615
AJ
6481 echo "$as_me: failed program was:" >&5
6482sed 's/^/| /' conftest.$ac_ext >&5
6de9cd9a 6483
96b8a615
AJ
6484ac_header_compiler=no
6485fi
6486rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6487echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6488echo "${ECHO_T}$ac_header_compiler" >&6
6de9cd9a 6489
96b8a615
AJ
6490# Is the header present?
6491echo "$as_me:$LINENO: checking $ac_header presence" >&5
6492echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6493cat >conftest.$ac_ext <<_ACEOF
6494/* confdefs.h. */
6495_ACEOF
6496cat confdefs.h >>conftest.$ac_ext
6497cat >>conftest.$ac_ext <<_ACEOF
6498/* end confdefs.h. */
6499#include <$ac_header>
6500_ACEOF
6501if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6502 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6503 ac_status=$?
6504 grep -v '^ *+' conftest.er1 >conftest.err
6505 rm -f conftest.er1
6506 cat conftest.err >&5
6507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6508 (exit $ac_status); } >/dev/null; then
6509 if test -s conftest.err; then
6510 ac_cpp_err=$ac_c_preproc_warn_flag
6511 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6512 else
6513 ac_cpp_err=
6514 fi
6de9cd9a 6515else
96b8a615 6516 ac_cpp_err=yes
6de9cd9a 6517fi
96b8a615
AJ
6518if test -z "$ac_cpp_err"; then
6519 ac_header_preproc=yes
6de9cd9a 6520else
96b8a615
AJ
6521 echo "$as_me: failed program was:" >&5
6522sed 's/^/| /' conftest.$ac_ext >&5
6de9cd9a 6523
96b8a615
AJ
6524 ac_header_preproc=no
6525fi
6526rm -f conftest.err conftest.$ac_ext
6527echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6528echo "${ECHO_T}$ac_header_preproc" >&6
6de9cd9a 6529
96b8a615
AJ
6530# So? What about this header?
6531case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6532 yes:no: )
6533 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6534echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6535 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6536echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6537 ac_header_preproc=yes
6de9cd9a 6538 ;;
96b8a615
AJ
6539 no:yes:* )
6540 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6541echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6542 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6543echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6544 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6545echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6546 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6547echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6548 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6549echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6550 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6551echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6552 (
6553 cat <<\_ASBOX
6554## ------------------------------------------------------ ##
6555## Report this to the GNU Fortran Runtime Library lists. ##
6556## ------------------------------------------------------ ##
6557_ASBOX
6558 ) |
6559 sed "s/^/$as_me: WARNING: /" >&2
6de9cd9a 6560 ;;
96b8a615
AJ
6561esac
6562echo "$as_me:$LINENO: checking for $ac_header" >&5
6563echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6564if eval "test \"\${$as_ac_Header+set}\" = set"; then
6565 echo $ECHO_N "(cached) $ECHO_C" >&6
6566else
6567 eval "$as_ac_Header=\$ac_header_preproc"
6568fi
6569echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6570echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6de9cd9a 6571
96b8a615
AJ
6572fi
6573if test `eval echo '${'$as_ac_Header'}'` = yes; then
6574 cat >>confdefs.h <<_ACEOF
6575#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6576_ACEOF
6de9cd9a 6577
96b8a615 6578fi
6de9cd9a 6579
96b8a615 6580done
6de9cd9a 6581
96b8a615
AJ
6582if test "${ac_cv_header_complex_h+set}" = set; then
6583 echo "$as_me:$LINENO: checking for complex.h" >&5
6584echo $ECHO_N "checking for complex.h... $ECHO_C" >&6
6585if test "${ac_cv_header_complex_h+set}" = set; then
6586 echo $ECHO_N "(cached) $ECHO_C" >&6
6587fi
6588echo "$as_me:$LINENO: result: $ac_cv_header_complex_h" >&5
6589echo "${ECHO_T}$ac_cv_header_complex_h" >&6
6590else
6591 # Is the header compilable?
6592echo "$as_me:$LINENO: checking complex.h usability" >&5
6593echo $ECHO_N "checking complex.h usability... $ECHO_C" >&6
6594cat >conftest.$ac_ext <<_ACEOF
6595/* confdefs.h. */
6596_ACEOF
6597cat confdefs.h >>conftest.$ac_ext
6598cat >>conftest.$ac_ext <<_ACEOF
6599/* end confdefs.h. */
6600$ac_includes_default
6601#include <complex.h>
6602_ACEOF
6603rm -f conftest.$ac_objext
6604if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6605 (eval $ac_compile) 2>conftest.er1
6606 ac_status=$?
6607 grep -v '^ *+' conftest.er1 >conftest.err
6608 rm -f conftest.er1
6609 cat conftest.err >&5
6610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6611 (exit $ac_status); } &&
1fb2002d 6612 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
96b8a615
AJ
6613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6614 (eval $ac_try) 2>&5
6615 ac_status=$?
6616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6617 (exit $ac_status); }; } &&
6618 { ac_try='test -s conftest.$ac_objext'
6619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6620 (eval $ac_try) 2>&5
6621 ac_status=$?
6622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6623 (exit $ac_status); }; }; then
6624 ac_header_compiler=yes
6625else
6626 echo "$as_me: failed program was:" >&5
6627sed 's/^/| /' conftest.$ac_ext >&5
6de9cd9a 6628
96b8a615
AJ
6629ac_header_compiler=no
6630fi
6631rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6632echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6633echo "${ECHO_T}$ac_header_compiler" >&6
6de9cd9a 6634
96b8a615
AJ
6635# Is the header present?
6636echo "$as_me:$LINENO: checking complex.h presence" >&5
6637echo $ECHO_N "checking complex.h presence... $ECHO_C" >&6
6638cat >conftest.$ac_ext <<_ACEOF
6639/* confdefs.h. */
6640_ACEOF
6641cat confdefs.h >>conftest.$ac_ext
6642cat >>conftest.$ac_ext <<_ACEOF
6643/* end confdefs.h. */
6644#include <complex.h>
6645_ACEOF
6646if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6647 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6648 ac_status=$?
6649 grep -v '^ *+' conftest.er1 >conftest.err
6650 rm -f conftest.er1
6651 cat conftest.err >&5
6652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6653 (exit $ac_status); } >/dev/null; then
6654 if test -s conftest.err; then
6655 ac_cpp_err=$ac_c_preproc_warn_flag
6656 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6de9cd9a 6657 else
96b8a615 6658 ac_cpp_err=
6de9cd9a 6659 fi
96b8a615
AJ
6660else
6661 ac_cpp_err=yes
6662fi
6663if test -z "$ac_cpp_err"; then
6664 ac_header_preproc=yes
6665else
6666 echo "$as_me: failed program was:" >&5
6667sed 's/^/| /' conftest.$ac_ext >&5
6de9cd9a 6668
96b8a615
AJ
6669 ac_header_preproc=no
6670fi
6671rm -f conftest.err conftest.$ac_ext
6672echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6673echo "${ECHO_T}$ac_header_preproc" >&6
6de9cd9a 6674
96b8a615
AJ
6675# So? What about this header?
6676case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6677 yes:no: )
6678 { echo "$as_me:$LINENO: WARNING: complex.h: accepted by the compiler, rejected by the preprocessor!" >&5
6679echo "$as_me: WARNING: complex.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6680 { echo "$as_me:$LINENO: WARNING: complex.h: proceeding with the compiler's result" >&5
6681echo "$as_me: WARNING: complex.h: proceeding with the compiler's result" >&2;}
6682 ac_header_preproc=yes
6de9cd9a 6683 ;;
96b8a615
AJ
6684 no:yes:* )
6685 { echo "$as_me:$LINENO: WARNING: complex.h: present but cannot be compiled" >&5
6686echo "$as_me: WARNING: complex.h: present but cannot be compiled" >&2;}
6687 { echo "$as_me:$LINENO: WARNING: complex.h: check for missing prerequisite headers?" >&5
6688echo "$as_me: WARNING: complex.h: check for missing prerequisite headers?" >&2;}
6689 { echo "$as_me:$LINENO: WARNING: complex.h: see the Autoconf documentation" >&5
6690echo "$as_me: WARNING: complex.h: see the Autoconf documentation" >&2;}
6691 { echo "$as_me:$LINENO: WARNING: complex.h: section \"Present But Cannot Be Compiled\"" >&5
6692echo "$as_me: WARNING: complex.h: section \"Present But Cannot Be Compiled\"" >&2;}
6693 { echo "$as_me:$LINENO: WARNING: complex.h: proceeding with the preprocessor's result" >&5
6694echo "$as_me: WARNING: complex.h: proceeding with the preprocessor's result" >&2;}
6695 { echo "$as_me:$LINENO: WARNING: complex.h: in the future, the compiler will take precedence" >&5
6696echo "$as_me: WARNING: complex.h: in the future, the compiler will take precedence" >&2;}
6697 (
6698 cat <<\_ASBOX
6699## ------------------------------------------------------ ##
6700## Report this to the GNU Fortran Runtime Library lists. ##
6701## ------------------------------------------------------ ##
6702_ASBOX
6703 ) |
6704 sed "s/^/$as_me: WARNING: /" >&2
6de9cd9a 6705 ;;
6de9cd9a 6706esac
96b8a615
AJ
6707echo "$as_me:$LINENO: checking for complex.h" >&5
6708echo $ECHO_N "checking for complex.h... $ECHO_C" >&6
6709if test "${ac_cv_header_complex_h+set}" = set; then
6710 echo $ECHO_N "(cached) $ECHO_C" >&6
6711else
6712 ac_cv_header_complex_h=$ac_header_preproc
6713fi
6714echo "$as_me:$LINENO: result: $ac_cv_header_complex_h" >&5
6715echo "${ECHO_T}$ac_cv_header_complex_h" >&6
6de9cd9a
DN
6716
6717fi
96b8a615 6718if test $ac_cv_header_complex_h = yes; then
6de9cd9a 6719
96b8a615
AJ
6720cat >>confdefs.h <<\_ACEOF
6721#define HAVE_COMPLEX_H 1
6722_ACEOF
6de9cd9a 6723
96b8a615 6724fi
6de9cd9a
DN
6725
6726
6de9cd9a 6727
df65f093
SK
6728echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
6729echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
6730if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
6731 echo $ECHO_N "(cached) $ECHO_C" >&6
6732else
6733 cat >conftest.$ac_ext <<_ACEOF
6734/* confdefs.h. */
6735_ACEOF
6736cat confdefs.h >>conftest.$ac_ext
6737cat >>conftest.$ac_ext <<_ACEOF
6738/* end confdefs.h. */
6739$ac_includes_default
6740int
6741main ()
6742{
6743static struct stat ac_aggr;
6744if (ac_aggr.st_blksize)
6745return 0;
6746 ;
6747 return 0;
6748}
6749_ACEOF
6750rm -f conftest.$ac_objext
6751if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6752 (eval $ac_compile) 2>conftest.er1
6753 ac_status=$?
6754 grep -v '^ *+' conftest.er1 >conftest.err
6755 rm -f conftest.er1
6756 cat conftest.err >&5
6757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6758 (exit $ac_status); } &&
1fb2002d 6759 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
df65f093
SK
6760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6761 (eval $ac_try) 2>&5
6762 ac_status=$?
6763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6764 (exit $ac_status); }; } &&
6765 { ac_try='test -s conftest.$ac_objext'
6766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6767 (eval $ac_try) 2>&5
6768 ac_status=$?
6769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6770 (exit $ac_status); }; }; then
6771 ac_cv_member_struct_stat_st_blksize=yes
6772else
6773 echo "$as_me: failed program was:" >&5
6774sed 's/^/| /' conftest.$ac_ext >&5
6775
6776cat >conftest.$ac_ext <<_ACEOF
6777/* confdefs.h. */
6778_ACEOF
6779cat confdefs.h >>conftest.$ac_ext
6780cat >>conftest.$ac_ext <<_ACEOF
6781/* end confdefs.h. */
6782$ac_includes_default
6783int
6784main ()
6785{
6786static struct stat ac_aggr;
6787if (sizeof ac_aggr.st_blksize)
6788return 0;
6789 ;
6790 return 0;
6791}
6792_ACEOF
6793rm -f conftest.$ac_objext
6794if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6795 (eval $ac_compile) 2>conftest.er1
6796 ac_status=$?
6797 grep -v '^ *+' conftest.er1 >conftest.err
6798 rm -f conftest.er1
6799 cat conftest.err >&5
6800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6801 (exit $ac_status); } &&
1fb2002d 6802 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
df65f093
SK
6803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6804 (eval $ac_try) 2>&5
6805 ac_status=$?
6806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6807 (exit $ac_status); }; } &&
6808 { ac_try='test -s conftest.$ac_objext'
6809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6810 (eval $ac_try) 2>&5
6811 ac_status=$?
6812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6813 (exit $ac_status); }; }; then
6814 ac_cv_member_struct_stat_st_blksize=yes
6815else
6816 echo "$as_me: failed program was:" >&5
6817sed 's/^/| /' conftest.$ac_ext >&5
6818
6819ac_cv_member_struct_stat_st_blksize=no
6820fi
6821rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6822fi
6823rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6824fi
6825echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
6826echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
6827if test $ac_cv_member_struct_stat_st_blksize = yes; then
6828
6829cat >>confdefs.h <<_ACEOF
6830#define HAVE_STRUCT_STAT_ST_BLKSIZE 1
6831_ACEOF
6832
6833
6834fi
6835
6836echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
6837echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
6838if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
6839 echo $ECHO_N "(cached) $ECHO_C" >&6
6840else
6841 cat >conftest.$ac_ext <<_ACEOF
6842/* confdefs.h. */
6843_ACEOF
6844cat confdefs.h >>conftest.$ac_ext
6845cat >>conftest.$ac_ext <<_ACEOF
6846/* end confdefs.h. */
6847$ac_includes_default
6848int
6849main ()
6850{
6851static struct stat ac_aggr;
6852if (ac_aggr.st_blocks)
6853return 0;
6854 ;
6855 return 0;
6856}
6857_ACEOF
6858rm -f conftest.$ac_objext
6859if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6860 (eval $ac_compile) 2>conftest.er1
6861 ac_status=$?
6862 grep -v '^ *+' conftest.er1 >conftest.err
6863 rm -f conftest.er1
6864 cat conftest.err >&5
6865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6866 (exit $ac_status); } &&
1fb2002d 6867 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
df65f093
SK
6868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6869 (eval $ac_try) 2>&5
6870 ac_status=$?
6871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6872 (exit $ac_status); }; } &&
6873 { ac_try='test -s conftest.$ac_objext'
6874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6875 (eval $ac_try) 2>&5
6876 ac_status=$?
6877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6878 (exit $ac_status); }; }; then
6879 ac_cv_member_struct_stat_st_blocks=yes
6880else
6881 echo "$as_me: failed program was:" >&5
6882sed 's/^/| /' conftest.$ac_ext >&5
6883
6884cat >conftest.$ac_ext <<_ACEOF
6885/* confdefs.h. */
6886_ACEOF
6887cat confdefs.h >>conftest.$ac_ext
6888cat >>conftest.$ac_ext <<_ACEOF
6889/* end confdefs.h. */
6890$ac_includes_default
6891int
6892main ()
6893{
6894static struct stat ac_aggr;
6895if (sizeof ac_aggr.st_blocks)
6896return 0;
6897 ;
6898 return 0;
6899}
6900_ACEOF
6901rm -f conftest.$ac_objext
6902if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6903 (eval $ac_compile) 2>conftest.er1
6904 ac_status=$?
6905 grep -v '^ *+' conftest.er1 >conftest.err
6906 rm -f conftest.er1
6907 cat conftest.err >&5
6908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6909 (exit $ac_status); } &&
1fb2002d 6910 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
df65f093
SK
6911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6912 (eval $ac_try) 2>&5
6913 ac_status=$?
6914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6915 (exit $ac_status); }; } &&
6916 { ac_try='test -s conftest.$ac_objext'
6917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6918 (eval $ac_try) 2>&5
6919 ac_status=$?
6920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6921 (exit $ac_status); }; }; then
6922 ac_cv_member_struct_stat_st_blocks=yes
6923else
6924 echo "$as_me: failed program was:" >&5
6925sed 's/^/| /' conftest.$ac_ext >&5
6926
6927ac_cv_member_struct_stat_st_blocks=no
6928fi
6929rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6930fi
6931rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6932fi
6933echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
6934echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
6935if test $ac_cv_member_struct_stat_st_blocks = yes; then
6936
6937cat >>confdefs.h <<_ACEOF
6938#define HAVE_STRUCT_STAT_ST_BLOCKS 1
6939_ACEOF
6940
6941
6942fi
6943
6944echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
6945echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6
6946if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
6947 echo $ECHO_N "(cached) $ECHO_C" >&6
6948else
6949 cat >conftest.$ac_ext <<_ACEOF
6950/* confdefs.h. */
6951_ACEOF
6952cat confdefs.h >>conftest.$ac_ext
6953cat >>conftest.$ac_ext <<_ACEOF
6954/* end confdefs.h. */
6955$ac_includes_default
6956int
6957main ()
6958{
6959static struct stat ac_aggr;
6960if (ac_aggr.st_rdev)
6961return 0;
6962 ;
6963 return 0;
6964}
6965_ACEOF
6966rm -f conftest.$ac_objext
6967if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6968 (eval $ac_compile) 2>conftest.er1
6969 ac_status=$?
6970 grep -v '^ *+' conftest.er1 >conftest.err
6971 rm -f conftest.er1
6972 cat conftest.err >&5
6973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6974 (exit $ac_status); } &&
1fb2002d 6975 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
df65f093
SK
6976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6977 (eval $ac_try) 2>&5
6978 ac_status=$?
6979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6980 (exit $ac_status); }; } &&
6981 { ac_try='test -s conftest.$ac_objext'
6982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6983 (eval $ac_try) 2>&5
6984 ac_status=$?
6985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6986 (exit $ac_status); }; }; then
6987 ac_cv_member_struct_stat_st_rdev=yes
6988else
6989 echo "$as_me: failed program was:" >&5
6990sed 's/^/| /' conftest.$ac_ext >&5
6991
6992cat >conftest.$ac_ext <<_ACEOF
6993/* confdefs.h. */
6994_ACEOF
6995cat confdefs.h >>conftest.$ac_ext
6996cat >>conftest.$ac_ext <<_ACEOF
6997/* end confdefs.h. */
6998$ac_includes_default
6999int
7000main ()
7001{
7002static struct stat ac_aggr;
7003if (sizeof ac_aggr.st_rdev)
7004return 0;
7005 ;
7006 return 0;
7007}
7008_ACEOF
7009rm -f conftest.$ac_objext
7010if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7011 (eval $ac_compile) 2>conftest.er1
7012 ac_status=$?
7013 grep -v '^ *+' conftest.er1 >conftest.err
7014 rm -f conftest.er1
7015 cat conftest.err >&5
7016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7017 (exit $ac_status); } &&
1fb2002d 7018 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
df65f093
SK
7019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7020 (eval $ac_try) 2>&5
7021 ac_status=$?
7022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7023 (exit $ac_status); }; } &&
7024 { ac_try='test -s conftest.$ac_objext'
7025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7026 (eval $ac_try) 2>&5
7027 ac_status=$?
7028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7029 (exit $ac_status); }; }; then
7030 ac_cv_member_struct_stat_st_rdev=yes
7031else
7032 echo "$as_me: failed program was:" >&5
7033sed 's/^/| /' conftest.$ac_ext >&5
7034
7035ac_cv_member_struct_stat_st_rdev=no
7036fi
7037rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7038fi
7039rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7040fi
7041echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
7042echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6
7043if test $ac_cv_member_struct_stat_st_rdev = yes; then
7044
7045cat >>confdefs.h <<_ACEOF
7046#define HAVE_STRUCT_STAT_ST_RDEV 1
7047_ACEOF
7048
7049
7050fi
7051
7052
96b8a615
AJ
7053# Check for complex math functions
7054echo "$as_me:$LINENO: checking for csin in -lm" >&5
7055echo $ECHO_N "checking for csin in -lm... $ECHO_C" >&6
7056if test "${ac_cv_lib_m_csin+set}" = set; then
6de9cd9a
DN
7057 echo $ECHO_N "(cached) $ECHO_C" >&6
7058else
96b8a615
AJ
7059 ac_check_lib_save_LIBS=$LIBS
7060LIBS="-lm $LIBS"
7061cat >conftest.$ac_ext <<_ACEOF
7062/* confdefs.h. */
7063_ACEOF
7064cat confdefs.h >>conftest.$ac_ext
7065cat >>conftest.$ac_ext <<_ACEOF
7066/* end confdefs.h. */
6de9cd9a 7067
96b8a615
AJ
7068/* Override any gcc2 internal prototype to avoid an error. */
7069#ifdef __cplusplus
7070extern "C"
7071#endif
7072/* We use char because int might match the return type of a gcc2
7073 builtin and then its argument prototype would still apply. */
7074char csin ();
7075int
7076main ()
7077{
7078csin ();
7079 ;
7080 return 0;
7081}
7082_ACEOF
7083rm -f conftest.$ac_objext conftest$ac_exeext
7084if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7085 (eval $ac_link) 2>conftest.er1
7086 ac_status=$?
7087 grep -v '^ *+' conftest.er1 >conftest.err
7088 rm -f conftest.er1
7089 cat conftest.err >&5
7090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7091 (exit $ac_status); } &&
1fb2002d 7092 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
96b8a615
AJ
7093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7094 (eval $ac_try) 2>&5
7095 ac_status=$?
7096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7097 (exit $ac_status); }; } &&
7098 { ac_try='test -s conftest$ac_exeext'
7099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7100 (eval $ac_try) 2>&5
7101 ac_status=$?
7102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7103 (exit $ac_status); }; }; then
7104 ac_cv_lib_m_csin=yes
7105else
7106 echo "$as_me: failed program was:" >&5
7107sed 's/^/| /' conftest.$ac_ext >&5
7108
7109ac_cv_lib_m_csin=no
7110fi
7111rm -f conftest.err conftest.$ac_objext \
7112 conftest$ac_exeext conftest.$ac_ext
7113LIBS=$ac_check_lib_save_LIBS
7114fi
7115echo "$as_me:$LINENO: result: $ac_cv_lib_m_csin" >&5
7116echo "${ECHO_T}$ac_cv_lib_m_csin" >&6
7117if test $ac_cv_lib_m_csin = yes; then
7118 need_math="no"
7119else
7120 need_math="yes"
7121fi
7122
7123
96b8a615
AJ
7124# Check for library functions.
7125
7126
41724e6a 7127
2cbcdeba 7128
3969c39f 7129
1fb2002d
FXC
7130
7131
7132for ac_func in getrusage times mkstemp strtof snprintf ftruncate chsize
96b8a615
AJ
7133do
7134as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7135echo "$as_me:$LINENO: checking for $ac_func" >&5
7136echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7137if eval "test \"\${$as_ac_var+set}\" = set"; then
6de9cd9a
DN
7138 echo $ECHO_N "(cached) $ECHO_C" >&6
7139else
f77b6ca3
FXC
7140 cat >conftest.$ac_ext <<_ACEOF
7141/* confdefs.h. */
7142_ACEOF
7143cat confdefs.h >>conftest.$ac_ext
7144cat >>conftest.$ac_ext <<_ACEOF
7145/* end confdefs.h. */
7146/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7147 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7148#define $ac_func innocuous_$ac_func
7149
7150/* System header to define __stub macros and hopefully few prototypes,
7151 which can conflict with char $ac_func (); below.
7152 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7153 <limits.h> exists even on freestanding compilers. */
7154
7155#ifdef __STDC__
7156# include <limits.h>
7157#else
7158# include <assert.h>
7159#endif
7160
7161#undef $ac_func
7162
7163/* Override any gcc2 internal prototype to avoid an error. */
7164#ifdef __cplusplus
7165extern "C"
7166{
7167#endif
7168/* We use char because int might match the return type of a gcc2
7169 builtin and then its argument prototype would still apply. */
7170char $ac_func ();
7171/* The GNU C library defines this for functions which it implements
7172 to always fail with ENOSYS. Some functions are actually named
7173 something starting with __ and the normal name is an alias. */
7174#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7175choke me
7176#else
7177char (*f) () = $ac_func;
7178#endif
7179#ifdef __cplusplus
7180}
7181#endif
7182
7183int
7184main ()
7185{
7186return f != $ac_func;
7187 ;
7188 return 0;
7189}
7190_ACEOF
7191rm -f conftest.$ac_objext conftest$ac_exeext
7192if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7193 (eval $ac_link) 2>conftest.er1
7194 ac_status=$?
7195 grep -v '^ *+' conftest.er1 >conftest.err
7196 rm -f conftest.er1
7197 cat conftest.err >&5
7198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7199 (exit $ac_status); } &&
1fb2002d 7200 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
f77b6ca3
FXC
7201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7202 (eval $ac_try) 2>&5
7203 ac_status=$?
7204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7205 (exit $ac_status); }; } &&
7206 { ac_try='test -s conftest$ac_exeext'
7207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7208 (eval $ac_try) 2>&5
7209 ac_status=$?
7210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7211 (exit $ac_status); }; }; then
7212 eval "$as_ac_var=yes"
7213else
7214 echo "$as_me: failed program was:" >&5
7215sed 's/^/| /' conftest.$ac_ext >&5
7216
7217eval "$as_ac_var=no"
d49ec2d1 7218fi
f77b6ca3
FXC
7219rm -f conftest.err conftest.$ac_objext \
7220 conftest$ac_exeext conftest.$ac_ext
7221fi
7222echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7223echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7224if test `eval echo '${'$as_ac_var'}'` = yes; then
7225 cat >>confdefs.h <<_ACEOF
7226#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7227_ACEOF
7228
7229fi
7230done
7231
7232
7233
7234
7235
7236
7237
7238
7239
7240for ac_func in chdir strerror getlogin gethostname kill link symlink perror
7241do
7242as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7243echo "$as_me:$LINENO: checking for $ac_func" >&5
7244echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7245if eval "test \"\${$as_ac_var+set}\" = set"; then
7246 echo $ECHO_N "(cached) $ECHO_C" >&6
7247else
7248 cat >conftest.$ac_ext <<_ACEOF
96b8a615
AJ
7249/* confdefs.h. */
7250_ACEOF
7251cat confdefs.h >>conftest.$ac_ext
7252cat >>conftest.$ac_ext <<_ACEOF
7253/* end confdefs.h. */
7254/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7255 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7256#define $ac_func innocuous_$ac_func
6de9cd9a 7257
96b8a615
AJ
7258/* System header to define __stub macros and hopefully few prototypes,
7259 which can conflict with char $ac_func (); below.
7260 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7261 <limits.h> exists even on freestanding compilers. */
6de9cd9a 7262
96b8a615
AJ
7263#ifdef __STDC__
7264# include <limits.h>
7265#else
7266# include <assert.h>
7267#endif
6de9cd9a 7268
96b8a615
AJ
7269#undef $ac_func
7270
7271/* Override any gcc2 internal prototype to avoid an error. */
7272#ifdef __cplusplus
7273extern "C"
7274{
7275#endif
7276/* We use char because int might match the return type of a gcc2
7277 builtin and then its argument prototype would still apply. */
7278char $ac_func ();
7279/* The GNU C library defines this for functions which it implements
7280 to always fail with ENOSYS. Some functions are actually named
7281 something starting with __ and the normal name is an alias. */
7282#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7283choke me
7284#else
7285char (*f) () = $ac_func;
7286#endif
7287#ifdef __cplusplus
7288}
7289#endif
7290
7291int
7292main ()
7293{
7294return f != $ac_func;
7295 ;
7296 return 0;
7297}
7298_ACEOF
7299rm -f conftest.$ac_objext conftest$ac_exeext
7300if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7301 (eval $ac_link) 2>conftest.er1
7302 ac_status=$?
7303 grep -v '^ *+' conftest.er1 >conftest.err
7304 rm -f conftest.er1
7305 cat conftest.err >&5
7306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7307 (exit $ac_status); } &&
1fb2002d 7308 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
f77b6ca3
FXC
7309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7310 (eval $ac_try) 2>&5
7311 ac_status=$?
7312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7313 (exit $ac_status); }; } &&
7314 { ac_try='test -s conftest$ac_exeext'
7315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7316 (eval $ac_try) 2>&5
7317 ac_status=$?
7318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7319 (exit $ac_status); }; }; then
7320 eval "$as_ac_var=yes"
7321else
7322 echo "$as_me: failed program was:" >&5
7323sed 's/^/| /' conftest.$ac_ext >&5
7324
7325eval "$as_ac_var=no"
7326fi
7327rm -f conftest.err conftest.$ac_objext \
7328 conftest$ac_exeext conftest.$ac_ext
7329fi
7330echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7331echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7332if test `eval echo '${'$as_ac_var'}'` = yes; then
7333 cat >>confdefs.h <<_ACEOF
7334#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7335_ACEOF
7336
7337fi
7338done
7339
7340
7341
7342for ac_func in sleep time
7343do
7344as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7345echo "$as_me:$LINENO: checking for $ac_func" >&5
7346echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7347if eval "test \"\${$as_ac_var+set}\" = set"; then
7348 echo $ECHO_N "(cached) $ECHO_C" >&6
7349else
7350 cat >conftest.$ac_ext <<_ACEOF
7351/* confdefs.h. */
7352_ACEOF
7353cat confdefs.h >>conftest.$ac_ext
7354cat >>conftest.$ac_ext <<_ACEOF
7355/* end confdefs.h. */
7356/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7357 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7358#define $ac_func innocuous_$ac_func
7359
7360/* System header to define __stub macros and hopefully few prototypes,
7361 which can conflict with char $ac_func (); below.
7362 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7363 <limits.h> exists even on freestanding compilers. */
7364
7365#ifdef __STDC__
7366# include <limits.h>
7367#else
7368# include <assert.h>
7369#endif
7370
7371#undef $ac_func
7372
7373/* Override any gcc2 internal prototype to avoid an error. */
7374#ifdef __cplusplus
7375extern "C"
7376{
7377#endif
7378/* We use char because int might match the return type of a gcc2
7379 builtin and then its argument prototype would still apply. */
7380char $ac_func ();
7381/* The GNU C library defines this for functions which it implements
7382 to always fail with ENOSYS. Some functions are actually named
7383 something starting with __ and the normal name is an alias. */
7384#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7385choke me
7386#else
7387char (*f) () = $ac_func;
7388#endif
7389#ifdef __cplusplus
7390}
7391#endif
7392
7393int
7394main ()
7395{
7396return f != $ac_func;
7397 ;
7398 return 0;
7399}
7400_ACEOF
7401rm -f conftest.$ac_objext conftest$ac_exeext
7402if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7403 (eval $ac_link) 2>conftest.er1
7404 ac_status=$?
7405 grep -v '^ *+' conftest.er1 >conftest.err
7406 rm -f conftest.er1
7407 cat conftest.err >&5
7408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7409 (exit $ac_status); } &&
1fb2002d 7410 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
96b8a615
AJ
7411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7412 (eval $ac_try) 2>&5
7413 ac_status=$?
7414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7415 (exit $ac_status); }; } &&
7416 { ac_try='test -s conftest$ac_exeext'
7417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7418 (eval $ac_try) 2>&5
7419 ac_status=$?
7420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7421 (exit $ac_status); }; }; then
7422 eval "$as_ac_var=yes"
6de9cd9a 7423else
96b8a615
AJ
7424 echo "$as_me: failed program was:" >&5
7425sed 's/^/| /' conftest.$ac_ext >&5
7426
7427eval "$as_ac_var=no"
7428fi
7429rm -f conftest.err conftest.$ac_objext \
7430 conftest$ac_exeext conftest.$ac_ext
6de9cd9a 7431fi
96b8a615
AJ
7432echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7433echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7434if test `eval echo '${'$as_ac_var'}'` = yes; then
7435 cat >>confdefs.h <<_ACEOF
7436#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7437_ACEOF
6de9cd9a 7438
6de9cd9a 7439fi
96b8a615 7440done
6de9cd9a 7441
6de9cd9a 7442
4c0c6b9f
SK
7443# Check libc for getgid, getpid, getuid
7444echo "$as_me:$LINENO: checking for getgid in -lc" >&5
7445echo $ECHO_N "checking for getgid in -lc... $ECHO_C" >&6
7446if test "${ac_cv_lib_c_getgid+set}" = set; then
7447 echo $ECHO_N "(cached) $ECHO_C" >&6
7448else
7449 ac_check_lib_save_LIBS=$LIBS
7450LIBS="-lc $LIBS"
7451cat >conftest.$ac_ext <<_ACEOF
7452/* confdefs.h. */
7453_ACEOF
7454cat confdefs.h >>conftest.$ac_ext
7455cat >>conftest.$ac_ext <<_ACEOF
7456/* end confdefs.h. */
7457
7458/* Override any gcc2 internal prototype to avoid an error. */
7459#ifdef __cplusplus
7460extern "C"
7461#endif
7462/* We use char because int might match the return type of a gcc2
7463 builtin and then its argument prototype would still apply. */
7464char getgid ();
7465int
7466main ()
7467{
7468getgid ();
7469 ;
7470 return 0;
7471}
7472_ACEOF
7473rm -f conftest.$ac_objext conftest$ac_exeext
7474if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7475 (eval $ac_link) 2>conftest.er1
7476 ac_status=$?
7477 grep -v '^ *+' conftest.er1 >conftest.err
7478 rm -f conftest.er1
7479 cat conftest.err >&5
7480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7481 (exit $ac_status); } &&
1fb2002d 7482 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4c0c6b9f
SK
7483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7484 (eval $ac_try) 2>&5
7485 ac_status=$?
7486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7487 (exit $ac_status); }; } &&
7488 { ac_try='test -s conftest$ac_exeext'
7489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7490 (eval $ac_try) 2>&5
7491 ac_status=$?
7492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7493 (exit $ac_status); }; }; then
7494 ac_cv_lib_c_getgid=yes
7495else
7496 echo "$as_me: failed program was:" >&5
7497sed 's/^/| /' conftest.$ac_ext >&5
7498
7499ac_cv_lib_c_getgid=no
7500fi
7501rm -f conftest.err conftest.$ac_objext \
7502 conftest$ac_exeext conftest.$ac_ext
7503LIBS=$ac_check_lib_save_LIBS
7504fi
7505echo "$as_me:$LINENO: result: $ac_cv_lib_c_getgid" >&5
7506echo "${ECHO_T}$ac_cv_lib_c_getgid" >&6
7507if test $ac_cv_lib_c_getgid = yes; then
7508
7509cat >>confdefs.h <<\_ACEOF
7510#define HAVE_GETGID 1
7511_ACEOF
7512
7513fi
7514
7515echo "$as_me:$LINENO: checking for getpid in -lc" >&5
7516echo $ECHO_N "checking for getpid in -lc... $ECHO_C" >&6
7517if test "${ac_cv_lib_c_getpid+set}" = set; then
7518 echo $ECHO_N "(cached) $ECHO_C" >&6
7519else
7520 ac_check_lib_save_LIBS=$LIBS
7521LIBS="-lc $LIBS"
7522cat >conftest.$ac_ext <<_ACEOF
7523/* confdefs.h. */
7524_ACEOF
7525cat confdefs.h >>conftest.$ac_ext
7526cat >>conftest.$ac_ext <<_ACEOF
7527/* end confdefs.h. */
7528
7529/* Override any gcc2 internal prototype to avoid an error. */
7530#ifdef __cplusplus
7531extern "C"
7532#endif
7533/* We use char because int might match the return type of a gcc2
7534 builtin and then its argument prototype would still apply. */
7535char getpid ();
7536int
7537main ()
7538{
7539getpid ();
7540 ;
7541 return 0;
7542}
7543_ACEOF
7544rm -f conftest.$ac_objext conftest$ac_exeext
7545if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7546 (eval $ac_link) 2>conftest.er1
7547 ac_status=$?
7548 grep -v '^ *+' conftest.er1 >conftest.err
7549 rm -f conftest.er1
7550 cat conftest.err >&5
7551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7552 (exit $ac_status); } &&
1fb2002d 7553 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4c0c6b9f
SK
7554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7555 (eval $ac_try) 2>&5
7556 ac_status=$?
7557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7558 (exit $ac_status); }; } &&
7559 { ac_try='test -s conftest$ac_exeext'
7560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7561 (eval $ac_try) 2>&5
7562 ac_status=$?
7563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7564 (exit $ac_status); }; }; then
7565 ac_cv_lib_c_getpid=yes
7566else
7567 echo "$as_me: failed program was:" >&5
7568sed 's/^/| /' conftest.$ac_ext >&5
7569
7570ac_cv_lib_c_getpid=no
7571fi
7572rm -f conftest.err conftest.$ac_objext \
7573 conftest$ac_exeext conftest.$ac_ext
7574LIBS=$ac_check_lib_save_LIBS
7575fi
7576echo "$as_me:$LINENO: result: $ac_cv_lib_c_getpid" >&5
7577echo "${ECHO_T}$ac_cv_lib_c_getpid" >&6
7578if test $ac_cv_lib_c_getpid = yes; then
7579
7580cat >>confdefs.h <<\_ACEOF
7581#define HAVE_GETPID 1
7582_ACEOF
7583
7584fi
7585
7586echo "$as_me:$LINENO: checking for getuid in -lc" >&5
7587echo $ECHO_N "checking for getuid in -lc... $ECHO_C" >&6
7588if test "${ac_cv_lib_c_getuid+set}" = set; then
7589 echo $ECHO_N "(cached) $ECHO_C" >&6
7590else
7591 ac_check_lib_save_LIBS=$LIBS
7592LIBS="-lc $LIBS"
7593cat >conftest.$ac_ext <<_ACEOF
7594/* confdefs.h. */
7595_ACEOF
7596cat confdefs.h >>conftest.$ac_ext
7597cat >>conftest.$ac_ext <<_ACEOF
7598/* end confdefs.h. */
7599
7600/* Override any gcc2 internal prototype to avoid an error. */
7601#ifdef __cplusplus
7602extern "C"
7603#endif
7604/* We use char because int might match the return type of a gcc2
7605 builtin and then its argument prototype would still apply. */
7606char getuid ();
7607int
7608main ()
7609{
7610getuid ();
7611 ;
7612 return 0;
7613}
7614_ACEOF
7615rm -f conftest.$ac_objext conftest$ac_exeext
7616if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7617 (eval $ac_link) 2>conftest.er1
7618 ac_status=$?
7619 grep -v '^ *+' conftest.er1 >conftest.err
7620 rm -f conftest.er1
7621 cat conftest.err >&5
7622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7623 (exit $ac_status); } &&
1fb2002d 7624 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4c0c6b9f
SK
7625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7626 (eval $ac_try) 2>&5
7627 ac_status=$?
7628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7629 (exit $ac_status); }; } &&
7630 { ac_try='test -s conftest$ac_exeext'
7631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7632 (eval $ac_try) 2>&5
7633 ac_status=$?
7634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7635 (exit $ac_status); }; }; then
7636 ac_cv_lib_c_getuid=yes
7637else
7638 echo "$as_me: failed program was:" >&5
7639sed 's/^/| /' conftest.$ac_ext >&5
7640
7641ac_cv_lib_c_getuid=no
7642fi
7643rm -f conftest.err conftest.$ac_objext \
7644 conftest$ac_exeext conftest.$ac_ext
7645LIBS=$ac_check_lib_save_LIBS
7646fi
7647echo "$as_me:$LINENO: result: $ac_cv_lib_c_getuid" >&5
7648echo "${ECHO_T}$ac_cv_lib_c_getuid" >&6
7649if test $ac_cv_lib_c_getuid = yes; then
7650
7651cat >>confdefs.h <<\_ACEOF
7652#define HAVE_GETUID 1
7653_ACEOF
7654
7655fi
7656
7657
453310d8 7658# Check for C99 (and other IEEE) math functions
e8525382 7659# ??? This list seems awful long. Is there a better way to test for these?
453310d8
RS
7660echo "$as_me:$LINENO: checking for acosf in -lm" >&5
7661echo $ECHO_N "checking for acosf in -lm... $ECHO_C" >&6
7662if test "${ac_cv_lib_m_acosf+set}" = set; then
7663 echo $ECHO_N "(cached) $ECHO_C" >&6
7664else
7665 ac_check_lib_save_LIBS=$LIBS
7666LIBS="-lm $LIBS"
7667cat >conftest.$ac_ext <<_ACEOF
7668/* confdefs.h. */
7669_ACEOF
7670cat confdefs.h >>conftest.$ac_ext
7671cat >>conftest.$ac_ext <<_ACEOF
7672/* end confdefs.h. */
7673
7674/* Override any gcc2 internal prototype to avoid an error. */
7675#ifdef __cplusplus
7676extern "C"
7677#endif
7678/* We use char because int might match the return type of a gcc2
7679 builtin and then its argument prototype would still apply. */
7680char acosf ();
7681int
7682main ()
7683{
7684acosf ();
7685 ;
7686 return 0;
7687}
7688_ACEOF
7689rm -f conftest.$ac_objext conftest$ac_exeext
7690if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7691 (eval $ac_link) 2>conftest.er1
7692 ac_status=$?
7693 grep -v '^ *+' conftest.er1 >conftest.err
7694 rm -f conftest.er1
7695 cat conftest.err >&5
7696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7697 (exit $ac_status); } &&
1fb2002d 7698 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
453310d8
RS
7699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7700 (eval $ac_try) 2>&5
7701 ac_status=$?
7702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7703 (exit $ac_status); }; } &&
7704 { ac_try='test -s conftest$ac_exeext'
7705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7706 (eval $ac_try) 2>&5
7707 ac_status=$?
7708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7709 (exit $ac_status); }; }; then
7710 ac_cv_lib_m_acosf=yes
7711else
7712 echo "$as_me: failed program was:" >&5
7713sed 's/^/| /' conftest.$ac_ext >&5
7714
7715ac_cv_lib_m_acosf=no
7716fi
7717rm -f conftest.err conftest.$ac_objext \
7718 conftest$ac_exeext conftest.$ac_ext
7719LIBS=$ac_check_lib_save_LIBS
7720fi
7721echo "$as_me:$LINENO: result: $ac_cv_lib_m_acosf" >&5
7722echo "${ECHO_T}$ac_cv_lib_m_acosf" >&6
7723if test $ac_cv_lib_m_acosf = yes; then
7724
7725cat >>confdefs.h <<\_ACEOF
7726#define HAVE_ACOSF 1
7727_ACEOF
7728
7729fi
7730
7731echo "$as_me:$LINENO: checking for asinf in -lm" >&5
7732echo $ECHO_N "checking for asinf in -lm... $ECHO_C" >&6
7733if test "${ac_cv_lib_m_asinf+set}" = set; then
7734 echo $ECHO_N "(cached) $ECHO_C" >&6
7735else
7736 ac_check_lib_save_LIBS=$LIBS
7737LIBS="-lm $LIBS"
7738cat >conftest.$ac_ext <<_ACEOF
7739/* confdefs.h. */
7740_ACEOF
7741cat confdefs.h >>conftest.$ac_ext
7742cat >>conftest.$ac_ext <<_ACEOF
7743/* end confdefs.h. */
7744
7745/* Override any gcc2 internal prototype to avoid an error. */
7746#ifdef __cplusplus
7747extern "C"
7748#endif
7749/* We use char because int might match the return type of a gcc2
7750 builtin and then its argument prototype would still apply. */
7751char asinf ();
7752int
7753main ()
7754{
7755asinf ();
7756 ;
7757 return 0;
7758}
7759_ACEOF
7760rm -f conftest.$ac_objext conftest$ac_exeext
7761if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7762 (eval $ac_link) 2>conftest.er1
7763 ac_status=$?
7764 grep -v '^ *+' conftest.er1 >conftest.err
7765 rm -f conftest.er1
7766 cat conftest.err >&5
7767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7768 (exit $ac_status); } &&
1fb2002d 7769 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
453310d8
RS
7770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7771 (eval $ac_try) 2>&5
7772 ac_status=$?
7773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7774 (exit $ac_status); }; } &&
7775 { ac_try='test -s conftest$ac_exeext'
7776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7777 (eval $ac_try) 2>&5
7778 ac_status=$?
7779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7780 (exit $ac_status); }; }; then
7781 ac_cv_lib_m_asinf=yes
7782else
7783 echo "$as_me: failed program was:" >&5
7784sed 's/^/| /' conftest.$ac_ext >&5
7785
7786ac_cv_lib_m_asinf=no
7787fi
7788rm -f conftest.err conftest.$ac_objext \
7789 conftest$ac_exeext conftest.$ac_ext
7790LIBS=$ac_check_lib_save_LIBS
7791fi
7792echo "$as_me:$LINENO: result: $ac_cv_lib_m_asinf" >&5
7793echo "${ECHO_T}$ac_cv_lib_m_asinf" >&6
7794if test $ac_cv_lib_m_asinf = yes; then
7795
7796cat >>confdefs.h <<\_ACEOF
7797#define HAVE_ASINF 1
7798_ACEOF
7799
7800fi
7801
7802echo "$as_me:$LINENO: checking for atan2f in -lm" >&5
7803echo $ECHO_N "checking for atan2f in -lm... $ECHO_C" >&6
7804if test "${ac_cv_lib_m_atan2f+set}" = set; then
7805 echo $ECHO_N "(cached) $ECHO_C" >&6
7806else
7807 ac_check_lib_save_LIBS=$LIBS
7808LIBS="-lm $LIBS"
7809cat >conftest.$ac_ext <<_ACEOF
7810/* confdefs.h. */
7811_ACEOF
7812cat confdefs.h >>conftest.$ac_ext
7813cat >>conftest.$ac_ext <<_ACEOF
7814/* end confdefs.h. */
7815
7816/* Override any gcc2 internal prototype to avoid an error. */
7817#ifdef __cplusplus
7818extern "C"
7819#endif
7820/* We use char because int might match the return type of a gcc2
7821 builtin and then its argument prototype would still apply. */
7822char atan2f ();
7823int
7824main ()
7825{
7826atan2f ();
7827 ;
7828 return 0;
7829}
7830_ACEOF
7831rm -f conftest.$ac_objext conftest$ac_exeext
7832if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7833 (eval $ac_link) 2>conftest.er1
7834 ac_status=$?
7835 grep -v '^ *+' conftest.er1 >conftest.err
7836 rm -f conftest.er1
7837 cat conftest.err >&5
7838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7839 (exit $ac_status); } &&
1fb2002d 7840 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
453310d8
RS
7841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7842 (eval $ac_try) 2>&5
7843 ac_status=$?
7844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7845 (exit $ac_status); }; } &&
7846 { ac_try='test -s conftest$ac_exeext'
7847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7848 (eval $ac_try) 2>&5
7849 ac_status=$?
7850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7851 (exit $ac_status); }; }; then
7852 ac_cv_lib_m_atan2f=yes
7853else
7854 echo "$as_me: failed program was:" >&5
7855sed 's/^/| /' conftest.$ac_ext >&5
7856
7857ac_cv_lib_m_atan2f=no
7858fi
7859rm -f conftest.err conftest.$ac_objext \
7860 conftest$ac_exeext conftest.$ac_ext
7861LIBS=$ac_check_lib_save_LIBS
7862fi
7863echo "$as_me:$LINENO: result: $ac_cv_lib_m_atan2f" >&5
7864echo "${ECHO_T}$ac_cv_lib_m_atan2f" >&6
7865if test $ac_cv_lib_m_atan2f = yes; then
7866
7867cat >>confdefs.h <<\_ACEOF
7868#define HAVE_ATAN2F 1
7869_ACEOF
7870
7871fi
7872
7873echo "$as_me:$LINENO: checking for atanf in -lm" >&5
7874echo $ECHO_N "checking for atanf in -lm... $ECHO_C" >&6
7875if test "${ac_cv_lib_m_atanf+set}" = set; then
7876 echo $ECHO_N "(cached) $ECHO_C" >&6
7877else
7878 ac_check_lib_save_LIBS=$LIBS
7879LIBS="-lm $LIBS"
7880cat >conftest.$ac_ext <<_ACEOF
7881/* confdefs.h. */
7882_ACEOF
7883cat confdefs.h >>conftest.$ac_ext
7884cat >>conftest.$ac_ext <<_ACEOF
7885/* end confdefs.h. */
7886
7887/* Override any gcc2 internal prototype to avoid an error. */
7888#ifdef __cplusplus
7889extern "C"
7890#endif
7891/* We use char because int might match the return type of a gcc2
7892 builtin and then its argument prototype would still apply. */
7893char atanf ();
7894int
7895main ()
7896{
7897atanf ();
7898 ;
7899 return 0;
7900}
7901_ACEOF
7902rm -f conftest.$ac_objext conftest$ac_exeext
7903if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7904 (eval $ac_link) 2>conftest.er1
7905 ac_status=$?
7906 grep -v '^ *+' conftest.er1 >conftest.err
7907 rm -f conftest.er1
7908 cat conftest.err >&5
7909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7910 (exit $ac_status); } &&
1fb2002d 7911 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
453310d8
RS
7912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7913 (eval $ac_try) 2>&5
7914 ac_status=$?
7915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7916 (exit $ac_status); }; } &&
7917 { ac_try='test -s conftest$ac_exeext'
7918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7919 (eval $ac_try) 2>&5
7920 ac_status=$?
7921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7922 (exit $ac_status); }; }; then
7923 ac_cv_lib_m_atanf=yes
7924else
7925 echo "$as_me: failed program was:" >&5
7926sed 's/^/| /' conftest.$ac_ext >&5
7927
7928ac_cv_lib_m_atanf=no
7929fi
7930rm -f conftest.err conftest.$ac_objext \
7931 conftest$ac_exeext conftest.$ac_ext
7932LIBS=$ac_check_lib_save_LIBS
7933fi
7934echo "$as_me:$LINENO: result: $ac_cv_lib_m_atanf" >&5
7935echo "${ECHO_T}$ac_cv_lib_m_atanf" >&6
7936if test $ac_cv_lib_m_atanf = yes; then
7937
7938cat >>confdefs.h <<\_ACEOF
7939#define HAVE_ATANF 1
7940_ACEOF
7941
7942fi
7943
7944echo "$as_me:$LINENO: checking for ceilf in -lm" >&5
7945echo $ECHO_N "checking for ceilf in -lm... $ECHO_C" >&6
7946if test "${ac_cv_lib_m_ceilf+set}" = set; then
7947 echo $ECHO_N "(cached) $ECHO_C" >&6
7948else
7949 ac_check_lib_save_LIBS=$LIBS
7950LIBS="-lm $LIBS"
7951cat >conftest.$ac_ext <<_ACEOF
7952/* confdefs.h. */
7953_ACEOF
7954cat confdefs.h >>conftest.$ac_ext
7955cat >>conftest.$ac_ext <<_ACEOF
7956/* end confdefs.h. */
7957
7958/* Override any gcc2 internal prototype to avoid an error. */
7959#ifdef __cplusplus
7960extern "C"
7961#endif
7962/* We use char because int might match the return type of a gcc2
7963 builtin and then its argument prototype would still apply. */
7964char ceilf ();
7965int
7966main ()
7967{
7968ceilf ();
7969 ;
7970 return 0;
7971}
7972_ACEOF
7973rm -f conftest.$ac_objext conftest$ac_exeext
7974if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7975 (eval $ac_link) 2>conftest.er1
7976 ac_status=$?
7977 grep -v '^ *+' conftest.er1 >conftest.err
7978 rm -f conftest.er1
7979 cat conftest.err >&5
7980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7981 (exit $ac_status); } &&
1fb2002d 7982 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
453310d8
RS
7983 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7984 (eval $ac_try) 2>&5
7985 ac_status=$?
7986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7987 (exit $ac_status); }; } &&
7988 { ac_try='test -s conftest$ac_exeext'
7989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7990 (eval $ac_try) 2>&5
7991 ac_status=$?
7992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7993 (exit $ac_status); }; }; then
7994 ac_cv_lib_m_ceilf=yes
7995else
7996 echo "$as_me: failed program was:" >&5
7997sed 's/^/| /' conftest.$ac_ext >&5
7998
7999ac_cv_lib_m_ceilf=no
8000fi
8001rm -f conftest.err conftest.$ac_objext \
8002 conftest$ac_exeext conftest.$ac_ext
8003LIBS=$ac_check_lib_save_LIBS
8004fi
8005echo "$as_me:$LINENO: result: $ac_cv_lib_m_ceilf" >&5
8006echo "${ECHO_T}$ac_cv_lib_m_ceilf" >&6
8007if test $ac_cv_lib_m_ceilf = yes; then
8008
8009cat >>confdefs.h <<\_ACEOF
8010#define HAVE_CEILF 1
8011_ACEOF
8012
8013fi
8014
8015echo "$as_me:$LINENO: checking for copysignf in -lm" >&5
8016echo $ECHO_N "checking for copysignf in -lm... $ECHO_C" >&6
8017if test "${ac_cv_lib_m_copysignf+set}" = set; then
8018 echo $ECHO_N "(cached) $ECHO_C" >&6
8019else
8020 ac_check_lib_save_LIBS=$LIBS
8021LIBS="-lm $LIBS"
8022cat >conftest.$ac_ext <<_ACEOF
8023/* confdefs.h. */
8024_ACEOF
8025cat confdefs.h >>conftest.$ac_ext
8026cat >>conftest.$ac_ext <<_ACEOF
8027/* end confdefs.h. */
8028
8029/* Override any gcc2 internal prototype to avoid an error. */
8030#ifdef __cplusplus
8031extern "C"
8032#endif
8033/* We use char because int might match the return type of a gcc2
8034 builtin and then its argument prototype would still apply. */
8035char copysignf ();
8036int
8037main ()
8038{
8039copysignf ();
8040 ;
8041 return 0;
8042}
8043_ACEOF
8044rm -f conftest.$ac_objext conftest$ac_exeext
8045if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8046 (eval $ac_link) 2>conftest.er1
8047 ac_status=$?
8048 grep -v '^ *+' conftest.er1 >conftest.err
8049 rm -f conftest.er1
8050 cat conftest.err >&5
8051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8052 (exit $ac_status); } &&
1fb2002d 8053 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
453310d8
RS
8054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8055 (eval $ac_try) 2>&5
8056 ac_status=$?
8057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8058 (exit $ac_status); }; } &&
8059 { ac_try='test -s conftest$ac_exeext'
8060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8061 (eval $ac_try) 2>&5
8062 ac_status=$?
8063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8064 (exit $ac_status); }; }; then
8065 ac_cv_lib_m_copysignf=yes
8066else
8067 echo "$as_me: failed program was:" >&5
8068sed 's/^/| /' conftest.$ac_ext >&5
8069
8070ac_cv_lib_m_copysignf=no
8071fi
8072rm -f conftest.err conftest.$ac_objext \
8073 conftest$ac_exeext conftest.$ac_ext
8074LIBS=$ac_check_lib_save_LIBS
8075fi
8076echo "$as_me:$LINENO: result: $ac_cv_lib_m_copysignf" >&5
8077echo "${ECHO_T}$ac_cv_lib_m_copysignf" >&6
8078if test $ac_cv_lib_m_copysignf = yes; then
8079
8080cat >>confdefs.h <<\_ACEOF
8081#define HAVE_COPYSIGNF 1
8082_ACEOF
8083
8084fi
8085
8086echo "$as_me:$LINENO: checking for cosf in -lm" >&5
8087echo $ECHO_N "checking for cosf in -lm... $ECHO_C" >&6
8088if test "${ac_cv_lib_m_cosf+set}" = set; then
8089 echo $ECHO_N "(cached) $ECHO_C" >&6
8090else
8091 ac_check_lib_save_LIBS=$LIBS
8092LIBS="-lm $LIBS"
8093cat >conftest.$ac_ext <<_ACEOF
8094/* confdefs.h. */
8095_ACEOF
8096cat confdefs.h >>conftest.$ac_ext
8097cat >>conftest.$ac_ext <<_ACEOF
8098/* end confdefs.h. */
8099
8100/* Override any gcc2 internal prototype to avoid an error. */
8101#ifdef __cplusplus
8102extern "C"
8103#endif
8104/* We use char because int might match the return type of a gcc2
8105 builtin and then its argument prototype would still apply. */
8106char cosf ();
8107int
8108main ()
8109{
8110cosf ();
8111 ;
8112 return 0;
8113}
8114_ACEOF
8115rm -f conftest.$ac_objext conftest$ac_exeext
8116if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8117 (eval $ac_link) 2>conftest.er1
8118 ac_status=$?
8119 grep -v '^ *+' conftest.er1 >conftest.err
8120 rm -f conftest.er1
8121 cat conftest.err >&5
8122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8123 (exit $ac_status); } &&
1fb2002d 8124 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
453310d8
RS
8125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8126 (eval $ac_try) 2>&5
8127 ac_status=$?
8128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8129 (exit $ac_status); }; } &&
8130 { ac_try='test -s conftest$ac_exeext'
8131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8132 (eval $ac_try) 2>&5
8133 ac_status=$?
8134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8135 (exit $ac_status); }; }; then
8136 ac_cv_lib_m_cosf=yes
8137else
8138 echo "$as_me: failed program was:" >&5
8139sed 's/^/| /' conftest.$ac_ext >&5
8140
8141ac_cv_lib_m_cosf=no
8142fi
8143rm -f conftest.err conftest.$ac_objext \
8144 conftest$ac_exeext conftest.$ac_ext
8145LIBS=$ac_check_lib_save_LIBS
8146fi
8147echo "$as_me:$LINENO: result: $ac_cv_lib_m_cosf" >&5
8148echo "${ECHO_T}$ac_cv_lib_m_cosf" >&6
8149if test $ac_cv_lib_m_cosf = yes; then
8150
8151cat >>confdefs.h <<\_ACEOF
8152#define HAVE_COSF 1
8153_ACEOF
8154
8155fi
8156
8157echo "$as_me:$LINENO: checking for coshf in -lm" >&5
8158echo $ECHO_N "checking for coshf in -lm... $ECHO_C" >&6
8159if test "${ac_cv_lib_m_coshf+set}" = set; then
8160 echo $ECHO_N "(cached) $ECHO_C" >&6
8161else
8162 ac_check_lib_save_LIBS=$LIBS
8163LIBS="-lm $LIBS"
8164cat >conftest.$ac_ext <<_ACEOF
8165/* confdefs.h. */
8166_ACEOF
8167cat confdefs.h >>conftest.$ac_ext
8168cat >>conftest.$ac_ext <<_ACEOF
8169/* end confdefs.h. */
8170
8171/* Override any gcc2 internal prototype to avoid an error. */
8172#ifdef __cplusplus
8173extern "C"
8174#endif
8175/* We use char because int might match the return type of a gcc2
8176 builtin and then its argument prototype would still apply. */
8177char coshf ();
8178int
8179main ()
8180{
8181coshf ();
8182 ;
8183 return 0;
8184}
8185_ACEOF
8186rm -f conftest.$ac_objext conftest$ac_exeext
8187if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8188 (eval $ac_link) 2>conftest.er1
8189 ac_status=$?
8190 grep -v '^ *+' conftest.er1 >conftest.err
8191 rm -f conftest.er1
8192 cat conftest.err >&5
8193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8194 (exit $ac_status); } &&
1fb2002d 8195 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
453310d8
RS
8196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8197 (eval $ac_try) 2>&5
8198 ac_status=$?
8199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8200 (exit $ac_status); }; } &&
8201 { ac_try='test -s conftest$ac_exeext'
8202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8203 (eval $ac_try) 2>&5
8204 ac_status=$?
8205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8206 (exit $ac_status); }; }; then
8207 ac_cv_lib_m_coshf=yes
8208else
8209 echo "$as_me: failed program was:" >&5
8210sed 's/^/| /' conftest.$ac_ext >&5
8211
8212ac_cv_lib_m_coshf=no
8213fi
8214rm -f conftest.err conftest.$ac_objext \
8215 conftest$ac_exeext conftest.$ac_ext
8216LIBS=$ac_check_lib_save_LIBS
8217fi
8218echo "$as_me:$LINENO: result: $ac_cv_lib_m_coshf" >&5
8219echo "${ECHO_T}$ac_cv_lib_m_coshf" >&6
8220if test $ac_cv_lib_m_coshf = yes; then
8221
8222cat >>confdefs.h <<\_ACEOF
8223#define HAVE_COSHF 1
8224_ACEOF
8225
8226fi
8227
8228echo "$as_me:$LINENO: checking for expf in -lm" >&5
8229echo $ECHO_N "checking for expf in -lm... $ECHO_C" >&6
8230if test "${ac_cv_lib_m_expf+set}" = set; then
8231 echo $ECHO_N "(cached) $ECHO_C" >&6
8232else
8233 ac_check_lib_save_LIBS=$LIBS
8234LIBS="-lm $LIBS"
8235cat >conftest.$ac_ext <<_ACEOF
8236/* confdefs.h. */
8237_ACEOF
8238cat confdefs.h >>conftest.$ac_ext
8239cat >>conftest.$ac_ext <<_ACEOF
8240/* end confdefs.h. */
8241
8242/* Override any gcc2 internal prototype to avoid an error. */
8243#ifdef __cplusplus
8244extern "C"
8245#endif
8246/* We use char because int might match the return type of a gcc2
8247 builtin and then its argument prototype would still apply. */
8248char expf ();
8249int
8250main ()
8251{
8252expf ();
8253 ;
8254 return 0;
8255}
8256_ACEOF
8257rm -f conftest.$ac_objext conftest$ac_exeext
8258if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8259 (eval $ac_link) 2>conftest.er1
8260 ac_status=$?
8261 grep -v '^ *+' conftest.er1 >conftest.err
8262 rm -f conftest.er1
8263 cat conftest.err >&5
8264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8265 (exit $ac_status); } &&
1fb2002d 8266 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
453310d8
RS
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); }; } &&
8272 { ac_try='test -s conftest$ac_exeext'
8273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8274 (eval $ac_try) 2>&5
8275 ac_status=$?
8276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8277 (exit $ac_status); }; }; then
8278 ac_cv_lib_m_expf=yes
8279else
8280 echo "$as_me: failed program was:" >&5
8281sed 's/^/| /' conftest.$ac_ext >&5
8282
8283ac_cv_lib_m_expf=no
8284fi
8285rm -f conftest.err conftest.$ac_objext \
8286 conftest$ac_exeext conftest.$ac_ext
8287LIBS=$ac_check_lib_save_LIBS
8288fi
8289echo "$as_me:$LINENO: result: $ac_cv_lib_m_expf" >&5
8290echo "${ECHO_T}$ac_cv_lib_m_expf" >&6
8291if test $ac_cv_lib_m_expf = yes; then
8292
8293cat >>confdefs.h <<\_ACEOF
8294#define HAVE_EXPF 1
8295_ACEOF
8296
8297fi
8298
6e4d9244
EB
8299echo "$as_me:$LINENO: checking for fabsf in -lm" >&5
8300echo $ECHO_N "checking for fabsf in -lm... $ECHO_C" >&6
8301if test "${ac_cv_lib_m_fabsf+set}" = set; then
8302 echo $ECHO_N "(cached) $ECHO_C" >&6
8303else
8304 ac_check_lib_save_LIBS=$LIBS
8305LIBS="-lm $LIBS"
6e4d9244
EB
8306cat >conftest.$ac_ext <<_ACEOF
8307/* confdefs.h. */
8308_ACEOF
8309cat confdefs.h >>conftest.$ac_ext
8310cat >>conftest.$ac_ext <<_ACEOF
8311/* end confdefs.h. */
8312
8313/* Override any gcc2 internal prototype to avoid an error. */
8314#ifdef __cplusplus
8315extern "C"
8316#endif
8317/* We use char because int might match the return type of a gcc2
8318 builtin and then its argument prototype would still apply. */
8319char fabsf ();
8320int
8321main ()
8322{
8323fabsf ();
8324 ;
8325 return 0;
8326}
8327_ACEOF
8328rm -f conftest.$ac_objext conftest$ac_exeext
8329if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8330 (eval $ac_link) 2>conftest.er1
8331 ac_status=$?
8332 grep -v '^ *+' conftest.er1 >conftest.err
8333 rm -f conftest.er1
8334 cat conftest.err >&5
8335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8336 (exit $ac_status); } &&
1fb2002d 8337 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6e4d9244
EB
8338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8339 (eval $ac_try) 2>&5
8340 ac_status=$?
8341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8342 (exit $ac_status); }; } &&
8343 { ac_try='test -s conftest$ac_exeext'
8344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8345 (eval $ac_try) 2>&5
8346 ac_status=$?
8347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8348 (exit $ac_status); }; }; then
8349 ac_cv_lib_m_fabsf=yes
8350else
8351 echo "$as_me: failed program was:" >&5
8352sed 's/^/| /' conftest.$ac_ext >&5
8353
8354ac_cv_lib_m_fabsf=no
8355fi
8356rm -f conftest.err conftest.$ac_objext \
8357 conftest$ac_exeext conftest.$ac_ext
8358LIBS=$ac_check_lib_save_LIBS
8359fi
8360echo "$as_me:$LINENO: result: $ac_cv_lib_m_fabsf" >&5
8361echo "${ECHO_T}$ac_cv_lib_m_fabsf" >&6
8362if test $ac_cv_lib_m_fabsf = yes; then
8363
8364cat >>confdefs.h <<\_ACEOF
8365#define HAVE_FABSF 1
8366_ACEOF
8367
8368fi
8369
453310d8
RS
8370echo "$as_me:$LINENO: checking for floorf in -lm" >&5
8371echo $ECHO_N "checking for floorf in -lm... $ECHO_C" >&6
8372if test "${ac_cv_lib_m_floorf+set}" = set; then
8373 echo $ECHO_N "(cached) $ECHO_C" >&6
8374else
8375 ac_check_lib_save_LIBS=$LIBS
8376LIBS="-lm $LIBS"
8377cat >conftest.$ac_ext <<_ACEOF
8378/* confdefs.h. */
8379_ACEOF
8380cat confdefs.h >>conftest.$ac_ext
8381cat >>conftest.$ac_ext <<_ACEOF
8382/* end confdefs.h. */
8383
8384/* Override any gcc2 internal prototype to avoid an error. */
8385#ifdef __cplusplus
8386extern "C"
8387#endif
8388/* We use char because int might match the return type of a gcc2
8389 builtin and then its argument prototype would still apply. */
8390char floorf ();
8391int
8392main ()
8393{
8394floorf ();
8395 ;
8396 return 0;
8397}
8398_ACEOF
8399rm -f conftest.$ac_objext conftest$ac_exeext
8400if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8401 (eval $ac_link) 2>conftest.er1
8402 ac_status=$?
8403 grep -v '^ *+' conftest.er1 >conftest.err
8404 rm -f conftest.er1
8405 cat conftest.err >&5
8406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8407 (exit $ac_status); } &&
1fb2002d 8408 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
453310d8
RS
8409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8410 (eval $ac_try) 2>&5
8411 ac_status=$?
8412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8413 (exit $ac_status); }; } &&
8414 { ac_try='test -s conftest$ac_exeext'
8415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8416 (eval $ac_try) 2>&5
8417 ac_status=$?
8418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8419 (exit $ac_status); }; }; then
8420 ac_cv_lib_m_floorf=yes
8421else
8422 echo "$as_me: failed program was:" >&5
8423sed 's/^/| /' conftest.$ac_ext >&5
8424
8425ac_cv_lib_m_floorf=no
8426fi
8427rm -f conftest.err conftest.$ac_objext \
8428 conftest$ac_exeext conftest.$ac_ext
8429LIBS=$ac_check_lib_save_LIBS
8430fi
8431echo "$as_me:$LINENO: result: $ac_cv_lib_m_floorf" >&5
8432echo "${ECHO_T}$ac_cv_lib_m_floorf" >&6
8433if test $ac_cv_lib_m_floorf = yes; then
8434
8435cat >>confdefs.h <<\_ACEOF
8436#define HAVE_FLOORF 1
8437_ACEOF
8438
8439fi
8440
8441echo "$as_me:$LINENO: checking for frexpf in -lm" >&5
8442echo $ECHO_N "checking for frexpf in -lm... $ECHO_C" >&6
8443if test "${ac_cv_lib_m_frexpf+set}" = set; then
8444 echo $ECHO_N "(cached) $ECHO_C" >&6
8445else
8446 ac_check_lib_save_LIBS=$LIBS
8447LIBS="-lm $LIBS"
8448cat >conftest.$ac_ext <<_ACEOF
8449/* confdefs.h. */
8450_ACEOF
8451cat confdefs.h >>conftest.$ac_ext
8452cat >>conftest.$ac_ext <<_ACEOF
8453/* end confdefs.h. */
8454
8455/* Override any gcc2 internal prototype to avoid an error. */
8456#ifdef __cplusplus
8457extern "C"
8458#endif
8459/* We use char because int might match the return type of a gcc2
8460 builtin and then its argument prototype would still apply. */
8461char frexpf ();
8462int
8463main ()
8464{
8465frexpf ();
8466 ;
8467 return 0;
8468}
8469_ACEOF
8470rm -f conftest.$ac_objext conftest$ac_exeext
8471if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8472 (eval $ac_link) 2>conftest.er1
8473 ac_status=$?
8474 grep -v '^ *+' conftest.er1 >conftest.err
8475 rm -f conftest.er1
8476 cat conftest.err >&5
8477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8478 (exit $ac_status); } &&
1fb2002d 8479 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
453310d8
RS
8480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8481 (eval $ac_try) 2>&5
8482 ac_status=$?
8483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8484 (exit $ac_status); }; } &&
8485 { ac_try='test -s conftest$ac_exeext'
8486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8487 (eval $ac_try) 2>&5
8488 ac_status=$?
8489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8490 (exit $ac_status); }; }; then
8491 ac_cv_lib_m_frexpf=yes
8492else
8493 echo "$as_me: failed program was:" >&5
8494sed 's/^/| /' conftest.$ac_ext >&5
8495
8496ac_cv_lib_m_frexpf=no
8497fi
8498rm -f conftest.err conftest.$ac_objext \
8499 conftest$ac_exeext conftest.$ac_ext
8500LIBS=$ac_check_lib_save_LIBS
8501fi
8502echo "$as_me:$LINENO: result: $ac_cv_lib_m_frexpf" >&5
8503echo "${ECHO_T}$ac_cv_lib_m_frexpf" >&6
8504if test $ac_cv_lib_m_frexpf = yes; then
8505
8506cat >>confdefs.h <<\_ACEOF
8507#define HAVE_FREXPF 1
8508_ACEOF
8509
8510fi
8511
8512echo "$as_me:$LINENO: checking for hypotf in -lm" >&5
8513echo $ECHO_N "checking for hypotf in -lm... $ECHO_C" >&6
8514if test "${ac_cv_lib_m_hypotf+set}" = set; then
8515 echo $ECHO_N "(cached) $ECHO_C" >&6
8516else
8517 ac_check_lib_save_LIBS=$LIBS
8518LIBS="-lm $LIBS"
8519cat >conftest.$ac_ext <<_ACEOF
8520/* confdefs.h. */
8521_ACEOF
8522cat confdefs.h >>conftest.$ac_ext
8523cat >>conftest.$ac_ext <<_ACEOF
8524/* end confdefs.h. */
8525
8526/* Override any gcc2 internal prototype to avoid an error. */
8527#ifdef __cplusplus
8528extern "C"
8529#endif
8530/* We use char because int might match the return type of a gcc2
8531 builtin and then its argument prototype would still apply. */
8532char hypotf ();
8533int
8534main ()
8535{
8536hypotf ();
8537 ;
8538 return 0;
8539}
8540_ACEOF
8541rm -f conftest.$ac_objext conftest$ac_exeext
8542if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8543 (eval $ac_link) 2>conftest.er1
8544 ac_status=$?
8545 grep -v '^ *+' conftest.er1 >conftest.err
8546 rm -f conftest.er1
8547 cat conftest.err >&5
8548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8549 (exit $ac_status); } &&
1fb2002d 8550 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
453310d8
RS
8551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8552 (eval $ac_try) 2>&5
8553 ac_status=$?
8554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8555 (exit $ac_status); }; } &&
8556 { ac_try='test -s conftest$ac_exeext'
8557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8558 (eval $ac_try) 2>&5
8559 ac_status=$?
8560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8561 (exit $ac_status); }; }; then
8562 ac_cv_lib_m_hypotf=yes
8563else
8564 echo "$as_me: failed program was:" >&5
8565sed 's/^/| /' conftest.$ac_ext >&5
8566
8567ac_cv_lib_m_hypotf=no
8568fi
8569rm -f conftest.err conftest.$ac_objext \
8570 conftest$ac_exeext conftest.$ac_ext
8571LIBS=$ac_check_lib_save_LIBS
8572fi
8573echo "$as_me:$LINENO: result: $ac_cv_lib_m_hypotf" >&5
8574echo "${ECHO_T}$ac_cv_lib_m_hypotf" >&6
8575if test $ac_cv_lib_m_hypotf = yes; then
8576
8577cat >>confdefs.h <<\_ACEOF
8578#define HAVE_HYPOTF 1
8579_ACEOF
8580
8581fi
8582
8583echo "$as_me:$LINENO: checking for logf in -lm" >&5
8584echo $ECHO_N "checking for logf in -lm... $ECHO_C" >&6
8585if test "${ac_cv_lib_m_logf+set}" = set; then
8586 echo $ECHO_N "(cached) $ECHO_C" >&6
8587else
8588 ac_check_lib_save_LIBS=$LIBS
8589LIBS="-lm $LIBS"
8590cat >conftest.$ac_ext <<_ACEOF
8591/* confdefs.h. */
8592_ACEOF
8593cat confdefs.h >>conftest.$ac_ext
8594cat >>conftest.$ac_ext <<_ACEOF
8595/* end confdefs.h. */
8596
8597/* Override any gcc2 internal prototype to avoid an error. */
8598#ifdef __cplusplus
8599extern "C"
8600#endif
8601/* We use char because int might match the return type of a gcc2
8602 builtin and then its argument prototype would still apply. */
8603char logf ();
8604int
8605main ()
8606{
8607logf ();
8608 ;
8609 return 0;
8610}
8611_ACEOF
8612rm -f conftest.$ac_objext conftest$ac_exeext
8613if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8614 (eval $ac_link) 2>conftest.er1
8615 ac_status=$?
8616 grep -v '^ *+' conftest.er1 >conftest.err
8617 rm -f conftest.er1
8618 cat conftest.err >&5
8619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8620 (exit $ac_status); } &&
1fb2002d 8621 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
453310d8
RS
8622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8623 (eval $ac_try) 2>&5
8624 ac_status=$?
8625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8626 (exit $ac_status); }; } &&
8627 { ac_try='test -s conftest$ac_exeext'
8628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8629 (eval $ac_try) 2>&5
8630 ac_status=$?
8631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8632 (exit $ac_status); }; }; then
8633 ac_cv_lib_m_logf=yes
8634else
8635 echo "$as_me: failed program was:" >&5
8636sed 's/^/| /' conftest.$ac_ext >&5
8637
8638ac_cv_lib_m_logf=no
8639fi
8640rm -f conftest.err conftest.$ac_objext \
8641 conftest$ac_exeext conftest.$ac_ext
8642LIBS=$ac_check_lib_save_LIBS
8643fi
8644echo "$as_me:$LINENO: result: $ac_cv_lib_m_logf" >&5
8645echo "${ECHO_T}$ac_cv_lib_m_logf" >&6
8646if test $ac_cv_lib_m_logf = yes; then
8647
8648cat >>confdefs.h <<\_ACEOF
8649#define HAVE_LOGF 1
8650_ACEOF
8651
8652fi
8653
8654echo "$as_me:$LINENO: checking for log10f in -lm" >&5
8655echo $ECHO_N "checking for log10f in -lm... $ECHO_C" >&6
8656if test "${ac_cv_lib_m_log10f+set}" = set; then
8657 echo $ECHO_N "(cached) $ECHO_C" >&6
8658else
8659 ac_check_lib_save_LIBS=$LIBS
8660LIBS="-lm $LIBS"
8661cat >conftest.$ac_ext <<_ACEOF
8662/* confdefs.h. */
8663_ACEOF
8664cat confdefs.h >>conftest.$ac_ext
8665cat >>conftest.$ac_ext <<_ACEOF
8666/* end confdefs.h. */
8667
8668/* Override any gcc2 internal prototype to avoid an error. */
8669#ifdef __cplusplus
8670extern "C"
8671#endif
8672/* We use char because int might match the return type of a gcc2
8673 builtin and then its argument prototype would still apply. */
8674char log10f ();
8675int
8676main ()
8677{
8678log10f ();
8679 ;
8680 return 0;
8681}
8682_ACEOF
8683rm -f conftest.$ac_objext conftest$ac_exeext
8684if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8685 (eval $ac_link) 2>conftest.er1
8686 ac_status=$?
8687 grep -v '^ *+' conftest.er1 >conftest.err
8688 rm -f conftest.er1
8689 cat conftest.err >&5
8690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8691 (exit $ac_status); } &&
1fb2002d 8692 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
453310d8
RS
8693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8694 (eval $ac_try) 2>&5
8695 ac_status=$?
8696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8697 (exit $ac_status); }; } &&
8698 { ac_try='test -s conftest$ac_exeext'
8699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8700 (eval $ac_try) 2>&5
8701 ac_status=$?
8702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8703 (exit $ac_status); }; }; then
8704 ac_cv_lib_m_log10f=yes
8705else
8706 echo "$as_me: failed program was:" >&5
8707sed 's/^/| /' conftest.$ac_ext >&5
8708
8709ac_cv_lib_m_log10f=no
8710fi
8711rm -f conftest.err conftest.$ac_objext \
8712 conftest$ac_exeext conftest.$ac_ext
8713LIBS=$ac_check_lib_save_LIBS
8714fi
8715echo "$as_me:$LINENO: result: $ac_cv_lib_m_log10f" >&5
8716echo "${ECHO_T}$ac_cv_lib_m_log10f" >&6
8717if test $ac_cv_lib_m_log10f = yes; then
8718
8719cat >>confdefs.h <<\_ACEOF
8720#define HAVE_LOG10F 1
8721_ACEOF
8722
8723fi
8724
8725echo "$as_me:$LINENO: checking for nextafter in -lm" >&5
8726echo $ECHO_N "checking for nextafter in -lm... $ECHO_C" >&6
8727if test "${ac_cv_lib_m_nextafter+set}" = set; then
8728 echo $ECHO_N "(cached) $ECHO_C" >&6
8729else
8730 ac_check_lib_save_LIBS=$LIBS
8731LIBS="-lm $LIBS"
8732cat >conftest.$ac_ext <<_ACEOF
8733/* confdefs.h. */
8734_ACEOF
8735cat confdefs.h >>conftest.$ac_ext
8736cat >>conftest.$ac_ext <<_ACEOF
8737/* end confdefs.h. */
8738
8739/* Override any gcc2 internal prototype to avoid an error. */
8740#ifdef __cplusplus
8741extern "C"
8742#endif
8743/* We use char because int might match the return type of a gcc2
8744 builtin and then its argument prototype would still apply. */
8745char nextafter ();
8746int
8747main ()
8748{
8749nextafter ();
8750 ;
8751 return 0;
8752}
8753_ACEOF
8754rm -f conftest.$ac_objext conftest$ac_exeext
8755if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8756 (eval $ac_link) 2>conftest.er1
8757 ac_status=$?
8758 grep -v '^ *+' conftest.er1 >conftest.err
8759 rm -f conftest.er1
8760 cat conftest.err >&5
8761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8762 (exit $ac_status); } &&
1fb2002d 8763 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
453310d8
RS
8764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8765 (eval $ac_try) 2>&5
8766 ac_status=$?
8767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8768 (exit $ac_status); }; } &&
8769 { ac_try='test -s conftest$ac_exeext'
8770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8771 (eval $ac_try) 2>&5
8772 ac_status=$?
8773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8774 (exit $ac_status); }; }; then
8775 ac_cv_lib_m_nextafter=yes
8776else
8777 echo "$as_me: failed program was:" >&5
8778sed 's/^/| /' conftest.$ac_ext >&5
8779
8780ac_cv_lib_m_nextafter=no
8781fi
8782rm -f conftest.err conftest.$ac_objext \
8783 conftest$ac_exeext conftest.$ac_ext
8784LIBS=$ac_check_lib_save_LIBS
8785fi
8786echo "$as_me:$LINENO: result: $ac_cv_lib_m_nextafter" >&5
8787echo "${ECHO_T}$ac_cv_lib_m_nextafter" >&6
8788if test $ac_cv_lib_m_nextafter = yes; then
8789
8790cat >>confdefs.h <<\_ACEOF
8791#define HAVE_NEXTAFTER 1
8792_ACEOF
8793
8794fi
8795
8796echo "$as_me:$LINENO: checking for nextafterf in -lm" >&5
8797echo $ECHO_N "checking for nextafterf in -lm... $ECHO_C" >&6
8798if test "${ac_cv_lib_m_nextafterf+set}" = set; then
8799 echo $ECHO_N "(cached) $ECHO_C" >&6
8800else
8801 ac_check_lib_save_LIBS=$LIBS
8802LIBS="-lm $LIBS"
8803cat >conftest.$ac_ext <<_ACEOF
8804/* confdefs.h. */
8805_ACEOF
8806cat confdefs.h >>conftest.$ac_ext
8807cat >>conftest.$ac_ext <<_ACEOF
8808/* end confdefs.h. */
8809
8810/* Override any gcc2 internal prototype to avoid an error. */
8811#ifdef __cplusplus
8812extern "C"
8813#endif
8814/* We use char because int might match the return type of a gcc2
8815 builtin and then its argument prototype would still apply. */
8816char nextafterf ();
8817int
8818main ()
8819{
8820nextafterf ();
8821 ;
8822 return 0;
8823}
8824_ACEOF
8825rm -f conftest.$ac_objext conftest$ac_exeext
8826if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8827 (eval $ac_link) 2>conftest.er1
8828 ac_status=$?
8829 grep -v '^ *+' conftest.er1 >conftest.err
8830 rm -f conftest.er1
8831 cat conftest.err >&5
8832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8833 (exit $ac_status); } &&
1fb2002d 8834 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
453310d8
RS
8835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8836 (eval $ac_try) 2>&5
8837 ac_status=$?
8838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8839 (exit $ac_status); }; } &&
8840 { ac_try='test -s conftest$ac_exeext'
8841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8842 (eval $ac_try) 2>&5
8843 ac_status=$?
8844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8845 (exit $ac_status); }; }; then
8846 ac_cv_lib_m_nextafterf=yes
8847else
8848 echo "$as_me: failed program was:" >&5
8849sed 's/^/| /' conftest.$ac_ext >&5
8850
8851ac_cv_lib_m_nextafterf=no
8852fi
8853rm -f conftest.err conftest.$ac_objext \
8854 conftest$ac_exeext conftest.$ac_ext
8855LIBS=$ac_check_lib_save_LIBS
8856fi
8857echo "$as_me:$LINENO: result: $ac_cv_lib_m_nextafterf" >&5
8858echo "${ECHO_T}$ac_cv_lib_m_nextafterf" >&6
8859if test $ac_cv_lib_m_nextafterf = yes; then
8860
8861cat >>confdefs.h <<\_ACEOF
8862#define HAVE_NEXTAFTERF 1
8863_ACEOF
8864
8865fi
8866
bf4d99cf
TS
8867echo "$as_me:$LINENO: checking for powf in -lm" >&5
8868echo $ECHO_N "checking for powf in -lm... $ECHO_C" >&6
8869if test "${ac_cv_lib_m_powf+set}" = set; then
8870 echo $ECHO_N "(cached) $ECHO_C" >&6
8871else
8872 ac_check_lib_save_LIBS=$LIBS
8873LIBS="-lm $LIBS"
8874cat >conftest.$ac_ext <<_ACEOF
8875/* confdefs.h. */
8876_ACEOF
8877cat confdefs.h >>conftest.$ac_ext
8878cat >>conftest.$ac_ext <<_ACEOF
8879/* end confdefs.h. */
8880
8881/* Override any gcc2 internal prototype to avoid an error. */
8882#ifdef __cplusplus
8883extern "C"
8884#endif
8885/* We use char because int might match the return type of a gcc2
8886 builtin and then its argument prototype would still apply. */
8887char powf ();
8888int
8889main ()
8890{
8891powf ();
8892 ;
8893 return 0;
8894}
8895_ACEOF
8896rm -f conftest.$ac_objext conftest$ac_exeext
8897if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8898 (eval $ac_link) 2>conftest.er1
8899 ac_status=$?
8900 grep -v '^ *+' conftest.er1 >conftest.err
8901 rm -f conftest.er1
8902 cat conftest.err >&5
8903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8904 (exit $ac_status); } &&
1fb2002d 8905 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bf4d99cf
TS
8906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8907 (eval $ac_try) 2>&5
8908 ac_status=$?
8909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8910 (exit $ac_status); }; } &&
8911 { ac_try='test -s conftest$ac_exeext'
8912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8913 (eval $ac_try) 2>&5
8914 ac_status=$?
8915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8916 (exit $ac_status); }; }; then
8917 ac_cv_lib_m_powf=yes
8918else
8919 echo "$as_me: failed program was:" >&5
8920sed 's/^/| /' conftest.$ac_ext >&5
8921
8922ac_cv_lib_m_powf=no
8923fi
8924rm -f conftest.err conftest.$ac_objext \
8925 conftest$ac_exeext conftest.$ac_ext
8926LIBS=$ac_check_lib_save_LIBS
8927fi
8928echo "$as_me:$LINENO: result: $ac_cv_lib_m_powf" >&5
8929echo "${ECHO_T}$ac_cv_lib_m_powf" >&6
8930if test $ac_cv_lib_m_powf = yes; then
8931
8932cat >>confdefs.h <<\_ACEOF
8933#define HAVE_POWF 1
8934_ACEOF
8935
8936fi
8937
a2a2059f
BD
8938echo "$as_me:$LINENO: checking for round in -lm" >&5
8939echo $ECHO_N "checking for round in -lm... $ECHO_C" >&6
8940if test "${ac_cv_lib_m_round+set}" = set; then
8941 echo $ECHO_N "(cached) $ECHO_C" >&6
8942else
8943 ac_check_lib_save_LIBS=$LIBS
8944LIBS="-lm $LIBS"
8945cat >conftest.$ac_ext <<_ACEOF
8946/* confdefs.h. */
8947_ACEOF
8948cat confdefs.h >>conftest.$ac_ext
8949cat >>conftest.$ac_ext <<_ACEOF
8950/* end confdefs.h. */
8951
8952/* Override any gcc2 internal prototype to avoid an error. */
8953#ifdef __cplusplus
8954extern "C"
8955#endif
8956/* We use char because int might match the return type of a gcc2
8957 builtin and then its argument prototype would still apply. */
453310d8
RS
8958char round ();
8959int
8960main ()
8961{
8962round ();
8963 ;
8964 return 0;
8965}
8966_ACEOF
8967rm -f conftest.$ac_objext conftest$ac_exeext
8968if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8969 (eval $ac_link) 2>conftest.er1
8970 ac_status=$?
8971 grep -v '^ *+' conftest.er1 >conftest.err
8972 rm -f conftest.er1
8973 cat conftest.err >&5
8974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8975 (exit $ac_status); } &&
1fb2002d 8976 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
453310d8
RS
8977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8978 (eval $ac_try) 2>&5
8979 ac_status=$?
8980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8981 (exit $ac_status); }; } &&
8982 { ac_try='test -s conftest$ac_exeext'
8983 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8984 (eval $ac_try) 2>&5
8985 ac_status=$?
8986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8987 (exit $ac_status); }; }; then
8988 ac_cv_lib_m_round=yes
8989else
8990 echo "$as_me: failed program was:" >&5
8991sed 's/^/| /' conftest.$ac_ext >&5
8992
8993ac_cv_lib_m_round=no
8994fi
8995rm -f conftest.err conftest.$ac_objext \
8996 conftest$ac_exeext conftest.$ac_ext
8997LIBS=$ac_check_lib_save_LIBS
8998fi
8999echo "$as_me:$LINENO: result: $ac_cv_lib_m_round" >&5
9000echo "${ECHO_T}$ac_cv_lib_m_round" >&6
9001if test $ac_cv_lib_m_round = yes; then
9002
9003cat >>confdefs.h <<\_ACEOF
9004#define HAVE_ROUND 1
9005_ACEOF
9006
9007fi
9008
9009echo "$as_me:$LINENO: checking for roundf in -lm" >&5
9010echo $ECHO_N "checking for roundf in -lm... $ECHO_C" >&6
9011if test "${ac_cv_lib_m_roundf+set}" = set; then
9012 echo $ECHO_N "(cached) $ECHO_C" >&6
9013else
9014 ac_check_lib_save_LIBS=$LIBS
9015LIBS="-lm $LIBS"
9016cat >conftest.$ac_ext <<_ACEOF
9017/* confdefs.h. */
9018_ACEOF
9019cat confdefs.h >>conftest.$ac_ext
9020cat >>conftest.$ac_ext <<_ACEOF
9021/* end confdefs.h. */
9022
9023/* Override any gcc2 internal prototype to avoid an error. */
9024#ifdef __cplusplus
9025extern "C"
9026#endif
9027/* We use char because int might match the return type of a gcc2
9028 builtin and then its argument prototype would still apply. */
9029char roundf ();
a2a2059f
BD
9030int
9031main ()
9032{
453310d8 9033roundf ();
a2a2059f
BD
9034 ;
9035 return 0;
9036}
9037_ACEOF
9038rm -f conftest.$ac_objext conftest$ac_exeext
9039if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9040 (eval $ac_link) 2>conftest.er1
9041 ac_status=$?
9042 grep -v '^ *+' conftest.er1 >conftest.err
9043 rm -f conftest.er1
9044 cat conftest.err >&5
9045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9046 (exit $ac_status); } &&
1fb2002d 9047 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
a2a2059f
BD
9048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9049 (eval $ac_try) 2>&5
9050 ac_status=$?
9051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9052 (exit $ac_status); }; } &&
9053 { ac_try='test -s conftest$ac_exeext'
9054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9055 (eval $ac_try) 2>&5
9056 ac_status=$?
9057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9058 (exit $ac_status); }; }; then
453310d8 9059 ac_cv_lib_m_roundf=yes
a2a2059f
BD
9060else
9061 echo "$as_me: failed program was:" >&5
9062sed 's/^/| /' conftest.$ac_ext >&5
9063
453310d8 9064ac_cv_lib_m_roundf=no
a2a2059f
BD
9065fi
9066rm -f conftest.err conftest.$ac_objext \
9067 conftest$ac_exeext conftest.$ac_ext
9068LIBS=$ac_check_lib_save_LIBS
9069fi
453310d8
RS
9070echo "$as_me:$LINENO: result: $ac_cv_lib_m_roundf" >&5
9071echo "${ECHO_T}$ac_cv_lib_m_roundf" >&6
9072if test $ac_cv_lib_m_roundf = yes; then
a2a2059f
BD
9073
9074cat >>confdefs.h <<\_ACEOF
453310d8 9075#define HAVE_ROUNDF 1
a2a2059f
BD
9076_ACEOF
9077
9078fi
9079
453310d8
RS
9080echo "$as_me:$LINENO: checking for scalbnf in -lm" >&5
9081echo $ECHO_N "checking for scalbnf in -lm... $ECHO_C" >&6
9082if test "${ac_cv_lib_m_scalbnf+set}" = set; then
a2a2059f
BD
9083 echo $ECHO_N "(cached) $ECHO_C" >&6
9084else
9085 ac_check_lib_save_LIBS=$LIBS
9086LIBS="-lm $LIBS"
9087cat >conftest.$ac_ext <<_ACEOF
9088/* confdefs.h. */
9089_ACEOF
9090cat confdefs.h >>conftest.$ac_ext
9091cat >>conftest.$ac_ext <<_ACEOF
9092/* end confdefs.h. */
9093
9094/* Override any gcc2 internal prototype to avoid an error. */
9095#ifdef __cplusplus
9096extern "C"
9097#endif
9098/* We use char because int might match the return type of a gcc2
9099 builtin and then its argument prototype would still apply. */
453310d8 9100char scalbnf ();
a2a2059f
BD
9101int
9102main ()
9103{
453310d8 9104scalbnf ();
a2a2059f
BD
9105 ;
9106 return 0;
9107}
9108_ACEOF
9109rm -f conftest.$ac_objext conftest$ac_exeext
9110if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9111 (eval $ac_link) 2>conftest.er1
9112 ac_status=$?
9113 grep -v '^ *+' conftest.er1 >conftest.err
9114 rm -f conftest.er1
9115 cat conftest.err >&5
9116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9117 (exit $ac_status); } &&
1fb2002d 9118 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
a2a2059f
BD
9119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9120 (eval $ac_try) 2>&5
9121 ac_status=$?
9122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9123 (exit $ac_status); }; } &&
9124 { ac_try='test -s conftest$ac_exeext'
9125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9126 (eval $ac_try) 2>&5
9127 ac_status=$?
9128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9129 (exit $ac_status); }; }; then
453310d8 9130 ac_cv_lib_m_scalbnf=yes
a2a2059f
BD
9131else
9132 echo "$as_me: failed program was:" >&5
9133sed 's/^/| /' conftest.$ac_ext >&5
9134
453310d8 9135ac_cv_lib_m_scalbnf=no
a2a2059f
BD
9136fi
9137rm -f conftest.err conftest.$ac_objext \
9138 conftest$ac_exeext conftest.$ac_ext
9139LIBS=$ac_check_lib_save_LIBS
9140fi
453310d8
RS
9141echo "$as_me:$LINENO: result: $ac_cv_lib_m_scalbnf" >&5
9142echo "${ECHO_T}$ac_cv_lib_m_scalbnf" >&6
9143if test $ac_cv_lib_m_scalbnf = yes; then
a2a2059f
BD
9144
9145cat >>confdefs.h <<\_ACEOF
453310d8 9146#define HAVE_SCALBNF 1
a2a2059f
BD
9147_ACEOF
9148
9149fi
9150
453310d8
RS
9151echo "$as_me:$LINENO: checking for sinf in -lm" >&5
9152echo $ECHO_N "checking for sinf in -lm... $ECHO_C" >&6
9153if test "${ac_cv_lib_m_sinf+set}" = set; then
a9e7b9d3
PB
9154 echo $ECHO_N "(cached) $ECHO_C" >&6
9155else
9156 ac_check_lib_save_LIBS=$LIBS
9157LIBS="-lm $LIBS"
9158cat >conftest.$ac_ext <<_ACEOF
9159/* confdefs.h. */
9160_ACEOF
9161cat confdefs.h >>conftest.$ac_ext
9162cat >>conftest.$ac_ext <<_ACEOF
9163/* end confdefs.h. */
9164
9165/* Override any gcc2 internal prototype to avoid an error. */
9166#ifdef __cplusplus
9167extern "C"
9168#endif
9169/* We use char because int might match the return type of a gcc2
9170 builtin and then its argument prototype would still apply. */
453310d8 9171char sinf ();
a9e7b9d3
PB
9172int
9173main ()
9174{
453310d8 9175sinf ();
a9e7b9d3
PB
9176 ;
9177 return 0;
9178}
9179_ACEOF
9180rm -f conftest.$ac_objext conftest$ac_exeext
9181if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9182 (eval $ac_link) 2>conftest.er1
9183 ac_status=$?
9184 grep -v '^ *+' conftest.er1 >conftest.err
9185 rm -f conftest.er1
9186 cat conftest.err >&5
9187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9188 (exit $ac_status); } &&
1fb2002d 9189 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
a9e7b9d3
PB
9190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9191 (eval $ac_try) 2>&5
9192 ac_status=$?
9193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9194 (exit $ac_status); }; } &&
9195 { ac_try='test -s conftest$ac_exeext'
9196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9197 (eval $ac_try) 2>&5
9198 ac_status=$?
9199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9200 (exit $ac_status); }; }; then
453310d8 9201 ac_cv_lib_m_sinf=yes
a9e7b9d3
PB
9202else
9203 echo "$as_me: failed program was:" >&5
9204sed 's/^/| /' conftest.$ac_ext >&5
9205
453310d8 9206ac_cv_lib_m_sinf=no
a9e7b9d3
PB
9207fi
9208rm -f conftest.err conftest.$ac_objext \
9209 conftest$ac_exeext conftest.$ac_ext
9210LIBS=$ac_check_lib_save_LIBS
9211fi
453310d8
RS
9212echo "$as_me:$LINENO: result: $ac_cv_lib_m_sinf" >&5
9213echo "${ECHO_T}$ac_cv_lib_m_sinf" >&6
9214if test $ac_cv_lib_m_sinf = yes; then
a9e7b9d3
PB
9215
9216cat >>confdefs.h <<\_ACEOF
453310d8 9217#define HAVE_SINF 1
a9e7b9d3
PB
9218_ACEOF
9219
9220fi
9221
453310d8
RS
9222echo "$as_me:$LINENO: checking for sinhf in -lm" >&5
9223echo $ECHO_N "checking for sinhf in -lm... $ECHO_C" >&6
9224if test "${ac_cv_lib_m_sinhf+set}" = set; then
a9e7b9d3
PB
9225 echo $ECHO_N "(cached) $ECHO_C" >&6
9226else
9227 ac_check_lib_save_LIBS=$LIBS
9228LIBS="-lm $LIBS"
9229cat >conftest.$ac_ext <<_ACEOF
9230/* confdefs.h. */
9231_ACEOF
9232cat confdefs.h >>conftest.$ac_ext
9233cat >>conftest.$ac_ext <<_ACEOF
9234/* end confdefs.h. */
9235
9236/* Override any gcc2 internal prototype to avoid an error. */
9237#ifdef __cplusplus
9238extern "C"
9239#endif
9240/* We use char because int might match the return type of a gcc2
9241 builtin and then its argument prototype would still apply. */
453310d8 9242char sinhf ();
a9e7b9d3
PB
9243int
9244main ()
9245{
453310d8 9246sinhf ();
a9e7b9d3
PB
9247 ;
9248 return 0;
9249}
9250_ACEOF
9251rm -f conftest.$ac_objext conftest$ac_exeext
9252if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9253 (eval $ac_link) 2>conftest.er1
9254 ac_status=$?
9255 grep -v '^ *+' conftest.er1 >conftest.err
9256 rm -f conftest.er1
9257 cat conftest.err >&5
9258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9259 (exit $ac_status); } &&
1fb2002d 9260 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
a9e7b9d3
PB
9261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9262 (eval $ac_try) 2>&5
9263 ac_status=$?
9264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9265 (exit $ac_status); }; } &&
9266 { ac_try='test -s conftest$ac_exeext'
9267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9268 (eval $ac_try) 2>&5
9269 ac_status=$?
9270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9271 (exit $ac_status); }; }; then
453310d8 9272 ac_cv_lib_m_sinhf=yes
a9e7b9d3
PB
9273else
9274 echo "$as_me: failed program was:" >&5
9275sed 's/^/| /' conftest.$ac_ext >&5
9276
453310d8 9277ac_cv_lib_m_sinhf=no
a9e7b9d3
PB
9278fi
9279rm -f conftest.err conftest.$ac_objext \
9280 conftest$ac_exeext conftest.$ac_ext
9281LIBS=$ac_check_lib_save_LIBS
9282fi
453310d8
RS
9283echo "$as_me:$LINENO: result: $ac_cv_lib_m_sinhf" >&5
9284echo "${ECHO_T}$ac_cv_lib_m_sinhf" >&6
9285if test $ac_cv_lib_m_sinhf = yes; then
a9e7b9d3
PB
9286
9287cat >>confdefs.h <<\_ACEOF
453310d8
RS
9288#define HAVE_SINHF 1
9289_ACEOF
9290
9291fi
9292
9293echo "$as_me:$LINENO: checking for sqrtf in -lm" >&5
9294echo $ECHO_N "checking for sqrtf in -lm... $ECHO_C" >&6
9295if test "${ac_cv_lib_m_sqrtf+set}" = set; then
9296 echo $ECHO_N "(cached) $ECHO_C" >&6
9297else
9298 ac_check_lib_save_LIBS=$LIBS
9299LIBS="-lm $LIBS"
9300cat >conftest.$ac_ext <<_ACEOF
9301/* confdefs.h. */
9302_ACEOF
9303cat confdefs.h >>conftest.$ac_ext
9304cat >>conftest.$ac_ext <<_ACEOF
9305/* end confdefs.h. */
9306
9307/* Override any gcc2 internal prototype to avoid an error. */
9308#ifdef __cplusplus
9309extern "C"
9310#endif
9311/* We use char because int might match the return type of a gcc2
9312 builtin and then its argument prototype would still apply. */
9313char sqrtf ();
9314int
9315main ()
9316{
9317sqrtf ();
9318 ;
9319 return 0;
9320}
9321_ACEOF
9322rm -f conftest.$ac_objext conftest$ac_exeext
9323if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9324 (eval $ac_link) 2>conftest.er1
9325 ac_status=$?
9326 grep -v '^ *+' conftest.er1 >conftest.err
9327 rm -f conftest.er1
9328 cat conftest.err >&5
9329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9330 (exit $ac_status); } &&
1fb2002d 9331 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
453310d8
RS
9332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9333 (eval $ac_try) 2>&5
9334 ac_status=$?
9335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9336 (exit $ac_status); }; } &&
9337 { ac_try='test -s conftest$ac_exeext'
9338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9339 (eval $ac_try) 2>&5
9340 ac_status=$?
9341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9342 (exit $ac_status); }; }; then
9343 ac_cv_lib_m_sqrtf=yes
9344else
9345 echo "$as_me: failed program was:" >&5
9346sed 's/^/| /' conftest.$ac_ext >&5
9347
9348ac_cv_lib_m_sqrtf=no
9349fi
9350rm -f conftest.err conftest.$ac_objext \
9351 conftest$ac_exeext conftest.$ac_ext
9352LIBS=$ac_check_lib_save_LIBS
9353fi
9354echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrtf" >&5
9355echo "${ECHO_T}$ac_cv_lib_m_sqrtf" >&6
9356if test $ac_cv_lib_m_sqrtf = yes; then
9357
9358cat >>confdefs.h <<\_ACEOF
9359#define HAVE_SQRTF 1
9360_ACEOF
9361
9362fi
9363
9364echo "$as_me:$LINENO: checking for tanf in -lm" >&5
9365echo $ECHO_N "checking for tanf in -lm... $ECHO_C" >&6
9366if test "${ac_cv_lib_m_tanf+set}" = set; then
9367 echo $ECHO_N "(cached) $ECHO_C" >&6
9368else
9369 ac_check_lib_save_LIBS=$LIBS
9370LIBS="-lm $LIBS"
9371cat >conftest.$ac_ext <<_ACEOF
9372/* confdefs.h. */
9373_ACEOF
9374cat confdefs.h >>conftest.$ac_ext
9375cat >>conftest.$ac_ext <<_ACEOF
9376/* end confdefs.h. */
9377
9378/* Override any gcc2 internal prototype to avoid an error. */
9379#ifdef __cplusplus
9380extern "C"
9381#endif
9382/* We use char because int might match the return type of a gcc2
9383 builtin and then its argument prototype would still apply. */
9384char tanf ();
9385int
9386main ()
9387{
9388tanf ();
9389 ;
9390 return 0;
9391}
9392_ACEOF
9393rm -f conftest.$ac_objext conftest$ac_exeext
9394if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9395 (eval $ac_link) 2>conftest.er1
9396 ac_status=$?
9397 grep -v '^ *+' conftest.er1 >conftest.err
9398 rm -f conftest.er1
9399 cat conftest.err >&5
9400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9401 (exit $ac_status); } &&
1fb2002d 9402 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
453310d8
RS
9403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9404 (eval $ac_try) 2>&5
9405 ac_status=$?
9406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9407 (exit $ac_status); }; } &&
9408 { ac_try='test -s conftest$ac_exeext'
9409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9410 (eval $ac_try) 2>&5
9411 ac_status=$?
9412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9413 (exit $ac_status); }; }; then
9414 ac_cv_lib_m_tanf=yes
9415else
9416 echo "$as_me: failed program was:" >&5
9417sed 's/^/| /' conftest.$ac_ext >&5
9418
9419ac_cv_lib_m_tanf=no
9420fi
9421rm -f conftest.err conftest.$ac_objext \
9422 conftest$ac_exeext conftest.$ac_ext
9423LIBS=$ac_check_lib_save_LIBS
9424fi
9425echo "$as_me:$LINENO: result: $ac_cv_lib_m_tanf" >&5
9426echo "${ECHO_T}$ac_cv_lib_m_tanf" >&6
9427if test $ac_cv_lib_m_tanf = yes; then
9428
9429cat >>confdefs.h <<\_ACEOF
9430#define HAVE_TANF 1
9431_ACEOF
9432
9433fi
9434
9435echo "$as_me:$LINENO: checking for tanhf in -lm" >&5
9436echo $ECHO_N "checking for tanhf in -lm... $ECHO_C" >&6
9437if test "${ac_cv_lib_m_tanhf+set}" = set; then
9438 echo $ECHO_N "(cached) $ECHO_C" >&6
9439else
9440 ac_check_lib_save_LIBS=$LIBS
9441LIBS="-lm $LIBS"
9442cat >conftest.$ac_ext <<_ACEOF
9443/* confdefs.h. */
9444_ACEOF
9445cat confdefs.h >>conftest.$ac_ext
9446cat >>conftest.$ac_ext <<_ACEOF
9447/* end confdefs.h. */
9448
9449/* Override any gcc2 internal prototype to avoid an error. */
9450#ifdef __cplusplus
9451extern "C"
9452#endif
9453/* We use char because int might match the return type of a gcc2
9454 builtin and then its argument prototype would still apply. */
9455char tanhf ();
9456int
9457main ()
9458{
9459tanhf ();
9460 ;
9461 return 0;
9462}
9463_ACEOF
9464rm -f conftest.$ac_objext conftest$ac_exeext
9465if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9466 (eval $ac_link) 2>conftest.er1
9467 ac_status=$?
9468 grep -v '^ *+' conftest.er1 >conftest.err
9469 rm -f conftest.er1
9470 cat conftest.err >&5
9471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9472 (exit $ac_status); } &&
1fb2002d 9473 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
453310d8
RS
9474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9475 (eval $ac_try) 2>&5
9476 ac_status=$?
9477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9478 (exit $ac_status); }; } &&
9479 { ac_try='test -s conftest$ac_exeext'
9480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9481 (eval $ac_try) 2>&5
9482 ac_status=$?
9483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9484 (exit $ac_status); }; }; then
9485 ac_cv_lib_m_tanhf=yes
9486else
9487 echo "$as_me: failed program was:" >&5
9488sed 's/^/| /' conftest.$ac_ext >&5
9489
9490ac_cv_lib_m_tanhf=no
9491fi
9492rm -f conftest.err conftest.$ac_objext \
9493 conftest$ac_exeext conftest.$ac_ext
9494LIBS=$ac_check_lib_save_LIBS
9495fi
9496echo "$as_me:$LINENO: result: $ac_cv_lib_m_tanhf" >&5
9497echo "${ECHO_T}$ac_cv_lib_m_tanhf" >&6
9498if test $ac_cv_lib_m_tanhf = yes; then
9499
9500cat >>confdefs.h <<\_ACEOF
9501#define HAVE_TANHF 1
a9e7b9d3
PB
9502_ACEOF
9503
9504fi
9505
e8525382
SK
9506echo "$as_me:$LINENO: checking for erf in -lm" >&5
9507echo $ECHO_N "checking for erf in -lm... $ECHO_C" >&6
9508if test "${ac_cv_lib_m_erf+set}" = set; then
9509 echo $ECHO_N "(cached) $ECHO_C" >&6
9510else
9511 ac_check_lib_save_LIBS=$LIBS
9512LIBS="-lm $LIBS"
9513cat >conftest.$ac_ext <<_ACEOF
9514/* confdefs.h. */
9515_ACEOF
9516cat confdefs.h >>conftest.$ac_ext
9517cat >>conftest.$ac_ext <<_ACEOF
9518/* end confdefs.h. */
9519
9520/* Override any gcc2 internal prototype to avoid an error. */
9521#ifdef __cplusplus
9522extern "C"
9523#endif
9524/* We use char because int might match the return type of a gcc2
9525 builtin and then its argument prototype would still apply. */
9526char erf ();
9527int
9528main ()
9529{
9530erf ();
9531 ;
9532 return 0;
9533}
9534_ACEOF
9535rm -f conftest.$ac_objext conftest$ac_exeext
9536if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9537 (eval $ac_link) 2>conftest.er1
9538 ac_status=$?
9539 grep -v '^ *+' conftest.er1 >conftest.err
9540 rm -f conftest.er1
9541 cat conftest.err >&5
9542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9543 (exit $ac_status); } &&
1fb2002d 9544 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
e8525382
SK
9545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9546 (eval $ac_try) 2>&5
9547 ac_status=$?
9548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9549 (exit $ac_status); }; } &&
9550 { ac_try='test -s conftest$ac_exeext'
9551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9552 (eval $ac_try) 2>&5
9553 ac_status=$?
9554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9555 (exit $ac_status); }; }; then
9556 ac_cv_lib_m_erf=yes
9557else
9558 echo "$as_me: failed program was:" >&5
9559sed 's/^/| /' conftest.$ac_ext >&5
9560
9561ac_cv_lib_m_erf=no
9562fi
9563rm -f conftest.err conftest.$ac_objext \
9564 conftest$ac_exeext conftest.$ac_ext
9565LIBS=$ac_check_lib_save_LIBS
9566fi
9567echo "$as_me:$LINENO: result: $ac_cv_lib_m_erf" >&5
9568echo "${ECHO_T}$ac_cv_lib_m_erf" >&6
9569if test $ac_cv_lib_m_erf = yes; then
9570
9571cat >>confdefs.h <<\_ACEOF
9572#define HAVE_ERF 1
9573_ACEOF
9574
9575fi
9576
9577echo "$as_me:$LINENO: checking for erfc in -lm" >&5
9578echo $ECHO_N "checking for erfc in -lm... $ECHO_C" >&6
9579if test "${ac_cv_lib_m_erfc+set}" = set; then
9580 echo $ECHO_N "(cached) $ECHO_C" >&6
9581else
9582 ac_check_lib_save_LIBS=$LIBS
9583LIBS="-lm $LIBS"
9584cat >conftest.$ac_ext <<_ACEOF
9585/* confdefs.h. */
9586_ACEOF
9587cat confdefs.h >>conftest.$ac_ext
9588cat >>conftest.$ac_ext <<_ACEOF
9589/* end confdefs.h. */
9590
9591/* Override any gcc2 internal prototype to avoid an error. */
9592#ifdef __cplusplus
9593extern "C"
9594#endif
9595/* We use char because int might match the return type of a gcc2
9596 builtin and then its argument prototype would still apply. */
9597char erfc ();
9598int
9599main ()
9600{
9601erfc ();
9602 ;
9603 return 0;
9604}
9605_ACEOF
9606rm -f conftest.$ac_objext conftest$ac_exeext
9607if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9608 (eval $ac_link) 2>conftest.er1
9609 ac_status=$?
9610 grep -v '^ *+' conftest.er1 >conftest.err
9611 rm -f conftest.er1
9612 cat conftest.err >&5
9613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9614 (exit $ac_status); } &&
1fb2002d 9615 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
e8525382
SK
9616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9617 (eval $ac_try) 2>&5
9618 ac_status=$?
9619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9620 (exit $ac_status); }; } &&
9621 { ac_try='test -s conftest$ac_exeext'
9622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9623 (eval $ac_try) 2>&5
9624 ac_status=$?
9625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9626 (exit $ac_status); }; }; then
9627 ac_cv_lib_m_erfc=yes
9628else
9629 echo "$as_me: failed program was:" >&5
9630sed 's/^/| /' conftest.$ac_ext >&5
9631
9632ac_cv_lib_m_erfc=no
9633fi
9634rm -f conftest.err conftest.$ac_objext \
9635 conftest$ac_exeext conftest.$ac_ext
9636LIBS=$ac_check_lib_save_LIBS
9637fi
9638echo "$as_me:$LINENO: result: $ac_cv_lib_m_erfc" >&5
9639echo "${ECHO_T}$ac_cv_lib_m_erfc" >&6
9640if test $ac_cv_lib_m_erfc = yes; then
9641
9642cat >>confdefs.h <<\_ACEOF
9643#define HAVE_ERFC 1
9644_ACEOF
9645
9646fi
9647
9648echo "$as_me:$LINENO: checking for erfcf in -lm" >&5
9649echo $ECHO_N "checking for erfcf in -lm... $ECHO_C" >&6
9650if test "${ac_cv_lib_m_erfcf+set}" = set; then
9651 echo $ECHO_N "(cached) $ECHO_C" >&6
9652else
9653 ac_check_lib_save_LIBS=$LIBS
9654LIBS="-lm $LIBS"
9655cat >conftest.$ac_ext <<_ACEOF
9656/* confdefs.h. */
9657_ACEOF
9658cat confdefs.h >>conftest.$ac_ext
9659cat >>conftest.$ac_ext <<_ACEOF
9660/* end confdefs.h. */
9661
9662/* Override any gcc2 internal prototype to avoid an error. */
9663#ifdef __cplusplus
9664extern "C"
9665#endif
9666/* We use char because int might match the return type of a gcc2
9667 builtin and then its argument prototype would still apply. */
9668char erfcf ();
9669int
9670main ()
9671{
9672erfcf ();
9673 ;
9674 return 0;
9675}
9676_ACEOF
9677rm -f conftest.$ac_objext conftest$ac_exeext
9678if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9679 (eval $ac_link) 2>conftest.er1
9680 ac_status=$?
9681 grep -v '^ *+' conftest.er1 >conftest.err
9682 rm -f conftest.er1
9683 cat conftest.err >&5
9684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9685 (exit $ac_status); } &&
1fb2002d 9686 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
e8525382
SK
9687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9688 (eval $ac_try) 2>&5
9689 ac_status=$?
9690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9691 (exit $ac_status); }; } &&
9692 { ac_try='test -s conftest$ac_exeext'
9693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9694 (eval $ac_try) 2>&5
9695 ac_status=$?
9696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9697 (exit $ac_status); }; }; then
9698 ac_cv_lib_m_erfcf=yes
9699else
9700 echo "$as_me: failed program was:" >&5
9701sed 's/^/| /' conftest.$ac_ext >&5
9702
9703ac_cv_lib_m_erfcf=no
9704fi
9705rm -f conftest.err conftest.$ac_objext \
9706 conftest$ac_exeext conftest.$ac_ext
9707LIBS=$ac_check_lib_save_LIBS
9708fi
9709echo "$as_me:$LINENO: result: $ac_cv_lib_m_erfcf" >&5
9710echo "${ECHO_T}$ac_cv_lib_m_erfcf" >&6
9711if test $ac_cv_lib_m_erfcf = yes; then
9712
9713cat >>confdefs.h <<\_ACEOF
9714#define HAVE_ERFCF 1
9715_ACEOF
9716
9717fi
9718
9719echo "$as_me:$LINENO: checking for erff in -lm" >&5
9720echo $ECHO_N "checking for erff in -lm... $ECHO_C" >&6
9721if test "${ac_cv_lib_m_erff+set}" = set; then
9722 echo $ECHO_N "(cached) $ECHO_C" >&6
9723else
9724 ac_check_lib_save_LIBS=$LIBS
9725LIBS="-lm $LIBS"
9726cat >conftest.$ac_ext <<_ACEOF
9727/* confdefs.h. */
9728_ACEOF
9729cat confdefs.h >>conftest.$ac_ext
9730cat >>conftest.$ac_ext <<_ACEOF
9731/* end confdefs.h. */
9732
9733/* Override any gcc2 internal prototype to avoid an error. */
9734#ifdef __cplusplus
9735extern "C"
9736#endif
9737/* We use char because int might match the return type of a gcc2
9738 builtin and then its argument prototype would still apply. */
9739char erff ();
9740int
9741main ()
9742{
9743erff ();
9744 ;
9745 return 0;
9746}
9747_ACEOF
9748rm -f conftest.$ac_objext conftest$ac_exeext
9749if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9750 (eval $ac_link) 2>conftest.er1
9751 ac_status=$?
9752 grep -v '^ *+' conftest.er1 >conftest.err
9753 rm -f conftest.er1
9754 cat conftest.err >&5
9755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9756 (exit $ac_status); } &&
1fb2002d 9757 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
e8525382
SK
9758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9759 (eval $ac_try) 2>&5
9760 ac_status=$?
9761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9762 (exit $ac_status); }; } &&
9763 { ac_try='test -s conftest$ac_exeext'
9764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9765 (eval $ac_try) 2>&5
9766 ac_status=$?
9767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9768 (exit $ac_status); }; }; then
9769 ac_cv_lib_m_erff=yes
9770else
9771 echo "$as_me: failed program was:" >&5
9772sed 's/^/| /' conftest.$ac_ext >&5
9773
9774ac_cv_lib_m_erff=no
9775fi
9776rm -f conftest.err conftest.$ac_objext \
9777 conftest$ac_exeext conftest.$ac_ext
9778LIBS=$ac_check_lib_save_LIBS
9779fi
9780echo "$as_me:$LINENO: result: $ac_cv_lib_m_erff" >&5
9781echo "${ECHO_T}$ac_cv_lib_m_erff" >&6
9782if test $ac_cv_lib_m_erff = yes; then
9783
9784cat >>confdefs.h <<\_ACEOF
9785#define HAVE_ERFF 1
9786_ACEOF
9787
9788fi
9789
9790echo "$as_me:$LINENO: checking for j0 in -lm" >&5
9791echo $ECHO_N "checking for j0 in -lm... $ECHO_C" >&6
9792if test "${ac_cv_lib_m_j0+set}" = set; then
9793 echo $ECHO_N "(cached) $ECHO_C" >&6
9794else
9795 ac_check_lib_save_LIBS=$LIBS
9796LIBS="-lm $LIBS"
9797cat >conftest.$ac_ext <<_ACEOF
9798/* confdefs.h. */
9799_ACEOF
9800cat confdefs.h >>conftest.$ac_ext
9801cat >>conftest.$ac_ext <<_ACEOF
9802/* end confdefs.h. */
9803
9804/* Override any gcc2 internal prototype to avoid an error. */
9805#ifdef __cplusplus
9806extern "C"
9807#endif
9808/* We use char because int might match the return type of a gcc2
9809 builtin and then its argument prototype would still apply. */
9810char j0 ();
9811int
9812main ()
9813{
9814j0 ();
9815 ;
9816 return 0;
9817}
9818_ACEOF
9819rm -f conftest.$ac_objext conftest$ac_exeext
9820if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9821 (eval $ac_link) 2>conftest.er1
9822 ac_status=$?
9823 grep -v '^ *+' conftest.er1 >conftest.err
9824 rm -f conftest.er1
9825 cat conftest.err >&5
9826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9827 (exit $ac_status); } &&
1fb2002d 9828 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
e8525382
SK
9829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9830 (eval $ac_try) 2>&5
9831 ac_status=$?
9832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9833 (exit $ac_status); }; } &&
9834 { ac_try='test -s conftest$ac_exeext'
9835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9836 (eval $ac_try) 2>&5
9837 ac_status=$?
9838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9839 (exit $ac_status); }; }; then
9840 ac_cv_lib_m_j0=yes
9841else
9842 echo "$as_me: failed program was:" >&5
9843sed 's/^/| /' conftest.$ac_ext >&5
9844
9845ac_cv_lib_m_j0=no
9846fi
9847rm -f conftest.err conftest.$ac_objext \
9848 conftest$ac_exeext conftest.$ac_ext
9849LIBS=$ac_check_lib_save_LIBS
9850fi
9851echo "$as_me:$LINENO: result: $ac_cv_lib_m_j0" >&5
9852echo "${ECHO_T}$ac_cv_lib_m_j0" >&6
9853if test $ac_cv_lib_m_j0 = yes; then
9854
9855cat >>confdefs.h <<\_ACEOF
9856#define HAVE_J0 1
9857_ACEOF
9858
9859fi
9860
9861echo "$as_me:$LINENO: checking for j0f in -lm" >&5
9862echo $ECHO_N "checking for j0f in -lm... $ECHO_C" >&6
9863if test "${ac_cv_lib_m_j0f+set}" = set; then
9864 echo $ECHO_N "(cached) $ECHO_C" >&6
9865else
9866 ac_check_lib_save_LIBS=$LIBS
9867LIBS="-lm $LIBS"
9868cat >conftest.$ac_ext <<_ACEOF
9869/* confdefs.h. */
9870_ACEOF
9871cat confdefs.h >>conftest.$ac_ext
9872cat >>conftest.$ac_ext <<_ACEOF
9873/* end confdefs.h. */
9874
9875/* Override any gcc2 internal prototype to avoid an error. */
9876#ifdef __cplusplus
9877extern "C"
9878#endif
9879/* We use char because int might match the return type of a gcc2
9880 builtin and then its argument prototype would still apply. */
9881char j0f ();
9882int
9883main ()
9884{
9885j0f ();
9886 ;
9887 return 0;
9888}
9889_ACEOF
9890rm -f conftest.$ac_objext conftest$ac_exeext
9891if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9892 (eval $ac_link) 2>conftest.er1
9893 ac_status=$?
9894 grep -v '^ *+' conftest.er1 >conftest.err
9895 rm -f conftest.er1
9896 cat conftest.err >&5
9897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9898 (exit $ac_status); } &&
1fb2002d 9899 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
e8525382
SK
9900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9901 (eval $ac_try) 2>&5
9902 ac_status=$?
9903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9904 (exit $ac_status); }; } &&
9905 { ac_try='test -s conftest$ac_exeext'
9906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9907 (eval $ac_try) 2>&5
9908 ac_status=$?
9909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9910 (exit $ac_status); }; }; then
9911 ac_cv_lib_m_j0f=yes
9912else
9913 echo "$as_me: failed program was:" >&5
9914sed 's/^/| /' conftest.$ac_ext >&5
9915
9916ac_cv_lib_m_j0f=no
9917fi
9918rm -f conftest.err conftest.$ac_objext \
9919 conftest$ac_exeext conftest.$ac_ext
9920LIBS=$ac_check_lib_save_LIBS
9921fi
9922echo "$as_me:$LINENO: result: $ac_cv_lib_m_j0f" >&5
9923echo "${ECHO_T}$ac_cv_lib_m_j0f" >&6
9924if test $ac_cv_lib_m_j0f = yes; then
9925
9926cat >>confdefs.h <<\_ACEOF
9927#define HAVE_J0F 1
9928_ACEOF
9929
9930fi
9931
9932echo "$as_me:$LINENO: checking for j1 in -lm" >&5
9933echo $ECHO_N "checking for j1 in -lm... $ECHO_C" >&6
9934if test "${ac_cv_lib_m_j1+set}" = set; then
9935 echo $ECHO_N "(cached) $ECHO_C" >&6
9936else
9937 ac_check_lib_save_LIBS=$LIBS
9938LIBS="-lm $LIBS"
9939cat >conftest.$ac_ext <<_ACEOF
9940/* confdefs.h. */
9941_ACEOF
9942cat confdefs.h >>conftest.$ac_ext
9943cat >>conftest.$ac_ext <<_ACEOF
9944/* end confdefs.h. */
9945
9946/* Override any gcc2 internal prototype to avoid an error. */
9947#ifdef __cplusplus
9948extern "C"
9949#endif
9950/* We use char because int might match the return type of a gcc2
9951 builtin and then its argument prototype would still apply. */
9952char j1 ();
9953int
9954main ()
9955{
9956j1 ();
9957 ;
9958 return 0;
9959}
9960_ACEOF
9961rm -f conftest.$ac_objext conftest$ac_exeext
9962if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9963 (eval $ac_link) 2>conftest.er1
9964 ac_status=$?
9965 grep -v '^ *+' conftest.er1 >conftest.err
9966 rm -f conftest.er1
9967 cat conftest.err >&5
9968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9969 (exit $ac_status); } &&
1fb2002d 9970 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
e8525382
SK
9971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9972 (eval $ac_try) 2>&5
9973 ac_status=$?
9974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9975 (exit $ac_status); }; } &&
9976 { ac_try='test -s conftest$ac_exeext'
9977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9978 (eval $ac_try) 2>&5
9979 ac_status=$?
9980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9981 (exit $ac_status); }; }; then
9982 ac_cv_lib_m_j1=yes
9983else
9984 echo "$as_me: failed program was:" >&5
9985sed 's/^/| /' conftest.$ac_ext >&5
9986
9987ac_cv_lib_m_j1=no
9988fi
9989rm -f conftest.err conftest.$ac_objext \
9990 conftest$ac_exeext conftest.$ac_ext
9991LIBS=$ac_check_lib_save_LIBS
9992fi
9993echo "$as_me:$LINENO: result: $ac_cv_lib_m_j1" >&5
9994echo "${ECHO_T}$ac_cv_lib_m_j1" >&6
9995if test $ac_cv_lib_m_j1 = yes; then
9996
9997cat >>confdefs.h <<\_ACEOF
9998#define HAVE_J1 1
9999_ACEOF
10000
10001fi
10002
10003echo "$as_me:$LINENO: checking for j1f in -lm" >&5
10004echo $ECHO_N "checking for j1f in -lm... $ECHO_C" >&6
10005if test "${ac_cv_lib_m_j1f+set}" = set; then
10006 echo $ECHO_N "(cached) $ECHO_C" >&6
10007else
10008 ac_check_lib_save_LIBS=$LIBS
10009LIBS="-lm $LIBS"
10010cat >conftest.$ac_ext <<_ACEOF
10011/* confdefs.h. */
10012_ACEOF
10013cat confdefs.h >>conftest.$ac_ext
10014cat >>conftest.$ac_ext <<_ACEOF
10015/* end confdefs.h. */
10016
10017/* Override any gcc2 internal prototype to avoid an error. */
10018#ifdef __cplusplus
10019extern "C"
10020#endif
10021/* We use char because int might match the return type of a gcc2
10022 builtin and then its argument prototype would still apply. */
10023char j1f ();
10024int
10025main ()
10026{
10027j1f ();
10028 ;
10029 return 0;
10030}
10031_ACEOF
10032rm -f conftest.$ac_objext conftest$ac_exeext
10033if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10034 (eval $ac_link) 2>conftest.er1
10035 ac_status=$?
10036 grep -v '^ *+' conftest.er1 >conftest.err
10037 rm -f conftest.er1
10038 cat conftest.err >&5
10039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10040 (exit $ac_status); } &&
1fb2002d 10041 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
e8525382
SK
10042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10043 (eval $ac_try) 2>&5
10044 ac_status=$?
10045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10046 (exit $ac_status); }; } &&
10047 { ac_try='test -s conftest$ac_exeext'
10048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10049 (eval $ac_try) 2>&5
10050 ac_status=$?
10051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10052 (exit $ac_status); }; }; then
10053 ac_cv_lib_m_j1f=yes
10054else
10055 echo "$as_me: failed program was:" >&5
10056sed 's/^/| /' conftest.$ac_ext >&5
10057
10058ac_cv_lib_m_j1f=no
10059fi
10060rm -f conftest.err conftest.$ac_objext \
10061 conftest$ac_exeext conftest.$ac_ext
10062LIBS=$ac_check_lib_save_LIBS
10063fi
10064echo "$as_me:$LINENO: result: $ac_cv_lib_m_j1f" >&5
10065echo "${ECHO_T}$ac_cv_lib_m_j1f" >&6
10066if test $ac_cv_lib_m_j1f = yes; then
10067
10068cat >>confdefs.h <<\_ACEOF
10069#define HAVE_J1F 1
10070_ACEOF
10071
10072fi
10073
10074echo "$as_me:$LINENO: checking for jn in -lm" >&5
10075echo $ECHO_N "checking for jn in -lm... $ECHO_C" >&6
10076if test "${ac_cv_lib_m_jn+set}" = set; then
10077 echo $ECHO_N "(cached) $ECHO_C" >&6
10078else
10079 ac_check_lib_save_LIBS=$LIBS
10080LIBS="-lm $LIBS"
10081cat >conftest.$ac_ext <<_ACEOF
10082/* confdefs.h. */
10083_ACEOF
10084cat confdefs.h >>conftest.$ac_ext
10085cat >>conftest.$ac_ext <<_ACEOF
10086/* end confdefs.h. */
10087
10088/* Override any gcc2 internal prototype to avoid an error. */
10089#ifdef __cplusplus
10090extern "C"
10091#endif
10092/* We use char because int might match the return type of a gcc2
10093 builtin and then its argument prototype would still apply. */
10094char jn ();
10095int
10096main ()
10097{
10098jn ();
10099 ;
10100 return 0;
10101}
10102_ACEOF
10103rm -f conftest.$ac_objext conftest$ac_exeext
10104if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10105 (eval $ac_link) 2>conftest.er1
10106 ac_status=$?
10107 grep -v '^ *+' conftest.er1 >conftest.err
10108 rm -f conftest.er1
10109 cat conftest.err >&5
10110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10111 (exit $ac_status); } &&
1fb2002d 10112 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
e8525382
SK
10113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10114 (eval $ac_try) 2>&5
10115 ac_status=$?
10116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10117 (exit $ac_status); }; } &&
10118 { ac_try='test -s conftest$ac_exeext'
10119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10120 (eval $ac_try) 2>&5
10121 ac_status=$?
10122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10123 (exit $ac_status); }; }; then
10124 ac_cv_lib_m_jn=yes
10125else
10126 echo "$as_me: failed program was:" >&5
10127sed 's/^/| /' conftest.$ac_ext >&5
10128
10129ac_cv_lib_m_jn=no
10130fi
10131rm -f conftest.err conftest.$ac_objext \
10132 conftest$ac_exeext conftest.$ac_ext
10133LIBS=$ac_check_lib_save_LIBS
10134fi
10135echo "$as_me:$LINENO: result: $ac_cv_lib_m_jn" >&5
10136echo "${ECHO_T}$ac_cv_lib_m_jn" >&6
10137if test $ac_cv_lib_m_jn = yes; then
10138
10139cat >>confdefs.h <<\_ACEOF
10140#define HAVE_JN 1
10141_ACEOF
10142
10143fi
10144
10145echo "$as_me:$LINENO: checking for jnf in -lm" >&5
10146echo $ECHO_N "checking for jnf in -lm... $ECHO_C" >&6
10147if test "${ac_cv_lib_m_jnf+set}" = set; then
10148 echo $ECHO_N "(cached) $ECHO_C" >&6
10149else
10150 ac_check_lib_save_LIBS=$LIBS
10151LIBS="-lm $LIBS"
10152cat >conftest.$ac_ext <<_ACEOF
10153/* confdefs.h. */
10154_ACEOF
10155cat confdefs.h >>conftest.$ac_ext
10156cat >>conftest.$ac_ext <<_ACEOF
10157/* end confdefs.h. */
10158
10159/* Override any gcc2 internal prototype to avoid an error. */
10160#ifdef __cplusplus
10161extern "C"
10162#endif
10163/* We use char because int might match the return type of a gcc2
10164 builtin and then its argument prototype would still apply. */
10165char jnf ();
10166int
10167main ()
10168{
10169jnf ();
10170 ;
10171 return 0;
10172}
10173_ACEOF
10174rm -f conftest.$ac_objext conftest$ac_exeext
10175if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10176 (eval $ac_link) 2>conftest.er1
10177 ac_status=$?
10178 grep -v '^ *+' conftest.er1 >conftest.err
10179 rm -f conftest.er1
10180 cat conftest.err >&5
10181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10182 (exit $ac_status); } &&
1fb2002d 10183 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
e8525382
SK
10184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10185 (eval $ac_try) 2>&5
10186 ac_status=$?
10187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10188 (exit $ac_status); }; } &&
10189 { ac_try='test -s conftest$ac_exeext'
10190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10191 (eval $ac_try) 2>&5
10192 ac_status=$?
10193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10194 (exit $ac_status); }; }; then
10195 ac_cv_lib_m_jnf=yes
10196else
10197 echo "$as_me: failed program was:" >&5
10198sed 's/^/| /' conftest.$ac_ext >&5
10199
10200ac_cv_lib_m_jnf=no
10201fi
10202rm -f conftest.err conftest.$ac_objext \
10203 conftest$ac_exeext conftest.$ac_ext
10204LIBS=$ac_check_lib_save_LIBS
10205fi
10206echo "$as_me:$LINENO: result: $ac_cv_lib_m_jnf" >&5
10207echo "${ECHO_T}$ac_cv_lib_m_jnf" >&6
10208if test $ac_cv_lib_m_jnf = yes; then
10209
10210cat >>confdefs.h <<\_ACEOF
10211#define HAVE_JNF 1
10212_ACEOF
10213
10214fi
10215
10216echo "$as_me:$LINENO: checking for y0 in -lm" >&5
10217echo $ECHO_N "checking for y0 in -lm... $ECHO_C" >&6
10218if test "${ac_cv_lib_m_y0+set}" = set; then
10219 echo $ECHO_N "(cached) $ECHO_C" >&6
10220else
10221 ac_check_lib_save_LIBS=$LIBS
10222LIBS="-lm $LIBS"
10223cat >conftest.$ac_ext <<_ACEOF
10224/* confdefs.h. */
10225_ACEOF
10226cat confdefs.h >>conftest.$ac_ext
10227cat >>conftest.$ac_ext <<_ACEOF
10228/* end confdefs.h. */
10229
10230/* Override any gcc2 internal prototype to avoid an error. */
10231#ifdef __cplusplus
10232extern "C"
10233#endif
10234/* We use char because int might match the return type of a gcc2
10235 builtin and then its argument prototype would still apply. */
10236char y0 ();
10237int
10238main ()
10239{
10240y0 ();
10241 ;
10242 return 0;
10243}
10244_ACEOF
10245rm -f conftest.$ac_objext conftest$ac_exeext
10246if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10247 (eval $ac_link) 2>conftest.er1
10248 ac_status=$?
10249 grep -v '^ *+' conftest.er1 >conftest.err
10250 rm -f conftest.er1
10251 cat conftest.err >&5
10252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10253 (exit $ac_status); } &&
1fb2002d 10254 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
e8525382
SK
10255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10256 (eval $ac_try) 2>&5
10257 ac_status=$?
10258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10259 (exit $ac_status); }; } &&
10260 { ac_try='test -s conftest$ac_exeext'
10261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10262 (eval $ac_try) 2>&5
10263 ac_status=$?
10264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10265 (exit $ac_status); }; }; then
10266 ac_cv_lib_m_y0=yes
10267else
10268 echo "$as_me: failed program was:" >&5
10269sed 's/^/| /' conftest.$ac_ext >&5
10270
10271ac_cv_lib_m_y0=no
10272fi
10273rm -f conftest.err conftest.$ac_objext \
10274 conftest$ac_exeext conftest.$ac_ext
10275LIBS=$ac_check_lib_save_LIBS
10276fi
10277echo "$as_me:$LINENO: result: $ac_cv_lib_m_y0" >&5
10278echo "${ECHO_T}$ac_cv_lib_m_y0" >&6
10279if test $ac_cv_lib_m_y0 = yes; then
10280
10281cat >>confdefs.h <<\_ACEOF
10282#define HAVE_Y0 1
10283_ACEOF
10284
10285fi
10286
10287echo "$as_me:$LINENO: checking for y0f in -lm" >&5
10288echo $ECHO_N "checking for y0f in -lm... $ECHO_C" >&6
10289if test "${ac_cv_lib_m_y0f+set}" = set; then
10290 echo $ECHO_N "(cached) $ECHO_C" >&6
10291else
10292 ac_check_lib_save_LIBS=$LIBS
10293LIBS="-lm $LIBS"
10294cat >conftest.$ac_ext <<_ACEOF
10295/* confdefs.h. */
10296_ACEOF
10297cat confdefs.h >>conftest.$ac_ext
10298cat >>conftest.$ac_ext <<_ACEOF
10299/* end confdefs.h. */
10300
10301/* Override any gcc2 internal prototype to avoid an error. */
10302#ifdef __cplusplus
10303extern "C"
10304#endif
10305/* We use char because int might match the return type of a gcc2
10306 builtin and then its argument prototype would still apply. */
10307char y0f ();
10308int
10309main ()
10310{
10311y0f ();
10312 ;
10313 return 0;
10314}
10315_ACEOF
10316rm -f conftest.$ac_objext conftest$ac_exeext
10317if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10318 (eval $ac_link) 2>conftest.er1
10319 ac_status=$?
10320 grep -v '^ *+' conftest.er1 >conftest.err
10321 rm -f conftest.er1
10322 cat conftest.err >&5
10323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10324 (exit $ac_status); } &&
1fb2002d 10325 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
e8525382
SK
10326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10327 (eval $ac_try) 2>&5
10328 ac_status=$?
10329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10330 (exit $ac_status); }; } &&
10331 { ac_try='test -s conftest$ac_exeext'
10332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10333 (eval $ac_try) 2>&5
10334 ac_status=$?
10335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10336 (exit $ac_status); }; }; then
10337 ac_cv_lib_m_y0f=yes
10338else
10339 echo "$as_me: failed program was:" >&5
10340sed 's/^/| /' conftest.$ac_ext >&5
10341
10342ac_cv_lib_m_y0f=no
10343fi
10344rm -f conftest.err conftest.$ac_objext \
10345 conftest$ac_exeext conftest.$ac_ext
10346LIBS=$ac_check_lib_save_LIBS
10347fi
10348echo "$as_me:$LINENO: result: $ac_cv_lib_m_y0f" >&5
10349echo "${ECHO_T}$ac_cv_lib_m_y0f" >&6
10350if test $ac_cv_lib_m_y0f = yes; then
10351
10352cat >>confdefs.h <<\_ACEOF
10353#define HAVE_Y0F 1
10354_ACEOF
10355
10356fi
10357
10358echo "$as_me:$LINENO: checking for y1 in -lm" >&5
10359echo $ECHO_N "checking for y1 in -lm... $ECHO_C" >&6
10360if test "${ac_cv_lib_m_y1+set}" = set; then
10361 echo $ECHO_N "(cached) $ECHO_C" >&6
10362else
10363 ac_check_lib_save_LIBS=$LIBS
10364LIBS="-lm $LIBS"
10365cat >conftest.$ac_ext <<_ACEOF
10366/* confdefs.h. */
10367_ACEOF
10368cat confdefs.h >>conftest.$ac_ext
10369cat >>conftest.$ac_ext <<_ACEOF
10370/* end confdefs.h. */
10371
10372/* Override any gcc2 internal prototype to avoid an error. */
10373#ifdef __cplusplus
10374extern "C"
10375#endif
10376/* We use char because int might match the return type of a gcc2
10377 builtin and then its argument prototype would still apply. */
10378char y1 ();
10379int
10380main ()
10381{
10382y1 ();
10383 ;
10384 return 0;
10385}
10386_ACEOF
10387rm -f conftest.$ac_objext conftest$ac_exeext
10388if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10389 (eval $ac_link) 2>conftest.er1
10390 ac_status=$?
10391 grep -v '^ *+' conftest.er1 >conftest.err
10392 rm -f conftest.er1
10393 cat conftest.err >&5
10394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10395 (exit $ac_status); } &&
1fb2002d 10396 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
e8525382
SK
10397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10398 (eval $ac_try) 2>&5
10399 ac_status=$?
10400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10401 (exit $ac_status); }; } &&
10402 { ac_try='test -s conftest$ac_exeext'
10403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10404 (eval $ac_try) 2>&5
10405 ac_status=$?
10406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10407 (exit $ac_status); }; }; then
10408 ac_cv_lib_m_y1=yes
10409else
10410 echo "$as_me: failed program was:" >&5
10411sed 's/^/| /' conftest.$ac_ext >&5
10412
10413ac_cv_lib_m_y1=no
10414fi
10415rm -f conftest.err conftest.$ac_objext \
10416 conftest$ac_exeext conftest.$ac_ext
10417LIBS=$ac_check_lib_save_LIBS
10418fi
10419echo "$as_me:$LINENO: result: $ac_cv_lib_m_y1" >&5
10420echo "${ECHO_T}$ac_cv_lib_m_y1" >&6
10421if test $ac_cv_lib_m_y1 = yes; then
10422
10423cat >>confdefs.h <<\_ACEOF
10424#define HAVE_Y1 1
10425_ACEOF
10426
10427fi
10428
10429echo "$as_me:$LINENO: checking for y1f in -lm" >&5
10430echo $ECHO_N "checking for y1f in -lm... $ECHO_C" >&6
10431if test "${ac_cv_lib_m_y1f+set}" = set; then
10432 echo $ECHO_N "(cached) $ECHO_C" >&6
10433else
10434 ac_check_lib_save_LIBS=$LIBS
10435LIBS="-lm $LIBS"
10436cat >conftest.$ac_ext <<_ACEOF
10437/* confdefs.h. */
10438_ACEOF
10439cat confdefs.h >>conftest.$ac_ext
10440cat >>conftest.$ac_ext <<_ACEOF
10441/* end confdefs.h. */
10442
10443/* Override any gcc2 internal prototype to avoid an error. */
10444#ifdef __cplusplus
10445extern "C"
10446#endif
10447/* We use char because int might match the return type of a gcc2
10448 builtin and then its argument prototype would still apply. */
10449char y1f ();
10450int
10451main ()
10452{
10453y1f ();
10454 ;
10455 return 0;
10456}
10457_ACEOF
10458rm -f conftest.$ac_objext conftest$ac_exeext
10459if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10460 (eval $ac_link) 2>conftest.er1
10461 ac_status=$?
10462 grep -v '^ *+' conftest.er1 >conftest.err
10463 rm -f conftest.er1
10464 cat conftest.err >&5
10465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10466 (exit $ac_status); } &&
1fb2002d 10467 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
e8525382
SK
10468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10469 (eval $ac_try) 2>&5
10470 ac_status=$?
10471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10472 (exit $ac_status); }; } &&
10473 { ac_try='test -s conftest$ac_exeext'
10474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10475 (eval $ac_try) 2>&5
10476 ac_status=$?
10477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10478 (exit $ac_status); }; }; then
10479 ac_cv_lib_m_y1f=yes
10480else
10481 echo "$as_me: failed program was:" >&5
10482sed 's/^/| /' conftest.$ac_ext >&5
10483
10484ac_cv_lib_m_y1f=no
10485fi
10486rm -f conftest.err conftest.$ac_objext \
10487 conftest$ac_exeext conftest.$ac_ext
10488LIBS=$ac_check_lib_save_LIBS
10489fi
10490echo "$as_me:$LINENO: result: $ac_cv_lib_m_y1f" >&5
10491echo "${ECHO_T}$ac_cv_lib_m_y1f" >&6
10492if test $ac_cv_lib_m_y1f = yes; then
10493
10494cat >>confdefs.h <<\_ACEOF
10495#define HAVE_Y1F 1
10496_ACEOF
10497
10498fi
10499
10500echo "$as_me:$LINENO: checking for yn in -lm" >&5
10501echo $ECHO_N "checking for yn in -lm... $ECHO_C" >&6
10502if test "${ac_cv_lib_m_yn+set}" = set; then
10503 echo $ECHO_N "(cached) $ECHO_C" >&6
10504else
10505 ac_check_lib_save_LIBS=$LIBS
10506LIBS="-lm $LIBS"
10507cat >conftest.$ac_ext <<_ACEOF
10508/* confdefs.h. */
10509_ACEOF
10510cat confdefs.h >>conftest.$ac_ext
10511cat >>conftest.$ac_ext <<_ACEOF
10512/* end confdefs.h. */
10513
10514/* Override any gcc2 internal prototype to avoid an error. */
10515#ifdef __cplusplus
10516extern "C"
10517#endif
10518/* We use char because int might match the return type of a gcc2
10519 builtin and then its argument prototype would still apply. */
10520char yn ();
10521int
10522main ()
10523{
10524yn ();
10525 ;
10526 return 0;
10527}
10528_ACEOF
10529rm -f conftest.$ac_objext conftest$ac_exeext
10530if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10531 (eval $ac_link) 2>conftest.er1
10532 ac_status=$?
10533 grep -v '^ *+' conftest.er1 >conftest.err
10534 rm -f conftest.er1
10535 cat conftest.err >&5
10536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10537 (exit $ac_status); } &&
1fb2002d 10538 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
e8525382
SK
10539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10540 (eval $ac_try) 2>&5
10541 ac_status=$?
10542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10543 (exit $ac_status); }; } &&
10544 { ac_try='test -s conftest$ac_exeext'
10545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10546 (eval $ac_try) 2>&5
10547 ac_status=$?
10548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10549 (exit $ac_status); }; }; then
10550 ac_cv_lib_m_yn=yes
10551else
10552 echo "$as_me: failed program was:" >&5
10553sed 's/^/| /' conftest.$ac_ext >&5
10554
10555ac_cv_lib_m_yn=no
10556fi
10557rm -f conftest.err conftest.$ac_objext \
10558 conftest$ac_exeext conftest.$ac_ext
10559LIBS=$ac_check_lib_save_LIBS
10560fi
10561echo "$as_me:$LINENO: result: $ac_cv_lib_m_yn" >&5
10562echo "${ECHO_T}$ac_cv_lib_m_yn" >&6
10563if test $ac_cv_lib_m_yn = yes; then
10564
10565cat >>confdefs.h <<\_ACEOF
10566#define HAVE_YN 1
10567_ACEOF
10568
10569fi
10570
10571echo "$as_me:$LINENO: checking for ynf in -lm" >&5
10572echo $ECHO_N "checking for ynf in -lm... $ECHO_C" >&6
10573if test "${ac_cv_lib_m_ynf+set}" = set; then
10574 echo $ECHO_N "(cached) $ECHO_C" >&6
10575else
10576 ac_check_lib_save_LIBS=$LIBS
10577LIBS="-lm $LIBS"
10578cat >conftest.$ac_ext <<_ACEOF
10579/* confdefs.h. */
10580_ACEOF
10581cat confdefs.h >>conftest.$ac_ext
10582cat >>conftest.$ac_ext <<_ACEOF
10583/* end confdefs.h. */
10584
10585/* Override any gcc2 internal prototype to avoid an error. */
10586#ifdef __cplusplus
10587extern "C"
10588#endif
10589/* We use char because int might match the return type of a gcc2
10590 builtin and then its argument prototype would still apply. */
10591char ynf ();
10592int
10593main ()
10594{
10595ynf ();
10596 ;
10597 return 0;
10598}
10599_ACEOF
10600rm -f conftest.$ac_objext conftest$ac_exeext
10601if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10602 (eval $ac_link) 2>conftest.er1
10603 ac_status=$?
10604 grep -v '^ *+' conftest.er1 >conftest.err
10605 rm -f conftest.er1
10606 cat conftest.err >&5
10607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10608 (exit $ac_status); } &&
1fb2002d 10609 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
e8525382
SK
10610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10611 (eval $ac_try) 2>&5
10612 ac_status=$?
10613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10614 (exit $ac_status); }; } &&
10615 { ac_try='test -s conftest$ac_exeext'
10616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10617 (eval $ac_try) 2>&5
10618 ac_status=$?
10619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10620 (exit $ac_status); }; }; then
10621 ac_cv_lib_m_ynf=yes
10622else
10623 echo "$as_me: failed program was:" >&5
10624sed 's/^/| /' conftest.$ac_ext >&5
10625
10626ac_cv_lib_m_ynf=no
10627fi
10628rm -f conftest.err conftest.$ac_objext \
10629 conftest$ac_exeext conftest.$ac_ext
10630LIBS=$ac_check_lib_save_LIBS
10631fi
10632echo "$as_me:$LINENO: result: $ac_cv_lib_m_ynf" >&5
10633echo "${ECHO_T}$ac_cv_lib_m_ynf" >&6
10634if test $ac_cv_lib_m_ynf = yes; then
10635
10636cat >>confdefs.h <<\_ACEOF
10637#define HAVE_YNF 1
10638_ACEOF
10639
10640fi
10641
a2a2059f 10642
69d3c9a4
SB
10643# Fallback in case isfinite is not available.
10644echo "$as_me:$LINENO: checking for finite in -lm" >&5
10645echo $ECHO_N "checking for finite in -lm... $ECHO_C" >&6
10646if test "${ac_cv_lib_m_finite+set}" = set; then
10647 echo $ECHO_N "(cached) $ECHO_C" >&6
10648else
10649 ac_check_lib_save_LIBS=$LIBS
10650LIBS="-lm $LIBS"
69d3c9a4
SB
10651cat >conftest.$ac_ext <<_ACEOF
10652/* confdefs.h. */
10653_ACEOF
10654cat confdefs.h >>conftest.$ac_ext
10655cat >>conftest.$ac_ext <<_ACEOF
10656/* end confdefs.h. */
10657
10658/* Override any gcc2 internal prototype to avoid an error. */
10659#ifdef __cplusplus
10660extern "C"
10661#endif
10662/* We use char because int might match the return type of a gcc2
10663 builtin and then its argument prototype would still apply. */
10664char finite ();
10665int
10666main ()
10667{
10668finite ();
10669 ;
10670 return 0;
10671}
10672_ACEOF
10673rm -f conftest.$ac_objext conftest$ac_exeext
10674if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10675 (eval $ac_link) 2>conftest.er1
10676 ac_status=$?
10677 grep -v '^ *+' conftest.er1 >conftest.err
10678 rm -f conftest.er1
10679 cat conftest.err >&5
10680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10681 (exit $ac_status); } &&
1fb2002d 10682 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
69d3c9a4
SB
10683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10684 (eval $ac_try) 2>&5
10685 ac_status=$?
10686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10687 (exit $ac_status); }; } &&
10688 { ac_try='test -s conftest$ac_exeext'
10689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10690 (eval $ac_try) 2>&5
10691 ac_status=$?
10692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10693 (exit $ac_status); }; }; then
10694 ac_cv_lib_m_finite=yes
10695else
10696 echo "$as_me: failed program was:" >&5
10697sed 's/^/| /' conftest.$ac_ext >&5
10698
10699ac_cv_lib_m_finite=no
10700fi
10701rm -f conftest.err conftest.$ac_objext \
10702 conftest$ac_exeext conftest.$ac_ext
10703LIBS=$ac_check_lib_save_LIBS
10704fi
10705echo "$as_me:$LINENO: result: $ac_cv_lib_m_finite" >&5
10706echo "${ECHO_T}$ac_cv_lib_m_finite" >&6
10707if test $ac_cv_lib_m_finite = yes; then
10708
10709cat >>confdefs.h <<\_ACEOF
10710#define HAVE_FINITE 1
10711_ACEOF
10712
10713fi
10714
10715
96b8a615
AJ
10716# Let the user override this
10717# Check whether --enable-cmath or --disable-cmath was given.
10718if test "${enable_cmath+set}" = set; then
10719 enableval="$enable_cmath"
10720 need_math=$enableval
10721fi;
10722if test "$need_math" = "yes"; then
10723 { echo "$as_me:$LINENO: Including complex math functions in libgfor" >&5
10724echo "$as_me: Including complex math functions in libgfor" >&6;};
10725 extra_math_obj='$(gfor_cmath_obj)'
10726fi
10727
10728MATH_OBJ="$extra_math_obj"
10729
10730
10731# The standard autoconf HAVE_STRUCT_TIMEZONE doesn't actually check
10732# for struct timezone, as you might think. We also need to check how
10733# to call gettimeofday if we have it.
10734echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
10735echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
10736if test "${ac_cv_header_time+set}" = set; then
6de9cd9a
DN
10737 echo $ECHO_N "(cached) $ECHO_C" >&6
10738else
96b8a615
AJ
10739 cat >conftest.$ac_ext <<_ACEOF
10740/* confdefs.h. */
10741_ACEOF
10742cat confdefs.h >>conftest.$ac_ext
10743cat >>conftest.$ac_ext <<_ACEOF
10744/* end confdefs.h. */
10745#include <sys/types.h>
10746#include <sys/time.h>
10747#include <time.h>
10748
10749int
10750main ()
10751{
10752if ((struct tm *) 0)
10753return 0;
10754 ;
10755 return 0;
10756}
10757_ACEOF
10758rm -f conftest.$ac_objext
10759if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10760 (eval $ac_compile) 2>conftest.er1
10761 ac_status=$?
10762 grep -v '^ *+' conftest.er1 >conftest.err
10763 rm -f conftest.er1
10764 cat conftest.err >&5
10765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10766 (exit $ac_status); } &&
1fb2002d 10767 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
96b8a615
AJ
10768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10769 (eval $ac_try) 2>&5
10770 ac_status=$?
10771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10772 (exit $ac_status); }; } &&
10773 { ac_try='test -s conftest.$ac_objext'
10774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10775 (eval $ac_try) 2>&5
10776 ac_status=$?
10777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10778 (exit $ac_status); }; }; then
10779 ac_cv_header_time=yes
10780else
10781 echo "$as_me: failed program was:" >&5
10782sed 's/^/| /' conftest.$ac_ext >&5
6de9cd9a 10783
96b8a615 10784ac_cv_header_time=no
6de9cd9a 10785fi
96b8a615 10786rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6de9cd9a 10787fi
96b8a615
AJ
10788echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
10789echo "${ECHO_T}$ac_cv_header_time" >&6
10790if test $ac_cv_header_time = yes; then
6de9cd9a 10791
96b8a615
AJ
10792cat >>confdefs.h <<\_ACEOF
10793#define TIME_WITH_SYS_TIME 1
10794_ACEOF
6de9cd9a 10795
6de9cd9a
DN
10796fi
10797
6de9cd9a 10798
96b8a615
AJ
10799
10800for ac_func in gettimeofday
10801do
10802as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10803echo "$as_me:$LINENO: checking for $ac_func" >&5
10804echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10805if eval "test \"\${$as_ac_var+set}\" = set"; then
6de9cd9a
DN
10806 echo $ECHO_N "(cached) $ECHO_C" >&6
10807else
f77b6ca3 10808 cat >conftest.$ac_ext <<_ACEOF
96b8a615
AJ
10809/* confdefs.h. */
10810_ACEOF
10811cat confdefs.h >>conftest.$ac_ext
10812cat >>conftest.$ac_ext <<_ACEOF
10813/* end confdefs.h. */
10814/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10815 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10816#define $ac_func innocuous_$ac_func
10817
10818/* System header to define __stub macros and hopefully few prototypes,
10819 which can conflict with char $ac_func (); below.
10820 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10821 <limits.h> exists even on freestanding compilers. */
10822
10823#ifdef __STDC__
10824# include <limits.h>
10825#else
10826# include <assert.h>
10827#endif
10828
10829#undef $ac_func
10830
10831/* Override any gcc2 internal prototype to avoid an error. */
10832#ifdef __cplusplus
10833extern "C"
10834{
10835#endif
10836/* We use char because int might match the return type of a gcc2
10837 builtin and then its argument prototype would still apply. */
10838char $ac_func ();
10839/* The GNU C library defines this for functions which it implements
10840 to always fail with ENOSYS. Some functions are actually named
10841 something starting with __ and the normal name is an alias. */
10842#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10843choke me
10844#else
10845char (*f) () = $ac_func;
10846#endif
10847#ifdef __cplusplus
10848}
10849#endif
10850
10851int
10852main ()
10853{
10854return f != $ac_func;
10855 ;
10856 return 0;
10857}
10858_ACEOF
10859rm -f conftest.$ac_objext conftest$ac_exeext
10860if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10861 (eval $ac_link) 2>conftest.er1
10862 ac_status=$?
10863 grep -v '^ *+' conftest.er1 >conftest.err
10864 rm -f conftest.er1
10865 cat conftest.err >&5
10866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10867 (exit $ac_status); } &&
1fb2002d 10868 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
96b8a615
AJ
10869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10870 (eval $ac_try) 2>&5
10871 ac_status=$?
10872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10873 (exit $ac_status); }; } &&
10874 { ac_try='test -s conftest$ac_exeext'
10875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10876 (eval $ac_try) 2>&5
10877 ac_status=$?
10878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10879 (exit $ac_status); }; }; then
10880 eval "$as_ac_var=yes"
6de9cd9a 10881else
96b8a615
AJ
10882 echo "$as_me: failed program was:" >&5
10883sed 's/^/| /' conftest.$ac_ext >&5
6de9cd9a 10884
96b8a615 10885eval "$as_ac_var=no"
6de9cd9a 10886fi
96b8a615
AJ
10887rm -f conftest.err conftest.$ac_objext \
10888 conftest$ac_exeext conftest.$ac_ext
6de9cd9a 10889fi
96b8a615
AJ
10890echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10891echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10892if test `eval echo '${'$as_ac_var'}'` = yes; then
10893 cat >>confdefs.h <<_ACEOF
10894#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10895_ACEOF
6de9cd9a
DN
10896
10897fi
6de9cd9a
DN
10898done
10899
96b8a615
AJ
10900 if test "$ac_cv_func_gettimeofday" = yes; then
10901 echo "$as_me:$LINENO: checking for struct timezone" >&5
10902echo $ECHO_N "checking for struct timezone... $ECHO_C" >&6
10903if test "${gfor_cv_struct_timezone+set}" = set; then
10904 echo $ECHO_N "(cached) $ECHO_C" >&6
10905else
10906 cat >conftest.$ac_ext <<_ACEOF
10907/* confdefs.h. */
10908_ACEOF
10909cat confdefs.h >>conftest.$ac_ext
10910cat >>conftest.$ac_ext <<_ACEOF
10911/* end confdefs.h. */
10912#include <sys/time.h>
10913int
10914main ()
10915{
10916struct timezone tz;
10917 ;
10918 return 0;
10919}
10920_ACEOF
10921rm -f conftest.$ac_objext
10922if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10923 (eval $ac_compile) 2>conftest.er1
10924 ac_status=$?
10925 grep -v '^ *+' conftest.er1 >conftest.err
10926 rm -f conftest.er1
10927 cat conftest.err >&5
10928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10929 (exit $ac_status); } &&
1fb2002d 10930 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
96b8a615
AJ
10931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10932 (eval $ac_try) 2>&5
10933 ac_status=$?
10934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10935 (exit $ac_status); }; } &&
10936 { ac_try='test -s conftest.$ac_objext'
10937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10938 (eval $ac_try) 2>&5
10939 ac_status=$?
10940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10941 (exit $ac_status); }; }; then
10942 gfor_cv_struct_timezone=yes
6de9cd9a 10943else
96b8a615
AJ
10944 echo "$as_me: failed program was:" >&5
10945sed 's/^/| /' conftest.$ac_ext >&5
6de9cd9a 10946
96b8a615 10947gfor_cv_struct_timezone=no
6de9cd9a 10948fi
96b8a615
AJ
10949rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10950fi
10951echo "$as_me:$LINENO: result: $gfor_cv_struct_timezone" >&5
10952echo "${ECHO_T}$gfor_cv_struct_timezone" >&6
10953 if test $gfor_cv_struct_timezone = yes; then
10954 if test "$cross_compiling" = yes; then
10955 gfor_have_struct_timezone=yes
6de9cd9a 10956else
96b8a615
AJ
10957 cat >conftest.$ac_ext <<_ACEOF
10958/* confdefs.h. */
10959_ACEOF
10960cat confdefs.h >>conftest.$ac_ext
10961cat >>conftest.$ac_ext <<_ACEOF
10962/* end confdefs.h. */
6de9cd9a 10963
96b8a615
AJ
10964#ifdef TIME_WITH_SYS_TIME
10965#include <sys/time.h>
10966#include <time.h>
10967#else
10968#ifdef HAVE_SYS_TIME_H
10969#include <sys/time.h>
10970#else
10971#include <time.h>
10972#endif
10973#endif
10974main ()
10975{
10976 struct timeval time;
10977 struct timezone dummy;
10978 if (gettimeofday (&time, &dummy))
10979 exit (1);
10980 else
10981 exit (0);
10982}
10983_ACEOF
10984rm -f conftest$ac_exeext
10985if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10986 (eval $ac_link) 2>&5
6de9cd9a
DN
10987 ac_status=$?
10988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
96b8a615
AJ
10989 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10991 (eval $ac_try) 2>&5
6de9cd9a
DN
10992 ac_status=$?
10993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
96b8a615
AJ
10994 (exit $ac_status); }; }; then
10995 gfor_have_struct_timezone=yes
6de9cd9a 10996else
96b8a615
AJ
10997 echo "$as_me: program exited with status $ac_status" >&5
10998echo "$as_me: failed program was:" >&5
10999sed 's/^/| /' conftest.$ac_ext >&5
6de9cd9a 11000
96b8a615
AJ
11001( exit $ac_status )
11002gfor_have_struct_timezone=no
11003fi
11004rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11005fi
11006 if test $gfor_have_struct_timezone = yes; then
6de9cd9a 11007
96b8a615
AJ
11008cat >>confdefs.h <<\_ACEOF
11009#define HAVE_TIMEZONE 1
11010_ACEOF
6de9cd9a 11011
96b8a615
AJ
11012 fi
11013 fi
11014
11015 echo "$as_me:$LINENO: checking whether gettimeofday can accept two arguments" >&5
11016echo $ECHO_N "checking whether gettimeofday can accept two arguments... $ECHO_C" >&6
11017if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then
11018 echo $ECHO_N "(cached) $ECHO_C" >&6
11019else
f77b6ca3 11020 cat >conftest.$ac_ext <<_ACEOF
6de9cd9a
DN
11021/* confdefs.h. */
11022_ACEOF
11023cat confdefs.h >>conftest.$ac_ext
11024cat >>conftest.$ac_ext <<_ACEOF
11025/* end confdefs.h. */
11026
96b8a615
AJ
11027#ifdef TIME_WITH_SYS_TIME
11028#include <sys/time.h>
11029#include <time.h>
11030#else
11031#ifdef HAVE_SYS_TIME_H
11032#include <sys/time.h>
11033#else
11034#include <time.h>
11035#endif
11036#endif
11037
6de9cd9a
DN
11038int
11039main ()
11040{
11041
96b8a615
AJ
11042 struct timeval time;
11043#ifdef HAVE_TIMEZONE
11044 struct timezone dummy;
11045#define DUMMY &dummy
11046#else
11047#define DUMMY NULL
11048#endif
11049 gettimeofday (&time, DUMMY);
6de9cd9a
DN
11050 ;
11051 return 0;
11052}
11053_ACEOF
11054rm -f conftest.$ac_objext conftest$ac_exeext
11055if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11056 (eval $ac_link) 2>conftest.er1
11057 ac_status=$?
11058 grep -v '^ *+' conftest.er1 >conftest.err
11059 rm -f conftest.er1
11060 cat conftest.err >&5
11061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11062 (exit $ac_status); } &&
1fb2002d 11063 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6de9cd9a
DN
11064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11065 (eval $ac_try) 2>&5
11066 ac_status=$?
11067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11068 (exit $ac_status); }; } &&
11069 { ac_try='test -s conftest$ac_exeext'
11070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11071 (eval $ac_try) 2>&5
11072 ac_status=$?
11073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11074 (exit $ac_status); }; }; then
96b8a615 11075 emacs_cv_gettimeofday_two_arguments=yes
6de9cd9a
DN
11076else
11077 echo "$as_me: failed program was:" >&5
11078sed 's/^/| /' conftest.$ac_ext >&5
11079
96b8a615 11080emacs_cv_gettimeofday_two_arguments=no
6de9cd9a
DN
11081fi
11082rm -f conftest.err conftest.$ac_objext \
11083 conftest$ac_exeext conftest.$ac_ext
6de9cd9a 11084fi
96b8a615
AJ
11085echo "$as_me:$LINENO: result: $emacs_cv_gettimeofday_two_arguments" >&5
11086echo "${ECHO_T}$emacs_cv_gettimeofday_two_arguments" >&6
11087 if test $emacs_cv_gettimeofday_two_arguments = no; then
6de9cd9a 11088
96b8a615
AJ
11089cat >>confdefs.h <<\_ACEOF
11090#define GETTIMEOFDAY_ONE_ARGUMENT 1
11091_ACEOF
6de9cd9a 11092
96b8a615
AJ
11093 fi
11094 fi
6de9cd9a 11095
3969c39f
EB
11096# Attempt to assert that the target is of common type in case we don't
11097# have C99 integer types at all.
11098
11099 echo "$as_me:$LINENO: checking whether the target is ILP32" >&5
11100echo $ECHO_N "checking whether the target is ILP32... $ECHO_C" >&6
11101if test "${target_ilp32+set}" = set; then
11102 echo $ECHO_N "(cached) $ECHO_C" >&6
11103else
11104
11105 save_CFLAGS="$CFLAGS"
11106 CFLAGS="-O2"
f77b6ca3 11107 cat >conftest.$ac_ext <<_ACEOF
3969c39f
EB
11108/* confdefs.h. */
11109_ACEOF
11110cat confdefs.h >>conftest.$ac_ext
11111cat >>conftest.$ac_ext <<_ACEOF
11112/* end confdefs.h. */
11113
11114int
11115main ()
11116{
11117
11118if (sizeof(int) == 4 && sizeof(long) == 4 && sizeof(void *) == 4)
11119 ;
11120else
11121 undefined_function ();
11122
11123 ;
11124 return 0;
11125}
11126_ACEOF
11127rm -f conftest.$ac_objext conftest$ac_exeext
11128if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11129 (eval $ac_link) 2>conftest.er1
11130 ac_status=$?
11131 grep -v '^ *+' conftest.er1 >conftest.err
11132 rm -f conftest.er1
11133 cat conftest.err >&5
11134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11135 (exit $ac_status); } &&
1fb2002d 11136 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3969c39f
EB
11137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11138 (eval $ac_try) 2>&5
11139 ac_status=$?
11140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11141 (exit $ac_status); }; } &&
11142 { ac_try='test -s conftest$ac_exeext'
11143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11144 (eval $ac_try) 2>&5
11145 ac_status=$?
11146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11147 (exit $ac_status); }; }; then
11148 target_ilp32=yes
11149else
11150 echo "$as_me: failed program was:" >&5
11151sed 's/^/| /' conftest.$ac_ext >&5
11152
11153target_ilp32=no
11154fi
11155rm -f conftest.err conftest.$ac_objext \
11156 conftest$ac_exeext conftest.$ac_ext
11157 CFLAGS="$save_CFLAGS"
11158fi
11159echo "$as_me:$LINENO: result: $target_ilp32" >&5
11160echo "${ECHO_T}$target_ilp32" >&6
11161 if test $target_ilp32 = yes; then
11162
11163cat >>confdefs.h <<\_ACEOF
11164#define TARGET_ILP32 1
11165_ACEOF
11166
11167 fi
11168
11169
7d7b8bfe
RH
11170# Check out attribute support.
11171
11172 echo "$as_me:$LINENO: checking whether the target supports hidden visibility" >&5
11173echo $ECHO_N "checking whether the target supports hidden visibility... $ECHO_C" >&6
11174if test "${have_attribute_visibility+set}" = set; then
11175 echo $ECHO_N "(cached) $ECHO_C" >&6
11176else
11177
11178 save_CFLAGS="$CFLAGS"
11179 CFLAGS="$CFLAGS -Werror"
11180 cat >conftest.$ac_ext <<_ACEOF
11181/* confdefs.h. */
11182_ACEOF
11183cat confdefs.h >>conftest.$ac_ext
11184cat >>conftest.$ac_ext <<_ACEOF
11185/* end confdefs.h. */
11186void __attribute__((visibility("hidden"))) foo(void) { }
11187int
11188main ()
11189{
11190
11191 ;
11192 return 0;
11193}
11194_ACEOF
11195rm -f conftest.$ac_objext
11196if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11197 (eval $ac_compile) 2>conftest.er1
11198 ac_status=$?
11199 grep -v '^ *+' conftest.er1 >conftest.err
11200 rm -f conftest.er1
11201 cat conftest.err >&5
11202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11203 (exit $ac_status); } &&
1fb2002d 11204 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7d7b8bfe
RH
11205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11206 (eval $ac_try) 2>&5
11207 ac_status=$?
11208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11209 (exit $ac_status); }; } &&
11210 { ac_try='test -s conftest.$ac_objext'
11211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11212 (eval $ac_try) 2>&5
11213 ac_status=$?
11214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11215 (exit $ac_status); }; }; then
11216 have_attribute_visibility=yes
11217else
11218 echo "$as_me: failed program was:" >&5
11219sed 's/^/| /' conftest.$ac_ext >&5
11220
11221have_attribute_visibility=no
11222fi
11223rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11224 CFLAGS="$save_CFLAGS"
11225fi
11226echo "$as_me:$LINENO: result: $have_attribute_visibility" >&5
11227echo "${ECHO_T}$have_attribute_visibility" >&6
11228 if test $have_attribute_visibility = yes; then
11229
11230cat >>confdefs.h <<\_ACEOF
11231#define HAVE_ATTRIBUTE_VISIBILITY 1
11232_ACEOF
11233
11234 fi
11235
11236 echo "$as_me:$LINENO: checking whether the target supports dllexport" >&5
11237echo $ECHO_N "checking whether the target supports dllexport... $ECHO_C" >&6
11238if test "${have_attribute_dllexport+set}" = set; then
11239 echo $ECHO_N "(cached) $ECHO_C" >&6
11240else
11241
11242 save_CFLAGS="$CFLAGS"
11243 CFLAGS="$CFLAGS -Werror"
11244 cat >conftest.$ac_ext <<_ACEOF
11245/* confdefs.h. */
11246_ACEOF
11247cat confdefs.h >>conftest.$ac_ext
11248cat >>conftest.$ac_ext <<_ACEOF
11249/* end confdefs.h. */
11250void __attribute__((dllexport)) foo(void) { }
11251int
11252main ()
11253{
11254
11255 ;
11256 return 0;
11257}
11258_ACEOF
11259rm -f conftest.$ac_objext
11260if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11261 (eval $ac_compile) 2>conftest.er1
11262 ac_status=$?
11263 grep -v '^ *+' conftest.er1 >conftest.err
11264 rm -f conftest.er1
11265 cat conftest.err >&5
11266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11267 (exit $ac_status); } &&
1fb2002d 11268 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7d7b8bfe
RH
11269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11270 (eval $ac_try) 2>&5
11271 ac_status=$?
11272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11273 (exit $ac_status); }; } &&
11274 { ac_try='test -s conftest.$ac_objext'
11275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11276 (eval $ac_try) 2>&5
11277 ac_status=$?
11278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11279 (exit $ac_status); }; }; then
11280 have_attribute_dllexport=yes
11281else
11282 echo "$as_me: failed program was:" >&5
11283sed 's/^/| /' conftest.$ac_ext >&5
11284
11285have_attribute_dllexport=no
11286fi
11287rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11288 CFLAGS="$save_CFLAGS"
11289fi
11290echo "$as_me:$LINENO: result: $have_attribute_dllexport" >&5
11291echo "${ECHO_T}$have_attribute_dllexport" >&6
11292 if test $have_attribute_dllexport = yes; then
11293
11294cat >>confdefs.h <<\_ACEOF
11295#define HAVE_ATTRIBUTE_DLLEXPORT 1
11296_ACEOF
11297
11298 fi
11299
11300 echo "$as_me:$LINENO: checking whether the target supports symbol aliases" >&5
11301echo $ECHO_N "checking whether the target supports symbol aliases... $ECHO_C" >&6
11302if test "${have_attribute_alias+set}" = set; then
11303 echo $ECHO_N "(cached) $ECHO_C" >&6
11304else
11305
f77b6ca3 11306 cat >conftest.$ac_ext <<_ACEOF
7d7b8bfe
RH
11307/* confdefs.h. */
11308_ACEOF
11309cat confdefs.h >>conftest.$ac_ext
11310cat >>conftest.$ac_ext <<_ACEOF
11311/* end confdefs.h. */
11312
11313#define ULP STR1(__USER_LABEL_PREFIX__)
11314#define STR1(x) STR2(x)
11315#define STR2(x) #x
11316void foo(void) { }
11317extern void bar(void) __attribute__((alias(ULP "foo")));
11318int
11319main ()
11320{
11321bar();
11322 ;
11323 return 0;
11324}
11325_ACEOF
11326rm -f conftest.$ac_objext conftest$ac_exeext
11327if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11328 (eval $ac_link) 2>conftest.er1
11329 ac_status=$?
11330 grep -v '^ *+' conftest.er1 >conftest.err
11331 rm -f conftest.er1
11332 cat conftest.err >&5
11333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11334 (exit $ac_status); } &&
1fb2002d 11335 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7d7b8bfe
RH
11336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11337 (eval $ac_try) 2>&5
11338 ac_status=$?
11339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11340 (exit $ac_status); }; } &&
11341 { ac_try='test -s conftest$ac_exeext'
11342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11343 (eval $ac_try) 2>&5
11344 ac_status=$?
11345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11346 (exit $ac_status); }; }; then
11347 have_attribute_alias=yes
11348else
11349 echo "$as_me: failed program was:" >&5
11350sed 's/^/| /' conftest.$ac_ext >&5
11351
11352have_attribute_alias=no
11353fi
11354rm -f conftest.err conftest.$ac_objext \
11355 conftest$ac_exeext conftest.$ac_ext
11356fi
11357echo "$as_me:$LINENO: result: $have_attribute_alias" >&5
11358echo "${ECHO_T}$have_attribute_alias" >&6
11359 if test $have_attribute_alias = yes; then
11360
11361cat >>confdefs.h <<\_ACEOF
11362#define HAVE_ATTRIBUTE_ALIAS 1
11363_ACEOF
11364
11365 fi
11366
6de9cd9a
DN
11367cat >confcache <<\_ACEOF
11368# This file is a shell script that caches the results of configure
11369# tests run on this system so they can be shared between configure
11370# scripts and configure runs, see configure's option --config-cache.
11371# It is not useful on other systems. If it contains results you don't
11372# want to keep, you may remove or edit it.
11373#
11374# config.status only pays attention to the cache file if you give it
11375# the --recheck option to rerun configure.
11376#
11377# `ac_cv_env_foo' variables (set or unset) will be overridden when
11378# loading this file, other *unset* `ac_cv_foo' will be assigned the
11379# following values.
11380
11381_ACEOF
11382
11383# The following way of writing the cache mishandles newlines in values,
11384# but we know of no workaround that is simple, portable, and efficient.
11385# So, don't put newlines in cache variables' values.
11386# Ultrix sh set writes to stderr and can't be redirected directly,
11387# and sets the high bit in the cache file unless we assign to the vars.
11388{
11389 (set) 2>&1 |
11390 case `(ac_space=' '; set | grep ac_space) 2>&1` in
11391 *ac_space=\ *)
11392 # `set' does not quote correctly, so add quotes (double-quote
11393 # substitution turns \\\\ into \\, and sed turns \\ into \).
11394 sed -n \
11395 "s/'/'\\\\''/g;
11396 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11397 ;;
11398 *)
11399 # `set' quotes correctly as required by POSIX, so do not add quotes.
11400 sed -n \
11401 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
11402 ;;
11403 esac;
11404} |
11405 sed '
11406 t clear
11407 : clear
11408 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11409 t end
11410 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11411 : end' >>confcache
11412if diff $cache_file confcache >/dev/null 2>&1; then :; else
11413 if test -w $cache_file; then
11414 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
11415 cat confcache >$cache_file
11416 else
11417 echo "not updating unwritable cache $cache_file"
11418 fi
11419fi
11420rm -f confcache
11421
96b8a615
AJ
11422if test ${multilib} = yes; then
11423 multilib_arg="--enable-multilib"
6de9cd9a 11424else
96b8a615 11425 multilib_arg=
6de9cd9a 11426fi
6de9cd9a 11427
96b8a615 11428# Write our Makefile.
6de9cd9a 11429 ac_config_files="$ac_config_files Makefile"
96b8a615 11430
6de9cd9a
DN
11431cat >confcache <<\_ACEOF
11432# This file is a shell script that caches the results of configure
11433# tests run on this system so they can be shared between configure
11434# scripts and configure runs, see configure's option --config-cache.
11435# It is not useful on other systems. If it contains results you don't
11436# want to keep, you may remove or edit it.
11437#
11438# config.status only pays attention to the cache file if you give it
11439# the --recheck option to rerun configure.
11440#
11441# `ac_cv_env_foo' variables (set or unset) will be overridden when
11442# loading this file, other *unset* `ac_cv_foo' will be assigned the
11443# following values.
11444
11445_ACEOF
11446
11447# The following way of writing the cache mishandles newlines in values,
11448# but we know of no workaround that is simple, portable, and efficient.
11449# So, don't put newlines in cache variables' values.
11450# Ultrix sh set writes to stderr and can't be redirected directly,
11451# and sets the high bit in the cache file unless we assign to the vars.
11452{
11453 (set) 2>&1 |
11454 case `(ac_space=' '; set | grep ac_space) 2>&1` in
11455 *ac_space=\ *)
11456 # `set' does not quote correctly, so add quotes (double-quote
11457 # substitution turns \\\\ into \\, and sed turns \\ into \).
11458 sed -n \
11459 "s/'/'\\\\''/g;
11460 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11461 ;;
11462 *)
11463 # `set' quotes correctly as required by POSIX, so do not add quotes.
11464 sed -n \
11465 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
11466 ;;
11467 esac;
11468} |
11469 sed '
11470 t clear
11471 : clear
11472 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11473 t end
11474 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11475 : end' >>confcache
11476if diff $cache_file confcache >/dev/null 2>&1; then :; else
11477 if test -w $cache_file; then
11478 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
11479 cat confcache >$cache_file
11480 else
11481 echo "not updating unwritable cache $cache_file"
11482 fi
11483fi
11484rm -f confcache
11485
11486test "x$prefix" = xNONE && prefix=$ac_default_prefix
11487# Let make expand exec_prefix.
11488test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11489
11490# VPATH may cause trouble with some makes, so we remove $(srcdir),
11491# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
11492# trailing colons and then remove the whole line if VPATH becomes empty
11493# (actually we leave an empty line to preserve line numbers).
11494if test "x$srcdir" = x.; then
11495 ac_vpsub='/^[ ]*VPATH[ ]*=/{
11496s/:*\$(srcdir):*/:/;
11497s/:*\${srcdir}:*/:/;
11498s/:*@srcdir@:*/:/;
11499s/^\([^=]*=[ ]*\):*/\1/;
11500s/:*$//;
11501s/^[^=]*=[ ]*$//;
11502}'
11503fi
11504
11505DEFS=-DHAVE_CONFIG_H
11506
11507ac_libobjs=
11508ac_ltlibobjs=
11509for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11510 # 1. Remove the extension, and $U if already installed.
11511 ac_i=`echo "$ac_i" |
11512 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
11513 # 2. Add them.
11514 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
11515 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
11516done
11517LIBOBJS=$ac_libobjs
11518
11519LTLIBOBJS=$ac_ltlibobjs
11520
11521
11522if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
11523 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
11524Usually this means the macro was only invoked conditionally." >&5
11525echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
11526Usually this means the macro was only invoked conditionally." >&2;}
11527 { (exit 1); exit 1; }; }
11528fi
6de9cd9a
DN
11529
11530: ${CONFIG_STATUS=./config.status}
11531ac_clean_files_save=$ac_clean_files
11532ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11533{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
11534echo "$as_me: creating $CONFIG_STATUS" >&6;}
11535cat >$CONFIG_STATUS <<_ACEOF
11536#! $SHELL
11537# Generated by $as_me.
11538# Run this file to recreate the current configuration.
11539# Compiler output produced by configure, useful for debugging
11540# configure, is in config.log if it exists.
11541
11542debug=false
11543ac_cs_recheck=false
11544ac_cs_silent=false
11545SHELL=\${CONFIG_SHELL-$SHELL}
11546_ACEOF
11547
11548cat >>$CONFIG_STATUS <<\_ACEOF
11549## --------------------- ##
11550## M4sh Initialization. ##
11551## --------------------- ##
11552
11553# Be Bourne compatible
11554if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
11555 emulate sh
11556 NULLCMD=:
11557 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
11558 # is contrary to our usage. Disable this feature.
11559 alias -g '${1+"$@"}'='"$@"'
11560elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
11561 set -o posix
11562fi
11563DUALCASE=1; export DUALCASE # for MKS sh
11564
11565# Support unset when possible.
11566if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
11567 as_unset=unset
11568else
11569 as_unset=false
11570fi
11571
11572
11573# Work around bugs in pre-3.0 UWIN ksh.
11574$as_unset ENV MAIL MAILPATH
11575PS1='$ '
11576PS2='> '
11577PS4='+ '
11578
11579# NLS nuisances.
11580for as_var in \
11581 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
11582 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
11583 LC_TELEPHONE LC_TIME
11584do
11585 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
11586 eval $as_var=C; export $as_var
11587 else
11588 $as_unset $as_var
11589 fi
11590done
11591
11592# Required to use basename.
11593if expr a : '\(a\)' >/dev/null 2>&1; then
11594 as_expr=expr
11595else
11596 as_expr=false
11597fi
11598
11599if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
11600 as_basename=basename
11601else
11602 as_basename=false
11603fi
11604
11605
11606# Name of the executable.
11607as_me=`$as_basename "$0" ||
11608$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11609 X"$0" : 'X\(//\)$' \| \
11610 X"$0" : 'X\(/\)$' \| \
11611 . : '\(.\)' 2>/dev/null ||
11612echo X/"$0" |
11613 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
11614 /^X\/\(\/\/\)$/{ s//\1/; q; }
11615 /^X\/\(\/\).*/{ s//\1/; q; }
11616 s/.*/./; q'`
11617
11618
11619# PATH needs CR, and LINENO needs CR and PATH.
11620# Avoid depending upon Character Ranges.
11621as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11622as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11623as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11624as_cr_digits='0123456789'
11625as_cr_alnum=$as_cr_Letters$as_cr_digits
11626
11627# The user is always right.
11628if test "${PATH_SEPARATOR+set}" != set; then
11629 echo "#! /bin/sh" >conf$$.sh
11630 echo "exit 0" >>conf$$.sh
11631 chmod +x conf$$.sh
11632 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11633 PATH_SEPARATOR=';'
11634 else
11635 PATH_SEPARATOR=:
11636 fi
11637 rm -f conf$$.sh
11638fi
11639
11640
11641 as_lineno_1=$LINENO
11642 as_lineno_2=$LINENO
11643 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
11644 test "x$as_lineno_1" != "x$as_lineno_2" &&
11645 test "x$as_lineno_3" = "x$as_lineno_2" || {
11646 # Find who we are. Look in the path if we contain no path at all
11647 # relative or not.
11648 case $0 in
11649 *[\\/]* ) as_myself=$0 ;;
11650 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11651for as_dir in $PATH
11652do
11653 IFS=$as_save_IFS
11654 test -z "$as_dir" && as_dir=.
11655 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11656done
11657
11658 ;;
11659 esac
11660 # We did not find ourselves, most probably we were run as `sh COMMAND'
11661 # in which case we are not to be found in the path.
11662 if test "x$as_myself" = x; then
11663 as_myself=$0
11664 fi
11665 if test ! -f "$as_myself"; then
11666 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
11667echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
11668 { (exit 1); exit 1; }; }
11669 fi
11670 case $CONFIG_SHELL in
11671 '')
11672 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11673for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
11674do
11675 IFS=$as_save_IFS
11676 test -z "$as_dir" && as_dir=.
11677 for as_base in sh bash ksh sh5; do
11678 case $as_dir in
11679 /*)
11680 if ("$as_dir/$as_base" -c '
11681 as_lineno_1=$LINENO
11682 as_lineno_2=$LINENO
11683 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
11684 test "x$as_lineno_1" != "x$as_lineno_2" &&
11685 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
11686 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
11687 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
11688 CONFIG_SHELL=$as_dir/$as_base
11689 export CONFIG_SHELL
11690 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
11691 fi;;
11692 esac
11693 done
11694done
11695;;
11696 esac
11697
11698 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
11699 # uniformly replaced by the line number. The first 'sed' inserts a
11700 # line-number line before each line; the second 'sed' does the real
11701 # work. The second script uses 'N' to pair each line-number line
11702 # with the numbered line, and appends trailing '-' during
11703 # substitution so that $LINENO is not a special case at line end.
11704 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
11705 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
11706 sed '=' <$as_myself |
11707 sed '
11708 N
11709 s,$,-,
11710 : loop
11711 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
11712 t loop
11713 s,-$,,
11714 s,^['$as_cr_digits']*\n,,
11715 ' >$as_me.lineno &&
11716 chmod +x $as_me.lineno ||
11717 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
11718echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
11719 { (exit 1); exit 1; }; }
11720
11721 # Don't try to exec as it changes $[0], causing all sort of problems
11722 # (the dirname of $[0] is not the place where we might find the
11723 # original and so on. Autoconf is especially sensible to this).
11724 . ./$as_me.lineno
11725 # Exit status is that of the last command.
11726 exit
11727}
11728
11729
11730case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
11731 *c*,-n*) ECHO_N= ECHO_C='
11732' ECHO_T=' ' ;;
11733 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
11734 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
11735esac
11736
11737if expr a : '\(a\)' >/dev/null 2>&1; then
11738 as_expr=expr
11739else
11740 as_expr=false
11741fi
11742
11743rm -f conf$$ conf$$.exe conf$$.file
11744echo >conf$$.file
11745if ln -s conf$$.file conf$$ 2>/dev/null; then
11746 # We could just check for DJGPP; but this test a) works b) is more generic
11747 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
11748 if test -f conf$$.exe; then
11749 # Don't use ln at all; we don't have any links
11750 as_ln_s='cp -p'
11751 else
11752 as_ln_s='ln -s'
11753 fi
11754elif ln conf$$.file conf$$ 2>/dev/null; then
11755 as_ln_s=ln
11756else
11757 as_ln_s='cp -p'
11758fi
11759rm -f conf$$ conf$$.exe conf$$.file
11760
11761if mkdir -p . 2>/dev/null; then
11762 as_mkdir_p=:
11763else
11764 test -d ./-p && rmdir ./-p
11765 as_mkdir_p=false
11766fi
11767
11768as_executable_p="test -f"
11769
11770# Sed expression to map a string onto a valid CPP name.
11771as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11772
11773# Sed expression to map a string onto a valid variable name.
11774as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11775
11776
11777# IFS
11778# We need space, tab and new line, in precisely that order.
11779as_nl='
11780'
11781IFS=" $as_nl"
11782
11783# CDPATH.
11784$as_unset CDPATH
11785
11786exec 6>&1
11787
11788# Open the log real soon, to keep \$[0] and so on meaningful, and to
11789# report actual input values of CONFIG_FILES etc. instead of their
11790# values after options handling. Logging --version etc. is OK.
11791exec 5>>config.log
11792{
11793 echo
11794 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11795## Running $as_me. ##
11796_ASBOX
11797} >&5
11798cat >&5 <<_CSEOF
11799
11800This file was extended by GNU Fortran Runtime Library $as_me 0.2, which was
11801generated by GNU Autoconf 2.59. Invocation command line was
11802
11803 CONFIG_FILES = $CONFIG_FILES
11804 CONFIG_HEADERS = $CONFIG_HEADERS
11805 CONFIG_LINKS = $CONFIG_LINKS
11806 CONFIG_COMMANDS = $CONFIG_COMMANDS
11807 $ $0 $@
11808
11809_CSEOF
11810echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
11811echo >&5
11812_ACEOF
11813
11814# Files that config.status was made for.
11815if test -n "$ac_config_files"; then
11816 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
11817fi
11818
11819if test -n "$ac_config_headers"; then
11820 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
11821fi
11822
11823if test -n "$ac_config_links"; then
11824 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
11825fi
11826
11827if test -n "$ac_config_commands"; then
11828 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
11829fi
11830
11831cat >>$CONFIG_STATUS <<\_ACEOF
11832
11833ac_cs_usage="\
11834\`$as_me' instantiates files from templates according to the
11835current configuration.
11836
11837Usage: $0 [OPTIONS] [FILE]...
11838
11839 -h, --help print this help, then exit
11840 -V, --version print version number, then exit
11841 -q, --quiet do not print progress messages
11842 -d, --debug don't remove temporary files
11843 --recheck update $as_me by reconfiguring in the same conditions
11844 --file=FILE[:TEMPLATE]
11845 instantiate the configuration file FILE
11846 --header=FILE[:TEMPLATE]
11847 instantiate the configuration header FILE
11848
11849Configuration files:
11850$config_files
11851
11852Configuration headers:
11853$config_headers
11854
11855Configuration commands:
11856$config_commands
11857
11858Report bugs to <bug-autoconf@gnu.org>."
11859_ACEOF
11860
11861cat >>$CONFIG_STATUS <<_ACEOF
11862ac_cs_version="\\
11863GNU Fortran Runtime Library config.status 0.2
11864configured by $0, generated by GNU Autoconf 2.59,
11865 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
11866
11867Copyright (C) 2003 Free Software Foundation, Inc.
11868This config.status script is free software; the Free Software Foundation
11869gives unlimited permission to copy, distribute and modify it."
11870srcdir=$srcdir
11871INSTALL="$INSTALL"
11872_ACEOF
11873
11874cat >>$CONFIG_STATUS <<\_ACEOF
11875# If no file are specified by the user, then we need to provide default
11876# value. By we need to know if files were specified by the user.
11877ac_need_defaults=:
11878while test $# != 0
11879do
11880 case $1 in
11881 --*=*)
11882 ac_option=`expr "x$1" : 'x\([^=]*\)='`
11883 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
11884 ac_shift=:
11885 ;;
11886 -*)
11887 ac_option=$1
11888 ac_optarg=$2
11889 ac_shift=shift
11890 ;;
11891 *) # This is not an option, so the user has probably given explicit
11892 # arguments.
11893 ac_option=$1
11894 ac_need_defaults=false;;
11895 esac
11896
11897 case $ac_option in
11898 # Handling of the options.
11899_ACEOF
11900cat >>$CONFIG_STATUS <<\_ACEOF
11901 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11902 ac_cs_recheck=: ;;
11903 --version | --vers* | -V )
11904 echo "$ac_cs_version"; exit 0 ;;
11905 --he | --h)
11906 # Conflict between --help and --header
11907 { { echo "$as_me:$LINENO: error: ambiguous option: $1
11908Try \`$0 --help' for more information." >&5
11909echo "$as_me: error: ambiguous option: $1
11910Try \`$0 --help' for more information." >&2;}
11911 { (exit 1); exit 1; }; };;
11912 --help | --hel | -h )
11913 echo "$ac_cs_usage"; exit 0 ;;
11914 --debug | --d* | -d )
11915 debug=: ;;
11916 --file | --fil | --fi | --f )
11917 $ac_shift
11918 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
11919 ac_need_defaults=false;;
11920 --header | --heade | --head | --hea )
11921 $ac_shift
11922 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
11923 ac_need_defaults=false;;
11924 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11925 | -silent | --silent | --silen | --sile | --sil | --si | --s)
11926 ac_cs_silent=: ;;
11927
11928 # This is an error.
11929 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
11930Try \`$0 --help' for more information." >&5
11931echo "$as_me: error: unrecognized option: $1
11932Try \`$0 --help' for more information." >&2;}
11933 { (exit 1); exit 1; }; } ;;
11934
11935 *) ac_config_targets="$ac_config_targets $1" ;;
11936
11937 esac
11938 shift
11939done
11940
11941ac_configure_extra_args=
11942
11943if $ac_cs_silent; then
11944 exec 6>/dev/null
11945 ac_configure_extra_args="$ac_configure_extra_args --silent"
11946fi
11947
11948_ACEOF
11949cat >>$CONFIG_STATUS <<_ACEOF
11950if \$ac_cs_recheck; then
11951 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
11952 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11953fi
11954
11955_ACEOF
11956
11957cat >>$CONFIG_STATUS <<_ACEOF
11958#
11959# INIT-COMMANDS section.
11960#
11961
96b8a615
AJ
11962
11963srcdir="$srcdir"
11964host="$host"
11965target="$target"
11966with_multisubdir="$with_multisubdir"
11967with_multisrctop="$with_multisrctop"
11968with_target_subdir="$with_target_subdir"
11969ac_configure_args="${multilib_arg} ${ac_configure_args}"
11970multi_basedir="$multi_basedir"
11971CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
11972CC="$CC"
6de9cd9a
DN
11973
11974_ACEOF
11975
11976
11977
11978cat >>$CONFIG_STATUS <<\_ACEOF
11979for ac_config_target in $ac_config_targets
11980do
11981 case "$ac_config_target" in
11982 # Handling of arguments.
11983 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
96b8a615 11984 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
6de9cd9a
DN
11985 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
11986 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
11987echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
11988 { (exit 1); exit 1; }; };;
11989 esac
11990done
11991
11992# If the user did not use the arguments to specify the items to instantiate,
11993# then the envvar interface is used. Set only those that are not.
11994# We use the long form for the default assignment because of an extremely
11995# bizarre bug on SunOS 4.1.3.
11996if $ac_need_defaults; then
11997 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
11998 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
11999 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
12000fi
12001
12002# Have a temporary directory for convenience. Make it in the build tree
12003# simply because there is no reason to put it here, and in addition,
12004# creating and moving files from /tmp can sometimes cause problems.
12005# Create a temporary directory, and hook for its removal unless debugging.
12006$debug ||
12007{
12008 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
12009 trap '{ (exit 1); exit 1; }' 1 2 13 15
12010}
12011
12012# Create a (secure) tmp directory for tmp files.
12013
12014{
12015 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
12016 test -n "$tmp" && test -d "$tmp"
12017} ||
12018{
12019 tmp=./confstat$$-$RANDOM
12020 (umask 077 && mkdir $tmp)
12021} ||
12022{
12023 echo "$me: cannot create a temporary directory in ." >&2
12024 { (exit 1); exit 1; }
12025}
12026
12027_ACEOF
12028
12029cat >>$CONFIG_STATUS <<_ACEOF
12030
12031#
12032# CONFIG_FILES section.
12033#
12034
12035# No need to generate the scripts if there are no CONFIG_FILES.
12036# This happens for instance when ./config.status config.h
12037if test -n "\$CONFIG_FILES"; then
12038 # Protect against being on the right side of a sed subst in config.status.
12039 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
12040 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
12041s,@SHELL@,$SHELL,;t t
12042s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
12043s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
12044s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
12045s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
12046s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
12047s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
12048s,@exec_prefix@,$exec_prefix,;t t
12049s,@prefix@,$prefix,;t t
12050s,@program_transform_name@,$program_transform_name,;t t
12051s,@bindir@,$bindir,;t t
12052s,@sbindir@,$sbindir,;t t
12053s,@libexecdir@,$libexecdir,;t t
12054s,@datadir@,$datadir,;t t
12055s,@sysconfdir@,$sysconfdir,;t t
12056s,@sharedstatedir@,$sharedstatedir,;t t
12057s,@localstatedir@,$localstatedir,;t t
12058s,@libdir@,$libdir,;t t
12059s,@includedir@,$includedir,;t t
12060s,@oldincludedir@,$oldincludedir,;t t
12061s,@infodir@,$infodir,;t t
12062s,@mandir@,$mandir,;t t
12063s,@build_alias@,$build_alias,;t t
12064s,@host_alias@,$host_alias,;t t
12065s,@target_alias@,$target_alias,;t t
12066s,@DEFS@,$DEFS,;t t
12067s,@ECHO_C@,$ECHO_C,;t t
12068s,@ECHO_N@,$ECHO_N,;t t
12069s,@ECHO_T@,$ECHO_T,;t t
12070s,@LIBS@,$LIBS,;t t
96b8a615
AJ
12071s,@build@,$build,;t t
12072s,@build_cpu@,$build_cpu,;t t
12073s,@build_vendor@,$build_vendor,;t t
12074s,@build_os@,$build_os,;t t
12075s,@host@,$host,;t t
12076s,@host_cpu@,$host_cpu,;t t
12077s,@host_vendor@,$host_vendor,;t t
12078s,@host_os@,$host_os,;t t
12079s,@target@,$target,;t t
12080s,@target_cpu@,$target_cpu,;t t
12081s,@target_vendor@,$target_vendor,;t t
12082s,@target_os@,$target_os,;t t
6de9cd9a
DN
12083s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
12084s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
12085s,@INSTALL_DATA@,$INSTALL_DATA,;t t
12086s,@CYGPATH_W@,$CYGPATH_W,;t t
12087s,@PACKAGE@,$PACKAGE,;t t
12088s,@VERSION@,$VERSION,;t t
12089s,@ACLOCAL@,$ACLOCAL,;t t
12090s,@AUTOCONF@,$AUTOCONF,;t t
12091s,@AUTOMAKE@,$AUTOMAKE,;t t
12092s,@AUTOHEADER@,$AUTOHEADER,;t t
12093s,@MAKEINFO@,$MAKEINFO,;t t
6de9cd9a
DN
12094s,@install_sh@,$install_sh,;t t
12095s,@STRIP@,$STRIP,;t t
12096s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
12097s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
12098s,@mkdir_p@,$mkdir_p,;t t
12099s,@AWK@,$AWK,;t t
12100s,@SET_MAKE@,$SET_MAKE,;t t
12101s,@am__leading_dot@,$am__leading_dot,;t t
d49ec2d1
KC
12102s,@AMTAR@,$AMTAR,;t t
12103s,@am__tar@,$am__tar,;t t
12104s,@am__untar@,$am__untar,;t t
6de9cd9a
DN
12105s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
12106s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
12107s,@MAINT@,$MAINT,;t t
96b8a615 12108s,@multi_basedir@,$multi_basedir,;t t
96b8a615
AJ
12109s,@toolexecdir@,$toolexecdir,;t t
12110s,@toolexeclibdir@,$toolexeclibdir,;t t
6de9cd9a 12111s,@CC@,$CC,;t t
6de9cd9a
DN
12112s,@ac_ct_CC@,$ac_ct_CC,;t t
12113s,@EXEEXT@,$EXEEXT,;t t
12114s,@OBJEXT@,$OBJEXT,;t t
96b8a615
AJ
12115s,@CFLAGS@,$CFLAGS,;t t
12116s,@AS@,$AS,;t t
12117s,@ac_ct_AS@,$ac_ct_AS,;t t
12118s,@AR@,$AR,;t t
12119s,@ac_ct_AR@,$ac_ct_AR,;t t
12120s,@RANLIB@,$RANLIB,;t t
12121s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
12122s,@LN_S@,$LN_S,;t t
12123s,@LIBTOOL@,$LIBTOOL,;t t
12124s,@enable_shared@,$enable_shared,;t t
12125s,@enable_static@,$enable_static,;t t
c7a35fe9
AS
12126s,@FC@,$FC,;t t
12127s,@FCFLAGS@,$FCFLAGS,;t t
96b8a615 12128s,@LDFLAGS@,$LDFLAGS,;t t
c7a35fe9 12129s,@ac_ct_FC@,$ac_ct_FC,;t t
e87045f3 12130s,@extra_ldflags_libgfortran@,$extra_ldflags_libgfortran,;t t
6de9cd9a 12131s,@CPP@,$CPP,;t t
96b8a615 12132s,@CPPFLAGS@,$CPPFLAGS,;t t
6de9cd9a
DN
12133s,@EGREP@,$EGREP,;t t
12134s,@MATH_OBJ@,$MATH_OBJ,;t t
6de9cd9a
DN
12135s,@LIBOBJS@,$LIBOBJS,;t t
12136s,@LTLIBOBJS@,$LTLIBOBJS,;t t
12137CEOF
12138
12139_ACEOF
12140
12141 cat >>$CONFIG_STATUS <<\_ACEOF
12142 # Split the substitutions into bite-sized pieces for seds with
12143 # small command number limits, like on Digital OSF/1 and HP-UX.
12144 ac_max_sed_lines=48
12145 ac_sed_frag=1 # Number of current file.
12146 ac_beg=1 # First line for current file.
12147 ac_end=$ac_max_sed_lines # Line after last line for current file.
12148 ac_more_lines=:
12149 ac_sed_cmds=
12150 while $ac_more_lines; do
12151 if test $ac_beg -gt 1; then
12152 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
12153 else
12154 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
12155 fi
12156 if test ! -s $tmp/subs.frag; then
12157 ac_more_lines=false
12158 else
12159 # The purpose of the label and of the branching condition is to
12160 # speed up the sed processing (if there are no `@' at all, there
12161 # is no need to browse any of the substitutions).
12162 # These are the two extra sed commands mentioned above.
12163 (echo ':t
12164 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
12165 if test -z "$ac_sed_cmds"; then
12166 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
12167 else
12168 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
12169 fi
12170 ac_sed_frag=`expr $ac_sed_frag + 1`
12171 ac_beg=$ac_end
12172 ac_end=`expr $ac_end + $ac_max_sed_lines`
12173 fi
12174 done
12175 if test -z "$ac_sed_cmds"; then
12176 ac_sed_cmds=cat
12177 fi
12178fi # test -n "$CONFIG_FILES"
12179
12180_ACEOF
12181cat >>$CONFIG_STATUS <<\_ACEOF
12182for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
12183 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
12184 case $ac_file in
12185 - | *:- | *:-:* ) # input from stdin
12186 cat >$tmp/stdin
12187 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12188 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12189 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12190 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12191 * ) ac_file_in=$ac_file.in ;;
12192 esac
12193
12194 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
12195 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
12196$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12197 X"$ac_file" : 'X\(//\)[^/]' \| \
12198 X"$ac_file" : 'X\(//\)$' \| \
12199 X"$ac_file" : 'X\(/\)' \| \
12200 . : '\(.\)' 2>/dev/null ||
12201echo X"$ac_file" |
12202 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12203 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12204 /^X\(\/\/\)$/{ s//\1/; q; }
12205 /^X\(\/\).*/{ s//\1/; q; }
12206 s/.*/./; q'`
12207 { if $as_mkdir_p; then
12208 mkdir -p "$ac_dir"
12209 else
12210 as_dir="$ac_dir"
12211 as_dirs=
12212 while test ! -d "$as_dir"; do
12213 as_dirs="$as_dir $as_dirs"
12214 as_dir=`(dirname "$as_dir") 2>/dev/null ||
12215$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12216 X"$as_dir" : 'X\(//\)[^/]' \| \
12217 X"$as_dir" : 'X\(//\)$' \| \
12218 X"$as_dir" : 'X\(/\)' \| \
12219 . : '\(.\)' 2>/dev/null ||
12220echo X"$as_dir" |
12221 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12222 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12223 /^X\(\/\/\)$/{ s//\1/; q; }
12224 /^X\(\/\).*/{ s//\1/; q; }
12225 s/.*/./; q'`
12226 done
12227 test ! -n "$as_dirs" || mkdir $as_dirs
12228 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
12229echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
12230 { (exit 1); exit 1; }; }; }
12231
12232 ac_builddir=.
12233
12234if test "$ac_dir" != .; then
12235 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
12236 # A "../" for each directory in $ac_dir_suffix.
12237 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
12238else
12239 ac_dir_suffix= ac_top_builddir=
12240fi
12241
12242case $srcdir in
12243 .) # No --srcdir option. We are building in place.
12244 ac_srcdir=.
12245 if test -z "$ac_top_builddir"; then
12246 ac_top_srcdir=.
12247 else
12248 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
12249 fi ;;
12250 [\\/]* | ?:[\\/]* ) # Absolute path.
12251 ac_srcdir=$srcdir$ac_dir_suffix;
12252 ac_top_srcdir=$srcdir ;;
12253 *) # Relative path.
12254 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
12255 ac_top_srcdir=$ac_top_builddir$srcdir ;;
12256esac
12257
12258# Do not use `cd foo && pwd` to compute absolute paths, because
12259# the directories may not exist.
12260case `pwd` in
12261.) ac_abs_builddir="$ac_dir";;
12262*)
12263 case "$ac_dir" in
12264 .) ac_abs_builddir=`pwd`;;
12265 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
12266 *) ac_abs_builddir=`pwd`/"$ac_dir";;
12267 esac;;
12268esac
12269case $ac_abs_builddir in
12270.) ac_abs_top_builddir=${ac_top_builddir}.;;
12271*)
12272 case ${ac_top_builddir}. in
12273 .) ac_abs_top_builddir=$ac_abs_builddir;;
12274 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
12275 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
12276 esac;;
12277esac
12278case $ac_abs_builddir in
12279.) ac_abs_srcdir=$ac_srcdir;;
12280*)
12281 case $ac_srcdir in
12282 .) ac_abs_srcdir=$ac_abs_builddir;;
12283 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
12284 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
12285 esac;;
12286esac
12287case $ac_abs_builddir in
12288.) ac_abs_top_srcdir=$ac_top_srcdir;;
12289*)
12290 case $ac_top_srcdir in
12291 .) ac_abs_top_srcdir=$ac_abs_builddir;;
12292 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
12293 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
12294 esac;;
12295esac
12296
12297
12298 case $INSTALL in
12299 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12300 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
12301 esac
12302
12303 # Let's still pretend it is `configure' which instantiates (i.e., don't
12304 # use $as_me), people would be surprised to read:
12305 # /* config.h. Generated by config.status. */
12306 if test x"$ac_file" = x-; then
12307 configure_input=
12308 else
12309 configure_input="$ac_file. "
12310 fi
12311 configure_input=$configure_input"Generated from `echo $ac_file_in |
12312 sed 's,.*/,,'` by configure."
12313
12314 # First look for the input files in the build tree, otherwise in the
12315 # src tree.
12316 ac_file_inputs=`IFS=:
12317 for f in $ac_file_in; do
12318 case $f in
12319 -) echo $tmp/stdin ;;
12320 [\\/$]*)
12321 # Absolute (can't be DOS-style, as IFS=:)
12322 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12323echo "$as_me: error: cannot find input file: $f" >&2;}
12324 { (exit 1); exit 1; }; }
12325 echo "$f";;
12326 *) # Relative
12327 if test -f "$f"; then
12328 # Build tree
12329 echo "$f"
12330 elif test -f "$srcdir/$f"; then
12331 # Source tree
12332 echo "$srcdir/$f"
12333 else
12334 # /dev/null tree
12335 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12336echo "$as_me: error: cannot find input file: $f" >&2;}
12337 { (exit 1); exit 1; }; }
12338 fi;;
12339 esac
12340 done` || { (exit 1); exit 1; }
1fb2002d
FXC
12341
12342 if test x"$ac_file" != x-; then
12343 { echo "$as_me:$LINENO: creating $ac_file" >&5
12344echo "$as_me: creating $ac_file" >&6;}
12345 rm -f "$ac_file"
12346 fi
6de9cd9a
DN
12347_ACEOF
12348cat >>$CONFIG_STATUS <<_ACEOF
12349 sed "$ac_vpsub
12350$extrasub
12351_ACEOF
12352cat >>$CONFIG_STATUS <<\_ACEOF
12353:t
12354/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12355s,@configure_input@,$configure_input,;t t
12356s,@srcdir@,$ac_srcdir,;t t
12357s,@abs_srcdir@,$ac_abs_srcdir,;t t
12358s,@top_srcdir@,$ac_top_srcdir,;t t
12359s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
12360s,@builddir@,$ac_builddir,;t t
12361s,@abs_builddir@,$ac_abs_builddir,;t t
12362s,@top_builddir@,$ac_top_builddir,;t t
12363s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
12364s,@INSTALL@,$ac_INSTALL,;t t
12365" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
12366 rm -f $tmp/stdin
12367 if test x"$ac_file" != x-; then
12368 mv $tmp/out $ac_file
12369 else
12370 cat $tmp/out
12371 rm -f $tmp/out
12372 fi
12373
12374done
12375_ACEOF
12376cat >>$CONFIG_STATUS <<\_ACEOF
12377
12378#
12379# CONFIG_HEADER section.
12380#
12381
12382# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
12383# NAME is the cpp macro being defined and VALUE is the value it is being given.
12384#
12385# ac_d sets the value in "#define NAME VALUE" lines.
12386ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
12387ac_dB='[ ].*$,\1#\2'
12388ac_dC=' '
12389ac_dD=',;t'
12390# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
12391ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
12392ac_uB='$,\1#\2define\3'
12393ac_uC=' '
12394ac_uD=',;t'
12395
12396for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
12397 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
12398 case $ac_file in
12399 - | *:- | *:-:* ) # input from stdin
12400 cat >$tmp/stdin
12401 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12402 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12403 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12404 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12405 * ) ac_file_in=$ac_file.in ;;
12406 esac
12407
12408 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
12409echo "$as_me: creating $ac_file" >&6;}
12410
12411 # First look for the input files in the build tree, otherwise in the
12412 # src tree.
12413 ac_file_inputs=`IFS=:
12414 for f in $ac_file_in; do
12415 case $f in
12416 -) echo $tmp/stdin ;;
12417 [\\/$]*)
12418 # Absolute (can't be DOS-style, as IFS=:)
12419 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12420echo "$as_me: error: cannot find input file: $f" >&2;}
12421 { (exit 1); exit 1; }; }
12422 # Do quote $f, to prevent DOS paths from being IFS'd.
12423 echo "$f";;
12424 *) # Relative
12425 if test -f "$f"; then
12426 # Build tree
12427 echo "$f"
12428 elif test -f "$srcdir/$f"; then
12429 # Source tree
12430 echo "$srcdir/$f"
12431 else
12432 # /dev/null tree
12433 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12434echo "$as_me: error: cannot find input file: $f" >&2;}
12435 { (exit 1); exit 1; }; }
12436 fi;;
12437 esac
12438 done` || { (exit 1); exit 1; }
12439 # Remove the trailing spaces.
12440 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
12441
12442_ACEOF
12443
12444# Transform confdefs.h into two sed scripts, `conftest.defines' and
12445# `conftest.undefs', that substitutes the proper values into
12446# config.h.in to produce config.h. The first handles `#define'
12447# templates, and the second `#undef' templates.
12448# And first: Protect against being on the right side of a sed subst in
12449# config.status. Protect against being in an unquoted here document
12450# in config.status.
12451rm -f conftest.defines conftest.undefs
12452# Using a here document instead of a string reduces the quoting nightmare.
12453# Putting comments in sed scripts is not portable.
12454#
12455# `end' is used to avoid that the second main sed command (meant for
12456# 0-ary CPP macros) applies to n-ary macro definitions.
12457# See the Autoconf documentation for `clear'.
12458cat >confdef2sed.sed <<\_ACEOF
12459s/[\\&,]/\\&/g
12460s,[\\$`],\\&,g
12461t clear
12462: clear
12463s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
12464t end
12465s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
12466: end
12467_ACEOF
12468# If some macros were called several times there might be several times
12469# the same #defines, which is useless. Nevertheless, we may not want to
12470# sort them, since we want the *last* AC-DEFINE to be honored.
12471uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
12472sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
12473rm -f confdef2sed.sed
12474
12475# This sed command replaces #undef with comments. This is necessary, for
12476# example, in the case of _POSIX_SOURCE, which is predefined and required
12477# on some systems where configure will not decide to define it.
12478cat >>conftest.undefs <<\_ACEOF
12479s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
12480_ACEOF
12481
12482# Break up conftest.defines because some shells have a limit on the size
12483# of here documents, and old seds have small limits too (100 cmds).
12484echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
12485echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
12486echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
12487echo ' :' >>$CONFIG_STATUS
12488rm -f conftest.tail
12489while grep . conftest.defines >/dev/null
12490do
12491 # Write a limited-size here document to $tmp/defines.sed.
12492 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
12493 # Speed up: don't consider the non `#define' lines.
12494 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
12495 # Work around the forget-to-reset-the-flag bug.
12496 echo 't clr' >>$CONFIG_STATUS
12497 echo ': clr' >>$CONFIG_STATUS
12498 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
12499 echo 'CEOF
12500 sed -f $tmp/defines.sed $tmp/in >$tmp/out
12501 rm -f $tmp/in
12502 mv $tmp/out $tmp/in
12503' >>$CONFIG_STATUS
12504 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
12505 rm -f conftest.defines
12506 mv conftest.tail conftest.defines
12507done
12508rm -f conftest.defines
12509echo ' fi # grep' >>$CONFIG_STATUS
12510echo >>$CONFIG_STATUS
12511
12512# Break up conftest.undefs because some shells have a limit on the size
12513# of here documents, and old seds have small limits too (100 cmds).
12514echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
12515rm -f conftest.tail
12516while grep . conftest.undefs >/dev/null
12517do
12518 # Write a limited-size here document to $tmp/undefs.sed.
12519 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
12520 # Speed up: don't consider the non `#undef'
12521 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
12522 # Work around the forget-to-reset-the-flag bug.
12523 echo 't clr' >>$CONFIG_STATUS
12524 echo ': clr' >>$CONFIG_STATUS
12525 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
12526 echo 'CEOF
12527 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
12528 rm -f $tmp/in
12529 mv $tmp/out $tmp/in
12530' >>$CONFIG_STATUS
12531 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
12532 rm -f conftest.undefs
12533 mv conftest.tail conftest.undefs
12534done
12535rm -f conftest.undefs
12536
12537cat >>$CONFIG_STATUS <<\_ACEOF
12538 # Let's still pretend it is `configure' which instantiates (i.e., don't
12539 # use $as_me), people would be surprised to read:
12540 # /* config.h. Generated by config.status. */
12541 if test x"$ac_file" = x-; then
12542 echo "/* Generated by configure. */" >$tmp/config.h
12543 else
12544 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
12545 fi
12546 cat $tmp/in >>$tmp/config.h
12547 rm -f $tmp/in
12548 if test x"$ac_file" != x-; then
12549 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
12550 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
12551echo "$as_me: $ac_file is unchanged" >&6;}
12552 else
12553 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
12554$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12555 X"$ac_file" : 'X\(//\)[^/]' \| \
12556 X"$ac_file" : 'X\(//\)$' \| \
12557 X"$ac_file" : 'X\(/\)' \| \
12558 . : '\(.\)' 2>/dev/null ||
12559echo X"$ac_file" |
12560 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12561 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12562 /^X\(\/\/\)$/{ s//\1/; q; }
12563 /^X\(\/\).*/{ s//\1/; q; }
12564 s/.*/./; q'`
12565 { if $as_mkdir_p; then
12566 mkdir -p "$ac_dir"
12567 else
12568 as_dir="$ac_dir"
12569 as_dirs=
12570 while test ! -d "$as_dir"; do
12571 as_dirs="$as_dir $as_dirs"
12572 as_dir=`(dirname "$as_dir") 2>/dev/null ||
12573$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12574 X"$as_dir" : 'X\(//\)[^/]' \| \
12575 X"$as_dir" : 'X\(//\)$' \| \
12576 X"$as_dir" : 'X\(/\)' \| \
12577 . : '\(.\)' 2>/dev/null ||
12578echo X"$as_dir" |
12579 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12580 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12581 /^X\(\/\/\)$/{ s//\1/; q; }
12582 /^X\(\/\).*/{ s//\1/; q; }
12583 s/.*/./; q'`
12584 done
12585 test ! -n "$as_dirs" || mkdir $as_dirs
12586 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
12587echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
12588 { (exit 1); exit 1; }; }; }
12589
12590 rm -f $ac_file
12591 mv $tmp/config.h $ac_file
12592 fi
12593 else
12594 cat $tmp/config.h
12595 rm -f $tmp/config.h
12596 fi
12597# Compute $ac_file's index in $config_headers.
12598_am_stamp_count=1
12599for _am_header in $config_headers :; do
12600 case $_am_header in
12601 $ac_file | $ac_file:* )
12602 break ;;
12603 * )
12604 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
12605 esac
12606done
12607echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
12608$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12609 X$ac_file : 'X\(//\)[^/]' \| \
12610 X$ac_file : 'X\(//\)$' \| \
12611 X$ac_file : 'X\(/\)' \| \
12612 . : '\(.\)' 2>/dev/null ||
12613echo X$ac_file |
12614 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12615 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12616 /^X\(\/\/\)$/{ s//\1/; q; }
12617 /^X\(\/\).*/{ s//\1/; q; }
12618 s/.*/./; q'`/stamp-h$_am_stamp_count
12619done
12620_ACEOF
12621cat >>$CONFIG_STATUS <<\_ACEOF
12622
12623#
12624# CONFIG_COMMANDS section.
12625#
12626for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
12627 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
12628 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
12629 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
12630$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12631 X"$ac_dest" : 'X\(//\)[^/]' \| \
12632 X"$ac_dest" : 'X\(//\)$' \| \
12633 X"$ac_dest" : 'X\(/\)' \| \
12634 . : '\(.\)' 2>/dev/null ||
12635echo X"$ac_dest" |
12636 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12637 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12638 /^X\(\/\/\)$/{ s//\1/; q; }
12639 /^X\(\/\).*/{ s//\1/; q; }
12640 s/.*/./; q'`
12641 { if $as_mkdir_p; then
12642 mkdir -p "$ac_dir"
12643 else
12644 as_dir="$ac_dir"
12645 as_dirs=
12646 while test ! -d "$as_dir"; do
12647 as_dirs="$as_dir $as_dirs"
12648 as_dir=`(dirname "$as_dir") 2>/dev/null ||
12649$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12650 X"$as_dir" : 'X\(//\)[^/]' \| \
12651 X"$as_dir" : 'X\(//\)$' \| \
12652 X"$as_dir" : 'X\(/\)' \| \
12653 . : '\(.\)' 2>/dev/null ||
12654echo X"$as_dir" |
12655 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12656 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12657 /^X\(\/\/\)$/{ s//\1/; q; }
12658 /^X\(\/\).*/{ s//\1/; q; }
12659 s/.*/./; q'`
12660 done
12661 test ! -n "$as_dirs" || mkdir $as_dirs
12662 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
12663echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
12664 { (exit 1); exit 1; }; }; }
12665
12666 ac_builddir=.
12667
12668if test "$ac_dir" != .; then
12669 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
12670 # A "../" for each directory in $ac_dir_suffix.
12671 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
12672else
12673 ac_dir_suffix= ac_top_builddir=
12674fi
12675
12676case $srcdir in
12677 .) # No --srcdir option. We are building in place.
12678 ac_srcdir=.
12679 if test -z "$ac_top_builddir"; then
12680 ac_top_srcdir=.
12681 else
12682 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
12683 fi ;;
12684 [\\/]* | ?:[\\/]* ) # Absolute path.
12685 ac_srcdir=$srcdir$ac_dir_suffix;
12686 ac_top_srcdir=$srcdir ;;
12687 *) # Relative path.
12688 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
12689 ac_top_srcdir=$ac_top_builddir$srcdir ;;
12690esac
12691
12692# Do not use `cd foo && pwd` to compute absolute paths, because
12693# the directories may not exist.
12694case `pwd` in
12695.) ac_abs_builddir="$ac_dir";;
12696*)
12697 case "$ac_dir" in
12698 .) ac_abs_builddir=`pwd`;;
12699 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
12700 *) ac_abs_builddir=`pwd`/"$ac_dir";;
12701 esac;;
12702esac
12703case $ac_abs_builddir in
12704.) ac_abs_top_builddir=${ac_top_builddir}.;;
12705*)
12706 case ${ac_top_builddir}. in
12707 .) ac_abs_top_builddir=$ac_abs_builddir;;
12708 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
12709 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
12710 esac;;
12711esac
12712case $ac_abs_builddir in
12713.) ac_abs_srcdir=$ac_srcdir;;
12714*)
12715 case $ac_srcdir in
12716 .) ac_abs_srcdir=$ac_abs_builddir;;
12717 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
12718 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
12719 esac;;
12720esac
12721case $ac_abs_builddir in
12722.) ac_abs_top_srcdir=$ac_top_srcdir;;
12723*)
12724 case $ac_top_srcdir in
12725 .) ac_abs_top_srcdir=$ac_abs_builddir;;
12726 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
12727 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
12728 esac;;
12729esac
12730
12731
12732 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
12733echo "$as_me: executing $ac_dest commands" >&6;}
12734 case $ac_dest in
96b8a615
AJ
12735 default-1 )
12736# Only add multilib support code if we just rebuilt the top-level
12737# Makefile.
12738case " $CONFIG_FILES " in
12739 *" Makefile "*)
12740 ac_file=Makefile . ${multi_basedir}/config-ml.in
12741 ;;
12742esac ;;
6de9cd9a
DN
12743 esac
12744done
12745_ACEOF
12746
12747cat >>$CONFIG_STATUS <<\_ACEOF
12748
12749{ (exit 0); exit 0; }
12750_ACEOF
12751chmod +x $CONFIG_STATUS
12752ac_clean_files=$ac_clean_files_save
12753
12754
12755# configure is writing to config.log, and then calls config.status.
12756# config.status does its own redirection, appending to config.log.
12757# Unfortunately, on DOS this fails, as config.log is still kept open
12758# by configure, so config.status won't be able to write to it; its
12759# output is simply discarded. So we exec the FD to /dev/null,
12760# effectively closing config.log, so it can be properly (re)opened and
12761# appended to by config.status. When coming back to configure, we
12762# need to make the FD available again.
12763if test "$no_create" != yes; then
12764 ac_cs_success=:
12765 ac_config_status_args=
12766 test "$silent" = yes &&
12767 ac_config_status_args="$ac_config_status_args --quiet"
12768 exec 5>/dev/null
12769 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
12770 exec 5>>config.log
12771 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12772 # would make configure fail if this is the last instruction.
12773 $ac_cs_success || { (exit 1); exit 1; }
12774fi
12775
This page took 1.431768 seconds and 5 git commands to generate.