]> git.ipfire.org Git - thirdparty/gcc.git/blame - libgfortran/configure
flush.c: New file.
[thirdparty/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
c7a35fe9 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 gcc_version toolexecdir toolexeclibdir CC ac_ct_CC EXEEXT OBJEXT CFLAGS AS ac_ct_AS AR ac_ct_AR RANLIB ac_ct_RANLIB LN_S LIBTOOL enable_shared enable_static FC FCFLAGS LDFLAGS ac_ct_FC 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
df65f093 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
d49ec2d1 1960
96b8a615
AJ
1961else
1962 LIBGFOR_IS_NATIVE=true
1963fi
1964
1965# Process the option "--enable-version-specific-runtime-libs"
1966gcc_version_trigger=${srcdir}/../gcc/version.c
1967gcc_version_full=`grep version_string ${gcc_version_trigger} | sed -e 's/.*\"\([^ \"]*\)[ \"].*/\1/'`
1968gcc_version=`echo ${gcc_version_full} | sed -e 's/\(^ *\) .*/\1/'`
1969
1970
1971# Calculate toolexeclibdir
1972# Also toolexecdir, though it's only used in toolexeclibdir
1973case ${version_specific_libs} in
1974 yes)
1975 # Need the gcc compiler version to know where to install libraries
1976 # and header files if --enable-version-specific-runtime-libs option
1977 # is selected.
1978 toolexecdir='$(libdir)/gcc/$(target_alias)'
1979 toolexeclibdir='$(toolexecdir)/'${gcc_version}'$(MULTISUBDIR)'
1980 ;;
1981 no)
1982 if test -n "$with_cross_host" &&
1983 test x"$with_cross_host" != x"no"; then
1984 # Install a library built with a cross compiler in tooldir, not libdir.
1985 toolexecdir='$(exec_prefix)/$(target_alias)'
1986 toolexeclibdir='$(toolexecdir)/lib'
1987 else
1988 toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
1989 toolexeclibdir='$(libdir)'
1990 fi
1991 multi_os_directory=`$CC -print-multi-os-directory`
1992 case $multi_os_directory in
1993 .) ;; # Avoid trailing /.
1994 *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
1995 esac
1996 ;;
1997esac
1998
1999
6de9cd9a 2000
96b8a615
AJ
2001# Check the compiler.
2002# The same as in boehm-gc and libstdc++. Have to borrow it from there.
2003# We must force CC to /not/ be precious variables; otherwise
2004# the wrong, non-multilib-adjusted value will be used in multilibs.
2005# As a side effect, we have to subst CFLAGS ourselves.
6de9cd9a
DN
2006
2007
2008
6de9cd9a
DN
2009ac_ext=c
2010ac_cpp='$CPP $CPPFLAGS'
2011ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2012ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2013ac_compiler_gnu=$ac_cv_c_compiler_gnu
2014if test -n "$ac_tool_prefix"; then
2015 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2016set dummy ${ac_tool_prefix}gcc; ac_word=$2
2017echo "$as_me:$LINENO: checking for $ac_word" >&5
2018echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2019if test "${ac_cv_prog_CC+set}" = set; then
2020 echo $ECHO_N "(cached) $ECHO_C" >&6
2021else
2022 if test -n "$CC"; then
2023 ac_cv_prog_CC="$CC" # Let the user override the test.
2024else
2025as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2026for as_dir in $PATH
2027do
2028 IFS=$as_save_IFS
2029 test -z "$as_dir" && as_dir=.
2030 for ac_exec_ext in '' $ac_executable_extensions; do
2031 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2032 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2033 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2034 break 2
2035 fi
2036done
2037done
2038
2039fi
2040fi
2041CC=$ac_cv_prog_CC
2042if test -n "$CC"; then
2043 echo "$as_me:$LINENO: result: $CC" >&5
2044echo "${ECHO_T}$CC" >&6
2045else
2046 echo "$as_me:$LINENO: result: no" >&5
2047echo "${ECHO_T}no" >&6
2048fi
2049
2050fi
2051if test -z "$ac_cv_prog_CC"; then
2052 ac_ct_CC=$CC
2053 # Extract the first word of "gcc", so it can be a program name with args.
2054set dummy gcc; ac_word=$2
2055echo "$as_me:$LINENO: checking for $ac_word" >&5
2056echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2057if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2058 echo $ECHO_N "(cached) $ECHO_C" >&6
2059else
2060 if test -n "$ac_ct_CC"; then
2061 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2062else
2063as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2064for as_dir in $PATH
2065do
2066 IFS=$as_save_IFS
2067 test -z "$as_dir" && as_dir=.
2068 for ac_exec_ext in '' $ac_executable_extensions; do
2069 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2070 ac_cv_prog_ac_ct_CC="gcc"
2071 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2072 break 2
2073 fi
2074done
2075done
2076
2077fi
2078fi
2079ac_ct_CC=$ac_cv_prog_ac_ct_CC
2080if test -n "$ac_ct_CC"; then
2081 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2082echo "${ECHO_T}$ac_ct_CC" >&6
2083else
2084 echo "$as_me:$LINENO: result: no" >&5
2085echo "${ECHO_T}no" >&6
2086fi
2087
2088 CC=$ac_ct_CC
2089else
2090 CC="$ac_cv_prog_CC"
2091fi
2092
2093if test -z "$CC"; then
2094 if test -n "$ac_tool_prefix"; then
2095 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2096set dummy ${ac_tool_prefix}cc; ac_word=$2
2097echo "$as_me:$LINENO: checking for $ac_word" >&5
2098echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2099if test "${ac_cv_prog_CC+set}" = set; then
2100 echo $ECHO_N "(cached) $ECHO_C" >&6
2101else
2102 if test -n "$CC"; then
2103 ac_cv_prog_CC="$CC" # Let the user override the test.
2104else
2105as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2106for as_dir in $PATH
2107do
2108 IFS=$as_save_IFS
2109 test -z "$as_dir" && as_dir=.
2110 for ac_exec_ext in '' $ac_executable_extensions; do
2111 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2112 ac_cv_prog_CC="${ac_tool_prefix}cc"
2113 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2114 break 2
2115 fi
2116done
2117done
2118
2119fi
2120fi
2121CC=$ac_cv_prog_CC
2122if test -n "$CC"; then
2123 echo "$as_me:$LINENO: result: $CC" >&5
2124echo "${ECHO_T}$CC" >&6
2125else
2126 echo "$as_me:$LINENO: result: no" >&5
2127echo "${ECHO_T}no" >&6
2128fi
2129
2130fi
2131if test -z "$ac_cv_prog_CC"; then
2132 ac_ct_CC=$CC
2133 # Extract the first word of "cc", so it can be a program name with args.
2134set dummy cc; ac_word=$2
2135echo "$as_me:$LINENO: checking for $ac_word" >&5
2136echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2137if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2138 echo $ECHO_N "(cached) $ECHO_C" >&6
2139else
2140 if test -n "$ac_ct_CC"; then
2141 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2142else
2143as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2144for as_dir in $PATH
2145do
2146 IFS=$as_save_IFS
2147 test -z "$as_dir" && as_dir=.
2148 for ac_exec_ext in '' $ac_executable_extensions; do
2149 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2150 ac_cv_prog_ac_ct_CC="cc"
2151 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2152 break 2
2153 fi
2154done
2155done
2156
2157fi
2158fi
2159ac_ct_CC=$ac_cv_prog_ac_ct_CC
2160if test -n "$ac_ct_CC"; then
2161 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2162echo "${ECHO_T}$ac_ct_CC" >&6
2163else
2164 echo "$as_me:$LINENO: result: no" >&5
2165echo "${ECHO_T}no" >&6
2166fi
2167
2168 CC=$ac_ct_CC
2169else
2170 CC="$ac_cv_prog_CC"
2171fi
2172
2173fi
2174if test -z "$CC"; then
2175 # Extract the first word of "cc", so it can be a program name with args.
2176set dummy cc; ac_word=$2
2177echo "$as_me:$LINENO: checking for $ac_word" >&5
2178echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2179if test "${ac_cv_prog_CC+set}" = set; then
2180 echo $ECHO_N "(cached) $ECHO_C" >&6
2181else
2182 if test -n "$CC"; then
2183 ac_cv_prog_CC="$CC" # Let the user override the test.
2184else
2185 ac_prog_rejected=no
2186as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2187for as_dir in $PATH
2188do
2189 IFS=$as_save_IFS
2190 test -z "$as_dir" && as_dir=.
2191 for ac_exec_ext in '' $ac_executable_extensions; do
2192 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2193 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2194 ac_prog_rejected=yes
2195 continue
2196 fi
2197 ac_cv_prog_CC="cc"
2198 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2199 break 2
2200 fi
2201done
2202done
2203
2204if test $ac_prog_rejected = yes; then
2205 # We found a bogon in the path, so make sure we never use it.
2206 set dummy $ac_cv_prog_CC
2207 shift
2208 if test $# != 0; then
2209 # We chose a different compiler from the bogus one.
2210 # However, it has the same basename, so the bogon will be chosen
2211 # first if we set CC to just the basename; use the full file name.
2212 shift
2213 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2214 fi
2215fi
2216fi
2217fi
2218CC=$ac_cv_prog_CC
2219if test -n "$CC"; then
2220 echo "$as_me:$LINENO: result: $CC" >&5
2221echo "${ECHO_T}$CC" >&6
2222else
2223 echo "$as_me:$LINENO: result: no" >&5
2224echo "${ECHO_T}no" >&6
2225fi
2226
2227fi
2228if test -z "$CC"; then
2229 if test -n "$ac_tool_prefix"; then
2230 for ac_prog in cl
2231 do
2232 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2233set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2234echo "$as_me:$LINENO: checking for $ac_word" >&5
2235echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2236if test "${ac_cv_prog_CC+set}" = set; then
2237 echo $ECHO_N "(cached) $ECHO_C" >&6
2238else
2239 if test -n "$CC"; then
2240 ac_cv_prog_CC="$CC" # Let the user override the test.
2241else
2242as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2243for as_dir in $PATH
2244do
2245 IFS=$as_save_IFS
2246 test -z "$as_dir" && as_dir=.
2247 for ac_exec_ext in '' $ac_executable_extensions; do
2248 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2249 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2250 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2251 break 2
2252 fi
2253done
2254done
2255
2256fi
2257fi
2258CC=$ac_cv_prog_CC
2259if test -n "$CC"; then
2260 echo "$as_me:$LINENO: result: $CC" >&5
2261echo "${ECHO_T}$CC" >&6
2262else
2263 echo "$as_me:$LINENO: result: no" >&5
2264echo "${ECHO_T}no" >&6
2265fi
2266
2267 test -n "$CC" && break
2268 done
2269fi
2270if test -z "$CC"; then
2271 ac_ct_CC=$CC
2272 for ac_prog in cl
2273do
2274 # Extract the first word of "$ac_prog", so it can be a program name with args.
2275set dummy $ac_prog; ac_word=$2
2276echo "$as_me:$LINENO: checking for $ac_word" >&5
2277echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2278if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2279 echo $ECHO_N "(cached) $ECHO_C" >&6
2280else
2281 if test -n "$ac_ct_CC"; then
2282 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2283else
2284as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2285for as_dir in $PATH
2286do
2287 IFS=$as_save_IFS
2288 test -z "$as_dir" && as_dir=.
2289 for ac_exec_ext in '' $ac_executable_extensions; do
2290 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2291 ac_cv_prog_ac_ct_CC="$ac_prog"
2292 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2293 break 2
2294 fi
2295done
2296done
2297
2298fi
2299fi
2300ac_ct_CC=$ac_cv_prog_ac_ct_CC
2301if test -n "$ac_ct_CC"; then
2302 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2303echo "${ECHO_T}$ac_ct_CC" >&6
2304else
2305 echo "$as_me:$LINENO: result: no" >&5
2306echo "${ECHO_T}no" >&6
2307fi
2308
2309 test -n "$ac_ct_CC" && break
2310done
2311
2312 CC=$ac_ct_CC
2313fi
2314
2315fi
2316
2317
2318test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2319See \`config.log' for more details." >&5
2320echo "$as_me: error: no acceptable C compiler found in \$PATH
2321See \`config.log' for more details." >&2;}
2322 { (exit 1); exit 1; }; }
2323
2324# Provide some information about the compiler.
2325echo "$as_me:$LINENO:" \
2326 "checking for C compiler version" >&5
2327ac_compiler=`set X $ac_compile; echo $2`
2328{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2329 (eval $ac_compiler --version </dev/null >&5) 2>&5
2330 ac_status=$?
2331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2332 (exit $ac_status); }
2333{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2334 (eval $ac_compiler -v </dev/null >&5) 2>&5
2335 ac_status=$?
2336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2337 (exit $ac_status); }
2338{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2339 (eval $ac_compiler -V </dev/null >&5) 2>&5
2340 ac_status=$?
2341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2342 (exit $ac_status); }
2343
2344cat >conftest.$ac_ext <<_ACEOF
2345/* confdefs.h. */
2346_ACEOF
2347cat confdefs.h >>conftest.$ac_ext
2348cat >>conftest.$ac_ext <<_ACEOF
2349/* end confdefs.h. */
2350
d49ec2d1
KC
2351int
2352main ()
2353{
2354
2355 ;
2356 return 0;
2357}
2358_ACEOF
2359# FIXME: Cleanup?
2360if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2361 (eval $ac_link) 2>&5
2362 ac_status=$?
2363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2364 (exit $ac_status); }; then
2365 gcc_no_link=no
2366else
2367 gcc_no_link=yes
2368fi
2369
2370if test x$gcc_no_link = xyes; then
2371 # Setting cross_compile will disable run tests; it will
2372 # also disable AC_CHECK_FILE but that's generally
2373 # correct if we can't link.
2374 cross_compiling=yes
2375 EXEEXT=
2376else
2377 cat >conftest.$ac_ext <<_ACEOF
2378/* confdefs.h. */
2379_ACEOF
2380cat confdefs.h >>conftest.$ac_ext
2381cat >>conftest.$ac_ext <<_ACEOF
2382/* end confdefs.h. */
2383
6de9cd9a
DN
2384int
2385main ()
2386{
2387
2388 ;
2389 return 0;
2390}
2391_ACEOF
2392ac_clean_files_save=$ac_clean_files
2393ac_clean_files="$ac_clean_files a.out a.exe b.out"
2394# Try to create an executable without -o first, disregard a.out.
2395# It will help us diagnose broken compilers, and finding out an intuition
2396# of exeext.
2397echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2398echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2399ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2400if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2401 (eval $ac_link_default) 2>&5
2402 ac_status=$?
2403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2404 (exit $ac_status); }; then
2405 # Find the output, starting from the most likely. This scheme is
2406# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2407# resort.
2408
2409# Be careful to initialize this variable, since it used to be cached.
2410# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2411ac_cv_exeext=
2412# b.out is created by i960 compilers.
2413for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2414do
2415 test -f "$ac_file" || continue
2416 case $ac_file in
2417 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2418 ;;
2419 conftest.$ac_ext )
2420 # This is the source file.
2421 ;;
2422 [ab].out )
2423 # We found the default executable, but exeext='' is most
2424 # certainly right.
2425 break;;
2426 *.* )
2427 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2428 # FIXME: I believe we export ac_cv_exeext for Libtool,
2429 # but it would be cool to find out if it's true. Does anybody
2430 # maintain Libtool? --akim.
2431 export ac_cv_exeext
2432 break;;
2433 * )
2434 break;;
2435 esac
2436done
2437else
2438 echo "$as_me: failed program was:" >&5
2439sed 's/^/| /' conftest.$ac_ext >&5
2440
2441{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2442See \`config.log' for more details." >&5
2443echo "$as_me: error: C compiler cannot create executables
2444See \`config.log' for more details." >&2;}
2445 { (exit 77); exit 77; }; }
2446fi
2447
2448ac_exeext=$ac_cv_exeext
2449echo "$as_me:$LINENO: result: $ac_file" >&5
2450echo "${ECHO_T}$ac_file" >&6
2451
2452# Check the compiler produces executables we can run. If not, either
2453# the compiler is broken, or we cross compile.
2454echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2455echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2456# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2457# If not cross compiling, check that we can run a simple program.
2458if test "$cross_compiling" != yes; then
2459 if { ac_try='./$ac_file'
2460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2461 (eval $ac_try) 2>&5
2462 ac_status=$?
2463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2464 (exit $ac_status); }; }; then
2465 cross_compiling=no
2466 else
2467 if test "$cross_compiling" = maybe; then
2468 cross_compiling=yes
2469 else
2470 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2471If you meant to cross compile, use \`--host'.
2472See \`config.log' for more details." >&5
2473echo "$as_me: error: cannot run C compiled programs.
2474If you meant to cross compile, use \`--host'.
2475See \`config.log' for more details." >&2;}
2476 { (exit 1); exit 1; }; }
2477 fi
2478 fi
2479fi
2480echo "$as_me:$LINENO: result: yes" >&5
2481echo "${ECHO_T}yes" >&6
2482
2483rm -f a.out a.exe conftest$ac_cv_exeext b.out
2484ac_clean_files=$ac_clean_files_save
2485# Check the compiler produces executables we can run. If not, either
2486# the compiler is broken, or we cross compile.
2487echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2488echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2489echo "$as_me:$LINENO: result: $cross_compiling" >&5
2490echo "${ECHO_T}$cross_compiling" >&6
2491
2492echo "$as_me:$LINENO: checking for suffix of executables" >&5
2493echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2494if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2495 (eval $ac_link) 2>&5
2496 ac_status=$?
2497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2498 (exit $ac_status); }; then
2499 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2500# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2501# work properly (i.e., refer to `conftest.exe'), while it won't with
2502# `rm'.
2503for ac_file in conftest.exe conftest conftest.*; do
2504 test -f "$ac_file" || continue
2505 case $ac_file in
2506 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2507 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2508 export ac_cv_exeext
2509 break;;
2510 * ) break;;
2511 esac
2512done
2513else
2514 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2515See \`config.log' for more details." >&5
2516echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2517See \`config.log' for more details." >&2;}
2518 { (exit 1); exit 1; }; }
2519fi
2520
2521rm -f conftest$ac_cv_exeext
2522echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2523echo "${ECHO_T}$ac_cv_exeext" >&6
2524
2525rm -f conftest.$ac_ext
2526EXEEXT=$ac_cv_exeext
2527ac_exeext=$EXEEXT
d49ec2d1 2528fi
6de9cd9a
DN
2529echo "$as_me:$LINENO: checking for suffix of object files" >&5
2530echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2531if test "${ac_cv_objext+set}" = set; then
2532 echo $ECHO_N "(cached) $ECHO_C" >&6
2533else
2534 cat >conftest.$ac_ext <<_ACEOF
2535/* confdefs.h. */
2536_ACEOF
2537cat confdefs.h >>conftest.$ac_ext
2538cat >>conftest.$ac_ext <<_ACEOF
2539/* end confdefs.h. */
2540
2541int
2542main ()
2543{
2544
2545 ;
2546 return 0;
2547}
2548_ACEOF
2549rm -f conftest.o conftest.obj
2550if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2551 (eval $ac_compile) 2>&5
2552 ac_status=$?
2553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2554 (exit $ac_status); }; then
2555 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2556 case $ac_file in
2557 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2558 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2559 break;;
2560 esac
2561done
2562else
2563 echo "$as_me: failed program was:" >&5
2564sed 's/^/| /' conftest.$ac_ext >&5
2565
2566{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2567See \`config.log' for more details." >&5
2568echo "$as_me: error: cannot compute suffix of object files: cannot compile
2569See \`config.log' for more details." >&2;}
2570 { (exit 1); exit 1; }; }
2571fi
2572
2573rm -f conftest.$ac_cv_objext conftest.$ac_ext
2574fi
2575echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2576echo "${ECHO_T}$ac_cv_objext" >&6
2577OBJEXT=$ac_cv_objext
2578ac_objext=$OBJEXT
2579echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2580echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2581if test "${ac_cv_c_compiler_gnu+set}" = set; then
2582 echo $ECHO_N "(cached) $ECHO_C" >&6
2583else
2584 cat >conftest.$ac_ext <<_ACEOF
2585/* confdefs.h. */
2586_ACEOF
2587cat confdefs.h >>conftest.$ac_ext
2588cat >>conftest.$ac_ext <<_ACEOF
2589/* end confdefs.h. */
2590
2591int
2592main ()
2593{
2594#ifndef __GNUC__
2595 choke me
2596#endif
2597
2598 ;
2599 return 0;
2600}
2601_ACEOF
2602rm -f conftest.$ac_objext
2603if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2604 (eval $ac_compile) 2>conftest.er1
2605 ac_status=$?
2606 grep -v '^ *+' conftest.er1 >conftest.err
2607 rm -f conftest.er1
2608 cat conftest.err >&5
2609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2610 (exit $ac_status); } &&
df65f093 2611 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6de9cd9a
DN
2612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2613 (eval $ac_try) 2>&5
2614 ac_status=$?
2615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2616 (exit $ac_status); }; } &&
2617 { ac_try='test -s conftest.$ac_objext'
2618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2619 (eval $ac_try) 2>&5
2620 ac_status=$?
2621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2622 (exit $ac_status); }; }; then
2623 ac_compiler_gnu=yes
2624else
2625 echo "$as_me: failed program was:" >&5
2626sed 's/^/| /' conftest.$ac_ext >&5
2627
2628ac_compiler_gnu=no
2629fi
2630rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2631ac_cv_c_compiler_gnu=$ac_compiler_gnu
2632
2633fi
2634echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2635echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2636GCC=`test $ac_compiler_gnu = yes && echo yes`
2637ac_test_CFLAGS=${CFLAGS+set}
2638ac_save_CFLAGS=$CFLAGS
2639CFLAGS="-g"
2640echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2641echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2642if test "${ac_cv_prog_cc_g+set}" = set; then
2643 echo $ECHO_N "(cached) $ECHO_C" >&6
2644else
2645 cat >conftest.$ac_ext <<_ACEOF
2646/* confdefs.h. */
2647_ACEOF
2648cat confdefs.h >>conftest.$ac_ext
2649cat >>conftest.$ac_ext <<_ACEOF
2650/* end confdefs.h. */
2651
2652int
2653main ()
2654{
2655
2656 ;
2657 return 0;
2658}
2659_ACEOF
2660rm -f conftest.$ac_objext
2661if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2662 (eval $ac_compile) 2>conftest.er1
2663 ac_status=$?
2664 grep -v '^ *+' conftest.er1 >conftest.err
2665 rm -f conftest.er1
2666 cat conftest.err >&5
2667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2668 (exit $ac_status); } &&
df65f093 2669 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6de9cd9a
DN
2670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2671 (eval $ac_try) 2>&5
2672 ac_status=$?
2673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2674 (exit $ac_status); }; } &&
2675 { ac_try='test -s conftest.$ac_objext'
2676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2677 (eval $ac_try) 2>&5
2678 ac_status=$?
2679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2680 (exit $ac_status); }; }; then
2681 ac_cv_prog_cc_g=yes
2682else
2683 echo "$as_me: failed program was:" >&5
2684sed 's/^/| /' conftest.$ac_ext >&5
2685
2686ac_cv_prog_cc_g=no
2687fi
2688rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2689fi
2690echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2691echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2692if test "$ac_test_CFLAGS" = set; then
2693 CFLAGS=$ac_save_CFLAGS
2694elif test $ac_cv_prog_cc_g = yes; then
2695 if test "$GCC" = yes; then
2696 CFLAGS="-g -O2"
2697 else
2698 CFLAGS="-g"
2699 fi
2700else
2701 if test "$GCC" = yes; then
2702 CFLAGS="-O2"
2703 else
2704 CFLAGS=
2705 fi
2706fi
2707echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2708echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2709if test "${ac_cv_prog_cc_stdc+set}" = set; then
2710 echo $ECHO_N "(cached) $ECHO_C" >&6
2711else
2712 ac_cv_prog_cc_stdc=no
2713ac_save_CC=$CC
2714cat >conftest.$ac_ext <<_ACEOF
2715/* confdefs.h. */
2716_ACEOF
2717cat confdefs.h >>conftest.$ac_ext
2718cat >>conftest.$ac_ext <<_ACEOF
2719/* end confdefs.h. */
2720#include <stdarg.h>
2721#include <stdio.h>
2722#include <sys/types.h>
2723#include <sys/stat.h>
2724/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2725struct buf { int x; };
2726FILE * (*rcsopen) (struct buf *, struct stat *, int);
2727static char *e (p, i)
2728 char **p;
2729 int i;
2730{
2731 return p[i];
2732}
2733static char *f (char * (*g) (char **, int), char **p, ...)
2734{
2735 char *s;
2736 va_list v;
2737 va_start (v,p);
2738 s = g (p, va_arg (v,int));
2739 va_end (v);
2740 return s;
2741}
2742
2743/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2744 function prototypes and stuff, but not '\xHH' hex character constants.
2745 These don't provoke an error unfortunately, instead are silently treated
2746 as 'x'. The following induces an error, until -std1 is added to get
2747 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2748 array size at least. It's necessary to write '\x00'==0 to get something
2749 that's true only with -std1. */
2750int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2751
2752int test (int i, double x);
2753struct s1 {int (*f) (int a);};
2754struct s2 {int (*f) (double a);};
2755int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2756int argc;
2757char **argv;
2758int
2759main ()
2760{
2761return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2762 ;
2763 return 0;
2764}
2765_ACEOF
2766# Don't try gcc -ansi; that turns off useful extensions and
2767# breaks some systems' header files.
2768# AIX -qlanglvl=ansi
2769# Ultrix and OSF/1 -std1
2770# HP-UX 10.20 and later -Ae
2771# HP-UX older versions -Aa -D_HPUX_SOURCE
2772# SVR4 -Xc -D__EXTENSIONS__
2773for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2774do
2775 CC="$ac_save_CC $ac_arg"
2776 rm -f conftest.$ac_objext
2777if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2778 (eval $ac_compile) 2>conftest.er1
2779 ac_status=$?
2780 grep -v '^ *+' conftest.er1 >conftest.err
2781 rm -f conftest.er1
2782 cat conftest.err >&5
2783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2784 (exit $ac_status); } &&
df65f093 2785 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6de9cd9a
DN
2786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2787 (eval $ac_try) 2>&5
2788 ac_status=$?
2789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2790 (exit $ac_status); }; } &&
2791 { ac_try='test -s conftest.$ac_objext'
2792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2793 (eval $ac_try) 2>&5
2794 ac_status=$?
2795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2796 (exit $ac_status); }; }; then
2797 ac_cv_prog_cc_stdc=$ac_arg
2798break
2799else
2800 echo "$as_me: failed program was:" >&5
2801sed 's/^/| /' conftest.$ac_ext >&5
2802
2803fi
2804rm -f conftest.err conftest.$ac_objext
2805done
2806rm -f conftest.$ac_ext conftest.$ac_objext
2807CC=$ac_save_CC
2808
2809fi
2810
2811case "x$ac_cv_prog_cc_stdc" in
2812 x|xno)
2813 echo "$as_me:$LINENO: result: none needed" >&5
2814echo "${ECHO_T}none needed" >&6 ;;
2815 *)
2816 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2817echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2818 CC="$CC $ac_cv_prog_cc_stdc" ;;
2819esac
2820
2821# Some people use a C++ compiler to compile C. Since we use `exit',
2822# in C++ we need to declare it. In case someone uses the same compiler
2823# for both compiling C and C++ we need to have the C++ compiler decide
2824# the declaration of exit, since it's the most demanding environment.
2825cat >conftest.$ac_ext <<_ACEOF
2826#ifndef __cplusplus
2827 choke me
2828#endif
2829_ACEOF
2830rm -f conftest.$ac_objext
2831if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2832 (eval $ac_compile) 2>conftest.er1
2833 ac_status=$?
2834 grep -v '^ *+' conftest.er1 >conftest.err
2835 rm -f conftest.er1
2836 cat conftest.err >&5
2837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2838 (exit $ac_status); } &&
df65f093 2839 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6de9cd9a
DN
2840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2841 (eval $ac_try) 2>&5
2842 ac_status=$?
2843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2844 (exit $ac_status); }; } &&
2845 { ac_try='test -s conftest.$ac_objext'
2846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2847 (eval $ac_try) 2>&5
2848 ac_status=$?
2849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2850 (exit $ac_status); }; }; then
2851 for ac_declaration in \
2852 '' \
2853 'extern "C" void std::exit (int) throw (); using std::exit;' \
2854 'extern "C" void std::exit (int); using std::exit;' \
2855 'extern "C" void exit (int) throw ();' \
2856 'extern "C" void exit (int);' \
2857 'void exit (int);'
2858do
2859 cat >conftest.$ac_ext <<_ACEOF
2860/* confdefs.h. */
2861_ACEOF
2862cat confdefs.h >>conftest.$ac_ext
2863cat >>conftest.$ac_ext <<_ACEOF
2864/* end confdefs.h. */
2865$ac_declaration
2866#include <stdlib.h>
2867int
2868main ()
2869{
2870exit (42);
2871 ;
2872 return 0;
2873}
2874_ACEOF
2875rm -f conftest.$ac_objext
2876if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2877 (eval $ac_compile) 2>conftest.er1
2878 ac_status=$?
2879 grep -v '^ *+' conftest.er1 >conftest.err
2880 rm -f conftest.er1
2881 cat conftest.err >&5
2882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2883 (exit $ac_status); } &&
df65f093 2884 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6de9cd9a
DN
2885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2886 (eval $ac_try) 2>&5
2887 ac_status=$?
2888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2889 (exit $ac_status); }; } &&
2890 { ac_try='test -s conftest.$ac_objext'
2891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2892 (eval $ac_try) 2>&5
2893 ac_status=$?
2894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2895 (exit $ac_status); }; }; then
2896 :
2897else
2898 echo "$as_me: failed program was:" >&5
2899sed 's/^/| /' conftest.$ac_ext >&5
2900
2901continue
2902fi
2903rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2904 cat >conftest.$ac_ext <<_ACEOF
2905/* confdefs.h. */
2906_ACEOF
2907cat confdefs.h >>conftest.$ac_ext
2908cat >>conftest.$ac_ext <<_ACEOF
2909/* end confdefs.h. */
2910$ac_declaration
2911int
2912main ()
2913{
2914exit (42);
2915 ;
2916 return 0;
2917}
2918_ACEOF
2919rm -f conftest.$ac_objext
2920if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2921 (eval $ac_compile) 2>conftest.er1
2922 ac_status=$?
2923 grep -v '^ *+' conftest.er1 >conftest.err
2924 rm -f conftest.er1
2925 cat conftest.err >&5
2926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2927 (exit $ac_status); } &&
df65f093 2928 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6de9cd9a
DN
2929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2930 (eval $ac_try) 2>&5
2931 ac_status=$?
2932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2933 (exit $ac_status); }; } &&
2934 { ac_try='test -s conftest.$ac_objext'
2935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2936 (eval $ac_try) 2>&5
2937 ac_status=$?
2938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2939 (exit $ac_status); }; }; then
2940 break
2941else
2942 echo "$as_me: failed program was:" >&5
2943sed 's/^/| /' conftest.$ac_ext >&5
2944
2945fi
2946rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2947done
2948rm -f conftest*
2949if test -n "$ac_declaration"; then
2950 echo '#ifdef __cplusplus' >>confdefs.h
2951 echo $ac_declaration >>confdefs.h
2952 echo '#endif' >>confdefs.h
2953fi
2954
2955else
2956 echo "$as_me: failed program was:" >&5
2957sed 's/^/| /' conftest.$ac_ext >&5
2958
2959fi
2960rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2961ac_ext=c
2962ac_cpp='$CPP $CPPFLAGS'
2963ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2964ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2965ac_compiler_gnu=$ac_cv_c_compiler_gnu
6de9cd9a 2966
6de9cd9a 2967
6de9cd9a 2968
6de9cd9a
DN
2969
2970
96b8a615
AJ
2971# Add -Wall if we are using GCC.
2972if test "x$GCC" = "xyes"; then
2973 CFLAGS="$CFLAGS -Wall"
6de9cd9a
DN
2974fi
2975
96b8a615
AJ
2976# Find other programs we need.
2977if test -n "$ac_tool_prefix"; then
2978 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
2979set dummy ${ac_tool_prefix}as; ac_word=$2
2980echo "$as_me:$LINENO: checking for $ac_word" >&5
2981echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2982if test "${ac_cv_prog_AS+set}" = set; then
6de9cd9a
DN
2983 echo $ECHO_N "(cached) $ECHO_C" >&6
2984else
96b8a615
AJ
2985 if test -n "$AS"; then
2986 ac_cv_prog_AS="$AS" # Let the user override the test.
2987else
2988as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2989for as_dir in $PATH
2990do
2991 IFS=$as_save_IFS
2992 test -z "$as_dir" && as_dir=.
2993 for ac_exec_ext in '' $ac_executable_extensions; do
2994 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2995 ac_cv_prog_AS="${ac_tool_prefix}as"
2996 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2997 break 2
6de9cd9a 2998 fi
96b8a615
AJ
2999done
3000done
6de9cd9a 3001
96b8a615
AJ
3002fi
3003fi
3004AS=$ac_cv_prog_AS
3005if test -n "$AS"; then
3006 echo "$as_me:$LINENO: result: $AS" >&5
3007echo "${ECHO_T}$AS" >&6
6de9cd9a 3008else
96b8a615
AJ
3009 echo "$as_me:$LINENO: result: no" >&5
3010echo "${ECHO_T}no" >&6
6de9cd9a
DN
3011fi
3012
3013fi
96b8a615
AJ
3014if test -z "$ac_cv_prog_AS"; then
3015 ac_ct_AS=$AS
3016 # Extract the first word of "as", so it can be a program name with args.
3017set dummy as; ac_word=$2
3018echo "$as_me:$LINENO: checking for $ac_word" >&5
3019echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3020if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
3021 echo $ECHO_N "(cached) $ECHO_C" >&6
3022else
3023 if test -n "$ac_ct_AS"; then
3024 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
3025else
3026as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3027for as_dir in $PATH
3028do
3029 IFS=$as_save_IFS
3030 test -z "$as_dir" && as_dir=.
3031 for ac_exec_ext in '' $ac_executable_extensions; do
3032 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3033 ac_cv_prog_ac_ct_AS="as"
3034 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3035 break 2
3036 fi
3037done
3038done
6de9cd9a 3039
96b8a615
AJ
3040fi
3041fi
3042ac_ct_AS=$ac_cv_prog_ac_ct_AS
3043if test -n "$ac_ct_AS"; then
3044 echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
3045echo "${ECHO_T}$ac_ct_AS" >&6
6de9cd9a 3046else
96b8a615
AJ
3047 echo "$as_me:$LINENO: result: no" >&5
3048echo "${ECHO_T}no" >&6
6de9cd9a
DN
3049fi
3050
96b8a615
AJ
3051 AS=$ac_ct_AS
3052else
3053 AS="$ac_cv_prog_AS"
6de9cd9a
DN
3054fi
3055
6de9cd9a 3056if test -n "$ac_tool_prefix"; then
96b8a615
AJ
3057 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3058set dummy ${ac_tool_prefix}ar; ac_word=$2
6de9cd9a
DN
3059echo "$as_me:$LINENO: checking for $ac_word" >&5
3060echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
96b8a615 3061if test "${ac_cv_prog_AR+set}" = set; then
6de9cd9a
DN
3062 echo $ECHO_N "(cached) $ECHO_C" >&6
3063else
96b8a615
AJ
3064 if test -n "$AR"; then
3065 ac_cv_prog_AR="$AR" # Let the user override the test.
6de9cd9a
DN
3066else
3067as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3068for as_dir in $PATH
3069do
3070 IFS=$as_save_IFS
3071 test -z "$as_dir" && as_dir=.
3072 for ac_exec_ext in '' $ac_executable_extensions; do
3073 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
96b8a615 3074 ac_cv_prog_AR="${ac_tool_prefix}ar"
6de9cd9a
DN
3075 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3076 break 2
3077 fi
3078done
3079done
3080
3081fi
3082fi
96b8a615
AJ
3083AR=$ac_cv_prog_AR
3084if test -n "$AR"; then
3085 echo "$as_me:$LINENO: result: $AR" >&5
3086echo "${ECHO_T}$AR" >&6
6de9cd9a
DN
3087else
3088 echo "$as_me:$LINENO: result: no" >&5
3089echo "${ECHO_T}no" >&6
3090fi
3091
6de9cd9a 3092fi
96b8a615
AJ
3093if test -z "$ac_cv_prog_AR"; then
3094 ac_ct_AR=$AR
3095 # Extract the first word of "ar", so it can be a program name with args.
3096set dummy ar; ac_word=$2
6de9cd9a
DN
3097echo "$as_me:$LINENO: checking for $ac_word" >&5
3098echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
96b8a615 3099if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6de9cd9a
DN
3100 echo $ECHO_N "(cached) $ECHO_C" >&6
3101else
96b8a615
AJ
3102 if test -n "$ac_ct_AR"; then
3103 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6de9cd9a
DN
3104else
3105as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3106for as_dir in $PATH
3107do
3108 IFS=$as_save_IFS
3109 test -z "$as_dir" && as_dir=.
3110 for ac_exec_ext in '' $ac_executable_extensions; do
3111 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
96b8a615 3112 ac_cv_prog_ac_ct_AR="ar"
6de9cd9a
DN
3113 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3114 break 2
3115 fi
3116done
3117done
3118
3119fi
3120fi
96b8a615
AJ
3121ac_ct_AR=$ac_cv_prog_ac_ct_AR
3122if test -n "$ac_ct_AR"; then
3123 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
3124echo "${ECHO_T}$ac_ct_AR" >&6
6de9cd9a
DN
3125else
3126 echo "$as_me:$LINENO: result: no" >&5
3127echo "${ECHO_T}no" >&6
3128fi
3129
96b8a615
AJ
3130 AR=$ac_ct_AR
3131else
3132 AR="$ac_cv_prog_AR"
6de9cd9a
DN
3133fi
3134
96b8a615
AJ
3135if test -n "$ac_tool_prefix"; then
3136 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3137set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3138echo "$as_me:$LINENO: checking for $ac_word" >&5
3139echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3140if test "${ac_cv_prog_RANLIB+set}" = set; then
6de9cd9a
DN
3141 echo $ECHO_N "(cached) $ECHO_C" >&6
3142else
96b8a615
AJ
3143 if test -n "$RANLIB"; then
3144 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6de9cd9a 3145else
96b8a615
AJ
3146as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3147for as_dir in $PATH
3148do
3149 IFS=$as_save_IFS
3150 test -z "$as_dir" && as_dir=.
3151 for ac_exec_ext in '' $ac_executable_extensions; do
3152 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3153 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3154 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3155 break 2
3156 fi
3157done
3158done
6de9cd9a 3159
6de9cd9a 3160fi
96b8a615
AJ
3161fi
3162RANLIB=$ac_cv_prog_RANLIB
3163if test -n "$RANLIB"; then
3164 echo "$as_me:$LINENO: result: $RANLIB" >&5
3165echo "${ECHO_T}$RANLIB" >&6
3166else
3167 echo "$as_me:$LINENO: result: no" >&5
3168echo "${ECHO_T}no" >&6
3169fi
6de9cd9a
DN
3170
3171fi
96b8a615
AJ
3172if test -z "$ac_cv_prog_RANLIB"; then
3173 ac_ct_RANLIB=$RANLIB
3174 # Extract the first word of "ranlib", so it can be a program name with args.
3175set dummy ranlib; ac_word=$2
3176echo "$as_me:$LINENO: checking for $ac_word" >&5
3177echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3178if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6de9cd9a
DN
3179 echo $ECHO_N "(cached) $ECHO_C" >&6
3180else
96b8a615
AJ
3181 if test -n "$ac_ct_RANLIB"; then
3182 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6de9cd9a 3183else
96b8a615
AJ
3184as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3185for as_dir in $PATH
3186do
3187 IFS=$as_save_IFS
3188 test -z "$as_dir" && as_dir=.
3189 for ac_exec_ext in '' $ac_executable_extensions; do
3190 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3191 ac_cv_prog_ac_ct_RANLIB="ranlib"
3192 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3193 break 2
3194 fi
3195done
3196done
6de9cd9a 3197
96b8a615 3198 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB="ranlib-not-found-in-path-error"
6de9cd9a 3199fi
6de9cd9a 3200fi
96b8a615
AJ
3201ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3202if test -n "$ac_ct_RANLIB"; then
3203 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3204echo "${ECHO_T}$ac_ct_RANLIB" >&6
6de9cd9a 3205else
96b8a615
AJ
3206 echo "$as_me:$LINENO: result: no" >&5
3207echo "${ECHO_T}no" >&6
6de9cd9a
DN
3208fi
3209
96b8a615
AJ
3210 RANLIB=$ac_ct_RANLIB
3211else
3212 RANLIB="$ac_cv_prog_RANLIB"
6de9cd9a 3213fi
96b8a615
AJ
3214
3215echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3216echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
3217set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
3218if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
6de9cd9a
DN
3219 echo $ECHO_N "(cached) $ECHO_C" >&6
3220else
96b8a615
AJ
3221 cat >conftest.make <<\_ACEOF
3222all:
3223 @echo 'ac_maketemp="$(MAKE)"'
6de9cd9a 3224_ACEOF
96b8a615
AJ
3225# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3226eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
3227if test -n "$ac_maketemp"; then
3228 eval ac_cv_prog_make_${ac_make}_set=yes
6de9cd9a 3229else
96b8a615 3230 eval ac_cv_prog_make_${ac_make}_set=no
6de9cd9a 3231fi
96b8a615
AJ
3232rm -f conftest.make
3233fi
3234if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3235 echo "$as_me:$LINENO: result: yes" >&5
3236echo "${ECHO_T}yes" >&6
3237 SET_MAKE=
6de9cd9a 3238else
96b8a615
AJ
3239 echo "$as_me:$LINENO: result: no" >&5
3240echo "${ECHO_T}no" >&6
3241 SET_MAKE="MAKE=${MAKE-make}"
6de9cd9a 3242fi
6de9cd9a 3243
96b8a615
AJ
3244# Find a good install program. We prefer a C program (faster),
3245# so one script is as good as another. But avoid the broken or
3246# incompatible versions:
3247# SysV /etc/install, /usr/sbin/install
3248# SunOS /usr/etc/install
3249# IRIX /sbin/install
3250# AIX /bin/install
3251# AmigaOS /C/install, which installs bootblocks on floppy discs
3252# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3253# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3254# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3255# OS/2's system install, which has a completely different semantic
3256# ./install, which can be erroneously created by make from ./install.sh.
3257echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3258echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3259if test -z "$INSTALL"; then
3260if test "${ac_cv_path_install+set}" = set; then
3261 echo $ECHO_N "(cached) $ECHO_C" >&6
6de9cd9a 3262else
96b8a615
AJ
3263 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3264for as_dir in $PATH
3265do
3266 IFS=$as_save_IFS
3267 test -z "$as_dir" && as_dir=.
3268 # Account for people who put trailing slashes in PATH elements.
3269case $as_dir/ in
3270 ./ | .// | /cC/* | \
3271 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3272 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3273 /usr/ucb/* ) ;;
3274 *)
3275 # OSF1 and SCO ODT 3.0 have their own names for install.
3276 # Don't use installbsd from OSF since it installs stuff as root
3277 # by default.
3278 for ac_prog in ginstall scoinst install; do
3279 for ac_exec_ext in '' $ac_executable_extensions; do
3280 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3281 if test $ac_prog = install &&
3282 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3283 # AIX install. It has an incompatible calling convention.
3284 :
3285 elif test $ac_prog = install &&
3286 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3287 # program-specific install script used by HP pwplus--don't use.
3288 :
3289 else
3290 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3291 break 3
3292 fi
3293 fi
3294 done
3295 done
3296 ;;
3297esac
6de9cd9a 3298done
6de9cd9a 3299
6de9cd9a
DN
3300
3301fi
96b8a615
AJ
3302 if test "${ac_cv_path_install+set}" = set; then
3303 INSTALL=$ac_cv_path_install
6de9cd9a 3304 else
96b8a615
AJ
3305 # As a last resort, use the slow shell script. We don't cache a
3306 # path for INSTALL within a source directory, because that will
3307 # break other packages using the cache if that directory is
3308 # removed, or if the path is relative.
3309 INSTALL=$ac_install_sh
6de9cd9a 3310 fi
6de9cd9a 3311fi
96b8a615
AJ
3312echo "$as_me:$LINENO: result: $INSTALL" >&5
3313echo "${ECHO_T}$INSTALL" >&6
6de9cd9a 3314
96b8a615
AJ
3315# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3316# It thinks the first close brace ends the variable substitution.
3317test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
6de9cd9a 3318
96b8a615 3319test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
6de9cd9a 3320
96b8a615 3321test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
6de9cd9a 3322
6de9cd9a 3323
96b8a615
AJ
3324# Configure libtool
3325#AC_MSG_NOTICE([====== Starting libtool configuration])
6de9cd9a 3326
96b8a615
AJ
3327# Check whether --enable-shared or --disable-shared was given.
3328if test "${enable_shared+set}" = set; then
3329 enableval="$enable_shared"
3330 p=${PACKAGE-default}
3331case $enableval in
3332yes) enable_shared=yes ;;
3333no) enable_shared=no ;;
3334*)
3335 enable_shared=no
3336 # Look at the argument we got. We use all the common list separators.
3337 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3338 for pkg in $enableval; do
3339 if test "X$pkg" = "X$p"; then
3340 enable_shared=yes
6de9cd9a 3341 fi
96b8a615
AJ
3342 done
3343 IFS="$ac_save_ifs"
3344 ;;
3345esac
6de9cd9a 3346else
96b8a615
AJ
3347 enable_shared=yes
3348fi;
3349# Check whether --enable-static or --disable-static was given.
3350if test "${enable_static+set}" = set; then
3351 enableval="$enable_static"
3352 p=${PACKAGE-default}
3353case $enableval in
3354yes) enable_static=yes ;;
3355no) enable_static=no ;;
3356*)
3357 enable_static=no
3358 # Look at the argument we got. We use all the common list separators.
3359 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3360 for pkg in $enableval; do
3361 if test "X$pkg" = "X$p"; then
3362 enable_static=yes
3363 fi
3364 done
3365 IFS="$ac_save_ifs"
3366 ;;
3367esac
3368else
3369 enable_static=yes
3370fi;
3371# Check whether --enable-fast-install or --disable-fast-install was given.
3372if test "${enable_fast_install+set}" = set; then
3373 enableval="$enable_fast_install"
3374 p=${PACKAGE-default}
3375case $enableval in
3376yes) enable_fast_install=yes ;;
3377no) enable_fast_install=no ;;
3378*)
3379 enable_fast_install=no
3380 # Look at the argument we got. We use all the common list separators.
3381 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3382 for pkg in $enableval; do
3383 if test "X$pkg" = "X$p"; then
3384 enable_fast_install=yes
3385 fi
3386 done
3387 IFS="$ac_save_ifs"
3388 ;;
3389esac
3390else
3391 enable_fast_install=yes
3392fi;
6de9cd9a 3393
96b8a615
AJ
3394# Check whether --with-gnu-ld or --without-gnu-ld was given.
3395if test "${with_gnu_ld+set}" = set; then
3396 withval="$with_gnu_ld"
3397 test "$withval" = no || with_gnu_ld=yes
3398else
3399 with_gnu_ld=no
3400fi;
3401ac_prog=ld
3402if test "$GCC" = yes; then
3403 # Check if gcc -print-prog-name=ld gives a path.
3404 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
3405echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
3406 case $host in
3407 *-*-mingw*)
3408 # gcc leaves a trailing carriage return which upsets mingw
3409 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3410 *)
3411 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3412 esac
3413 case $ac_prog in
3414 # Accept absolute paths.
3415 [\\/]* | [A-Za-z]:[\\/]*)
3416 re_direlt='/[^/][^/]*/\.\./'
3417 # Canonicalize the path of ld
3418 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
3419 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3420 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
3421 done
3422 test -z "$LD" && LD="$ac_prog"
3423 ;;
3424 "")
3425 # If it fails, then pretend we aren't using GCC.
3426 ac_prog=ld
3427 ;;
3428 *)
3429 # If it is relative, then search for the first ld in PATH.
3430 with_gnu_ld=unknown
3431 ;;
3432 esac
3433elif test "$with_gnu_ld" = yes; then
3434 echo "$as_me:$LINENO: checking for GNU ld" >&5
3435echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3436else
3437 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3438echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3439fi
3440if test "${lt_cv_path_LD+set}" = set; then
3441 echo $ECHO_N "(cached) $ECHO_C" >&6
3442else
3443 if test -z "$LD"; then
3444 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
3445 for ac_dir in $PATH; do
3446 test -z "$ac_dir" && ac_dir=.
3447 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3448 lt_cv_path_LD="$ac_dir/$ac_prog"
3449 # Check to see if the program is GNU ld. I'd rather use --version,
3450 # but apparently some GNU ld's only accept -v.
3451 # Break only if it was the GNU/non-GNU ld that we prefer.
3452 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
3453 test "$with_gnu_ld" != no && break
3454 else
3455 test "$with_gnu_ld" != yes && break
3456 fi
3457 fi
3458 done
3459 IFS="$ac_save_ifs"
3460else
3461 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3462fi
3463fi
3464
3465LD="$lt_cv_path_LD"
3466if test -n "$LD"; then
3467 echo "$as_me:$LINENO: result: $LD" >&5
3468echo "${ECHO_T}$LD" >&6
3469else
3470 echo "$as_me:$LINENO: result: no" >&5
3471echo "${ECHO_T}no" >&6
3472fi
3473test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3474echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3475 { (exit 1); exit 1; }; }
3476echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3477echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3478if test "${lt_cv_prog_gnu_ld+set}" = set; then
3479 echo $ECHO_N "(cached) $ECHO_C" >&6
3480else
3481 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3482if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
3483 lt_cv_prog_gnu_ld=yes
3484else
3485 lt_cv_prog_gnu_ld=no
3486fi
3487fi
3488echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3489echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3490with_gnu_ld=$lt_cv_prog_gnu_ld
3491
3492
3493echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3494echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3495if test "${lt_cv_ld_reload_flag+set}" = set; then
3496 echo $ECHO_N "(cached) $ECHO_C" >&6
3497else
3498 lt_cv_ld_reload_flag='-r'
3499fi
3500echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3501echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3502reload_flag=$lt_cv_ld_reload_flag
3503test -n "$reload_flag" && reload_flag=" $reload_flag"
3504
3505echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3506echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3507if test "${lt_cv_path_NM+set}" = set; then
3508 echo $ECHO_N "(cached) $ECHO_C" >&6
3509else
3510 if test -n "$NM"; then
3511 # Let the user override the test.
3512 lt_cv_path_NM="$NM"
3513else
3514 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
3515 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3516 test -z "$ac_dir" && ac_dir=.
3517 tmp_nm=$ac_dir/${ac_tool_prefix}nm
3518 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
3519 # Check to see if the nm accepts a BSD-compat flag.
3520 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3521 # nm: unknown option "B" ignored
3522 # Tru64's nm complains that /dev/null is an invalid object file
3523 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
3524 lt_cv_path_NM="$tmp_nm -B"
3525 break
3526 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
3527 lt_cv_path_NM="$tmp_nm -p"
3528 break
3529 else
3530 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3531 continue # so that we can try to find one that supports BSD flags
3532 fi
3533 fi
3534 done
3535 IFS="$ac_save_ifs"
3536 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3537fi
3538fi
3539
3540NM="$lt_cv_path_NM"
3541echo "$as_me:$LINENO: result: $NM" >&5
3542echo "${ECHO_T}$NM" >&6
3543
3544echo "$as_me:$LINENO: checking whether ln -s works" >&5
3545echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3546LN_S=$as_ln_s
3547if test "$LN_S" = "ln -s"; then
3548 echo "$as_me:$LINENO: result: yes" >&5
3549echo "${ECHO_T}yes" >&6
3550else
3551 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3552echo "${ECHO_T}no, using $LN_S" >&6
3553fi
3554
3555echo "$as_me:$LINENO: checking how to recognise dependant libraries" >&5
3556echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6
3557if test "${lt_cv_deplibs_check_method+set}" = set; then
3558 echo $ECHO_N "(cached) $ECHO_C" >&6
3559else
3560 lt_cv_file_magic_cmd='$MAGIC_CMD'
3561lt_cv_file_magic_test_file=
3562lt_cv_deplibs_check_method='unknown'
3563# Need to set the preceding variable on all platforms that support
3564# interlibrary dependencies.
3565# 'none' -- dependencies not supported.
3566# `unknown' -- same as none, but documents that we really don't know.
3567# 'pass_all' -- all dependencies passed with no checks.
3568# 'test_compile' -- check by making test program.
3569# 'file_magic [regex]' -- check by looking for files in library path
3570# which responds to the $file_magic_cmd with a given egrep regex.
3571# If you have `file' or equivalent on your system and you're not sure
3572# whether `pass_all' will *always* work, you probably want this one.
3573
3574case $host_os in
3575aix*)
3576 lt_cv_deplibs_check_method=pass_all
3577 ;;
3578
3579beos*)
3580 lt_cv_deplibs_check_method=pass_all
3581 ;;
3582
3583bsdi4*)
3584 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3585 lt_cv_file_magic_cmd='/usr/bin/file -L'
3586 lt_cv_file_magic_test_file=/shlib/libc.so
3587 ;;
3588
3589cygwin* | mingw* |pw32*)
3590 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3591 lt_cv_file_magic_cmd='$OBJDUMP -f'
3592 ;;
3593
3594darwin* | rhapsody*)
3595 # this will be overwritten by pass_all, but leave it in just in case
3596 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
3597 lt_cv_file_magic_cmd='/usr/bin/file -L'
3598 case "$host_os" in
3599 rhapsody* | darwin1.012)
3600 lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
3601 ;;
3602 *) # Darwin 1.3 on
3603 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
3604 ;;
3605 esac
3606 lt_cv_deplibs_check_method=pass_all
3607 ;;
3608
3609freebsd* | kfreebsd*-gnu)
3610 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3611 case $host_cpu in
3612 i*86 )
3613 # Not sure whether the presence of OpenBSD here was a mistake.
3614 # Let's accept both of them until this is cleared up.
3615 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3616 lt_cv_file_magic_cmd=/usr/bin/file
3617 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3618 ;;
3619 esac
3620 else
3621 lt_cv_deplibs_check_method=pass_all
3622 fi
3623 ;;
3624
3625gnu*)
3626 lt_cv_deplibs_check_method=pass_all
3627 ;;
3628
3629hpux10.20*|hpux11*)
3630 case $host_cpu in
3631 hppa*)
3632 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3633 lt_cv_file_magic_cmd=/usr/bin/file
3634 lt_cv_file_magic_test_file=/usr/lib/libc.sl
3635 ;;
3636 ia64*)
3637 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3638 lt_cv_file_magic_cmd=/usr/bin/file
3639 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3640 ;;
3641 esac
3642 ;;
3643
3644irix5* | irix6*)
3645 case $host_os in
3646 irix5*)
3647 # this will be overridden with pass_all, but let us keep it just in case
3648 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
3649 ;;
3650 *)
3651 case $LD in
3652 *-32|*"-32 ") libmagic=32-bit;;
3653 *-n32|*"-n32 ") libmagic=N32;;
3654 *-64|*"-64 ") libmagic=64-bit;;
3655 *) libmagic=never-match;;
3656 esac
3657 # this will be overridden with pass_all, but let us keep it just in case
3658 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
3659 ;;
3660 esac
3661 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
3662 lt_cv_deplibs_check_method=pass_all
3663 ;;
3664
3665# This must be Linux ELF.
3666linux-gnu*)
2c92e90f 3667 lt_cv_deplibs_check_method=pass_all
96b8a615
AJ
3668 ;;
3669
3670netbsd* | knetbsd*-gnu)
3671 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3672 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
3673 else
3674 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
3675 fi
3676 ;;
3677
3678newsos6)
3679 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3680 lt_cv_file_magic_cmd=/usr/bin/file
3681 lt_cv_file_magic_test_file=/usr/lib/libnls.so
3682 ;;
3683
3684osf3* | osf4* | osf5*)
3685 # this will be overridden with pass_all, but let us keep it just in case
3686 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
3687 lt_cv_file_magic_test_file=/shlib/libc.so
3688 lt_cv_deplibs_check_method=pass_all
3689 ;;
3690
3691sco3.2v5*)
3692 lt_cv_deplibs_check_method=pass_all
3693 ;;
3694
3695solaris*)
3696 lt_cv_deplibs_check_method=pass_all
3697 lt_cv_file_magic_test_file=/lib/libc.so
3698 ;;
3699
3700sysv5uw[78]* | sysv4*uw2*)
3701 lt_cv_deplibs_check_method=pass_all
3702 ;;
3703
3704sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3705 case $host_vendor in
3706 ncr)
3707 lt_cv_deplibs_check_method=pass_all
3708 ;;
3709 motorola)
3710 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]'
3711 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3712 ;;
3713 esac
3714 ;;
3715esac
3716
3717fi
3718echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3719echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3720file_magic_cmd=$lt_cv_file_magic_cmd
3721deplibs_check_method=$lt_cv_deplibs_check_method
3722
3723
3724
3725
3726
3727# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
3728
3729# Only perform the check for file, if the check method requires it
3730case $deplibs_check_method in
3731file_magic*)
3732 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
3733 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
3734echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
3735if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
3736 echo $ECHO_N "(cached) $ECHO_C" >&6
3737else
3738 case $MAGIC_CMD in
3739 /*)
3740 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
3741 ;;
3742 ?:/*)
3743 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
3744 ;;
3745 *)
3746 ac_save_MAGIC_CMD="$MAGIC_CMD"
3747 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3748 ac_dummy="/usr/bin:$PATH"
3749 for ac_dir in $ac_dummy; do
3750 test -z "$ac_dir" && ac_dir=.
3751 if test -f $ac_dir/${ac_tool_prefix}file; then
3752 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
3753 if test -n "$file_magic_test_file"; then
3754 case $deplibs_check_method in
3755 "file_magic "*)
3756 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
3757 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3758 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3759 egrep "$file_magic_regex" > /dev/null; then
3760 :
3761 else
3762 cat <<EOF 1>&2
3763
3764*** Warning: the command libtool uses to detect shared libraries,
3765*** $file_magic_cmd, produces output that libtool cannot recognize.
3766*** The result is that libtool may fail to recognize shared libraries
3767*** as such. This will affect the creation of libtool libraries that
3768*** depend on shared libraries, but programs linked with such libtool
3769*** libraries will work regardless of this problem. Nevertheless, you
3770*** may want to report the problem to your system manager and/or to
3771*** bug-libtool@gnu.org
3772
3773EOF
3774 fi ;;
3775 esac
3776 fi
3777 break
3778 fi
3779 done
3780 IFS="$ac_save_ifs"
3781 MAGIC_CMD="$ac_save_MAGIC_CMD"
3782 ;;
3783esac
3784fi
3785
3786MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3787if test -n "$MAGIC_CMD"; then
3788 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
3789echo "${ECHO_T}$MAGIC_CMD" >&6
3790else
3791 echo "$as_me:$LINENO: result: no" >&5
3792echo "${ECHO_T}no" >&6
3793fi
3794
3795if test -z "$lt_cv_path_MAGIC_CMD"; then
3796 if test -n "$ac_tool_prefix"; then
3797 echo "$as_me:$LINENO: checking for file" >&5
3798echo $ECHO_N "checking for file... $ECHO_C" >&6
3799if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
3800 echo $ECHO_N "(cached) $ECHO_C" >&6
3801else
3802 case $MAGIC_CMD in
3803 /*)
3804 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
3805 ;;
3806 ?:/*)
3807 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
3808 ;;
3809 *)
3810 ac_save_MAGIC_CMD="$MAGIC_CMD"
3811 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3812 ac_dummy="/usr/bin:$PATH"
3813 for ac_dir in $ac_dummy; do
3814 test -z "$ac_dir" && ac_dir=.
3815 if test -f $ac_dir/file; then
3816 lt_cv_path_MAGIC_CMD="$ac_dir/file"
3817 if test -n "$file_magic_test_file"; then
3818 case $deplibs_check_method in
3819 "file_magic "*)
3820 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
3821 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3822 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3823 egrep "$file_magic_regex" > /dev/null; then
3824 :
3825 else
3826 cat <<EOF 1>&2
3827
3828*** Warning: the command libtool uses to detect shared libraries,
3829*** $file_magic_cmd, produces output that libtool cannot recognize.
3830*** The result is that libtool may fail to recognize shared libraries
3831*** as such. This will affect the creation of libtool libraries that
3832*** depend on shared libraries, but programs linked with such libtool
3833*** libraries will work regardless of this problem. Nevertheless, you
3834*** may want to report the problem to your system manager and/or to
3835*** bug-libtool@gnu.org
3836
3837EOF
3838 fi ;;
3839 esac
3840 fi
3841 break
3842 fi
3843 done
3844 IFS="$ac_save_ifs"
3845 MAGIC_CMD="$ac_save_MAGIC_CMD"
3846 ;;
3847esac
3848fi
6de9cd9a 3849
96b8a615
AJ
3850MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3851if test -n "$MAGIC_CMD"; then
3852 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
3853echo "${ECHO_T}$MAGIC_CMD" >&6
6de9cd9a 3854else
96b8a615
AJ
3855 echo "$as_me:$LINENO: result: no" >&5
3856echo "${ECHO_T}no" >&6
3857fi
6de9cd9a 3858
96b8a615
AJ
3859 else
3860 MAGIC_CMD=:
3861 fi
6de9cd9a 3862fi
6de9cd9a 3863
96b8a615
AJ
3864 fi
3865 ;;
3866esac
6de9cd9a 3867
96b8a615
AJ
3868if test -n "$ac_tool_prefix"; then
3869 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3870set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3871echo "$as_me:$LINENO: checking for $ac_word" >&5
3872echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3873if test "${ac_cv_prog_RANLIB+set}" = set; then
3874 echo $ECHO_N "(cached) $ECHO_C" >&6
6de9cd9a 3875else
96b8a615
AJ
3876 if test -n "$RANLIB"; then
3877 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3878else
3879as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3880for as_dir in $PATH
3881do
3882 IFS=$as_save_IFS
3883 test -z "$as_dir" && as_dir=.
3884 for ac_exec_ext in '' $ac_executable_extensions; do
3885 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3886 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3887 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3888 break 2
3889 fi
3890done
3891done
6de9cd9a 3892
96b8a615
AJ
3893fi
3894fi
3895RANLIB=$ac_cv_prog_RANLIB
3896if test -n "$RANLIB"; then
3897 echo "$as_me:$LINENO: result: $RANLIB" >&5
3898echo "${ECHO_T}$RANLIB" >&6
3899else
3900 echo "$as_me:$LINENO: result: no" >&5
3901echo "${ECHO_T}no" >&6
6de9cd9a
DN
3902fi
3903
96b8a615
AJ
3904fi
3905if test -z "$ac_cv_prog_RANLIB"; then
3906 ac_ct_RANLIB=$RANLIB
3907 # Extract the first word of "ranlib", so it can be a program name with args.
3908set dummy ranlib; ac_word=$2
3909echo "$as_me:$LINENO: checking for $ac_word" >&5
3910echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3911if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3912 echo $ECHO_N "(cached) $ECHO_C" >&6
3913else
3914 if test -n "$ac_ct_RANLIB"; then
3915 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3916else
3917as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3918for as_dir in $PATH
3919do
3920 IFS=$as_save_IFS
3921 test -z "$as_dir" && as_dir=.
3922 for ac_exec_ext in '' $ac_executable_extensions; do
3923 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3924 ac_cv_prog_ac_ct_RANLIB="ranlib"
3925 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3926 break 2
3927 fi
3928done
3929done
6de9cd9a 3930
96b8a615
AJ
3931 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3932fi
3933fi
3934ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3935if test -n "$ac_ct_RANLIB"; then
3936 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3937echo "${ECHO_T}$ac_ct_RANLIB" >&6
6de9cd9a 3938else
96b8a615
AJ
3939 echo "$as_me:$LINENO: result: no" >&5
3940echo "${ECHO_T}no" >&6
6de9cd9a 3941fi
6de9cd9a 3942
96b8a615
AJ
3943 RANLIB=$ac_ct_RANLIB
3944else
3945 RANLIB="$ac_cv_prog_RANLIB"
6de9cd9a
DN
3946fi
3947
96b8a615
AJ
3948if test -n "$ac_tool_prefix"; then
3949 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3950set dummy ${ac_tool_prefix}strip; ac_word=$2
3951echo "$as_me:$LINENO: checking for $ac_word" >&5
3952echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3953if test "${ac_cv_prog_STRIP+set}" = set; then
3954 echo $ECHO_N "(cached) $ECHO_C" >&6
6de9cd9a 3955else
96b8a615
AJ
3956 if test -n "$STRIP"; then
3957 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3958else
3959as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3960for as_dir in $PATH
3961do
3962 IFS=$as_save_IFS
3963 test -z "$as_dir" && as_dir=.
3964 for ac_exec_ext in '' $ac_executable_extensions; do
3965 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3966 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3967 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3968 break 2
3969 fi
3970done
3971done
6de9cd9a 3972
96b8a615
AJ
3973fi
3974fi
3975STRIP=$ac_cv_prog_STRIP
3976if test -n "$STRIP"; then
3977 echo "$as_me:$LINENO: result: $STRIP" >&5
3978echo "${ECHO_T}$STRIP" >&6
6de9cd9a 3979else
96b8a615
AJ
3980 echo "$as_me:$LINENO: result: no" >&5
3981echo "${ECHO_T}no" >&6
3982fi
6de9cd9a 3983
6de9cd9a 3984fi
96b8a615
AJ
3985if test -z "$ac_cv_prog_STRIP"; then
3986 ac_ct_STRIP=$STRIP
3987 # Extract the first word of "strip", so it can be a program name with args.
3988set dummy strip; ac_word=$2
3989echo "$as_me:$LINENO: checking for $ac_word" >&5
3990echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3991if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
3992 echo $ECHO_N "(cached) $ECHO_C" >&6
3993else
3994 if test -n "$ac_ct_STRIP"; then
3995 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3996else
3997as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3998for as_dir in $PATH
3999do
4000 IFS=$as_save_IFS
4001 test -z "$as_dir" && as_dir=.
4002 for ac_exec_ext in '' $ac_executable_extensions; do
4003 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4004 ac_cv_prog_ac_ct_STRIP="strip"
4005 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4006 break 2
4007 fi
4008done
4009done
4010
4011 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
6de9cd9a
DN
4012fi
4013fi
96b8a615
AJ
4014ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4015if test -n "$ac_ct_STRIP"; then
4016 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4017echo "${ECHO_T}$ac_ct_STRIP" >&6
4018else
4019 echo "$as_me:$LINENO: result: no" >&5
4020echo "${ECHO_T}no" >&6
6de9cd9a 4021fi
6de9cd9a 4022
96b8a615
AJ
4023 STRIP=$ac_ct_STRIP
4024else
4025 STRIP="$ac_cv_prog_STRIP"
6de9cd9a
DN
4026fi
4027
6de9cd9a 4028
96b8a615
AJ
4029# Check for any special flags to pass to ltconfig.
4030libtool_flags="--cache-file=$cache_file"
4031test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
4032test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
4033test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
4034test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
4035test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
6de9cd9a
DN
4036
4037
96b8a615
AJ
4038# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4039if test "${enable_libtool_lock+set}" = set; then
4040 enableval="$enable_libtool_lock"
6de9cd9a 4041
96b8a615
AJ
4042fi;
4043test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
4044test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
6de9cd9a
DN
4045
4046
96b8a615
AJ
4047# Check whether --with-pic or --without-pic was given.
4048if test "${with_pic+set}" = set; then
4049 withval="$with_pic"
4050 pic_mode="$withval"
6de9cd9a 4051else
96b8a615
AJ
4052 pic_mode=default
4053fi;
4054test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
4055test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
6de9cd9a 4056
96b8a615
AJ
4057# Some flags need to be propagated to the compiler or linker for good
4058# libtool support.
4059case $host in
4060*-*-irix6*)
4061 # Find out which ABI we are using.
df65f093 4062 echo '#line 4062 "configure"' > conftest.$ac_ext
96b8a615
AJ
4063 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4064 (eval $ac_compile) 2>&5
6de9cd9a
DN
4065 ac_status=$?
4066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
96b8a615
AJ
4067 (exit $ac_status); }; then
4068 if test "$lt_cv_prog_gnu_ld" = yes; then
4069 case `/usr/bin/file conftest.$ac_objext` in
4070 *32-bit*)
4071 LD="${LD-ld} -melf32bsmip"
4072 ;;
4073 *N32*)
4074 LD="${LD-ld} -melf32bmipn32"
4075 ;;
4076 *64-bit*)
4077 LD="${LD-ld} -melf64bmip"
4078 ;;
4079 esac
4080 else
4081 case `/usr/bin/file conftest.$ac_objext` in
4082 *32-bit*)
4083 LD="${LD-ld} -32"
4084 ;;
4085 *N32*)
4086 LD="${LD-ld} -n32"
4087 ;;
4088 *64-bit*)
4089 LD="${LD-ld} -64"
4090 ;;
4091 esac
4092 fi
4093 fi
4094 rm -rf conftest*
4095 ;;
6de9cd9a 4096
96b8a615
AJ
4097ia64-*-hpux*)
4098 # Find out which ABI we are using.
4099 echo 'int i;' > conftest.$ac_ext
4100 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4101 (eval $ac_compile) 2>&5
6de9cd9a
DN
4102 ac_status=$?
4103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
96b8a615
AJ
4104 (exit $ac_status); }; then
4105 case "`/usr/bin/file conftest.o`" in
4106 *ELF-32*)
4107 HPUX_IA64_MODE="32"
4108 ;;
4109 *ELF-64*)
4110 HPUX_IA64_MODE="64"
4111 ;;
4112 esac
4113 fi
4114 rm -rf conftest*
4115 ;;
6de9cd9a 4116
96b8a615
AJ
4117x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4118 # Find out which ABI we are using.
4119 echo 'int i;' > conftest.$ac_ext
4120 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4121 (eval $ac_compile) 2>&5
6de9cd9a 4122 ac_status=$?
6de9cd9a 4123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
96b8a615
AJ
4124 (exit $ac_status); }; then
4125 case "`/usr/bin/file conftest.o`" in
4126 *32-bit*)
4127 case $host in
4128 x86_64-*linux*)
4129 LD="${LD-ld} -m elf_i386"
4130 ;;
4131 ppc64-*linux*|powerpc64-*linux*)
4132 LD="${LD-ld} -m elf32ppclinux"
4133 ;;
4134 s390x-*linux*)
4135 LD="${LD-ld} -m elf_s390"
4136 ;;
4137 sparc64-*linux*)
4138 LD="${LD-ld} -m elf32_sparc"
4139 ;;
4140 esac
4141 ;;
4142 *64-bit*)
4143 case $host in
4144 x86_64-*linux*)
4145 LD="${LD-ld} -m elf_x86_64"
4146 ;;
4147 ppc*-*linux*|powerpc*-*linux*)
4148 LD="${LD-ld} -m elf64ppc"
4149 ;;
4150 s390*-*linux*)
4151 LD="${LD-ld} -m elf64_s390"
4152 ;;
4153 sparc*-*linux*)
4154 LD="${LD-ld} -m elf64_sparc"
4155 ;;
4156 esac
4157 ;;
4158 esac
6de9cd9a 4159 fi
96b8a615
AJ
4160 rm -rf conftest*
4161 ;;
6de9cd9a 4162
96b8a615
AJ
4163*-*-sco3.2v5*)
4164 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4165 SAVE_CFLAGS="$CFLAGS"
4166 CFLAGS="$CFLAGS -belf"
4167 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4168echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4169if test "${lt_cv_cc_needs_belf+set}" = set; then
6de9cd9a
DN
4170 echo $ECHO_N "(cached) $ECHO_C" >&6
4171else
6de9cd9a 4172
6de9cd9a 4173
96b8a615
AJ
4174 ac_ext=c
4175ac_cpp='$CPP $CPPFLAGS'
4176ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4177ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4178ac_compiler_gnu=$ac_cv_c_compiler_gnu
6de9cd9a 4179
d49ec2d1
KC
4180 if test x$gcc_no_link = xyes; then
4181 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
4182echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
4183 { (exit 1); exit 1; }; }
4184fi
4185cat >conftest.$ac_ext <<_ACEOF
6de9cd9a
DN
4186/* confdefs.h. */
4187_ACEOF
4188cat confdefs.h >>conftest.$ac_ext
4189cat >>conftest.$ac_ext <<_ACEOF
4190/* end confdefs.h. */
6de9cd9a
DN
4191
4192int
4193main ()
4194{
96b8a615 4195
6de9cd9a
DN
4196 ;
4197 return 0;
4198}
4199_ACEOF
4200rm -f conftest.$ac_objext conftest$ac_exeext
4201if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4202 (eval $ac_link) 2>conftest.er1
4203 ac_status=$?
4204 grep -v '^ *+' conftest.er1 >conftest.err
4205 rm -f conftest.er1
4206 cat conftest.err >&5
4207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4208 (exit $ac_status); } &&
df65f093 4209 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6de9cd9a
DN
4210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4211 (eval $ac_try) 2>&5
4212 ac_status=$?
4213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4214 (exit $ac_status); }; } &&
4215 { ac_try='test -s conftest$ac_exeext'
4216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4217 (eval $ac_try) 2>&5
4218 ac_status=$?
4219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4220 (exit $ac_status); }; }; then
96b8a615 4221 lt_cv_cc_needs_belf=yes
6de9cd9a
DN
4222else
4223 echo "$as_me: failed program was:" >&5
4224sed 's/^/| /' conftest.$ac_ext >&5
4225
96b8a615 4226lt_cv_cc_needs_belf=no
6de9cd9a
DN
4227fi
4228rm -f conftest.err conftest.$ac_objext \
4229 conftest$ac_exeext conftest.$ac_ext
96b8a615
AJ
4230 ac_ext=c
4231ac_cpp='$CPP $CPPFLAGS'
4232ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4233ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4234ac_compiler_gnu=$ac_cv_c_compiler_gnu
4235
6de9cd9a 4236fi
96b8a615
AJ
4237echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4238echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4239 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4240 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4241 CFLAGS="$SAVE_CFLAGS"
4242 fi
4243 ;;
4244
4245
4246esac
4247
4248
4249# Save cache, so that ltconfig can load it
4250cat >confcache <<\_ACEOF
4251# This file is a shell script that caches the results of configure
4252# tests run on this system so they can be shared between configure
4253# scripts and configure runs, see configure's option --config-cache.
4254# It is not useful on other systems. If it contains results you don't
4255# want to keep, you may remove or edit it.
4256#
4257# config.status only pays attention to the cache file if you give it
4258# the --recheck option to rerun configure.
4259#
4260# `ac_cv_env_foo' variables (set or unset) will be overridden when
4261# loading this file, other *unset* `ac_cv_foo' will be assigned the
4262# following values.
4263
6de9cd9a
DN
4264_ACEOF
4265
96b8a615
AJ
4266# The following way of writing the cache mishandles newlines in values,
4267# but we know of no workaround that is simple, portable, and efficient.
4268# So, don't put newlines in cache variables' values.
4269# Ultrix sh set writes to stderr and can't be redirected directly,
4270# and sets the high bit in the cache file unless we assign to the vars.
4271{
4272 (set) 2>&1 |
4273 case `(ac_space=' '; set | grep ac_space) 2>&1` in
4274 *ac_space=\ *)
4275 # `set' does not quote correctly, so add quotes (double-quote
4276 # substitution turns \\\\ into \\, and sed turns \\ into \).
4277 sed -n \
4278 "s/'/'\\\\''/g;
4279 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
4280 ;;
4281 *)
4282 # `set' quotes correctly as required by POSIX, so do not add quotes.
4283 sed -n \
4284 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
4285 ;;
4286 esac;
4287} |
4288 sed '
4289 t clear
4290 : clear
4291 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
4292 t end
4293 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4294 : end' >>confcache
4295if diff $cache_file confcache >/dev/null 2>&1; then :; else
4296 if test -w $cache_file; then
4297 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
4298 cat confcache >$cache_file
4299 else
4300 echo "not updating unwritable cache $cache_file"
4301 fi
6de9cd9a 4302fi
96b8a615 4303rm -f confcache
6de9cd9a 4304
96b8a615
AJ
4305# Actually configure libtool. ac_aux_dir is where install-sh is found.
4306AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
4307MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
4308LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
4309AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
4310objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
4311deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
4312${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
4313$libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
4314|| { { echo "$as_me:$LINENO: error: libtool configure failed" >&5
4315echo "$as_me: error: libtool configure failed" >&2;}
4316 { (exit 1); exit 1; }; }
4317
4318# Reload cache, that may have been modified by ltconfig
4319if test -r "$cache_file"; then
4320 # Some versions of bash will fail to source /dev/null (special
4321 # files actually), so we avoid doing that.
4322 if test -f "$cache_file"; then
4323 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
4324echo "$as_me: loading cache $cache_file" >&6;}
4325 case $cache_file in
4326 [\\/]* | ?:[\\/]* ) . $cache_file;;
4327 *) . ./$cache_file;;
4328 esac
4329 fi
4330else
4331 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
4332echo "$as_me: creating cache $cache_file" >&6;}
4333 >$cache_file
4334fi
6de9cd9a 4335
6de9cd9a 4336
96b8a615
AJ
4337# This can be used to rebuild libtool when needed
4338LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
6de9cd9a 4339
96b8a615
AJ
4340# Always use our own libtool.
4341LIBTOOL='$(SHELL) $(top_builddir)/libtool'
6de9cd9a 4342
96b8a615
AJ
4343# Redirect the config.log output again, so that the ltconfig log is not
4344# clobbered by the next message.
4345exec 5>>./config.log
6de9cd9a 4346
6de9cd9a 4347
6de9cd9a 4348
6de9cd9a 4349
6de9cd9a 4350
6de9cd9a 4351
6de9cd9a 4352
6de9cd9a 4353
96b8a615
AJ
4354#AC_MSG_NOTICE([====== Finished libtool configuration]) ; sleep 10
4355
4356# We need gfortran to compile parts of the library
c7a35fe9
AS
4357# We can't use AC_PROG_FC because it expects a fully working gfortran.
4358#AC_PROG_FC(gfortran)
4359FC="$GFORTRAN"
4360ac_ext=${FC_SRCEXT-f}
4361ac_compile='$FC -c $FCFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext >&5'
4362ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext $LIBS >&5'
4363ac_compiler_gnu=$ac_cv_fc_compiler_gnu
96b8a615
AJ
4364if test -n "$ac_tool_prefix"; then
4365 for ac_prog in gfortran
4366 do
4367 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4368set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4369echo "$as_me:$LINENO: checking for $ac_word" >&5
4370echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
c7a35fe9 4371if test "${ac_cv_prog_FC+set}" = set; then
96b8a615 4372 echo $ECHO_N "(cached) $ECHO_C" >&6
6de9cd9a 4373else
c7a35fe9
AS
4374 if test -n "$FC"; then
4375 ac_cv_prog_FC="$FC" # Let the user override the test.
96b8a615
AJ
4376else
4377as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4378for as_dir in $PATH
4379do
4380 IFS=$as_save_IFS
4381 test -z "$as_dir" && as_dir=.
4382 for ac_exec_ext in '' $ac_executable_extensions; do
4383 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c7a35fe9 4384 ac_cv_prog_FC="$ac_tool_prefix$ac_prog"
96b8a615
AJ
4385 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4386 break 2
4387 fi
4388done
4389done
6de9cd9a 4390
6de9cd9a 4391fi
6de9cd9a 4392fi
c7a35fe9
AS
4393FC=$ac_cv_prog_FC
4394if test -n "$FC"; then
4395 echo "$as_me:$LINENO: result: $FC" >&5
4396echo "${ECHO_T}$FC" >&6
96b8a615
AJ
4397else
4398 echo "$as_me:$LINENO: result: no" >&5
4399echo "${ECHO_T}no" >&6
6de9cd9a 4400fi
6de9cd9a 4401
c7a35fe9 4402 test -n "$FC" && break
96b8a615
AJ
4403 done
4404fi
c7a35fe9
AS
4405if test -z "$FC"; then
4406 ac_ct_FC=$FC
96b8a615
AJ
4407 for ac_prog in gfortran
4408do
4409 # Extract the first word of "$ac_prog", so it can be a program name with args.
4410set dummy $ac_prog; ac_word=$2
4411echo "$as_me:$LINENO: checking for $ac_word" >&5
4412echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
c7a35fe9 4413if test "${ac_cv_prog_ac_ct_FC+set}" = set; then
96b8a615
AJ
4414 echo $ECHO_N "(cached) $ECHO_C" >&6
4415else
c7a35fe9
AS
4416 if test -n "$ac_ct_FC"; then
4417 ac_cv_prog_ac_ct_FC="$ac_ct_FC" # Let the user override the test.
96b8a615
AJ
4418else
4419as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4420for as_dir in $PATH
4421do
4422 IFS=$as_save_IFS
4423 test -z "$as_dir" && as_dir=.
4424 for ac_exec_ext in '' $ac_executable_extensions; do
4425 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c7a35fe9 4426 ac_cv_prog_ac_ct_FC="$ac_prog"
96b8a615
AJ
4427 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4428 break 2
4429 fi
4430done
4431done
6de9cd9a
DN
4432
4433fi
96b8a615 4434fi
c7a35fe9
AS
4435ac_ct_FC=$ac_cv_prog_ac_ct_FC
4436if test -n "$ac_ct_FC"; then
4437 echo "$as_me:$LINENO: result: $ac_ct_FC" >&5
4438echo "${ECHO_T}$ac_ct_FC" >&6
96b8a615
AJ
4439else
4440 echo "$as_me:$LINENO: result: no" >&5
4441echo "${ECHO_T}no" >&6
4442fi
4443
c7a35fe9 4444 test -n "$ac_ct_FC" && break
96b8a615
AJ
4445done
4446
c7a35fe9 4447 FC=$ac_ct_FC
96b8a615
AJ
4448fi
4449
4450
4451# Provide some information about the compiler.
df65f093 4452echo "$as_me:4452:" \
c7a35fe9 4453 "checking for Fortran compiler version" >&5
96b8a615
AJ
4454ac_compiler=`set X $ac_compile; echo $2`
4455{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4456 (eval $ac_compiler --version </dev/null >&5) 2>&5
4457 ac_status=$?
4458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4459 (exit $ac_status); }
4460{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4461 (eval $ac_compiler -v </dev/null >&5) 2>&5
4462 ac_status=$?
4463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4464 (exit $ac_status); }
4465{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4466 (eval $ac_compiler -V </dev/null >&5) 2>&5
4467 ac_status=$?
4468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4469 (exit $ac_status); }
4470rm -f a.out
6de9cd9a 4471
96b8a615
AJ
4472# If we don't use `.F' as extension, the preprocessor is not run on the
4473# input file. (Note that this only needs to work for GNU compilers.)
4474ac_save_ext=$ac_ext
4475ac_ext=F
c7a35fe9
AS
4476echo "$as_me:$LINENO: checking whether we are using the GNU Fortran compiler" >&5
4477echo $ECHO_N "checking whether we are using the GNU Fortran compiler... $ECHO_C" >&6
4478if test "${ac_cv_fc_compiler_gnu+set}" = set; then
6de9cd9a
DN
4479 echo $ECHO_N "(cached) $ECHO_C" >&6
4480else
4481 cat >conftest.$ac_ext <<_ACEOF
96b8a615
AJ
4482 program main
4483#ifndef __GNUC__
4484 choke me
4485#endif
4486
4487 end
6de9cd9a
DN
4488_ACEOF
4489rm -f conftest.$ac_objext
4490if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4491 (eval $ac_compile) 2>conftest.er1
4492 ac_status=$?
4493 grep -v '^ *+' conftest.er1 >conftest.err
4494 rm -f conftest.er1
4495 cat conftest.err >&5
4496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4497 (exit $ac_status); } &&
df65f093 4498 { ac_try='test -z "$ac_fc_werror_flag" || test ! -s conftest.err'
6de9cd9a
DN
4499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4500 (eval $ac_try) 2>&5
4501 ac_status=$?
4502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4503 (exit $ac_status); }; } &&
4504 { ac_try='test -s conftest.$ac_objext'
4505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4506 (eval $ac_try) 2>&5
4507 ac_status=$?
4508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4509 (exit $ac_status); }; }; then
96b8a615 4510 ac_compiler_gnu=yes
6de9cd9a
DN
4511else
4512 echo "$as_me: failed program was:" >&5
4513sed 's/^/| /' conftest.$ac_ext >&5
4514
96b8a615 4515ac_compiler_gnu=no
6de9cd9a
DN
4516fi
4517rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c7a35fe9 4518ac_cv_fc_compiler_gnu=$ac_compiler_gnu
6de9cd9a
DN
4519
4520fi
c7a35fe9
AS
4521echo "$as_me:$LINENO: result: $ac_cv_fc_compiler_gnu" >&5
4522echo "${ECHO_T}$ac_cv_fc_compiler_gnu" >&6
96b8a615 4523ac_ext=$ac_save_ext
c7a35fe9
AS
4524ac_test_FFLAGS=${FCFLAGS+set}
4525ac_save_FFLAGS=$FCFLAGS
4526FCFLAGS=
4527echo "$as_me:$LINENO: checking whether $FC accepts -g" >&5
4528echo $ECHO_N "checking whether $FC accepts -g... $ECHO_C" >&6
4529if test "${ac_cv_prog_fc_g+set}" = set; then
6de9cd9a
DN
4530 echo $ECHO_N "(cached) $ECHO_C" >&6
4531else
c7a35fe9 4532 FCFLAGS=-g
96b8a615
AJ
4533cat >conftest.$ac_ext <<_ACEOF
4534 program main
6de9cd9a 4535
96b8a615 4536 end
6de9cd9a
DN
4537_ACEOF
4538rm -f conftest.$ac_objext
4539if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4540 (eval $ac_compile) 2>conftest.er1
4541 ac_status=$?
4542 grep -v '^ *+' conftest.er1 >conftest.err
4543 rm -f conftest.er1
4544 cat conftest.err >&5
4545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4546 (exit $ac_status); } &&
df65f093 4547 { ac_try='test -z "$ac_fc_werror_flag" || test ! -s conftest.err'
6de9cd9a
DN
4548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4549 (eval $ac_try) 2>&5
4550 ac_status=$?
4551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4552 (exit $ac_status); }; } &&
4553 { ac_try='test -s conftest.$ac_objext'
4554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4555 (eval $ac_try) 2>&5
4556 ac_status=$?
4557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4558 (exit $ac_status); }; }; then
c7a35fe9 4559 ac_cv_prog_fc_g=yes
6de9cd9a
DN
4560else
4561 echo "$as_me: failed program was:" >&5
4562sed 's/^/| /' conftest.$ac_ext >&5
4563
c7a35fe9 4564ac_cv_prog_fc_g=no
6de9cd9a
DN
4565fi
4566rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4567
6de9cd9a 4568fi
c7a35fe9
AS
4569echo "$as_me:$LINENO: result: $ac_cv_prog_fc_g" >&5
4570echo "${ECHO_T}$ac_cv_prog_fc_g" >&6
96b8a615 4571if test "$ac_test_FFLAGS" = set; then
c7a35fe9
AS
4572 FCFLAGS=$ac_save_FFLAGS
4573elif test $ac_cv_prog_fc_g = yes; then
4574 if test "x$ac_cv_fc_compiler_gnu" = xyes; then
4575 FCFLAGS="-g -O2"
96b8a615 4576 else
c7a35fe9 4577 FCFLAGS="-g"
96b8a615
AJ
4578 fi
4579else
c7a35fe9
AS
4580 if test "x$ac_cv_fc_compiler_gnu" = xyes; then
4581 FCFLAGS="-O2"
96b8a615 4582 else
c7a35fe9 4583 FCFLAGS=
96b8a615 4584 fi
6de9cd9a
DN
4585fi
4586
96b8a615
AJ
4587ac_ext=c
4588ac_cpp='$CPP $CPPFLAGS'
4589ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4590ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4591ac_compiler_gnu=$ac_cv_c_compiler_gnu
6de9cd9a 4592
c7a35fe9 4593FCFLAGS="$FCFLAGS -Wall -fno-repack-arrays -fno-underscoring"
6de9cd9a 4594
9cdc381b
BD
4595# Check whether --enable-largefile or --disable-largefile was given.
4596if test "${enable_largefile+set}" = set; then
4597 enableval="$enable_largefile"
4598
4599fi;
4600if test "$enable_largefile" != no; then
4601
4602 echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
4603echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
4604if test "${ac_cv_sys_largefile_CC+set}" = set; then
4605 echo $ECHO_N "(cached) $ECHO_C" >&6
4606else
4607 ac_cv_sys_largefile_CC=no
4608 if test "$GCC" != yes; then
4609 ac_save_CC=$CC
4610 while :; do
4611 # IRIX 6.2 and later do not support large files by default,
4612 # so use the C compiler's -n32 option if that helps.
4613 cat >conftest.$ac_ext <<_ACEOF
4614/* confdefs.h. */
4615_ACEOF
4616cat confdefs.h >>conftest.$ac_ext
4617cat >>conftest.$ac_ext <<_ACEOF
4618/* end confdefs.h. */
4619#include <sys/types.h>
4620 /* Check that off_t can represent 2**63 - 1 correctly.
4621 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4622 since some C++ compilers masquerading as C compilers
4623 incorrectly reject 9223372036854775807. */
4624#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4625 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4626 && LARGE_OFF_T % 2147483647 == 1)
4627 ? 1 : -1];
4628int
4629main ()
4630{
4631
4632 ;
4633 return 0;
4634}
4635_ACEOF
4636 rm -f conftest.$ac_objext
4637if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4638 (eval $ac_compile) 2>conftest.er1
4639 ac_status=$?
4640 grep -v '^ *+' conftest.er1 >conftest.err
4641 rm -f conftest.er1
4642 cat conftest.err >&5
4643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4644 (exit $ac_status); } &&
df65f093 4645 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9cdc381b
BD
4646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4647 (eval $ac_try) 2>&5
4648 ac_status=$?
4649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4650 (exit $ac_status); }; } &&
4651 { ac_try='test -s conftest.$ac_objext'
4652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4653 (eval $ac_try) 2>&5
4654 ac_status=$?
4655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4656 (exit $ac_status); }; }; then
4657 break
4658else
4659 echo "$as_me: failed program was:" >&5
4660sed 's/^/| /' conftest.$ac_ext >&5
4661
4662fi
4663rm -f conftest.err conftest.$ac_objext
4664 CC="$CC -n32"
4665 rm -f conftest.$ac_objext
4666if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4667 (eval $ac_compile) 2>conftest.er1
4668 ac_status=$?
4669 grep -v '^ *+' conftest.er1 >conftest.err
4670 rm -f conftest.er1
4671 cat conftest.err >&5
4672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4673 (exit $ac_status); } &&
df65f093 4674 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9cdc381b
BD
4675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4676 (eval $ac_try) 2>&5
4677 ac_status=$?
4678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4679 (exit $ac_status); }; } &&
4680 { ac_try='test -s conftest.$ac_objext'
4681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4682 (eval $ac_try) 2>&5
4683 ac_status=$?
4684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4685 (exit $ac_status); }; }; then
4686 ac_cv_sys_largefile_CC=' -n32'; break
4687else
4688 echo "$as_me: failed program was:" >&5
4689sed 's/^/| /' conftest.$ac_ext >&5
4690
4691fi
4692rm -f conftest.err conftest.$ac_objext
4693 break
4694 done
4695 CC=$ac_save_CC
4696 rm -f conftest.$ac_ext
4697 fi
4698fi
4699echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
4700echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
4701 if test "$ac_cv_sys_largefile_CC" != no; then
4702 CC=$CC$ac_cv_sys_largefile_CC
4703 fi
4704
4705 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4706echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
4707if test "${ac_cv_sys_file_offset_bits+set}" = set; then
4708 echo $ECHO_N "(cached) $ECHO_C" >&6
4709else
4710 while :; do
4711 ac_cv_sys_file_offset_bits=no
4712 cat >conftest.$ac_ext <<_ACEOF
4713/* confdefs.h. */
4714_ACEOF
4715cat confdefs.h >>conftest.$ac_ext
4716cat >>conftest.$ac_ext <<_ACEOF
4717/* end confdefs.h. */
4718#include <sys/types.h>
4719 /* Check that off_t can represent 2**63 - 1 correctly.
4720 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4721 since some C++ compilers masquerading as C compilers
4722 incorrectly reject 9223372036854775807. */
4723#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4724 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4725 && LARGE_OFF_T % 2147483647 == 1)
4726 ? 1 : -1];
4727int
4728main ()
4729{
4730
4731 ;
4732 return 0;
4733}
4734_ACEOF
4735rm -f conftest.$ac_objext
4736if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4737 (eval $ac_compile) 2>conftest.er1
4738 ac_status=$?
4739 grep -v '^ *+' conftest.er1 >conftest.err
4740 rm -f conftest.er1
4741 cat conftest.err >&5
4742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4743 (exit $ac_status); } &&
df65f093 4744 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9cdc381b
BD
4745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4746 (eval $ac_try) 2>&5
4747 ac_status=$?
4748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4749 (exit $ac_status); }; } &&
4750 { ac_try='test -s conftest.$ac_objext'
4751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4752 (eval $ac_try) 2>&5
4753 ac_status=$?
4754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4755 (exit $ac_status); }; }; then
4756 break
4757else
4758 echo "$as_me: failed program was:" >&5
4759sed 's/^/| /' conftest.$ac_ext >&5
4760
4761fi
4762rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4763 cat >conftest.$ac_ext <<_ACEOF
4764/* confdefs.h. */
4765_ACEOF
4766cat confdefs.h >>conftest.$ac_ext
4767cat >>conftest.$ac_ext <<_ACEOF
4768/* end confdefs.h. */
4769#define _FILE_OFFSET_BITS 64
4770#include <sys/types.h>
4771 /* Check that off_t can represent 2**63 - 1 correctly.
4772 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4773 since some C++ compilers masquerading as C compilers
4774 incorrectly reject 9223372036854775807. */
4775#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4776 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4777 && LARGE_OFF_T % 2147483647 == 1)
4778 ? 1 : -1];
4779int
4780main ()
4781{
4782
4783 ;
4784 return 0;
4785}
4786_ACEOF
4787rm -f conftest.$ac_objext
4788if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4789 (eval $ac_compile) 2>conftest.er1
4790 ac_status=$?
4791 grep -v '^ *+' conftest.er1 >conftest.err
4792 rm -f conftest.er1
4793 cat conftest.err >&5
4794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4795 (exit $ac_status); } &&
df65f093 4796 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9cdc381b
BD
4797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4798 (eval $ac_try) 2>&5
4799 ac_status=$?
4800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4801 (exit $ac_status); }; } &&
4802 { ac_try='test -s conftest.$ac_objext'
4803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4804 (eval $ac_try) 2>&5
4805 ac_status=$?
4806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4807 (exit $ac_status); }; }; then
4808 ac_cv_sys_file_offset_bits=64; break
4809else
4810 echo "$as_me: failed program was:" >&5
4811sed 's/^/| /' conftest.$ac_ext >&5
4812
4813fi
4814rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4815 break
4816done
4817fi
4818echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
4819echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
4820if test "$ac_cv_sys_file_offset_bits" != no; then
4821
4822cat >>confdefs.h <<_ACEOF
4823#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4824_ACEOF
4825
4826fi
4827rm -f conftest*
4828 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
4829echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
4830if test "${ac_cv_sys_large_files+set}" = set; then
4831 echo $ECHO_N "(cached) $ECHO_C" >&6
4832else
4833 while :; do
4834 ac_cv_sys_large_files=no
4835 cat >conftest.$ac_ext <<_ACEOF
4836/* confdefs.h. */
4837_ACEOF
4838cat confdefs.h >>conftest.$ac_ext
4839cat >>conftest.$ac_ext <<_ACEOF
4840/* end confdefs.h. */
4841#include <sys/types.h>
4842 /* Check that off_t can represent 2**63 - 1 correctly.
4843 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4844 since some C++ compilers masquerading as C compilers
4845 incorrectly reject 9223372036854775807. */
4846#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4847 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4848 && LARGE_OFF_T % 2147483647 == 1)
4849 ? 1 : -1];
4850int
4851main ()
4852{
4853
4854 ;
4855 return 0;
4856}
4857_ACEOF
4858rm -f conftest.$ac_objext
4859if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4860 (eval $ac_compile) 2>conftest.er1
4861 ac_status=$?
4862 grep -v '^ *+' conftest.er1 >conftest.err
4863 rm -f conftest.er1
4864 cat conftest.err >&5
4865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4866 (exit $ac_status); } &&
df65f093 4867 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9cdc381b
BD
4868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4869 (eval $ac_try) 2>&5
4870 ac_status=$?
4871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4872 (exit $ac_status); }; } &&
4873 { ac_try='test -s conftest.$ac_objext'
4874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4875 (eval $ac_try) 2>&5
4876 ac_status=$?
4877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4878 (exit $ac_status); }; }; then
4879 break
4880else
4881 echo "$as_me: failed program was:" >&5
4882sed 's/^/| /' conftest.$ac_ext >&5
4883
4884fi
4885rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4886 cat >conftest.$ac_ext <<_ACEOF
4887/* confdefs.h. */
4888_ACEOF
4889cat confdefs.h >>conftest.$ac_ext
4890cat >>conftest.$ac_ext <<_ACEOF
4891/* end confdefs.h. */
4892#define _LARGE_FILES 1
4893#include <sys/types.h>
4894 /* Check that off_t can represent 2**63 - 1 correctly.
4895 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4896 since some C++ compilers masquerading as C compilers
4897 incorrectly reject 9223372036854775807. */
4898#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4899 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4900 && LARGE_OFF_T % 2147483647 == 1)
4901 ? 1 : -1];
4902int
4903main ()
4904{
4905
4906 ;
4907 return 0;
4908}
4909_ACEOF
4910rm -f conftest.$ac_objext
4911if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4912 (eval $ac_compile) 2>conftest.er1
4913 ac_status=$?
4914 grep -v '^ *+' conftest.er1 >conftest.err
4915 rm -f conftest.er1
4916 cat conftest.err >&5
4917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4918 (exit $ac_status); } &&
df65f093 4919 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9cdc381b
BD
4920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4921 (eval $ac_try) 2>&5
4922 ac_status=$?
4923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4924 (exit $ac_status); }; } &&
4925 { ac_try='test -s conftest.$ac_objext'
4926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4927 (eval $ac_try) 2>&5
4928 ac_status=$?
4929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4930 (exit $ac_status); }; }; then
4931 ac_cv_sys_large_files=1; break
4932else
4933 echo "$as_me: failed program was:" >&5
4934sed 's/^/| /' conftest.$ac_ext >&5
4935
4936fi
4937rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4938 break
4939done
4940fi
4941echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
4942echo "${ECHO_T}$ac_cv_sys_large_files" >&6
4943if test "$ac_cv_sys_large_files" != no; then
4944
4945cat >>confdefs.h <<_ACEOF
4946#define _LARGE_FILES $ac_cv_sys_large_files
4947_ACEOF
4948
4949fi
4950rm -f conftest*
4951fi
4952
d49ec2d1
KC
4953if test x$gcc_no_link = xyes; then
4954 if test "x${ac_cv_func_mmap_fixed_mapped+set}" != xset; then
4955 ac_cv_func_mmap_fixed_mapped=no
4956 fi
4957fi
4958if test "x${ac_cv_func_mmap_fixed_mapped+set}" != xset; then
4959 ac_ext=c
96b8a615
AJ
4960ac_cpp='$CPP $CPPFLAGS'
4961ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4962ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4963ac_compiler_gnu=$ac_cv_c_compiler_gnu
4964echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4965echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
4966# On Suns, sometimes $CPP names a directory.
4967if test -n "$CPP" && test -d "$CPP"; then
4968 CPP=
6de9cd9a 4969fi
96b8a615
AJ
4970if test -z "$CPP"; then
4971 if test "${ac_cv_prog_CPP+set}" = set; then
4972 echo $ECHO_N "(cached) $ECHO_C" >&6
6de9cd9a 4973else
96b8a615
AJ
4974 # Double quotes because CPP needs to be expanded
4975 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4976 do
4977 ac_preproc_ok=false
4978for ac_c_preproc_warn_flag in '' yes
4979do
4980 # Use a header file that comes with gcc, so configuring glibc
4981 # with a fresh cross-compiler works.
4982 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4983 # <limits.h> exists even on freestanding compilers.
4984 # On the NeXT, cc -E runs the code through the compiler's parser,
4985 # not just through cpp. "Syntax error" is here to catch this case.
6de9cd9a
DN
4986 cat >conftest.$ac_ext <<_ACEOF
4987/* confdefs.h. */
4988_ACEOF
4989cat confdefs.h >>conftest.$ac_ext
4990cat >>conftest.$ac_ext <<_ACEOF
4991/* end confdefs.h. */
96b8a615
AJ
4992#ifdef __STDC__
4993# include <limits.h>
6de9cd9a 4994#else
96b8a615 4995# include <assert.h>
6de9cd9a 4996#endif
96b8a615 4997 Syntax error
6de9cd9a 4998_ACEOF
96b8a615
AJ
4999if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5000 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6de9cd9a 5001 ac_status=$?
96b8a615
AJ
5002 grep -v '^ *+' conftest.er1 >conftest.err
5003 rm -f conftest.er1
5004 cat conftest.err >&5
6de9cd9a 5005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
96b8a615
AJ
5006 (exit $ac_status); } >/dev/null; then
5007 if test -s conftest.err; then
5008 ac_cpp_err=$ac_c_preproc_warn_flag
5009 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5010 else
5011 ac_cpp_err=
5012 fi
5013else
5014 ac_cpp_err=yes
5015fi
5016if test -z "$ac_cpp_err"; then
6de9cd9a
DN
5017 :
5018else
96b8a615 5019 echo "$as_me: failed program was:" >&5
6de9cd9a
DN
5020sed 's/^/| /' conftest.$ac_ext >&5
5021
96b8a615
AJ
5022 # Broken: fails on valid input.
5023continue
6de9cd9a 5024fi
96b8a615 5025rm -f conftest.err conftest.$ac_ext
6de9cd9a 5026
96b8a615
AJ
5027 # OK, works on sane cases. Now check whether non-existent headers
5028 # can be detected and how.
5029 cat >conftest.$ac_ext <<_ACEOF
6de9cd9a
DN
5030/* confdefs.h. */
5031_ACEOF
5032cat confdefs.h >>conftest.$ac_ext
5033cat >>conftest.$ac_ext <<_ACEOF
5034/* end confdefs.h. */
96b8a615 5035#include <ac_nonexistent.h>
6de9cd9a 5036_ACEOF
96b8a615
AJ
5037if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5038 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6de9cd9a
DN
5039 ac_status=$?
5040 grep -v '^ *+' conftest.er1 >conftest.err
5041 rm -f conftest.er1
5042 cat conftest.err >&5
5043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
96b8a615
AJ
5044 (exit $ac_status); } >/dev/null; then
5045 if test -s conftest.err; then
5046 ac_cpp_err=$ac_c_preproc_warn_flag
5047 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5048 else
5049 ac_cpp_err=
5050 fi
5051else
5052 ac_cpp_err=yes
5053fi
5054if test -z "$ac_cpp_err"; then
5055 # Broken: success on invalid input.
5056continue
6de9cd9a
DN
5057else
5058 echo "$as_me: failed program was:" >&5
5059sed 's/^/| /' conftest.$ac_ext >&5
5060
96b8a615
AJ
5061 # Passes both tests.
5062ac_preproc_ok=:
5063break
6de9cd9a 5064fi
96b8a615 5065rm -f conftest.err conftest.$ac_ext
6de9cd9a 5066
96b8a615
AJ
5067done
5068# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5069rm -f conftest.err conftest.$ac_ext
5070if $ac_preproc_ok; then
5071 break
5072fi
5073
5074 done
5075 ac_cv_prog_CPP=$CPP
5076
5077fi
5078 CPP=$ac_cv_prog_CPP
5079else
5080 ac_cv_prog_CPP=$CPP
5081fi
5082echo "$as_me:$LINENO: result: $CPP" >&5
5083echo "${ECHO_T}$CPP" >&6
5084ac_preproc_ok=false
5085for ac_c_preproc_warn_flag in '' yes
5086do
5087 # Use a header file that comes with gcc, so configuring glibc
5088 # with a fresh cross-compiler works.
5089 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5090 # <limits.h> exists even on freestanding compilers.
5091 # On the NeXT, cc -E runs the code through the compiler's parser,
5092 # not just through cpp. "Syntax error" is here to catch this case.
5093 cat >conftest.$ac_ext <<_ACEOF
6de9cd9a
DN
5094/* confdefs.h. */
5095_ACEOF
5096cat confdefs.h >>conftest.$ac_ext
5097cat >>conftest.$ac_ext <<_ACEOF
5098/* end confdefs.h. */
96b8a615
AJ
5099#ifdef __STDC__
5100# include <limits.h>
5101#else
5102# include <assert.h>
5103#endif
5104 Syntax error
6de9cd9a
DN
5105_ACEOF
5106if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5107 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5108 ac_status=$?
5109 grep -v '^ *+' conftest.er1 >conftest.err
5110 rm -f conftest.er1
5111 cat conftest.err >&5
5112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5113 (exit $ac_status); } >/dev/null; then
5114 if test -s conftest.err; then
5115 ac_cpp_err=$ac_c_preproc_warn_flag
5116 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5117 else
5118 ac_cpp_err=
5119 fi
5120else
5121 ac_cpp_err=yes
5122fi
5123if test -z "$ac_cpp_err"; then
96b8a615 5124 :
6de9cd9a
DN
5125else
5126 echo "$as_me: failed program was:" >&5
5127sed 's/^/| /' conftest.$ac_ext >&5
5128
96b8a615
AJ
5129 # Broken: fails on valid input.
5130continue
6de9cd9a
DN
5131fi
5132rm -f conftest.err conftest.$ac_ext
6de9cd9a 5133
96b8a615
AJ
5134 # OK, works on sane cases. Now check whether non-existent headers
5135 # can be detected and how.
5136 cat >conftest.$ac_ext <<_ACEOF
5137/* confdefs.h. */
5138_ACEOF
5139cat confdefs.h >>conftest.$ac_ext
5140cat >>conftest.$ac_ext <<_ACEOF
5141/* end confdefs.h. */
5142#include <ac_nonexistent.h>
6de9cd9a 5143_ACEOF
96b8a615
AJ
5144if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5145 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5146 ac_status=$?
5147 grep -v '^ *+' conftest.er1 >conftest.err
5148 rm -f conftest.er1
5149 cat conftest.err >&5
5150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5151 (exit $ac_status); } >/dev/null; then
5152 if test -s conftest.err; then
5153 ac_cpp_err=$ac_c_preproc_warn_flag
5154 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5155 else
5156 ac_cpp_err=
5157 fi
5158else
5159 ac_cpp_err=yes
5160fi
5161if test -z "$ac_cpp_err"; then
5162 # Broken: success on invalid input.
5163continue
5164else
5165 echo "$as_me: failed program was:" >&5
5166sed 's/^/| /' conftest.$ac_ext >&5
6de9cd9a 5167
96b8a615
AJ
5168 # Passes both tests.
5169ac_preproc_ok=:
5170break
6de9cd9a 5171fi
96b8a615 5172rm -f conftest.err conftest.$ac_ext
6de9cd9a
DN
5173
5174done
96b8a615
AJ
5175# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5176rm -f conftest.err conftest.$ac_ext
5177if $ac_preproc_ok; then
5178 :
5179else
5180 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5181See \`config.log' for more details." >&5
5182echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5183See \`config.log' for more details." >&2;}
5184 { (exit 1); exit 1; }; }
5185fi
6de9cd9a 5186
96b8a615
AJ
5187ac_ext=c
5188ac_cpp='$CPP $CPPFLAGS'
5189ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5190ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5191ac_compiler_gnu=$ac_cv_c_compiler_gnu
6de9cd9a
DN
5192
5193
96b8a615
AJ
5194echo "$as_me:$LINENO: checking for egrep" >&5
5195echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5196if test "${ac_cv_prog_egrep+set}" = set; then
5197 echo $ECHO_N "(cached) $ECHO_C" >&6
5198else
5199 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
5200 then ac_cv_prog_egrep='grep -E'
5201 else ac_cv_prog_egrep='egrep'
5202 fi
5203fi
5204echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
5205echo "${ECHO_T}$ac_cv_prog_egrep" >&6
5206 EGREP=$ac_cv_prog_egrep
6de9cd9a
DN
5207
5208
96b8a615
AJ
5209echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5210echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5211if test "${ac_cv_header_stdc+set}" = set; then
6de9cd9a 5212 echo $ECHO_N "(cached) $ECHO_C" >&6
6de9cd9a 5213else
96b8a615 5214 cat >conftest.$ac_ext <<_ACEOF
6de9cd9a
DN
5215/* confdefs.h. */
5216_ACEOF
5217cat confdefs.h >>conftest.$ac_ext
5218cat >>conftest.$ac_ext <<_ACEOF
5219/* end confdefs.h. */
96b8a615
AJ
5220#include <stdlib.h>
5221#include <stdarg.h>
5222#include <string.h>
5223#include <float.h>
5224
5225int
5226main ()
5227{
5228
5229 ;
5230 return 0;
5231}
6de9cd9a
DN
5232_ACEOF
5233rm -f conftest.$ac_objext
5234if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5235 (eval $ac_compile) 2>conftest.er1
5236 ac_status=$?
5237 grep -v '^ *+' conftest.er1 >conftest.err
5238 rm -f conftest.er1
5239 cat conftest.err >&5
5240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5241 (exit $ac_status); } &&
df65f093 5242 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6de9cd9a
DN
5243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5244 (eval $ac_try) 2>&5
5245 ac_status=$?
5246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5247 (exit $ac_status); }; } &&
5248 { ac_try='test -s conftest.$ac_objext'
5249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5250 (eval $ac_try) 2>&5
5251 ac_status=$?
5252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5253 (exit $ac_status); }; }; then
96b8a615 5254 ac_cv_header_stdc=yes
6de9cd9a
DN
5255else
5256 echo "$as_me: failed program was:" >&5
5257sed 's/^/| /' conftest.$ac_ext >&5
5258
96b8a615 5259ac_cv_header_stdc=no
6de9cd9a
DN
5260fi
5261rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6de9cd9a 5262
96b8a615
AJ
5263if test $ac_cv_header_stdc = yes; then
5264 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5265 cat >conftest.$ac_ext <<_ACEOF
6de9cd9a
DN
5266/* confdefs.h. */
5267_ACEOF
5268cat confdefs.h >>conftest.$ac_ext
5269cat >>conftest.$ac_ext <<_ACEOF
5270/* end confdefs.h. */
96b8a615
AJ
5271#include <string.h>
5272
6de9cd9a 5273_ACEOF
96b8a615
AJ
5274if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5275 $EGREP "memchr" >/dev/null 2>&1; then
5276 :
6de9cd9a 5277else
96b8a615 5278 ac_cv_header_stdc=no
6de9cd9a 5279fi
96b8a615
AJ
5280rm -f conftest*
5281
5282fi
5283
5284if test $ac_cv_header_stdc = yes; then
5285 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5286 cat >conftest.$ac_ext <<_ACEOF
5287/* confdefs.h. */
5288_ACEOF
5289cat confdefs.h >>conftest.$ac_ext
5290cat >>conftest.$ac_ext <<_ACEOF
5291/* end confdefs.h. */
5292#include <stdlib.h>
5293
5294_ACEOF
5295if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5296 $EGREP "free" >/dev/null 2>&1; then
5297 :
6de9cd9a 5298else
96b8a615
AJ
5299 ac_cv_header_stdc=no
5300fi
5301rm -f conftest*
5302
5303fi
5304
5305if test $ac_cv_header_stdc = yes; then
5306 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5307 if test "$cross_compiling" = yes; then
5308 :
5309else
5310 cat >conftest.$ac_ext <<_ACEOF
5311/* confdefs.h. */
5312_ACEOF
5313cat confdefs.h >>conftest.$ac_ext
5314cat >>conftest.$ac_ext <<_ACEOF
5315/* end confdefs.h. */
5316#include <ctype.h>
5317#if ((' ' & 0x0FF) == 0x020)
5318# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5319# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5320#else
5321# define ISLOWER(c) \
5322 (('a' <= (c) && (c) <= 'i') \
5323 || ('j' <= (c) && (c) <= 'r') \
5324 || ('s' <= (c) && (c) <= 'z'))
5325# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5326#endif
5327
5328#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5329int
5330main ()
5331{
5332 int i;
5333 for (i = 0; i < 256; i++)
5334 if (XOR (islower (i), ISLOWER (i))
5335 || toupper (i) != TOUPPER (i))
5336 exit(2);
5337 exit (0);
5338}
5339_ACEOF
5340rm -f conftest$ac_exeext
5341if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5342 (eval $ac_link) 2>&5
5343 ac_status=$?
5344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5345 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5347 (eval $ac_try) 2>&5
5348 ac_status=$?
5349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5350 (exit $ac_status); }; }; then
5351 :
5352else
5353 echo "$as_me: program exited with status $ac_status" >&5
5354echo "$as_me: failed program was:" >&5
6de9cd9a
DN
5355sed 's/^/| /' conftest.$ac_ext >&5
5356
96b8a615
AJ
5357( exit $ac_status )
5358ac_cv_header_stdc=no
6de9cd9a 5359fi
96b8a615
AJ
5360rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5361fi
5362fi
5363fi
5364echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5365echo "${ECHO_T}$ac_cv_header_stdc" >&6
5366if test $ac_cv_header_stdc = yes; then
6de9cd9a 5367
96b8a615
AJ
5368cat >>confdefs.h <<\_ACEOF
5369#define STDC_HEADERS 1
5370_ACEOF
5371
5372fi
5373
5374# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5375
5376
5377
5378
5379
5380
5381
5382
5383
5384for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5385 inttypes.h stdint.h unistd.h
5386do
5387as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6de9cd9a
DN
5388echo "$as_me:$LINENO: checking for $ac_header" >&5
5389echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5390if eval "test \"\${$as_ac_Header+set}\" = set"; then
5391 echo $ECHO_N "(cached) $ECHO_C" >&6
5392else
96b8a615
AJ
5393 cat >conftest.$ac_ext <<_ACEOF
5394/* confdefs.h. */
5395_ACEOF
5396cat confdefs.h >>conftest.$ac_ext
5397cat >>conftest.$ac_ext <<_ACEOF
5398/* end confdefs.h. */
5399$ac_includes_default
5400
5401#include <$ac_header>
5402_ACEOF
5403rm -f conftest.$ac_objext
5404if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5405 (eval $ac_compile) 2>conftest.er1
5406 ac_status=$?
5407 grep -v '^ *+' conftest.er1 >conftest.err
5408 rm -f conftest.er1
5409 cat conftest.err >&5
5410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5411 (exit $ac_status); } &&
df65f093 5412 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
96b8a615
AJ
5413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5414 (eval $ac_try) 2>&5
5415 ac_status=$?
5416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5417 (exit $ac_status); }; } &&
5418 { ac_try='test -s conftest.$ac_objext'
5419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5420 (eval $ac_try) 2>&5
5421 ac_status=$?
5422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5423 (exit $ac_status); }; }; then
5424 eval "$as_ac_Header=yes"
5425else
5426 echo "$as_me: failed program was:" >&5
5427sed 's/^/| /' conftest.$ac_ext >&5
5428
5429eval "$as_ac_Header=no"
5430fi
5431rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6de9cd9a
DN
5432fi
5433echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5434echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6de9cd9a
DN
5435if test `eval echo '${'$as_ac_Header'}'` = yes; then
5436 cat >>confdefs.h <<_ACEOF
5437#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5438_ACEOF
5439
5440fi
5441
5442done
5443
96b8a615
AJ
5444
5445
5446
5447for ac_header in stdlib.h unistd.h
5448do
5449as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5450if eval "test \"\${$as_ac_Header+set}\" = set"; then
5451 echo "$as_me:$LINENO: checking for $ac_header" >&5
5452echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5453if eval "test \"\${$as_ac_Header+set}\" = set"; then
6de9cd9a
DN
5454 echo $ECHO_N "(cached) $ECHO_C" >&6
5455fi
96b8a615
AJ
5456echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5457echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6de9cd9a
DN
5458else
5459 # Is the header compilable?
96b8a615
AJ
5460echo "$as_me:$LINENO: checking $ac_header usability" >&5
5461echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6de9cd9a
DN
5462cat >conftest.$ac_ext <<_ACEOF
5463/* confdefs.h. */
5464_ACEOF
5465cat confdefs.h >>conftest.$ac_ext
5466cat >>conftest.$ac_ext <<_ACEOF
5467/* end confdefs.h. */
5468$ac_includes_default
96b8a615 5469#include <$ac_header>
6de9cd9a
DN
5470_ACEOF
5471rm -f conftest.$ac_objext
5472if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5473 (eval $ac_compile) 2>conftest.er1
5474 ac_status=$?
5475 grep -v '^ *+' conftest.er1 >conftest.err
5476 rm -f conftest.er1
5477 cat conftest.err >&5
5478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5479 (exit $ac_status); } &&
df65f093 5480 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6de9cd9a
DN
5481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5482 (eval $ac_try) 2>&5
5483 ac_status=$?
5484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5485 (exit $ac_status); }; } &&
5486 { ac_try='test -s conftest.$ac_objext'
5487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5488 (eval $ac_try) 2>&5
5489 ac_status=$?
5490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5491 (exit $ac_status); }; }; then
5492 ac_header_compiler=yes
5493else
5494 echo "$as_me: failed program was:" >&5
5495sed 's/^/| /' conftest.$ac_ext >&5
5496
5497ac_header_compiler=no
5498fi
5499rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5500echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5501echo "${ECHO_T}$ac_header_compiler" >&6
5502
5503# Is the header present?
96b8a615
AJ
5504echo "$as_me:$LINENO: checking $ac_header presence" >&5
5505echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6de9cd9a
DN
5506cat >conftest.$ac_ext <<_ACEOF
5507/* confdefs.h. */
5508_ACEOF
5509cat confdefs.h >>conftest.$ac_ext
5510cat >>conftest.$ac_ext <<_ACEOF
5511/* end confdefs.h. */
96b8a615 5512#include <$ac_header>
6de9cd9a
DN
5513_ACEOF
5514if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5515 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5516 ac_status=$?
5517 grep -v '^ *+' conftest.er1 >conftest.err
5518 rm -f conftest.er1
5519 cat conftest.err >&5
5520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5521 (exit $ac_status); } >/dev/null; then
5522 if test -s conftest.err; then
5523 ac_cpp_err=$ac_c_preproc_warn_flag
5524 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5525 else
5526 ac_cpp_err=
5527 fi
5528else
5529 ac_cpp_err=yes
5530fi
5531if test -z "$ac_cpp_err"; then
5532 ac_header_preproc=yes
5533else
5534 echo "$as_me: failed program was:" >&5
5535sed 's/^/| /' conftest.$ac_ext >&5
5536
5537 ac_header_preproc=no
5538fi
5539rm -f conftest.err conftest.$ac_ext
5540echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5541echo "${ECHO_T}$ac_header_preproc" >&6
5542
5543# So? What about this header?
5544case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5545 yes:no: )
96b8a615
AJ
5546 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5547echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5548 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5549echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6de9cd9a
DN
5550 ac_header_preproc=yes
5551 ;;
5552 no:yes:* )
96b8a615
AJ
5553 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5554echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5555 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5556echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5557 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5558echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5559 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5560echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5561 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5562echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5563 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5564echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6de9cd9a
DN
5565 (
5566 cat <<\_ASBOX
5567## ------------------------------------------------------ ##
5568## Report this to the GNU Fortran Runtime Library lists. ##
5569## ------------------------------------------------------ ##
5570_ASBOX
5571 ) |
5572 sed "s/^/$as_me: WARNING: /" >&2
5573 ;;
5574esac
96b8a615
AJ
5575echo "$as_me:$LINENO: checking for $ac_header" >&5
5576echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5577if eval "test \"\${$as_ac_Header+set}\" = set"; then
6de9cd9a
DN
5578 echo $ECHO_N "(cached) $ECHO_C" >&6
5579else
96b8a615 5580 eval "$as_ac_Header=\$ac_header_preproc"
6de9cd9a 5581fi
96b8a615
AJ
5582echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5583echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5584
5585fi
5586if test `eval echo '${'$as_ac_Header'}'` = yes; then
5587 cat >>confdefs.h <<_ACEOF
5588#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5589_ACEOF
6de9cd9a 5590
96b8a615 5591fi
6de9cd9a 5592
96b8a615 5593done
6de9cd9a
DN
5594
5595
96b8a615 5596for ac_func in getpagesize
6de9cd9a
DN
5597do
5598as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5599echo "$as_me:$LINENO: checking for $ac_func" >&5
5600echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5601if eval "test \"\${$as_ac_var+set}\" = set"; then
5602 echo $ECHO_N "(cached) $ECHO_C" >&6
5603else
d49ec2d1
KC
5604 if test x$gcc_no_link = xyes; then
5605 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
5606echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
5607 { (exit 1); exit 1; }; }
5608fi
5609cat >conftest.$ac_ext <<_ACEOF
6de9cd9a
DN
5610/* confdefs.h. */
5611_ACEOF
5612cat confdefs.h >>conftest.$ac_ext
5613cat >>conftest.$ac_ext <<_ACEOF
5614/* end confdefs.h. */
5615/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5616 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5617#define $ac_func innocuous_$ac_func
5618
5619/* System header to define __stub macros and hopefully few prototypes,
5620 which can conflict with char $ac_func (); below.
5621 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5622 <limits.h> exists even on freestanding compilers. */
5623
5624#ifdef __STDC__
5625# include <limits.h>
5626#else
5627# include <assert.h>
5628#endif
5629
5630#undef $ac_func
5631
5632/* Override any gcc2 internal prototype to avoid an error. */
5633#ifdef __cplusplus
5634extern "C"
5635{
5636#endif
5637/* We use char because int might match the return type of a gcc2
5638 builtin and then its argument prototype would still apply. */
5639char $ac_func ();
5640/* The GNU C library defines this for functions which it implements
5641 to always fail with ENOSYS. Some functions are actually named
5642 something starting with __ and the normal name is an alias. */
5643#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5644choke me
5645#else
5646char (*f) () = $ac_func;
5647#endif
5648#ifdef __cplusplus
5649}
5650#endif
5651
5652int
5653main ()
5654{
5655return f != $ac_func;
5656 ;
5657 return 0;
5658}
5659_ACEOF
5660rm -f conftest.$ac_objext conftest$ac_exeext
5661if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5662 (eval $ac_link) 2>conftest.er1
5663 ac_status=$?
5664 grep -v '^ *+' conftest.er1 >conftest.err
5665 rm -f conftest.er1
5666 cat conftest.err >&5
5667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5668 (exit $ac_status); } &&
df65f093 5669 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6de9cd9a
DN
5670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5671 (eval $ac_try) 2>&5
5672 ac_status=$?
5673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5674 (exit $ac_status); }; } &&
5675 { ac_try='test -s conftest$ac_exeext'
5676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5677 (eval $ac_try) 2>&5
5678 ac_status=$?
5679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5680 (exit $ac_status); }; }; then
5681 eval "$as_ac_var=yes"
5682else
5683 echo "$as_me: failed program was:" >&5
5684sed 's/^/| /' conftest.$ac_ext >&5
5685
5686eval "$as_ac_var=no"
5687fi
5688rm -f conftest.err conftest.$ac_objext \
5689 conftest$ac_exeext conftest.$ac_ext
5690fi
5691echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5692echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5693if test `eval echo '${'$as_ac_var'}'` = yes; then
5694 cat >>confdefs.h <<_ACEOF
5695#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5696_ACEOF
5697
5698fi
5699done
5700
96b8a615
AJ
5701echo "$as_me:$LINENO: checking for working mmap" >&5
5702echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
5703if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
6de9cd9a 5704 echo $ECHO_N "(cached) $ECHO_C" >&6
96b8a615
AJ
5705else
5706 if test "$cross_compiling" = yes; then
5707 ac_cv_func_mmap_fixed_mapped=no
6de9cd9a
DN
5708else
5709 cat >conftest.$ac_ext <<_ACEOF
5710/* confdefs.h. */
5711_ACEOF
5712cat confdefs.h >>conftest.$ac_ext
5713cat >>conftest.$ac_ext <<_ACEOF
5714/* end confdefs.h. */
96b8a615
AJ
5715$ac_includes_default
5716/* malloc might have been renamed as rpl_malloc. */
5717#undef malloc
5718
5719/* Thanks to Mike Haertel and Jim Avera for this test.
5720 Here is a matrix of mmap possibilities:
5721 mmap private not fixed
5722 mmap private fixed at somewhere currently unmapped
5723 mmap private fixed at somewhere already mapped
5724 mmap shared not fixed
5725 mmap shared fixed at somewhere currently unmapped
5726 mmap shared fixed at somewhere already mapped
5727 For private mappings, we should verify that changes cannot be read()
5728 back from the file, nor mmap's back from the file at a different
5729 address. (There have been systems where private was not correctly
5730 implemented like the infamous i386 svr4.0, and systems where the
5731 VM page cache was not coherent with the file system buffer cache
5732 like early versions of FreeBSD and possibly contemporary NetBSD.)
5733 For shared mappings, we should conversely verify that changes get
5734 propagated back to all the places they're supposed to be.
5735
5736 Grep wants private fixed already mapped.
5737 The main things grep needs to know about mmap are:
5738 * does it exist and is it safe to write into the mmap'd area
5739 * how to use it (BSD variants) */
5740
5741#include <fcntl.h>
5742#include <sys/mman.h>
5743
5744#if !STDC_HEADERS && !HAVE_STDLIB_H
5745char *malloc ();
5746#endif
5747
5748/* This mess was copied from the GNU getpagesize.h. */
5749#if !HAVE_GETPAGESIZE
5750/* Assume that all systems that can run configure have sys/param.h. */
5751# if !HAVE_SYS_PARAM_H
5752# define HAVE_SYS_PARAM_H 1
5753# endif
5754
5755# ifdef _SC_PAGESIZE
5756# define getpagesize() sysconf(_SC_PAGESIZE)
5757# else /* no _SC_PAGESIZE */
5758# if HAVE_SYS_PARAM_H
5759# include <sys/param.h>
5760# ifdef EXEC_PAGESIZE
5761# define getpagesize() EXEC_PAGESIZE
5762# else /* no EXEC_PAGESIZE */
5763# ifdef NBPG
5764# define getpagesize() NBPG * CLSIZE
5765# ifndef CLSIZE
5766# define CLSIZE 1
5767# endif /* no CLSIZE */
5768# else /* no NBPG */
5769# ifdef NBPC
5770# define getpagesize() NBPC
5771# else /* no NBPC */
5772# ifdef PAGESIZE
5773# define getpagesize() PAGESIZE
5774# endif /* PAGESIZE */
5775# endif /* no NBPC */
5776# endif /* no NBPG */
5777# endif /* no EXEC_PAGESIZE */
5778# else /* no HAVE_SYS_PARAM_H */
5779# define getpagesize() 8192 /* punt totally */
5780# endif /* no HAVE_SYS_PARAM_H */
5781# endif /* no _SC_PAGESIZE */
5782
5783#endif /* no HAVE_GETPAGESIZE */
6de9cd9a
DN
5784
5785int
5786main ()
5787{
96b8a615
AJ
5788 char *data, *data2, *data3;
5789 int i, pagesize;
5790 int fd;
5791
5792 pagesize = getpagesize ();
5793
5794 /* First, make a file with some known garbage in it. */
5795 data = (char *) malloc (pagesize);
5796 if (!data)
5797 exit (1);
5798 for (i = 0; i < pagesize; ++i)
5799 *(data + i) = rand ();
5800 umask (0);
5801 fd = creat ("conftest.mmap", 0600);
5802 if (fd < 0)
5803 exit (1);
5804 if (write (fd, data, pagesize) != pagesize)
5805 exit (1);
5806 close (fd);
5807
5808 /* Next, try to mmap the file at a fixed address which already has
5809 something else allocated at it. If we can, also make sure that
5810 we see the same garbage. */
5811 fd = open ("conftest.mmap", O_RDWR);
5812 if (fd < 0)
5813 exit (1);
5814 data2 = (char *) malloc (2 * pagesize);
5815 if (!data2)
5816 exit (1);
5817 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
5818 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
5819 MAP_PRIVATE | MAP_FIXED, fd, 0L))
5820 exit (1);
5821 for (i = 0; i < pagesize; ++i)
5822 if (*(data + i) != *(data2 + i))
5823 exit (1);
5824
5825 /* Finally, make sure that changes to the mapped area do not
5826 percolate back to the file as seen by read(). (This is a bug on
5827 some variants of i386 svr4.0.) */
5828 for (i = 0; i < pagesize; ++i)
5829 *(data2 + i) = *(data2 + i) + 1;
5830 data3 = (char *) malloc (pagesize);
5831 if (!data3)
5832 exit (1);
5833 if (read (fd, data3, pagesize) != pagesize)
5834 exit (1);
5835 for (i = 0; i < pagesize; ++i)
5836 if (*(data + i) != *(data3 + i))
5837 exit (1);
5838 close (fd);
5839 exit (0);
6de9cd9a
DN
5840}
5841_ACEOF
96b8a615
AJ
5842rm -f conftest$ac_exeext
5843if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5844 (eval $ac_link) 2>&5
6de9cd9a
DN
5845 ac_status=$?
5846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
96b8a615 5847 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6de9cd9a
DN
5848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5849 (eval $ac_try) 2>&5
5850 ac_status=$?
5851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5852 (exit $ac_status); }; }; then
96b8a615 5853 ac_cv_func_mmap_fixed_mapped=yes
6de9cd9a 5854else
96b8a615
AJ
5855 echo "$as_me: program exited with status $ac_status" >&5
5856echo "$as_me: failed program was:" >&5
6de9cd9a
DN
5857sed 's/^/| /' conftest.$ac_ext >&5
5858
96b8a615
AJ
5859( exit $ac_status )
5860ac_cv_func_mmap_fixed_mapped=no
6de9cd9a 5861fi
96b8a615 5862rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6de9cd9a 5863fi
96b8a615
AJ
5864fi
5865echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
5866echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
5867if test $ac_cv_func_mmap_fixed_mapped = yes; then
6de9cd9a
DN
5868
5869cat >>confdefs.h <<\_ACEOF
96b8a615 5870#define HAVE_MMAP 1
6de9cd9a
DN
5871_ACEOF
5872
5873fi
96b8a615 5874rm -f conftest.mmap
6de9cd9a 5875
d49ec2d1 5876fi
96b8a615
AJ
5877echo "$as_me:$LINENO: checking for off_t" >&5
5878echo $ECHO_N "checking for off_t... $ECHO_C" >&6
5879if test "${ac_cv_type_off_t+set}" = set; then
6de9cd9a
DN
5880 echo $ECHO_N "(cached) $ECHO_C" >&6
5881else
96b8a615
AJ
5882 cat >conftest.$ac_ext <<_ACEOF
5883/* confdefs.h. */
5884_ACEOF
5885cat confdefs.h >>conftest.$ac_ext
5886cat >>conftest.$ac_ext <<_ACEOF
5887/* end confdefs.h. */
5888$ac_includes_default
6de9cd9a
DN
5889int
5890main ()
5891{
96b8a615
AJ
5892if ((off_t *) 0)
5893 return 0;
5894if (sizeof (off_t))
5895 return 0;
6de9cd9a
DN
5896 ;
5897 return 0;
5898}
5899_ACEOF
96b8a615
AJ
5900rm -f conftest.$ac_objext
5901if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5902 (eval $ac_compile) 2>conftest.er1
6de9cd9a
DN
5903 ac_status=$?
5904 grep -v '^ *+' conftest.er1 >conftest.err
5905 rm -f conftest.er1
5906 cat conftest.err >&5
5907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5908 (exit $ac_status); } &&
df65f093 5909 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6de9cd9a
DN
5910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5911 (eval $ac_try) 2>&5
5912 ac_status=$?
5913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5914 (exit $ac_status); }; } &&
96b8a615 5915 { ac_try='test -s conftest.$ac_objext'
6de9cd9a
DN
5916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5917 (eval $ac_try) 2>&5
5918 ac_status=$?
5919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5920 (exit $ac_status); }; }; then
96b8a615 5921 ac_cv_type_off_t=yes
6de9cd9a
DN
5922else
5923 echo "$as_me: failed program was:" >&5
5924sed 's/^/| /' conftest.$ac_ext >&5
5925
96b8a615 5926ac_cv_type_off_t=no
6de9cd9a 5927fi
96b8a615 5928rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6de9cd9a 5929fi
96b8a615
AJ
5930echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
5931echo "${ECHO_T}$ac_cv_type_off_t" >&6
5932if test $ac_cv_type_off_t = yes; then
5933 :
5934else
5935
5936cat >>confdefs.h <<_ACEOF
5937#define off_t long
6de9cd9a
DN
5938_ACEOF
5939
5940fi
6de9cd9a 5941
96b8a615
AJ
5942
5943# check header files
5944echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5945echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5946if test "${ac_cv_header_stdc+set}" = set; then
6de9cd9a
DN
5947 echo $ECHO_N "(cached) $ECHO_C" >&6
5948else
5949 cat >conftest.$ac_ext <<_ACEOF
5950/* confdefs.h. */
5951_ACEOF
5952cat confdefs.h >>conftest.$ac_ext
5953cat >>conftest.$ac_ext <<_ACEOF
5954/* end confdefs.h. */
96b8a615
AJ
5955#include <stdlib.h>
5956#include <stdarg.h>
5957#include <string.h>
5958#include <float.h>
5959
6de9cd9a
DN
5960int
5961main ()
5962{
96b8a615 5963
6de9cd9a
DN
5964 ;
5965 return 0;
5966}
5967_ACEOF
5968rm -f conftest.$ac_objext
5969if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5970 (eval $ac_compile) 2>conftest.er1
5971 ac_status=$?
5972 grep -v '^ *+' conftest.er1 >conftest.err
5973 rm -f conftest.er1
5974 cat conftest.err >&5
5975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5976 (exit $ac_status); } &&
df65f093 5977 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6de9cd9a
DN
5978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5979 (eval $ac_try) 2>&5
5980 ac_status=$?
5981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5982 (exit $ac_status); }; } &&
5983 { ac_try='test -s conftest.$ac_objext'
5984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5985 (eval $ac_try) 2>&5
5986 ac_status=$?
5987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5988 (exit $ac_status); }; }; then
96b8a615 5989 ac_cv_header_stdc=yes
6de9cd9a
DN
5990else
5991 echo "$as_me: failed program was:" >&5
5992sed 's/^/| /' conftest.$ac_ext >&5
5993
96b8a615 5994ac_cv_header_stdc=no
6de9cd9a
DN
5995fi
5996rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
96b8a615
AJ
5997
5998if test $ac_cv_header_stdc = yes; then
5999 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6de9cd9a
DN
6000 cat >conftest.$ac_ext <<_ACEOF
6001/* confdefs.h. */
6002_ACEOF
6003cat confdefs.h >>conftest.$ac_ext
6004cat >>conftest.$ac_ext <<_ACEOF
6005/* end confdefs.h. */
96b8a615 6006#include <string.h>
6de9cd9a 6007
6de9cd9a 6008_ACEOF
96b8a615
AJ
6009if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6010 $EGREP "memchr" >/dev/null 2>&1; then
6011 :
6de9cd9a 6012else
96b8a615 6013 ac_cv_header_stdc=no
6de9cd9a 6014fi
96b8a615
AJ
6015rm -f conftest*
6016
6de9cd9a 6017fi
6de9cd9a 6018
96b8a615
AJ
6019if test $ac_cv_header_stdc = yes; then
6020 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6021 cat >conftest.$ac_ext <<_ACEOF
6022/* confdefs.h. */
6023_ACEOF
6024cat confdefs.h >>conftest.$ac_ext
6025cat >>conftest.$ac_ext <<_ACEOF
6026/* end confdefs.h. */
6027#include <stdlib.h>
6028
6de9cd9a 6029_ACEOF
96b8a615
AJ
6030if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6031 $EGREP "free" >/dev/null 2>&1; then
6032 :
6033else
6034 ac_cv_header_stdc=no
6035fi
6036rm -f conftest*
6de9cd9a 6037
96b8a615 6038fi
6de9cd9a 6039
96b8a615
AJ
6040if test $ac_cv_header_stdc = yes; then
6041 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6042 if test "$cross_compiling" = yes; then
6043 :
6de9cd9a
DN
6044else
6045 cat >conftest.$ac_ext <<_ACEOF
6046/* confdefs.h. */
6047_ACEOF
6048cat confdefs.h >>conftest.$ac_ext
6049cat >>conftest.$ac_ext <<_ACEOF
6050/* end confdefs.h. */
96b8a615
AJ
6051#include <ctype.h>
6052#if ((' ' & 0x0FF) == 0x020)
6053# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6054# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6de9cd9a 6055#else
96b8a615
AJ
6056# define ISLOWER(c) \
6057 (('a' <= (c) && (c) <= 'i') \
6058 || ('j' <= (c) && (c) <= 'r') \
6059 || ('s' <= (c) && (c) <= 'z'))
6060# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6de9cd9a
DN
6061#endif
6062
96b8a615 6063#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6de9cd9a
DN
6064int
6065main ()
6066{
96b8a615
AJ
6067 int i;
6068 for (i = 0; i < 256; i++)
6069 if (XOR (islower (i), ISLOWER (i))
6070 || toupper (i) != TOUPPER (i))
6071 exit(2);
6072 exit (0);
6de9cd9a
DN
6073}
6074_ACEOF
96b8a615 6075rm -f conftest$ac_exeext
6de9cd9a 6076if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
96b8a615 6077 (eval $ac_link) 2>&5
6de9cd9a
DN
6078 ac_status=$?
6079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
96b8a615 6080 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6de9cd9a
DN
6081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6082 (eval $ac_try) 2>&5
6083 ac_status=$?
96b8a615
AJ
6084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6085 (exit $ac_status); }; }; then
6086 :
6de9cd9a 6087else
96b8a615
AJ
6088 echo "$as_me: program exited with status $ac_status" >&5
6089echo "$as_me: failed program was:" >&5
6090sed 's/^/| /' conftest.$ac_ext >&5
6de9cd9a 6091
96b8a615
AJ
6092( exit $ac_status )
6093ac_cv_header_stdc=no
6de9cd9a 6094fi
96b8a615 6095rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6de9cd9a
DN
6096fi
6097fi
6de9cd9a 6098fi
96b8a615
AJ
6099echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6100echo "${ECHO_T}$ac_cv_header_stdc" >&6
6101if test $ac_cv_header_stdc = yes; then
6de9cd9a 6102
96b8a615
AJ
6103cat >>confdefs.h <<\_ACEOF
6104#define STDC_HEADERS 1
6105_ACEOF
6de9cd9a
DN
6106
6107fi
6108
6de9cd9a
DN
6109
6110
6de9cd9a 6111
6de9cd9a
DN
6112
6113
6114
96b8a615
AJ
6115for ac_header in stdlib.h stdio.h string.h stddef.h math.h unistd.h
6116do
6117as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6118if eval "test \"\${$as_ac_Header+set}\" = set"; then
6119 echo "$as_me:$LINENO: checking for $ac_header" >&5
6120echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6121if eval "test \"\${$as_ac_Header+set}\" = set"; then
6122 echo $ECHO_N "(cached) $ECHO_C" >&6
6123fi
6124echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6125echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6de9cd9a 6126else
96b8a615
AJ
6127 # Is the header compilable?
6128echo "$as_me:$LINENO: checking $ac_header usability" >&5
6129echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6130cat >conftest.$ac_ext <<_ACEOF
6131/* confdefs.h. */
6132_ACEOF
6133cat confdefs.h >>conftest.$ac_ext
6134cat >>conftest.$ac_ext <<_ACEOF
6135/* end confdefs.h. */
6136$ac_includes_default
6137#include <$ac_header>
6138_ACEOF
6139rm -f conftest.$ac_objext
6140if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6141 (eval $ac_compile) 2>conftest.er1
6142 ac_status=$?
6143 grep -v '^ *+' conftest.er1 >conftest.err
6144 rm -f conftest.er1
6145 cat conftest.err >&5
6146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6147 (exit $ac_status); } &&
df65f093 6148 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
96b8a615
AJ
6149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6150 (eval $ac_try) 2>&5
6151 ac_status=$?
6152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6153 (exit $ac_status); }; } &&
6154 { ac_try='test -s conftest.$ac_objext'
6155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6156 (eval $ac_try) 2>&5
6157 ac_status=$?
6158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6159 (exit $ac_status); }; }; then
6160 ac_header_compiler=yes
6de9cd9a 6161else
96b8a615
AJ
6162 echo "$as_me: failed program was:" >&5
6163sed 's/^/| /' conftest.$ac_ext >&5
6164
6165ac_header_compiler=no
6de9cd9a 6166fi
96b8a615
AJ
6167rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6168echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6169echo "${ECHO_T}$ac_header_compiler" >&6
6170
6171# Is the header present?
6172echo "$as_me:$LINENO: checking $ac_header presence" >&5
6173echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6174cat >conftest.$ac_ext <<_ACEOF
6175/* confdefs.h. */
6176_ACEOF
6177cat confdefs.h >>conftest.$ac_ext
6178cat >>conftest.$ac_ext <<_ACEOF
6179/* end confdefs.h. */
6180#include <$ac_header>
6181_ACEOF
6182if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6183 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6184 ac_status=$?
6185 grep -v '^ *+' conftest.er1 >conftest.err
6186 rm -f conftest.er1
6187 cat conftest.err >&5
6188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6189 (exit $ac_status); } >/dev/null; then
6190 if test -s conftest.err; then
6191 ac_cpp_err=$ac_c_preproc_warn_flag
6192 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6193 else
6194 ac_cpp_err=
6195 fi
6de9cd9a 6196else
96b8a615 6197 ac_cpp_err=yes
6de9cd9a 6198fi
96b8a615
AJ
6199if test -z "$ac_cpp_err"; then
6200 ac_header_preproc=yes
6de9cd9a 6201else
96b8a615
AJ
6202 echo "$as_me: failed program was:" >&5
6203sed 's/^/| /' conftest.$ac_ext >&5
6204
6205 ac_header_preproc=no
6de9cd9a 6206fi
96b8a615
AJ
6207rm -f conftest.err conftest.$ac_ext
6208echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6209echo "${ECHO_T}$ac_header_preproc" >&6
6210
6211# So? What about this header?
6212case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6213 yes:no: )
6214 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6215echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6216 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6217echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6218 ac_header_preproc=yes
6219 ;;
6220 no:yes:* )
6221 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6222echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6223 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6224echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6225 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6226echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6227 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6228echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6229 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6230echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6231 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6232echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6233 (
6234 cat <<\_ASBOX
6235## ------------------------------------------------------ ##
6236## Report this to the GNU Fortran Runtime Library lists. ##
6237## ------------------------------------------------------ ##
6238_ASBOX
6239 ) |
6240 sed "s/^/$as_me: WARNING: /" >&2
6241 ;;
6242esac
6243echo "$as_me:$LINENO: checking for $ac_header" >&5
6244echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6245if eval "test \"\${$as_ac_Header+set}\" = set"; then
6de9cd9a
DN
6246 echo $ECHO_N "(cached) $ECHO_C" >&6
6247else
96b8a615 6248 eval "$as_ac_Header=\$ac_header_preproc"
6de9cd9a 6249fi
96b8a615
AJ
6250echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6251echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6de9cd9a 6252
96b8a615
AJ
6253fi
6254if test `eval echo '${'$as_ac_Header'}'` = yes; then
6255 cat >>confdefs.h <<_ACEOF
6256#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6257_ACEOF
6de9cd9a 6258
6de9cd9a 6259fi
6de9cd9a 6260
96b8a615
AJ
6261done
6262
6263
6264
6265
6266
6267
6268for ac_header in time.h sys/params.h sys/time.h sys/times.h sys/resource.h
6269do
6270as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6271if eval "test \"\${$as_ac_Header+set}\" = set"; then
6272 echo "$as_me:$LINENO: checking for $ac_header" >&5
f596fc98
AL
6273echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6274if eval "test \"\${$as_ac_Header+set}\" = set"; then
6275 echo $ECHO_N "(cached) $ECHO_C" >&6
6276fi
6277echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6278echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6279else
6280 # Is the header compilable?
6281echo "$as_me:$LINENO: checking $ac_header usability" >&5
6282echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6283cat >conftest.$ac_ext <<_ACEOF
6284/* confdefs.h. */
6285_ACEOF
6286cat confdefs.h >>conftest.$ac_ext
6287cat >>conftest.$ac_ext <<_ACEOF
6288/* end confdefs.h. */
6289$ac_includes_default
6290#include <$ac_header>
6291_ACEOF
6292rm -f conftest.$ac_objext
6293if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6294 (eval $ac_compile) 2>conftest.er1
6295 ac_status=$?
6296 grep -v '^ *+' conftest.er1 >conftest.err
6297 rm -f conftest.er1
6298 cat conftest.err >&5
6299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6300 (exit $ac_status); } &&
df65f093 6301 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
f596fc98
AL
6302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6303 (eval $ac_try) 2>&5
6304 ac_status=$?
6305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6306 (exit $ac_status); }; } &&
6307 { ac_try='test -s conftest.$ac_objext'
6308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6309 (eval $ac_try) 2>&5
6310 ac_status=$?
6311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6312 (exit $ac_status); }; }; then
6313 ac_header_compiler=yes
6314else
6315 echo "$as_me: failed program was:" >&5
6316sed 's/^/| /' conftest.$ac_ext >&5
6317
6318ac_header_compiler=no
6319fi
6320rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6321echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6322echo "${ECHO_T}$ac_header_compiler" >&6
6323
6324# Is the header present?
6325echo "$as_me:$LINENO: checking $ac_header presence" >&5
6326echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6327cat >conftest.$ac_ext <<_ACEOF
6328/* confdefs.h. */
6329_ACEOF
6330cat confdefs.h >>conftest.$ac_ext
6331cat >>conftest.$ac_ext <<_ACEOF
6332/* end confdefs.h. */
6333#include <$ac_header>
6334_ACEOF
6335if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6336 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6337 ac_status=$?
6338 grep -v '^ *+' conftest.er1 >conftest.err
6339 rm -f conftest.er1
6340 cat conftest.err >&5
6341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6342 (exit $ac_status); } >/dev/null; then
6343 if test -s conftest.err; then
6344 ac_cpp_err=$ac_c_preproc_warn_flag
6345 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6346 else
6347 ac_cpp_err=
6348 fi
6349else
6350 ac_cpp_err=yes
6351fi
6352if test -z "$ac_cpp_err"; then
6353 ac_header_preproc=yes
6354else
6355 echo "$as_me: failed program was:" >&5
6356sed 's/^/| /' conftest.$ac_ext >&5
6357
6358 ac_header_preproc=no
6359fi
6360rm -f conftest.err conftest.$ac_ext
6361echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6362echo "${ECHO_T}$ac_header_preproc" >&6
6363
6364# So? What about this header?
6365case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6366 yes:no: )
6367 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6368echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6369 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6370echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6371 ac_header_preproc=yes
6372 ;;
6373 no:yes:* )
6374 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6375echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6376 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6377echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6378 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6379echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6380 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6381echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6382 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6383echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6384 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6385echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6386 (
6387 cat <<\_ASBOX
6388## ------------------------------------------------------ ##
6389## Report this to the GNU Fortran Runtime Library lists. ##
6390## ------------------------------------------------------ ##
6391_ASBOX
6392 ) |
6393 sed "s/^/$as_me: WARNING: /" >&2
6394 ;;
6395esac
6396echo "$as_me:$LINENO: checking for $ac_header" >&5
6397echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6398if eval "test \"\${$as_ac_Header+set}\" = set"; then
6399 echo $ECHO_N "(cached) $ECHO_C" >&6
6400else
6401 eval "$as_ac_Header=\$ac_header_preproc"
6402fi
6403echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6404echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6405
6406fi
6407if test `eval echo '${'$as_ac_Header'}'` = yes; then
6408 cat >>confdefs.h <<_ACEOF
6409#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6410_ACEOF
6411
6412fi
6413
6414done
6415
6416
df65f093
SK
6417
6418
6419for ac_header in sys/mman.h sys/types.h sys/stat.h
f596fc98
AL
6420do
6421as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6422if eval "test \"\${$as_ac_Header+set}\" = set"; then
6423 echo "$as_me:$LINENO: checking for $ac_header" >&5
96b8a615
AJ
6424echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6425if eval "test \"\${$as_ac_Header+set}\" = set"; then
6de9cd9a 6426 echo $ECHO_N "(cached) $ECHO_C" >&6
96b8a615
AJ
6427fi
6428echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6429echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6de9cd9a 6430else
96b8a615
AJ
6431 # Is the header compilable?
6432echo "$as_me:$LINENO: checking $ac_header usability" >&5
6433echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6434cat >conftest.$ac_ext <<_ACEOF
6435/* confdefs.h. */
6436_ACEOF
6437cat confdefs.h >>conftest.$ac_ext
6438cat >>conftest.$ac_ext <<_ACEOF
6439/* end confdefs.h. */
6440$ac_includes_default
6441#include <$ac_header>
6442_ACEOF
6443rm -f conftest.$ac_objext
6444if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6445 (eval $ac_compile) 2>conftest.er1
6446 ac_status=$?
6447 grep -v '^ *+' conftest.er1 >conftest.err
6448 rm -f conftest.er1
6449 cat conftest.err >&5
6450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6451 (exit $ac_status); } &&
df65f093 6452 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
96b8a615
AJ
6453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6454 (eval $ac_try) 2>&5
6455 ac_status=$?
6456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6457 (exit $ac_status); }; } &&
6458 { ac_try='test -s conftest.$ac_objext'
6459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6460 (eval $ac_try) 2>&5
6461 ac_status=$?
6462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6463 (exit $ac_status); }; }; then
6464 ac_header_compiler=yes
6de9cd9a 6465else
96b8a615
AJ
6466 echo "$as_me: failed program was:" >&5
6467sed 's/^/| /' conftest.$ac_ext >&5
6de9cd9a 6468
96b8a615
AJ
6469ac_header_compiler=no
6470fi
6471rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6472echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6473echo "${ECHO_T}$ac_header_compiler" >&6
6de9cd9a 6474
96b8a615
AJ
6475# Is the header present?
6476echo "$as_me:$LINENO: checking $ac_header presence" >&5
6477echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6478cat >conftest.$ac_ext <<_ACEOF
6479/* confdefs.h. */
6480_ACEOF
6481cat confdefs.h >>conftest.$ac_ext
6482cat >>conftest.$ac_ext <<_ACEOF
6483/* end confdefs.h. */
6484#include <$ac_header>
6485_ACEOF
6486if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6487 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6488 ac_status=$?
6489 grep -v '^ *+' conftest.er1 >conftest.err
6490 rm -f conftest.er1
6491 cat conftest.err >&5
6492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6493 (exit $ac_status); } >/dev/null; then
6494 if test -s conftest.err; then
6495 ac_cpp_err=$ac_c_preproc_warn_flag
6496 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6497 else
6498 ac_cpp_err=
6499 fi
6de9cd9a 6500else
96b8a615 6501 ac_cpp_err=yes
6de9cd9a 6502fi
96b8a615
AJ
6503if test -z "$ac_cpp_err"; then
6504 ac_header_preproc=yes
6de9cd9a 6505else
96b8a615
AJ
6506 echo "$as_me: failed program was:" >&5
6507sed 's/^/| /' conftest.$ac_ext >&5
6de9cd9a 6508
96b8a615
AJ
6509 ac_header_preproc=no
6510fi
6511rm -f conftest.err conftest.$ac_ext
6512echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6513echo "${ECHO_T}$ac_header_preproc" >&6
6de9cd9a 6514
96b8a615
AJ
6515# So? What about this header?
6516case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6517 yes:no: )
6518 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6519echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6520 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6521echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6522 ac_header_preproc=yes
6de9cd9a 6523 ;;
96b8a615
AJ
6524 no:yes:* )
6525 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6526echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6527 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6528echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6529 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6530echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6531 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6532echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6533 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6534echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6535 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6536echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6537 (
6538 cat <<\_ASBOX
6539## ------------------------------------------------------ ##
6540## Report this to the GNU Fortran Runtime Library lists. ##
6541## ------------------------------------------------------ ##
6542_ASBOX
6543 ) |
6544 sed "s/^/$as_me: WARNING: /" >&2
6de9cd9a 6545 ;;
96b8a615
AJ
6546esac
6547echo "$as_me:$LINENO: checking for $ac_header" >&5
6548echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6549if eval "test \"\${$as_ac_Header+set}\" = set"; then
6550 echo $ECHO_N "(cached) $ECHO_C" >&6
6551else
6552 eval "$as_ac_Header=\$ac_header_preproc"
6553fi
6554echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6555echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6de9cd9a 6556
96b8a615
AJ
6557fi
6558if test `eval echo '${'$as_ac_Header'}'` = yes; then
6559 cat >>confdefs.h <<_ACEOF
6560#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6561_ACEOF
6de9cd9a 6562
96b8a615 6563fi
6de9cd9a 6564
96b8a615 6565done
6de9cd9a 6566
96b8a615
AJ
6567if test "${ac_cv_header_complex_h+set}" = set; then
6568 echo "$as_me:$LINENO: checking for complex.h" >&5
6569echo $ECHO_N "checking for complex.h... $ECHO_C" >&6
6570if test "${ac_cv_header_complex_h+set}" = set; then
6571 echo $ECHO_N "(cached) $ECHO_C" >&6
6572fi
6573echo "$as_me:$LINENO: result: $ac_cv_header_complex_h" >&5
6574echo "${ECHO_T}$ac_cv_header_complex_h" >&6
6575else
6576 # Is the header compilable?
6577echo "$as_me:$LINENO: checking complex.h usability" >&5
6578echo $ECHO_N "checking complex.h usability... $ECHO_C" >&6
6579cat >conftest.$ac_ext <<_ACEOF
6580/* confdefs.h. */
6581_ACEOF
6582cat confdefs.h >>conftest.$ac_ext
6583cat >>conftest.$ac_ext <<_ACEOF
6584/* end confdefs.h. */
6585$ac_includes_default
6586#include <complex.h>
6587_ACEOF
6588rm -f conftest.$ac_objext
6589if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6590 (eval $ac_compile) 2>conftest.er1
6591 ac_status=$?
6592 grep -v '^ *+' conftest.er1 >conftest.err
6593 rm -f conftest.er1
6594 cat conftest.err >&5
6595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6596 (exit $ac_status); } &&
df65f093 6597 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
96b8a615
AJ
6598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6599 (eval $ac_try) 2>&5
6600 ac_status=$?
6601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6602 (exit $ac_status); }; } &&
6603 { ac_try='test -s conftest.$ac_objext'
6604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6605 (eval $ac_try) 2>&5
6606 ac_status=$?
6607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6608 (exit $ac_status); }; }; then
6609 ac_header_compiler=yes
6610else
6611 echo "$as_me: failed program was:" >&5
6612sed 's/^/| /' conftest.$ac_ext >&5
6de9cd9a 6613
96b8a615
AJ
6614ac_header_compiler=no
6615fi
6616rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6617echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6618echo "${ECHO_T}$ac_header_compiler" >&6
6de9cd9a 6619
96b8a615
AJ
6620# Is the header present?
6621echo "$as_me:$LINENO: checking complex.h presence" >&5
6622echo $ECHO_N "checking complex.h presence... $ECHO_C" >&6
6623cat >conftest.$ac_ext <<_ACEOF
6624/* confdefs.h. */
6625_ACEOF
6626cat confdefs.h >>conftest.$ac_ext
6627cat >>conftest.$ac_ext <<_ACEOF
6628/* end confdefs.h. */
6629#include <complex.h>
6630_ACEOF
6631if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6632 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6633 ac_status=$?
6634 grep -v '^ *+' conftest.er1 >conftest.err
6635 rm -f conftest.er1
6636 cat conftest.err >&5
6637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6638 (exit $ac_status); } >/dev/null; then
6639 if test -s conftest.err; then
6640 ac_cpp_err=$ac_c_preproc_warn_flag
6641 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6de9cd9a 6642 else
96b8a615 6643 ac_cpp_err=
6de9cd9a 6644 fi
96b8a615
AJ
6645else
6646 ac_cpp_err=yes
6647fi
6648if test -z "$ac_cpp_err"; then
6649 ac_header_preproc=yes
6650else
6651 echo "$as_me: failed program was:" >&5
6652sed 's/^/| /' conftest.$ac_ext >&5
6de9cd9a 6653
96b8a615
AJ
6654 ac_header_preproc=no
6655fi
6656rm -f conftest.err conftest.$ac_ext
6657echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6658echo "${ECHO_T}$ac_header_preproc" >&6
6de9cd9a 6659
96b8a615
AJ
6660# So? What about this header?
6661case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6662 yes:no: )
6663 { echo "$as_me:$LINENO: WARNING: complex.h: accepted by the compiler, rejected by the preprocessor!" >&5
6664echo "$as_me: WARNING: complex.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6665 { echo "$as_me:$LINENO: WARNING: complex.h: proceeding with the compiler's result" >&5
6666echo "$as_me: WARNING: complex.h: proceeding with the compiler's result" >&2;}
6667 ac_header_preproc=yes
6de9cd9a 6668 ;;
96b8a615
AJ
6669 no:yes:* )
6670 { echo "$as_me:$LINENO: WARNING: complex.h: present but cannot be compiled" >&5
6671echo "$as_me: WARNING: complex.h: present but cannot be compiled" >&2;}
6672 { echo "$as_me:$LINENO: WARNING: complex.h: check for missing prerequisite headers?" >&5
6673echo "$as_me: WARNING: complex.h: check for missing prerequisite headers?" >&2;}
6674 { echo "$as_me:$LINENO: WARNING: complex.h: see the Autoconf documentation" >&5
6675echo "$as_me: WARNING: complex.h: see the Autoconf documentation" >&2;}
6676 { echo "$as_me:$LINENO: WARNING: complex.h: section \"Present But Cannot Be Compiled\"" >&5
6677echo "$as_me: WARNING: complex.h: section \"Present But Cannot Be Compiled\"" >&2;}
6678 { echo "$as_me:$LINENO: WARNING: complex.h: proceeding with the preprocessor's result" >&5
6679echo "$as_me: WARNING: complex.h: proceeding with the preprocessor's result" >&2;}
6680 { echo "$as_me:$LINENO: WARNING: complex.h: in the future, the compiler will take precedence" >&5
6681echo "$as_me: WARNING: complex.h: in the future, the compiler will take precedence" >&2;}
6682 (
6683 cat <<\_ASBOX
6684## ------------------------------------------------------ ##
6685## Report this to the GNU Fortran Runtime Library lists. ##
6686## ------------------------------------------------------ ##
6687_ASBOX
6688 ) |
6689 sed "s/^/$as_me: WARNING: /" >&2
6de9cd9a 6690 ;;
6de9cd9a 6691esac
96b8a615
AJ
6692echo "$as_me:$LINENO: checking for complex.h" >&5
6693echo $ECHO_N "checking for complex.h... $ECHO_C" >&6
6694if test "${ac_cv_header_complex_h+set}" = set; then
6695 echo $ECHO_N "(cached) $ECHO_C" >&6
6696else
6697 ac_cv_header_complex_h=$ac_header_preproc
6698fi
6699echo "$as_me:$LINENO: result: $ac_cv_header_complex_h" >&5
6700echo "${ECHO_T}$ac_cv_header_complex_h" >&6
6de9cd9a
DN
6701
6702fi
96b8a615 6703if test $ac_cv_header_complex_h = yes; then
6de9cd9a 6704
96b8a615
AJ
6705cat >>confdefs.h <<\_ACEOF
6706#define HAVE_COMPLEX_H 1
6707_ACEOF
6de9cd9a 6708
96b8a615 6709fi
6de9cd9a
DN
6710
6711
6de9cd9a 6712
df65f093
SK
6713echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
6714echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
6715if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
6716 echo $ECHO_N "(cached) $ECHO_C" >&6
6717else
6718 cat >conftest.$ac_ext <<_ACEOF
6719/* confdefs.h. */
6720_ACEOF
6721cat confdefs.h >>conftest.$ac_ext
6722cat >>conftest.$ac_ext <<_ACEOF
6723/* end confdefs.h. */
6724$ac_includes_default
6725int
6726main ()
6727{
6728static struct stat ac_aggr;
6729if (ac_aggr.st_blksize)
6730return 0;
6731 ;
6732 return 0;
6733}
6734_ACEOF
6735rm -f conftest.$ac_objext
6736if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6737 (eval $ac_compile) 2>conftest.er1
6738 ac_status=$?
6739 grep -v '^ *+' conftest.er1 >conftest.err
6740 rm -f conftest.er1
6741 cat conftest.err >&5
6742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6743 (exit $ac_status); } &&
6744 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6746 (eval $ac_try) 2>&5
6747 ac_status=$?
6748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6749 (exit $ac_status); }; } &&
6750 { ac_try='test -s conftest.$ac_objext'
6751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6752 (eval $ac_try) 2>&5
6753 ac_status=$?
6754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6755 (exit $ac_status); }; }; then
6756 ac_cv_member_struct_stat_st_blksize=yes
6757else
6758 echo "$as_me: failed program was:" >&5
6759sed 's/^/| /' conftest.$ac_ext >&5
6760
6761cat >conftest.$ac_ext <<_ACEOF
6762/* confdefs.h. */
6763_ACEOF
6764cat confdefs.h >>conftest.$ac_ext
6765cat >>conftest.$ac_ext <<_ACEOF
6766/* end confdefs.h. */
6767$ac_includes_default
6768int
6769main ()
6770{
6771static struct stat ac_aggr;
6772if (sizeof ac_aggr.st_blksize)
6773return 0;
6774 ;
6775 return 0;
6776}
6777_ACEOF
6778rm -f conftest.$ac_objext
6779if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6780 (eval $ac_compile) 2>conftest.er1
6781 ac_status=$?
6782 grep -v '^ *+' conftest.er1 >conftest.err
6783 rm -f conftest.er1
6784 cat conftest.err >&5
6785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6786 (exit $ac_status); } &&
6787 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6789 (eval $ac_try) 2>&5
6790 ac_status=$?
6791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6792 (exit $ac_status); }; } &&
6793 { ac_try='test -s conftest.$ac_objext'
6794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6795 (eval $ac_try) 2>&5
6796 ac_status=$?
6797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6798 (exit $ac_status); }; }; then
6799 ac_cv_member_struct_stat_st_blksize=yes
6800else
6801 echo "$as_me: failed program was:" >&5
6802sed 's/^/| /' conftest.$ac_ext >&5
6803
6804ac_cv_member_struct_stat_st_blksize=no
6805fi
6806rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6807fi
6808rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6809fi
6810echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
6811echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
6812if test $ac_cv_member_struct_stat_st_blksize = yes; then
6813
6814cat >>confdefs.h <<_ACEOF
6815#define HAVE_STRUCT_STAT_ST_BLKSIZE 1
6816_ACEOF
6817
6818
6819fi
6820
6821echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
6822echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
6823if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
6824 echo $ECHO_N "(cached) $ECHO_C" >&6
6825else
6826 cat >conftest.$ac_ext <<_ACEOF
6827/* confdefs.h. */
6828_ACEOF
6829cat confdefs.h >>conftest.$ac_ext
6830cat >>conftest.$ac_ext <<_ACEOF
6831/* end confdefs.h. */
6832$ac_includes_default
6833int
6834main ()
6835{
6836static struct stat ac_aggr;
6837if (ac_aggr.st_blocks)
6838return 0;
6839 ;
6840 return 0;
6841}
6842_ACEOF
6843rm -f conftest.$ac_objext
6844if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6845 (eval $ac_compile) 2>conftest.er1
6846 ac_status=$?
6847 grep -v '^ *+' conftest.er1 >conftest.err
6848 rm -f conftest.er1
6849 cat conftest.err >&5
6850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6851 (exit $ac_status); } &&
6852 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6854 (eval $ac_try) 2>&5
6855 ac_status=$?
6856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6857 (exit $ac_status); }; } &&
6858 { ac_try='test -s conftest.$ac_objext'
6859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6860 (eval $ac_try) 2>&5
6861 ac_status=$?
6862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6863 (exit $ac_status); }; }; then
6864 ac_cv_member_struct_stat_st_blocks=yes
6865else
6866 echo "$as_me: failed program was:" >&5
6867sed 's/^/| /' conftest.$ac_ext >&5
6868
6869cat >conftest.$ac_ext <<_ACEOF
6870/* confdefs.h. */
6871_ACEOF
6872cat confdefs.h >>conftest.$ac_ext
6873cat >>conftest.$ac_ext <<_ACEOF
6874/* end confdefs.h. */
6875$ac_includes_default
6876int
6877main ()
6878{
6879static struct stat ac_aggr;
6880if (sizeof ac_aggr.st_blocks)
6881return 0;
6882 ;
6883 return 0;
6884}
6885_ACEOF
6886rm -f conftest.$ac_objext
6887if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6888 (eval $ac_compile) 2>conftest.er1
6889 ac_status=$?
6890 grep -v '^ *+' conftest.er1 >conftest.err
6891 rm -f conftest.er1
6892 cat conftest.err >&5
6893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6894 (exit $ac_status); } &&
6895 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6897 (eval $ac_try) 2>&5
6898 ac_status=$?
6899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6900 (exit $ac_status); }; } &&
6901 { ac_try='test -s conftest.$ac_objext'
6902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6903 (eval $ac_try) 2>&5
6904 ac_status=$?
6905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6906 (exit $ac_status); }; }; then
6907 ac_cv_member_struct_stat_st_blocks=yes
6908else
6909 echo "$as_me: failed program was:" >&5
6910sed 's/^/| /' conftest.$ac_ext >&5
6911
6912ac_cv_member_struct_stat_st_blocks=no
6913fi
6914rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6915fi
6916rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6917fi
6918echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
6919echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
6920if test $ac_cv_member_struct_stat_st_blocks = yes; then
6921
6922cat >>confdefs.h <<_ACEOF
6923#define HAVE_STRUCT_STAT_ST_BLOCKS 1
6924_ACEOF
6925
6926
6927fi
6928
6929echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
6930echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6
6931if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
6932 echo $ECHO_N "(cached) $ECHO_C" >&6
6933else
6934 cat >conftest.$ac_ext <<_ACEOF
6935/* confdefs.h. */
6936_ACEOF
6937cat confdefs.h >>conftest.$ac_ext
6938cat >>conftest.$ac_ext <<_ACEOF
6939/* end confdefs.h. */
6940$ac_includes_default
6941int
6942main ()
6943{
6944static struct stat ac_aggr;
6945if (ac_aggr.st_rdev)
6946return 0;
6947 ;
6948 return 0;
6949}
6950_ACEOF
6951rm -f conftest.$ac_objext
6952if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6953 (eval $ac_compile) 2>conftest.er1
6954 ac_status=$?
6955 grep -v '^ *+' conftest.er1 >conftest.err
6956 rm -f conftest.er1
6957 cat conftest.err >&5
6958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6959 (exit $ac_status); } &&
6960 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6962 (eval $ac_try) 2>&5
6963 ac_status=$?
6964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6965 (exit $ac_status); }; } &&
6966 { ac_try='test -s conftest.$ac_objext'
6967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6968 (eval $ac_try) 2>&5
6969 ac_status=$?
6970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6971 (exit $ac_status); }; }; then
6972 ac_cv_member_struct_stat_st_rdev=yes
6973else
6974 echo "$as_me: failed program was:" >&5
6975sed 's/^/| /' conftest.$ac_ext >&5
6976
6977cat >conftest.$ac_ext <<_ACEOF
6978/* confdefs.h. */
6979_ACEOF
6980cat confdefs.h >>conftest.$ac_ext
6981cat >>conftest.$ac_ext <<_ACEOF
6982/* end confdefs.h. */
6983$ac_includes_default
6984int
6985main ()
6986{
6987static struct stat ac_aggr;
6988if (sizeof ac_aggr.st_rdev)
6989return 0;
6990 ;
6991 return 0;
6992}
6993_ACEOF
6994rm -f conftest.$ac_objext
6995if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6996 (eval $ac_compile) 2>conftest.er1
6997 ac_status=$?
6998 grep -v '^ *+' conftest.er1 >conftest.err
6999 rm -f conftest.er1
7000 cat conftest.err >&5
7001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7002 (exit $ac_status); } &&
7003 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7005 (eval $ac_try) 2>&5
7006 ac_status=$?
7007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7008 (exit $ac_status); }; } &&
7009 { ac_try='test -s conftest.$ac_objext'
7010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7011 (eval $ac_try) 2>&5
7012 ac_status=$?
7013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7014 (exit $ac_status); }; }; then
7015 ac_cv_member_struct_stat_st_rdev=yes
7016else
7017 echo "$as_me: failed program was:" >&5
7018sed 's/^/| /' conftest.$ac_ext >&5
7019
7020ac_cv_member_struct_stat_st_rdev=no
7021fi
7022rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7023fi
7024rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7025fi
7026echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
7027echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6
7028if test $ac_cv_member_struct_stat_st_rdev = yes; then
7029
7030cat >>confdefs.h <<_ACEOF
7031#define HAVE_STRUCT_STAT_ST_RDEV 1
7032_ACEOF
7033
7034
7035fi
7036
7037
96b8a615
AJ
7038# Check for complex math functions
7039echo "$as_me:$LINENO: checking for csin in -lm" >&5
7040echo $ECHO_N "checking for csin in -lm... $ECHO_C" >&6
7041if test "${ac_cv_lib_m_csin+set}" = set; then
6de9cd9a
DN
7042 echo $ECHO_N "(cached) $ECHO_C" >&6
7043else
96b8a615
AJ
7044 ac_check_lib_save_LIBS=$LIBS
7045LIBS="-lm $LIBS"
d49ec2d1
KC
7046if test x$gcc_no_link = xyes; then
7047 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7048echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7049 { (exit 1); exit 1; }; }
7050fi
96b8a615
AJ
7051cat >conftest.$ac_ext <<_ACEOF
7052/* confdefs.h. */
7053_ACEOF
7054cat confdefs.h >>conftest.$ac_ext
7055cat >>conftest.$ac_ext <<_ACEOF
7056/* end confdefs.h. */
6de9cd9a 7057
96b8a615
AJ
7058/* Override any gcc2 internal prototype to avoid an error. */
7059#ifdef __cplusplus
7060extern "C"
7061#endif
7062/* We use char because int might match the return type of a gcc2
7063 builtin and then its argument prototype would still apply. */
7064char csin ();
7065int
7066main ()
7067{
7068csin ();
7069 ;
7070 return 0;
7071}
7072_ACEOF
7073rm -f conftest.$ac_objext conftest$ac_exeext
7074if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7075 (eval $ac_link) 2>conftest.er1
7076 ac_status=$?
7077 grep -v '^ *+' conftest.er1 >conftest.err
7078 rm -f conftest.er1
7079 cat conftest.err >&5
7080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7081 (exit $ac_status); } &&
df65f093 7082 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
96b8a615
AJ
7083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7084 (eval $ac_try) 2>&5
7085 ac_status=$?
7086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7087 (exit $ac_status); }; } &&
7088 { ac_try='test -s conftest$ac_exeext'
7089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7090 (eval $ac_try) 2>&5
7091 ac_status=$?
7092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7093 (exit $ac_status); }; }; then
7094 ac_cv_lib_m_csin=yes
7095else
7096 echo "$as_me: failed program was:" >&5
7097sed 's/^/| /' conftest.$ac_ext >&5
7098
7099ac_cv_lib_m_csin=no
7100fi
7101rm -f conftest.err conftest.$ac_objext \
7102 conftest$ac_exeext conftest.$ac_ext
7103LIBS=$ac_check_lib_save_LIBS
7104fi
7105echo "$as_me:$LINENO: result: $ac_cv_lib_m_csin" >&5
7106echo "${ECHO_T}$ac_cv_lib_m_csin" >&6
7107if test $ac_cv_lib_m_csin = yes; then
7108 need_math="no"
7109else
7110 need_math="yes"
7111fi
7112
7113
96b8a615
AJ
7114# Check for library functions.
7115
7116
41724e6a 7117
2cbcdeba 7118
3969c39f
EB
7119
7120for ac_func in getrusage times mkstemp strtof snprintf
96b8a615
AJ
7121do
7122as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7123echo "$as_me:$LINENO: checking for $ac_func" >&5
7124echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7125if eval "test \"\${$as_ac_var+set}\" = set"; then
6de9cd9a
DN
7126 echo $ECHO_N "(cached) $ECHO_C" >&6
7127else
d49ec2d1
KC
7128 if test x$gcc_no_link = xyes; then
7129 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7130echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7131 { (exit 1); exit 1; }; }
7132fi
7133cat >conftest.$ac_ext <<_ACEOF
96b8a615
AJ
7134/* confdefs.h. */
7135_ACEOF
7136cat confdefs.h >>conftest.$ac_ext
7137cat >>conftest.$ac_ext <<_ACEOF
7138/* end confdefs.h. */
7139/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7140 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7141#define $ac_func innocuous_$ac_func
6de9cd9a 7142
96b8a615
AJ
7143/* System header to define __stub macros and hopefully few prototypes,
7144 which can conflict with char $ac_func (); below.
7145 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7146 <limits.h> exists even on freestanding compilers. */
6de9cd9a 7147
96b8a615
AJ
7148#ifdef __STDC__
7149# include <limits.h>
7150#else
7151# include <assert.h>
7152#endif
6de9cd9a 7153
96b8a615
AJ
7154#undef $ac_func
7155
7156/* Override any gcc2 internal prototype to avoid an error. */
7157#ifdef __cplusplus
7158extern "C"
7159{
7160#endif
7161/* We use char because int might match the return type of a gcc2
7162 builtin and then its argument prototype would still apply. */
7163char $ac_func ();
7164/* The GNU C library defines this for functions which it implements
7165 to always fail with ENOSYS. Some functions are actually named
7166 something starting with __ and the normal name is an alias. */
7167#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7168choke me
7169#else
7170char (*f) () = $ac_func;
7171#endif
7172#ifdef __cplusplus
7173}
7174#endif
7175
7176int
7177main ()
7178{
7179return f != $ac_func;
7180 ;
7181 return 0;
7182}
7183_ACEOF
7184rm -f conftest.$ac_objext conftest$ac_exeext
7185if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7186 (eval $ac_link) 2>conftest.er1
7187 ac_status=$?
7188 grep -v '^ *+' conftest.er1 >conftest.err
7189 rm -f conftest.er1
7190 cat conftest.err >&5
7191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7192 (exit $ac_status); } &&
df65f093 7193 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
96b8a615
AJ
7194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7195 (eval $ac_try) 2>&5
7196 ac_status=$?
7197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7198 (exit $ac_status); }; } &&
7199 { ac_try='test -s conftest$ac_exeext'
7200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7201 (eval $ac_try) 2>&5
7202 ac_status=$?
7203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7204 (exit $ac_status); }; }; then
7205 eval "$as_ac_var=yes"
6de9cd9a 7206else
96b8a615
AJ
7207 echo "$as_me: failed program was:" >&5
7208sed 's/^/| /' conftest.$ac_ext >&5
7209
7210eval "$as_ac_var=no"
7211fi
7212rm -f conftest.err conftest.$ac_objext \
7213 conftest$ac_exeext conftest.$ac_ext
6de9cd9a 7214fi
96b8a615
AJ
7215echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7216echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7217if test `eval echo '${'$as_ac_var'}'` = yes; then
7218 cat >>confdefs.h <<_ACEOF
7219#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7220_ACEOF
6de9cd9a 7221
6de9cd9a 7222fi
96b8a615 7223done
6de9cd9a 7224
6de9cd9a 7225
4c0c6b9f
SK
7226# Check libc for getgid, getpid, getuid
7227echo "$as_me:$LINENO: checking for getgid in -lc" >&5
7228echo $ECHO_N "checking for getgid in -lc... $ECHO_C" >&6
7229if test "${ac_cv_lib_c_getgid+set}" = set; then
7230 echo $ECHO_N "(cached) $ECHO_C" >&6
7231else
7232 ac_check_lib_save_LIBS=$LIBS
7233LIBS="-lc $LIBS"
d49ec2d1
KC
7234if test x$gcc_no_link = xyes; then
7235 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7236echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7237 { (exit 1); exit 1; }; }
7238fi
4c0c6b9f
SK
7239cat >conftest.$ac_ext <<_ACEOF
7240/* confdefs.h. */
7241_ACEOF
7242cat confdefs.h >>conftest.$ac_ext
7243cat >>conftest.$ac_ext <<_ACEOF
7244/* end confdefs.h. */
7245
7246/* Override any gcc2 internal prototype to avoid an error. */
7247#ifdef __cplusplus
7248extern "C"
7249#endif
7250/* We use char because int might match the return type of a gcc2
7251 builtin and then its argument prototype would still apply. */
7252char getgid ();
7253int
7254main ()
7255{
7256getgid ();
7257 ;
7258 return 0;
7259}
7260_ACEOF
7261rm -f conftest.$ac_objext conftest$ac_exeext
7262if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7263 (eval $ac_link) 2>conftest.er1
7264 ac_status=$?
7265 grep -v '^ *+' conftest.er1 >conftest.err
7266 rm -f conftest.er1
7267 cat conftest.err >&5
7268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7269 (exit $ac_status); } &&
df65f093 7270 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4c0c6b9f
SK
7271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7272 (eval $ac_try) 2>&5
7273 ac_status=$?
7274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7275 (exit $ac_status); }; } &&
7276 { ac_try='test -s conftest$ac_exeext'
7277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7278 (eval $ac_try) 2>&5
7279 ac_status=$?
7280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7281 (exit $ac_status); }; }; then
7282 ac_cv_lib_c_getgid=yes
7283else
7284 echo "$as_me: failed program was:" >&5
7285sed 's/^/| /' conftest.$ac_ext >&5
7286
7287ac_cv_lib_c_getgid=no
7288fi
7289rm -f conftest.err conftest.$ac_objext \
7290 conftest$ac_exeext conftest.$ac_ext
7291LIBS=$ac_check_lib_save_LIBS
7292fi
7293echo "$as_me:$LINENO: result: $ac_cv_lib_c_getgid" >&5
7294echo "${ECHO_T}$ac_cv_lib_c_getgid" >&6
7295if test $ac_cv_lib_c_getgid = yes; then
7296
7297cat >>confdefs.h <<\_ACEOF
7298#define HAVE_GETGID 1
7299_ACEOF
7300
7301fi
7302
7303echo "$as_me:$LINENO: checking for getpid in -lc" >&5
7304echo $ECHO_N "checking for getpid in -lc... $ECHO_C" >&6
7305if test "${ac_cv_lib_c_getpid+set}" = set; then
7306 echo $ECHO_N "(cached) $ECHO_C" >&6
7307else
7308 ac_check_lib_save_LIBS=$LIBS
7309LIBS="-lc $LIBS"
d49ec2d1
KC
7310if test x$gcc_no_link = xyes; then
7311 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7312echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7313 { (exit 1); exit 1; }; }
7314fi
4c0c6b9f
SK
7315cat >conftest.$ac_ext <<_ACEOF
7316/* confdefs.h. */
7317_ACEOF
7318cat confdefs.h >>conftest.$ac_ext
7319cat >>conftest.$ac_ext <<_ACEOF
7320/* end confdefs.h. */
7321
7322/* Override any gcc2 internal prototype to avoid an error. */
7323#ifdef __cplusplus
7324extern "C"
7325#endif
7326/* We use char because int might match the return type of a gcc2
7327 builtin and then its argument prototype would still apply. */
7328char getpid ();
7329int
7330main ()
7331{
7332getpid ();
7333 ;
7334 return 0;
7335}
7336_ACEOF
7337rm -f conftest.$ac_objext conftest$ac_exeext
7338if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7339 (eval $ac_link) 2>conftest.er1
7340 ac_status=$?
7341 grep -v '^ *+' conftest.er1 >conftest.err
7342 rm -f conftest.er1
7343 cat conftest.err >&5
7344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7345 (exit $ac_status); } &&
df65f093 7346 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4c0c6b9f
SK
7347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7348 (eval $ac_try) 2>&5
7349 ac_status=$?
7350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7351 (exit $ac_status); }; } &&
7352 { ac_try='test -s conftest$ac_exeext'
7353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7354 (eval $ac_try) 2>&5
7355 ac_status=$?
7356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7357 (exit $ac_status); }; }; then
7358 ac_cv_lib_c_getpid=yes
7359else
7360 echo "$as_me: failed program was:" >&5
7361sed 's/^/| /' conftest.$ac_ext >&5
7362
7363ac_cv_lib_c_getpid=no
7364fi
7365rm -f conftest.err conftest.$ac_objext \
7366 conftest$ac_exeext conftest.$ac_ext
7367LIBS=$ac_check_lib_save_LIBS
7368fi
7369echo "$as_me:$LINENO: result: $ac_cv_lib_c_getpid" >&5
7370echo "${ECHO_T}$ac_cv_lib_c_getpid" >&6
7371if test $ac_cv_lib_c_getpid = yes; then
7372
7373cat >>confdefs.h <<\_ACEOF
7374#define HAVE_GETPID 1
7375_ACEOF
7376
7377fi
7378
7379echo "$as_me:$LINENO: checking for getuid in -lc" >&5
7380echo $ECHO_N "checking for getuid in -lc... $ECHO_C" >&6
7381if test "${ac_cv_lib_c_getuid+set}" = set; then
7382 echo $ECHO_N "(cached) $ECHO_C" >&6
7383else
7384 ac_check_lib_save_LIBS=$LIBS
7385LIBS="-lc $LIBS"
d49ec2d1
KC
7386if test x$gcc_no_link = xyes; then
7387 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7388echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7389 { (exit 1); exit 1; }; }
7390fi
4c0c6b9f
SK
7391cat >conftest.$ac_ext <<_ACEOF
7392/* confdefs.h. */
7393_ACEOF
7394cat confdefs.h >>conftest.$ac_ext
7395cat >>conftest.$ac_ext <<_ACEOF
7396/* end confdefs.h. */
7397
7398/* Override any gcc2 internal prototype to avoid an error. */
7399#ifdef __cplusplus
7400extern "C"
7401#endif
7402/* We use char because int might match the return type of a gcc2
7403 builtin and then its argument prototype would still apply. */
7404char getuid ();
7405int
7406main ()
7407{
7408getuid ();
7409 ;
7410 return 0;
7411}
7412_ACEOF
7413rm -f conftest.$ac_objext conftest$ac_exeext
7414if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7415 (eval $ac_link) 2>conftest.er1
7416 ac_status=$?
7417 grep -v '^ *+' conftest.er1 >conftest.err
7418 rm -f conftest.er1
7419 cat conftest.err >&5
7420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7421 (exit $ac_status); } &&
df65f093 7422 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4c0c6b9f
SK
7423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7424 (eval $ac_try) 2>&5
7425 ac_status=$?
7426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7427 (exit $ac_status); }; } &&
7428 { ac_try='test -s conftest$ac_exeext'
7429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7430 (eval $ac_try) 2>&5
7431 ac_status=$?
7432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7433 (exit $ac_status); }; }; then
7434 ac_cv_lib_c_getuid=yes
7435else
7436 echo "$as_me: failed program was:" >&5
7437sed 's/^/| /' conftest.$ac_ext >&5
7438
7439ac_cv_lib_c_getuid=no
7440fi
7441rm -f conftest.err conftest.$ac_objext \
7442 conftest$ac_exeext conftest.$ac_ext
7443LIBS=$ac_check_lib_save_LIBS
7444fi
7445echo "$as_me:$LINENO: result: $ac_cv_lib_c_getuid" >&5
7446echo "${ECHO_T}$ac_cv_lib_c_getuid" >&6
7447if test $ac_cv_lib_c_getuid = yes; then
7448
7449cat >>confdefs.h <<\_ACEOF
7450#define HAVE_GETUID 1
7451_ACEOF
7452
7453fi
7454
7455
453310d8 7456# Check for C99 (and other IEEE) math functions
e8525382 7457# ??? This list seems awful long. Is there a better way to test for these?
453310d8
RS
7458echo "$as_me:$LINENO: checking for acosf in -lm" >&5
7459echo $ECHO_N "checking for acosf in -lm... $ECHO_C" >&6
7460if test "${ac_cv_lib_m_acosf+set}" = set; then
7461 echo $ECHO_N "(cached) $ECHO_C" >&6
7462else
7463 ac_check_lib_save_LIBS=$LIBS
7464LIBS="-lm $LIBS"
d49ec2d1
KC
7465if test x$gcc_no_link = xyes; then
7466 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7467echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7468 { (exit 1); exit 1; }; }
7469fi
453310d8
RS
7470cat >conftest.$ac_ext <<_ACEOF
7471/* confdefs.h. */
7472_ACEOF
7473cat confdefs.h >>conftest.$ac_ext
7474cat >>conftest.$ac_ext <<_ACEOF
7475/* end confdefs.h. */
7476
7477/* Override any gcc2 internal prototype to avoid an error. */
7478#ifdef __cplusplus
7479extern "C"
7480#endif
7481/* We use char because int might match the return type of a gcc2
7482 builtin and then its argument prototype would still apply. */
7483char acosf ();
7484int
7485main ()
7486{
7487acosf ();
7488 ;
7489 return 0;
7490}
7491_ACEOF
7492rm -f conftest.$ac_objext conftest$ac_exeext
7493if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7494 (eval $ac_link) 2>conftest.er1
7495 ac_status=$?
7496 grep -v '^ *+' conftest.er1 >conftest.err
7497 rm -f conftest.er1
7498 cat conftest.err >&5
7499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7500 (exit $ac_status); } &&
df65f093 7501 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
453310d8
RS
7502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7503 (eval $ac_try) 2>&5
7504 ac_status=$?
7505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7506 (exit $ac_status); }; } &&
7507 { ac_try='test -s conftest$ac_exeext'
7508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7509 (eval $ac_try) 2>&5
7510 ac_status=$?
7511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7512 (exit $ac_status); }; }; then
7513 ac_cv_lib_m_acosf=yes
7514else
7515 echo "$as_me: failed program was:" >&5
7516sed 's/^/| /' conftest.$ac_ext >&5
7517
7518ac_cv_lib_m_acosf=no
7519fi
7520rm -f conftest.err conftest.$ac_objext \
7521 conftest$ac_exeext conftest.$ac_ext
7522LIBS=$ac_check_lib_save_LIBS
7523fi
7524echo "$as_me:$LINENO: result: $ac_cv_lib_m_acosf" >&5
7525echo "${ECHO_T}$ac_cv_lib_m_acosf" >&6
7526if test $ac_cv_lib_m_acosf = yes; then
7527
7528cat >>confdefs.h <<\_ACEOF
7529#define HAVE_ACOSF 1
7530_ACEOF
7531
7532fi
7533
7534echo "$as_me:$LINENO: checking for asinf in -lm" >&5
7535echo $ECHO_N "checking for asinf in -lm... $ECHO_C" >&6
7536if test "${ac_cv_lib_m_asinf+set}" = set; then
7537 echo $ECHO_N "(cached) $ECHO_C" >&6
7538else
7539 ac_check_lib_save_LIBS=$LIBS
7540LIBS="-lm $LIBS"
d49ec2d1
KC
7541if test x$gcc_no_link = xyes; then
7542 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7543echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7544 { (exit 1); exit 1; }; }
7545fi
453310d8
RS
7546cat >conftest.$ac_ext <<_ACEOF
7547/* confdefs.h. */
7548_ACEOF
7549cat confdefs.h >>conftest.$ac_ext
7550cat >>conftest.$ac_ext <<_ACEOF
7551/* end confdefs.h. */
7552
7553/* Override any gcc2 internal prototype to avoid an error. */
7554#ifdef __cplusplus
7555extern "C"
7556#endif
7557/* We use char because int might match the return type of a gcc2
7558 builtin and then its argument prototype would still apply. */
7559char asinf ();
7560int
7561main ()
7562{
7563asinf ();
7564 ;
7565 return 0;
7566}
7567_ACEOF
7568rm -f conftest.$ac_objext conftest$ac_exeext
7569if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7570 (eval $ac_link) 2>conftest.er1
7571 ac_status=$?
7572 grep -v '^ *+' conftest.er1 >conftest.err
7573 rm -f conftest.er1
7574 cat conftest.err >&5
7575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7576 (exit $ac_status); } &&
df65f093 7577 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
453310d8
RS
7578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7579 (eval $ac_try) 2>&5
7580 ac_status=$?
7581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7582 (exit $ac_status); }; } &&
7583 { ac_try='test -s conftest$ac_exeext'
7584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7585 (eval $ac_try) 2>&5
7586 ac_status=$?
7587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7588 (exit $ac_status); }; }; then
7589 ac_cv_lib_m_asinf=yes
7590else
7591 echo "$as_me: failed program was:" >&5
7592sed 's/^/| /' conftest.$ac_ext >&5
7593
7594ac_cv_lib_m_asinf=no
7595fi
7596rm -f conftest.err conftest.$ac_objext \
7597 conftest$ac_exeext conftest.$ac_ext
7598LIBS=$ac_check_lib_save_LIBS
7599fi
7600echo "$as_me:$LINENO: result: $ac_cv_lib_m_asinf" >&5
7601echo "${ECHO_T}$ac_cv_lib_m_asinf" >&6
7602if test $ac_cv_lib_m_asinf = yes; then
7603
7604cat >>confdefs.h <<\_ACEOF
7605#define HAVE_ASINF 1
7606_ACEOF
7607
7608fi
7609
7610echo "$as_me:$LINENO: checking for atan2f in -lm" >&5
7611echo $ECHO_N "checking for atan2f in -lm... $ECHO_C" >&6
7612if test "${ac_cv_lib_m_atan2f+set}" = set; then
7613 echo $ECHO_N "(cached) $ECHO_C" >&6
7614else
7615 ac_check_lib_save_LIBS=$LIBS
7616LIBS="-lm $LIBS"
d49ec2d1
KC
7617if test x$gcc_no_link = xyes; then
7618 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7619echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7620 { (exit 1); exit 1; }; }
7621fi
453310d8
RS
7622cat >conftest.$ac_ext <<_ACEOF
7623/* confdefs.h. */
7624_ACEOF
7625cat confdefs.h >>conftest.$ac_ext
7626cat >>conftest.$ac_ext <<_ACEOF
7627/* end confdefs.h. */
7628
7629/* Override any gcc2 internal prototype to avoid an error. */
7630#ifdef __cplusplus
7631extern "C"
7632#endif
7633/* We use char because int might match the return type of a gcc2
7634 builtin and then its argument prototype would still apply. */
7635char atan2f ();
7636int
7637main ()
7638{
7639atan2f ();
7640 ;
7641 return 0;
7642}
7643_ACEOF
7644rm -f conftest.$ac_objext conftest$ac_exeext
7645if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7646 (eval $ac_link) 2>conftest.er1
7647 ac_status=$?
7648 grep -v '^ *+' conftest.er1 >conftest.err
7649 rm -f conftest.er1
7650 cat conftest.err >&5
7651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7652 (exit $ac_status); } &&
df65f093 7653 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
453310d8
RS
7654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7655 (eval $ac_try) 2>&5
7656 ac_status=$?
7657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7658 (exit $ac_status); }; } &&
7659 { ac_try='test -s conftest$ac_exeext'
7660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7661 (eval $ac_try) 2>&5
7662 ac_status=$?
7663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7664 (exit $ac_status); }; }; then
7665 ac_cv_lib_m_atan2f=yes
7666else
7667 echo "$as_me: failed program was:" >&5
7668sed 's/^/| /' conftest.$ac_ext >&5
7669
7670ac_cv_lib_m_atan2f=no
7671fi
7672rm -f conftest.err conftest.$ac_objext \
7673 conftest$ac_exeext conftest.$ac_ext
7674LIBS=$ac_check_lib_save_LIBS
7675fi
7676echo "$as_me:$LINENO: result: $ac_cv_lib_m_atan2f" >&5
7677echo "${ECHO_T}$ac_cv_lib_m_atan2f" >&6
7678if test $ac_cv_lib_m_atan2f = yes; then
7679
7680cat >>confdefs.h <<\_ACEOF
7681#define HAVE_ATAN2F 1
7682_ACEOF
7683
7684fi
7685
7686echo "$as_me:$LINENO: checking for atanf in -lm" >&5
7687echo $ECHO_N "checking for atanf in -lm... $ECHO_C" >&6
7688if test "${ac_cv_lib_m_atanf+set}" = set; then
7689 echo $ECHO_N "(cached) $ECHO_C" >&6
7690else
7691 ac_check_lib_save_LIBS=$LIBS
7692LIBS="-lm $LIBS"
d49ec2d1
KC
7693if test x$gcc_no_link = xyes; then
7694 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7695echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7696 { (exit 1); exit 1; }; }
7697fi
453310d8
RS
7698cat >conftest.$ac_ext <<_ACEOF
7699/* confdefs.h. */
7700_ACEOF
7701cat confdefs.h >>conftest.$ac_ext
7702cat >>conftest.$ac_ext <<_ACEOF
7703/* end confdefs.h. */
7704
7705/* Override any gcc2 internal prototype to avoid an error. */
7706#ifdef __cplusplus
7707extern "C"
7708#endif
7709/* We use char because int might match the return type of a gcc2
7710 builtin and then its argument prototype would still apply. */
7711char atanf ();
7712int
7713main ()
7714{
7715atanf ();
7716 ;
7717 return 0;
7718}
7719_ACEOF
7720rm -f conftest.$ac_objext conftest$ac_exeext
7721if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7722 (eval $ac_link) 2>conftest.er1
7723 ac_status=$?
7724 grep -v '^ *+' conftest.er1 >conftest.err
7725 rm -f conftest.er1
7726 cat conftest.err >&5
7727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7728 (exit $ac_status); } &&
df65f093 7729 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
453310d8
RS
7730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7731 (eval $ac_try) 2>&5
7732 ac_status=$?
7733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7734 (exit $ac_status); }; } &&
7735 { ac_try='test -s conftest$ac_exeext'
7736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7737 (eval $ac_try) 2>&5
7738 ac_status=$?
7739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7740 (exit $ac_status); }; }; then
7741 ac_cv_lib_m_atanf=yes
7742else
7743 echo "$as_me: failed program was:" >&5
7744sed 's/^/| /' conftest.$ac_ext >&5
7745
7746ac_cv_lib_m_atanf=no
7747fi
7748rm -f conftest.err conftest.$ac_objext \
7749 conftest$ac_exeext conftest.$ac_ext
7750LIBS=$ac_check_lib_save_LIBS
7751fi
7752echo "$as_me:$LINENO: result: $ac_cv_lib_m_atanf" >&5
7753echo "${ECHO_T}$ac_cv_lib_m_atanf" >&6
7754if test $ac_cv_lib_m_atanf = yes; then
7755
7756cat >>confdefs.h <<\_ACEOF
7757#define HAVE_ATANF 1
7758_ACEOF
7759
7760fi
7761
7762echo "$as_me:$LINENO: checking for ceilf in -lm" >&5
7763echo $ECHO_N "checking for ceilf in -lm... $ECHO_C" >&6
7764if test "${ac_cv_lib_m_ceilf+set}" = set; then
7765 echo $ECHO_N "(cached) $ECHO_C" >&6
7766else
7767 ac_check_lib_save_LIBS=$LIBS
7768LIBS="-lm $LIBS"
d49ec2d1
KC
7769if test x$gcc_no_link = xyes; then
7770 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7771echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7772 { (exit 1); exit 1; }; }
7773fi
453310d8
RS
7774cat >conftest.$ac_ext <<_ACEOF
7775/* confdefs.h. */
7776_ACEOF
7777cat confdefs.h >>conftest.$ac_ext
7778cat >>conftest.$ac_ext <<_ACEOF
7779/* end confdefs.h. */
7780
7781/* Override any gcc2 internal prototype to avoid an error. */
7782#ifdef __cplusplus
7783extern "C"
7784#endif
7785/* We use char because int might match the return type of a gcc2
7786 builtin and then its argument prototype would still apply. */
7787char ceilf ();
7788int
7789main ()
7790{
7791ceilf ();
7792 ;
7793 return 0;
7794}
7795_ACEOF
7796rm -f conftest.$ac_objext conftest$ac_exeext
7797if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7798 (eval $ac_link) 2>conftest.er1
7799 ac_status=$?
7800 grep -v '^ *+' conftest.er1 >conftest.err
7801 rm -f conftest.er1
7802 cat conftest.err >&5
7803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7804 (exit $ac_status); } &&
df65f093 7805 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
453310d8
RS
7806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7807 (eval $ac_try) 2>&5
7808 ac_status=$?
7809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7810 (exit $ac_status); }; } &&
7811 { ac_try='test -s conftest$ac_exeext'
7812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7813 (eval $ac_try) 2>&5
7814 ac_status=$?
7815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7816 (exit $ac_status); }; }; then
7817 ac_cv_lib_m_ceilf=yes
7818else
7819 echo "$as_me: failed program was:" >&5
7820sed 's/^/| /' conftest.$ac_ext >&5
7821
7822ac_cv_lib_m_ceilf=no
7823fi
7824rm -f conftest.err conftest.$ac_objext \
7825 conftest$ac_exeext conftest.$ac_ext
7826LIBS=$ac_check_lib_save_LIBS
7827fi
7828echo "$as_me:$LINENO: result: $ac_cv_lib_m_ceilf" >&5
7829echo "${ECHO_T}$ac_cv_lib_m_ceilf" >&6
7830if test $ac_cv_lib_m_ceilf = yes; then
7831
7832cat >>confdefs.h <<\_ACEOF
7833#define HAVE_CEILF 1
7834_ACEOF
7835
7836fi
7837
7838echo "$as_me:$LINENO: checking for copysignf in -lm" >&5
7839echo $ECHO_N "checking for copysignf in -lm... $ECHO_C" >&6
7840if test "${ac_cv_lib_m_copysignf+set}" = set; then
7841 echo $ECHO_N "(cached) $ECHO_C" >&6
7842else
7843 ac_check_lib_save_LIBS=$LIBS
7844LIBS="-lm $LIBS"
d49ec2d1
KC
7845if test x$gcc_no_link = xyes; then
7846 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7847echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7848 { (exit 1); exit 1; }; }
7849fi
453310d8
RS
7850cat >conftest.$ac_ext <<_ACEOF
7851/* confdefs.h. */
7852_ACEOF
7853cat confdefs.h >>conftest.$ac_ext
7854cat >>conftest.$ac_ext <<_ACEOF
7855/* end confdefs.h. */
7856
7857/* Override any gcc2 internal prototype to avoid an error. */
7858#ifdef __cplusplus
7859extern "C"
7860#endif
7861/* We use char because int might match the return type of a gcc2
7862 builtin and then its argument prototype would still apply. */
7863char copysignf ();
7864int
7865main ()
7866{
7867copysignf ();
7868 ;
7869 return 0;
7870}
7871_ACEOF
7872rm -f conftest.$ac_objext conftest$ac_exeext
7873if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7874 (eval $ac_link) 2>conftest.er1
7875 ac_status=$?
7876 grep -v '^ *+' conftest.er1 >conftest.err
7877 rm -f conftest.er1
7878 cat conftest.err >&5
7879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7880 (exit $ac_status); } &&
df65f093 7881 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
453310d8
RS
7882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7883 (eval $ac_try) 2>&5
7884 ac_status=$?
7885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7886 (exit $ac_status); }; } &&
7887 { ac_try='test -s conftest$ac_exeext'
7888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7889 (eval $ac_try) 2>&5
7890 ac_status=$?
7891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7892 (exit $ac_status); }; }; then
7893 ac_cv_lib_m_copysignf=yes
7894else
7895 echo "$as_me: failed program was:" >&5
7896sed 's/^/| /' conftest.$ac_ext >&5
7897
7898ac_cv_lib_m_copysignf=no
7899fi
7900rm -f conftest.err conftest.$ac_objext \
7901 conftest$ac_exeext conftest.$ac_ext
7902LIBS=$ac_check_lib_save_LIBS
7903fi
7904echo "$as_me:$LINENO: result: $ac_cv_lib_m_copysignf" >&5
7905echo "${ECHO_T}$ac_cv_lib_m_copysignf" >&6
7906if test $ac_cv_lib_m_copysignf = yes; then
7907
7908cat >>confdefs.h <<\_ACEOF
7909#define HAVE_COPYSIGNF 1
7910_ACEOF
7911
7912fi
7913
7914echo "$as_me:$LINENO: checking for cosf in -lm" >&5
7915echo $ECHO_N "checking for cosf in -lm... $ECHO_C" >&6
7916if test "${ac_cv_lib_m_cosf+set}" = set; then
7917 echo $ECHO_N "(cached) $ECHO_C" >&6
7918else
7919 ac_check_lib_save_LIBS=$LIBS
7920LIBS="-lm $LIBS"
d49ec2d1
KC
7921if test x$gcc_no_link = xyes; then
7922 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7923echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7924 { (exit 1); exit 1; }; }
7925fi
453310d8
RS
7926cat >conftest.$ac_ext <<_ACEOF
7927/* confdefs.h. */
7928_ACEOF
7929cat confdefs.h >>conftest.$ac_ext
7930cat >>conftest.$ac_ext <<_ACEOF
7931/* end confdefs.h. */
7932
7933/* Override any gcc2 internal prototype to avoid an error. */
7934#ifdef __cplusplus
7935extern "C"
7936#endif
7937/* We use char because int might match the return type of a gcc2
7938 builtin and then its argument prototype would still apply. */
7939char cosf ();
7940int
7941main ()
7942{
7943cosf ();
7944 ;
7945 return 0;
7946}
7947_ACEOF
7948rm -f conftest.$ac_objext conftest$ac_exeext
7949if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7950 (eval $ac_link) 2>conftest.er1
7951 ac_status=$?
7952 grep -v '^ *+' conftest.er1 >conftest.err
7953 rm -f conftest.er1
7954 cat conftest.err >&5
7955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7956 (exit $ac_status); } &&
df65f093 7957 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
453310d8
RS
7958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7959 (eval $ac_try) 2>&5
7960 ac_status=$?
7961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7962 (exit $ac_status); }; } &&
7963 { ac_try='test -s conftest$ac_exeext'
7964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7965 (eval $ac_try) 2>&5
7966 ac_status=$?
7967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7968 (exit $ac_status); }; }; then
7969 ac_cv_lib_m_cosf=yes
7970else
7971 echo "$as_me: failed program was:" >&5
7972sed 's/^/| /' conftest.$ac_ext >&5
7973
7974ac_cv_lib_m_cosf=no
7975fi
7976rm -f conftest.err conftest.$ac_objext \
7977 conftest$ac_exeext conftest.$ac_ext
7978LIBS=$ac_check_lib_save_LIBS
7979fi
7980echo "$as_me:$LINENO: result: $ac_cv_lib_m_cosf" >&5
7981echo "${ECHO_T}$ac_cv_lib_m_cosf" >&6
7982if test $ac_cv_lib_m_cosf = yes; then
7983
7984cat >>confdefs.h <<\_ACEOF
7985#define HAVE_COSF 1
7986_ACEOF
7987
7988fi
7989
7990echo "$as_me:$LINENO: checking for coshf in -lm" >&5
7991echo $ECHO_N "checking for coshf in -lm... $ECHO_C" >&6
7992if test "${ac_cv_lib_m_coshf+set}" = set; then
7993 echo $ECHO_N "(cached) $ECHO_C" >&6
7994else
7995 ac_check_lib_save_LIBS=$LIBS
7996LIBS="-lm $LIBS"
d49ec2d1
KC
7997if test x$gcc_no_link = xyes; then
7998 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7999echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8000 { (exit 1); exit 1; }; }
8001fi
453310d8
RS
8002cat >conftest.$ac_ext <<_ACEOF
8003/* confdefs.h. */
8004_ACEOF
8005cat confdefs.h >>conftest.$ac_ext
8006cat >>conftest.$ac_ext <<_ACEOF
8007/* end confdefs.h. */
8008
8009/* Override any gcc2 internal prototype to avoid an error. */
8010#ifdef __cplusplus
8011extern "C"
8012#endif
8013/* We use char because int might match the return type of a gcc2
8014 builtin and then its argument prototype would still apply. */
8015char coshf ();
8016int
8017main ()
8018{
8019coshf ();
8020 ;
8021 return 0;
8022}
8023_ACEOF
8024rm -f conftest.$ac_objext conftest$ac_exeext
8025if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8026 (eval $ac_link) 2>conftest.er1
8027 ac_status=$?
8028 grep -v '^ *+' conftest.er1 >conftest.err
8029 rm -f conftest.er1
8030 cat conftest.err >&5
8031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8032 (exit $ac_status); } &&
df65f093 8033 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
453310d8
RS
8034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8035 (eval $ac_try) 2>&5
8036 ac_status=$?
8037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8038 (exit $ac_status); }; } &&
8039 { ac_try='test -s conftest$ac_exeext'
8040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8041 (eval $ac_try) 2>&5
8042 ac_status=$?
8043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8044 (exit $ac_status); }; }; then
8045 ac_cv_lib_m_coshf=yes
8046else
8047 echo "$as_me: failed program was:" >&5
8048sed 's/^/| /' conftest.$ac_ext >&5
8049
8050ac_cv_lib_m_coshf=no
8051fi
8052rm -f conftest.err conftest.$ac_objext \
8053 conftest$ac_exeext conftest.$ac_ext
8054LIBS=$ac_check_lib_save_LIBS
8055fi
8056echo "$as_me:$LINENO: result: $ac_cv_lib_m_coshf" >&5
8057echo "${ECHO_T}$ac_cv_lib_m_coshf" >&6
8058if test $ac_cv_lib_m_coshf = yes; then
8059
8060cat >>confdefs.h <<\_ACEOF
8061#define HAVE_COSHF 1
8062_ACEOF
8063
8064fi
8065
8066echo "$as_me:$LINENO: checking for expf in -lm" >&5
8067echo $ECHO_N "checking for expf in -lm... $ECHO_C" >&6
8068if test "${ac_cv_lib_m_expf+set}" = set; then
8069 echo $ECHO_N "(cached) $ECHO_C" >&6
8070else
8071 ac_check_lib_save_LIBS=$LIBS
8072LIBS="-lm $LIBS"
d49ec2d1
KC
8073if test x$gcc_no_link = xyes; then
8074 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8075echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8076 { (exit 1); exit 1; }; }
8077fi
453310d8
RS
8078cat >conftest.$ac_ext <<_ACEOF
8079/* confdefs.h. */
8080_ACEOF
8081cat confdefs.h >>conftest.$ac_ext
8082cat >>conftest.$ac_ext <<_ACEOF
8083/* end confdefs.h. */
8084
8085/* Override any gcc2 internal prototype to avoid an error. */
8086#ifdef __cplusplus
8087extern "C"
8088#endif
8089/* We use char because int might match the return type of a gcc2
8090 builtin and then its argument prototype would still apply. */
8091char expf ();
8092int
8093main ()
8094{
8095expf ();
8096 ;
8097 return 0;
8098}
8099_ACEOF
8100rm -f conftest.$ac_objext conftest$ac_exeext
8101if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8102 (eval $ac_link) 2>conftest.er1
8103 ac_status=$?
8104 grep -v '^ *+' conftest.er1 >conftest.err
8105 rm -f conftest.er1
8106 cat conftest.err >&5
8107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8108 (exit $ac_status); } &&
df65f093 8109 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
453310d8
RS
8110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8111 (eval $ac_try) 2>&5
8112 ac_status=$?
8113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8114 (exit $ac_status); }; } &&
8115 { ac_try='test -s conftest$ac_exeext'
8116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8117 (eval $ac_try) 2>&5
8118 ac_status=$?
8119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8120 (exit $ac_status); }; }; then
8121 ac_cv_lib_m_expf=yes
8122else
8123 echo "$as_me: failed program was:" >&5
8124sed 's/^/| /' conftest.$ac_ext >&5
8125
8126ac_cv_lib_m_expf=no
8127fi
8128rm -f conftest.err conftest.$ac_objext \
8129 conftest$ac_exeext conftest.$ac_ext
8130LIBS=$ac_check_lib_save_LIBS
8131fi
8132echo "$as_me:$LINENO: result: $ac_cv_lib_m_expf" >&5
8133echo "${ECHO_T}$ac_cv_lib_m_expf" >&6
8134if test $ac_cv_lib_m_expf = yes; then
8135
8136cat >>confdefs.h <<\_ACEOF
8137#define HAVE_EXPF 1
8138_ACEOF
8139
8140fi
8141
8142echo "$as_me:$LINENO: checking for floorf in -lm" >&5
8143echo $ECHO_N "checking for floorf in -lm... $ECHO_C" >&6
8144if test "${ac_cv_lib_m_floorf+set}" = set; then
8145 echo $ECHO_N "(cached) $ECHO_C" >&6
8146else
8147 ac_check_lib_save_LIBS=$LIBS
8148LIBS="-lm $LIBS"
d49ec2d1
KC
8149if test x$gcc_no_link = xyes; then
8150 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8151echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8152 { (exit 1); exit 1; }; }
8153fi
453310d8
RS
8154cat >conftest.$ac_ext <<_ACEOF
8155/* confdefs.h. */
8156_ACEOF
8157cat confdefs.h >>conftest.$ac_ext
8158cat >>conftest.$ac_ext <<_ACEOF
8159/* end confdefs.h. */
8160
8161/* Override any gcc2 internal prototype to avoid an error. */
8162#ifdef __cplusplus
8163extern "C"
8164#endif
8165/* We use char because int might match the return type of a gcc2
8166 builtin and then its argument prototype would still apply. */
8167char floorf ();
8168int
8169main ()
8170{
8171floorf ();
8172 ;
8173 return 0;
8174}
8175_ACEOF
8176rm -f conftest.$ac_objext conftest$ac_exeext
8177if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8178 (eval $ac_link) 2>conftest.er1
8179 ac_status=$?
8180 grep -v '^ *+' conftest.er1 >conftest.err
8181 rm -f conftest.er1
8182 cat conftest.err >&5
8183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8184 (exit $ac_status); } &&
df65f093 8185 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
453310d8
RS
8186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8187 (eval $ac_try) 2>&5
8188 ac_status=$?
8189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8190 (exit $ac_status); }; } &&
8191 { ac_try='test -s conftest$ac_exeext'
8192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8193 (eval $ac_try) 2>&5
8194 ac_status=$?
8195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8196 (exit $ac_status); }; }; then
8197 ac_cv_lib_m_floorf=yes
8198else
8199 echo "$as_me: failed program was:" >&5
8200sed 's/^/| /' conftest.$ac_ext >&5
8201
8202ac_cv_lib_m_floorf=no
8203fi
8204rm -f conftest.err conftest.$ac_objext \
8205 conftest$ac_exeext conftest.$ac_ext
8206LIBS=$ac_check_lib_save_LIBS
8207fi
8208echo "$as_me:$LINENO: result: $ac_cv_lib_m_floorf" >&5
8209echo "${ECHO_T}$ac_cv_lib_m_floorf" >&6
8210if test $ac_cv_lib_m_floorf = yes; then
8211
8212cat >>confdefs.h <<\_ACEOF
8213#define HAVE_FLOORF 1
8214_ACEOF
8215
8216fi
8217
8218echo "$as_me:$LINENO: checking for frexpf in -lm" >&5
8219echo $ECHO_N "checking for frexpf in -lm... $ECHO_C" >&6
8220if test "${ac_cv_lib_m_frexpf+set}" = set; then
8221 echo $ECHO_N "(cached) $ECHO_C" >&6
8222else
8223 ac_check_lib_save_LIBS=$LIBS
8224LIBS="-lm $LIBS"
d49ec2d1
KC
8225if test x$gcc_no_link = xyes; then
8226 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8227echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8228 { (exit 1); exit 1; }; }
8229fi
453310d8
RS
8230cat >conftest.$ac_ext <<_ACEOF
8231/* confdefs.h. */
8232_ACEOF
8233cat confdefs.h >>conftest.$ac_ext
8234cat >>conftest.$ac_ext <<_ACEOF
8235/* end confdefs.h. */
8236
8237/* Override any gcc2 internal prototype to avoid an error. */
8238#ifdef __cplusplus
8239extern "C"
8240#endif
8241/* We use char because int might match the return type of a gcc2
8242 builtin and then its argument prototype would still apply. */
8243char frexpf ();
8244int
8245main ()
8246{
8247frexpf ();
8248 ;
8249 return 0;
8250}
8251_ACEOF
8252rm -f conftest.$ac_objext conftest$ac_exeext
8253if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8254 (eval $ac_link) 2>conftest.er1
8255 ac_status=$?
8256 grep -v '^ *+' conftest.er1 >conftest.err
8257 rm -f conftest.er1
8258 cat conftest.err >&5
8259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8260 (exit $ac_status); } &&
df65f093 8261 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
453310d8
RS
8262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8263 (eval $ac_try) 2>&5
8264 ac_status=$?
8265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8266 (exit $ac_status); }; } &&
8267 { ac_try='test -s conftest$ac_exeext'
8268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8269 (eval $ac_try) 2>&5
8270 ac_status=$?
8271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8272 (exit $ac_status); }; }; then
8273 ac_cv_lib_m_frexpf=yes
8274else
8275 echo "$as_me: failed program was:" >&5
8276sed 's/^/| /' conftest.$ac_ext >&5
8277
8278ac_cv_lib_m_frexpf=no
8279fi
8280rm -f conftest.err conftest.$ac_objext \
8281 conftest$ac_exeext conftest.$ac_ext
8282LIBS=$ac_check_lib_save_LIBS
8283fi
8284echo "$as_me:$LINENO: result: $ac_cv_lib_m_frexpf" >&5
8285echo "${ECHO_T}$ac_cv_lib_m_frexpf" >&6
8286if test $ac_cv_lib_m_frexpf = yes; then
8287
8288cat >>confdefs.h <<\_ACEOF
8289#define HAVE_FREXPF 1
8290_ACEOF
8291
8292fi
8293
8294echo "$as_me:$LINENO: checking for hypotf in -lm" >&5
8295echo $ECHO_N "checking for hypotf in -lm... $ECHO_C" >&6
8296if test "${ac_cv_lib_m_hypotf+set}" = set; then
8297 echo $ECHO_N "(cached) $ECHO_C" >&6
8298else
8299 ac_check_lib_save_LIBS=$LIBS
8300LIBS="-lm $LIBS"
d49ec2d1
KC
8301if test x$gcc_no_link = xyes; then
8302 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8303echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8304 { (exit 1); exit 1; }; }
8305fi
453310d8
RS
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 hypotf ();
8320int
8321main ()
8322{
8323hypotf ();
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); } &&
df65f093 8337 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
453310d8
RS
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_hypotf=yes
8350else
8351 echo "$as_me: failed program was:" >&5
8352sed 's/^/| /' conftest.$ac_ext >&5
8353
8354ac_cv_lib_m_hypotf=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_hypotf" >&5
8361echo "${ECHO_T}$ac_cv_lib_m_hypotf" >&6
8362if test $ac_cv_lib_m_hypotf = yes; then
8363
8364cat >>confdefs.h <<\_ACEOF
8365#define HAVE_HYPOTF 1
8366_ACEOF
8367
8368fi
8369
8370echo "$as_me:$LINENO: checking for logf in -lm" >&5
8371echo $ECHO_N "checking for logf in -lm... $ECHO_C" >&6
8372if test "${ac_cv_lib_m_logf+set}" = set; then
8373 echo $ECHO_N "(cached) $ECHO_C" >&6
8374else
8375 ac_check_lib_save_LIBS=$LIBS
8376LIBS="-lm $LIBS"
d49ec2d1
KC
8377if test x$gcc_no_link = xyes; then
8378 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8379echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8380 { (exit 1); exit 1; }; }
8381fi
453310d8
RS
8382cat >conftest.$ac_ext <<_ACEOF
8383/* confdefs.h. */
8384_ACEOF
8385cat confdefs.h >>conftest.$ac_ext
8386cat >>conftest.$ac_ext <<_ACEOF
8387/* end confdefs.h. */
8388
8389/* Override any gcc2 internal prototype to avoid an error. */
8390#ifdef __cplusplus
8391extern "C"
8392#endif
8393/* We use char because int might match the return type of a gcc2
8394 builtin and then its argument prototype would still apply. */
8395char logf ();
8396int
8397main ()
8398{
8399logf ();
8400 ;
8401 return 0;
8402}
8403_ACEOF
8404rm -f conftest.$ac_objext conftest$ac_exeext
8405if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8406 (eval $ac_link) 2>conftest.er1
8407 ac_status=$?
8408 grep -v '^ *+' conftest.er1 >conftest.err
8409 rm -f conftest.er1
8410 cat conftest.err >&5
8411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8412 (exit $ac_status); } &&
df65f093 8413 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
453310d8
RS
8414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8415 (eval $ac_try) 2>&5
8416 ac_status=$?
8417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8418 (exit $ac_status); }; } &&
8419 { ac_try='test -s conftest$ac_exeext'
8420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8421 (eval $ac_try) 2>&5
8422 ac_status=$?
8423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8424 (exit $ac_status); }; }; then
8425 ac_cv_lib_m_logf=yes
8426else
8427 echo "$as_me: failed program was:" >&5
8428sed 's/^/| /' conftest.$ac_ext >&5
8429
8430ac_cv_lib_m_logf=no
8431fi
8432rm -f conftest.err conftest.$ac_objext \
8433 conftest$ac_exeext conftest.$ac_ext
8434LIBS=$ac_check_lib_save_LIBS
8435fi
8436echo "$as_me:$LINENO: result: $ac_cv_lib_m_logf" >&5
8437echo "${ECHO_T}$ac_cv_lib_m_logf" >&6
8438if test $ac_cv_lib_m_logf = yes; then
8439
8440cat >>confdefs.h <<\_ACEOF
8441#define HAVE_LOGF 1
8442_ACEOF
8443
8444fi
8445
8446echo "$as_me:$LINENO: checking for log10f in -lm" >&5
8447echo $ECHO_N "checking for log10f in -lm... $ECHO_C" >&6
8448if test "${ac_cv_lib_m_log10f+set}" = set; then
8449 echo $ECHO_N "(cached) $ECHO_C" >&6
8450else
8451 ac_check_lib_save_LIBS=$LIBS
8452LIBS="-lm $LIBS"
d49ec2d1
KC
8453if test x$gcc_no_link = xyes; then
8454 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8455echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8456 { (exit 1); exit 1; }; }
8457fi
453310d8
RS
8458cat >conftest.$ac_ext <<_ACEOF
8459/* confdefs.h. */
8460_ACEOF
8461cat confdefs.h >>conftest.$ac_ext
8462cat >>conftest.$ac_ext <<_ACEOF
8463/* end confdefs.h. */
8464
8465/* Override any gcc2 internal prototype to avoid an error. */
8466#ifdef __cplusplus
8467extern "C"
8468#endif
8469/* We use char because int might match the return type of a gcc2
8470 builtin and then its argument prototype would still apply. */
8471char log10f ();
8472int
8473main ()
8474{
8475log10f ();
8476 ;
8477 return 0;
8478}
8479_ACEOF
8480rm -f conftest.$ac_objext conftest$ac_exeext
8481if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8482 (eval $ac_link) 2>conftest.er1
8483 ac_status=$?
8484 grep -v '^ *+' conftest.er1 >conftest.err
8485 rm -f conftest.er1
8486 cat conftest.err >&5
8487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8488 (exit $ac_status); } &&
df65f093 8489 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
453310d8
RS
8490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8491 (eval $ac_try) 2>&5
8492 ac_status=$?
8493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8494 (exit $ac_status); }; } &&
8495 { ac_try='test -s conftest$ac_exeext'
8496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8497 (eval $ac_try) 2>&5
8498 ac_status=$?
8499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8500 (exit $ac_status); }; }; then
8501 ac_cv_lib_m_log10f=yes
8502else
8503 echo "$as_me: failed program was:" >&5
8504sed 's/^/| /' conftest.$ac_ext >&5
8505
8506ac_cv_lib_m_log10f=no
8507fi
8508rm -f conftest.err conftest.$ac_objext \
8509 conftest$ac_exeext conftest.$ac_ext
8510LIBS=$ac_check_lib_save_LIBS
8511fi
8512echo "$as_me:$LINENO: result: $ac_cv_lib_m_log10f" >&5
8513echo "${ECHO_T}$ac_cv_lib_m_log10f" >&6
8514if test $ac_cv_lib_m_log10f = yes; then
8515
8516cat >>confdefs.h <<\_ACEOF
8517#define HAVE_LOG10F 1
8518_ACEOF
8519
8520fi
8521
8522echo "$as_me:$LINENO: checking for nextafter in -lm" >&5
8523echo $ECHO_N "checking for nextafter in -lm... $ECHO_C" >&6
8524if test "${ac_cv_lib_m_nextafter+set}" = set; then
8525 echo $ECHO_N "(cached) $ECHO_C" >&6
8526else
8527 ac_check_lib_save_LIBS=$LIBS
8528LIBS="-lm $LIBS"
d49ec2d1
KC
8529if test x$gcc_no_link = xyes; then
8530 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8531echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8532 { (exit 1); exit 1; }; }
8533fi
453310d8
RS
8534cat >conftest.$ac_ext <<_ACEOF
8535/* confdefs.h. */
8536_ACEOF
8537cat confdefs.h >>conftest.$ac_ext
8538cat >>conftest.$ac_ext <<_ACEOF
8539/* end confdefs.h. */
8540
8541/* Override any gcc2 internal prototype to avoid an error. */
8542#ifdef __cplusplus
8543extern "C"
8544#endif
8545/* We use char because int might match the return type of a gcc2
8546 builtin and then its argument prototype would still apply. */
8547char nextafter ();
8548int
8549main ()
8550{
8551nextafter ();
8552 ;
8553 return 0;
8554}
8555_ACEOF
8556rm -f conftest.$ac_objext conftest$ac_exeext
8557if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8558 (eval $ac_link) 2>conftest.er1
8559 ac_status=$?
8560 grep -v '^ *+' conftest.er1 >conftest.err
8561 rm -f conftest.er1
8562 cat conftest.err >&5
8563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8564 (exit $ac_status); } &&
df65f093 8565 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
453310d8
RS
8566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8567 (eval $ac_try) 2>&5
8568 ac_status=$?
8569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8570 (exit $ac_status); }; } &&
8571 { ac_try='test -s conftest$ac_exeext'
8572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8573 (eval $ac_try) 2>&5
8574 ac_status=$?
8575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8576 (exit $ac_status); }; }; then
8577 ac_cv_lib_m_nextafter=yes
8578else
8579 echo "$as_me: failed program was:" >&5
8580sed 's/^/| /' conftest.$ac_ext >&5
8581
8582ac_cv_lib_m_nextafter=no
8583fi
8584rm -f conftest.err conftest.$ac_objext \
8585 conftest$ac_exeext conftest.$ac_ext
8586LIBS=$ac_check_lib_save_LIBS
8587fi
8588echo "$as_me:$LINENO: result: $ac_cv_lib_m_nextafter" >&5
8589echo "${ECHO_T}$ac_cv_lib_m_nextafter" >&6
8590if test $ac_cv_lib_m_nextafter = yes; then
8591
8592cat >>confdefs.h <<\_ACEOF
8593#define HAVE_NEXTAFTER 1
8594_ACEOF
8595
8596fi
8597
8598echo "$as_me:$LINENO: checking for nextafterf in -lm" >&5
8599echo $ECHO_N "checking for nextafterf in -lm... $ECHO_C" >&6
8600if test "${ac_cv_lib_m_nextafterf+set}" = set; then
8601 echo $ECHO_N "(cached) $ECHO_C" >&6
8602else
8603 ac_check_lib_save_LIBS=$LIBS
8604LIBS="-lm $LIBS"
d49ec2d1
KC
8605if test x$gcc_no_link = xyes; then
8606 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8607echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8608 { (exit 1); exit 1; }; }
8609fi
453310d8
RS
8610cat >conftest.$ac_ext <<_ACEOF
8611/* confdefs.h. */
8612_ACEOF
8613cat confdefs.h >>conftest.$ac_ext
8614cat >>conftest.$ac_ext <<_ACEOF
8615/* end confdefs.h. */
8616
8617/* Override any gcc2 internal prototype to avoid an error. */
8618#ifdef __cplusplus
8619extern "C"
8620#endif
8621/* We use char because int might match the return type of a gcc2
8622 builtin and then its argument prototype would still apply. */
8623char nextafterf ();
8624int
8625main ()
8626{
8627nextafterf ();
8628 ;
8629 return 0;
8630}
8631_ACEOF
8632rm -f conftest.$ac_objext conftest$ac_exeext
8633if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8634 (eval $ac_link) 2>conftest.er1
8635 ac_status=$?
8636 grep -v '^ *+' conftest.er1 >conftest.err
8637 rm -f conftest.er1
8638 cat conftest.err >&5
8639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8640 (exit $ac_status); } &&
df65f093 8641 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
453310d8
RS
8642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8643 (eval $ac_try) 2>&5
8644 ac_status=$?
8645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8646 (exit $ac_status); }; } &&
8647 { ac_try='test -s conftest$ac_exeext'
8648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8649 (eval $ac_try) 2>&5
8650 ac_status=$?
8651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8652 (exit $ac_status); }; }; then
8653 ac_cv_lib_m_nextafterf=yes
8654else
8655 echo "$as_me: failed program was:" >&5
8656sed 's/^/| /' conftest.$ac_ext >&5
8657
8658ac_cv_lib_m_nextafterf=no
8659fi
8660rm -f conftest.err conftest.$ac_objext \
8661 conftest$ac_exeext conftest.$ac_ext
8662LIBS=$ac_check_lib_save_LIBS
8663fi
8664echo "$as_me:$LINENO: result: $ac_cv_lib_m_nextafterf" >&5
8665echo "${ECHO_T}$ac_cv_lib_m_nextafterf" >&6
8666if test $ac_cv_lib_m_nextafterf = yes; then
8667
8668cat >>confdefs.h <<\_ACEOF
8669#define HAVE_NEXTAFTERF 1
8670_ACEOF
8671
8672fi
8673
bf4d99cf
TS
8674echo "$as_me:$LINENO: checking for powf in -lm" >&5
8675echo $ECHO_N "checking for powf in -lm... $ECHO_C" >&6
8676if test "${ac_cv_lib_m_powf+set}" = set; then
8677 echo $ECHO_N "(cached) $ECHO_C" >&6
8678else
8679 ac_check_lib_save_LIBS=$LIBS
8680LIBS="-lm $LIBS"
d49ec2d1
KC
8681if test x$gcc_no_link = xyes; then
8682 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8683echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8684 { (exit 1); exit 1; }; }
8685fi
bf4d99cf
TS
8686cat >conftest.$ac_ext <<_ACEOF
8687/* confdefs.h. */
8688_ACEOF
8689cat confdefs.h >>conftest.$ac_ext
8690cat >>conftest.$ac_ext <<_ACEOF
8691/* end confdefs.h. */
8692
8693/* Override any gcc2 internal prototype to avoid an error. */
8694#ifdef __cplusplus
8695extern "C"
8696#endif
8697/* We use char because int might match the return type of a gcc2
8698 builtin and then its argument prototype would still apply. */
8699char powf ();
8700int
8701main ()
8702{
8703powf ();
8704 ;
8705 return 0;
8706}
8707_ACEOF
8708rm -f conftest.$ac_objext conftest$ac_exeext
8709if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8710 (eval $ac_link) 2>conftest.er1
8711 ac_status=$?
8712 grep -v '^ *+' conftest.er1 >conftest.err
8713 rm -f conftest.er1
8714 cat conftest.err >&5
8715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8716 (exit $ac_status); } &&
df65f093 8717 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
bf4d99cf
TS
8718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8719 (eval $ac_try) 2>&5
8720 ac_status=$?
8721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8722 (exit $ac_status); }; } &&
8723 { ac_try='test -s conftest$ac_exeext'
8724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8725 (eval $ac_try) 2>&5
8726 ac_status=$?
8727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8728 (exit $ac_status); }; }; then
8729 ac_cv_lib_m_powf=yes
8730else
8731 echo "$as_me: failed program was:" >&5
8732sed 's/^/| /' conftest.$ac_ext >&5
8733
8734ac_cv_lib_m_powf=no
8735fi
8736rm -f conftest.err conftest.$ac_objext \
8737 conftest$ac_exeext conftest.$ac_ext
8738LIBS=$ac_check_lib_save_LIBS
8739fi
8740echo "$as_me:$LINENO: result: $ac_cv_lib_m_powf" >&5
8741echo "${ECHO_T}$ac_cv_lib_m_powf" >&6
8742if test $ac_cv_lib_m_powf = yes; then
8743
8744cat >>confdefs.h <<\_ACEOF
8745#define HAVE_POWF 1
8746_ACEOF
8747
8748fi
8749
a2a2059f
BD
8750echo "$as_me:$LINENO: checking for round in -lm" >&5
8751echo $ECHO_N "checking for round in -lm... $ECHO_C" >&6
8752if test "${ac_cv_lib_m_round+set}" = set; then
8753 echo $ECHO_N "(cached) $ECHO_C" >&6
8754else
8755 ac_check_lib_save_LIBS=$LIBS
8756LIBS="-lm $LIBS"
d49ec2d1
KC
8757if test x$gcc_no_link = xyes; then
8758 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8759echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8760 { (exit 1); exit 1; }; }
8761fi
a2a2059f
BD
8762cat >conftest.$ac_ext <<_ACEOF
8763/* confdefs.h. */
8764_ACEOF
8765cat confdefs.h >>conftest.$ac_ext
8766cat >>conftest.$ac_ext <<_ACEOF
8767/* end confdefs.h. */
8768
8769/* Override any gcc2 internal prototype to avoid an error. */
8770#ifdef __cplusplus
8771extern "C"
8772#endif
8773/* We use char because int might match the return type of a gcc2
8774 builtin and then its argument prototype would still apply. */
453310d8
RS
8775char round ();
8776int
8777main ()
8778{
8779round ();
8780 ;
8781 return 0;
8782}
8783_ACEOF
8784rm -f conftest.$ac_objext conftest$ac_exeext
8785if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8786 (eval $ac_link) 2>conftest.er1
8787 ac_status=$?
8788 grep -v '^ *+' conftest.er1 >conftest.err
8789 rm -f conftest.er1
8790 cat conftest.err >&5
8791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8792 (exit $ac_status); } &&
df65f093 8793 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
453310d8
RS
8794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8795 (eval $ac_try) 2>&5
8796 ac_status=$?
8797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8798 (exit $ac_status); }; } &&
8799 { ac_try='test -s conftest$ac_exeext'
8800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8801 (eval $ac_try) 2>&5
8802 ac_status=$?
8803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8804 (exit $ac_status); }; }; then
8805 ac_cv_lib_m_round=yes
8806else
8807 echo "$as_me: failed program was:" >&5
8808sed 's/^/| /' conftest.$ac_ext >&5
8809
8810ac_cv_lib_m_round=no
8811fi
8812rm -f conftest.err conftest.$ac_objext \
8813 conftest$ac_exeext conftest.$ac_ext
8814LIBS=$ac_check_lib_save_LIBS
8815fi
8816echo "$as_me:$LINENO: result: $ac_cv_lib_m_round" >&5
8817echo "${ECHO_T}$ac_cv_lib_m_round" >&6
8818if test $ac_cv_lib_m_round = yes; then
8819
8820cat >>confdefs.h <<\_ACEOF
8821#define HAVE_ROUND 1
8822_ACEOF
8823
8824fi
8825
8826echo "$as_me:$LINENO: checking for roundf in -lm" >&5
8827echo $ECHO_N "checking for roundf in -lm... $ECHO_C" >&6
8828if test "${ac_cv_lib_m_roundf+set}" = set; then
8829 echo $ECHO_N "(cached) $ECHO_C" >&6
8830else
8831 ac_check_lib_save_LIBS=$LIBS
8832LIBS="-lm $LIBS"
d49ec2d1
KC
8833if test x$gcc_no_link = xyes; then
8834 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8835echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8836 { (exit 1); exit 1; }; }
8837fi
453310d8
RS
8838cat >conftest.$ac_ext <<_ACEOF
8839/* confdefs.h. */
8840_ACEOF
8841cat confdefs.h >>conftest.$ac_ext
8842cat >>conftest.$ac_ext <<_ACEOF
8843/* end confdefs.h. */
8844
8845/* Override any gcc2 internal prototype to avoid an error. */
8846#ifdef __cplusplus
8847extern "C"
8848#endif
8849/* We use char because int might match the return type of a gcc2
8850 builtin and then its argument prototype would still apply. */
8851char roundf ();
a2a2059f
BD
8852int
8853main ()
8854{
453310d8 8855roundf ();
a2a2059f
BD
8856 ;
8857 return 0;
8858}
8859_ACEOF
8860rm -f conftest.$ac_objext conftest$ac_exeext
8861if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8862 (eval $ac_link) 2>conftest.er1
8863 ac_status=$?
8864 grep -v '^ *+' conftest.er1 >conftest.err
8865 rm -f conftest.er1
8866 cat conftest.err >&5
8867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8868 (exit $ac_status); } &&
df65f093 8869 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
a2a2059f
BD
8870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8871 (eval $ac_try) 2>&5
8872 ac_status=$?
8873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8874 (exit $ac_status); }; } &&
8875 { ac_try='test -s conftest$ac_exeext'
8876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8877 (eval $ac_try) 2>&5
8878 ac_status=$?
8879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8880 (exit $ac_status); }; }; then
453310d8 8881 ac_cv_lib_m_roundf=yes
a2a2059f
BD
8882else
8883 echo "$as_me: failed program was:" >&5
8884sed 's/^/| /' conftest.$ac_ext >&5
8885
453310d8 8886ac_cv_lib_m_roundf=no
a2a2059f
BD
8887fi
8888rm -f conftest.err conftest.$ac_objext \
8889 conftest$ac_exeext conftest.$ac_ext
8890LIBS=$ac_check_lib_save_LIBS
8891fi
453310d8
RS
8892echo "$as_me:$LINENO: result: $ac_cv_lib_m_roundf" >&5
8893echo "${ECHO_T}$ac_cv_lib_m_roundf" >&6
8894if test $ac_cv_lib_m_roundf = yes; then
a2a2059f
BD
8895
8896cat >>confdefs.h <<\_ACEOF
453310d8 8897#define HAVE_ROUNDF 1
a2a2059f
BD
8898_ACEOF
8899
8900fi
8901
453310d8
RS
8902echo "$as_me:$LINENO: checking for scalbnf in -lm" >&5
8903echo $ECHO_N "checking for scalbnf in -lm... $ECHO_C" >&6
8904if test "${ac_cv_lib_m_scalbnf+set}" = set; then
a2a2059f
BD
8905 echo $ECHO_N "(cached) $ECHO_C" >&6
8906else
8907 ac_check_lib_save_LIBS=$LIBS
8908LIBS="-lm $LIBS"
d49ec2d1
KC
8909if test x$gcc_no_link = xyes; then
8910 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8911echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8912 { (exit 1); exit 1; }; }
8913fi
a2a2059f
BD
8914cat >conftest.$ac_ext <<_ACEOF
8915/* confdefs.h. */
8916_ACEOF
8917cat confdefs.h >>conftest.$ac_ext
8918cat >>conftest.$ac_ext <<_ACEOF
8919/* end confdefs.h. */
8920
8921/* Override any gcc2 internal prototype to avoid an error. */
8922#ifdef __cplusplus
8923extern "C"
8924#endif
8925/* We use char because int might match the return type of a gcc2
8926 builtin and then its argument prototype would still apply. */
453310d8 8927char scalbnf ();
a2a2059f
BD
8928int
8929main ()
8930{
453310d8 8931scalbnf ();
a2a2059f
BD
8932 ;
8933 return 0;
8934}
8935_ACEOF
8936rm -f conftest.$ac_objext conftest$ac_exeext
8937if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8938 (eval $ac_link) 2>conftest.er1
8939 ac_status=$?
8940 grep -v '^ *+' conftest.er1 >conftest.err
8941 rm -f conftest.er1
8942 cat conftest.err >&5
8943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8944 (exit $ac_status); } &&
df65f093 8945 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
a2a2059f
BD
8946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8947 (eval $ac_try) 2>&5
8948 ac_status=$?
8949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8950 (exit $ac_status); }; } &&
8951 { ac_try='test -s conftest$ac_exeext'
8952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8953 (eval $ac_try) 2>&5
8954 ac_status=$?
8955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8956 (exit $ac_status); }; }; then
453310d8 8957 ac_cv_lib_m_scalbnf=yes
a2a2059f
BD
8958else
8959 echo "$as_me: failed program was:" >&5
8960sed 's/^/| /' conftest.$ac_ext >&5
8961
453310d8 8962ac_cv_lib_m_scalbnf=no
a2a2059f
BD
8963fi
8964rm -f conftest.err conftest.$ac_objext \
8965 conftest$ac_exeext conftest.$ac_ext
8966LIBS=$ac_check_lib_save_LIBS
8967fi
453310d8
RS
8968echo "$as_me:$LINENO: result: $ac_cv_lib_m_scalbnf" >&5
8969echo "${ECHO_T}$ac_cv_lib_m_scalbnf" >&6
8970if test $ac_cv_lib_m_scalbnf = yes; then
a2a2059f
BD
8971
8972cat >>confdefs.h <<\_ACEOF
453310d8 8973#define HAVE_SCALBNF 1
a2a2059f
BD
8974_ACEOF
8975
8976fi
8977
453310d8
RS
8978echo "$as_me:$LINENO: checking for sinf in -lm" >&5
8979echo $ECHO_N "checking for sinf in -lm... $ECHO_C" >&6
8980if test "${ac_cv_lib_m_sinf+set}" = set; then
a9e7b9d3
PB
8981 echo $ECHO_N "(cached) $ECHO_C" >&6
8982else
8983 ac_check_lib_save_LIBS=$LIBS
8984LIBS="-lm $LIBS"
d49ec2d1
KC
8985if test x$gcc_no_link = xyes; then
8986 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8987echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8988 { (exit 1); exit 1; }; }
8989fi
a9e7b9d3
PB
8990cat >conftest.$ac_ext <<_ACEOF
8991/* confdefs.h. */
8992_ACEOF
8993cat confdefs.h >>conftest.$ac_ext
8994cat >>conftest.$ac_ext <<_ACEOF
8995/* end confdefs.h. */
8996
8997/* Override any gcc2 internal prototype to avoid an error. */
8998#ifdef __cplusplus
8999extern "C"
9000#endif
9001/* We use char because int might match the return type of a gcc2
9002 builtin and then its argument prototype would still apply. */
453310d8 9003char sinf ();
a9e7b9d3
PB
9004int
9005main ()
9006{
453310d8 9007sinf ();
a9e7b9d3
PB
9008 ;
9009 return 0;
9010}
9011_ACEOF
9012rm -f conftest.$ac_objext conftest$ac_exeext
9013if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9014 (eval $ac_link) 2>conftest.er1
9015 ac_status=$?
9016 grep -v '^ *+' conftest.er1 >conftest.err
9017 rm -f conftest.er1
9018 cat conftest.err >&5
9019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9020 (exit $ac_status); } &&
df65f093 9021 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
a9e7b9d3
PB
9022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9023 (eval $ac_try) 2>&5
9024 ac_status=$?
9025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9026 (exit $ac_status); }; } &&
9027 { ac_try='test -s conftest$ac_exeext'
9028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9029 (eval $ac_try) 2>&5
9030 ac_status=$?
9031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9032 (exit $ac_status); }; }; then
453310d8 9033 ac_cv_lib_m_sinf=yes
a9e7b9d3
PB
9034else
9035 echo "$as_me: failed program was:" >&5
9036sed 's/^/| /' conftest.$ac_ext >&5
9037
453310d8 9038ac_cv_lib_m_sinf=no
a9e7b9d3
PB
9039fi
9040rm -f conftest.err conftest.$ac_objext \
9041 conftest$ac_exeext conftest.$ac_ext
9042LIBS=$ac_check_lib_save_LIBS
9043fi
453310d8
RS
9044echo "$as_me:$LINENO: result: $ac_cv_lib_m_sinf" >&5
9045echo "${ECHO_T}$ac_cv_lib_m_sinf" >&6
9046if test $ac_cv_lib_m_sinf = yes; then
a9e7b9d3
PB
9047
9048cat >>confdefs.h <<\_ACEOF
453310d8 9049#define HAVE_SINF 1
a9e7b9d3
PB
9050_ACEOF
9051
9052fi
9053
453310d8
RS
9054echo "$as_me:$LINENO: checking for sinhf in -lm" >&5
9055echo $ECHO_N "checking for sinhf in -lm... $ECHO_C" >&6
9056if test "${ac_cv_lib_m_sinhf+set}" = set; then
a9e7b9d3
PB
9057 echo $ECHO_N "(cached) $ECHO_C" >&6
9058else
9059 ac_check_lib_save_LIBS=$LIBS
9060LIBS="-lm $LIBS"
d49ec2d1
KC
9061if test x$gcc_no_link = xyes; then
9062 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9063echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9064 { (exit 1); exit 1; }; }
9065fi
a9e7b9d3
PB
9066cat >conftest.$ac_ext <<_ACEOF
9067/* confdefs.h. */
9068_ACEOF
9069cat confdefs.h >>conftest.$ac_ext
9070cat >>conftest.$ac_ext <<_ACEOF
9071/* end confdefs.h. */
9072
9073/* Override any gcc2 internal prototype to avoid an error. */
9074#ifdef __cplusplus
9075extern "C"
9076#endif
9077/* We use char because int might match the return type of a gcc2
9078 builtin and then its argument prototype would still apply. */
453310d8 9079char sinhf ();
a9e7b9d3
PB
9080int
9081main ()
9082{
453310d8 9083sinhf ();
a9e7b9d3
PB
9084 ;
9085 return 0;
9086}
9087_ACEOF
9088rm -f conftest.$ac_objext conftest$ac_exeext
9089if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9090 (eval $ac_link) 2>conftest.er1
9091 ac_status=$?
9092 grep -v '^ *+' conftest.er1 >conftest.err
9093 rm -f conftest.er1
9094 cat conftest.err >&5
9095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9096 (exit $ac_status); } &&
df65f093 9097 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
a9e7b9d3
PB
9098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9099 (eval $ac_try) 2>&5
9100 ac_status=$?
9101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9102 (exit $ac_status); }; } &&
9103 { ac_try='test -s conftest$ac_exeext'
9104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9105 (eval $ac_try) 2>&5
9106 ac_status=$?
9107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9108 (exit $ac_status); }; }; then
453310d8 9109 ac_cv_lib_m_sinhf=yes
a9e7b9d3
PB
9110else
9111 echo "$as_me: failed program was:" >&5
9112sed 's/^/| /' conftest.$ac_ext >&5
9113
453310d8 9114ac_cv_lib_m_sinhf=no
a9e7b9d3
PB
9115fi
9116rm -f conftest.err conftest.$ac_objext \
9117 conftest$ac_exeext conftest.$ac_ext
9118LIBS=$ac_check_lib_save_LIBS
9119fi
453310d8
RS
9120echo "$as_me:$LINENO: result: $ac_cv_lib_m_sinhf" >&5
9121echo "${ECHO_T}$ac_cv_lib_m_sinhf" >&6
9122if test $ac_cv_lib_m_sinhf = yes; then
a9e7b9d3
PB
9123
9124cat >>confdefs.h <<\_ACEOF
453310d8
RS
9125#define HAVE_SINHF 1
9126_ACEOF
9127
9128fi
9129
9130echo "$as_me:$LINENO: checking for sqrtf in -lm" >&5
9131echo $ECHO_N "checking for sqrtf in -lm... $ECHO_C" >&6
9132if test "${ac_cv_lib_m_sqrtf+set}" = set; then
9133 echo $ECHO_N "(cached) $ECHO_C" >&6
9134else
9135 ac_check_lib_save_LIBS=$LIBS
9136LIBS="-lm $LIBS"
d49ec2d1
KC
9137if test x$gcc_no_link = xyes; then
9138 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9139echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9140 { (exit 1); exit 1; }; }
9141fi
453310d8
RS
9142cat >conftest.$ac_ext <<_ACEOF
9143/* confdefs.h. */
9144_ACEOF
9145cat confdefs.h >>conftest.$ac_ext
9146cat >>conftest.$ac_ext <<_ACEOF
9147/* end confdefs.h. */
9148
9149/* Override any gcc2 internal prototype to avoid an error. */
9150#ifdef __cplusplus
9151extern "C"
9152#endif
9153/* We use char because int might match the return type of a gcc2
9154 builtin and then its argument prototype would still apply. */
9155char sqrtf ();
9156int
9157main ()
9158{
9159sqrtf ();
9160 ;
9161 return 0;
9162}
9163_ACEOF
9164rm -f conftest.$ac_objext conftest$ac_exeext
9165if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9166 (eval $ac_link) 2>conftest.er1
9167 ac_status=$?
9168 grep -v '^ *+' conftest.er1 >conftest.err
9169 rm -f conftest.er1
9170 cat conftest.err >&5
9171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9172 (exit $ac_status); } &&
df65f093 9173 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
453310d8
RS
9174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9175 (eval $ac_try) 2>&5
9176 ac_status=$?
9177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9178 (exit $ac_status); }; } &&
9179 { ac_try='test -s conftest$ac_exeext'
9180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9181 (eval $ac_try) 2>&5
9182 ac_status=$?
9183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9184 (exit $ac_status); }; }; then
9185 ac_cv_lib_m_sqrtf=yes
9186else
9187 echo "$as_me: failed program was:" >&5
9188sed 's/^/| /' conftest.$ac_ext >&5
9189
9190ac_cv_lib_m_sqrtf=no
9191fi
9192rm -f conftest.err conftest.$ac_objext \
9193 conftest$ac_exeext conftest.$ac_ext
9194LIBS=$ac_check_lib_save_LIBS
9195fi
9196echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrtf" >&5
9197echo "${ECHO_T}$ac_cv_lib_m_sqrtf" >&6
9198if test $ac_cv_lib_m_sqrtf = yes; then
9199
9200cat >>confdefs.h <<\_ACEOF
9201#define HAVE_SQRTF 1
9202_ACEOF
9203
9204fi
9205
9206echo "$as_me:$LINENO: checking for tanf in -lm" >&5
9207echo $ECHO_N "checking for tanf in -lm... $ECHO_C" >&6
9208if test "${ac_cv_lib_m_tanf+set}" = set; then
9209 echo $ECHO_N "(cached) $ECHO_C" >&6
9210else
9211 ac_check_lib_save_LIBS=$LIBS
9212LIBS="-lm $LIBS"
d49ec2d1
KC
9213if test x$gcc_no_link = xyes; then
9214 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9215echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9216 { (exit 1); exit 1; }; }
9217fi
453310d8
RS
9218cat >conftest.$ac_ext <<_ACEOF
9219/* confdefs.h. */
9220_ACEOF
9221cat confdefs.h >>conftest.$ac_ext
9222cat >>conftest.$ac_ext <<_ACEOF
9223/* end confdefs.h. */
9224
9225/* Override any gcc2 internal prototype to avoid an error. */
9226#ifdef __cplusplus
9227extern "C"
9228#endif
9229/* We use char because int might match the return type of a gcc2
9230 builtin and then its argument prototype would still apply. */
9231char tanf ();
9232int
9233main ()
9234{
9235tanf ();
9236 ;
9237 return 0;
9238}
9239_ACEOF
9240rm -f conftest.$ac_objext conftest$ac_exeext
9241if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9242 (eval $ac_link) 2>conftest.er1
9243 ac_status=$?
9244 grep -v '^ *+' conftest.er1 >conftest.err
9245 rm -f conftest.er1
9246 cat conftest.err >&5
9247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9248 (exit $ac_status); } &&
df65f093 9249 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
453310d8
RS
9250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9251 (eval $ac_try) 2>&5
9252 ac_status=$?
9253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9254 (exit $ac_status); }; } &&
9255 { ac_try='test -s conftest$ac_exeext'
9256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9257 (eval $ac_try) 2>&5
9258 ac_status=$?
9259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9260 (exit $ac_status); }; }; then
9261 ac_cv_lib_m_tanf=yes
9262else
9263 echo "$as_me: failed program was:" >&5
9264sed 's/^/| /' conftest.$ac_ext >&5
9265
9266ac_cv_lib_m_tanf=no
9267fi
9268rm -f conftest.err conftest.$ac_objext \
9269 conftest$ac_exeext conftest.$ac_ext
9270LIBS=$ac_check_lib_save_LIBS
9271fi
9272echo "$as_me:$LINENO: result: $ac_cv_lib_m_tanf" >&5
9273echo "${ECHO_T}$ac_cv_lib_m_tanf" >&6
9274if test $ac_cv_lib_m_tanf = yes; then
9275
9276cat >>confdefs.h <<\_ACEOF
9277#define HAVE_TANF 1
9278_ACEOF
9279
9280fi
9281
9282echo "$as_me:$LINENO: checking for tanhf in -lm" >&5
9283echo $ECHO_N "checking for tanhf in -lm... $ECHO_C" >&6
9284if test "${ac_cv_lib_m_tanhf+set}" = set; then
9285 echo $ECHO_N "(cached) $ECHO_C" >&6
9286else
9287 ac_check_lib_save_LIBS=$LIBS
9288LIBS="-lm $LIBS"
d49ec2d1
KC
9289if test x$gcc_no_link = xyes; then
9290 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9291echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9292 { (exit 1); exit 1; }; }
9293fi
453310d8
RS
9294cat >conftest.$ac_ext <<_ACEOF
9295/* confdefs.h. */
9296_ACEOF
9297cat confdefs.h >>conftest.$ac_ext
9298cat >>conftest.$ac_ext <<_ACEOF
9299/* end confdefs.h. */
9300
9301/* Override any gcc2 internal prototype to avoid an error. */
9302#ifdef __cplusplus
9303extern "C"
9304#endif
9305/* We use char because int might match the return type of a gcc2
9306 builtin and then its argument prototype would still apply. */
9307char tanhf ();
9308int
9309main ()
9310{
9311tanhf ();
9312 ;
9313 return 0;
9314}
9315_ACEOF
9316rm -f conftest.$ac_objext conftest$ac_exeext
9317if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9318 (eval $ac_link) 2>conftest.er1
9319 ac_status=$?
9320 grep -v '^ *+' conftest.er1 >conftest.err
9321 rm -f conftest.er1
9322 cat conftest.err >&5
9323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9324 (exit $ac_status); } &&
df65f093 9325 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
453310d8
RS
9326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9327 (eval $ac_try) 2>&5
9328 ac_status=$?
9329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9330 (exit $ac_status); }; } &&
9331 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
9337 ac_cv_lib_m_tanhf=yes
9338else
9339 echo "$as_me: failed program was:" >&5
9340sed 's/^/| /' conftest.$ac_ext >&5
9341
9342ac_cv_lib_m_tanhf=no
9343fi
9344rm -f conftest.err conftest.$ac_objext \
9345 conftest$ac_exeext conftest.$ac_ext
9346LIBS=$ac_check_lib_save_LIBS
9347fi
9348echo "$as_me:$LINENO: result: $ac_cv_lib_m_tanhf" >&5
9349echo "${ECHO_T}$ac_cv_lib_m_tanhf" >&6
9350if test $ac_cv_lib_m_tanhf = yes; then
9351
9352cat >>confdefs.h <<\_ACEOF
9353#define HAVE_TANHF 1
a9e7b9d3
PB
9354_ACEOF
9355
9356fi
9357
e8525382
SK
9358echo "$as_me:$LINENO: checking for erf in -lm" >&5
9359echo $ECHO_N "checking for erf in -lm... $ECHO_C" >&6
9360if test "${ac_cv_lib_m_erf+set}" = set; then
9361 echo $ECHO_N "(cached) $ECHO_C" >&6
9362else
9363 ac_check_lib_save_LIBS=$LIBS
9364LIBS="-lm $LIBS"
d49ec2d1
KC
9365if test x$gcc_no_link = xyes; then
9366 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9367echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9368 { (exit 1); exit 1; }; }
9369fi
e8525382
SK
9370cat >conftest.$ac_ext <<_ACEOF
9371/* confdefs.h. */
9372_ACEOF
9373cat confdefs.h >>conftest.$ac_ext
9374cat >>conftest.$ac_ext <<_ACEOF
9375/* end confdefs.h. */
9376
9377/* Override any gcc2 internal prototype to avoid an error. */
9378#ifdef __cplusplus
9379extern "C"
9380#endif
9381/* We use char because int might match the return type of a gcc2
9382 builtin and then its argument prototype would still apply. */
9383char erf ();
9384int
9385main ()
9386{
9387erf ();
9388 ;
9389 return 0;
9390}
9391_ACEOF
9392rm -f conftest.$ac_objext conftest$ac_exeext
9393if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9394 (eval $ac_link) 2>conftest.er1
9395 ac_status=$?
9396 grep -v '^ *+' conftest.er1 >conftest.err
9397 rm -f conftest.er1
9398 cat conftest.err >&5
9399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9400 (exit $ac_status); } &&
df65f093 9401 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
e8525382
SK
9402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9403 (eval $ac_try) 2>&5
9404 ac_status=$?
9405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9406 (exit $ac_status); }; } &&
9407 { ac_try='test -s conftest$ac_exeext'
9408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9409 (eval $ac_try) 2>&5
9410 ac_status=$?
9411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9412 (exit $ac_status); }; }; then
9413 ac_cv_lib_m_erf=yes
9414else
9415 echo "$as_me: failed program was:" >&5
9416sed 's/^/| /' conftest.$ac_ext >&5
9417
9418ac_cv_lib_m_erf=no
9419fi
9420rm -f conftest.err conftest.$ac_objext \
9421 conftest$ac_exeext conftest.$ac_ext
9422LIBS=$ac_check_lib_save_LIBS
9423fi
9424echo "$as_me:$LINENO: result: $ac_cv_lib_m_erf" >&5
9425echo "${ECHO_T}$ac_cv_lib_m_erf" >&6
9426if test $ac_cv_lib_m_erf = yes; then
9427
9428cat >>confdefs.h <<\_ACEOF
9429#define HAVE_ERF 1
9430_ACEOF
9431
9432fi
9433
9434echo "$as_me:$LINENO: checking for erfc in -lm" >&5
9435echo $ECHO_N "checking for erfc in -lm... $ECHO_C" >&6
9436if test "${ac_cv_lib_m_erfc+set}" = set; then
9437 echo $ECHO_N "(cached) $ECHO_C" >&6
9438else
9439 ac_check_lib_save_LIBS=$LIBS
9440LIBS="-lm $LIBS"
d49ec2d1
KC
9441if test x$gcc_no_link = xyes; then
9442 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9443echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9444 { (exit 1); exit 1; }; }
9445fi
e8525382
SK
9446cat >conftest.$ac_ext <<_ACEOF
9447/* confdefs.h. */
9448_ACEOF
9449cat confdefs.h >>conftest.$ac_ext
9450cat >>conftest.$ac_ext <<_ACEOF
9451/* end confdefs.h. */
9452
9453/* Override any gcc2 internal prototype to avoid an error. */
9454#ifdef __cplusplus
9455extern "C"
9456#endif
9457/* We use char because int might match the return type of a gcc2
9458 builtin and then its argument prototype would still apply. */
9459char erfc ();
9460int
9461main ()
9462{
9463erfc ();
9464 ;
9465 return 0;
9466}
9467_ACEOF
9468rm -f conftest.$ac_objext conftest$ac_exeext
9469if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9470 (eval $ac_link) 2>conftest.er1
9471 ac_status=$?
9472 grep -v '^ *+' conftest.er1 >conftest.err
9473 rm -f conftest.er1
9474 cat conftest.err >&5
9475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9476 (exit $ac_status); } &&
df65f093 9477 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
e8525382
SK
9478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9479 (eval $ac_try) 2>&5
9480 ac_status=$?
9481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9482 (exit $ac_status); }; } &&
9483 { ac_try='test -s conftest$ac_exeext'
9484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9485 (eval $ac_try) 2>&5
9486 ac_status=$?
9487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9488 (exit $ac_status); }; }; then
9489 ac_cv_lib_m_erfc=yes
9490else
9491 echo "$as_me: failed program was:" >&5
9492sed 's/^/| /' conftest.$ac_ext >&5
9493
9494ac_cv_lib_m_erfc=no
9495fi
9496rm -f conftest.err conftest.$ac_objext \
9497 conftest$ac_exeext conftest.$ac_ext
9498LIBS=$ac_check_lib_save_LIBS
9499fi
9500echo "$as_me:$LINENO: result: $ac_cv_lib_m_erfc" >&5
9501echo "${ECHO_T}$ac_cv_lib_m_erfc" >&6
9502if test $ac_cv_lib_m_erfc = yes; then
9503
9504cat >>confdefs.h <<\_ACEOF
9505#define HAVE_ERFC 1
9506_ACEOF
9507
9508fi
9509
9510echo "$as_me:$LINENO: checking for erfcf in -lm" >&5
9511echo $ECHO_N "checking for erfcf in -lm... $ECHO_C" >&6
9512if test "${ac_cv_lib_m_erfcf+set}" = set; then
9513 echo $ECHO_N "(cached) $ECHO_C" >&6
9514else
9515 ac_check_lib_save_LIBS=$LIBS
9516LIBS="-lm $LIBS"
d49ec2d1
KC
9517if test x$gcc_no_link = xyes; then
9518 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9519echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9520 { (exit 1); exit 1; }; }
9521fi
e8525382
SK
9522cat >conftest.$ac_ext <<_ACEOF
9523/* confdefs.h. */
9524_ACEOF
9525cat confdefs.h >>conftest.$ac_ext
9526cat >>conftest.$ac_ext <<_ACEOF
9527/* end confdefs.h. */
9528
9529/* Override any gcc2 internal prototype to avoid an error. */
9530#ifdef __cplusplus
9531extern "C"
9532#endif
9533/* We use char because int might match the return type of a gcc2
9534 builtin and then its argument prototype would still apply. */
9535char erfcf ();
9536int
9537main ()
9538{
9539erfcf ();
9540 ;
9541 return 0;
9542}
9543_ACEOF
9544rm -f conftest.$ac_objext conftest$ac_exeext
9545if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9546 (eval $ac_link) 2>conftest.er1
9547 ac_status=$?
9548 grep -v '^ *+' conftest.er1 >conftest.err
9549 rm -f conftest.er1
9550 cat conftest.err >&5
9551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9552 (exit $ac_status); } &&
df65f093 9553 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
e8525382
SK
9554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9555 (eval $ac_try) 2>&5
9556 ac_status=$?
9557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9558 (exit $ac_status); }; } &&
9559 { ac_try='test -s conftest$ac_exeext'
9560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9561 (eval $ac_try) 2>&5
9562 ac_status=$?
9563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9564 (exit $ac_status); }; }; then
9565 ac_cv_lib_m_erfcf=yes
9566else
9567 echo "$as_me: failed program was:" >&5
9568sed 's/^/| /' conftest.$ac_ext >&5
9569
9570ac_cv_lib_m_erfcf=no
9571fi
9572rm -f conftest.err conftest.$ac_objext \
9573 conftest$ac_exeext conftest.$ac_ext
9574LIBS=$ac_check_lib_save_LIBS
9575fi
9576echo "$as_me:$LINENO: result: $ac_cv_lib_m_erfcf" >&5
9577echo "${ECHO_T}$ac_cv_lib_m_erfcf" >&6
9578if test $ac_cv_lib_m_erfcf = yes; then
9579
9580cat >>confdefs.h <<\_ACEOF
9581#define HAVE_ERFCF 1
9582_ACEOF
9583
9584fi
9585
9586echo "$as_me:$LINENO: checking for erff in -lm" >&5
9587echo $ECHO_N "checking for erff in -lm... $ECHO_C" >&6
9588if test "${ac_cv_lib_m_erff+set}" = set; then
9589 echo $ECHO_N "(cached) $ECHO_C" >&6
9590else
9591 ac_check_lib_save_LIBS=$LIBS
9592LIBS="-lm $LIBS"
d49ec2d1
KC
9593if test x$gcc_no_link = xyes; then
9594 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9595echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9596 { (exit 1); exit 1; }; }
9597fi
e8525382
SK
9598cat >conftest.$ac_ext <<_ACEOF
9599/* confdefs.h. */
9600_ACEOF
9601cat confdefs.h >>conftest.$ac_ext
9602cat >>conftest.$ac_ext <<_ACEOF
9603/* end confdefs.h. */
9604
9605/* Override any gcc2 internal prototype to avoid an error. */
9606#ifdef __cplusplus
9607extern "C"
9608#endif
9609/* We use char because int might match the return type of a gcc2
9610 builtin and then its argument prototype would still apply. */
9611char erff ();
9612int
9613main ()
9614{
9615erff ();
9616 ;
9617 return 0;
9618}
9619_ACEOF
9620rm -f conftest.$ac_objext conftest$ac_exeext
9621if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9622 (eval $ac_link) 2>conftest.er1
9623 ac_status=$?
9624 grep -v '^ *+' conftest.er1 >conftest.err
9625 rm -f conftest.er1
9626 cat conftest.err >&5
9627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9628 (exit $ac_status); } &&
df65f093 9629 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
e8525382
SK
9630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9631 (eval $ac_try) 2>&5
9632 ac_status=$?
9633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9634 (exit $ac_status); }; } &&
9635 { ac_try='test -s conftest$ac_exeext'
9636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9637 (eval $ac_try) 2>&5
9638 ac_status=$?
9639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9640 (exit $ac_status); }; }; then
9641 ac_cv_lib_m_erff=yes
9642else
9643 echo "$as_me: failed program was:" >&5
9644sed 's/^/| /' conftest.$ac_ext >&5
9645
9646ac_cv_lib_m_erff=no
9647fi
9648rm -f conftest.err conftest.$ac_objext \
9649 conftest$ac_exeext conftest.$ac_ext
9650LIBS=$ac_check_lib_save_LIBS
9651fi
9652echo "$as_me:$LINENO: result: $ac_cv_lib_m_erff" >&5
9653echo "${ECHO_T}$ac_cv_lib_m_erff" >&6
9654if test $ac_cv_lib_m_erff = yes; then
9655
9656cat >>confdefs.h <<\_ACEOF
9657#define HAVE_ERFF 1
9658_ACEOF
9659
9660fi
9661
9662echo "$as_me:$LINENO: checking for j0 in -lm" >&5
9663echo $ECHO_N "checking for j0 in -lm... $ECHO_C" >&6
9664if test "${ac_cv_lib_m_j0+set}" = set; then
9665 echo $ECHO_N "(cached) $ECHO_C" >&6
9666else
9667 ac_check_lib_save_LIBS=$LIBS
9668LIBS="-lm $LIBS"
d49ec2d1
KC
9669if test x$gcc_no_link = xyes; then
9670 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9671echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9672 { (exit 1); exit 1; }; }
9673fi
e8525382
SK
9674cat >conftest.$ac_ext <<_ACEOF
9675/* confdefs.h. */
9676_ACEOF
9677cat confdefs.h >>conftest.$ac_ext
9678cat >>conftest.$ac_ext <<_ACEOF
9679/* end confdefs.h. */
9680
9681/* Override any gcc2 internal prototype to avoid an error. */
9682#ifdef __cplusplus
9683extern "C"
9684#endif
9685/* We use char because int might match the return type of a gcc2
9686 builtin and then its argument prototype would still apply. */
9687char j0 ();
9688int
9689main ()
9690{
9691j0 ();
9692 ;
9693 return 0;
9694}
9695_ACEOF
9696rm -f conftest.$ac_objext conftest$ac_exeext
9697if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9698 (eval $ac_link) 2>conftest.er1
9699 ac_status=$?
9700 grep -v '^ *+' conftest.er1 >conftest.err
9701 rm -f conftest.er1
9702 cat conftest.err >&5
9703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9704 (exit $ac_status); } &&
df65f093 9705 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
e8525382
SK
9706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9707 (eval $ac_try) 2>&5
9708 ac_status=$?
9709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9710 (exit $ac_status); }; } &&
9711 { ac_try='test -s conftest$ac_exeext'
9712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9713 (eval $ac_try) 2>&5
9714 ac_status=$?
9715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9716 (exit $ac_status); }; }; then
9717 ac_cv_lib_m_j0=yes
9718else
9719 echo "$as_me: failed program was:" >&5
9720sed 's/^/| /' conftest.$ac_ext >&5
9721
9722ac_cv_lib_m_j0=no
9723fi
9724rm -f conftest.err conftest.$ac_objext \
9725 conftest$ac_exeext conftest.$ac_ext
9726LIBS=$ac_check_lib_save_LIBS
9727fi
9728echo "$as_me:$LINENO: result: $ac_cv_lib_m_j0" >&5
9729echo "${ECHO_T}$ac_cv_lib_m_j0" >&6
9730if test $ac_cv_lib_m_j0 = yes; then
9731
9732cat >>confdefs.h <<\_ACEOF
9733#define HAVE_J0 1
9734_ACEOF
9735
9736fi
9737
9738echo "$as_me:$LINENO: checking for j0f in -lm" >&5
9739echo $ECHO_N "checking for j0f in -lm... $ECHO_C" >&6
9740if test "${ac_cv_lib_m_j0f+set}" = set; then
9741 echo $ECHO_N "(cached) $ECHO_C" >&6
9742else
9743 ac_check_lib_save_LIBS=$LIBS
9744LIBS="-lm $LIBS"
d49ec2d1
KC
9745if test x$gcc_no_link = xyes; then
9746 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9747echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9748 { (exit 1); exit 1; }; }
9749fi
e8525382
SK
9750cat >conftest.$ac_ext <<_ACEOF
9751/* confdefs.h. */
9752_ACEOF
9753cat confdefs.h >>conftest.$ac_ext
9754cat >>conftest.$ac_ext <<_ACEOF
9755/* end confdefs.h. */
9756
9757/* Override any gcc2 internal prototype to avoid an error. */
9758#ifdef __cplusplus
9759extern "C"
9760#endif
9761/* We use char because int might match the return type of a gcc2
9762 builtin and then its argument prototype would still apply. */
9763char j0f ();
9764int
9765main ()
9766{
9767j0f ();
9768 ;
9769 return 0;
9770}
9771_ACEOF
9772rm -f conftest.$ac_objext conftest$ac_exeext
9773if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9774 (eval $ac_link) 2>conftest.er1
9775 ac_status=$?
9776 grep -v '^ *+' conftest.er1 >conftest.err
9777 rm -f conftest.er1
9778 cat conftest.err >&5
9779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9780 (exit $ac_status); } &&
df65f093 9781 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
e8525382
SK
9782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9783 (eval $ac_try) 2>&5
9784 ac_status=$?
9785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9786 (exit $ac_status); }; } &&
9787 { ac_try='test -s conftest$ac_exeext'
9788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9789 (eval $ac_try) 2>&5
9790 ac_status=$?
9791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9792 (exit $ac_status); }; }; then
9793 ac_cv_lib_m_j0f=yes
9794else
9795 echo "$as_me: failed program was:" >&5
9796sed 's/^/| /' conftest.$ac_ext >&5
9797
9798ac_cv_lib_m_j0f=no
9799fi
9800rm -f conftest.err conftest.$ac_objext \
9801 conftest$ac_exeext conftest.$ac_ext
9802LIBS=$ac_check_lib_save_LIBS
9803fi
9804echo "$as_me:$LINENO: result: $ac_cv_lib_m_j0f" >&5
9805echo "${ECHO_T}$ac_cv_lib_m_j0f" >&6
9806if test $ac_cv_lib_m_j0f = yes; then
9807
9808cat >>confdefs.h <<\_ACEOF
9809#define HAVE_J0F 1
9810_ACEOF
9811
9812fi
9813
9814echo "$as_me:$LINENO: checking for j1 in -lm" >&5
9815echo $ECHO_N "checking for j1 in -lm... $ECHO_C" >&6
9816if test "${ac_cv_lib_m_j1+set}" = set; then
9817 echo $ECHO_N "(cached) $ECHO_C" >&6
9818else
9819 ac_check_lib_save_LIBS=$LIBS
9820LIBS="-lm $LIBS"
d49ec2d1
KC
9821if test x$gcc_no_link = xyes; then
9822 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9823echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9824 { (exit 1); exit 1; }; }
9825fi
e8525382
SK
9826cat >conftest.$ac_ext <<_ACEOF
9827/* confdefs.h. */
9828_ACEOF
9829cat confdefs.h >>conftest.$ac_ext
9830cat >>conftest.$ac_ext <<_ACEOF
9831/* end confdefs.h. */
9832
9833/* Override any gcc2 internal prototype to avoid an error. */
9834#ifdef __cplusplus
9835extern "C"
9836#endif
9837/* We use char because int might match the return type of a gcc2
9838 builtin and then its argument prototype would still apply. */
9839char j1 ();
9840int
9841main ()
9842{
9843j1 ();
9844 ;
9845 return 0;
9846}
9847_ACEOF
9848rm -f conftest.$ac_objext conftest$ac_exeext
9849if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9850 (eval $ac_link) 2>conftest.er1
9851 ac_status=$?
9852 grep -v '^ *+' conftest.er1 >conftest.err
9853 rm -f conftest.er1
9854 cat conftest.err >&5
9855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9856 (exit $ac_status); } &&
df65f093 9857 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
e8525382
SK
9858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9859 (eval $ac_try) 2>&5
9860 ac_status=$?
9861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9862 (exit $ac_status); }; } &&
9863 { ac_try='test -s conftest$ac_exeext'
9864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9865 (eval $ac_try) 2>&5
9866 ac_status=$?
9867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9868 (exit $ac_status); }; }; then
9869 ac_cv_lib_m_j1=yes
9870else
9871 echo "$as_me: failed program was:" >&5
9872sed 's/^/| /' conftest.$ac_ext >&5
9873
9874ac_cv_lib_m_j1=no
9875fi
9876rm -f conftest.err conftest.$ac_objext \
9877 conftest$ac_exeext conftest.$ac_ext
9878LIBS=$ac_check_lib_save_LIBS
9879fi
9880echo "$as_me:$LINENO: result: $ac_cv_lib_m_j1" >&5
9881echo "${ECHO_T}$ac_cv_lib_m_j1" >&6
9882if test $ac_cv_lib_m_j1 = yes; then
9883
9884cat >>confdefs.h <<\_ACEOF
9885#define HAVE_J1 1
9886_ACEOF
9887
9888fi
9889
9890echo "$as_me:$LINENO: checking for j1f in -lm" >&5
9891echo $ECHO_N "checking for j1f in -lm... $ECHO_C" >&6
9892if test "${ac_cv_lib_m_j1f+set}" = set; then
9893 echo $ECHO_N "(cached) $ECHO_C" >&6
9894else
9895 ac_check_lib_save_LIBS=$LIBS
9896LIBS="-lm $LIBS"
d49ec2d1
KC
9897if test x$gcc_no_link = xyes; then
9898 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9899echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9900 { (exit 1); exit 1; }; }
9901fi
e8525382
SK
9902cat >conftest.$ac_ext <<_ACEOF
9903/* confdefs.h. */
9904_ACEOF
9905cat confdefs.h >>conftest.$ac_ext
9906cat >>conftest.$ac_ext <<_ACEOF
9907/* end confdefs.h. */
9908
9909/* Override any gcc2 internal prototype to avoid an error. */
9910#ifdef __cplusplus
9911extern "C"
9912#endif
9913/* We use char because int might match the return type of a gcc2
9914 builtin and then its argument prototype would still apply. */
9915char j1f ();
9916int
9917main ()
9918{
9919j1f ();
9920 ;
9921 return 0;
9922}
9923_ACEOF
9924rm -f conftest.$ac_objext conftest$ac_exeext
9925if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9926 (eval $ac_link) 2>conftest.er1
9927 ac_status=$?
9928 grep -v '^ *+' conftest.er1 >conftest.err
9929 rm -f conftest.er1
9930 cat conftest.err >&5
9931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9932 (exit $ac_status); } &&
df65f093 9933 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
e8525382
SK
9934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9935 (eval $ac_try) 2>&5
9936 ac_status=$?
9937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9938 (exit $ac_status); }; } &&
9939 { ac_try='test -s conftest$ac_exeext'
9940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9941 (eval $ac_try) 2>&5
9942 ac_status=$?
9943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9944 (exit $ac_status); }; }; then
9945 ac_cv_lib_m_j1f=yes
9946else
9947 echo "$as_me: failed program was:" >&5
9948sed 's/^/| /' conftest.$ac_ext >&5
9949
9950ac_cv_lib_m_j1f=no
9951fi
9952rm -f conftest.err conftest.$ac_objext \
9953 conftest$ac_exeext conftest.$ac_ext
9954LIBS=$ac_check_lib_save_LIBS
9955fi
9956echo "$as_me:$LINENO: result: $ac_cv_lib_m_j1f" >&5
9957echo "${ECHO_T}$ac_cv_lib_m_j1f" >&6
9958if test $ac_cv_lib_m_j1f = yes; then
9959
9960cat >>confdefs.h <<\_ACEOF
9961#define HAVE_J1F 1
9962_ACEOF
9963
9964fi
9965
9966echo "$as_me:$LINENO: checking for jn in -lm" >&5
9967echo $ECHO_N "checking for jn in -lm... $ECHO_C" >&6
9968if test "${ac_cv_lib_m_jn+set}" = set; then
9969 echo $ECHO_N "(cached) $ECHO_C" >&6
9970else
9971 ac_check_lib_save_LIBS=$LIBS
9972LIBS="-lm $LIBS"
d49ec2d1
KC
9973if test x$gcc_no_link = xyes; then
9974 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9975echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9976 { (exit 1); exit 1; }; }
9977fi
e8525382
SK
9978cat >conftest.$ac_ext <<_ACEOF
9979/* confdefs.h. */
9980_ACEOF
9981cat confdefs.h >>conftest.$ac_ext
9982cat >>conftest.$ac_ext <<_ACEOF
9983/* end confdefs.h. */
9984
9985/* Override any gcc2 internal prototype to avoid an error. */
9986#ifdef __cplusplus
9987extern "C"
9988#endif
9989/* We use char because int might match the return type of a gcc2
9990 builtin and then its argument prototype would still apply. */
9991char jn ();
9992int
9993main ()
9994{
9995jn ();
9996 ;
9997 return 0;
9998}
9999_ACEOF
10000rm -f conftest.$ac_objext conftest$ac_exeext
10001if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10002 (eval $ac_link) 2>conftest.er1
10003 ac_status=$?
10004 grep -v '^ *+' conftest.er1 >conftest.err
10005 rm -f conftest.er1
10006 cat conftest.err >&5
10007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10008 (exit $ac_status); } &&
df65f093 10009 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
e8525382
SK
10010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10011 (eval $ac_try) 2>&5
10012 ac_status=$?
10013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10014 (exit $ac_status); }; } &&
10015 { ac_try='test -s conftest$ac_exeext'
10016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10017 (eval $ac_try) 2>&5
10018 ac_status=$?
10019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10020 (exit $ac_status); }; }; then
10021 ac_cv_lib_m_jn=yes
10022else
10023 echo "$as_me: failed program was:" >&5
10024sed 's/^/| /' conftest.$ac_ext >&5
10025
10026ac_cv_lib_m_jn=no
10027fi
10028rm -f conftest.err conftest.$ac_objext \
10029 conftest$ac_exeext conftest.$ac_ext
10030LIBS=$ac_check_lib_save_LIBS
10031fi
10032echo "$as_me:$LINENO: result: $ac_cv_lib_m_jn" >&5
10033echo "${ECHO_T}$ac_cv_lib_m_jn" >&6
10034if test $ac_cv_lib_m_jn = yes; then
10035
10036cat >>confdefs.h <<\_ACEOF
10037#define HAVE_JN 1
10038_ACEOF
10039
10040fi
10041
10042echo "$as_me:$LINENO: checking for jnf in -lm" >&5
10043echo $ECHO_N "checking for jnf in -lm... $ECHO_C" >&6
10044if test "${ac_cv_lib_m_jnf+set}" = set; then
10045 echo $ECHO_N "(cached) $ECHO_C" >&6
10046else
10047 ac_check_lib_save_LIBS=$LIBS
10048LIBS="-lm $LIBS"
d49ec2d1
KC
10049if test x$gcc_no_link = xyes; then
10050 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10051echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10052 { (exit 1); exit 1; }; }
10053fi
e8525382
SK
10054cat >conftest.$ac_ext <<_ACEOF
10055/* confdefs.h. */
10056_ACEOF
10057cat confdefs.h >>conftest.$ac_ext
10058cat >>conftest.$ac_ext <<_ACEOF
10059/* end confdefs.h. */
10060
10061/* Override any gcc2 internal prototype to avoid an error. */
10062#ifdef __cplusplus
10063extern "C"
10064#endif
10065/* We use char because int might match the return type of a gcc2
10066 builtin and then its argument prototype would still apply. */
10067char jnf ();
10068int
10069main ()
10070{
10071jnf ();
10072 ;
10073 return 0;
10074}
10075_ACEOF
10076rm -f conftest.$ac_objext conftest$ac_exeext
10077if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10078 (eval $ac_link) 2>conftest.er1
10079 ac_status=$?
10080 grep -v '^ *+' conftest.er1 >conftest.err
10081 rm -f conftest.er1
10082 cat conftest.err >&5
10083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10084 (exit $ac_status); } &&
df65f093 10085 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
e8525382
SK
10086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10087 (eval $ac_try) 2>&5
10088 ac_status=$?
10089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10090 (exit $ac_status); }; } &&
10091 { ac_try='test -s conftest$ac_exeext'
10092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10093 (eval $ac_try) 2>&5
10094 ac_status=$?
10095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10096 (exit $ac_status); }; }; then
10097 ac_cv_lib_m_jnf=yes
10098else
10099 echo "$as_me: failed program was:" >&5
10100sed 's/^/| /' conftest.$ac_ext >&5
10101
10102ac_cv_lib_m_jnf=no
10103fi
10104rm -f conftest.err conftest.$ac_objext \
10105 conftest$ac_exeext conftest.$ac_ext
10106LIBS=$ac_check_lib_save_LIBS
10107fi
10108echo "$as_me:$LINENO: result: $ac_cv_lib_m_jnf" >&5
10109echo "${ECHO_T}$ac_cv_lib_m_jnf" >&6
10110if test $ac_cv_lib_m_jnf = yes; then
10111
10112cat >>confdefs.h <<\_ACEOF
10113#define HAVE_JNF 1
10114_ACEOF
10115
10116fi
10117
10118echo "$as_me:$LINENO: checking for y0 in -lm" >&5
10119echo $ECHO_N "checking for y0 in -lm... $ECHO_C" >&6
10120if test "${ac_cv_lib_m_y0+set}" = set; then
10121 echo $ECHO_N "(cached) $ECHO_C" >&6
10122else
10123 ac_check_lib_save_LIBS=$LIBS
10124LIBS="-lm $LIBS"
d49ec2d1
KC
10125if test x$gcc_no_link = xyes; then
10126 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10127echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10128 { (exit 1); exit 1; }; }
10129fi
e8525382
SK
10130cat >conftest.$ac_ext <<_ACEOF
10131/* confdefs.h. */
10132_ACEOF
10133cat confdefs.h >>conftest.$ac_ext
10134cat >>conftest.$ac_ext <<_ACEOF
10135/* end confdefs.h. */
10136
10137/* Override any gcc2 internal prototype to avoid an error. */
10138#ifdef __cplusplus
10139extern "C"
10140#endif
10141/* We use char because int might match the return type of a gcc2
10142 builtin and then its argument prototype would still apply. */
10143char y0 ();
10144int
10145main ()
10146{
10147y0 ();
10148 ;
10149 return 0;
10150}
10151_ACEOF
10152rm -f conftest.$ac_objext conftest$ac_exeext
10153if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10154 (eval $ac_link) 2>conftest.er1
10155 ac_status=$?
10156 grep -v '^ *+' conftest.er1 >conftest.err
10157 rm -f conftest.er1
10158 cat conftest.err >&5
10159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10160 (exit $ac_status); } &&
df65f093 10161 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
e8525382
SK
10162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10163 (eval $ac_try) 2>&5
10164 ac_status=$?
10165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10166 (exit $ac_status); }; } &&
10167 { ac_try='test -s conftest$ac_exeext'
10168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10169 (eval $ac_try) 2>&5
10170 ac_status=$?
10171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10172 (exit $ac_status); }; }; then
10173 ac_cv_lib_m_y0=yes
10174else
10175 echo "$as_me: failed program was:" >&5
10176sed 's/^/| /' conftest.$ac_ext >&5
10177
10178ac_cv_lib_m_y0=no
10179fi
10180rm -f conftest.err conftest.$ac_objext \
10181 conftest$ac_exeext conftest.$ac_ext
10182LIBS=$ac_check_lib_save_LIBS
10183fi
10184echo "$as_me:$LINENO: result: $ac_cv_lib_m_y0" >&5
10185echo "${ECHO_T}$ac_cv_lib_m_y0" >&6
10186if test $ac_cv_lib_m_y0 = yes; then
10187
10188cat >>confdefs.h <<\_ACEOF
10189#define HAVE_Y0 1
10190_ACEOF
10191
10192fi
10193
10194echo "$as_me:$LINENO: checking for y0f in -lm" >&5
10195echo $ECHO_N "checking for y0f in -lm... $ECHO_C" >&6
10196if test "${ac_cv_lib_m_y0f+set}" = set; then
10197 echo $ECHO_N "(cached) $ECHO_C" >&6
10198else
10199 ac_check_lib_save_LIBS=$LIBS
10200LIBS="-lm $LIBS"
d49ec2d1
KC
10201if test x$gcc_no_link = xyes; then
10202 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10203echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10204 { (exit 1); exit 1; }; }
10205fi
e8525382
SK
10206cat >conftest.$ac_ext <<_ACEOF
10207/* confdefs.h. */
10208_ACEOF
10209cat confdefs.h >>conftest.$ac_ext
10210cat >>conftest.$ac_ext <<_ACEOF
10211/* end confdefs.h. */
10212
10213/* Override any gcc2 internal prototype to avoid an error. */
10214#ifdef __cplusplus
10215extern "C"
10216#endif
10217/* We use char because int might match the return type of a gcc2
10218 builtin and then its argument prototype would still apply. */
10219char y0f ();
10220int
10221main ()
10222{
10223y0f ();
10224 ;
10225 return 0;
10226}
10227_ACEOF
10228rm -f conftest.$ac_objext conftest$ac_exeext
10229if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10230 (eval $ac_link) 2>conftest.er1
10231 ac_status=$?
10232 grep -v '^ *+' conftest.er1 >conftest.err
10233 rm -f conftest.er1
10234 cat conftest.err >&5
10235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10236 (exit $ac_status); } &&
df65f093 10237 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
e8525382
SK
10238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10239 (eval $ac_try) 2>&5
10240 ac_status=$?
10241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10242 (exit $ac_status); }; } &&
10243 { ac_try='test -s conftest$ac_exeext'
10244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10245 (eval $ac_try) 2>&5
10246 ac_status=$?
10247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10248 (exit $ac_status); }; }; then
10249 ac_cv_lib_m_y0f=yes
10250else
10251 echo "$as_me: failed program was:" >&5
10252sed 's/^/| /' conftest.$ac_ext >&5
10253
10254ac_cv_lib_m_y0f=no
10255fi
10256rm -f conftest.err conftest.$ac_objext \
10257 conftest$ac_exeext conftest.$ac_ext
10258LIBS=$ac_check_lib_save_LIBS
10259fi
10260echo "$as_me:$LINENO: result: $ac_cv_lib_m_y0f" >&5
10261echo "${ECHO_T}$ac_cv_lib_m_y0f" >&6
10262if test $ac_cv_lib_m_y0f = yes; then
10263
10264cat >>confdefs.h <<\_ACEOF
10265#define HAVE_Y0F 1
10266_ACEOF
10267
10268fi
10269
10270echo "$as_me:$LINENO: checking for y1 in -lm" >&5
10271echo $ECHO_N "checking for y1 in -lm... $ECHO_C" >&6
10272if test "${ac_cv_lib_m_y1+set}" = set; then
10273 echo $ECHO_N "(cached) $ECHO_C" >&6
10274else
10275 ac_check_lib_save_LIBS=$LIBS
10276LIBS="-lm $LIBS"
d49ec2d1
KC
10277if test x$gcc_no_link = xyes; then
10278 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10279echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10280 { (exit 1); exit 1; }; }
10281fi
e8525382
SK
10282cat >conftest.$ac_ext <<_ACEOF
10283/* confdefs.h. */
10284_ACEOF
10285cat confdefs.h >>conftest.$ac_ext
10286cat >>conftest.$ac_ext <<_ACEOF
10287/* end confdefs.h. */
10288
10289/* Override any gcc2 internal prototype to avoid an error. */
10290#ifdef __cplusplus
10291extern "C"
10292#endif
10293/* We use char because int might match the return type of a gcc2
10294 builtin and then its argument prototype would still apply. */
10295char y1 ();
10296int
10297main ()
10298{
10299y1 ();
10300 ;
10301 return 0;
10302}
10303_ACEOF
10304rm -f conftest.$ac_objext conftest$ac_exeext
10305if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10306 (eval $ac_link) 2>conftest.er1
10307 ac_status=$?
10308 grep -v '^ *+' conftest.er1 >conftest.err
10309 rm -f conftest.er1
10310 cat conftest.err >&5
10311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10312 (exit $ac_status); } &&
df65f093 10313 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
e8525382
SK
10314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10315 (eval $ac_try) 2>&5
10316 ac_status=$?
10317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10318 (exit $ac_status); }; } &&
10319 { ac_try='test -s conftest$ac_exeext'
10320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10321 (eval $ac_try) 2>&5
10322 ac_status=$?
10323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10324 (exit $ac_status); }; }; then
10325 ac_cv_lib_m_y1=yes
10326else
10327 echo "$as_me: failed program was:" >&5
10328sed 's/^/| /' conftest.$ac_ext >&5
10329
10330ac_cv_lib_m_y1=no
10331fi
10332rm -f conftest.err conftest.$ac_objext \
10333 conftest$ac_exeext conftest.$ac_ext
10334LIBS=$ac_check_lib_save_LIBS
10335fi
10336echo "$as_me:$LINENO: result: $ac_cv_lib_m_y1" >&5
10337echo "${ECHO_T}$ac_cv_lib_m_y1" >&6
10338if test $ac_cv_lib_m_y1 = yes; then
10339
10340cat >>confdefs.h <<\_ACEOF
10341#define HAVE_Y1 1
10342_ACEOF
10343
10344fi
10345
10346echo "$as_me:$LINENO: checking for y1f in -lm" >&5
10347echo $ECHO_N "checking for y1f in -lm... $ECHO_C" >&6
10348if test "${ac_cv_lib_m_y1f+set}" = set; then
10349 echo $ECHO_N "(cached) $ECHO_C" >&6
10350else
10351 ac_check_lib_save_LIBS=$LIBS
10352LIBS="-lm $LIBS"
d49ec2d1
KC
10353if test x$gcc_no_link = xyes; then
10354 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10355echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10356 { (exit 1); exit 1; }; }
10357fi
e8525382
SK
10358cat >conftest.$ac_ext <<_ACEOF
10359/* confdefs.h. */
10360_ACEOF
10361cat confdefs.h >>conftest.$ac_ext
10362cat >>conftest.$ac_ext <<_ACEOF
10363/* end confdefs.h. */
10364
10365/* Override any gcc2 internal prototype to avoid an error. */
10366#ifdef __cplusplus
10367extern "C"
10368#endif
10369/* We use char because int might match the return type of a gcc2
10370 builtin and then its argument prototype would still apply. */
10371char y1f ();
10372int
10373main ()
10374{
10375y1f ();
10376 ;
10377 return 0;
10378}
10379_ACEOF
10380rm -f conftest.$ac_objext conftest$ac_exeext
10381if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10382 (eval $ac_link) 2>conftest.er1
10383 ac_status=$?
10384 grep -v '^ *+' conftest.er1 >conftest.err
10385 rm -f conftest.er1
10386 cat conftest.err >&5
10387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10388 (exit $ac_status); } &&
df65f093 10389 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
e8525382
SK
10390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10391 (eval $ac_try) 2>&5
10392 ac_status=$?
10393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10394 (exit $ac_status); }; } &&
10395 { ac_try='test -s conftest$ac_exeext'
10396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10397 (eval $ac_try) 2>&5
10398 ac_status=$?
10399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10400 (exit $ac_status); }; }; then
10401 ac_cv_lib_m_y1f=yes
10402else
10403 echo "$as_me: failed program was:" >&5
10404sed 's/^/| /' conftest.$ac_ext >&5
10405
10406ac_cv_lib_m_y1f=no
10407fi
10408rm -f conftest.err conftest.$ac_objext \
10409 conftest$ac_exeext conftest.$ac_ext
10410LIBS=$ac_check_lib_save_LIBS
10411fi
10412echo "$as_me:$LINENO: result: $ac_cv_lib_m_y1f" >&5
10413echo "${ECHO_T}$ac_cv_lib_m_y1f" >&6
10414if test $ac_cv_lib_m_y1f = yes; then
10415
10416cat >>confdefs.h <<\_ACEOF
10417#define HAVE_Y1F 1
10418_ACEOF
10419
10420fi
10421
10422echo "$as_me:$LINENO: checking for yn in -lm" >&5
10423echo $ECHO_N "checking for yn in -lm... $ECHO_C" >&6
10424if test "${ac_cv_lib_m_yn+set}" = set; then
10425 echo $ECHO_N "(cached) $ECHO_C" >&6
10426else
10427 ac_check_lib_save_LIBS=$LIBS
10428LIBS="-lm $LIBS"
d49ec2d1
KC
10429if test x$gcc_no_link = xyes; then
10430 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10431echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10432 { (exit 1); exit 1; }; }
10433fi
e8525382
SK
10434cat >conftest.$ac_ext <<_ACEOF
10435/* confdefs.h. */
10436_ACEOF
10437cat confdefs.h >>conftest.$ac_ext
10438cat >>conftest.$ac_ext <<_ACEOF
10439/* end confdefs.h. */
10440
10441/* Override any gcc2 internal prototype to avoid an error. */
10442#ifdef __cplusplus
10443extern "C"
10444#endif
10445/* We use char because int might match the return type of a gcc2
10446 builtin and then its argument prototype would still apply. */
10447char yn ();
10448int
10449main ()
10450{
10451yn ();
10452 ;
10453 return 0;
10454}
10455_ACEOF
10456rm -f conftest.$ac_objext conftest$ac_exeext
10457if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10458 (eval $ac_link) 2>conftest.er1
10459 ac_status=$?
10460 grep -v '^ *+' conftest.er1 >conftest.err
10461 rm -f conftest.er1
10462 cat conftest.err >&5
10463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10464 (exit $ac_status); } &&
df65f093 10465 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
e8525382
SK
10466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10467 (eval $ac_try) 2>&5
10468 ac_status=$?
10469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10470 (exit $ac_status); }; } &&
10471 { ac_try='test -s conftest$ac_exeext'
10472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10473 (eval $ac_try) 2>&5
10474 ac_status=$?
10475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10476 (exit $ac_status); }; }; then
10477 ac_cv_lib_m_yn=yes
10478else
10479 echo "$as_me: failed program was:" >&5
10480sed 's/^/| /' conftest.$ac_ext >&5
10481
10482ac_cv_lib_m_yn=no
10483fi
10484rm -f conftest.err conftest.$ac_objext \
10485 conftest$ac_exeext conftest.$ac_ext
10486LIBS=$ac_check_lib_save_LIBS
10487fi
10488echo "$as_me:$LINENO: result: $ac_cv_lib_m_yn" >&5
10489echo "${ECHO_T}$ac_cv_lib_m_yn" >&6
10490if test $ac_cv_lib_m_yn = yes; then
10491
10492cat >>confdefs.h <<\_ACEOF
10493#define HAVE_YN 1
10494_ACEOF
10495
10496fi
10497
10498echo "$as_me:$LINENO: checking for ynf in -lm" >&5
10499echo $ECHO_N "checking for ynf in -lm... $ECHO_C" >&6
10500if test "${ac_cv_lib_m_ynf+set}" = set; then
10501 echo $ECHO_N "(cached) $ECHO_C" >&6
10502else
10503 ac_check_lib_save_LIBS=$LIBS
10504LIBS="-lm $LIBS"
d49ec2d1
KC
10505if test x$gcc_no_link = xyes; then
10506 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10507echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10508 { (exit 1); exit 1; }; }
10509fi
e8525382
SK
10510cat >conftest.$ac_ext <<_ACEOF
10511/* confdefs.h. */
10512_ACEOF
10513cat confdefs.h >>conftest.$ac_ext
10514cat >>conftest.$ac_ext <<_ACEOF
10515/* end confdefs.h. */
10516
10517/* Override any gcc2 internal prototype to avoid an error. */
10518#ifdef __cplusplus
10519extern "C"
10520#endif
10521/* We use char because int might match the return type of a gcc2
10522 builtin and then its argument prototype would still apply. */
10523char ynf ();
10524int
10525main ()
10526{
10527ynf ();
10528 ;
10529 return 0;
10530}
10531_ACEOF
10532rm -f conftest.$ac_objext conftest$ac_exeext
10533if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10534 (eval $ac_link) 2>conftest.er1
10535 ac_status=$?
10536 grep -v '^ *+' conftest.er1 >conftest.err
10537 rm -f conftest.er1
10538 cat conftest.err >&5
10539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10540 (exit $ac_status); } &&
df65f093 10541 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
e8525382
SK
10542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10543 (eval $ac_try) 2>&5
10544 ac_status=$?
10545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10546 (exit $ac_status); }; } &&
10547 { ac_try='test -s conftest$ac_exeext'
10548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10549 (eval $ac_try) 2>&5
10550 ac_status=$?
10551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10552 (exit $ac_status); }; }; then
10553 ac_cv_lib_m_ynf=yes
10554else
10555 echo "$as_me: failed program was:" >&5
10556sed 's/^/| /' conftest.$ac_ext >&5
10557
10558ac_cv_lib_m_ynf=no
10559fi
10560rm -f conftest.err conftest.$ac_objext \
10561 conftest$ac_exeext conftest.$ac_ext
10562LIBS=$ac_check_lib_save_LIBS
10563fi
10564echo "$as_me:$LINENO: result: $ac_cv_lib_m_ynf" >&5
10565echo "${ECHO_T}$ac_cv_lib_m_ynf" >&6
10566if test $ac_cv_lib_m_ynf = yes; then
10567
10568cat >>confdefs.h <<\_ACEOF
10569#define HAVE_YNF 1
10570_ACEOF
10571
10572fi
10573
a2a2059f 10574
69d3c9a4
SB
10575# Fallback in case isfinite is not available.
10576echo "$as_me:$LINENO: checking for finite in -lm" >&5
10577echo $ECHO_N "checking for finite in -lm... $ECHO_C" >&6
10578if test "${ac_cv_lib_m_finite+set}" = set; then
10579 echo $ECHO_N "(cached) $ECHO_C" >&6
10580else
10581 ac_check_lib_save_LIBS=$LIBS
10582LIBS="-lm $LIBS"
10583if test x$gcc_no_link = xyes; then
10584 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10585echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10586 { (exit 1); exit 1; }; }
10587fi
10588cat >conftest.$ac_ext <<_ACEOF
10589/* confdefs.h. */
10590_ACEOF
10591cat confdefs.h >>conftest.$ac_ext
10592cat >>conftest.$ac_ext <<_ACEOF
10593/* end confdefs.h. */
10594
10595/* Override any gcc2 internal prototype to avoid an error. */
10596#ifdef __cplusplus
10597extern "C"
10598#endif
10599/* We use char because int might match the return type of a gcc2
10600 builtin and then its argument prototype would still apply. */
10601char finite ();
10602int
10603main ()
10604{
10605finite ();
10606 ;
10607 return 0;
10608}
10609_ACEOF
10610rm -f conftest.$ac_objext conftest$ac_exeext
10611if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10612 (eval $ac_link) 2>conftest.er1
10613 ac_status=$?
10614 grep -v '^ *+' conftest.er1 >conftest.err
10615 rm -f conftest.er1
10616 cat conftest.err >&5
10617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10618 (exit $ac_status); } &&
df65f093 10619 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
69d3c9a4
SB
10620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10621 (eval $ac_try) 2>&5
10622 ac_status=$?
10623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10624 (exit $ac_status); }; } &&
10625 { ac_try='test -s conftest$ac_exeext'
10626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10627 (eval $ac_try) 2>&5
10628 ac_status=$?
10629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10630 (exit $ac_status); }; }; then
10631 ac_cv_lib_m_finite=yes
10632else
10633 echo "$as_me: failed program was:" >&5
10634sed 's/^/| /' conftest.$ac_ext >&5
10635
10636ac_cv_lib_m_finite=no
10637fi
10638rm -f conftest.err conftest.$ac_objext \
10639 conftest$ac_exeext conftest.$ac_ext
10640LIBS=$ac_check_lib_save_LIBS
10641fi
10642echo "$as_me:$LINENO: result: $ac_cv_lib_m_finite" >&5
10643echo "${ECHO_T}$ac_cv_lib_m_finite" >&6
10644if test $ac_cv_lib_m_finite = yes; then
10645
10646cat >>confdefs.h <<\_ACEOF
10647#define HAVE_FINITE 1
10648_ACEOF
10649
10650fi
10651
10652
96b8a615
AJ
10653# Let the user override this
10654# Check whether --enable-cmath or --disable-cmath was given.
10655if test "${enable_cmath+set}" = set; then
10656 enableval="$enable_cmath"
10657 need_math=$enableval
10658fi;
10659if test "$need_math" = "yes"; then
10660 { echo "$as_me:$LINENO: Including complex math functions in libgfor" >&5
10661echo "$as_me: Including complex math functions in libgfor" >&6;};
10662 extra_math_obj='$(gfor_cmath_obj)'
10663fi
10664
10665MATH_OBJ="$extra_math_obj"
10666
10667
10668# The standard autoconf HAVE_STRUCT_TIMEZONE doesn't actually check
10669# for struct timezone, as you might think. We also need to check how
10670# to call gettimeofday if we have it.
10671echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
10672echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
10673if test "${ac_cv_header_time+set}" = set; then
6de9cd9a
DN
10674 echo $ECHO_N "(cached) $ECHO_C" >&6
10675else
96b8a615
AJ
10676 cat >conftest.$ac_ext <<_ACEOF
10677/* confdefs.h. */
10678_ACEOF
10679cat confdefs.h >>conftest.$ac_ext
10680cat >>conftest.$ac_ext <<_ACEOF
10681/* end confdefs.h. */
10682#include <sys/types.h>
10683#include <sys/time.h>
10684#include <time.h>
10685
10686int
10687main ()
10688{
10689if ((struct tm *) 0)
10690return 0;
10691 ;
10692 return 0;
10693}
10694_ACEOF
10695rm -f conftest.$ac_objext
10696if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10697 (eval $ac_compile) 2>conftest.er1
10698 ac_status=$?
10699 grep -v '^ *+' conftest.er1 >conftest.err
10700 rm -f conftest.er1
10701 cat conftest.err >&5
10702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10703 (exit $ac_status); } &&
df65f093 10704 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
96b8a615
AJ
10705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10706 (eval $ac_try) 2>&5
10707 ac_status=$?
10708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10709 (exit $ac_status); }; } &&
10710 { ac_try='test -s conftest.$ac_objext'
10711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10712 (eval $ac_try) 2>&5
10713 ac_status=$?
10714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10715 (exit $ac_status); }; }; then
10716 ac_cv_header_time=yes
10717else
10718 echo "$as_me: failed program was:" >&5
10719sed 's/^/| /' conftest.$ac_ext >&5
6de9cd9a 10720
96b8a615 10721ac_cv_header_time=no
6de9cd9a 10722fi
96b8a615 10723rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6de9cd9a 10724fi
96b8a615
AJ
10725echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
10726echo "${ECHO_T}$ac_cv_header_time" >&6
10727if test $ac_cv_header_time = yes; then
6de9cd9a 10728
96b8a615
AJ
10729cat >>confdefs.h <<\_ACEOF
10730#define TIME_WITH_SYS_TIME 1
10731_ACEOF
6de9cd9a 10732
6de9cd9a
DN
10733fi
10734
6de9cd9a 10735
96b8a615
AJ
10736
10737for ac_func in gettimeofday
10738do
10739as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10740echo "$as_me:$LINENO: checking for $ac_func" >&5
10741echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10742if eval "test \"\${$as_ac_var+set}\" = set"; then
6de9cd9a
DN
10743 echo $ECHO_N "(cached) $ECHO_C" >&6
10744else
d49ec2d1
KC
10745 if test x$gcc_no_link = xyes; then
10746 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10747echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10748 { (exit 1); exit 1; }; }
10749fi
10750cat >conftest.$ac_ext <<_ACEOF
96b8a615
AJ
10751/* confdefs.h. */
10752_ACEOF
10753cat confdefs.h >>conftest.$ac_ext
10754cat >>conftest.$ac_ext <<_ACEOF
10755/* end confdefs.h. */
10756/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10757 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10758#define $ac_func innocuous_$ac_func
10759
10760/* System header to define __stub macros and hopefully few prototypes,
10761 which can conflict with char $ac_func (); below.
10762 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10763 <limits.h> exists even on freestanding compilers. */
10764
10765#ifdef __STDC__
10766# include <limits.h>
10767#else
10768# include <assert.h>
10769#endif
10770
10771#undef $ac_func
10772
10773/* Override any gcc2 internal prototype to avoid an error. */
10774#ifdef __cplusplus
10775extern "C"
10776{
10777#endif
10778/* We use char because int might match the return type of a gcc2
10779 builtin and then its argument prototype would still apply. */
10780char $ac_func ();
10781/* The GNU C library defines this for functions which it implements
10782 to always fail with ENOSYS. Some functions are actually named
10783 something starting with __ and the normal name is an alias. */
10784#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10785choke me
10786#else
10787char (*f) () = $ac_func;
10788#endif
10789#ifdef __cplusplus
10790}
10791#endif
10792
10793int
10794main ()
10795{
10796return f != $ac_func;
10797 ;
10798 return 0;
10799}
10800_ACEOF
10801rm -f conftest.$ac_objext conftest$ac_exeext
10802if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10803 (eval $ac_link) 2>conftest.er1
10804 ac_status=$?
10805 grep -v '^ *+' conftest.er1 >conftest.err
10806 rm -f conftest.er1
10807 cat conftest.err >&5
10808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10809 (exit $ac_status); } &&
df65f093 10810 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
96b8a615
AJ
10811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10812 (eval $ac_try) 2>&5
10813 ac_status=$?
10814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10815 (exit $ac_status); }; } &&
10816 { ac_try='test -s conftest$ac_exeext'
10817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10818 (eval $ac_try) 2>&5
10819 ac_status=$?
10820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10821 (exit $ac_status); }; }; then
10822 eval "$as_ac_var=yes"
6de9cd9a 10823else
96b8a615
AJ
10824 echo "$as_me: failed program was:" >&5
10825sed 's/^/| /' conftest.$ac_ext >&5
6de9cd9a 10826
96b8a615 10827eval "$as_ac_var=no"
6de9cd9a 10828fi
96b8a615
AJ
10829rm -f conftest.err conftest.$ac_objext \
10830 conftest$ac_exeext conftest.$ac_ext
6de9cd9a 10831fi
96b8a615
AJ
10832echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10833echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10834if test `eval echo '${'$as_ac_var'}'` = yes; then
10835 cat >>confdefs.h <<_ACEOF
10836#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10837_ACEOF
6de9cd9a
DN
10838
10839fi
6de9cd9a
DN
10840done
10841
96b8a615
AJ
10842 if test "$ac_cv_func_gettimeofday" = yes; then
10843 echo "$as_me:$LINENO: checking for struct timezone" >&5
10844echo $ECHO_N "checking for struct timezone... $ECHO_C" >&6
10845if test "${gfor_cv_struct_timezone+set}" = set; then
10846 echo $ECHO_N "(cached) $ECHO_C" >&6
10847else
10848 cat >conftest.$ac_ext <<_ACEOF
10849/* confdefs.h. */
10850_ACEOF
10851cat confdefs.h >>conftest.$ac_ext
10852cat >>conftest.$ac_ext <<_ACEOF
10853/* end confdefs.h. */
10854#include <sys/time.h>
10855int
10856main ()
10857{
10858struct timezone tz;
10859 ;
10860 return 0;
10861}
10862_ACEOF
10863rm -f conftest.$ac_objext
10864if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10865 (eval $ac_compile) 2>conftest.er1
10866 ac_status=$?
10867 grep -v '^ *+' conftest.er1 >conftest.err
10868 rm -f conftest.er1
10869 cat conftest.err >&5
10870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10871 (exit $ac_status); } &&
df65f093 10872 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
96b8a615
AJ
10873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10874 (eval $ac_try) 2>&5
10875 ac_status=$?
10876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10877 (exit $ac_status); }; } &&
10878 { ac_try='test -s conftest.$ac_objext'
10879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10880 (eval $ac_try) 2>&5
10881 ac_status=$?
10882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10883 (exit $ac_status); }; }; then
10884 gfor_cv_struct_timezone=yes
6de9cd9a 10885else
96b8a615
AJ
10886 echo "$as_me: failed program was:" >&5
10887sed 's/^/| /' conftest.$ac_ext >&5
6de9cd9a 10888
96b8a615 10889gfor_cv_struct_timezone=no
6de9cd9a 10890fi
96b8a615
AJ
10891rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10892fi
10893echo "$as_me:$LINENO: result: $gfor_cv_struct_timezone" >&5
10894echo "${ECHO_T}$gfor_cv_struct_timezone" >&6
10895 if test $gfor_cv_struct_timezone = yes; then
10896 if test "$cross_compiling" = yes; then
10897 gfor_have_struct_timezone=yes
6de9cd9a 10898else
96b8a615
AJ
10899 cat >conftest.$ac_ext <<_ACEOF
10900/* confdefs.h. */
10901_ACEOF
10902cat confdefs.h >>conftest.$ac_ext
10903cat >>conftest.$ac_ext <<_ACEOF
10904/* end confdefs.h. */
6de9cd9a 10905
96b8a615
AJ
10906#ifdef TIME_WITH_SYS_TIME
10907#include <sys/time.h>
10908#include <time.h>
10909#else
10910#ifdef HAVE_SYS_TIME_H
10911#include <sys/time.h>
10912#else
10913#include <time.h>
10914#endif
10915#endif
10916main ()
10917{
10918 struct timeval time;
10919 struct timezone dummy;
10920 if (gettimeofday (&time, &dummy))
10921 exit (1);
10922 else
10923 exit (0);
10924}
10925_ACEOF
10926rm -f conftest$ac_exeext
10927if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10928 (eval $ac_link) 2>&5
6de9cd9a
DN
10929 ac_status=$?
10930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
96b8a615
AJ
10931 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10933 (eval $ac_try) 2>&5
6de9cd9a
DN
10934 ac_status=$?
10935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
96b8a615
AJ
10936 (exit $ac_status); }; }; then
10937 gfor_have_struct_timezone=yes
6de9cd9a 10938else
96b8a615
AJ
10939 echo "$as_me: program exited with status $ac_status" >&5
10940echo "$as_me: failed program was:" >&5
10941sed 's/^/| /' conftest.$ac_ext >&5
6de9cd9a 10942
96b8a615
AJ
10943( exit $ac_status )
10944gfor_have_struct_timezone=no
10945fi
10946rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10947fi
10948 if test $gfor_have_struct_timezone = yes; then
6de9cd9a 10949
96b8a615
AJ
10950cat >>confdefs.h <<\_ACEOF
10951#define HAVE_TIMEZONE 1
10952_ACEOF
6de9cd9a 10953
96b8a615
AJ
10954 fi
10955 fi
10956
10957 echo "$as_me:$LINENO: checking whether gettimeofday can accept two arguments" >&5
10958echo $ECHO_N "checking whether gettimeofday can accept two arguments... $ECHO_C" >&6
10959if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then
10960 echo $ECHO_N "(cached) $ECHO_C" >&6
10961else
d49ec2d1
KC
10962 if test x$gcc_no_link = xyes; then
10963 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10964echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10965 { (exit 1); exit 1; }; }
10966fi
10967cat >conftest.$ac_ext <<_ACEOF
6de9cd9a
DN
10968/* confdefs.h. */
10969_ACEOF
10970cat confdefs.h >>conftest.$ac_ext
10971cat >>conftest.$ac_ext <<_ACEOF
10972/* end confdefs.h. */
10973
96b8a615
AJ
10974#ifdef TIME_WITH_SYS_TIME
10975#include <sys/time.h>
10976#include <time.h>
10977#else
10978#ifdef HAVE_SYS_TIME_H
10979#include <sys/time.h>
10980#else
10981#include <time.h>
10982#endif
10983#endif
10984
6de9cd9a
DN
10985int
10986main ()
10987{
10988
96b8a615
AJ
10989 struct timeval time;
10990#ifdef HAVE_TIMEZONE
10991 struct timezone dummy;
10992#define DUMMY &dummy
10993#else
10994#define DUMMY NULL
10995#endif
10996 gettimeofday (&time, DUMMY);
6de9cd9a
DN
10997 ;
10998 return 0;
10999}
11000_ACEOF
11001rm -f conftest.$ac_objext conftest$ac_exeext
11002if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11003 (eval $ac_link) 2>conftest.er1
11004 ac_status=$?
11005 grep -v '^ *+' conftest.er1 >conftest.err
11006 rm -f conftest.er1
11007 cat conftest.err >&5
11008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11009 (exit $ac_status); } &&
df65f093 11010 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6de9cd9a
DN
11011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11012 (eval $ac_try) 2>&5
11013 ac_status=$?
11014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11015 (exit $ac_status); }; } &&
11016 { ac_try='test -s conftest$ac_exeext'
11017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11018 (eval $ac_try) 2>&5
11019 ac_status=$?
11020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11021 (exit $ac_status); }; }; then
96b8a615 11022 emacs_cv_gettimeofday_two_arguments=yes
6de9cd9a
DN
11023else
11024 echo "$as_me: failed program was:" >&5
11025sed 's/^/| /' conftest.$ac_ext >&5
11026
96b8a615 11027emacs_cv_gettimeofday_two_arguments=no
6de9cd9a
DN
11028fi
11029rm -f conftest.err conftest.$ac_objext \
11030 conftest$ac_exeext conftest.$ac_ext
6de9cd9a 11031fi
96b8a615
AJ
11032echo "$as_me:$LINENO: result: $emacs_cv_gettimeofday_two_arguments" >&5
11033echo "${ECHO_T}$emacs_cv_gettimeofday_two_arguments" >&6
11034 if test $emacs_cv_gettimeofday_two_arguments = no; then
6de9cd9a 11035
96b8a615
AJ
11036cat >>confdefs.h <<\_ACEOF
11037#define GETTIMEOFDAY_ONE_ARGUMENT 1
11038_ACEOF
6de9cd9a 11039
96b8a615
AJ
11040 fi
11041 fi
6de9cd9a 11042
3969c39f
EB
11043# Attempt to assert that the target is of common type in case we don't
11044# have C99 integer types at all.
11045
11046 echo "$as_me:$LINENO: checking whether the target is ILP32" >&5
11047echo $ECHO_N "checking whether the target is ILP32... $ECHO_C" >&6
11048if test "${target_ilp32+set}" = set; then
11049 echo $ECHO_N "(cached) $ECHO_C" >&6
11050else
11051
11052 save_CFLAGS="$CFLAGS"
11053 CFLAGS="-O2"
11054 if test x$gcc_no_link = xyes; then
11055 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11056echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11057 { (exit 1); exit 1; }; }
11058fi
11059cat >conftest.$ac_ext <<_ACEOF
11060/* confdefs.h. */
11061_ACEOF
11062cat confdefs.h >>conftest.$ac_ext
11063cat >>conftest.$ac_ext <<_ACEOF
11064/* end confdefs.h. */
11065
11066int
11067main ()
11068{
11069
11070if (sizeof(int) == 4 && sizeof(long) == 4 && sizeof(void *) == 4)
11071 ;
11072else
11073 undefined_function ();
11074
11075 ;
11076 return 0;
11077}
11078_ACEOF
11079rm -f conftest.$ac_objext conftest$ac_exeext
11080if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11081 (eval $ac_link) 2>conftest.er1
11082 ac_status=$?
11083 grep -v '^ *+' conftest.er1 >conftest.err
11084 rm -f conftest.er1
11085 cat conftest.err >&5
11086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11087 (exit $ac_status); } &&
df65f093 11088 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3969c39f
EB
11089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11090 (eval $ac_try) 2>&5
11091 ac_status=$?
11092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11093 (exit $ac_status); }; } &&
11094 { ac_try='test -s conftest$ac_exeext'
11095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11096 (eval $ac_try) 2>&5
11097 ac_status=$?
11098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11099 (exit $ac_status); }; }; then
11100 target_ilp32=yes
11101else
11102 echo "$as_me: failed program was:" >&5
11103sed 's/^/| /' conftest.$ac_ext >&5
11104
11105target_ilp32=no
11106fi
11107rm -f conftest.err conftest.$ac_objext \
11108 conftest$ac_exeext conftest.$ac_ext
11109 CFLAGS="$save_CFLAGS"
11110fi
11111echo "$as_me:$LINENO: result: $target_ilp32" >&5
11112echo "${ECHO_T}$target_ilp32" >&6
11113 if test $target_ilp32 = yes; then
11114
11115cat >>confdefs.h <<\_ACEOF
11116#define TARGET_ILP32 1
11117_ACEOF
11118
11119 fi
11120
11121
6de9cd9a
DN
11122cat >confcache <<\_ACEOF
11123# This file is a shell script that caches the results of configure
11124# tests run on this system so they can be shared between configure
11125# scripts and configure runs, see configure's option --config-cache.
11126# It is not useful on other systems. If it contains results you don't
11127# want to keep, you may remove or edit it.
11128#
11129# config.status only pays attention to the cache file if you give it
11130# the --recheck option to rerun configure.
11131#
11132# `ac_cv_env_foo' variables (set or unset) will be overridden when
11133# loading this file, other *unset* `ac_cv_foo' will be assigned the
11134# following values.
11135
11136_ACEOF
11137
11138# The following way of writing the cache mishandles newlines in values,
11139# but we know of no workaround that is simple, portable, and efficient.
11140# So, don't put newlines in cache variables' values.
11141# Ultrix sh set writes to stderr and can't be redirected directly,
11142# and sets the high bit in the cache file unless we assign to the vars.
11143{
11144 (set) 2>&1 |
11145 case `(ac_space=' '; set | grep ac_space) 2>&1` in
11146 *ac_space=\ *)
11147 # `set' does not quote correctly, so add quotes (double-quote
11148 # substitution turns \\\\ into \\, and sed turns \\ into \).
11149 sed -n \
11150 "s/'/'\\\\''/g;
11151 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11152 ;;
11153 *)
11154 # `set' quotes correctly as required by POSIX, so do not add quotes.
11155 sed -n \
11156 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
11157 ;;
11158 esac;
11159} |
11160 sed '
11161 t clear
11162 : clear
11163 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11164 t end
11165 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11166 : end' >>confcache
11167if diff $cache_file confcache >/dev/null 2>&1; then :; else
11168 if test -w $cache_file; then
11169 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
11170 cat confcache >$cache_file
11171 else
11172 echo "not updating unwritable cache $cache_file"
11173 fi
11174fi
11175rm -f confcache
11176
96b8a615
AJ
11177if test ${multilib} = yes; then
11178 multilib_arg="--enable-multilib"
6de9cd9a 11179else
96b8a615 11180 multilib_arg=
6de9cd9a 11181fi
6de9cd9a 11182
96b8a615 11183# Write our Makefile.
6de9cd9a 11184 ac_config_files="$ac_config_files Makefile"
96b8a615 11185
6de9cd9a
DN
11186cat >confcache <<\_ACEOF
11187# This file is a shell script that caches the results of configure
11188# tests run on this system so they can be shared between configure
11189# scripts and configure runs, see configure's option --config-cache.
11190# It is not useful on other systems. If it contains results you don't
11191# want to keep, you may remove or edit it.
11192#
11193# config.status only pays attention to the cache file if you give it
11194# the --recheck option to rerun configure.
11195#
11196# `ac_cv_env_foo' variables (set or unset) will be overridden when
11197# loading this file, other *unset* `ac_cv_foo' will be assigned the
11198# following values.
11199
11200_ACEOF
11201
11202# The following way of writing the cache mishandles newlines in values,
11203# but we know of no workaround that is simple, portable, and efficient.
11204# So, don't put newlines in cache variables' values.
11205# Ultrix sh set writes to stderr and can't be redirected directly,
11206# and sets the high bit in the cache file unless we assign to the vars.
11207{
11208 (set) 2>&1 |
11209 case `(ac_space=' '; set | grep ac_space) 2>&1` in
11210 *ac_space=\ *)
11211 # `set' does not quote correctly, so add quotes (double-quote
11212 # substitution turns \\\\ into \\, and sed turns \\ into \).
11213 sed -n \
11214 "s/'/'\\\\''/g;
11215 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11216 ;;
11217 *)
11218 # `set' quotes correctly as required by POSIX, so do not add quotes.
11219 sed -n \
11220 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
11221 ;;
11222 esac;
11223} |
11224 sed '
11225 t clear
11226 : clear
11227 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11228 t end
11229 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11230 : end' >>confcache
11231if diff $cache_file confcache >/dev/null 2>&1; then :; else
11232 if test -w $cache_file; then
11233 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
11234 cat confcache >$cache_file
11235 else
11236 echo "not updating unwritable cache $cache_file"
11237 fi
11238fi
11239rm -f confcache
11240
11241test "x$prefix" = xNONE && prefix=$ac_default_prefix
11242# Let make expand exec_prefix.
11243test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11244
11245# VPATH may cause trouble with some makes, so we remove $(srcdir),
11246# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
11247# trailing colons and then remove the whole line if VPATH becomes empty
11248# (actually we leave an empty line to preserve line numbers).
11249if test "x$srcdir" = x.; then
11250 ac_vpsub='/^[ ]*VPATH[ ]*=/{
11251s/:*\$(srcdir):*/:/;
11252s/:*\${srcdir}:*/:/;
11253s/:*@srcdir@:*/:/;
11254s/^\([^=]*=[ ]*\):*/\1/;
11255s/:*$//;
11256s/^[^=]*=[ ]*$//;
11257}'
11258fi
11259
11260DEFS=-DHAVE_CONFIG_H
11261
11262ac_libobjs=
11263ac_ltlibobjs=
11264for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11265 # 1. Remove the extension, and $U if already installed.
11266 ac_i=`echo "$ac_i" |
11267 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
11268 # 2. Add them.
11269 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
11270 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
11271done
11272LIBOBJS=$ac_libobjs
11273
11274LTLIBOBJS=$ac_ltlibobjs
11275
11276
11277if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
11278 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
11279Usually this means the macro was only invoked conditionally." >&5
11280echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
11281Usually this means the macro was only invoked conditionally." >&2;}
11282 { (exit 1); exit 1; }; }
11283fi
6de9cd9a
DN
11284
11285: ${CONFIG_STATUS=./config.status}
11286ac_clean_files_save=$ac_clean_files
11287ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11288{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
11289echo "$as_me: creating $CONFIG_STATUS" >&6;}
11290cat >$CONFIG_STATUS <<_ACEOF
11291#! $SHELL
11292# Generated by $as_me.
11293# Run this file to recreate the current configuration.
11294# Compiler output produced by configure, useful for debugging
11295# configure, is in config.log if it exists.
11296
11297debug=false
11298ac_cs_recheck=false
11299ac_cs_silent=false
11300SHELL=\${CONFIG_SHELL-$SHELL}
11301_ACEOF
11302
11303cat >>$CONFIG_STATUS <<\_ACEOF
11304## --------------------- ##
11305## M4sh Initialization. ##
11306## --------------------- ##
11307
11308# Be Bourne compatible
11309if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
11310 emulate sh
11311 NULLCMD=:
11312 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
11313 # is contrary to our usage. Disable this feature.
11314 alias -g '${1+"$@"}'='"$@"'
11315elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
11316 set -o posix
11317fi
11318DUALCASE=1; export DUALCASE # for MKS sh
11319
11320# Support unset when possible.
11321if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
11322 as_unset=unset
11323else
11324 as_unset=false
11325fi
11326
11327
11328# Work around bugs in pre-3.0 UWIN ksh.
11329$as_unset ENV MAIL MAILPATH
11330PS1='$ '
11331PS2='> '
11332PS4='+ '
11333
11334# NLS nuisances.
11335for as_var in \
11336 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
11337 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
11338 LC_TELEPHONE LC_TIME
11339do
11340 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
11341 eval $as_var=C; export $as_var
11342 else
11343 $as_unset $as_var
11344 fi
11345done
11346
11347# Required to use basename.
11348if expr a : '\(a\)' >/dev/null 2>&1; then
11349 as_expr=expr
11350else
11351 as_expr=false
11352fi
11353
11354if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
11355 as_basename=basename
11356else
11357 as_basename=false
11358fi
11359
11360
11361# Name of the executable.
11362as_me=`$as_basename "$0" ||
11363$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11364 X"$0" : 'X\(//\)$' \| \
11365 X"$0" : 'X\(/\)$' \| \
11366 . : '\(.\)' 2>/dev/null ||
11367echo X/"$0" |
11368 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
11369 /^X\/\(\/\/\)$/{ s//\1/; q; }
11370 /^X\/\(\/\).*/{ s//\1/; q; }
11371 s/.*/./; q'`
11372
11373
11374# PATH needs CR, and LINENO needs CR and PATH.
11375# Avoid depending upon Character Ranges.
11376as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11377as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11378as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11379as_cr_digits='0123456789'
11380as_cr_alnum=$as_cr_Letters$as_cr_digits
11381
11382# The user is always right.
11383if test "${PATH_SEPARATOR+set}" != set; then
11384 echo "#! /bin/sh" >conf$$.sh
11385 echo "exit 0" >>conf$$.sh
11386 chmod +x conf$$.sh
11387 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11388 PATH_SEPARATOR=';'
11389 else
11390 PATH_SEPARATOR=:
11391 fi
11392 rm -f conf$$.sh
11393fi
11394
11395
11396 as_lineno_1=$LINENO
11397 as_lineno_2=$LINENO
11398 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
11399 test "x$as_lineno_1" != "x$as_lineno_2" &&
11400 test "x$as_lineno_3" = "x$as_lineno_2" || {
11401 # Find who we are. Look in the path if we contain no path at all
11402 # relative or not.
11403 case $0 in
11404 *[\\/]* ) as_myself=$0 ;;
11405 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11406for as_dir in $PATH
11407do
11408 IFS=$as_save_IFS
11409 test -z "$as_dir" && as_dir=.
11410 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11411done
11412
11413 ;;
11414 esac
11415 # We did not find ourselves, most probably we were run as `sh COMMAND'
11416 # in which case we are not to be found in the path.
11417 if test "x$as_myself" = x; then
11418 as_myself=$0
11419 fi
11420 if test ! -f "$as_myself"; then
11421 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
11422echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
11423 { (exit 1); exit 1; }; }
11424 fi
11425 case $CONFIG_SHELL in
11426 '')
11427 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11428for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
11429do
11430 IFS=$as_save_IFS
11431 test -z "$as_dir" && as_dir=.
11432 for as_base in sh bash ksh sh5; do
11433 case $as_dir in
11434 /*)
11435 if ("$as_dir/$as_base" -c '
11436 as_lineno_1=$LINENO
11437 as_lineno_2=$LINENO
11438 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
11439 test "x$as_lineno_1" != "x$as_lineno_2" &&
11440 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
11441 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
11442 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
11443 CONFIG_SHELL=$as_dir/$as_base
11444 export CONFIG_SHELL
11445 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
11446 fi;;
11447 esac
11448 done
11449done
11450;;
11451 esac
11452
11453 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
11454 # uniformly replaced by the line number. The first 'sed' inserts a
11455 # line-number line before each line; the second 'sed' does the real
11456 # work. The second script uses 'N' to pair each line-number line
11457 # with the numbered line, and appends trailing '-' during
11458 # substitution so that $LINENO is not a special case at line end.
11459 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
11460 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
11461 sed '=' <$as_myself |
11462 sed '
11463 N
11464 s,$,-,
11465 : loop
11466 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
11467 t loop
11468 s,-$,,
11469 s,^['$as_cr_digits']*\n,,
11470 ' >$as_me.lineno &&
11471 chmod +x $as_me.lineno ||
11472 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
11473echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
11474 { (exit 1); exit 1; }; }
11475
11476 # Don't try to exec as it changes $[0], causing all sort of problems
11477 # (the dirname of $[0] is not the place where we might find the
11478 # original and so on. Autoconf is especially sensible to this).
11479 . ./$as_me.lineno
11480 # Exit status is that of the last command.
11481 exit
11482}
11483
11484
11485case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
11486 *c*,-n*) ECHO_N= ECHO_C='
11487' ECHO_T=' ' ;;
11488 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
11489 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
11490esac
11491
11492if expr a : '\(a\)' >/dev/null 2>&1; then
11493 as_expr=expr
11494else
11495 as_expr=false
11496fi
11497
11498rm -f conf$$ conf$$.exe conf$$.file
11499echo >conf$$.file
11500if ln -s conf$$.file conf$$ 2>/dev/null; then
11501 # We could just check for DJGPP; but this test a) works b) is more generic
11502 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
11503 if test -f conf$$.exe; then
11504 # Don't use ln at all; we don't have any links
11505 as_ln_s='cp -p'
11506 else
11507 as_ln_s='ln -s'
11508 fi
11509elif ln conf$$.file conf$$ 2>/dev/null; then
11510 as_ln_s=ln
11511else
11512 as_ln_s='cp -p'
11513fi
11514rm -f conf$$ conf$$.exe conf$$.file
11515
11516if mkdir -p . 2>/dev/null; then
11517 as_mkdir_p=:
11518else
11519 test -d ./-p && rmdir ./-p
11520 as_mkdir_p=false
11521fi
11522
11523as_executable_p="test -f"
11524
11525# Sed expression to map a string onto a valid CPP name.
11526as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11527
11528# Sed expression to map a string onto a valid variable name.
11529as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11530
11531
11532# IFS
11533# We need space, tab and new line, in precisely that order.
11534as_nl='
11535'
11536IFS=" $as_nl"
11537
11538# CDPATH.
11539$as_unset CDPATH
11540
11541exec 6>&1
11542
11543# Open the log real soon, to keep \$[0] and so on meaningful, and to
11544# report actual input values of CONFIG_FILES etc. instead of their
11545# values after options handling. Logging --version etc. is OK.
11546exec 5>>config.log
11547{
11548 echo
11549 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11550## Running $as_me. ##
11551_ASBOX
11552} >&5
11553cat >&5 <<_CSEOF
11554
11555This file was extended by GNU Fortran Runtime Library $as_me 0.2, which was
11556generated by GNU Autoconf 2.59. Invocation command line was
11557
11558 CONFIG_FILES = $CONFIG_FILES
11559 CONFIG_HEADERS = $CONFIG_HEADERS
11560 CONFIG_LINKS = $CONFIG_LINKS
11561 CONFIG_COMMANDS = $CONFIG_COMMANDS
11562 $ $0 $@
11563
11564_CSEOF
11565echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
11566echo >&5
11567_ACEOF
11568
11569# Files that config.status was made for.
11570if test -n "$ac_config_files"; then
11571 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
11572fi
11573
11574if test -n "$ac_config_headers"; then
11575 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
11576fi
11577
11578if test -n "$ac_config_links"; then
11579 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
11580fi
11581
11582if test -n "$ac_config_commands"; then
11583 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
11584fi
11585
11586cat >>$CONFIG_STATUS <<\_ACEOF
11587
11588ac_cs_usage="\
11589\`$as_me' instantiates files from templates according to the
11590current configuration.
11591
11592Usage: $0 [OPTIONS] [FILE]...
11593
11594 -h, --help print this help, then exit
11595 -V, --version print version number, then exit
11596 -q, --quiet do not print progress messages
11597 -d, --debug don't remove temporary files
11598 --recheck update $as_me by reconfiguring in the same conditions
11599 --file=FILE[:TEMPLATE]
11600 instantiate the configuration file FILE
11601 --header=FILE[:TEMPLATE]
11602 instantiate the configuration header FILE
11603
11604Configuration files:
11605$config_files
11606
11607Configuration headers:
11608$config_headers
11609
11610Configuration commands:
11611$config_commands
11612
11613Report bugs to <bug-autoconf@gnu.org>."
11614_ACEOF
11615
11616cat >>$CONFIG_STATUS <<_ACEOF
11617ac_cs_version="\\
11618GNU Fortran Runtime Library config.status 0.2
11619configured by $0, generated by GNU Autoconf 2.59,
11620 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
11621
11622Copyright (C) 2003 Free Software Foundation, Inc.
11623This config.status script is free software; the Free Software Foundation
11624gives unlimited permission to copy, distribute and modify it."
11625srcdir=$srcdir
11626INSTALL="$INSTALL"
11627_ACEOF
11628
11629cat >>$CONFIG_STATUS <<\_ACEOF
11630# If no file are specified by the user, then we need to provide default
11631# value. By we need to know if files were specified by the user.
11632ac_need_defaults=:
11633while test $# != 0
11634do
11635 case $1 in
11636 --*=*)
11637 ac_option=`expr "x$1" : 'x\([^=]*\)='`
11638 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
11639 ac_shift=:
11640 ;;
11641 -*)
11642 ac_option=$1
11643 ac_optarg=$2
11644 ac_shift=shift
11645 ;;
11646 *) # This is not an option, so the user has probably given explicit
11647 # arguments.
11648 ac_option=$1
11649 ac_need_defaults=false;;
11650 esac
11651
11652 case $ac_option in
11653 # Handling of the options.
11654_ACEOF
11655cat >>$CONFIG_STATUS <<\_ACEOF
11656 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11657 ac_cs_recheck=: ;;
11658 --version | --vers* | -V )
11659 echo "$ac_cs_version"; exit 0 ;;
11660 --he | --h)
11661 # Conflict between --help and --header
11662 { { echo "$as_me:$LINENO: error: ambiguous option: $1
11663Try \`$0 --help' for more information." >&5
11664echo "$as_me: error: ambiguous option: $1
11665Try \`$0 --help' for more information." >&2;}
11666 { (exit 1); exit 1; }; };;
11667 --help | --hel | -h )
11668 echo "$ac_cs_usage"; exit 0 ;;
11669 --debug | --d* | -d )
11670 debug=: ;;
11671 --file | --fil | --fi | --f )
11672 $ac_shift
11673 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
11674 ac_need_defaults=false;;
11675 --header | --heade | --head | --hea )
11676 $ac_shift
11677 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
11678 ac_need_defaults=false;;
11679 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11680 | -silent | --silent | --silen | --sile | --sil | --si | --s)
11681 ac_cs_silent=: ;;
11682
11683 # This is an error.
11684 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
11685Try \`$0 --help' for more information." >&5
11686echo "$as_me: error: unrecognized option: $1
11687Try \`$0 --help' for more information." >&2;}
11688 { (exit 1); exit 1; }; } ;;
11689
11690 *) ac_config_targets="$ac_config_targets $1" ;;
11691
11692 esac
11693 shift
11694done
11695
11696ac_configure_extra_args=
11697
11698if $ac_cs_silent; then
11699 exec 6>/dev/null
11700 ac_configure_extra_args="$ac_configure_extra_args --silent"
11701fi
11702
11703_ACEOF
11704cat >>$CONFIG_STATUS <<_ACEOF
11705if \$ac_cs_recheck; then
11706 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
11707 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11708fi
11709
11710_ACEOF
11711
11712cat >>$CONFIG_STATUS <<_ACEOF
11713#
11714# INIT-COMMANDS section.
11715#
11716
96b8a615
AJ
11717
11718srcdir="$srcdir"
11719host="$host"
11720target="$target"
11721with_multisubdir="$with_multisubdir"
11722with_multisrctop="$with_multisrctop"
11723with_target_subdir="$with_target_subdir"
11724ac_configure_args="${multilib_arg} ${ac_configure_args}"
11725multi_basedir="$multi_basedir"
11726CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
11727CC="$CC"
6de9cd9a
DN
11728
11729_ACEOF
11730
11731
11732
11733cat >>$CONFIG_STATUS <<\_ACEOF
11734for ac_config_target in $ac_config_targets
11735do
11736 case "$ac_config_target" in
11737 # Handling of arguments.
11738 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
96b8a615 11739 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
6de9cd9a
DN
11740 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
11741 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
11742echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
11743 { (exit 1); exit 1; }; };;
11744 esac
11745done
11746
11747# If the user did not use the arguments to specify the items to instantiate,
11748# then the envvar interface is used. Set only those that are not.
11749# We use the long form for the default assignment because of an extremely
11750# bizarre bug on SunOS 4.1.3.
11751if $ac_need_defaults; then
11752 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
11753 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
11754 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
11755fi
11756
11757# Have a temporary directory for convenience. Make it in the build tree
11758# simply because there is no reason to put it here, and in addition,
11759# creating and moving files from /tmp can sometimes cause problems.
11760# Create a temporary directory, and hook for its removal unless debugging.
11761$debug ||
11762{
11763 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
11764 trap '{ (exit 1); exit 1; }' 1 2 13 15
11765}
11766
11767# Create a (secure) tmp directory for tmp files.
11768
11769{
11770 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
11771 test -n "$tmp" && test -d "$tmp"
11772} ||
11773{
11774 tmp=./confstat$$-$RANDOM
11775 (umask 077 && mkdir $tmp)
11776} ||
11777{
11778 echo "$me: cannot create a temporary directory in ." >&2
11779 { (exit 1); exit 1; }
11780}
11781
11782_ACEOF
11783
11784cat >>$CONFIG_STATUS <<_ACEOF
11785
11786#
11787# CONFIG_FILES section.
11788#
11789
11790# No need to generate the scripts if there are no CONFIG_FILES.
11791# This happens for instance when ./config.status config.h
11792if test -n "\$CONFIG_FILES"; then
11793 # Protect against being on the right side of a sed subst in config.status.
11794 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
11795 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
11796s,@SHELL@,$SHELL,;t t
11797s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
11798s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
11799s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
11800s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
11801s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
11802s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
11803s,@exec_prefix@,$exec_prefix,;t t
11804s,@prefix@,$prefix,;t t
11805s,@program_transform_name@,$program_transform_name,;t t
11806s,@bindir@,$bindir,;t t
11807s,@sbindir@,$sbindir,;t t
11808s,@libexecdir@,$libexecdir,;t t
11809s,@datadir@,$datadir,;t t
11810s,@sysconfdir@,$sysconfdir,;t t
11811s,@sharedstatedir@,$sharedstatedir,;t t
11812s,@localstatedir@,$localstatedir,;t t
11813s,@libdir@,$libdir,;t t
11814s,@includedir@,$includedir,;t t
11815s,@oldincludedir@,$oldincludedir,;t t
11816s,@infodir@,$infodir,;t t
11817s,@mandir@,$mandir,;t t
11818s,@build_alias@,$build_alias,;t t
11819s,@host_alias@,$host_alias,;t t
11820s,@target_alias@,$target_alias,;t t
11821s,@DEFS@,$DEFS,;t t
11822s,@ECHO_C@,$ECHO_C,;t t
11823s,@ECHO_N@,$ECHO_N,;t t
11824s,@ECHO_T@,$ECHO_T,;t t
11825s,@LIBS@,$LIBS,;t t
96b8a615
AJ
11826s,@build@,$build,;t t
11827s,@build_cpu@,$build_cpu,;t t
11828s,@build_vendor@,$build_vendor,;t t
11829s,@build_os@,$build_os,;t t
11830s,@host@,$host,;t t
11831s,@host_cpu@,$host_cpu,;t t
11832s,@host_vendor@,$host_vendor,;t t
11833s,@host_os@,$host_os,;t t
11834s,@target@,$target,;t t
11835s,@target_cpu@,$target_cpu,;t t
11836s,@target_vendor@,$target_vendor,;t t
11837s,@target_os@,$target_os,;t t
6de9cd9a
DN
11838s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
11839s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
11840s,@INSTALL_DATA@,$INSTALL_DATA,;t t
11841s,@CYGPATH_W@,$CYGPATH_W,;t t
11842s,@PACKAGE@,$PACKAGE,;t t
11843s,@VERSION@,$VERSION,;t t
11844s,@ACLOCAL@,$ACLOCAL,;t t
11845s,@AUTOCONF@,$AUTOCONF,;t t
11846s,@AUTOMAKE@,$AUTOMAKE,;t t
11847s,@AUTOHEADER@,$AUTOHEADER,;t t
11848s,@MAKEINFO@,$MAKEINFO,;t t
6de9cd9a
DN
11849s,@install_sh@,$install_sh,;t t
11850s,@STRIP@,$STRIP,;t t
11851s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
11852s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
11853s,@mkdir_p@,$mkdir_p,;t t
11854s,@AWK@,$AWK,;t t
11855s,@SET_MAKE@,$SET_MAKE,;t t
11856s,@am__leading_dot@,$am__leading_dot,;t t
d49ec2d1
KC
11857s,@AMTAR@,$AMTAR,;t t
11858s,@am__tar@,$am__tar,;t t
11859s,@am__untar@,$am__untar,;t t
6de9cd9a
DN
11860s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
11861s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
11862s,@MAINT@,$MAINT,;t t
96b8a615
AJ
11863s,@multi_basedir@,$multi_basedir,;t t
11864s,@gcc_version@,$gcc_version,;t t
11865s,@toolexecdir@,$toolexecdir,;t t
11866s,@toolexeclibdir@,$toolexeclibdir,;t t
6de9cd9a 11867s,@CC@,$CC,;t t
6de9cd9a
DN
11868s,@ac_ct_CC@,$ac_ct_CC,;t t
11869s,@EXEEXT@,$EXEEXT,;t t
11870s,@OBJEXT@,$OBJEXT,;t t
96b8a615
AJ
11871s,@CFLAGS@,$CFLAGS,;t t
11872s,@AS@,$AS,;t t
11873s,@ac_ct_AS@,$ac_ct_AS,;t t
11874s,@AR@,$AR,;t t
11875s,@ac_ct_AR@,$ac_ct_AR,;t t
11876s,@RANLIB@,$RANLIB,;t t
11877s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
11878s,@LN_S@,$LN_S,;t t
11879s,@LIBTOOL@,$LIBTOOL,;t t
11880s,@enable_shared@,$enable_shared,;t t
11881s,@enable_static@,$enable_static,;t t
c7a35fe9
AS
11882s,@FC@,$FC,;t t
11883s,@FCFLAGS@,$FCFLAGS,;t t
96b8a615 11884s,@LDFLAGS@,$LDFLAGS,;t t
c7a35fe9 11885s,@ac_ct_FC@,$ac_ct_FC,;t t
6de9cd9a 11886s,@CPP@,$CPP,;t t
96b8a615 11887s,@CPPFLAGS@,$CPPFLAGS,;t t
6de9cd9a
DN
11888s,@EGREP@,$EGREP,;t t
11889s,@MATH_OBJ@,$MATH_OBJ,;t t
6de9cd9a
DN
11890s,@LIBOBJS@,$LIBOBJS,;t t
11891s,@LTLIBOBJS@,$LTLIBOBJS,;t t
11892CEOF
11893
11894_ACEOF
11895
11896 cat >>$CONFIG_STATUS <<\_ACEOF
11897 # Split the substitutions into bite-sized pieces for seds with
11898 # small command number limits, like on Digital OSF/1 and HP-UX.
11899 ac_max_sed_lines=48
11900 ac_sed_frag=1 # Number of current file.
11901 ac_beg=1 # First line for current file.
11902 ac_end=$ac_max_sed_lines # Line after last line for current file.
11903 ac_more_lines=:
11904 ac_sed_cmds=
11905 while $ac_more_lines; do
11906 if test $ac_beg -gt 1; then
11907 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
11908 else
11909 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
11910 fi
11911 if test ! -s $tmp/subs.frag; then
11912 ac_more_lines=false
11913 else
11914 # The purpose of the label and of the branching condition is to
11915 # speed up the sed processing (if there are no `@' at all, there
11916 # is no need to browse any of the substitutions).
11917 # These are the two extra sed commands mentioned above.
11918 (echo ':t
11919 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
11920 if test -z "$ac_sed_cmds"; then
11921 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
11922 else
11923 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
11924 fi
11925 ac_sed_frag=`expr $ac_sed_frag + 1`
11926 ac_beg=$ac_end
11927 ac_end=`expr $ac_end + $ac_max_sed_lines`
11928 fi
11929 done
11930 if test -z "$ac_sed_cmds"; then
11931 ac_sed_cmds=cat
11932 fi
11933fi # test -n "$CONFIG_FILES"
11934
11935_ACEOF
11936cat >>$CONFIG_STATUS <<\_ACEOF
11937for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
11938 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
11939 case $ac_file in
11940 - | *:- | *:-:* ) # input from stdin
11941 cat >$tmp/stdin
11942 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11943 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11944 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11945 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11946 * ) ac_file_in=$ac_file.in ;;
11947 esac
11948
11949 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
11950 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
11951$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11952 X"$ac_file" : 'X\(//\)[^/]' \| \
11953 X"$ac_file" : 'X\(//\)$' \| \
11954 X"$ac_file" : 'X\(/\)' \| \
11955 . : '\(.\)' 2>/dev/null ||
11956echo X"$ac_file" |
11957 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11958 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11959 /^X\(\/\/\)$/{ s//\1/; q; }
11960 /^X\(\/\).*/{ s//\1/; q; }
11961 s/.*/./; q'`
11962 { if $as_mkdir_p; then
11963 mkdir -p "$ac_dir"
11964 else
11965 as_dir="$ac_dir"
11966 as_dirs=
11967 while test ! -d "$as_dir"; do
11968 as_dirs="$as_dir $as_dirs"
11969 as_dir=`(dirname "$as_dir") 2>/dev/null ||
11970$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11971 X"$as_dir" : 'X\(//\)[^/]' \| \
11972 X"$as_dir" : 'X\(//\)$' \| \
11973 X"$as_dir" : 'X\(/\)' \| \
11974 . : '\(.\)' 2>/dev/null ||
11975echo X"$as_dir" |
11976 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11977 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11978 /^X\(\/\/\)$/{ s//\1/; q; }
11979 /^X\(\/\).*/{ s//\1/; q; }
11980 s/.*/./; q'`
11981 done
11982 test ! -n "$as_dirs" || mkdir $as_dirs
11983 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
11984echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
11985 { (exit 1); exit 1; }; }; }
11986
11987 ac_builddir=.
11988
11989if test "$ac_dir" != .; then
11990 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
11991 # A "../" for each directory in $ac_dir_suffix.
11992 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
11993else
11994 ac_dir_suffix= ac_top_builddir=
11995fi
11996
11997case $srcdir in
11998 .) # No --srcdir option. We are building in place.
11999 ac_srcdir=.
12000 if test -z "$ac_top_builddir"; then
12001 ac_top_srcdir=.
12002 else
12003 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
12004 fi ;;
12005 [\\/]* | ?:[\\/]* ) # Absolute path.
12006 ac_srcdir=$srcdir$ac_dir_suffix;
12007 ac_top_srcdir=$srcdir ;;
12008 *) # Relative path.
12009 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
12010 ac_top_srcdir=$ac_top_builddir$srcdir ;;
12011esac
12012
12013# Do not use `cd foo && pwd` to compute absolute paths, because
12014# the directories may not exist.
12015case `pwd` in
12016.) ac_abs_builddir="$ac_dir";;
12017*)
12018 case "$ac_dir" in
12019 .) ac_abs_builddir=`pwd`;;
12020 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
12021 *) ac_abs_builddir=`pwd`/"$ac_dir";;
12022 esac;;
12023esac
12024case $ac_abs_builddir in
12025.) ac_abs_top_builddir=${ac_top_builddir}.;;
12026*)
12027 case ${ac_top_builddir}. in
12028 .) ac_abs_top_builddir=$ac_abs_builddir;;
12029 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
12030 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
12031 esac;;
12032esac
12033case $ac_abs_builddir in
12034.) ac_abs_srcdir=$ac_srcdir;;
12035*)
12036 case $ac_srcdir in
12037 .) ac_abs_srcdir=$ac_abs_builddir;;
12038 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
12039 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
12040 esac;;
12041esac
12042case $ac_abs_builddir in
12043.) ac_abs_top_srcdir=$ac_top_srcdir;;
12044*)
12045 case $ac_top_srcdir in
12046 .) ac_abs_top_srcdir=$ac_abs_builddir;;
12047 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
12048 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
12049 esac;;
12050esac
12051
12052
12053 case $INSTALL in
12054 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12055 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
12056 esac
12057
12058 # Let's still pretend it is `configure' which instantiates (i.e., don't
12059 # use $as_me), people would be surprised to read:
12060 # /* config.h. Generated by config.status. */
12061 if test x"$ac_file" = x-; then
12062 configure_input=
12063 else
12064 configure_input="$ac_file. "
12065 fi
12066 configure_input=$configure_input"Generated from `echo $ac_file_in |
12067 sed 's,.*/,,'` by configure."
12068
12069 # First look for the input files in the build tree, otherwise in the
12070 # src tree.
12071 ac_file_inputs=`IFS=:
12072 for f in $ac_file_in; do
12073 case $f in
12074 -) echo $tmp/stdin ;;
12075 [\\/$]*)
12076 # Absolute (can't be DOS-style, as IFS=:)
12077 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12078echo "$as_me: error: cannot find input file: $f" >&2;}
12079 { (exit 1); exit 1; }; }
12080 echo "$f";;
12081 *) # Relative
12082 if test -f "$f"; then
12083 # Build tree
12084 echo "$f"
12085 elif test -f "$srcdir/$f"; then
12086 # Source tree
12087 echo "$srcdir/$f"
12088 else
12089 # /dev/null tree
12090 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12091echo "$as_me: error: cannot find input file: $f" >&2;}
12092 { (exit 1); exit 1; }; }
12093 fi;;
12094 esac
12095 done` || { (exit 1); exit 1; }
df65f093
SK
12096
12097 if test x"$ac_file" != x-; then
12098 { echo "$as_me:$LINENO: creating $ac_file" >&5
12099echo "$as_me: creating $ac_file" >&6;}
12100 rm -f "$ac_file"
12101 fi
6de9cd9a
DN
12102_ACEOF
12103cat >>$CONFIG_STATUS <<_ACEOF
12104 sed "$ac_vpsub
12105$extrasub
12106_ACEOF
12107cat >>$CONFIG_STATUS <<\_ACEOF
12108:t
12109/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12110s,@configure_input@,$configure_input,;t t
12111s,@srcdir@,$ac_srcdir,;t t
12112s,@abs_srcdir@,$ac_abs_srcdir,;t t
12113s,@top_srcdir@,$ac_top_srcdir,;t t
12114s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
12115s,@builddir@,$ac_builddir,;t t
12116s,@abs_builddir@,$ac_abs_builddir,;t t
12117s,@top_builddir@,$ac_top_builddir,;t t
12118s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
12119s,@INSTALL@,$ac_INSTALL,;t t
12120" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
12121 rm -f $tmp/stdin
12122 if test x"$ac_file" != x-; then
12123 mv $tmp/out $ac_file
12124 else
12125 cat $tmp/out
12126 rm -f $tmp/out
12127 fi
12128
12129done
12130_ACEOF
12131cat >>$CONFIG_STATUS <<\_ACEOF
12132
12133#
12134# CONFIG_HEADER section.
12135#
12136
12137# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
12138# NAME is the cpp macro being defined and VALUE is the value it is being given.
12139#
12140# ac_d sets the value in "#define NAME VALUE" lines.
12141ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
12142ac_dB='[ ].*$,\1#\2'
12143ac_dC=' '
12144ac_dD=',;t'
12145# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
12146ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
12147ac_uB='$,\1#\2define\3'
12148ac_uC=' '
12149ac_uD=',;t'
12150
12151for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
12152 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
12153 case $ac_file in
12154 - | *:- | *:-:* ) # input from stdin
12155 cat >$tmp/stdin
12156 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12157 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12158 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12159 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12160 * ) ac_file_in=$ac_file.in ;;
12161 esac
12162
12163 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
12164echo "$as_me: creating $ac_file" >&6;}
12165
12166 # First look for the input files in the build tree, otherwise in the
12167 # src tree.
12168 ac_file_inputs=`IFS=:
12169 for f in $ac_file_in; do
12170 case $f in
12171 -) echo $tmp/stdin ;;
12172 [\\/$]*)
12173 # Absolute (can't be DOS-style, as IFS=:)
12174 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12175echo "$as_me: error: cannot find input file: $f" >&2;}
12176 { (exit 1); exit 1; }; }
12177 # Do quote $f, to prevent DOS paths from being IFS'd.
12178 echo "$f";;
12179 *) # Relative
12180 if test -f "$f"; then
12181 # Build tree
12182 echo "$f"
12183 elif test -f "$srcdir/$f"; then
12184 # Source tree
12185 echo "$srcdir/$f"
12186 else
12187 # /dev/null tree
12188 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12189echo "$as_me: error: cannot find input file: $f" >&2;}
12190 { (exit 1); exit 1; }; }
12191 fi;;
12192 esac
12193 done` || { (exit 1); exit 1; }
12194 # Remove the trailing spaces.
12195 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
12196
12197_ACEOF
12198
12199# Transform confdefs.h into two sed scripts, `conftest.defines' and
12200# `conftest.undefs', that substitutes the proper values into
12201# config.h.in to produce config.h. The first handles `#define'
12202# templates, and the second `#undef' templates.
12203# And first: Protect against being on the right side of a sed subst in
12204# config.status. Protect against being in an unquoted here document
12205# in config.status.
12206rm -f conftest.defines conftest.undefs
12207# Using a here document instead of a string reduces the quoting nightmare.
12208# Putting comments in sed scripts is not portable.
12209#
12210# `end' is used to avoid that the second main sed command (meant for
12211# 0-ary CPP macros) applies to n-ary macro definitions.
12212# See the Autoconf documentation for `clear'.
12213cat >confdef2sed.sed <<\_ACEOF
12214s/[\\&,]/\\&/g
12215s,[\\$`],\\&,g
12216t clear
12217: clear
12218s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
12219t end
12220s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
12221: end
12222_ACEOF
12223# If some macros were called several times there might be several times
12224# the same #defines, which is useless. Nevertheless, we may not want to
12225# sort them, since we want the *last* AC-DEFINE to be honored.
12226uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
12227sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
12228rm -f confdef2sed.sed
12229
12230# This sed command replaces #undef with comments. This is necessary, for
12231# example, in the case of _POSIX_SOURCE, which is predefined and required
12232# on some systems where configure will not decide to define it.
12233cat >>conftest.undefs <<\_ACEOF
12234s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
12235_ACEOF
12236
12237# Break up conftest.defines because some shells have a limit on the size
12238# of here documents, and old seds have small limits too (100 cmds).
12239echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
12240echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
12241echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
12242echo ' :' >>$CONFIG_STATUS
12243rm -f conftest.tail
12244while grep . conftest.defines >/dev/null
12245do
12246 # Write a limited-size here document to $tmp/defines.sed.
12247 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
12248 # Speed up: don't consider the non `#define' lines.
12249 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
12250 # Work around the forget-to-reset-the-flag bug.
12251 echo 't clr' >>$CONFIG_STATUS
12252 echo ': clr' >>$CONFIG_STATUS
12253 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
12254 echo 'CEOF
12255 sed -f $tmp/defines.sed $tmp/in >$tmp/out
12256 rm -f $tmp/in
12257 mv $tmp/out $tmp/in
12258' >>$CONFIG_STATUS
12259 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
12260 rm -f conftest.defines
12261 mv conftest.tail conftest.defines
12262done
12263rm -f conftest.defines
12264echo ' fi # grep' >>$CONFIG_STATUS
12265echo >>$CONFIG_STATUS
12266
12267# Break up conftest.undefs because some shells have a limit on the size
12268# of here documents, and old seds have small limits too (100 cmds).
12269echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
12270rm -f conftest.tail
12271while grep . conftest.undefs >/dev/null
12272do
12273 # Write a limited-size here document to $tmp/undefs.sed.
12274 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
12275 # Speed up: don't consider the non `#undef'
12276 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
12277 # Work around the forget-to-reset-the-flag bug.
12278 echo 't clr' >>$CONFIG_STATUS
12279 echo ': clr' >>$CONFIG_STATUS
12280 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
12281 echo 'CEOF
12282 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
12283 rm -f $tmp/in
12284 mv $tmp/out $tmp/in
12285' >>$CONFIG_STATUS
12286 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
12287 rm -f conftest.undefs
12288 mv conftest.tail conftest.undefs
12289done
12290rm -f conftest.undefs
12291
12292cat >>$CONFIG_STATUS <<\_ACEOF
12293 # Let's still pretend it is `configure' which instantiates (i.e., don't
12294 # use $as_me), people would be surprised to read:
12295 # /* config.h. Generated by config.status. */
12296 if test x"$ac_file" = x-; then
12297 echo "/* Generated by configure. */" >$tmp/config.h
12298 else
12299 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
12300 fi
12301 cat $tmp/in >>$tmp/config.h
12302 rm -f $tmp/in
12303 if test x"$ac_file" != x-; then
12304 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
12305 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
12306echo "$as_me: $ac_file is unchanged" >&6;}
12307 else
12308 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
12309$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12310 X"$ac_file" : 'X\(//\)[^/]' \| \
12311 X"$ac_file" : 'X\(//\)$' \| \
12312 X"$ac_file" : 'X\(/\)' \| \
12313 . : '\(.\)' 2>/dev/null ||
12314echo X"$ac_file" |
12315 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12316 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12317 /^X\(\/\/\)$/{ s//\1/; q; }
12318 /^X\(\/\).*/{ s//\1/; q; }
12319 s/.*/./; q'`
12320 { if $as_mkdir_p; then
12321 mkdir -p "$ac_dir"
12322 else
12323 as_dir="$ac_dir"
12324 as_dirs=
12325 while test ! -d "$as_dir"; do
12326 as_dirs="$as_dir $as_dirs"
12327 as_dir=`(dirname "$as_dir") 2>/dev/null ||
12328$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12329 X"$as_dir" : 'X\(//\)[^/]' \| \
12330 X"$as_dir" : 'X\(//\)$' \| \
12331 X"$as_dir" : 'X\(/\)' \| \
12332 . : '\(.\)' 2>/dev/null ||
12333echo X"$as_dir" |
12334 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12335 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12336 /^X\(\/\/\)$/{ s//\1/; q; }
12337 /^X\(\/\).*/{ s//\1/; q; }
12338 s/.*/./; q'`
12339 done
12340 test ! -n "$as_dirs" || mkdir $as_dirs
12341 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
12342echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
12343 { (exit 1); exit 1; }; }; }
12344
12345 rm -f $ac_file
12346 mv $tmp/config.h $ac_file
12347 fi
12348 else
12349 cat $tmp/config.h
12350 rm -f $tmp/config.h
12351 fi
12352# Compute $ac_file's index in $config_headers.
12353_am_stamp_count=1
12354for _am_header in $config_headers :; do
12355 case $_am_header in
12356 $ac_file | $ac_file:* )
12357 break ;;
12358 * )
12359 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
12360 esac
12361done
12362echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
12363$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12364 X$ac_file : 'X\(//\)[^/]' \| \
12365 X$ac_file : 'X\(//\)$' \| \
12366 X$ac_file : 'X\(/\)' \| \
12367 . : '\(.\)' 2>/dev/null ||
12368echo X$ac_file |
12369 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12370 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12371 /^X\(\/\/\)$/{ s//\1/; q; }
12372 /^X\(\/\).*/{ s//\1/; q; }
12373 s/.*/./; q'`/stamp-h$_am_stamp_count
12374done
12375_ACEOF
12376cat >>$CONFIG_STATUS <<\_ACEOF
12377
12378#
12379# CONFIG_COMMANDS section.
12380#
12381for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
12382 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
12383 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
12384 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
12385$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12386 X"$ac_dest" : 'X\(//\)[^/]' \| \
12387 X"$ac_dest" : 'X\(//\)$' \| \
12388 X"$ac_dest" : 'X\(/\)' \| \
12389 . : '\(.\)' 2>/dev/null ||
12390echo X"$ac_dest" |
12391 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12392 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12393 /^X\(\/\/\)$/{ s//\1/; q; }
12394 /^X\(\/\).*/{ s//\1/; q; }
12395 s/.*/./; q'`
12396 { if $as_mkdir_p; then
12397 mkdir -p "$ac_dir"
12398 else
12399 as_dir="$ac_dir"
12400 as_dirs=
12401 while test ! -d "$as_dir"; do
12402 as_dirs="$as_dir $as_dirs"
12403 as_dir=`(dirname "$as_dir") 2>/dev/null ||
12404$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12405 X"$as_dir" : 'X\(//\)[^/]' \| \
12406 X"$as_dir" : 'X\(//\)$' \| \
12407 X"$as_dir" : 'X\(/\)' \| \
12408 . : '\(.\)' 2>/dev/null ||
12409echo X"$as_dir" |
12410 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12411 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12412 /^X\(\/\/\)$/{ s//\1/; q; }
12413 /^X\(\/\).*/{ s//\1/; q; }
12414 s/.*/./; q'`
12415 done
12416 test ! -n "$as_dirs" || mkdir $as_dirs
12417 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
12418echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
12419 { (exit 1); exit 1; }; }; }
12420
12421 ac_builddir=.
12422
12423if test "$ac_dir" != .; then
12424 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
12425 # A "../" for each directory in $ac_dir_suffix.
12426 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
12427else
12428 ac_dir_suffix= ac_top_builddir=
12429fi
12430
12431case $srcdir in
12432 .) # No --srcdir option. We are building in place.
12433 ac_srcdir=.
12434 if test -z "$ac_top_builddir"; then
12435 ac_top_srcdir=.
12436 else
12437 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
12438 fi ;;
12439 [\\/]* | ?:[\\/]* ) # Absolute path.
12440 ac_srcdir=$srcdir$ac_dir_suffix;
12441 ac_top_srcdir=$srcdir ;;
12442 *) # Relative path.
12443 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
12444 ac_top_srcdir=$ac_top_builddir$srcdir ;;
12445esac
12446
12447# Do not use `cd foo && pwd` to compute absolute paths, because
12448# the directories may not exist.
12449case `pwd` in
12450.) ac_abs_builddir="$ac_dir";;
12451*)
12452 case "$ac_dir" in
12453 .) ac_abs_builddir=`pwd`;;
12454 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
12455 *) ac_abs_builddir=`pwd`/"$ac_dir";;
12456 esac;;
12457esac
12458case $ac_abs_builddir in
12459.) ac_abs_top_builddir=${ac_top_builddir}.;;
12460*)
12461 case ${ac_top_builddir}. in
12462 .) ac_abs_top_builddir=$ac_abs_builddir;;
12463 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
12464 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
12465 esac;;
12466esac
12467case $ac_abs_builddir in
12468.) ac_abs_srcdir=$ac_srcdir;;
12469*)
12470 case $ac_srcdir in
12471 .) ac_abs_srcdir=$ac_abs_builddir;;
12472 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
12473 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
12474 esac;;
12475esac
12476case $ac_abs_builddir in
12477.) ac_abs_top_srcdir=$ac_top_srcdir;;
12478*)
12479 case $ac_top_srcdir in
12480 .) ac_abs_top_srcdir=$ac_abs_builddir;;
12481 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
12482 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
12483 esac;;
12484esac
12485
12486
12487 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
12488echo "$as_me: executing $ac_dest commands" >&6;}
12489 case $ac_dest in
96b8a615
AJ
12490 default-1 )
12491# Only add multilib support code if we just rebuilt the top-level
12492# Makefile.
12493case " $CONFIG_FILES " in
12494 *" Makefile "*)
12495 ac_file=Makefile . ${multi_basedir}/config-ml.in
12496 ;;
12497esac ;;
6de9cd9a
DN
12498 esac
12499done
12500_ACEOF
12501
12502cat >>$CONFIG_STATUS <<\_ACEOF
12503
12504{ (exit 0); exit 0; }
12505_ACEOF
12506chmod +x $CONFIG_STATUS
12507ac_clean_files=$ac_clean_files_save
12508
12509
12510# configure is writing to config.log, and then calls config.status.
12511# config.status does its own redirection, appending to config.log.
12512# Unfortunately, on DOS this fails, as config.log is still kept open
12513# by configure, so config.status won't be able to write to it; its
12514# output is simply discarded. So we exec the FD to /dev/null,
12515# effectively closing config.log, so it can be properly (re)opened and
12516# appended to by config.status. When coming back to configure, we
12517# need to make the FD available again.
12518if test "$no_create" != yes; then
12519 ac_cs_success=:
12520 ac_config_status_args=
12521 test "$silent" = yes &&
12522 ac_config_status_args="$ac_config_status_args --quiet"
12523 exec 5>/dev/null
12524 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
12525 exec 5>>config.log
12526 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12527 # would make configure fail if this is the last instruction.
12528 $ac_cs_success || { (exit 1); exit 1; }
12529fi
12530