]> gcc.gnu.org Git - gcc.git/blame - libgfortran/configure
acinclude.m4: Properly quote AC_CACHE_CHECK.
[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
d49ec2d1 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 F77 FFLAGS LDFLAGS ac_ct_F77 CPP CPPFLAGS EGREP MATH_OBJ LIBOBJS LTLIBOBJS'
6de9cd9a
DN
312ac_subst_files=''
313
314# Initialize some variables set by options.
315ac_init_help=
316ac_init_version=false
317# The variables have the same names as the options, with
318# dashes changed to underlines.
319cache_file=/dev/null
320exec_prefix=NONE
321no_create=
322no_recursion=
323prefix=NONE
324program_prefix=NONE
325program_suffix=NONE
326program_transform_name=s,x,x,
327silent=
328site=
329srcdir=
330verbose=
331x_includes=NONE
332x_libraries=NONE
333
334# Installation directory options.
335# These are left unexpanded so users can "make install exec_prefix=/foo"
336# and all the variables that are supposed to be based on exec_prefix
337# by default will actually change.
338# Use braces instead of parens because sh, perl, etc. also accept them.
339bindir='${exec_prefix}/bin'
340sbindir='${exec_prefix}/sbin'
341libexecdir='${exec_prefix}/libexec'
342datadir='${prefix}/share'
343sysconfdir='${prefix}/etc'
344sharedstatedir='${prefix}/com'
345localstatedir='${prefix}/var'
346libdir='${exec_prefix}/lib'
347includedir='${prefix}/include'
348oldincludedir='/usr/include'
349infodir='${prefix}/info'
350mandir='${prefix}/man'
351
352ac_prev=
353for ac_option
354do
355 # If the previous option needs an argument, assign it.
356 if test -n "$ac_prev"; then
357 eval "$ac_prev=\$ac_option"
358 ac_prev=
359 continue
360 fi
361
362 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
363
364 # Accept the important Cygnus configure options, so we can diagnose typos.
365
366 case $ac_option in
367
368 -bindir | --bindir | --bindi | --bind | --bin | --bi)
369 ac_prev=bindir ;;
370 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
371 bindir=$ac_optarg ;;
372
373 -build | --build | --buil | --bui | --bu)
374 ac_prev=build_alias ;;
375 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
376 build_alias=$ac_optarg ;;
377
378 -cache-file | --cache-file | --cache-fil | --cache-fi \
379 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
380 ac_prev=cache_file ;;
381 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
382 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
383 cache_file=$ac_optarg ;;
384
385 --config-cache | -C)
386 cache_file=config.cache ;;
387
388 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
389 ac_prev=datadir ;;
390 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
391 | --da=*)
392 datadir=$ac_optarg ;;
393
394 -disable-* | --disable-*)
395 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
396 # Reject names that are not valid shell variable names.
397 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
398 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
399 { (exit 1); exit 1; }; }
400 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
401 eval "enable_$ac_feature=no" ;;
402
403 -enable-* | --enable-*)
404 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
405 # Reject names that are not valid shell variable names.
406 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
407 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
408 { (exit 1); exit 1; }; }
409 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
410 case $ac_option in
411 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
412 *) ac_optarg=yes ;;
413 esac
414 eval "enable_$ac_feature='$ac_optarg'" ;;
415
416 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
417 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
418 | --exec | --exe | --ex)
419 ac_prev=exec_prefix ;;
420 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
421 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
422 | --exec=* | --exe=* | --ex=*)
423 exec_prefix=$ac_optarg ;;
424
425 -gas | --gas | --ga | --g)
426 # Obsolete; use --with-gas.
427 with_gas=yes ;;
428
429 -help | --help | --hel | --he | -h)
430 ac_init_help=long ;;
431 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
432 ac_init_help=recursive ;;
433 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
434 ac_init_help=short ;;
435
436 -host | --host | --hos | --ho)
437 ac_prev=host_alias ;;
438 -host=* | --host=* | --hos=* | --ho=*)
439 host_alias=$ac_optarg ;;
440
441 -includedir | --includedir | --includedi | --included | --include \
442 | --includ | --inclu | --incl | --inc)
443 ac_prev=includedir ;;
444 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
445 | --includ=* | --inclu=* | --incl=* | --inc=*)
446 includedir=$ac_optarg ;;
447
448 -infodir | --infodir | --infodi | --infod | --info | --inf)
449 ac_prev=infodir ;;
450 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
451 infodir=$ac_optarg ;;
452
453 -libdir | --libdir | --libdi | --libd)
454 ac_prev=libdir ;;
455 -libdir=* | --libdir=* | --libdi=* | --libd=*)
456 libdir=$ac_optarg ;;
457
458 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
459 | --libexe | --libex | --libe)
460 ac_prev=libexecdir ;;
461 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
462 | --libexe=* | --libex=* | --libe=*)
463 libexecdir=$ac_optarg ;;
464
465 -localstatedir | --localstatedir | --localstatedi | --localstated \
466 | --localstate | --localstat | --localsta | --localst \
467 | --locals | --local | --loca | --loc | --lo)
468 ac_prev=localstatedir ;;
469 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
470 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
471 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
472 localstatedir=$ac_optarg ;;
473
474 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
475 ac_prev=mandir ;;
476 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
477 mandir=$ac_optarg ;;
478
479 -nfp | --nfp | --nf)
480 # Obsolete; use --without-fp.
481 with_fp=no ;;
482
483 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
484 | --no-cr | --no-c | -n)
485 no_create=yes ;;
486
487 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
488 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
489 no_recursion=yes ;;
490
491 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
492 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
493 | --oldin | --oldi | --old | --ol | --o)
494 ac_prev=oldincludedir ;;
495 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
496 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
497 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
498 oldincludedir=$ac_optarg ;;
499
500 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
501 ac_prev=prefix ;;
502 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
503 prefix=$ac_optarg ;;
504
505 -program-prefix | --program-prefix | --program-prefi | --program-pref \
506 | --program-pre | --program-pr | --program-p)
507 ac_prev=program_prefix ;;
508 -program-prefix=* | --program-prefix=* | --program-prefi=* \
509 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
510 program_prefix=$ac_optarg ;;
511
512 -program-suffix | --program-suffix | --program-suffi | --program-suff \
513 | --program-suf | --program-su | --program-s)
514 ac_prev=program_suffix ;;
515 -program-suffix=* | --program-suffix=* | --program-suffi=* \
516 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
517 program_suffix=$ac_optarg ;;
518
519 -program-transform-name | --program-transform-name \
520 | --program-transform-nam | --program-transform-na \
521 | --program-transform-n | --program-transform- \
522 | --program-transform | --program-transfor \
523 | --program-transfo | --program-transf \
524 | --program-trans | --program-tran \
525 | --progr-tra | --program-tr | --program-t)
526 ac_prev=program_transform_name ;;
527 -program-transform-name=* | --program-transform-name=* \
528 | --program-transform-nam=* | --program-transform-na=* \
529 | --program-transform-n=* | --program-transform-=* \
530 | --program-transform=* | --program-transfor=* \
531 | --program-transfo=* | --program-transf=* \
532 | --program-trans=* | --program-tran=* \
533 | --progr-tra=* | --program-tr=* | --program-t=*)
534 program_transform_name=$ac_optarg ;;
535
536 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
537 | -silent | --silent | --silen | --sile | --sil)
538 silent=yes ;;
539
540 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
541 ac_prev=sbindir ;;
542 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
543 | --sbi=* | --sb=*)
544 sbindir=$ac_optarg ;;
545
546 -sharedstatedir | --sharedstatedir | --sharedstatedi \
547 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
548 | --sharedst | --shareds | --shared | --share | --shar \
549 | --sha | --sh)
550 ac_prev=sharedstatedir ;;
551 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
552 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
553 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
554 | --sha=* | --sh=*)
555 sharedstatedir=$ac_optarg ;;
556
557 -site | --site | --sit)
558 ac_prev=site ;;
559 -site=* | --site=* | --sit=*)
560 site=$ac_optarg ;;
561
562 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
563 ac_prev=srcdir ;;
564 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
565 srcdir=$ac_optarg ;;
566
567 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
568 | --syscon | --sysco | --sysc | --sys | --sy)
569 ac_prev=sysconfdir ;;
570 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
571 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
572 sysconfdir=$ac_optarg ;;
573
574 -target | --target | --targe | --targ | --tar | --ta | --t)
575 ac_prev=target_alias ;;
576 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
577 target_alias=$ac_optarg ;;
578
579 -v | -verbose | --verbose | --verbos | --verbo | --verb)
580 verbose=yes ;;
581
582 -version | --version | --versio | --versi | --vers | -V)
583 ac_init_version=: ;;
584
585 -with-* | --with-*)
586 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
587 # Reject names that are not valid shell variable names.
588 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
589 { echo "$as_me: error: invalid package name: $ac_package" >&2
590 { (exit 1); exit 1; }; }
591 ac_package=`echo $ac_package| sed 's/-/_/g'`
592 case $ac_option in
593 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
594 *) ac_optarg=yes ;;
595 esac
596 eval "with_$ac_package='$ac_optarg'" ;;
597
598 -without-* | --without-*)
599 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
600 # Reject names that are not valid shell variable names.
601 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
602 { echo "$as_me: error: invalid package name: $ac_package" >&2
603 { (exit 1); exit 1; }; }
604 ac_package=`echo $ac_package | sed 's/-/_/g'`
605 eval "with_$ac_package=no" ;;
606
607 --x)
608 # Obsolete; use --with-x.
609 with_x=yes ;;
610
611 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
612 | --x-incl | --x-inc | --x-in | --x-i)
613 ac_prev=x_includes ;;
614 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
615 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
616 x_includes=$ac_optarg ;;
617
618 -x-libraries | --x-libraries | --x-librarie | --x-librari \
619 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
620 ac_prev=x_libraries ;;
621 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
622 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
623 x_libraries=$ac_optarg ;;
624
625 -*) { echo "$as_me: error: unrecognized option: $ac_option
626Try \`$0 --help' for more information." >&2
627 { (exit 1); exit 1; }; }
628 ;;
629
630 *=*)
631 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
632 # Reject names that are not valid shell variable names.
633 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
634 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
635 { (exit 1); exit 1; }; }
636 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
637 eval "$ac_envvar='$ac_optarg'"
638 export $ac_envvar ;;
639
640 *)
641 # FIXME: should be removed in autoconf 3.0.
642 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
643 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
644 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
645 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
646 ;;
647
648 esac
649done
650
651if test -n "$ac_prev"; then
652 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
653 { echo "$as_me: error: missing argument to $ac_option" >&2
654 { (exit 1); exit 1; }; }
655fi
656
657# Be sure to have absolute paths.
658for ac_var in exec_prefix prefix
659do
660 eval ac_val=$`echo $ac_var`
661 case $ac_val in
662 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
663 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
664 { (exit 1); exit 1; }; };;
665 esac
666done
667
668# Be sure to have absolute paths.
669for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
670 localstatedir libdir includedir oldincludedir infodir mandir
671do
672 eval ac_val=$`echo $ac_var`
673 case $ac_val in
674 [\\/$]* | ?:[\\/]* ) ;;
675 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
676 { (exit 1); exit 1; }; };;
677 esac
678done
679
680# There might be people who depend on the old broken behavior: `$host'
681# used to hold the argument of --host etc.
682# FIXME: To remove some day.
683build=$build_alias
684host=$host_alias
685target=$target_alias
686
687# FIXME: To remove some day.
688if test "x$host_alias" != x; then
689 if test "x$build_alias" = x; then
690 cross_compiling=maybe
691 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
692 If a cross compiler is detected then cross compile mode will be used." >&2
693 elif test "x$build_alias" != "x$host_alias"; then
694 cross_compiling=yes
695 fi
696fi
697
698ac_tool_prefix=
699test -n "$host_alias" && ac_tool_prefix=$host_alias-
700
701test "$silent" = yes && exec 6>/dev/null
702
703
704# Find the source files, if location was not specified.
705if test -z "$srcdir"; then
706 ac_srcdir_defaulted=yes
707 # Try the directory containing this script, then its parent.
708 ac_confdir=`(dirname "$0") 2>/dev/null ||
709$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
710 X"$0" : 'X\(//\)[^/]' \| \
711 X"$0" : 'X\(//\)$' \| \
712 X"$0" : 'X\(/\)' \| \
713 . : '\(.\)' 2>/dev/null ||
714echo X"$0" |
715 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
716 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
717 /^X\(\/\/\)$/{ s//\1/; q; }
718 /^X\(\/\).*/{ s//\1/; q; }
719 s/.*/./; q'`
720 srcdir=$ac_confdir
721 if test ! -r $srcdir/$ac_unique_file; then
722 srcdir=..
723 fi
724else
725 ac_srcdir_defaulted=no
726fi
727if test ! -r $srcdir/$ac_unique_file; then
728 if test "$ac_srcdir_defaulted" = yes; then
729 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
730 { (exit 1); exit 1; }; }
731 else
732 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
733 { (exit 1); exit 1; }; }
734 fi
735fi
736(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
737 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
738 { (exit 1); exit 1; }; }
739srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
740ac_env_build_alias_set=${build_alias+set}
741ac_env_build_alias_value=$build_alias
742ac_cv_env_build_alias_set=${build_alias+set}
743ac_cv_env_build_alias_value=$build_alias
744ac_env_host_alias_set=${host_alias+set}
745ac_env_host_alias_value=$host_alias
746ac_cv_env_host_alias_set=${host_alias+set}
747ac_cv_env_host_alias_value=$host_alias
748ac_env_target_alias_set=${target_alias+set}
749ac_env_target_alias_value=$target_alias
750ac_cv_env_target_alias_set=${target_alias+set}
751ac_cv_env_target_alias_value=$target_alias
6de9cd9a
DN
752ac_env_F77_set=${F77+set}
753ac_env_F77_value=$F77
754ac_cv_env_F77_set=${F77+set}
755ac_cv_env_F77_value=$F77
756ac_env_FFLAGS_set=${FFLAGS+set}
757ac_env_FFLAGS_value=$FFLAGS
758ac_cv_env_FFLAGS_set=${FFLAGS+set}
759ac_cv_env_FFLAGS_value=$FFLAGS
96b8a615
AJ
760ac_env_LDFLAGS_set=${LDFLAGS+set}
761ac_env_LDFLAGS_value=$LDFLAGS
762ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
763ac_cv_env_LDFLAGS_value=$LDFLAGS
6de9cd9a
DN
764ac_env_CPP_set=${CPP+set}
765ac_env_CPP_value=$CPP
766ac_cv_env_CPP_set=${CPP+set}
767ac_cv_env_CPP_value=$CPP
96b8a615
AJ
768ac_env_CPPFLAGS_set=${CPPFLAGS+set}
769ac_env_CPPFLAGS_value=$CPPFLAGS
770ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
771ac_cv_env_CPPFLAGS_value=$CPPFLAGS
6de9cd9a
DN
772
773#
774# Report the --help message.
775#
776if test "$ac_init_help" = "long"; then
777 # Omit some internal or obsolete options to make the list less imposing.
778 # This message is too long to be a string in the A/UX 3.1 sh.
779 cat <<_ACEOF
780\`configure' configures GNU Fortran Runtime Library 0.2 to adapt to many kinds of systems.
781
782Usage: $0 [OPTION]... [VAR=VALUE]...
783
784To assign environment variables (e.g., CC, CFLAGS...), specify them as
785VAR=VALUE. See below for descriptions of some of the useful variables.
786
787Defaults for the options are specified in brackets.
788
789Configuration:
790 -h, --help display this help and exit
791 --help=short display options specific to this package
792 --help=recursive display the short help of all the included packages
793 -V, --version display version information and exit
794 -q, --quiet, --silent do not print \`checking...' messages
795 --cache-file=FILE cache test results in FILE [disabled]
796 -C, --config-cache alias for \`--cache-file=config.cache'
797 -n, --no-create do not create output files
798 --srcdir=DIR find the sources in DIR [configure dir or \`..']
799
800_ACEOF
801
802 cat <<_ACEOF
803Installation directories:
804 --prefix=PREFIX install architecture-independent files in PREFIX
805 [$ac_default_prefix]
806 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
807 [PREFIX]
808
809By default, \`make install' will install all the files in
810\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
811an installation prefix other than \`$ac_default_prefix' using \`--prefix',
812for instance \`--prefix=\$HOME'.
813
814For better control, use the options below.
815
816Fine tuning of the installation directories:
817 --bindir=DIR user executables [EPREFIX/bin]
818 --sbindir=DIR system admin executables [EPREFIX/sbin]
819 --libexecdir=DIR program executables [EPREFIX/libexec]
820 --datadir=DIR read-only architecture-independent data [PREFIX/share]
821 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
822 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
823 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
824 --libdir=DIR object code libraries [EPREFIX/lib]
825 --includedir=DIR C header files [PREFIX/include]
826 --oldincludedir=DIR C header files for non-gcc [/usr/include]
827 --infodir=DIR info documentation [PREFIX/info]
828 --mandir=DIR man documentation [PREFIX/man]
829_ACEOF
830
831 cat <<\_ACEOF
832
833Program names:
834 --program-prefix=PREFIX prepend PREFIX to installed program names
835 --program-suffix=SUFFIX append SUFFIX to installed program names
836 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
837
838System types:
839 --build=BUILD configure for building on BUILD [guessed]
840 --host=HOST cross-compile to build programs to run on HOST [BUILD]
96b8a615 841 --target=TARGET configure for building compilers for TARGET [HOST]
6de9cd9a
DN
842_ACEOF
843fi
844
845if test -n "$ac_init_help"; then
846 case $ac_init_help in
847 short | recursive ) echo "Configuration of GNU Fortran Runtime Library 0.2:";;
848 esac
849 cat <<\_ACEOF
850
851Optional Features:
852 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
853 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
96b8a615 854 --enable-version-specific-runtime-libs Specify that runtime libraries should be installed in a compiler-specific directory
6de9cd9a
DN
855 --enable-maintainer-mode enable make rules and dependencies not useful
856 (and sometimes confusing) to the casual installer
96b8a615 857 --enable-multilib build many library versions (default)
6de9cd9a
DN
858 --enable-shared=PKGS build shared libraries default=yes
859 --enable-static=PKGS build static libraries default=yes
860 --enable-fast-install=PKGS optimize for fast installation default=yes
861 --disable-libtool-lock avoid locking (might break parallel builds)
9cdc381b 862 --disable-largefile omit support for large files
96b8a615 863 --enable-cmath Include complex math functions
6de9cd9a
DN
864
865Optional Packages:
866 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
867 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
868 --with-gnu-ld assume the C compiler uses GNU ld default=no
869 --with-pic try to use only PIC/non-PIC objects default=use both
870
871Some influential environment variables:
872 CC C compiler command
873 CFLAGS C compiler flags
874 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
875 nonstandard directory <lib dir>
876 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
877 headers in a nonstandard directory <include dir>
878 F77 Fortran 77 compiler command
879 FFLAGS Fortran 77 compiler flags
880 CPP C preprocessor
881
882Use these variables to override the choices made by `configure' or to help
883it to find libraries and programs with nonstandard names/locations.
884
885_ACEOF
886fi
887
888if test "$ac_init_help" = "recursive"; then
889 # If there are subdirs, report their specific --help.
890 ac_popdir=`pwd`
891 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
892 test -d $ac_dir || continue
893 ac_builddir=.
894
895if test "$ac_dir" != .; then
896 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
897 # A "../" for each directory in $ac_dir_suffix.
898 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
899else
900 ac_dir_suffix= ac_top_builddir=
901fi
902
903case $srcdir in
904 .) # No --srcdir option. We are building in place.
905 ac_srcdir=.
906 if test -z "$ac_top_builddir"; then
907 ac_top_srcdir=.
908 else
909 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
910 fi ;;
911 [\\/]* | ?:[\\/]* ) # Absolute path.
912 ac_srcdir=$srcdir$ac_dir_suffix;
913 ac_top_srcdir=$srcdir ;;
914 *) # Relative path.
915 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
916 ac_top_srcdir=$ac_top_builddir$srcdir ;;
917esac
918
919# Do not use `cd foo && pwd` to compute absolute paths, because
920# the directories may not exist.
921case `pwd` in
922.) ac_abs_builddir="$ac_dir";;
923*)
924 case "$ac_dir" in
925 .) ac_abs_builddir=`pwd`;;
926 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
927 *) ac_abs_builddir=`pwd`/"$ac_dir";;
928 esac;;
929esac
930case $ac_abs_builddir in
931.) ac_abs_top_builddir=${ac_top_builddir}.;;
932*)
933 case ${ac_top_builddir}. in
934 .) ac_abs_top_builddir=$ac_abs_builddir;;
935 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
936 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
937 esac;;
938esac
939case $ac_abs_builddir in
940.) ac_abs_srcdir=$ac_srcdir;;
941*)
942 case $ac_srcdir in
943 .) ac_abs_srcdir=$ac_abs_builddir;;
944 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
945 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
946 esac;;
947esac
948case $ac_abs_builddir in
949.) ac_abs_top_srcdir=$ac_top_srcdir;;
950*)
951 case $ac_top_srcdir in
952 .) ac_abs_top_srcdir=$ac_abs_builddir;;
953 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
954 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
955 esac;;
956esac
957
958 cd $ac_dir
959 # Check for guested configure; otherwise get Cygnus style configure.
960 if test -f $ac_srcdir/configure.gnu; then
961 echo
962 $SHELL $ac_srcdir/configure.gnu --help=recursive
963 elif test -f $ac_srcdir/configure; then
964 echo
965 $SHELL $ac_srcdir/configure --help=recursive
966 elif test -f $ac_srcdir/configure.ac ||
967 test -f $ac_srcdir/configure.in; then
968 echo
969 $ac_configure --help
970 else
971 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
972 fi
bf4d99cf 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); } &&
bf4d99cf
TS
2611 { ac_try='test -z "$ac_c_werror_flag"
2612 || test ! -s conftest.err'
6de9cd9a
DN
2613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2614 (eval $ac_try) 2>&5
2615 ac_status=$?
2616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2617 (exit $ac_status); }; } &&
2618 { ac_try='test -s conftest.$ac_objext'
2619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2620 (eval $ac_try) 2>&5
2621 ac_status=$?
2622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2623 (exit $ac_status); }; }; then
2624 ac_compiler_gnu=yes
2625else
2626 echo "$as_me: failed program was:" >&5
2627sed 's/^/| /' conftest.$ac_ext >&5
2628
2629ac_compiler_gnu=no
2630fi
2631rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2632ac_cv_c_compiler_gnu=$ac_compiler_gnu
2633
2634fi
2635echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2636echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2637GCC=`test $ac_compiler_gnu = yes && echo yes`
2638ac_test_CFLAGS=${CFLAGS+set}
2639ac_save_CFLAGS=$CFLAGS
2640CFLAGS="-g"
2641echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2642echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2643if test "${ac_cv_prog_cc_g+set}" = set; then
2644 echo $ECHO_N "(cached) $ECHO_C" >&6
2645else
2646 cat >conftest.$ac_ext <<_ACEOF
2647/* confdefs.h. */
2648_ACEOF
2649cat confdefs.h >>conftest.$ac_ext
2650cat >>conftest.$ac_ext <<_ACEOF
2651/* end confdefs.h. */
2652
2653int
2654main ()
2655{
2656
2657 ;
2658 return 0;
2659}
2660_ACEOF
2661rm -f conftest.$ac_objext
2662if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2663 (eval $ac_compile) 2>conftest.er1
2664 ac_status=$?
2665 grep -v '^ *+' conftest.er1 >conftest.err
2666 rm -f conftest.er1
2667 cat conftest.err >&5
2668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2669 (exit $ac_status); } &&
bf4d99cf
TS
2670 { ac_try='test -z "$ac_c_werror_flag"
2671 || test ! -s conftest.err'
6de9cd9a
DN
2672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2673 (eval $ac_try) 2>&5
2674 ac_status=$?
2675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2676 (exit $ac_status); }; } &&
2677 { ac_try='test -s conftest.$ac_objext'
2678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2679 (eval $ac_try) 2>&5
2680 ac_status=$?
2681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2682 (exit $ac_status); }; }; then
2683 ac_cv_prog_cc_g=yes
2684else
2685 echo "$as_me: failed program was:" >&5
2686sed 's/^/| /' conftest.$ac_ext >&5
2687
2688ac_cv_prog_cc_g=no
2689fi
2690rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2691fi
2692echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2693echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2694if test "$ac_test_CFLAGS" = set; then
2695 CFLAGS=$ac_save_CFLAGS
2696elif test $ac_cv_prog_cc_g = yes; then
2697 if test "$GCC" = yes; then
2698 CFLAGS="-g -O2"
2699 else
2700 CFLAGS="-g"
2701 fi
2702else
2703 if test "$GCC" = yes; then
2704 CFLAGS="-O2"
2705 else
2706 CFLAGS=
2707 fi
2708fi
2709echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2710echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2711if test "${ac_cv_prog_cc_stdc+set}" = set; then
2712 echo $ECHO_N "(cached) $ECHO_C" >&6
2713else
2714 ac_cv_prog_cc_stdc=no
2715ac_save_CC=$CC
2716cat >conftest.$ac_ext <<_ACEOF
2717/* confdefs.h. */
2718_ACEOF
2719cat confdefs.h >>conftest.$ac_ext
2720cat >>conftest.$ac_ext <<_ACEOF
2721/* end confdefs.h. */
2722#include <stdarg.h>
2723#include <stdio.h>
2724#include <sys/types.h>
2725#include <sys/stat.h>
2726/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2727struct buf { int x; };
2728FILE * (*rcsopen) (struct buf *, struct stat *, int);
2729static char *e (p, i)
2730 char **p;
2731 int i;
2732{
2733 return p[i];
2734}
2735static char *f (char * (*g) (char **, int), char **p, ...)
2736{
2737 char *s;
2738 va_list v;
2739 va_start (v,p);
2740 s = g (p, va_arg (v,int));
2741 va_end (v);
2742 return s;
2743}
2744
2745/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2746 function prototypes and stuff, but not '\xHH' hex character constants.
2747 These don't provoke an error unfortunately, instead are silently treated
2748 as 'x'. The following induces an error, until -std1 is added to get
2749 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2750 array size at least. It's necessary to write '\x00'==0 to get something
2751 that's true only with -std1. */
2752int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2753
2754int test (int i, double x);
2755struct s1 {int (*f) (int a);};
2756struct s2 {int (*f) (double a);};
2757int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2758int argc;
2759char **argv;
2760int
2761main ()
2762{
2763return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2764 ;
2765 return 0;
2766}
2767_ACEOF
2768# Don't try gcc -ansi; that turns off useful extensions and
2769# breaks some systems' header files.
2770# AIX -qlanglvl=ansi
2771# Ultrix and OSF/1 -std1
2772# HP-UX 10.20 and later -Ae
2773# HP-UX older versions -Aa -D_HPUX_SOURCE
2774# SVR4 -Xc -D__EXTENSIONS__
2775for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2776do
2777 CC="$ac_save_CC $ac_arg"
2778 rm -f conftest.$ac_objext
2779if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2780 (eval $ac_compile) 2>conftest.er1
2781 ac_status=$?
2782 grep -v '^ *+' conftest.er1 >conftest.err
2783 rm -f conftest.er1
2784 cat conftest.err >&5
2785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2786 (exit $ac_status); } &&
bf4d99cf
TS
2787 { ac_try='test -z "$ac_c_werror_flag"
2788 || test ! -s conftest.err'
6de9cd9a
DN
2789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2790 (eval $ac_try) 2>&5
2791 ac_status=$?
2792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2793 (exit $ac_status); }; } &&
2794 { ac_try='test -s conftest.$ac_objext'
2795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2796 (eval $ac_try) 2>&5
2797 ac_status=$?
2798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2799 (exit $ac_status); }; }; then
2800 ac_cv_prog_cc_stdc=$ac_arg
2801break
2802else
2803 echo "$as_me: failed program was:" >&5
2804sed 's/^/| /' conftest.$ac_ext >&5
2805
2806fi
2807rm -f conftest.err conftest.$ac_objext
2808done
2809rm -f conftest.$ac_ext conftest.$ac_objext
2810CC=$ac_save_CC
2811
2812fi
2813
2814case "x$ac_cv_prog_cc_stdc" in
2815 x|xno)
2816 echo "$as_me:$LINENO: result: none needed" >&5
2817echo "${ECHO_T}none needed" >&6 ;;
2818 *)
2819 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2820echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2821 CC="$CC $ac_cv_prog_cc_stdc" ;;
2822esac
2823
2824# Some people use a C++ compiler to compile C. Since we use `exit',
2825# in C++ we need to declare it. In case someone uses the same compiler
2826# for both compiling C and C++ we need to have the C++ compiler decide
2827# the declaration of exit, since it's the most demanding environment.
2828cat >conftest.$ac_ext <<_ACEOF
2829#ifndef __cplusplus
2830 choke me
2831#endif
2832_ACEOF
2833rm -f conftest.$ac_objext
2834if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2835 (eval $ac_compile) 2>conftest.er1
2836 ac_status=$?
2837 grep -v '^ *+' conftest.er1 >conftest.err
2838 rm -f conftest.er1
2839 cat conftest.err >&5
2840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2841 (exit $ac_status); } &&
bf4d99cf
TS
2842 { ac_try='test -z "$ac_c_werror_flag"
2843 || test ! -s conftest.err'
6de9cd9a
DN
2844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2845 (eval $ac_try) 2>&5
2846 ac_status=$?
2847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2848 (exit $ac_status); }; } &&
2849 { ac_try='test -s conftest.$ac_objext'
2850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2851 (eval $ac_try) 2>&5
2852 ac_status=$?
2853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2854 (exit $ac_status); }; }; then
2855 for ac_declaration in \
2856 '' \
2857 'extern "C" void std::exit (int) throw (); using std::exit;' \
2858 'extern "C" void std::exit (int); using std::exit;' \
2859 'extern "C" void exit (int) throw ();' \
2860 'extern "C" void exit (int);' \
2861 'void exit (int);'
2862do
2863 cat >conftest.$ac_ext <<_ACEOF
2864/* confdefs.h. */
2865_ACEOF
2866cat confdefs.h >>conftest.$ac_ext
2867cat >>conftest.$ac_ext <<_ACEOF
2868/* end confdefs.h. */
2869$ac_declaration
2870#include <stdlib.h>
2871int
2872main ()
2873{
2874exit (42);
2875 ;
2876 return 0;
2877}
2878_ACEOF
2879rm -f conftest.$ac_objext
2880if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2881 (eval $ac_compile) 2>conftest.er1
2882 ac_status=$?
2883 grep -v '^ *+' conftest.er1 >conftest.err
2884 rm -f conftest.er1
2885 cat conftest.err >&5
2886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2887 (exit $ac_status); } &&
bf4d99cf
TS
2888 { ac_try='test -z "$ac_c_werror_flag"
2889 || test ! -s conftest.err'
6de9cd9a
DN
2890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2891 (eval $ac_try) 2>&5
2892 ac_status=$?
2893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2894 (exit $ac_status); }; } &&
2895 { ac_try='test -s conftest.$ac_objext'
2896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2897 (eval $ac_try) 2>&5
2898 ac_status=$?
2899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2900 (exit $ac_status); }; }; then
2901 :
2902else
2903 echo "$as_me: failed program was:" >&5
2904sed 's/^/| /' conftest.$ac_ext >&5
2905
2906continue
2907fi
2908rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2909 cat >conftest.$ac_ext <<_ACEOF
2910/* confdefs.h. */
2911_ACEOF
2912cat confdefs.h >>conftest.$ac_ext
2913cat >>conftest.$ac_ext <<_ACEOF
2914/* end confdefs.h. */
2915$ac_declaration
2916int
2917main ()
2918{
2919exit (42);
2920 ;
2921 return 0;
2922}
2923_ACEOF
2924rm -f conftest.$ac_objext
2925if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2926 (eval $ac_compile) 2>conftest.er1
2927 ac_status=$?
2928 grep -v '^ *+' conftest.er1 >conftest.err
2929 rm -f conftest.er1
2930 cat conftest.err >&5
2931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2932 (exit $ac_status); } &&
bf4d99cf
TS
2933 { ac_try='test -z "$ac_c_werror_flag"
2934 || test ! -s conftest.err'
6de9cd9a
DN
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); }; } &&
2940 { ac_try='test -s conftest.$ac_objext'
2941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2942 (eval $ac_try) 2>&5
2943 ac_status=$?
2944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2945 (exit $ac_status); }; }; then
2946 break
2947else
2948 echo "$as_me: failed program was:" >&5
2949sed 's/^/| /' conftest.$ac_ext >&5
2950
2951fi
2952rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2953done
2954rm -f conftest*
2955if test -n "$ac_declaration"; then
2956 echo '#ifdef __cplusplus' >>confdefs.h
2957 echo $ac_declaration >>confdefs.h
2958 echo '#endif' >>confdefs.h
2959fi
2960
2961else
2962 echo "$as_me: failed program was:" >&5
2963sed 's/^/| /' conftest.$ac_ext >&5
2964
2965fi
2966rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2967ac_ext=c
2968ac_cpp='$CPP $CPPFLAGS'
2969ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2970ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2971ac_compiler_gnu=$ac_cv_c_compiler_gnu
6de9cd9a 2972
6de9cd9a 2973
6de9cd9a 2974
6de9cd9a
DN
2975
2976
96b8a615
AJ
2977# Add -Wall if we are using GCC.
2978if test "x$GCC" = "xyes"; then
2979 CFLAGS="$CFLAGS -Wall"
6de9cd9a
DN
2980fi
2981
96b8a615
AJ
2982# Find other programs we need.
2983if test -n "$ac_tool_prefix"; then
2984 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
2985set dummy ${ac_tool_prefix}as; ac_word=$2
2986echo "$as_me:$LINENO: checking for $ac_word" >&5
2987echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2988if test "${ac_cv_prog_AS+set}" = set; then
6de9cd9a
DN
2989 echo $ECHO_N "(cached) $ECHO_C" >&6
2990else
96b8a615
AJ
2991 if test -n "$AS"; then
2992 ac_cv_prog_AS="$AS" # Let the user override the test.
2993else
2994as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2995for as_dir in $PATH
2996do
2997 IFS=$as_save_IFS
2998 test -z "$as_dir" && as_dir=.
2999 for ac_exec_ext in '' $ac_executable_extensions; do
3000 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3001 ac_cv_prog_AS="${ac_tool_prefix}as"
3002 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3003 break 2
6de9cd9a 3004 fi
96b8a615
AJ
3005done
3006done
6de9cd9a 3007
96b8a615
AJ
3008fi
3009fi
3010AS=$ac_cv_prog_AS
3011if test -n "$AS"; then
3012 echo "$as_me:$LINENO: result: $AS" >&5
3013echo "${ECHO_T}$AS" >&6
6de9cd9a 3014else
96b8a615
AJ
3015 echo "$as_me:$LINENO: result: no" >&5
3016echo "${ECHO_T}no" >&6
6de9cd9a
DN
3017fi
3018
3019fi
96b8a615
AJ
3020if test -z "$ac_cv_prog_AS"; then
3021 ac_ct_AS=$AS
3022 # Extract the first word of "as", so it can be a program name with args.
3023set dummy as; ac_word=$2
3024echo "$as_me:$LINENO: checking for $ac_word" >&5
3025echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3026if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
3027 echo $ECHO_N "(cached) $ECHO_C" >&6
3028else
3029 if test -n "$ac_ct_AS"; then
3030 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
3031else
3032as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3033for as_dir in $PATH
3034do
3035 IFS=$as_save_IFS
3036 test -z "$as_dir" && as_dir=.
3037 for ac_exec_ext in '' $ac_executable_extensions; do
3038 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3039 ac_cv_prog_ac_ct_AS="as"
3040 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3041 break 2
3042 fi
3043done
3044done
6de9cd9a 3045
96b8a615
AJ
3046fi
3047fi
3048ac_ct_AS=$ac_cv_prog_ac_ct_AS
3049if test -n "$ac_ct_AS"; then
3050 echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
3051echo "${ECHO_T}$ac_ct_AS" >&6
6de9cd9a 3052else
96b8a615
AJ
3053 echo "$as_me:$LINENO: result: no" >&5
3054echo "${ECHO_T}no" >&6
6de9cd9a
DN
3055fi
3056
96b8a615
AJ
3057 AS=$ac_ct_AS
3058else
3059 AS="$ac_cv_prog_AS"
6de9cd9a
DN
3060fi
3061
6de9cd9a 3062if test -n "$ac_tool_prefix"; then
96b8a615
AJ
3063 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3064set dummy ${ac_tool_prefix}ar; ac_word=$2
6de9cd9a
DN
3065echo "$as_me:$LINENO: checking for $ac_word" >&5
3066echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
96b8a615 3067if test "${ac_cv_prog_AR+set}" = set; then
6de9cd9a
DN
3068 echo $ECHO_N "(cached) $ECHO_C" >&6
3069else
96b8a615
AJ
3070 if test -n "$AR"; then
3071 ac_cv_prog_AR="$AR" # Let the user override the test.
6de9cd9a
DN
3072else
3073as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3074for as_dir in $PATH
3075do
3076 IFS=$as_save_IFS
3077 test -z "$as_dir" && as_dir=.
3078 for ac_exec_ext in '' $ac_executable_extensions; do
3079 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
96b8a615 3080 ac_cv_prog_AR="${ac_tool_prefix}ar"
6de9cd9a
DN
3081 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3082 break 2
3083 fi
3084done
3085done
3086
3087fi
3088fi
96b8a615
AJ
3089AR=$ac_cv_prog_AR
3090if test -n "$AR"; then
3091 echo "$as_me:$LINENO: result: $AR" >&5
3092echo "${ECHO_T}$AR" >&6
6de9cd9a
DN
3093else
3094 echo "$as_me:$LINENO: result: no" >&5
3095echo "${ECHO_T}no" >&6
3096fi
3097
6de9cd9a 3098fi
96b8a615
AJ
3099if test -z "$ac_cv_prog_AR"; then
3100 ac_ct_AR=$AR
3101 # Extract the first word of "ar", so it can be a program name with args.
3102set dummy ar; ac_word=$2
6de9cd9a
DN
3103echo "$as_me:$LINENO: checking for $ac_word" >&5
3104echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
96b8a615 3105if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6de9cd9a
DN
3106 echo $ECHO_N "(cached) $ECHO_C" >&6
3107else
96b8a615
AJ
3108 if test -n "$ac_ct_AR"; then
3109 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6de9cd9a
DN
3110else
3111as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3112for as_dir in $PATH
3113do
3114 IFS=$as_save_IFS
3115 test -z "$as_dir" && as_dir=.
3116 for ac_exec_ext in '' $ac_executable_extensions; do
3117 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
96b8a615 3118 ac_cv_prog_ac_ct_AR="ar"
6de9cd9a
DN
3119 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3120 break 2
3121 fi
3122done
3123done
3124
3125fi
3126fi
96b8a615
AJ
3127ac_ct_AR=$ac_cv_prog_ac_ct_AR
3128if test -n "$ac_ct_AR"; then
3129 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
3130echo "${ECHO_T}$ac_ct_AR" >&6
6de9cd9a
DN
3131else
3132 echo "$as_me:$LINENO: result: no" >&5
3133echo "${ECHO_T}no" >&6
3134fi
3135
96b8a615
AJ
3136 AR=$ac_ct_AR
3137else
3138 AR="$ac_cv_prog_AR"
6de9cd9a
DN
3139fi
3140
96b8a615
AJ
3141if test -n "$ac_tool_prefix"; then
3142 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3143set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3144echo "$as_me:$LINENO: checking for $ac_word" >&5
3145echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3146if test "${ac_cv_prog_RANLIB+set}" = set; then
6de9cd9a
DN
3147 echo $ECHO_N "(cached) $ECHO_C" >&6
3148else
96b8a615
AJ
3149 if test -n "$RANLIB"; then
3150 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6de9cd9a 3151else
96b8a615
AJ
3152as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3153for as_dir in $PATH
3154do
3155 IFS=$as_save_IFS
3156 test -z "$as_dir" && as_dir=.
3157 for ac_exec_ext in '' $ac_executable_extensions; do
3158 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3159 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3160 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3161 break 2
3162 fi
3163done
3164done
6de9cd9a 3165
6de9cd9a 3166fi
96b8a615
AJ
3167fi
3168RANLIB=$ac_cv_prog_RANLIB
3169if test -n "$RANLIB"; then
3170 echo "$as_me:$LINENO: result: $RANLIB" >&5
3171echo "${ECHO_T}$RANLIB" >&6
3172else
3173 echo "$as_me:$LINENO: result: no" >&5
3174echo "${ECHO_T}no" >&6
3175fi
6de9cd9a
DN
3176
3177fi
96b8a615
AJ
3178if test -z "$ac_cv_prog_RANLIB"; then
3179 ac_ct_RANLIB=$RANLIB
3180 # Extract the first word of "ranlib", so it can be a program name with args.
3181set dummy ranlib; ac_word=$2
3182echo "$as_me:$LINENO: checking for $ac_word" >&5
3183echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3184if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6de9cd9a
DN
3185 echo $ECHO_N "(cached) $ECHO_C" >&6
3186else
96b8a615
AJ
3187 if test -n "$ac_ct_RANLIB"; then
3188 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6de9cd9a 3189else
96b8a615
AJ
3190as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3191for as_dir in $PATH
3192do
3193 IFS=$as_save_IFS
3194 test -z "$as_dir" && as_dir=.
3195 for ac_exec_ext in '' $ac_executable_extensions; do
3196 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3197 ac_cv_prog_ac_ct_RANLIB="ranlib"
3198 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3199 break 2
3200 fi
3201done
3202done
6de9cd9a 3203
96b8a615 3204 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB="ranlib-not-found-in-path-error"
6de9cd9a 3205fi
6de9cd9a 3206fi
96b8a615
AJ
3207ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3208if test -n "$ac_ct_RANLIB"; then
3209 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3210echo "${ECHO_T}$ac_ct_RANLIB" >&6
6de9cd9a 3211else
96b8a615
AJ
3212 echo "$as_me:$LINENO: result: no" >&5
3213echo "${ECHO_T}no" >&6
6de9cd9a
DN
3214fi
3215
96b8a615
AJ
3216 RANLIB=$ac_ct_RANLIB
3217else
3218 RANLIB="$ac_cv_prog_RANLIB"
6de9cd9a 3219fi
96b8a615
AJ
3220
3221echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3222echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
3223set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
3224if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
6de9cd9a
DN
3225 echo $ECHO_N "(cached) $ECHO_C" >&6
3226else
96b8a615
AJ
3227 cat >conftest.make <<\_ACEOF
3228all:
3229 @echo 'ac_maketemp="$(MAKE)"'
6de9cd9a 3230_ACEOF
96b8a615
AJ
3231# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3232eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
3233if test -n "$ac_maketemp"; then
3234 eval ac_cv_prog_make_${ac_make}_set=yes
6de9cd9a 3235else
96b8a615 3236 eval ac_cv_prog_make_${ac_make}_set=no
6de9cd9a 3237fi
96b8a615
AJ
3238rm -f conftest.make
3239fi
3240if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3241 echo "$as_me:$LINENO: result: yes" >&5
3242echo "${ECHO_T}yes" >&6
3243 SET_MAKE=
6de9cd9a 3244else
96b8a615
AJ
3245 echo "$as_me:$LINENO: result: no" >&5
3246echo "${ECHO_T}no" >&6
3247 SET_MAKE="MAKE=${MAKE-make}"
6de9cd9a 3248fi
6de9cd9a 3249
96b8a615
AJ
3250# Find a good install program. We prefer a C program (faster),
3251# so one script is as good as another. But avoid the broken or
3252# incompatible versions:
3253# SysV /etc/install, /usr/sbin/install
3254# SunOS /usr/etc/install
3255# IRIX /sbin/install
3256# AIX /bin/install
3257# AmigaOS /C/install, which installs bootblocks on floppy discs
3258# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3259# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3260# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3261# OS/2's system install, which has a completely different semantic
3262# ./install, which can be erroneously created by make from ./install.sh.
3263echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3264echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3265if test -z "$INSTALL"; then
3266if test "${ac_cv_path_install+set}" = set; then
3267 echo $ECHO_N "(cached) $ECHO_C" >&6
6de9cd9a 3268else
96b8a615
AJ
3269 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3270for as_dir in $PATH
3271do
3272 IFS=$as_save_IFS
3273 test -z "$as_dir" && as_dir=.
3274 # Account for people who put trailing slashes in PATH elements.
3275case $as_dir/ in
3276 ./ | .// | /cC/* | \
3277 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3278 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3279 /usr/ucb/* ) ;;
3280 *)
3281 # OSF1 and SCO ODT 3.0 have their own names for install.
3282 # Don't use installbsd from OSF since it installs stuff as root
3283 # by default.
3284 for ac_prog in ginstall scoinst install; do
3285 for ac_exec_ext in '' $ac_executable_extensions; do
3286 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3287 if test $ac_prog = install &&
3288 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3289 # AIX install. It has an incompatible calling convention.
3290 :
3291 elif test $ac_prog = install &&
3292 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3293 # program-specific install script used by HP pwplus--don't use.
3294 :
3295 else
3296 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3297 break 3
3298 fi
3299 fi
3300 done
3301 done
3302 ;;
3303esac
6de9cd9a 3304done
6de9cd9a 3305
6de9cd9a
DN
3306
3307fi
96b8a615
AJ
3308 if test "${ac_cv_path_install+set}" = set; then
3309 INSTALL=$ac_cv_path_install
6de9cd9a 3310 else
96b8a615
AJ
3311 # As a last resort, use the slow shell script. We don't cache a
3312 # path for INSTALL within a source directory, because that will
3313 # break other packages using the cache if that directory is
3314 # removed, or if the path is relative.
3315 INSTALL=$ac_install_sh
6de9cd9a 3316 fi
6de9cd9a 3317fi
96b8a615
AJ
3318echo "$as_me:$LINENO: result: $INSTALL" >&5
3319echo "${ECHO_T}$INSTALL" >&6
6de9cd9a 3320
96b8a615
AJ
3321# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3322# It thinks the first close brace ends the variable substitution.
3323test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
6de9cd9a 3324
96b8a615 3325test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
6de9cd9a 3326
96b8a615 3327test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
6de9cd9a 3328
6de9cd9a 3329
96b8a615
AJ
3330# Configure libtool
3331#AC_MSG_NOTICE([====== Starting libtool configuration])
6de9cd9a 3332
96b8a615
AJ
3333# Check whether --enable-shared or --disable-shared was given.
3334if test "${enable_shared+set}" = set; then
3335 enableval="$enable_shared"
3336 p=${PACKAGE-default}
3337case $enableval in
3338yes) enable_shared=yes ;;
3339no) enable_shared=no ;;
3340*)
3341 enable_shared=no
3342 # Look at the argument we got. We use all the common list separators.
3343 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3344 for pkg in $enableval; do
3345 if test "X$pkg" = "X$p"; then
3346 enable_shared=yes
6de9cd9a 3347 fi
96b8a615
AJ
3348 done
3349 IFS="$ac_save_ifs"
3350 ;;
3351esac
6de9cd9a 3352else
96b8a615
AJ
3353 enable_shared=yes
3354fi;
3355# Check whether --enable-static or --disable-static was given.
3356if test "${enable_static+set}" = set; then
3357 enableval="$enable_static"
3358 p=${PACKAGE-default}
3359case $enableval in
3360yes) enable_static=yes ;;
3361no) enable_static=no ;;
3362*)
3363 enable_static=no
3364 # Look at the argument we got. We use all the common list separators.
3365 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3366 for pkg in $enableval; do
3367 if test "X$pkg" = "X$p"; then
3368 enable_static=yes
3369 fi
3370 done
3371 IFS="$ac_save_ifs"
3372 ;;
3373esac
3374else
3375 enable_static=yes
3376fi;
3377# Check whether --enable-fast-install or --disable-fast-install was given.
3378if test "${enable_fast_install+set}" = set; then
3379 enableval="$enable_fast_install"
3380 p=${PACKAGE-default}
3381case $enableval in
3382yes) enable_fast_install=yes ;;
3383no) enable_fast_install=no ;;
3384*)
3385 enable_fast_install=no
3386 # Look at the argument we got. We use all the common list separators.
3387 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3388 for pkg in $enableval; do
3389 if test "X$pkg" = "X$p"; then
3390 enable_fast_install=yes
3391 fi
3392 done
3393 IFS="$ac_save_ifs"
3394 ;;
3395esac
3396else
3397 enable_fast_install=yes
3398fi;
6de9cd9a 3399
96b8a615
AJ
3400# Check whether --with-gnu-ld or --without-gnu-ld was given.
3401if test "${with_gnu_ld+set}" = set; then
3402 withval="$with_gnu_ld"
3403 test "$withval" = no || with_gnu_ld=yes
3404else
3405 with_gnu_ld=no
3406fi;
3407ac_prog=ld
3408if test "$GCC" = yes; then
3409 # Check if gcc -print-prog-name=ld gives a path.
3410 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
3411echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
3412 case $host in
3413 *-*-mingw*)
3414 # gcc leaves a trailing carriage return which upsets mingw
3415 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3416 *)
3417 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3418 esac
3419 case $ac_prog in
3420 # Accept absolute paths.
3421 [\\/]* | [A-Za-z]:[\\/]*)
3422 re_direlt='/[^/][^/]*/\.\./'
3423 # Canonicalize the path of ld
3424 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
3425 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3426 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
3427 done
3428 test -z "$LD" && LD="$ac_prog"
3429 ;;
3430 "")
3431 # If it fails, then pretend we aren't using GCC.
3432 ac_prog=ld
3433 ;;
3434 *)
3435 # If it is relative, then search for the first ld in PATH.
3436 with_gnu_ld=unknown
3437 ;;
3438 esac
3439elif test "$with_gnu_ld" = yes; then
3440 echo "$as_me:$LINENO: checking for GNU ld" >&5
3441echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3442else
3443 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3444echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3445fi
3446if test "${lt_cv_path_LD+set}" = set; then
3447 echo $ECHO_N "(cached) $ECHO_C" >&6
3448else
3449 if test -z "$LD"; then
3450 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
3451 for ac_dir in $PATH; do
3452 test -z "$ac_dir" && ac_dir=.
3453 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3454 lt_cv_path_LD="$ac_dir/$ac_prog"
3455 # Check to see if the program is GNU ld. I'd rather use --version,
3456 # but apparently some GNU ld's only accept -v.
3457 # Break only if it was the GNU/non-GNU ld that we prefer.
3458 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
3459 test "$with_gnu_ld" != no && break
3460 else
3461 test "$with_gnu_ld" != yes && break
3462 fi
3463 fi
3464 done
3465 IFS="$ac_save_ifs"
3466else
3467 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3468fi
3469fi
3470
3471LD="$lt_cv_path_LD"
3472if test -n "$LD"; then
3473 echo "$as_me:$LINENO: result: $LD" >&5
3474echo "${ECHO_T}$LD" >&6
3475else
3476 echo "$as_me:$LINENO: result: no" >&5
3477echo "${ECHO_T}no" >&6
3478fi
3479test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3480echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3481 { (exit 1); exit 1; }; }
3482echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3483echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3484if test "${lt_cv_prog_gnu_ld+set}" = set; then
3485 echo $ECHO_N "(cached) $ECHO_C" >&6
3486else
3487 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3488if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
3489 lt_cv_prog_gnu_ld=yes
3490else
3491 lt_cv_prog_gnu_ld=no
3492fi
3493fi
3494echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3495echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3496with_gnu_ld=$lt_cv_prog_gnu_ld
3497
3498
3499echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3500echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3501if test "${lt_cv_ld_reload_flag+set}" = set; then
3502 echo $ECHO_N "(cached) $ECHO_C" >&6
3503else
3504 lt_cv_ld_reload_flag='-r'
3505fi
3506echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3507echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3508reload_flag=$lt_cv_ld_reload_flag
3509test -n "$reload_flag" && reload_flag=" $reload_flag"
3510
3511echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3512echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3513if test "${lt_cv_path_NM+set}" = set; then
3514 echo $ECHO_N "(cached) $ECHO_C" >&6
3515else
3516 if test -n "$NM"; then
3517 # Let the user override the test.
3518 lt_cv_path_NM="$NM"
3519else
3520 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
3521 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3522 test -z "$ac_dir" && ac_dir=.
3523 tmp_nm=$ac_dir/${ac_tool_prefix}nm
3524 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
3525 # Check to see if the nm accepts a BSD-compat flag.
3526 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3527 # nm: unknown option "B" ignored
3528 # Tru64's nm complains that /dev/null is an invalid object file
3529 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
3530 lt_cv_path_NM="$tmp_nm -B"
3531 break
3532 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
3533 lt_cv_path_NM="$tmp_nm -p"
3534 break
3535 else
3536 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3537 continue # so that we can try to find one that supports BSD flags
3538 fi
3539 fi
3540 done
3541 IFS="$ac_save_ifs"
3542 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3543fi
3544fi
3545
3546NM="$lt_cv_path_NM"
3547echo "$as_me:$LINENO: result: $NM" >&5
3548echo "${ECHO_T}$NM" >&6
3549
3550echo "$as_me:$LINENO: checking whether ln -s works" >&5
3551echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3552LN_S=$as_ln_s
3553if test "$LN_S" = "ln -s"; then
3554 echo "$as_me:$LINENO: result: yes" >&5
3555echo "${ECHO_T}yes" >&6
3556else
3557 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3558echo "${ECHO_T}no, using $LN_S" >&6
3559fi
3560
3561echo "$as_me:$LINENO: checking how to recognise dependant libraries" >&5
3562echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6
3563if test "${lt_cv_deplibs_check_method+set}" = set; then
3564 echo $ECHO_N "(cached) $ECHO_C" >&6
3565else
3566 lt_cv_file_magic_cmd='$MAGIC_CMD'
3567lt_cv_file_magic_test_file=
3568lt_cv_deplibs_check_method='unknown'
3569# Need to set the preceding variable on all platforms that support
3570# interlibrary dependencies.
3571# 'none' -- dependencies not supported.
3572# `unknown' -- same as none, but documents that we really don't know.
3573# 'pass_all' -- all dependencies passed with no checks.
3574# 'test_compile' -- check by making test program.
3575# 'file_magic [regex]' -- check by looking for files in library path
3576# which responds to the $file_magic_cmd with a given egrep regex.
3577# If you have `file' or equivalent on your system and you're not sure
3578# whether `pass_all' will *always* work, you probably want this one.
3579
3580case $host_os in
3581aix*)
3582 lt_cv_deplibs_check_method=pass_all
3583 ;;
3584
3585beos*)
3586 lt_cv_deplibs_check_method=pass_all
3587 ;;
3588
3589bsdi4*)
3590 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3591 lt_cv_file_magic_cmd='/usr/bin/file -L'
3592 lt_cv_file_magic_test_file=/shlib/libc.so
3593 ;;
3594
3595cygwin* | mingw* |pw32*)
3596 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3597 lt_cv_file_magic_cmd='$OBJDUMP -f'
3598 ;;
3599
3600darwin* | rhapsody*)
3601 # this will be overwritten by pass_all, but leave it in just in case
3602 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
3603 lt_cv_file_magic_cmd='/usr/bin/file -L'
3604 case "$host_os" in
3605 rhapsody* | darwin1.012)
3606 lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
3607 ;;
3608 *) # Darwin 1.3 on
3609 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
3610 ;;
3611 esac
3612 lt_cv_deplibs_check_method=pass_all
3613 ;;
3614
3615freebsd* | kfreebsd*-gnu)
3616 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3617 case $host_cpu in
3618 i*86 )
3619 # Not sure whether the presence of OpenBSD here was a mistake.
3620 # Let's accept both of them until this is cleared up.
3621 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3622 lt_cv_file_magic_cmd=/usr/bin/file
3623 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3624 ;;
3625 esac
3626 else
3627 lt_cv_deplibs_check_method=pass_all
3628 fi
3629 ;;
3630
3631gnu*)
3632 lt_cv_deplibs_check_method=pass_all
3633 ;;
3634
3635hpux10.20*|hpux11*)
3636 case $host_cpu in
3637 hppa*)
3638 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3639 lt_cv_file_magic_cmd=/usr/bin/file
3640 lt_cv_file_magic_test_file=/usr/lib/libc.sl
3641 ;;
3642 ia64*)
3643 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3644 lt_cv_file_magic_cmd=/usr/bin/file
3645 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3646 ;;
3647 esac
3648 ;;
3649
3650irix5* | irix6*)
3651 case $host_os in
3652 irix5*)
3653 # this will be overridden with pass_all, but let us keep it just in case
3654 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
3655 ;;
3656 *)
3657 case $LD in
3658 *-32|*"-32 ") libmagic=32-bit;;
3659 *-n32|*"-n32 ") libmagic=N32;;
3660 *-64|*"-64 ") libmagic=64-bit;;
3661 *) libmagic=never-match;;
3662 esac
3663 # this will be overridden with pass_all, but let us keep it just in case
3664 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
3665 ;;
3666 esac
3667 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
3668 lt_cv_deplibs_check_method=pass_all
3669 ;;
3670
3671# This must be Linux ELF.
3672linux-gnu*)
3673 case $host_cpu in
3674 alpha* | mips* | hppa* | i*86 | powerpc* | sparc* | ia64* | sh* )
3675 lt_cv_deplibs_check_method=pass_all ;;
3676 *)
3677 # glibc up to 2.1.1 does not perform some relocations on ARM
3678 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
3679 esac
3680 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
3681 ;;
3682
3683netbsd* | knetbsd*-gnu)
3684 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3685 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
3686 else
3687 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
3688 fi
3689 ;;
3690
3691newsos6)
3692 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3693 lt_cv_file_magic_cmd=/usr/bin/file
3694 lt_cv_file_magic_test_file=/usr/lib/libnls.so
3695 ;;
3696
3697osf3* | osf4* | osf5*)
3698 # this will be overridden with pass_all, but let us keep it just in case
3699 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
3700 lt_cv_file_magic_test_file=/shlib/libc.so
3701 lt_cv_deplibs_check_method=pass_all
3702 ;;
3703
3704sco3.2v5*)
3705 lt_cv_deplibs_check_method=pass_all
3706 ;;
3707
3708solaris*)
3709 lt_cv_deplibs_check_method=pass_all
3710 lt_cv_file_magic_test_file=/lib/libc.so
3711 ;;
3712
3713sysv5uw[78]* | sysv4*uw2*)
3714 lt_cv_deplibs_check_method=pass_all
3715 ;;
3716
3717sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3718 case $host_vendor in
3719 ncr)
3720 lt_cv_deplibs_check_method=pass_all
3721 ;;
3722 motorola)
3723 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]'
3724 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3725 ;;
3726 esac
3727 ;;
3728esac
3729
3730fi
3731echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3732echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3733file_magic_cmd=$lt_cv_file_magic_cmd
3734deplibs_check_method=$lt_cv_deplibs_check_method
3735
3736
3737
3738
3739
3740# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
3741
3742# Only perform the check for file, if the check method requires it
3743case $deplibs_check_method in
3744file_magic*)
3745 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
3746 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
3747echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
3748if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
3749 echo $ECHO_N "(cached) $ECHO_C" >&6
3750else
3751 case $MAGIC_CMD in
3752 /*)
3753 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
3754 ;;
3755 ?:/*)
3756 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
3757 ;;
3758 *)
3759 ac_save_MAGIC_CMD="$MAGIC_CMD"
3760 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3761 ac_dummy="/usr/bin:$PATH"
3762 for ac_dir in $ac_dummy; do
3763 test -z "$ac_dir" && ac_dir=.
3764 if test -f $ac_dir/${ac_tool_prefix}file; then
3765 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
3766 if test -n "$file_magic_test_file"; then
3767 case $deplibs_check_method in
3768 "file_magic "*)
3769 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
3770 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3771 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3772 egrep "$file_magic_regex" > /dev/null; then
3773 :
3774 else
3775 cat <<EOF 1>&2
3776
3777*** Warning: the command libtool uses to detect shared libraries,
3778*** $file_magic_cmd, produces output that libtool cannot recognize.
3779*** The result is that libtool may fail to recognize shared libraries
3780*** as such. This will affect the creation of libtool libraries that
3781*** depend on shared libraries, but programs linked with such libtool
3782*** libraries will work regardless of this problem. Nevertheless, you
3783*** may want to report the problem to your system manager and/or to
3784*** bug-libtool@gnu.org
3785
3786EOF
3787 fi ;;
3788 esac
3789 fi
3790 break
3791 fi
3792 done
3793 IFS="$ac_save_ifs"
3794 MAGIC_CMD="$ac_save_MAGIC_CMD"
3795 ;;
3796esac
3797fi
3798
3799MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3800if test -n "$MAGIC_CMD"; then
3801 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
3802echo "${ECHO_T}$MAGIC_CMD" >&6
3803else
3804 echo "$as_me:$LINENO: result: no" >&5
3805echo "${ECHO_T}no" >&6
3806fi
3807
3808if test -z "$lt_cv_path_MAGIC_CMD"; then
3809 if test -n "$ac_tool_prefix"; then
3810 echo "$as_me:$LINENO: checking for file" >&5
3811echo $ECHO_N "checking for file... $ECHO_C" >&6
3812if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
3813 echo $ECHO_N "(cached) $ECHO_C" >&6
3814else
3815 case $MAGIC_CMD in
3816 /*)
3817 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
3818 ;;
3819 ?:/*)
3820 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
3821 ;;
3822 *)
3823 ac_save_MAGIC_CMD="$MAGIC_CMD"
3824 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3825 ac_dummy="/usr/bin:$PATH"
3826 for ac_dir in $ac_dummy; do
3827 test -z "$ac_dir" && ac_dir=.
3828 if test -f $ac_dir/file; then
3829 lt_cv_path_MAGIC_CMD="$ac_dir/file"
3830 if test -n "$file_magic_test_file"; then
3831 case $deplibs_check_method in
3832 "file_magic "*)
3833 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
3834 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3835 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3836 egrep "$file_magic_regex" > /dev/null; then
3837 :
3838 else
3839 cat <<EOF 1>&2
3840
3841*** Warning: the command libtool uses to detect shared libraries,
3842*** $file_magic_cmd, produces output that libtool cannot recognize.
3843*** The result is that libtool may fail to recognize shared libraries
3844*** as such. This will affect the creation of libtool libraries that
3845*** depend on shared libraries, but programs linked with such libtool
3846*** libraries will work regardless of this problem. Nevertheless, you
3847*** may want to report the problem to your system manager and/or to
3848*** bug-libtool@gnu.org
3849
3850EOF
3851 fi ;;
3852 esac
3853 fi
3854 break
3855 fi
3856 done
3857 IFS="$ac_save_ifs"
3858 MAGIC_CMD="$ac_save_MAGIC_CMD"
3859 ;;
3860esac
3861fi
6de9cd9a 3862
96b8a615
AJ
3863MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3864if test -n "$MAGIC_CMD"; then
3865 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
3866echo "${ECHO_T}$MAGIC_CMD" >&6
6de9cd9a 3867else
96b8a615
AJ
3868 echo "$as_me:$LINENO: result: no" >&5
3869echo "${ECHO_T}no" >&6
3870fi
6de9cd9a 3871
96b8a615
AJ
3872 else
3873 MAGIC_CMD=:
3874 fi
6de9cd9a 3875fi
6de9cd9a 3876
96b8a615
AJ
3877 fi
3878 ;;
3879esac
6de9cd9a 3880
96b8a615
AJ
3881if test -n "$ac_tool_prefix"; then
3882 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3883set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3884echo "$as_me:$LINENO: checking for $ac_word" >&5
3885echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3886if test "${ac_cv_prog_RANLIB+set}" = set; then
3887 echo $ECHO_N "(cached) $ECHO_C" >&6
6de9cd9a 3888else
96b8a615
AJ
3889 if test -n "$RANLIB"; then
3890 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3891else
3892as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3893for as_dir in $PATH
3894do
3895 IFS=$as_save_IFS
3896 test -z "$as_dir" && as_dir=.
3897 for ac_exec_ext in '' $ac_executable_extensions; do
3898 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3899 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3900 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3901 break 2
3902 fi
3903done
3904done
6de9cd9a 3905
96b8a615
AJ
3906fi
3907fi
3908RANLIB=$ac_cv_prog_RANLIB
3909if test -n "$RANLIB"; then
3910 echo "$as_me:$LINENO: result: $RANLIB" >&5
3911echo "${ECHO_T}$RANLIB" >&6
3912else
3913 echo "$as_me:$LINENO: result: no" >&5
3914echo "${ECHO_T}no" >&6
6de9cd9a
DN
3915fi
3916
96b8a615
AJ
3917fi
3918if test -z "$ac_cv_prog_RANLIB"; then
3919 ac_ct_RANLIB=$RANLIB
3920 # Extract the first word of "ranlib", so it can be a program name with args.
3921set dummy ranlib; ac_word=$2
3922echo "$as_me:$LINENO: checking for $ac_word" >&5
3923echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3924if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3925 echo $ECHO_N "(cached) $ECHO_C" >&6
3926else
3927 if test -n "$ac_ct_RANLIB"; then
3928 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3929else
3930as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3931for as_dir in $PATH
3932do
3933 IFS=$as_save_IFS
3934 test -z "$as_dir" && as_dir=.
3935 for ac_exec_ext in '' $ac_executable_extensions; do
3936 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3937 ac_cv_prog_ac_ct_RANLIB="ranlib"
3938 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3939 break 2
3940 fi
3941done
3942done
6de9cd9a 3943
96b8a615
AJ
3944 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3945fi
3946fi
3947ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3948if test -n "$ac_ct_RANLIB"; then
3949 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3950echo "${ECHO_T}$ac_ct_RANLIB" >&6
6de9cd9a 3951else
96b8a615
AJ
3952 echo "$as_me:$LINENO: result: no" >&5
3953echo "${ECHO_T}no" >&6
6de9cd9a 3954fi
6de9cd9a 3955
96b8a615
AJ
3956 RANLIB=$ac_ct_RANLIB
3957else
3958 RANLIB="$ac_cv_prog_RANLIB"
6de9cd9a
DN
3959fi
3960
96b8a615
AJ
3961if test -n "$ac_tool_prefix"; then
3962 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3963set dummy ${ac_tool_prefix}strip; ac_word=$2
3964echo "$as_me:$LINENO: checking for $ac_word" >&5
3965echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3966if test "${ac_cv_prog_STRIP+set}" = set; then
3967 echo $ECHO_N "(cached) $ECHO_C" >&6
6de9cd9a 3968else
96b8a615
AJ
3969 if test -n "$STRIP"; then
3970 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3971else
3972as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3973for as_dir in $PATH
3974do
3975 IFS=$as_save_IFS
3976 test -z "$as_dir" && as_dir=.
3977 for ac_exec_ext in '' $ac_executable_extensions; do
3978 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3979 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3980 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3981 break 2
3982 fi
3983done
3984done
6de9cd9a 3985
96b8a615
AJ
3986fi
3987fi
3988STRIP=$ac_cv_prog_STRIP
3989if test -n "$STRIP"; then
3990 echo "$as_me:$LINENO: result: $STRIP" >&5
3991echo "${ECHO_T}$STRIP" >&6
6de9cd9a 3992else
96b8a615
AJ
3993 echo "$as_me:$LINENO: result: no" >&5
3994echo "${ECHO_T}no" >&6
3995fi
6de9cd9a 3996
6de9cd9a 3997fi
96b8a615
AJ
3998if test -z "$ac_cv_prog_STRIP"; then
3999 ac_ct_STRIP=$STRIP
4000 # Extract the first word of "strip", so it can be a program name with args.
4001set dummy strip; ac_word=$2
4002echo "$as_me:$LINENO: checking for $ac_word" >&5
4003echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4004if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4005 echo $ECHO_N "(cached) $ECHO_C" >&6
4006else
4007 if test -n "$ac_ct_STRIP"; then
4008 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4009else
4010as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4011for as_dir in $PATH
4012do
4013 IFS=$as_save_IFS
4014 test -z "$as_dir" && as_dir=.
4015 for ac_exec_ext in '' $ac_executable_extensions; do
4016 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4017 ac_cv_prog_ac_ct_STRIP="strip"
4018 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4019 break 2
4020 fi
4021done
4022done
4023
4024 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
6de9cd9a
DN
4025fi
4026fi
96b8a615
AJ
4027ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4028if test -n "$ac_ct_STRIP"; then
4029 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4030echo "${ECHO_T}$ac_ct_STRIP" >&6
4031else
4032 echo "$as_me:$LINENO: result: no" >&5
4033echo "${ECHO_T}no" >&6
6de9cd9a 4034fi
6de9cd9a 4035
96b8a615
AJ
4036 STRIP=$ac_ct_STRIP
4037else
4038 STRIP="$ac_cv_prog_STRIP"
6de9cd9a
DN
4039fi
4040
6de9cd9a 4041
96b8a615
AJ
4042# Check for any special flags to pass to ltconfig.
4043libtool_flags="--cache-file=$cache_file"
4044test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
4045test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
4046test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
4047test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
4048test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
6de9cd9a
DN
4049
4050
96b8a615
AJ
4051# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4052if test "${enable_libtool_lock+set}" = set; then
4053 enableval="$enable_libtool_lock"
6de9cd9a 4054
96b8a615
AJ
4055fi;
4056test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
4057test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
6de9cd9a
DN
4058
4059
96b8a615
AJ
4060# Check whether --with-pic or --without-pic was given.
4061if test "${with_pic+set}" = set; then
4062 withval="$with_pic"
4063 pic_mode="$withval"
6de9cd9a 4064else
96b8a615
AJ
4065 pic_mode=default
4066fi;
4067test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
4068test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
6de9cd9a 4069
96b8a615
AJ
4070# Some flags need to be propagated to the compiler or linker for good
4071# libtool support.
4072case $host in
4073*-*-irix6*)
4074 # Find out which ABI we are using.
d49ec2d1 4075 echo '#line 4075 "configure"' > conftest.$ac_ext
96b8a615
AJ
4076 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4077 (eval $ac_compile) 2>&5
6de9cd9a
DN
4078 ac_status=$?
4079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
96b8a615
AJ
4080 (exit $ac_status); }; then
4081 if test "$lt_cv_prog_gnu_ld" = yes; then
4082 case `/usr/bin/file conftest.$ac_objext` in
4083 *32-bit*)
4084 LD="${LD-ld} -melf32bsmip"
4085 ;;
4086 *N32*)
4087 LD="${LD-ld} -melf32bmipn32"
4088 ;;
4089 *64-bit*)
4090 LD="${LD-ld} -melf64bmip"
4091 ;;
4092 esac
4093 else
4094 case `/usr/bin/file conftest.$ac_objext` in
4095 *32-bit*)
4096 LD="${LD-ld} -32"
4097 ;;
4098 *N32*)
4099 LD="${LD-ld} -n32"
4100 ;;
4101 *64-bit*)
4102 LD="${LD-ld} -64"
4103 ;;
4104 esac
4105 fi
4106 fi
4107 rm -rf conftest*
4108 ;;
6de9cd9a 4109
96b8a615
AJ
4110ia64-*-hpux*)
4111 # Find out which ABI we are using.
4112 echo 'int i;' > conftest.$ac_ext
4113 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4114 (eval $ac_compile) 2>&5
6de9cd9a
DN
4115 ac_status=$?
4116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
96b8a615
AJ
4117 (exit $ac_status); }; then
4118 case "`/usr/bin/file conftest.o`" in
4119 *ELF-32*)
4120 HPUX_IA64_MODE="32"
4121 ;;
4122 *ELF-64*)
4123 HPUX_IA64_MODE="64"
4124 ;;
4125 esac
4126 fi
4127 rm -rf conftest*
4128 ;;
6de9cd9a 4129
96b8a615
AJ
4130x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4131 # Find out which ABI we are using.
4132 echo 'int i;' > conftest.$ac_ext
4133 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4134 (eval $ac_compile) 2>&5
6de9cd9a 4135 ac_status=$?
6de9cd9a 4136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
96b8a615
AJ
4137 (exit $ac_status); }; then
4138 case "`/usr/bin/file conftest.o`" in
4139 *32-bit*)
4140 case $host in
4141 x86_64-*linux*)
4142 LD="${LD-ld} -m elf_i386"
4143 ;;
4144 ppc64-*linux*|powerpc64-*linux*)
4145 LD="${LD-ld} -m elf32ppclinux"
4146 ;;
4147 s390x-*linux*)
4148 LD="${LD-ld} -m elf_s390"
4149 ;;
4150 sparc64-*linux*)
4151 LD="${LD-ld} -m elf32_sparc"
4152 ;;
4153 esac
4154 ;;
4155 *64-bit*)
4156 case $host in
4157 x86_64-*linux*)
4158 LD="${LD-ld} -m elf_x86_64"
4159 ;;
4160 ppc*-*linux*|powerpc*-*linux*)
4161 LD="${LD-ld} -m elf64ppc"
4162 ;;
4163 s390*-*linux*)
4164 LD="${LD-ld} -m elf64_s390"
4165 ;;
4166 sparc*-*linux*)
4167 LD="${LD-ld} -m elf64_sparc"
4168 ;;
4169 esac
4170 ;;
4171 esac
6de9cd9a 4172 fi
96b8a615
AJ
4173 rm -rf conftest*
4174 ;;
6de9cd9a 4175
96b8a615
AJ
4176*-*-sco3.2v5*)
4177 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4178 SAVE_CFLAGS="$CFLAGS"
4179 CFLAGS="$CFLAGS -belf"
4180 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4181echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4182if test "${lt_cv_cc_needs_belf+set}" = set; then
6de9cd9a
DN
4183 echo $ECHO_N "(cached) $ECHO_C" >&6
4184else
6de9cd9a 4185
6de9cd9a 4186
96b8a615
AJ
4187 ac_ext=c
4188ac_cpp='$CPP $CPPFLAGS'
4189ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4190ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4191ac_compiler_gnu=$ac_cv_c_compiler_gnu
6de9cd9a 4192
d49ec2d1
KC
4193 if test x$gcc_no_link = xyes; then
4194 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
4195echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
4196 { (exit 1); exit 1; }; }
4197fi
4198cat >conftest.$ac_ext <<_ACEOF
6de9cd9a
DN
4199/* confdefs.h. */
4200_ACEOF
4201cat confdefs.h >>conftest.$ac_ext
4202cat >>conftest.$ac_ext <<_ACEOF
4203/* end confdefs.h. */
6de9cd9a
DN
4204
4205int
4206main ()
4207{
96b8a615 4208
6de9cd9a
DN
4209 ;
4210 return 0;
4211}
4212_ACEOF
4213rm -f conftest.$ac_objext conftest$ac_exeext
4214if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4215 (eval $ac_link) 2>conftest.er1
4216 ac_status=$?
4217 grep -v '^ *+' conftest.er1 >conftest.err
4218 rm -f conftest.er1
4219 cat conftest.err >&5
4220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4221 (exit $ac_status); } &&
bf4d99cf
TS
4222 { ac_try='test -z "$ac_c_werror_flag"
4223 || test ! -s conftest.err'
6de9cd9a
DN
4224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4225 (eval $ac_try) 2>&5
4226 ac_status=$?
4227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4228 (exit $ac_status); }; } &&
4229 { ac_try='test -s conftest$ac_exeext'
4230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4231 (eval $ac_try) 2>&5
4232 ac_status=$?
4233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4234 (exit $ac_status); }; }; then
96b8a615 4235 lt_cv_cc_needs_belf=yes
6de9cd9a
DN
4236else
4237 echo "$as_me: failed program was:" >&5
4238sed 's/^/| /' conftest.$ac_ext >&5
4239
96b8a615 4240lt_cv_cc_needs_belf=no
6de9cd9a
DN
4241fi
4242rm -f conftest.err conftest.$ac_objext \
4243 conftest$ac_exeext conftest.$ac_ext
96b8a615
AJ
4244 ac_ext=c
4245ac_cpp='$CPP $CPPFLAGS'
4246ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4247ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4248ac_compiler_gnu=$ac_cv_c_compiler_gnu
4249
6de9cd9a 4250fi
96b8a615
AJ
4251echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4252echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4253 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4254 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4255 CFLAGS="$SAVE_CFLAGS"
4256 fi
4257 ;;
4258
4259
4260esac
4261
4262
4263# Save cache, so that ltconfig can load it
4264cat >confcache <<\_ACEOF
4265# This file is a shell script that caches the results of configure
4266# tests run on this system so they can be shared between configure
4267# scripts and configure runs, see configure's option --config-cache.
4268# It is not useful on other systems. If it contains results you don't
4269# want to keep, you may remove or edit it.
4270#
4271# config.status only pays attention to the cache file if you give it
4272# the --recheck option to rerun configure.
4273#
4274# `ac_cv_env_foo' variables (set or unset) will be overridden when
4275# loading this file, other *unset* `ac_cv_foo' will be assigned the
4276# following values.
4277
6de9cd9a
DN
4278_ACEOF
4279
96b8a615
AJ
4280# The following way of writing the cache mishandles newlines in values,
4281# but we know of no workaround that is simple, portable, and efficient.
4282# So, don't put newlines in cache variables' values.
4283# Ultrix sh set writes to stderr and can't be redirected directly,
4284# and sets the high bit in the cache file unless we assign to the vars.
4285{
4286 (set) 2>&1 |
4287 case `(ac_space=' '; set | grep ac_space) 2>&1` in
4288 *ac_space=\ *)
4289 # `set' does not quote correctly, so add quotes (double-quote
4290 # substitution turns \\\\ into \\, and sed turns \\ into \).
4291 sed -n \
4292 "s/'/'\\\\''/g;
4293 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
4294 ;;
4295 *)
4296 # `set' quotes correctly as required by POSIX, so do not add quotes.
4297 sed -n \
4298 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
4299 ;;
4300 esac;
4301} |
4302 sed '
4303 t clear
4304 : clear
4305 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
4306 t end
4307 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4308 : end' >>confcache
4309if diff $cache_file confcache >/dev/null 2>&1; then :; else
4310 if test -w $cache_file; then
4311 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
4312 cat confcache >$cache_file
4313 else
4314 echo "not updating unwritable cache $cache_file"
4315 fi
6de9cd9a 4316fi
96b8a615 4317rm -f confcache
6de9cd9a 4318
96b8a615
AJ
4319# Actually configure libtool. ac_aux_dir is where install-sh is found.
4320AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
4321MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
4322LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
4323AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
4324objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
4325deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
4326${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
4327$libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
4328|| { { echo "$as_me:$LINENO: error: libtool configure failed" >&5
4329echo "$as_me: error: libtool configure failed" >&2;}
4330 { (exit 1); exit 1; }; }
4331
4332# Reload cache, that may have been modified by ltconfig
4333if test -r "$cache_file"; then
4334 # Some versions of bash will fail to source /dev/null (special
4335 # files actually), so we avoid doing that.
4336 if test -f "$cache_file"; then
4337 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
4338echo "$as_me: loading cache $cache_file" >&6;}
4339 case $cache_file in
4340 [\\/]* | ?:[\\/]* ) . $cache_file;;
4341 *) . ./$cache_file;;
4342 esac
4343 fi
4344else
4345 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
4346echo "$as_me: creating cache $cache_file" >&6;}
4347 >$cache_file
4348fi
6de9cd9a 4349
6de9cd9a 4350
96b8a615
AJ
4351# This can be used to rebuild libtool when needed
4352LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
6de9cd9a 4353
96b8a615
AJ
4354# Always use our own libtool.
4355LIBTOOL='$(SHELL) $(top_builddir)/libtool'
6de9cd9a 4356
96b8a615
AJ
4357# Redirect the config.log output again, so that the ltconfig log is not
4358# clobbered by the next message.
4359exec 5>>./config.log
6de9cd9a 4360
6de9cd9a 4361
6de9cd9a 4362
6de9cd9a 4363
6de9cd9a 4364
6de9cd9a 4365
6de9cd9a 4366
6de9cd9a 4367
96b8a615
AJ
4368#AC_MSG_NOTICE([====== Finished libtool configuration]) ; sleep 10
4369
4370# We need gfortran to compile parts of the library
4371# We can't use AC_PROG_F77 because it expects a fully working gfortran.
4372#AC_PROG_F77(gfortran)
4373F77="$GFORTRAN"
4374ac_ext=f
4375ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4376ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4377ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4378if test -n "$ac_tool_prefix"; then
4379 for ac_prog in gfortran
4380 do
4381 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4382set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4383echo "$as_me:$LINENO: checking for $ac_word" >&5
4384echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4385if test "${ac_cv_prog_F77+set}" = set; then
4386 echo $ECHO_N "(cached) $ECHO_C" >&6
6de9cd9a 4387else
96b8a615
AJ
4388 if test -n "$F77"; then
4389 ac_cv_prog_F77="$F77" # Let the user override the test.
4390else
4391as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4392for as_dir in $PATH
4393do
4394 IFS=$as_save_IFS
4395 test -z "$as_dir" && as_dir=.
4396 for ac_exec_ext in '' $ac_executable_extensions; do
4397 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4398 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
4399 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4400 break 2
4401 fi
4402done
4403done
6de9cd9a 4404
6de9cd9a 4405fi
6de9cd9a 4406fi
96b8a615
AJ
4407F77=$ac_cv_prog_F77
4408if test -n "$F77"; then
4409 echo "$as_me:$LINENO: result: $F77" >&5
4410echo "${ECHO_T}$F77" >&6
4411else
4412 echo "$as_me:$LINENO: result: no" >&5
4413echo "${ECHO_T}no" >&6
6de9cd9a 4414fi
6de9cd9a 4415
96b8a615
AJ
4416 test -n "$F77" && break
4417 done
4418fi
4419if test -z "$F77"; then
4420 ac_ct_F77=$F77
4421 for ac_prog in gfortran
4422do
4423 # Extract the first word of "$ac_prog", so it can be a program name with args.
4424set dummy $ac_prog; ac_word=$2
4425echo "$as_me:$LINENO: checking for $ac_word" >&5
4426echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4427if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
4428 echo $ECHO_N "(cached) $ECHO_C" >&6
4429else
4430 if test -n "$ac_ct_F77"; then
4431 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
4432else
4433as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4434for as_dir in $PATH
4435do
4436 IFS=$as_save_IFS
4437 test -z "$as_dir" && as_dir=.
4438 for ac_exec_ext in '' $ac_executable_extensions; do
4439 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4440 ac_cv_prog_ac_ct_F77="$ac_prog"
4441 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4442 break 2
4443 fi
4444done
4445done
6de9cd9a
DN
4446
4447fi
96b8a615
AJ
4448fi
4449ac_ct_F77=$ac_cv_prog_ac_ct_F77
4450if test -n "$ac_ct_F77"; then
4451 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
4452echo "${ECHO_T}$ac_ct_F77" >&6
4453else
4454 echo "$as_me:$LINENO: result: no" >&5
4455echo "${ECHO_T}no" >&6
4456fi
4457
4458 test -n "$ac_ct_F77" && break
4459done
4460
4461 F77=$ac_ct_F77
4462fi
4463
4464
4465# Provide some information about the compiler.
d49ec2d1 4466echo "$as_me:4466:" \
96b8a615
AJ
4467 "checking for Fortran 77 compiler version" >&5
4468ac_compiler=`set X $ac_compile; echo $2`
4469{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4470 (eval $ac_compiler --version </dev/null >&5) 2>&5
4471 ac_status=$?
4472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4473 (exit $ac_status); }
4474{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4475 (eval $ac_compiler -v </dev/null >&5) 2>&5
4476 ac_status=$?
4477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4478 (exit $ac_status); }
4479{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4480 (eval $ac_compiler -V </dev/null >&5) 2>&5
4481 ac_status=$?
4482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4483 (exit $ac_status); }
4484rm -f a.out
6de9cd9a 4485
96b8a615
AJ
4486# If we don't use `.F' as extension, the preprocessor is not run on the
4487# input file. (Note that this only needs to work for GNU compilers.)
4488ac_save_ext=$ac_ext
4489ac_ext=F
4490echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
4491echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
4492if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6de9cd9a
DN
4493 echo $ECHO_N "(cached) $ECHO_C" >&6
4494else
4495 cat >conftest.$ac_ext <<_ACEOF
96b8a615
AJ
4496 program main
4497#ifndef __GNUC__
4498 choke me
4499#endif
4500
4501 end
6de9cd9a
DN
4502_ACEOF
4503rm -f conftest.$ac_objext
4504if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4505 (eval $ac_compile) 2>conftest.er1
4506 ac_status=$?
4507 grep -v '^ *+' conftest.er1 >conftest.err
4508 rm -f conftest.er1
4509 cat conftest.err >&5
4510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4511 (exit $ac_status); } &&
bf4d99cf
TS
4512 { ac_try='test -z "$ac_f77_werror_flag"
4513 || test ! -s conftest.err'
6de9cd9a
DN
4514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4515 (eval $ac_try) 2>&5
4516 ac_status=$?
4517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4518 (exit $ac_status); }; } &&
4519 { ac_try='test -s conftest.$ac_objext'
4520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4521 (eval $ac_try) 2>&5
4522 ac_status=$?
4523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4524 (exit $ac_status); }; }; then
96b8a615 4525 ac_compiler_gnu=yes
6de9cd9a
DN
4526else
4527 echo "$as_me: failed program was:" >&5
4528sed 's/^/| /' conftest.$ac_ext >&5
4529
96b8a615 4530ac_compiler_gnu=no
6de9cd9a
DN
4531fi
4532rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
96b8a615 4533ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6de9cd9a
DN
4534
4535fi
96b8a615
AJ
4536echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
4537echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
4538ac_ext=$ac_save_ext
4539ac_test_FFLAGS=${FFLAGS+set}
4540ac_save_FFLAGS=$FFLAGS
4541FFLAGS=
4542echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
4543echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
4544if test "${ac_cv_prog_f77_g+set}" = set; then
6de9cd9a
DN
4545 echo $ECHO_N "(cached) $ECHO_C" >&6
4546else
96b8a615
AJ
4547 FFLAGS=-g
4548cat >conftest.$ac_ext <<_ACEOF
4549 program main
6de9cd9a 4550
96b8a615 4551 end
6de9cd9a
DN
4552_ACEOF
4553rm -f conftest.$ac_objext
4554if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4555 (eval $ac_compile) 2>conftest.er1
4556 ac_status=$?
4557 grep -v '^ *+' conftest.er1 >conftest.err
4558 rm -f conftest.er1
4559 cat conftest.err >&5
4560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4561 (exit $ac_status); } &&
bf4d99cf
TS
4562 { ac_try='test -z "$ac_f77_werror_flag"
4563 || test ! -s conftest.err'
6de9cd9a
DN
4564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4565 (eval $ac_try) 2>&5
4566 ac_status=$?
4567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4568 (exit $ac_status); }; } &&
4569 { ac_try='test -s conftest.$ac_objext'
4570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4571 (eval $ac_try) 2>&5
4572 ac_status=$?
4573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4574 (exit $ac_status); }; }; then
96b8a615 4575 ac_cv_prog_f77_g=yes
6de9cd9a
DN
4576else
4577 echo "$as_me: failed program was:" >&5
4578sed 's/^/| /' conftest.$ac_ext >&5
4579
96b8a615 4580ac_cv_prog_f77_g=no
6de9cd9a
DN
4581fi
4582rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4583
6de9cd9a 4584fi
96b8a615
AJ
4585echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
4586echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
4587if test "$ac_test_FFLAGS" = set; then
4588 FFLAGS=$ac_save_FFLAGS
4589elif test $ac_cv_prog_f77_g = yes; then
4590 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
4591 FFLAGS="-g -O2"
4592 else
4593 FFLAGS="-g"
4594 fi
4595else
4596 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
4597 FFLAGS="-O2"
4598 else
4599 FFLAGS=
4600 fi
6de9cd9a
DN
4601fi
4602
96b8a615
AJ
4603G77=`test $ac_compiler_gnu = yes && echo yes`
4604ac_ext=c
4605ac_cpp='$CPP $CPPFLAGS'
4606ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4607ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4608ac_compiler_gnu=$ac_cv_c_compiler_gnu
6de9cd9a 4609
96b8a615 4610FFLAGS="$FFLAGS -Wall -fno-repack-arrays -fno-underscoring"
6de9cd9a 4611
9cdc381b
BD
4612# Check whether --enable-largefile or --disable-largefile was given.
4613if test "${enable_largefile+set}" = set; then
4614 enableval="$enable_largefile"
4615
4616fi;
4617if test "$enable_largefile" != no; then
4618
4619 echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
4620echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
4621if test "${ac_cv_sys_largefile_CC+set}" = set; then
4622 echo $ECHO_N "(cached) $ECHO_C" >&6
4623else
4624 ac_cv_sys_largefile_CC=no
4625 if test "$GCC" != yes; then
4626 ac_save_CC=$CC
4627 while :; do
4628 # IRIX 6.2 and later do not support large files by default,
4629 # so use the C compiler's -n32 option if that helps.
4630 cat >conftest.$ac_ext <<_ACEOF
4631/* confdefs.h. */
4632_ACEOF
4633cat confdefs.h >>conftest.$ac_ext
4634cat >>conftest.$ac_ext <<_ACEOF
4635/* end confdefs.h. */
4636#include <sys/types.h>
4637 /* Check that off_t can represent 2**63 - 1 correctly.
4638 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4639 since some C++ compilers masquerading as C compilers
4640 incorrectly reject 9223372036854775807. */
4641#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4642 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4643 && LARGE_OFF_T % 2147483647 == 1)
4644 ? 1 : -1];
4645int
4646main ()
4647{
4648
4649 ;
4650 return 0;
4651}
4652_ACEOF
4653 rm -f conftest.$ac_objext
4654if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4655 (eval $ac_compile) 2>conftest.er1
4656 ac_status=$?
4657 grep -v '^ *+' conftest.er1 >conftest.err
4658 rm -f conftest.er1
4659 cat conftest.err >&5
4660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4661 (exit $ac_status); } &&
bf4d99cf
TS
4662 { ac_try='test -z "$ac_c_werror_flag"
4663 || test ! -s conftest.err'
9cdc381b
BD
4664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4665 (eval $ac_try) 2>&5
4666 ac_status=$?
4667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4668 (exit $ac_status); }; } &&
4669 { ac_try='test -s conftest.$ac_objext'
4670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4671 (eval $ac_try) 2>&5
4672 ac_status=$?
4673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4674 (exit $ac_status); }; }; then
4675 break
4676else
4677 echo "$as_me: failed program was:" >&5
4678sed 's/^/| /' conftest.$ac_ext >&5
4679
4680fi
4681rm -f conftest.err conftest.$ac_objext
4682 CC="$CC -n32"
4683 rm -f conftest.$ac_objext
4684if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4685 (eval $ac_compile) 2>conftest.er1
4686 ac_status=$?
4687 grep -v '^ *+' conftest.er1 >conftest.err
4688 rm -f conftest.er1
4689 cat conftest.err >&5
4690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4691 (exit $ac_status); } &&
bf4d99cf
TS
4692 { ac_try='test -z "$ac_c_werror_flag"
4693 || test ! -s conftest.err'
9cdc381b
BD
4694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4695 (eval $ac_try) 2>&5
4696 ac_status=$?
4697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4698 (exit $ac_status); }; } &&
4699 { ac_try='test -s conftest.$ac_objext'
4700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4701 (eval $ac_try) 2>&5
4702 ac_status=$?
4703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4704 (exit $ac_status); }; }; then
4705 ac_cv_sys_largefile_CC=' -n32'; break
4706else
4707 echo "$as_me: failed program was:" >&5
4708sed 's/^/| /' conftest.$ac_ext >&5
4709
4710fi
4711rm -f conftest.err conftest.$ac_objext
4712 break
4713 done
4714 CC=$ac_save_CC
4715 rm -f conftest.$ac_ext
4716 fi
4717fi
4718echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
4719echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
4720 if test "$ac_cv_sys_largefile_CC" != no; then
4721 CC=$CC$ac_cv_sys_largefile_CC
4722 fi
4723
4724 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4725echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
4726if test "${ac_cv_sys_file_offset_bits+set}" = set; then
4727 echo $ECHO_N "(cached) $ECHO_C" >&6
4728else
4729 while :; do
4730 ac_cv_sys_file_offset_bits=no
4731 cat >conftest.$ac_ext <<_ACEOF
4732/* confdefs.h. */
4733_ACEOF
4734cat confdefs.h >>conftest.$ac_ext
4735cat >>conftest.$ac_ext <<_ACEOF
4736/* end confdefs.h. */
4737#include <sys/types.h>
4738 /* Check that off_t can represent 2**63 - 1 correctly.
4739 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4740 since some C++ compilers masquerading as C compilers
4741 incorrectly reject 9223372036854775807. */
4742#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4743 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4744 && LARGE_OFF_T % 2147483647 == 1)
4745 ? 1 : -1];
4746int
4747main ()
4748{
4749
4750 ;
4751 return 0;
4752}
4753_ACEOF
4754rm -f conftest.$ac_objext
4755if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4756 (eval $ac_compile) 2>conftest.er1
4757 ac_status=$?
4758 grep -v '^ *+' conftest.er1 >conftest.err
4759 rm -f conftest.er1
4760 cat conftest.err >&5
4761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4762 (exit $ac_status); } &&
bf4d99cf
TS
4763 { ac_try='test -z "$ac_c_werror_flag"
4764 || test ! -s conftest.err'
9cdc381b
BD
4765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4766 (eval $ac_try) 2>&5
4767 ac_status=$?
4768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4769 (exit $ac_status); }; } &&
4770 { ac_try='test -s conftest.$ac_objext'
4771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4772 (eval $ac_try) 2>&5
4773 ac_status=$?
4774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4775 (exit $ac_status); }; }; then
4776 break
4777else
4778 echo "$as_me: failed program was:" >&5
4779sed 's/^/| /' conftest.$ac_ext >&5
4780
4781fi
4782rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4783 cat >conftest.$ac_ext <<_ACEOF
4784/* confdefs.h. */
4785_ACEOF
4786cat confdefs.h >>conftest.$ac_ext
4787cat >>conftest.$ac_ext <<_ACEOF
4788/* end confdefs.h. */
4789#define _FILE_OFFSET_BITS 64
4790#include <sys/types.h>
4791 /* Check that off_t can represent 2**63 - 1 correctly.
4792 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4793 since some C++ compilers masquerading as C compilers
4794 incorrectly reject 9223372036854775807. */
4795#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4796 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4797 && LARGE_OFF_T % 2147483647 == 1)
4798 ? 1 : -1];
4799int
4800main ()
4801{
4802
4803 ;
4804 return 0;
4805}
4806_ACEOF
4807rm -f conftest.$ac_objext
4808if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4809 (eval $ac_compile) 2>conftest.er1
4810 ac_status=$?
4811 grep -v '^ *+' conftest.er1 >conftest.err
4812 rm -f conftest.er1
4813 cat conftest.err >&5
4814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4815 (exit $ac_status); } &&
bf4d99cf
TS
4816 { ac_try='test -z "$ac_c_werror_flag"
4817 || test ! -s conftest.err'
9cdc381b
BD
4818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4819 (eval $ac_try) 2>&5
4820 ac_status=$?
4821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4822 (exit $ac_status); }; } &&
4823 { ac_try='test -s conftest.$ac_objext'
4824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4825 (eval $ac_try) 2>&5
4826 ac_status=$?
4827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4828 (exit $ac_status); }; }; then
4829 ac_cv_sys_file_offset_bits=64; break
4830else
4831 echo "$as_me: failed program was:" >&5
4832sed 's/^/| /' conftest.$ac_ext >&5
4833
4834fi
4835rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4836 break
4837done
4838fi
4839echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
4840echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
4841if test "$ac_cv_sys_file_offset_bits" != no; then
4842
4843cat >>confdefs.h <<_ACEOF
4844#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4845_ACEOF
4846
4847fi
4848rm -f conftest*
4849 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
4850echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
4851if test "${ac_cv_sys_large_files+set}" = set; then
4852 echo $ECHO_N "(cached) $ECHO_C" >&6
4853else
4854 while :; do
4855 ac_cv_sys_large_files=no
4856 cat >conftest.$ac_ext <<_ACEOF
4857/* confdefs.h. */
4858_ACEOF
4859cat confdefs.h >>conftest.$ac_ext
4860cat >>conftest.$ac_ext <<_ACEOF
4861/* end confdefs.h. */
4862#include <sys/types.h>
4863 /* Check that off_t can represent 2**63 - 1 correctly.
4864 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4865 since some C++ compilers masquerading as C compilers
4866 incorrectly reject 9223372036854775807. */
4867#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4868 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4869 && LARGE_OFF_T % 2147483647 == 1)
4870 ? 1 : -1];
4871int
4872main ()
4873{
4874
4875 ;
4876 return 0;
4877}
4878_ACEOF
4879rm -f conftest.$ac_objext
4880if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4881 (eval $ac_compile) 2>conftest.er1
4882 ac_status=$?
4883 grep -v '^ *+' conftest.er1 >conftest.err
4884 rm -f conftest.er1
4885 cat conftest.err >&5
4886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4887 (exit $ac_status); } &&
bf4d99cf
TS
4888 { ac_try='test -z "$ac_c_werror_flag"
4889 || test ! -s conftest.err'
9cdc381b
BD
4890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4891 (eval $ac_try) 2>&5
4892 ac_status=$?
4893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4894 (exit $ac_status); }; } &&
4895 { ac_try='test -s conftest.$ac_objext'
4896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4897 (eval $ac_try) 2>&5
4898 ac_status=$?
4899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4900 (exit $ac_status); }; }; then
4901 break
4902else
4903 echo "$as_me: failed program was:" >&5
4904sed 's/^/| /' conftest.$ac_ext >&5
4905
4906fi
4907rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4908 cat >conftest.$ac_ext <<_ACEOF
4909/* confdefs.h. */
4910_ACEOF
4911cat confdefs.h >>conftest.$ac_ext
4912cat >>conftest.$ac_ext <<_ACEOF
4913/* end confdefs.h. */
4914#define _LARGE_FILES 1
4915#include <sys/types.h>
4916 /* Check that off_t can represent 2**63 - 1 correctly.
4917 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4918 since some C++ compilers masquerading as C compilers
4919 incorrectly reject 9223372036854775807. */
4920#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4921 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4922 && LARGE_OFF_T % 2147483647 == 1)
4923 ? 1 : -1];
4924int
4925main ()
4926{
4927
4928 ;
4929 return 0;
4930}
4931_ACEOF
4932rm -f conftest.$ac_objext
4933if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4934 (eval $ac_compile) 2>conftest.er1
4935 ac_status=$?
4936 grep -v '^ *+' conftest.er1 >conftest.err
4937 rm -f conftest.er1
4938 cat conftest.err >&5
4939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4940 (exit $ac_status); } &&
bf4d99cf
TS
4941 { ac_try='test -z "$ac_c_werror_flag"
4942 || test ! -s conftest.err'
9cdc381b
BD
4943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4944 (eval $ac_try) 2>&5
4945 ac_status=$?
4946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4947 (exit $ac_status); }; } &&
4948 { ac_try='test -s conftest.$ac_objext'
4949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4950 (eval $ac_try) 2>&5
4951 ac_status=$?
4952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4953 (exit $ac_status); }; }; then
4954 ac_cv_sys_large_files=1; break
4955else
4956 echo "$as_me: failed program was:" >&5
4957sed 's/^/| /' conftest.$ac_ext >&5
4958
4959fi
4960rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4961 break
4962done
4963fi
4964echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
4965echo "${ECHO_T}$ac_cv_sys_large_files" >&6
4966if test "$ac_cv_sys_large_files" != no; then
4967
4968cat >>confdefs.h <<_ACEOF
4969#define _LARGE_FILES $ac_cv_sys_large_files
4970_ACEOF
4971
4972fi
4973rm -f conftest*
4974fi
4975
d49ec2d1
KC
4976if test x$gcc_no_link = xyes; then
4977 if test "x${ac_cv_func_mmap_fixed_mapped+set}" != xset; then
4978 ac_cv_func_mmap_fixed_mapped=no
4979 fi
4980fi
4981if test "x${ac_cv_func_mmap_fixed_mapped+set}" != xset; then
4982 ac_ext=c
96b8a615
AJ
4983ac_cpp='$CPP $CPPFLAGS'
4984ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4985ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4986ac_compiler_gnu=$ac_cv_c_compiler_gnu
4987echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4988echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
4989# On Suns, sometimes $CPP names a directory.
4990if test -n "$CPP" && test -d "$CPP"; then
4991 CPP=
6de9cd9a 4992fi
96b8a615
AJ
4993if test -z "$CPP"; then
4994 if test "${ac_cv_prog_CPP+set}" = set; then
4995 echo $ECHO_N "(cached) $ECHO_C" >&6
6de9cd9a 4996else
96b8a615
AJ
4997 # Double quotes because CPP needs to be expanded
4998 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4999 do
5000 ac_preproc_ok=false
5001for ac_c_preproc_warn_flag in '' yes
5002do
5003 # Use a header file that comes with gcc, so configuring glibc
5004 # with a fresh cross-compiler works.
5005 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5006 # <limits.h> exists even on freestanding compilers.
5007 # On the NeXT, cc -E runs the code through the compiler's parser,
5008 # not just through cpp. "Syntax error" is here to catch this case.
6de9cd9a
DN
5009 cat >conftest.$ac_ext <<_ACEOF
5010/* confdefs.h. */
5011_ACEOF
5012cat confdefs.h >>conftest.$ac_ext
5013cat >>conftest.$ac_ext <<_ACEOF
5014/* end confdefs.h. */
96b8a615
AJ
5015#ifdef __STDC__
5016# include <limits.h>
6de9cd9a 5017#else
96b8a615 5018# include <assert.h>
6de9cd9a 5019#endif
96b8a615 5020 Syntax error
6de9cd9a 5021_ACEOF
96b8a615
AJ
5022if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5023 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6de9cd9a 5024 ac_status=$?
96b8a615
AJ
5025 grep -v '^ *+' conftest.er1 >conftest.err
5026 rm -f conftest.er1
5027 cat conftest.err >&5
6de9cd9a 5028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
96b8a615
AJ
5029 (exit $ac_status); } >/dev/null; then
5030 if test -s conftest.err; then
5031 ac_cpp_err=$ac_c_preproc_warn_flag
5032 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5033 else
5034 ac_cpp_err=
5035 fi
5036else
5037 ac_cpp_err=yes
5038fi
5039if test -z "$ac_cpp_err"; then
6de9cd9a
DN
5040 :
5041else
96b8a615 5042 echo "$as_me: failed program was:" >&5
6de9cd9a
DN
5043sed 's/^/| /' conftest.$ac_ext >&5
5044
96b8a615
AJ
5045 # Broken: fails on valid input.
5046continue
6de9cd9a 5047fi
96b8a615 5048rm -f conftest.err conftest.$ac_ext
6de9cd9a 5049
96b8a615
AJ
5050 # OK, works on sane cases. Now check whether non-existent headers
5051 # can be detected and how.
5052 cat >conftest.$ac_ext <<_ACEOF
6de9cd9a
DN
5053/* confdefs.h. */
5054_ACEOF
5055cat confdefs.h >>conftest.$ac_ext
5056cat >>conftest.$ac_ext <<_ACEOF
5057/* end confdefs.h. */
96b8a615 5058#include <ac_nonexistent.h>
6de9cd9a 5059_ACEOF
96b8a615
AJ
5060if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5061 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6de9cd9a
DN
5062 ac_status=$?
5063 grep -v '^ *+' conftest.er1 >conftest.err
5064 rm -f conftest.er1
5065 cat conftest.err >&5
5066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
96b8a615
AJ
5067 (exit $ac_status); } >/dev/null; then
5068 if test -s conftest.err; then
5069 ac_cpp_err=$ac_c_preproc_warn_flag
5070 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5071 else
5072 ac_cpp_err=
5073 fi
5074else
5075 ac_cpp_err=yes
5076fi
5077if test -z "$ac_cpp_err"; then
5078 # Broken: success on invalid input.
5079continue
6de9cd9a
DN
5080else
5081 echo "$as_me: failed program was:" >&5
5082sed 's/^/| /' conftest.$ac_ext >&5
5083
96b8a615
AJ
5084 # Passes both tests.
5085ac_preproc_ok=:
5086break
6de9cd9a 5087fi
96b8a615 5088rm -f conftest.err conftest.$ac_ext
6de9cd9a 5089
96b8a615
AJ
5090done
5091# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5092rm -f conftest.err conftest.$ac_ext
5093if $ac_preproc_ok; then
5094 break
5095fi
5096
5097 done
5098 ac_cv_prog_CPP=$CPP
5099
5100fi
5101 CPP=$ac_cv_prog_CPP
5102else
5103 ac_cv_prog_CPP=$CPP
5104fi
5105echo "$as_me:$LINENO: result: $CPP" >&5
5106echo "${ECHO_T}$CPP" >&6
5107ac_preproc_ok=false
5108for ac_c_preproc_warn_flag in '' yes
5109do
5110 # Use a header file that comes with gcc, so configuring glibc
5111 # with a fresh cross-compiler works.
5112 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5113 # <limits.h> exists even on freestanding compilers.
5114 # On the NeXT, cc -E runs the code through the compiler's parser,
5115 # not just through cpp. "Syntax error" is here to catch this case.
5116 cat >conftest.$ac_ext <<_ACEOF
6de9cd9a
DN
5117/* confdefs.h. */
5118_ACEOF
5119cat confdefs.h >>conftest.$ac_ext
5120cat >>conftest.$ac_ext <<_ACEOF
5121/* end confdefs.h. */
96b8a615
AJ
5122#ifdef __STDC__
5123# include <limits.h>
5124#else
5125# include <assert.h>
5126#endif
5127 Syntax error
6de9cd9a
DN
5128_ACEOF
5129if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5130 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5131 ac_status=$?
5132 grep -v '^ *+' conftest.er1 >conftest.err
5133 rm -f conftest.er1
5134 cat conftest.err >&5
5135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5136 (exit $ac_status); } >/dev/null; then
5137 if test -s conftest.err; then
5138 ac_cpp_err=$ac_c_preproc_warn_flag
5139 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5140 else
5141 ac_cpp_err=
5142 fi
5143else
5144 ac_cpp_err=yes
5145fi
5146if test -z "$ac_cpp_err"; then
96b8a615 5147 :
6de9cd9a
DN
5148else
5149 echo "$as_me: failed program was:" >&5
5150sed 's/^/| /' conftest.$ac_ext >&5
5151
96b8a615
AJ
5152 # Broken: fails on valid input.
5153continue
6de9cd9a
DN
5154fi
5155rm -f conftest.err conftest.$ac_ext
6de9cd9a 5156
96b8a615
AJ
5157 # OK, works on sane cases. Now check whether non-existent headers
5158 # can be detected and how.
5159 cat >conftest.$ac_ext <<_ACEOF
5160/* confdefs.h. */
5161_ACEOF
5162cat confdefs.h >>conftest.$ac_ext
5163cat >>conftest.$ac_ext <<_ACEOF
5164/* end confdefs.h. */
5165#include <ac_nonexistent.h>
6de9cd9a 5166_ACEOF
96b8a615
AJ
5167if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5168 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5169 ac_status=$?
5170 grep -v '^ *+' conftest.er1 >conftest.err
5171 rm -f conftest.er1
5172 cat conftest.err >&5
5173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5174 (exit $ac_status); } >/dev/null; then
5175 if test -s conftest.err; then
5176 ac_cpp_err=$ac_c_preproc_warn_flag
5177 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5178 else
5179 ac_cpp_err=
5180 fi
5181else
5182 ac_cpp_err=yes
5183fi
5184if test -z "$ac_cpp_err"; then
5185 # Broken: success on invalid input.
5186continue
5187else
5188 echo "$as_me: failed program was:" >&5
5189sed 's/^/| /' conftest.$ac_ext >&5
6de9cd9a 5190
96b8a615
AJ
5191 # Passes both tests.
5192ac_preproc_ok=:
5193break
6de9cd9a 5194fi
96b8a615 5195rm -f conftest.err conftest.$ac_ext
6de9cd9a
DN
5196
5197done
96b8a615
AJ
5198# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5199rm -f conftest.err conftest.$ac_ext
5200if $ac_preproc_ok; then
5201 :
5202else
5203 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5204See \`config.log' for more details." >&5
5205echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5206See \`config.log' for more details." >&2;}
5207 { (exit 1); exit 1; }; }
5208fi
6de9cd9a 5209
96b8a615
AJ
5210ac_ext=c
5211ac_cpp='$CPP $CPPFLAGS'
5212ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5213ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5214ac_compiler_gnu=$ac_cv_c_compiler_gnu
6de9cd9a
DN
5215
5216
96b8a615
AJ
5217echo "$as_me:$LINENO: checking for egrep" >&5
5218echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5219if test "${ac_cv_prog_egrep+set}" = set; then
5220 echo $ECHO_N "(cached) $ECHO_C" >&6
5221else
5222 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
5223 then ac_cv_prog_egrep='grep -E'
5224 else ac_cv_prog_egrep='egrep'
5225 fi
5226fi
5227echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
5228echo "${ECHO_T}$ac_cv_prog_egrep" >&6
5229 EGREP=$ac_cv_prog_egrep
6de9cd9a
DN
5230
5231
96b8a615
AJ
5232echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5233echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5234if test "${ac_cv_header_stdc+set}" = set; then
6de9cd9a 5235 echo $ECHO_N "(cached) $ECHO_C" >&6
6de9cd9a 5236else
96b8a615 5237 cat >conftest.$ac_ext <<_ACEOF
6de9cd9a
DN
5238/* confdefs.h. */
5239_ACEOF
5240cat confdefs.h >>conftest.$ac_ext
5241cat >>conftest.$ac_ext <<_ACEOF
5242/* end confdefs.h. */
96b8a615
AJ
5243#include <stdlib.h>
5244#include <stdarg.h>
5245#include <string.h>
5246#include <float.h>
5247
5248int
5249main ()
5250{
5251
5252 ;
5253 return 0;
5254}
6de9cd9a
DN
5255_ACEOF
5256rm -f conftest.$ac_objext
5257if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5258 (eval $ac_compile) 2>conftest.er1
5259 ac_status=$?
5260 grep -v '^ *+' conftest.er1 >conftest.err
5261 rm -f conftest.er1
5262 cat conftest.err >&5
5263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5264 (exit $ac_status); } &&
bf4d99cf
TS
5265 { ac_try='test -z "$ac_c_werror_flag"
5266 || test ! -s conftest.err'
6de9cd9a
DN
5267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5268 (eval $ac_try) 2>&5
5269 ac_status=$?
5270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5271 (exit $ac_status); }; } &&
5272 { ac_try='test -s conftest.$ac_objext'
5273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5274 (eval $ac_try) 2>&5
5275 ac_status=$?
5276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5277 (exit $ac_status); }; }; then
96b8a615 5278 ac_cv_header_stdc=yes
6de9cd9a
DN
5279else
5280 echo "$as_me: failed program was:" >&5
5281sed 's/^/| /' conftest.$ac_ext >&5
5282
96b8a615 5283ac_cv_header_stdc=no
6de9cd9a
DN
5284fi
5285rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6de9cd9a 5286
96b8a615
AJ
5287if test $ac_cv_header_stdc = yes; then
5288 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5289 cat >conftest.$ac_ext <<_ACEOF
6de9cd9a
DN
5290/* confdefs.h. */
5291_ACEOF
5292cat confdefs.h >>conftest.$ac_ext
5293cat >>conftest.$ac_ext <<_ACEOF
5294/* end confdefs.h. */
96b8a615
AJ
5295#include <string.h>
5296
6de9cd9a 5297_ACEOF
96b8a615
AJ
5298if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5299 $EGREP "memchr" >/dev/null 2>&1; then
5300 :
6de9cd9a 5301else
96b8a615 5302 ac_cv_header_stdc=no
6de9cd9a 5303fi
96b8a615
AJ
5304rm -f conftest*
5305
5306fi
5307
5308if test $ac_cv_header_stdc = yes; then
5309 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
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 <stdlib.h>
5317
5318_ACEOF
5319if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5320 $EGREP "free" >/dev/null 2>&1; then
5321 :
6de9cd9a 5322else
96b8a615
AJ
5323 ac_cv_header_stdc=no
5324fi
5325rm -f conftest*
5326
5327fi
5328
5329if test $ac_cv_header_stdc = yes; then
5330 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5331 if test "$cross_compiling" = yes; then
5332 :
5333else
5334 cat >conftest.$ac_ext <<_ACEOF
5335/* confdefs.h. */
5336_ACEOF
5337cat confdefs.h >>conftest.$ac_ext
5338cat >>conftest.$ac_ext <<_ACEOF
5339/* end confdefs.h. */
5340#include <ctype.h>
5341#if ((' ' & 0x0FF) == 0x020)
5342# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5343# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5344#else
5345# define ISLOWER(c) \
5346 (('a' <= (c) && (c) <= 'i') \
5347 || ('j' <= (c) && (c) <= 'r') \
5348 || ('s' <= (c) && (c) <= 'z'))
5349# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5350#endif
5351
5352#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5353int
5354main ()
5355{
5356 int i;
5357 for (i = 0; i < 256; i++)
5358 if (XOR (islower (i), ISLOWER (i))
5359 || toupper (i) != TOUPPER (i))
5360 exit(2);
5361 exit (0);
5362}
5363_ACEOF
5364rm -f conftest$ac_exeext
5365if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5366 (eval $ac_link) 2>&5
5367 ac_status=$?
5368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5369 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5371 (eval $ac_try) 2>&5
5372 ac_status=$?
5373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5374 (exit $ac_status); }; }; then
5375 :
5376else
5377 echo "$as_me: program exited with status $ac_status" >&5
5378echo "$as_me: failed program was:" >&5
6de9cd9a
DN
5379sed 's/^/| /' conftest.$ac_ext >&5
5380
96b8a615
AJ
5381( exit $ac_status )
5382ac_cv_header_stdc=no
6de9cd9a 5383fi
96b8a615
AJ
5384rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5385fi
5386fi
5387fi
5388echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5389echo "${ECHO_T}$ac_cv_header_stdc" >&6
5390if test $ac_cv_header_stdc = yes; then
6de9cd9a 5391
96b8a615
AJ
5392cat >>confdefs.h <<\_ACEOF
5393#define STDC_HEADERS 1
5394_ACEOF
5395
5396fi
5397
5398# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5399
5400
5401
5402
5403
5404
5405
5406
5407
5408for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5409 inttypes.h stdint.h unistd.h
5410do
5411as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6de9cd9a
DN
5412echo "$as_me:$LINENO: checking for $ac_header" >&5
5413echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5414if eval "test \"\${$as_ac_Header+set}\" = set"; then
5415 echo $ECHO_N "(cached) $ECHO_C" >&6
5416else
96b8a615
AJ
5417 cat >conftest.$ac_ext <<_ACEOF
5418/* confdefs.h. */
5419_ACEOF
5420cat confdefs.h >>conftest.$ac_ext
5421cat >>conftest.$ac_ext <<_ACEOF
5422/* end confdefs.h. */
5423$ac_includes_default
5424
5425#include <$ac_header>
5426_ACEOF
5427rm -f conftest.$ac_objext
5428if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5429 (eval $ac_compile) 2>conftest.er1
5430 ac_status=$?
5431 grep -v '^ *+' conftest.er1 >conftest.err
5432 rm -f conftest.er1
5433 cat conftest.err >&5
5434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5435 (exit $ac_status); } &&
bf4d99cf
TS
5436 { ac_try='test -z "$ac_c_werror_flag"
5437 || test ! -s conftest.err'
96b8a615
AJ
5438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5439 (eval $ac_try) 2>&5
5440 ac_status=$?
5441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5442 (exit $ac_status); }; } &&
5443 { ac_try='test -s conftest.$ac_objext'
5444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5445 (eval $ac_try) 2>&5
5446 ac_status=$?
5447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5448 (exit $ac_status); }; }; then
5449 eval "$as_ac_Header=yes"
5450else
5451 echo "$as_me: failed program was:" >&5
5452sed 's/^/| /' conftest.$ac_ext >&5
5453
5454eval "$as_ac_Header=no"
5455fi
5456rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6de9cd9a
DN
5457fi
5458echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5459echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6de9cd9a
DN
5460if test `eval echo '${'$as_ac_Header'}'` = yes; then
5461 cat >>confdefs.h <<_ACEOF
5462#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5463_ACEOF
5464
5465fi
5466
5467done
5468
96b8a615
AJ
5469
5470
5471
5472for ac_header in stdlib.h unistd.h
5473do
5474as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5475if eval "test \"\${$as_ac_Header+set}\" = set"; then
5476 echo "$as_me:$LINENO: checking for $ac_header" >&5
5477echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5478if eval "test \"\${$as_ac_Header+set}\" = set"; then
6de9cd9a
DN
5479 echo $ECHO_N "(cached) $ECHO_C" >&6
5480fi
96b8a615
AJ
5481echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5482echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6de9cd9a
DN
5483else
5484 # Is the header compilable?
96b8a615
AJ
5485echo "$as_me:$LINENO: checking $ac_header usability" >&5
5486echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6de9cd9a
DN
5487cat >conftest.$ac_ext <<_ACEOF
5488/* confdefs.h. */
5489_ACEOF
5490cat confdefs.h >>conftest.$ac_ext
5491cat >>conftest.$ac_ext <<_ACEOF
5492/* end confdefs.h. */
5493$ac_includes_default
96b8a615 5494#include <$ac_header>
6de9cd9a
DN
5495_ACEOF
5496rm -f conftest.$ac_objext
5497if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5498 (eval $ac_compile) 2>conftest.er1
5499 ac_status=$?
5500 grep -v '^ *+' conftest.er1 >conftest.err
5501 rm -f conftest.er1
5502 cat conftest.err >&5
5503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5504 (exit $ac_status); } &&
bf4d99cf
TS
5505 { ac_try='test -z "$ac_c_werror_flag"
5506 || test ! -s conftest.err'
6de9cd9a
DN
5507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5508 (eval $ac_try) 2>&5
5509 ac_status=$?
5510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5511 (exit $ac_status); }; } &&
5512 { ac_try='test -s conftest.$ac_objext'
5513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5514 (eval $ac_try) 2>&5
5515 ac_status=$?
5516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5517 (exit $ac_status); }; }; then
5518 ac_header_compiler=yes
5519else
5520 echo "$as_me: failed program was:" >&5
5521sed 's/^/| /' conftest.$ac_ext >&5
5522
5523ac_header_compiler=no
5524fi
5525rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5526echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5527echo "${ECHO_T}$ac_header_compiler" >&6
5528
5529# Is the header present?
96b8a615
AJ
5530echo "$as_me:$LINENO: checking $ac_header presence" >&5
5531echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6de9cd9a
DN
5532cat >conftest.$ac_ext <<_ACEOF
5533/* confdefs.h. */
5534_ACEOF
5535cat confdefs.h >>conftest.$ac_ext
5536cat >>conftest.$ac_ext <<_ACEOF
5537/* end confdefs.h. */
96b8a615 5538#include <$ac_header>
6de9cd9a
DN
5539_ACEOF
5540if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5541 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5542 ac_status=$?
5543 grep -v '^ *+' conftest.er1 >conftest.err
5544 rm -f conftest.er1
5545 cat conftest.err >&5
5546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5547 (exit $ac_status); } >/dev/null; then
5548 if test -s conftest.err; then
5549 ac_cpp_err=$ac_c_preproc_warn_flag
5550 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5551 else
5552 ac_cpp_err=
5553 fi
5554else
5555 ac_cpp_err=yes
5556fi
5557if test -z "$ac_cpp_err"; then
5558 ac_header_preproc=yes
5559else
5560 echo "$as_me: failed program was:" >&5
5561sed 's/^/| /' conftest.$ac_ext >&5
5562
5563 ac_header_preproc=no
5564fi
5565rm -f conftest.err conftest.$ac_ext
5566echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5567echo "${ECHO_T}$ac_header_preproc" >&6
5568
5569# So? What about this header?
5570case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5571 yes:no: )
96b8a615
AJ
5572 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5573echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5574 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5575echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6de9cd9a
DN
5576 ac_header_preproc=yes
5577 ;;
5578 no:yes:* )
96b8a615
AJ
5579 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5580echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5581 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5582echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5583 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5584echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5585 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5586echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5587 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5588echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5589 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5590echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6de9cd9a
DN
5591 (
5592 cat <<\_ASBOX
5593## ------------------------------------------------------ ##
5594## Report this to the GNU Fortran Runtime Library lists. ##
5595## ------------------------------------------------------ ##
5596_ASBOX
5597 ) |
5598 sed "s/^/$as_me: WARNING: /" >&2
5599 ;;
5600esac
96b8a615
AJ
5601echo "$as_me:$LINENO: checking for $ac_header" >&5
5602echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5603if eval "test \"\${$as_ac_Header+set}\" = set"; then
6de9cd9a
DN
5604 echo $ECHO_N "(cached) $ECHO_C" >&6
5605else
96b8a615 5606 eval "$as_ac_Header=\$ac_header_preproc"
6de9cd9a 5607fi
96b8a615
AJ
5608echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5609echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5610
5611fi
5612if test `eval echo '${'$as_ac_Header'}'` = yes; then
5613 cat >>confdefs.h <<_ACEOF
5614#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5615_ACEOF
6de9cd9a 5616
96b8a615 5617fi
6de9cd9a 5618
96b8a615 5619done
6de9cd9a
DN
5620
5621
96b8a615 5622for ac_func in getpagesize
6de9cd9a
DN
5623do
5624as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5625echo "$as_me:$LINENO: checking for $ac_func" >&5
5626echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5627if eval "test \"\${$as_ac_var+set}\" = set"; then
5628 echo $ECHO_N "(cached) $ECHO_C" >&6
5629else
d49ec2d1
KC
5630 if test x$gcc_no_link = xyes; then
5631 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
5632echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
5633 { (exit 1); exit 1; }; }
5634fi
5635cat >conftest.$ac_ext <<_ACEOF
6de9cd9a
DN
5636/* confdefs.h. */
5637_ACEOF
5638cat confdefs.h >>conftest.$ac_ext
5639cat >>conftest.$ac_ext <<_ACEOF
5640/* end confdefs.h. */
5641/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5642 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5643#define $ac_func innocuous_$ac_func
5644
5645/* System header to define __stub macros and hopefully few prototypes,
5646 which can conflict with char $ac_func (); below.
5647 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5648 <limits.h> exists even on freestanding compilers. */
5649
5650#ifdef __STDC__
5651# include <limits.h>
5652#else
5653# include <assert.h>
5654#endif
5655
5656#undef $ac_func
5657
5658/* Override any gcc2 internal prototype to avoid an error. */
5659#ifdef __cplusplus
5660extern "C"
5661{
5662#endif
5663/* We use char because int might match the return type of a gcc2
5664 builtin and then its argument prototype would still apply. */
5665char $ac_func ();
5666/* The GNU C library defines this for functions which it implements
5667 to always fail with ENOSYS. Some functions are actually named
5668 something starting with __ and the normal name is an alias. */
5669#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5670choke me
5671#else
5672char (*f) () = $ac_func;
5673#endif
5674#ifdef __cplusplus
5675}
5676#endif
5677
5678int
5679main ()
5680{
5681return f != $ac_func;
5682 ;
5683 return 0;
5684}
5685_ACEOF
5686rm -f conftest.$ac_objext conftest$ac_exeext
5687if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5688 (eval $ac_link) 2>conftest.er1
5689 ac_status=$?
5690 grep -v '^ *+' conftest.er1 >conftest.err
5691 rm -f conftest.er1
5692 cat conftest.err >&5
5693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5694 (exit $ac_status); } &&
bf4d99cf
TS
5695 { ac_try='test -z "$ac_c_werror_flag"
5696 || test ! -s conftest.err'
6de9cd9a
DN
5697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5698 (eval $ac_try) 2>&5
5699 ac_status=$?
5700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5701 (exit $ac_status); }; } &&
5702 { ac_try='test -s conftest$ac_exeext'
5703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5704 (eval $ac_try) 2>&5
5705 ac_status=$?
5706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5707 (exit $ac_status); }; }; then
5708 eval "$as_ac_var=yes"
5709else
5710 echo "$as_me: failed program was:" >&5
5711sed 's/^/| /' conftest.$ac_ext >&5
5712
5713eval "$as_ac_var=no"
5714fi
5715rm -f conftest.err conftest.$ac_objext \
5716 conftest$ac_exeext conftest.$ac_ext
5717fi
5718echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5719echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5720if test `eval echo '${'$as_ac_var'}'` = yes; then
5721 cat >>confdefs.h <<_ACEOF
5722#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5723_ACEOF
5724
5725fi
5726done
5727
96b8a615
AJ
5728echo "$as_me:$LINENO: checking for working mmap" >&5
5729echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
5730if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
6de9cd9a 5731 echo $ECHO_N "(cached) $ECHO_C" >&6
96b8a615
AJ
5732else
5733 if test "$cross_compiling" = yes; then
5734 ac_cv_func_mmap_fixed_mapped=no
6de9cd9a
DN
5735else
5736 cat >conftest.$ac_ext <<_ACEOF
5737/* confdefs.h. */
5738_ACEOF
5739cat confdefs.h >>conftest.$ac_ext
5740cat >>conftest.$ac_ext <<_ACEOF
5741/* end confdefs.h. */
96b8a615
AJ
5742$ac_includes_default
5743/* malloc might have been renamed as rpl_malloc. */
5744#undef malloc
5745
5746/* Thanks to Mike Haertel and Jim Avera for this test.
5747 Here is a matrix of mmap possibilities:
5748 mmap private not fixed
5749 mmap private fixed at somewhere currently unmapped
5750 mmap private fixed at somewhere already mapped
5751 mmap shared not fixed
5752 mmap shared fixed at somewhere currently unmapped
5753 mmap shared fixed at somewhere already mapped
5754 For private mappings, we should verify that changes cannot be read()
5755 back from the file, nor mmap's back from the file at a different
5756 address. (There have been systems where private was not correctly
5757 implemented like the infamous i386 svr4.0, and systems where the
5758 VM page cache was not coherent with the file system buffer cache
5759 like early versions of FreeBSD and possibly contemporary NetBSD.)
5760 For shared mappings, we should conversely verify that changes get
5761 propagated back to all the places they're supposed to be.
5762
5763 Grep wants private fixed already mapped.
5764 The main things grep needs to know about mmap are:
5765 * does it exist and is it safe to write into the mmap'd area
5766 * how to use it (BSD variants) */
5767
5768#include <fcntl.h>
5769#include <sys/mman.h>
5770
5771#if !STDC_HEADERS && !HAVE_STDLIB_H
5772char *malloc ();
5773#endif
5774
5775/* This mess was copied from the GNU getpagesize.h. */
5776#if !HAVE_GETPAGESIZE
5777/* Assume that all systems that can run configure have sys/param.h. */
5778# if !HAVE_SYS_PARAM_H
5779# define HAVE_SYS_PARAM_H 1
5780# endif
5781
5782# ifdef _SC_PAGESIZE
5783# define getpagesize() sysconf(_SC_PAGESIZE)
5784# else /* no _SC_PAGESIZE */
5785# if HAVE_SYS_PARAM_H
5786# include <sys/param.h>
5787# ifdef EXEC_PAGESIZE
5788# define getpagesize() EXEC_PAGESIZE
5789# else /* no EXEC_PAGESIZE */
5790# ifdef NBPG
5791# define getpagesize() NBPG * CLSIZE
5792# ifndef CLSIZE
5793# define CLSIZE 1
5794# endif /* no CLSIZE */
5795# else /* no NBPG */
5796# ifdef NBPC
5797# define getpagesize() NBPC
5798# else /* no NBPC */
5799# ifdef PAGESIZE
5800# define getpagesize() PAGESIZE
5801# endif /* PAGESIZE */
5802# endif /* no NBPC */
5803# endif /* no NBPG */
5804# endif /* no EXEC_PAGESIZE */
5805# else /* no HAVE_SYS_PARAM_H */
5806# define getpagesize() 8192 /* punt totally */
5807# endif /* no HAVE_SYS_PARAM_H */
5808# endif /* no _SC_PAGESIZE */
5809
5810#endif /* no HAVE_GETPAGESIZE */
6de9cd9a
DN
5811
5812int
5813main ()
5814{
96b8a615
AJ
5815 char *data, *data2, *data3;
5816 int i, pagesize;
5817 int fd;
5818
5819 pagesize = getpagesize ();
5820
5821 /* First, make a file with some known garbage in it. */
5822 data = (char *) malloc (pagesize);
5823 if (!data)
5824 exit (1);
5825 for (i = 0; i < pagesize; ++i)
5826 *(data + i) = rand ();
5827 umask (0);
5828 fd = creat ("conftest.mmap", 0600);
5829 if (fd < 0)
5830 exit (1);
5831 if (write (fd, data, pagesize) != pagesize)
5832 exit (1);
5833 close (fd);
5834
5835 /* Next, try to mmap the file at a fixed address which already has
5836 something else allocated at it. If we can, also make sure that
5837 we see the same garbage. */
5838 fd = open ("conftest.mmap", O_RDWR);
5839 if (fd < 0)
5840 exit (1);
5841 data2 = (char *) malloc (2 * pagesize);
5842 if (!data2)
5843 exit (1);
5844 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
5845 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
5846 MAP_PRIVATE | MAP_FIXED, fd, 0L))
5847 exit (1);
5848 for (i = 0; i < pagesize; ++i)
5849 if (*(data + i) != *(data2 + i))
5850 exit (1);
5851
5852 /* Finally, make sure that changes to the mapped area do not
5853 percolate back to the file as seen by read(). (This is a bug on
5854 some variants of i386 svr4.0.) */
5855 for (i = 0; i < pagesize; ++i)
5856 *(data2 + i) = *(data2 + i) + 1;
5857 data3 = (char *) malloc (pagesize);
5858 if (!data3)
5859 exit (1);
5860 if (read (fd, data3, pagesize) != pagesize)
5861 exit (1);
5862 for (i = 0; i < pagesize; ++i)
5863 if (*(data + i) != *(data3 + i))
5864 exit (1);
5865 close (fd);
5866 exit (0);
6de9cd9a
DN
5867}
5868_ACEOF
96b8a615
AJ
5869rm -f conftest$ac_exeext
5870if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5871 (eval $ac_link) 2>&5
6de9cd9a
DN
5872 ac_status=$?
5873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
96b8a615 5874 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6de9cd9a
DN
5875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5876 (eval $ac_try) 2>&5
5877 ac_status=$?
5878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5879 (exit $ac_status); }; }; then
96b8a615 5880 ac_cv_func_mmap_fixed_mapped=yes
6de9cd9a 5881else
96b8a615
AJ
5882 echo "$as_me: program exited with status $ac_status" >&5
5883echo "$as_me: failed program was:" >&5
6de9cd9a
DN
5884sed 's/^/| /' conftest.$ac_ext >&5
5885
96b8a615
AJ
5886( exit $ac_status )
5887ac_cv_func_mmap_fixed_mapped=no
6de9cd9a 5888fi
96b8a615 5889rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6de9cd9a 5890fi
96b8a615
AJ
5891fi
5892echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
5893echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
5894if test $ac_cv_func_mmap_fixed_mapped = yes; then
6de9cd9a
DN
5895
5896cat >>confdefs.h <<\_ACEOF
96b8a615 5897#define HAVE_MMAP 1
6de9cd9a
DN
5898_ACEOF
5899
5900fi
96b8a615 5901rm -f conftest.mmap
6de9cd9a 5902
d49ec2d1 5903fi
96b8a615
AJ
5904echo "$as_me:$LINENO: checking for off_t" >&5
5905echo $ECHO_N "checking for off_t... $ECHO_C" >&6
5906if test "${ac_cv_type_off_t+set}" = set; then
6de9cd9a
DN
5907 echo $ECHO_N "(cached) $ECHO_C" >&6
5908else
96b8a615
AJ
5909 cat >conftest.$ac_ext <<_ACEOF
5910/* confdefs.h. */
5911_ACEOF
5912cat confdefs.h >>conftest.$ac_ext
5913cat >>conftest.$ac_ext <<_ACEOF
5914/* end confdefs.h. */
5915$ac_includes_default
6de9cd9a
DN
5916int
5917main ()
5918{
96b8a615
AJ
5919if ((off_t *) 0)
5920 return 0;
5921if (sizeof (off_t))
5922 return 0;
6de9cd9a
DN
5923 ;
5924 return 0;
5925}
5926_ACEOF
96b8a615
AJ
5927rm -f conftest.$ac_objext
5928if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5929 (eval $ac_compile) 2>conftest.er1
6de9cd9a
DN
5930 ac_status=$?
5931 grep -v '^ *+' conftest.er1 >conftest.err
5932 rm -f conftest.er1
5933 cat conftest.err >&5
5934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5935 (exit $ac_status); } &&
bf4d99cf
TS
5936 { ac_try='test -z "$ac_c_werror_flag"
5937 || test ! -s conftest.err'
6de9cd9a
DN
5938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5939 (eval $ac_try) 2>&5
5940 ac_status=$?
5941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5942 (exit $ac_status); }; } &&
96b8a615 5943 { ac_try='test -s conftest.$ac_objext'
6de9cd9a
DN
5944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5945 (eval $ac_try) 2>&5
5946 ac_status=$?
5947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5948 (exit $ac_status); }; }; then
96b8a615 5949 ac_cv_type_off_t=yes
6de9cd9a
DN
5950else
5951 echo "$as_me: failed program was:" >&5
5952sed 's/^/| /' conftest.$ac_ext >&5
5953
96b8a615 5954ac_cv_type_off_t=no
6de9cd9a 5955fi
96b8a615 5956rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6de9cd9a 5957fi
96b8a615
AJ
5958echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
5959echo "${ECHO_T}$ac_cv_type_off_t" >&6
5960if test $ac_cv_type_off_t = yes; then
5961 :
5962else
5963
5964cat >>confdefs.h <<_ACEOF
5965#define off_t long
6de9cd9a
DN
5966_ACEOF
5967
5968fi
6de9cd9a 5969
96b8a615
AJ
5970
5971# check header files
5972echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5973echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5974if test "${ac_cv_header_stdc+set}" = set; then
6de9cd9a
DN
5975 echo $ECHO_N "(cached) $ECHO_C" >&6
5976else
5977 cat >conftest.$ac_ext <<_ACEOF
5978/* confdefs.h. */
5979_ACEOF
5980cat confdefs.h >>conftest.$ac_ext
5981cat >>conftest.$ac_ext <<_ACEOF
5982/* end confdefs.h. */
96b8a615
AJ
5983#include <stdlib.h>
5984#include <stdarg.h>
5985#include <string.h>
5986#include <float.h>
5987
6de9cd9a
DN
5988int
5989main ()
5990{
96b8a615 5991
6de9cd9a
DN
5992 ;
5993 return 0;
5994}
5995_ACEOF
5996rm -f conftest.$ac_objext
5997if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5998 (eval $ac_compile) 2>conftest.er1
5999 ac_status=$?
6000 grep -v '^ *+' conftest.er1 >conftest.err
6001 rm -f conftest.er1
6002 cat conftest.err >&5
6003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6004 (exit $ac_status); } &&
bf4d99cf
TS
6005 { ac_try='test -z "$ac_c_werror_flag"
6006 || test ! -s conftest.err'
6de9cd9a
DN
6007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6008 (eval $ac_try) 2>&5
6009 ac_status=$?
6010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6011 (exit $ac_status); }; } &&
6012 { ac_try='test -s conftest.$ac_objext'
6013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6014 (eval $ac_try) 2>&5
6015 ac_status=$?
6016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6017 (exit $ac_status); }; }; then
96b8a615 6018 ac_cv_header_stdc=yes
6de9cd9a
DN
6019else
6020 echo "$as_me: failed program was:" >&5
6021sed 's/^/| /' conftest.$ac_ext >&5
6022
96b8a615 6023ac_cv_header_stdc=no
6de9cd9a
DN
6024fi
6025rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
96b8a615
AJ
6026
6027if test $ac_cv_header_stdc = yes; then
6028 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6de9cd9a
DN
6029 cat >conftest.$ac_ext <<_ACEOF
6030/* confdefs.h. */
6031_ACEOF
6032cat confdefs.h >>conftest.$ac_ext
6033cat >>conftest.$ac_ext <<_ACEOF
6034/* end confdefs.h. */
96b8a615 6035#include <string.h>
6de9cd9a 6036
6de9cd9a 6037_ACEOF
96b8a615
AJ
6038if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6039 $EGREP "memchr" >/dev/null 2>&1; then
6040 :
6de9cd9a 6041else
96b8a615 6042 ac_cv_header_stdc=no
6de9cd9a 6043fi
96b8a615
AJ
6044rm -f conftest*
6045
6de9cd9a 6046fi
6de9cd9a 6047
96b8a615
AJ
6048if test $ac_cv_header_stdc = yes; then
6049 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6050 cat >conftest.$ac_ext <<_ACEOF
6051/* confdefs.h. */
6052_ACEOF
6053cat confdefs.h >>conftest.$ac_ext
6054cat >>conftest.$ac_ext <<_ACEOF
6055/* end confdefs.h. */
6056#include <stdlib.h>
6057
6de9cd9a 6058_ACEOF
96b8a615
AJ
6059if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6060 $EGREP "free" >/dev/null 2>&1; then
6061 :
6062else
6063 ac_cv_header_stdc=no
6064fi
6065rm -f conftest*
6de9cd9a 6066
96b8a615 6067fi
6de9cd9a 6068
96b8a615
AJ
6069if test $ac_cv_header_stdc = yes; then
6070 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6071 if test "$cross_compiling" = yes; then
6072 :
6de9cd9a
DN
6073else
6074 cat >conftest.$ac_ext <<_ACEOF
6075/* confdefs.h. */
6076_ACEOF
6077cat confdefs.h >>conftest.$ac_ext
6078cat >>conftest.$ac_ext <<_ACEOF
6079/* end confdefs.h. */
96b8a615
AJ
6080#include <ctype.h>
6081#if ((' ' & 0x0FF) == 0x020)
6082# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6083# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6de9cd9a 6084#else
96b8a615
AJ
6085# define ISLOWER(c) \
6086 (('a' <= (c) && (c) <= 'i') \
6087 || ('j' <= (c) && (c) <= 'r') \
6088 || ('s' <= (c) && (c) <= 'z'))
6089# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6de9cd9a
DN
6090#endif
6091
96b8a615 6092#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6de9cd9a
DN
6093int
6094main ()
6095{
96b8a615
AJ
6096 int i;
6097 for (i = 0; i < 256; i++)
6098 if (XOR (islower (i), ISLOWER (i))
6099 || toupper (i) != TOUPPER (i))
6100 exit(2);
6101 exit (0);
6de9cd9a
DN
6102}
6103_ACEOF
96b8a615 6104rm -f conftest$ac_exeext
6de9cd9a 6105if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
96b8a615 6106 (eval $ac_link) 2>&5
6de9cd9a
DN
6107 ac_status=$?
6108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
96b8a615 6109 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6de9cd9a
DN
6110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6111 (eval $ac_try) 2>&5
6112 ac_status=$?
96b8a615
AJ
6113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6114 (exit $ac_status); }; }; then
6115 :
6de9cd9a 6116else
96b8a615
AJ
6117 echo "$as_me: program exited with status $ac_status" >&5
6118echo "$as_me: failed program was:" >&5
6119sed 's/^/| /' conftest.$ac_ext >&5
6de9cd9a 6120
96b8a615
AJ
6121( exit $ac_status )
6122ac_cv_header_stdc=no
6de9cd9a 6123fi
96b8a615 6124rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6de9cd9a
DN
6125fi
6126fi
6de9cd9a 6127fi
96b8a615
AJ
6128echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6129echo "${ECHO_T}$ac_cv_header_stdc" >&6
6130if test $ac_cv_header_stdc = yes; then
6de9cd9a 6131
96b8a615
AJ
6132cat >>confdefs.h <<\_ACEOF
6133#define STDC_HEADERS 1
6134_ACEOF
6de9cd9a
DN
6135
6136fi
6137
6de9cd9a
DN
6138
6139
6de9cd9a 6140
6de9cd9a
DN
6141
6142
6143
96b8a615
AJ
6144for ac_header in stdlib.h stdio.h string.h stddef.h math.h unistd.h
6145do
6146as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6147if eval "test \"\${$as_ac_Header+set}\" = set"; then
6148 echo "$as_me:$LINENO: checking for $ac_header" >&5
6149echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6150if eval "test \"\${$as_ac_Header+set}\" = set"; then
6151 echo $ECHO_N "(cached) $ECHO_C" >&6
6152fi
6153echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6154echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6de9cd9a 6155else
96b8a615
AJ
6156 # Is the header compilable?
6157echo "$as_me:$LINENO: checking $ac_header usability" >&5
6158echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6159cat >conftest.$ac_ext <<_ACEOF
6160/* confdefs.h. */
6161_ACEOF
6162cat confdefs.h >>conftest.$ac_ext
6163cat >>conftest.$ac_ext <<_ACEOF
6164/* end confdefs.h. */
6165$ac_includes_default
6166#include <$ac_header>
6167_ACEOF
6168rm -f conftest.$ac_objext
6169if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6170 (eval $ac_compile) 2>conftest.er1
6171 ac_status=$?
6172 grep -v '^ *+' conftest.er1 >conftest.err
6173 rm -f conftest.er1
6174 cat conftest.err >&5
6175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6176 (exit $ac_status); } &&
bf4d99cf
TS
6177 { ac_try='test -z "$ac_c_werror_flag"
6178 || test ! -s conftest.err'
96b8a615
AJ
6179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6180 (eval $ac_try) 2>&5
6181 ac_status=$?
6182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6183 (exit $ac_status); }; } &&
6184 { ac_try='test -s conftest.$ac_objext'
6185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6186 (eval $ac_try) 2>&5
6187 ac_status=$?
6188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6189 (exit $ac_status); }; }; then
6190 ac_header_compiler=yes
6de9cd9a 6191else
96b8a615
AJ
6192 echo "$as_me: failed program was:" >&5
6193sed 's/^/| /' conftest.$ac_ext >&5
6194
6195ac_header_compiler=no
6de9cd9a 6196fi
96b8a615
AJ
6197rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6198echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6199echo "${ECHO_T}$ac_header_compiler" >&6
6200
6201# Is the header present?
6202echo "$as_me:$LINENO: checking $ac_header presence" >&5
6203echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6204cat >conftest.$ac_ext <<_ACEOF
6205/* confdefs.h. */
6206_ACEOF
6207cat confdefs.h >>conftest.$ac_ext
6208cat >>conftest.$ac_ext <<_ACEOF
6209/* end confdefs.h. */
6210#include <$ac_header>
6211_ACEOF
6212if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6213 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6214 ac_status=$?
6215 grep -v '^ *+' conftest.er1 >conftest.err
6216 rm -f conftest.er1
6217 cat conftest.err >&5
6218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6219 (exit $ac_status); } >/dev/null; then
6220 if test -s conftest.err; then
6221 ac_cpp_err=$ac_c_preproc_warn_flag
6222 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6223 else
6224 ac_cpp_err=
6225 fi
6de9cd9a 6226else
96b8a615 6227 ac_cpp_err=yes
6de9cd9a 6228fi
96b8a615
AJ
6229if test -z "$ac_cpp_err"; then
6230 ac_header_preproc=yes
6de9cd9a 6231else
96b8a615
AJ
6232 echo "$as_me: failed program was:" >&5
6233sed 's/^/| /' conftest.$ac_ext >&5
6234
6235 ac_header_preproc=no
6de9cd9a 6236fi
96b8a615
AJ
6237rm -f conftest.err conftest.$ac_ext
6238echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6239echo "${ECHO_T}$ac_header_preproc" >&6
6240
6241# So? What about this header?
6242case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6243 yes:no: )
6244 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6245echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6246 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6247echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6248 ac_header_preproc=yes
6249 ;;
6250 no:yes:* )
6251 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6252echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6253 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6254echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6255 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6256echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6257 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6258echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6259 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6260echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6261 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6262echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6263 (
6264 cat <<\_ASBOX
6265## ------------------------------------------------------ ##
6266## Report this to the GNU Fortran Runtime Library lists. ##
6267## ------------------------------------------------------ ##
6268_ASBOX
6269 ) |
6270 sed "s/^/$as_me: WARNING: /" >&2
6271 ;;
6272esac
6273echo "$as_me:$LINENO: checking for $ac_header" >&5
6274echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6275if eval "test \"\${$as_ac_Header+set}\" = set"; then
6de9cd9a
DN
6276 echo $ECHO_N "(cached) $ECHO_C" >&6
6277else
96b8a615 6278 eval "$as_ac_Header=\$ac_header_preproc"
6de9cd9a 6279fi
96b8a615
AJ
6280echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6281echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6de9cd9a 6282
96b8a615
AJ
6283fi
6284if test `eval echo '${'$as_ac_Header'}'` = yes; then
6285 cat >>confdefs.h <<_ACEOF
6286#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6287_ACEOF
6de9cd9a 6288
6de9cd9a 6289fi
6de9cd9a 6290
96b8a615
AJ
6291done
6292
6293
6294
6295
6296
6297
6298for ac_header in time.h sys/params.h sys/time.h sys/times.h sys/resource.h
6299do
6300as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6301if eval "test \"\${$as_ac_Header+set}\" = set"; then
6302 echo "$as_me:$LINENO: checking for $ac_header" >&5
f596fc98
AL
6303echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6304if eval "test \"\${$as_ac_Header+set}\" = set"; then
6305 echo $ECHO_N "(cached) $ECHO_C" >&6
6306fi
6307echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6308echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6309else
6310 # Is the header compilable?
6311echo "$as_me:$LINENO: checking $ac_header usability" >&5
6312echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6313cat >conftest.$ac_ext <<_ACEOF
6314/* confdefs.h. */
6315_ACEOF
6316cat confdefs.h >>conftest.$ac_ext
6317cat >>conftest.$ac_ext <<_ACEOF
6318/* end confdefs.h. */
6319$ac_includes_default
6320#include <$ac_header>
6321_ACEOF
6322rm -f conftest.$ac_objext
6323if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6324 (eval $ac_compile) 2>conftest.er1
6325 ac_status=$?
6326 grep -v '^ *+' conftest.er1 >conftest.err
6327 rm -f conftest.er1
6328 cat conftest.err >&5
6329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6330 (exit $ac_status); } &&
bf4d99cf
TS
6331 { ac_try='test -z "$ac_c_werror_flag"
6332 || test ! -s conftest.err'
f596fc98
AL
6333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6334 (eval $ac_try) 2>&5
6335 ac_status=$?
6336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6337 (exit $ac_status); }; } &&
6338 { ac_try='test -s conftest.$ac_objext'
6339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6340 (eval $ac_try) 2>&5
6341 ac_status=$?
6342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6343 (exit $ac_status); }; }; then
6344 ac_header_compiler=yes
6345else
6346 echo "$as_me: failed program was:" >&5
6347sed 's/^/| /' conftest.$ac_ext >&5
6348
6349ac_header_compiler=no
6350fi
6351rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6352echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6353echo "${ECHO_T}$ac_header_compiler" >&6
6354
6355# Is the header present?
6356echo "$as_me:$LINENO: checking $ac_header presence" >&5
6357echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6358cat >conftest.$ac_ext <<_ACEOF
6359/* confdefs.h. */
6360_ACEOF
6361cat confdefs.h >>conftest.$ac_ext
6362cat >>conftest.$ac_ext <<_ACEOF
6363/* end confdefs.h. */
6364#include <$ac_header>
6365_ACEOF
6366if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6367 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6368 ac_status=$?
6369 grep -v '^ *+' conftest.er1 >conftest.err
6370 rm -f conftest.er1
6371 cat conftest.err >&5
6372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6373 (exit $ac_status); } >/dev/null; then
6374 if test -s conftest.err; then
6375 ac_cpp_err=$ac_c_preproc_warn_flag
6376 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6377 else
6378 ac_cpp_err=
6379 fi
6380else
6381 ac_cpp_err=yes
6382fi
6383if test -z "$ac_cpp_err"; then
6384 ac_header_preproc=yes
6385else
6386 echo "$as_me: failed program was:" >&5
6387sed 's/^/| /' conftest.$ac_ext >&5
6388
6389 ac_header_preproc=no
6390fi
6391rm -f conftest.err conftest.$ac_ext
6392echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6393echo "${ECHO_T}$ac_header_preproc" >&6
6394
6395# So? What about this header?
6396case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6397 yes:no: )
6398 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6399echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6400 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6401echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6402 ac_header_preproc=yes
6403 ;;
6404 no:yes:* )
6405 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6406echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6407 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6408echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6409 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6410echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6411 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6412echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6413 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6414echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6415 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6416echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6417 (
6418 cat <<\_ASBOX
6419## ------------------------------------------------------ ##
6420## Report this to the GNU Fortran Runtime Library lists. ##
6421## ------------------------------------------------------ ##
6422_ASBOX
6423 ) |
6424 sed "s/^/$as_me: WARNING: /" >&2
6425 ;;
6426esac
6427echo "$as_me:$LINENO: checking for $ac_header" >&5
6428echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6429if eval "test \"\${$as_ac_Header+set}\" = set"; then
6430 echo $ECHO_N "(cached) $ECHO_C" >&6
6431else
6432 eval "$as_ac_Header=\$ac_header_preproc"
6433fi
6434echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6435echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6436
6437fi
6438if test `eval echo '${'$as_ac_Header'}'` = yes; then
6439 cat >>confdefs.h <<_ACEOF
6440#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6441_ACEOF
6442
6443fi
6444
6445done
6446
6447
6448for ac_header in sys/mman.h
6449do
6450as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6451if eval "test \"\${$as_ac_Header+set}\" = set"; then
6452 echo "$as_me:$LINENO: checking for $ac_header" >&5
96b8a615
AJ
6453echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6454if eval "test \"\${$as_ac_Header+set}\" = set"; then
6de9cd9a 6455 echo $ECHO_N "(cached) $ECHO_C" >&6
96b8a615
AJ
6456fi
6457echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6458echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6de9cd9a 6459else
96b8a615
AJ
6460 # Is the header compilable?
6461echo "$as_me:$LINENO: checking $ac_header usability" >&5
6462echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6463cat >conftest.$ac_ext <<_ACEOF
6464/* confdefs.h. */
6465_ACEOF
6466cat confdefs.h >>conftest.$ac_ext
6467cat >>conftest.$ac_ext <<_ACEOF
6468/* end confdefs.h. */
6469$ac_includes_default
6470#include <$ac_header>
6471_ACEOF
6472rm -f conftest.$ac_objext
6473if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6474 (eval $ac_compile) 2>conftest.er1
6475 ac_status=$?
6476 grep -v '^ *+' conftest.er1 >conftest.err
6477 rm -f conftest.er1
6478 cat conftest.err >&5
6479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6480 (exit $ac_status); } &&
bf4d99cf
TS
6481 { ac_try='test -z "$ac_c_werror_flag"
6482 || test ! -s conftest.err'
96b8a615
AJ
6483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6484 (eval $ac_try) 2>&5
6485 ac_status=$?
6486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6487 (exit $ac_status); }; } &&
6488 { ac_try='test -s conftest.$ac_objext'
6489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6490 (eval $ac_try) 2>&5
6491 ac_status=$?
6492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6493 (exit $ac_status); }; }; then
6494 ac_header_compiler=yes
6de9cd9a 6495else
96b8a615
AJ
6496 echo "$as_me: failed program was:" >&5
6497sed 's/^/| /' conftest.$ac_ext >&5
6de9cd9a 6498
96b8a615
AJ
6499ac_header_compiler=no
6500fi
6501rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6502echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6503echo "${ECHO_T}$ac_header_compiler" >&6
6de9cd9a 6504
96b8a615
AJ
6505# Is the header present?
6506echo "$as_me:$LINENO: checking $ac_header presence" >&5
6507echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6508cat >conftest.$ac_ext <<_ACEOF
6509/* confdefs.h. */
6510_ACEOF
6511cat confdefs.h >>conftest.$ac_ext
6512cat >>conftest.$ac_ext <<_ACEOF
6513/* end confdefs.h. */
6514#include <$ac_header>
6515_ACEOF
6516if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6517 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6518 ac_status=$?
6519 grep -v '^ *+' conftest.er1 >conftest.err
6520 rm -f conftest.er1
6521 cat conftest.err >&5
6522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6523 (exit $ac_status); } >/dev/null; then
6524 if test -s conftest.err; then
6525 ac_cpp_err=$ac_c_preproc_warn_flag
6526 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6527 else
6528 ac_cpp_err=
6529 fi
6de9cd9a 6530else
96b8a615 6531 ac_cpp_err=yes
6de9cd9a 6532fi
96b8a615
AJ
6533if test -z "$ac_cpp_err"; then
6534 ac_header_preproc=yes
6de9cd9a 6535else
96b8a615
AJ
6536 echo "$as_me: failed program was:" >&5
6537sed 's/^/| /' conftest.$ac_ext >&5
6de9cd9a 6538
96b8a615
AJ
6539 ac_header_preproc=no
6540fi
6541rm -f conftest.err conftest.$ac_ext
6542echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6543echo "${ECHO_T}$ac_header_preproc" >&6
6de9cd9a 6544
96b8a615
AJ
6545# So? What about this header?
6546case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6547 yes:no: )
6548 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6549echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6550 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6551echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6552 ac_header_preproc=yes
6de9cd9a 6553 ;;
96b8a615
AJ
6554 no:yes:* )
6555 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6556echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6557 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6558echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6559 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6560echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6561 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6562echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6563 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6564echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6565 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6566echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6567 (
6568 cat <<\_ASBOX
6569## ------------------------------------------------------ ##
6570## Report this to the GNU Fortran Runtime Library lists. ##
6571## ------------------------------------------------------ ##
6572_ASBOX
6573 ) |
6574 sed "s/^/$as_me: WARNING: /" >&2
6de9cd9a 6575 ;;
96b8a615
AJ
6576esac
6577echo "$as_me:$LINENO: checking for $ac_header" >&5
6578echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6579if eval "test \"\${$as_ac_Header+set}\" = set"; then
6580 echo $ECHO_N "(cached) $ECHO_C" >&6
6581else
6582 eval "$as_ac_Header=\$ac_header_preproc"
6583fi
6584echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6585echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6de9cd9a 6586
96b8a615
AJ
6587fi
6588if test `eval echo '${'$as_ac_Header'}'` = yes; then
6589 cat >>confdefs.h <<_ACEOF
6590#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6591_ACEOF
6de9cd9a 6592
96b8a615 6593fi
6de9cd9a 6594
96b8a615 6595done
6de9cd9a 6596
96b8a615
AJ
6597if test "${ac_cv_header_complex_h+set}" = set; then
6598 echo "$as_me:$LINENO: checking for complex.h" >&5
6599echo $ECHO_N "checking for complex.h... $ECHO_C" >&6
6600if test "${ac_cv_header_complex_h+set}" = set; then
6601 echo $ECHO_N "(cached) $ECHO_C" >&6
6602fi
6603echo "$as_me:$LINENO: result: $ac_cv_header_complex_h" >&5
6604echo "${ECHO_T}$ac_cv_header_complex_h" >&6
6605else
6606 # Is the header compilable?
6607echo "$as_me:$LINENO: checking complex.h usability" >&5
6608echo $ECHO_N "checking complex.h usability... $ECHO_C" >&6
6609cat >conftest.$ac_ext <<_ACEOF
6610/* confdefs.h. */
6611_ACEOF
6612cat confdefs.h >>conftest.$ac_ext
6613cat >>conftest.$ac_ext <<_ACEOF
6614/* end confdefs.h. */
6615$ac_includes_default
6616#include <complex.h>
6617_ACEOF
6618rm -f conftest.$ac_objext
6619if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6620 (eval $ac_compile) 2>conftest.er1
6621 ac_status=$?
6622 grep -v '^ *+' conftest.er1 >conftest.err
6623 rm -f conftest.er1
6624 cat conftest.err >&5
6625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6626 (exit $ac_status); } &&
bf4d99cf
TS
6627 { ac_try='test -z "$ac_c_werror_flag"
6628 || test ! -s conftest.err'
96b8a615
AJ
6629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6630 (eval $ac_try) 2>&5
6631 ac_status=$?
6632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6633 (exit $ac_status); }; } &&
6634 { ac_try='test -s conftest.$ac_objext'
6635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6636 (eval $ac_try) 2>&5
6637 ac_status=$?
6638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6639 (exit $ac_status); }; }; then
6640 ac_header_compiler=yes
6641else
6642 echo "$as_me: failed program was:" >&5
6643sed 's/^/| /' conftest.$ac_ext >&5
6de9cd9a 6644
96b8a615
AJ
6645ac_header_compiler=no
6646fi
6647rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6648echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6649echo "${ECHO_T}$ac_header_compiler" >&6
6de9cd9a 6650
96b8a615
AJ
6651# Is the header present?
6652echo "$as_me:$LINENO: checking complex.h presence" >&5
6653echo $ECHO_N "checking complex.h presence... $ECHO_C" >&6
6654cat >conftest.$ac_ext <<_ACEOF
6655/* confdefs.h. */
6656_ACEOF
6657cat confdefs.h >>conftest.$ac_ext
6658cat >>conftest.$ac_ext <<_ACEOF
6659/* end confdefs.h. */
6660#include <complex.h>
6661_ACEOF
6662if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6663 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6664 ac_status=$?
6665 grep -v '^ *+' conftest.er1 >conftest.err
6666 rm -f conftest.er1
6667 cat conftest.err >&5
6668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6669 (exit $ac_status); } >/dev/null; then
6670 if test -s conftest.err; then
6671 ac_cpp_err=$ac_c_preproc_warn_flag
6672 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6de9cd9a 6673 else
96b8a615 6674 ac_cpp_err=
6de9cd9a 6675 fi
96b8a615
AJ
6676else
6677 ac_cpp_err=yes
6678fi
6679if test -z "$ac_cpp_err"; then
6680 ac_header_preproc=yes
6681else
6682 echo "$as_me: failed program was:" >&5
6683sed 's/^/| /' conftest.$ac_ext >&5
6de9cd9a 6684
96b8a615
AJ
6685 ac_header_preproc=no
6686fi
6687rm -f conftest.err conftest.$ac_ext
6688echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6689echo "${ECHO_T}$ac_header_preproc" >&6
6de9cd9a 6690
96b8a615
AJ
6691# So? What about this header?
6692case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6693 yes:no: )
6694 { echo "$as_me:$LINENO: WARNING: complex.h: accepted by the compiler, rejected by the preprocessor!" >&5
6695echo "$as_me: WARNING: complex.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6696 { echo "$as_me:$LINENO: WARNING: complex.h: proceeding with the compiler's result" >&5
6697echo "$as_me: WARNING: complex.h: proceeding with the compiler's result" >&2;}
6698 ac_header_preproc=yes
6de9cd9a 6699 ;;
96b8a615
AJ
6700 no:yes:* )
6701 { echo "$as_me:$LINENO: WARNING: complex.h: present but cannot be compiled" >&5
6702echo "$as_me: WARNING: complex.h: present but cannot be compiled" >&2;}
6703 { echo "$as_me:$LINENO: WARNING: complex.h: check for missing prerequisite headers?" >&5
6704echo "$as_me: WARNING: complex.h: check for missing prerequisite headers?" >&2;}
6705 { echo "$as_me:$LINENO: WARNING: complex.h: see the Autoconf documentation" >&5
6706echo "$as_me: WARNING: complex.h: see the Autoconf documentation" >&2;}
6707 { echo "$as_me:$LINENO: WARNING: complex.h: section \"Present But Cannot Be Compiled\"" >&5
6708echo "$as_me: WARNING: complex.h: section \"Present But Cannot Be Compiled\"" >&2;}
6709 { echo "$as_me:$LINENO: WARNING: complex.h: proceeding with the preprocessor's result" >&5
6710echo "$as_me: WARNING: complex.h: proceeding with the preprocessor's result" >&2;}
6711 { echo "$as_me:$LINENO: WARNING: complex.h: in the future, the compiler will take precedence" >&5
6712echo "$as_me: WARNING: complex.h: in the future, the compiler will take precedence" >&2;}
6713 (
6714 cat <<\_ASBOX
6715## ------------------------------------------------------ ##
6716## Report this to the GNU Fortran Runtime Library lists. ##
6717## ------------------------------------------------------ ##
6718_ASBOX
6719 ) |
6720 sed "s/^/$as_me: WARNING: /" >&2
6de9cd9a 6721 ;;
6de9cd9a 6722esac
96b8a615
AJ
6723echo "$as_me:$LINENO: checking for complex.h" >&5
6724echo $ECHO_N "checking for complex.h... $ECHO_C" >&6
6725if test "${ac_cv_header_complex_h+set}" = set; then
6726 echo $ECHO_N "(cached) $ECHO_C" >&6
6727else
6728 ac_cv_header_complex_h=$ac_header_preproc
6729fi
6730echo "$as_me:$LINENO: result: $ac_cv_header_complex_h" >&5
6731echo "${ECHO_T}$ac_cv_header_complex_h" >&6
6de9cd9a
DN
6732
6733fi
96b8a615 6734if test $ac_cv_header_complex_h = yes; then
6de9cd9a 6735
96b8a615
AJ
6736cat >>confdefs.h <<\_ACEOF
6737#define HAVE_COMPLEX_H 1
6738_ACEOF
6de9cd9a 6739
96b8a615 6740fi
6de9cd9a
DN
6741
6742
6de9cd9a 6743
96b8a615
AJ
6744# Check for complex math functions
6745echo "$as_me:$LINENO: checking for csin in -lm" >&5
6746echo $ECHO_N "checking for csin in -lm... $ECHO_C" >&6
6747if test "${ac_cv_lib_m_csin+set}" = set; then
6de9cd9a
DN
6748 echo $ECHO_N "(cached) $ECHO_C" >&6
6749else
96b8a615
AJ
6750 ac_check_lib_save_LIBS=$LIBS
6751LIBS="-lm $LIBS"
d49ec2d1
KC
6752if test x$gcc_no_link = xyes; then
6753 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
6754echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
6755 { (exit 1); exit 1; }; }
6756fi
96b8a615
AJ
6757cat >conftest.$ac_ext <<_ACEOF
6758/* confdefs.h. */
6759_ACEOF
6760cat confdefs.h >>conftest.$ac_ext
6761cat >>conftest.$ac_ext <<_ACEOF
6762/* end confdefs.h. */
6de9cd9a 6763
96b8a615
AJ
6764/* Override any gcc2 internal prototype to avoid an error. */
6765#ifdef __cplusplus
6766extern "C"
6767#endif
6768/* We use char because int might match the return type of a gcc2
6769 builtin and then its argument prototype would still apply. */
6770char csin ();
6771int
6772main ()
6773{
6774csin ();
6775 ;
6776 return 0;
6777}
6778_ACEOF
6779rm -f conftest.$ac_objext conftest$ac_exeext
6780if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6781 (eval $ac_link) 2>conftest.er1
6782 ac_status=$?
6783 grep -v '^ *+' conftest.er1 >conftest.err
6784 rm -f conftest.er1
6785 cat conftest.err >&5
6786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6787 (exit $ac_status); } &&
bf4d99cf
TS
6788 { ac_try='test -z "$ac_c_werror_flag"
6789 || test ! -s conftest.err'
96b8a615
AJ
6790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6791 (eval $ac_try) 2>&5
6792 ac_status=$?
6793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6794 (exit $ac_status); }; } &&
6795 { ac_try='test -s conftest$ac_exeext'
6796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6797 (eval $ac_try) 2>&5
6798 ac_status=$?
6799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6800 (exit $ac_status); }; }; then
6801 ac_cv_lib_m_csin=yes
6802else
6803 echo "$as_me: failed program was:" >&5
6804sed 's/^/| /' conftest.$ac_ext >&5
6805
6806ac_cv_lib_m_csin=no
6807fi
6808rm -f conftest.err conftest.$ac_objext \
6809 conftest$ac_exeext conftest.$ac_ext
6810LIBS=$ac_check_lib_save_LIBS
6811fi
6812echo "$as_me:$LINENO: result: $ac_cv_lib_m_csin" >&5
6813echo "${ECHO_T}$ac_cv_lib_m_csin" >&6
6814if test $ac_cv_lib_m_csin = yes; then
6815 need_math="no"
6816else
6817 need_math="yes"
6818fi
6819
6820
96b8a615
AJ
6821# Check for library functions.
6822
6823
41724e6a
AL
6824
6825for ac_func in getrusage times mkstemp
96b8a615
AJ
6826do
6827as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6828echo "$as_me:$LINENO: checking for $ac_func" >&5
6829echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6830if eval "test \"\${$as_ac_var+set}\" = set"; then
6de9cd9a
DN
6831 echo $ECHO_N "(cached) $ECHO_C" >&6
6832else
d49ec2d1
KC
6833 if test x$gcc_no_link = xyes; then
6834 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
6835echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
6836 { (exit 1); exit 1; }; }
6837fi
6838cat >conftest.$ac_ext <<_ACEOF
96b8a615
AJ
6839/* confdefs.h. */
6840_ACEOF
6841cat confdefs.h >>conftest.$ac_ext
6842cat >>conftest.$ac_ext <<_ACEOF
6843/* end confdefs.h. */
6844/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6845 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6846#define $ac_func innocuous_$ac_func
6de9cd9a 6847
96b8a615
AJ
6848/* System header to define __stub macros and hopefully few prototypes,
6849 which can conflict with char $ac_func (); below.
6850 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6851 <limits.h> exists even on freestanding compilers. */
6de9cd9a 6852
96b8a615
AJ
6853#ifdef __STDC__
6854# include <limits.h>
6855#else
6856# include <assert.h>
6857#endif
6de9cd9a 6858
96b8a615
AJ
6859#undef $ac_func
6860
6861/* Override any gcc2 internal prototype to avoid an error. */
6862#ifdef __cplusplus
6863extern "C"
6864{
6865#endif
6866/* We use char because int might match the return type of a gcc2
6867 builtin and then its argument prototype would still apply. */
6868char $ac_func ();
6869/* The GNU C library defines this for functions which it implements
6870 to always fail with ENOSYS. Some functions are actually named
6871 something starting with __ and the normal name is an alias. */
6872#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6873choke me
6874#else
6875char (*f) () = $ac_func;
6876#endif
6877#ifdef __cplusplus
6878}
6879#endif
6880
6881int
6882main ()
6883{
6884return f != $ac_func;
6885 ;
6886 return 0;
6887}
6888_ACEOF
6889rm -f conftest.$ac_objext conftest$ac_exeext
6890if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6891 (eval $ac_link) 2>conftest.er1
6892 ac_status=$?
6893 grep -v '^ *+' conftest.er1 >conftest.err
6894 rm -f conftest.er1
6895 cat conftest.err >&5
6896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6897 (exit $ac_status); } &&
bf4d99cf
TS
6898 { ac_try='test -z "$ac_c_werror_flag"
6899 || test ! -s conftest.err'
96b8a615
AJ
6900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6901 (eval $ac_try) 2>&5
6902 ac_status=$?
6903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6904 (exit $ac_status); }; } &&
6905 { ac_try='test -s conftest$ac_exeext'
6906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6907 (eval $ac_try) 2>&5
6908 ac_status=$?
6909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6910 (exit $ac_status); }; }; then
6911 eval "$as_ac_var=yes"
6de9cd9a 6912else
96b8a615
AJ
6913 echo "$as_me: failed program was:" >&5
6914sed 's/^/| /' conftest.$ac_ext >&5
6915
6916eval "$as_ac_var=no"
6917fi
6918rm -f conftest.err conftest.$ac_objext \
6919 conftest$ac_exeext conftest.$ac_ext
6de9cd9a 6920fi
96b8a615
AJ
6921echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6922echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6923if test `eval echo '${'$as_ac_var'}'` = yes; then
6924 cat >>confdefs.h <<_ACEOF
6925#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6926_ACEOF
6de9cd9a 6927
6de9cd9a 6928fi
96b8a615 6929done
6de9cd9a 6930
6de9cd9a 6931
4c0c6b9f
SK
6932# Check libc for getgid, getpid, getuid
6933echo "$as_me:$LINENO: checking for getgid in -lc" >&5
6934echo $ECHO_N "checking for getgid in -lc... $ECHO_C" >&6
6935if test "${ac_cv_lib_c_getgid+set}" = set; then
6936 echo $ECHO_N "(cached) $ECHO_C" >&6
6937else
6938 ac_check_lib_save_LIBS=$LIBS
6939LIBS="-lc $LIBS"
d49ec2d1
KC
6940if test x$gcc_no_link = xyes; then
6941 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
6942echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
6943 { (exit 1); exit 1; }; }
6944fi
4c0c6b9f
SK
6945cat >conftest.$ac_ext <<_ACEOF
6946/* confdefs.h. */
6947_ACEOF
6948cat confdefs.h >>conftest.$ac_ext
6949cat >>conftest.$ac_ext <<_ACEOF
6950/* end confdefs.h. */
6951
6952/* Override any gcc2 internal prototype to avoid an error. */
6953#ifdef __cplusplus
6954extern "C"
6955#endif
6956/* We use char because int might match the return type of a gcc2
6957 builtin and then its argument prototype would still apply. */
6958char getgid ();
6959int
6960main ()
6961{
6962getgid ();
6963 ;
6964 return 0;
6965}
6966_ACEOF
6967rm -f conftest.$ac_objext conftest$ac_exeext
6968if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6969 (eval $ac_link) 2>conftest.er1
6970 ac_status=$?
6971 grep -v '^ *+' conftest.er1 >conftest.err
6972 rm -f conftest.er1
6973 cat conftest.err >&5
6974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6975 (exit $ac_status); } &&
bf4d99cf
TS
6976 { ac_try='test -z "$ac_c_werror_flag"
6977 || test ! -s conftest.err'
4c0c6b9f
SK
6978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6979 (eval $ac_try) 2>&5
6980 ac_status=$?
6981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6982 (exit $ac_status); }; } &&
6983 { ac_try='test -s conftest$ac_exeext'
6984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6985 (eval $ac_try) 2>&5
6986 ac_status=$?
6987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6988 (exit $ac_status); }; }; then
6989 ac_cv_lib_c_getgid=yes
6990else
6991 echo "$as_me: failed program was:" >&5
6992sed 's/^/| /' conftest.$ac_ext >&5
6993
6994ac_cv_lib_c_getgid=no
6995fi
6996rm -f conftest.err conftest.$ac_objext \
6997 conftest$ac_exeext conftest.$ac_ext
6998LIBS=$ac_check_lib_save_LIBS
6999fi
7000echo "$as_me:$LINENO: result: $ac_cv_lib_c_getgid" >&5
7001echo "${ECHO_T}$ac_cv_lib_c_getgid" >&6
7002if test $ac_cv_lib_c_getgid = yes; then
7003
7004cat >>confdefs.h <<\_ACEOF
7005#define HAVE_GETGID 1
7006_ACEOF
7007
7008fi
7009
7010echo "$as_me:$LINENO: checking for getpid in -lc" >&5
7011echo $ECHO_N "checking for getpid in -lc... $ECHO_C" >&6
7012if test "${ac_cv_lib_c_getpid+set}" = set; then
7013 echo $ECHO_N "(cached) $ECHO_C" >&6
7014else
7015 ac_check_lib_save_LIBS=$LIBS
7016LIBS="-lc $LIBS"
d49ec2d1
KC
7017if test x$gcc_no_link = xyes; then
7018 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7019echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7020 { (exit 1); exit 1; }; }
7021fi
4c0c6b9f
SK
7022cat >conftest.$ac_ext <<_ACEOF
7023/* confdefs.h. */
7024_ACEOF
7025cat confdefs.h >>conftest.$ac_ext
7026cat >>conftest.$ac_ext <<_ACEOF
7027/* end confdefs.h. */
7028
7029/* Override any gcc2 internal prototype to avoid an error. */
7030#ifdef __cplusplus
7031extern "C"
7032#endif
7033/* We use char because int might match the return type of a gcc2
7034 builtin and then its argument prototype would still apply. */
7035char getpid ();
7036int
7037main ()
7038{
7039getpid ();
7040 ;
7041 return 0;
7042}
7043_ACEOF
7044rm -f conftest.$ac_objext conftest$ac_exeext
7045if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7046 (eval $ac_link) 2>conftest.er1
7047 ac_status=$?
7048 grep -v '^ *+' conftest.er1 >conftest.err
7049 rm -f conftest.er1
7050 cat conftest.err >&5
7051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7052 (exit $ac_status); } &&
bf4d99cf
TS
7053 { ac_try='test -z "$ac_c_werror_flag"
7054 || test ! -s conftest.err'
4c0c6b9f
SK
7055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7056 (eval $ac_try) 2>&5
7057 ac_status=$?
7058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7059 (exit $ac_status); }; } &&
7060 { ac_try='test -s conftest$ac_exeext'
7061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7062 (eval $ac_try) 2>&5
7063 ac_status=$?
7064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7065 (exit $ac_status); }; }; then
7066 ac_cv_lib_c_getpid=yes
7067else
7068 echo "$as_me: failed program was:" >&5
7069sed 's/^/| /' conftest.$ac_ext >&5
7070
7071ac_cv_lib_c_getpid=no
7072fi
7073rm -f conftest.err conftest.$ac_objext \
7074 conftest$ac_exeext conftest.$ac_ext
7075LIBS=$ac_check_lib_save_LIBS
7076fi
7077echo "$as_me:$LINENO: result: $ac_cv_lib_c_getpid" >&5
7078echo "${ECHO_T}$ac_cv_lib_c_getpid" >&6
7079if test $ac_cv_lib_c_getpid = yes; then
7080
7081cat >>confdefs.h <<\_ACEOF
7082#define HAVE_GETPID 1
7083_ACEOF
7084
7085fi
7086
7087echo "$as_me:$LINENO: checking for getuid in -lc" >&5
7088echo $ECHO_N "checking for getuid in -lc... $ECHO_C" >&6
7089if test "${ac_cv_lib_c_getuid+set}" = set; then
7090 echo $ECHO_N "(cached) $ECHO_C" >&6
7091else
7092 ac_check_lib_save_LIBS=$LIBS
7093LIBS="-lc $LIBS"
d49ec2d1
KC
7094if test x$gcc_no_link = xyes; then
7095 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7096echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7097 { (exit 1); exit 1; }; }
7098fi
4c0c6b9f
SK
7099cat >conftest.$ac_ext <<_ACEOF
7100/* confdefs.h. */
7101_ACEOF
7102cat confdefs.h >>conftest.$ac_ext
7103cat >>conftest.$ac_ext <<_ACEOF
7104/* end confdefs.h. */
7105
7106/* Override any gcc2 internal prototype to avoid an error. */
7107#ifdef __cplusplus
7108extern "C"
7109#endif
7110/* We use char because int might match the return type of a gcc2
7111 builtin and then its argument prototype would still apply. */
7112char getuid ();
7113int
7114main ()
7115{
7116getuid ();
7117 ;
7118 return 0;
7119}
7120_ACEOF
7121rm -f conftest.$ac_objext conftest$ac_exeext
7122if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7123 (eval $ac_link) 2>conftest.er1
7124 ac_status=$?
7125 grep -v '^ *+' conftest.er1 >conftest.err
7126 rm -f conftest.er1
7127 cat conftest.err >&5
7128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7129 (exit $ac_status); } &&
bf4d99cf
TS
7130 { ac_try='test -z "$ac_c_werror_flag"
7131 || test ! -s conftest.err'
4c0c6b9f
SK
7132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7133 (eval $ac_try) 2>&5
7134 ac_status=$?
7135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7136 (exit $ac_status); }; } &&
7137 { ac_try='test -s conftest$ac_exeext'
7138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7139 (eval $ac_try) 2>&5
7140 ac_status=$?
7141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7142 (exit $ac_status); }; }; then
7143 ac_cv_lib_c_getuid=yes
7144else
7145 echo "$as_me: failed program was:" >&5
7146sed 's/^/| /' conftest.$ac_ext >&5
7147
7148ac_cv_lib_c_getuid=no
7149fi
7150rm -f conftest.err conftest.$ac_objext \
7151 conftest$ac_exeext conftest.$ac_ext
7152LIBS=$ac_check_lib_save_LIBS
7153fi
7154echo "$as_me:$LINENO: result: $ac_cv_lib_c_getuid" >&5
7155echo "${ECHO_T}$ac_cv_lib_c_getuid" >&6
7156if test $ac_cv_lib_c_getuid = yes; then
7157
7158cat >>confdefs.h <<\_ACEOF
7159#define HAVE_GETUID 1
7160_ACEOF
7161
7162fi
7163
7164
453310d8 7165# Check for C99 (and other IEEE) math functions
e8525382 7166# ??? This list seems awful long. Is there a better way to test for these?
453310d8
RS
7167echo "$as_me:$LINENO: checking for acosf in -lm" >&5
7168echo $ECHO_N "checking for acosf in -lm... $ECHO_C" >&6
7169if test "${ac_cv_lib_m_acosf+set}" = set; then
7170 echo $ECHO_N "(cached) $ECHO_C" >&6
7171else
7172 ac_check_lib_save_LIBS=$LIBS
7173LIBS="-lm $LIBS"
d49ec2d1
KC
7174if test x$gcc_no_link = xyes; then
7175 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7176echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7177 { (exit 1); exit 1; }; }
7178fi
453310d8
RS
7179cat >conftest.$ac_ext <<_ACEOF
7180/* confdefs.h. */
7181_ACEOF
7182cat confdefs.h >>conftest.$ac_ext
7183cat >>conftest.$ac_ext <<_ACEOF
7184/* end confdefs.h. */
7185
7186/* Override any gcc2 internal prototype to avoid an error. */
7187#ifdef __cplusplus
7188extern "C"
7189#endif
7190/* We use char because int might match the return type of a gcc2
7191 builtin and then its argument prototype would still apply. */
7192char acosf ();
7193int
7194main ()
7195{
7196acosf ();
7197 ;
7198 return 0;
7199}
7200_ACEOF
7201rm -f conftest.$ac_objext conftest$ac_exeext
7202if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7203 (eval $ac_link) 2>conftest.er1
7204 ac_status=$?
7205 grep -v '^ *+' conftest.er1 >conftest.err
7206 rm -f conftest.er1
7207 cat conftest.err >&5
7208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7209 (exit $ac_status); } &&
bf4d99cf
TS
7210 { ac_try='test -z "$ac_c_werror_flag"
7211 || test ! -s conftest.err'
453310d8
RS
7212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7213 (eval $ac_try) 2>&5
7214 ac_status=$?
7215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7216 (exit $ac_status); }; } &&
7217 { ac_try='test -s conftest$ac_exeext'
7218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7219 (eval $ac_try) 2>&5
7220 ac_status=$?
7221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7222 (exit $ac_status); }; }; then
7223 ac_cv_lib_m_acosf=yes
7224else
7225 echo "$as_me: failed program was:" >&5
7226sed 's/^/| /' conftest.$ac_ext >&5
7227
7228ac_cv_lib_m_acosf=no
7229fi
7230rm -f conftest.err conftest.$ac_objext \
7231 conftest$ac_exeext conftest.$ac_ext
7232LIBS=$ac_check_lib_save_LIBS
7233fi
7234echo "$as_me:$LINENO: result: $ac_cv_lib_m_acosf" >&5
7235echo "${ECHO_T}$ac_cv_lib_m_acosf" >&6
7236if test $ac_cv_lib_m_acosf = yes; then
7237
7238cat >>confdefs.h <<\_ACEOF
7239#define HAVE_ACOSF 1
7240_ACEOF
7241
7242fi
7243
7244echo "$as_me:$LINENO: checking for asinf in -lm" >&5
7245echo $ECHO_N "checking for asinf in -lm... $ECHO_C" >&6
7246if test "${ac_cv_lib_m_asinf+set}" = set; then
7247 echo $ECHO_N "(cached) $ECHO_C" >&6
7248else
7249 ac_check_lib_save_LIBS=$LIBS
7250LIBS="-lm $LIBS"
d49ec2d1
KC
7251if test x$gcc_no_link = xyes; then
7252 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7253echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7254 { (exit 1); exit 1; }; }
7255fi
453310d8
RS
7256cat >conftest.$ac_ext <<_ACEOF
7257/* confdefs.h. */
7258_ACEOF
7259cat confdefs.h >>conftest.$ac_ext
7260cat >>conftest.$ac_ext <<_ACEOF
7261/* end confdefs.h. */
7262
7263/* Override any gcc2 internal prototype to avoid an error. */
7264#ifdef __cplusplus
7265extern "C"
7266#endif
7267/* We use char because int might match the return type of a gcc2
7268 builtin and then its argument prototype would still apply. */
7269char asinf ();
7270int
7271main ()
7272{
7273asinf ();
7274 ;
7275 return 0;
7276}
7277_ACEOF
7278rm -f conftest.$ac_objext conftest$ac_exeext
7279if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7280 (eval $ac_link) 2>conftest.er1
7281 ac_status=$?
7282 grep -v '^ *+' conftest.er1 >conftest.err
7283 rm -f conftest.er1
7284 cat conftest.err >&5
7285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7286 (exit $ac_status); } &&
bf4d99cf
TS
7287 { ac_try='test -z "$ac_c_werror_flag"
7288 || test ! -s conftest.err'
453310d8
RS
7289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7290 (eval $ac_try) 2>&5
7291 ac_status=$?
7292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7293 (exit $ac_status); }; } &&
7294 { ac_try='test -s conftest$ac_exeext'
7295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7296 (eval $ac_try) 2>&5
7297 ac_status=$?
7298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7299 (exit $ac_status); }; }; then
7300 ac_cv_lib_m_asinf=yes
7301else
7302 echo "$as_me: failed program was:" >&5
7303sed 's/^/| /' conftest.$ac_ext >&5
7304
7305ac_cv_lib_m_asinf=no
7306fi
7307rm -f conftest.err conftest.$ac_objext \
7308 conftest$ac_exeext conftest.$ac_ext
7309LIBS=$ac_check_lib_save_LIBS
7310fi
7311echo "$as_me:$LINENO: result: $ac_cv_lib_m_asinf" >&5
7312echo "${ECHO_T}$ac_cv_lib_m_asinf" >&6
7313if test $ac_cv_lib_m_asinf = yes; then
7314
7315cat >>confdefs.h <<\_ACEOF
7316#define HAVE_ASINF 1
7317_ACEOF
7318
7319fi
7320
7321echo "$as_me:$LINENO: checking for atan2f in -lm" >&5
7322echo $ECHO_N "checking for atan2f in -lm... $ECHO_C" >&6
7323if test "${ac_cv_lib_m_atan2f+set}" = set; then
7324 echo $ECHO_N "(cached) $ECHO_C" >&6
7325else
7326 ac_check_lib_save_LIBS=$LIBS
7327LIBS="-lm $LIBS"
d49ec2d1
KC
7328if test x$gcc_no_link = xyes; then
7329 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7330echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7331 { (exit 1); exit 1; }; }
7332fi
453310d8
RS
7333cat >conftest.$ac_ext <<_ACEOF
7334/* confdefs.h. */
7335_ACEOF
7336cat confdefs.h >>conftest.$ac_ext
7337cat >>conftest.$ac_ext <<_ACEOF
7338/* end confdefs.h. */
7339
7340/* Override any gcc2 internal prototype to avoid an error. */
7341#ifdef __cplusplus
7342extern "C"
7343#endif
7344/* We use char because int might match the return type of a gcc2
7345 builtin and then its argument prototype would still apply. */
7346char atan2f ();
7347int
7348main ()
7349{
7350atan2f ();
7351 ;
7352 return 0;
7353}
7354_ACEOF
7355rm -f conftest.$ac_objext conftest$ac_exeext
7356if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7357 (eval $ac_link) 2>conftest.er1
7358 ac_status=$?
7359 grep -v '^ *+' conftest.er1 >conftest.err
7360 rm -f conftest.er1
7361 cat conftest.err >&5
7362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7363 (exit $ac_status); } &&
bf4d99cf
TS
7364 { ac_try='test -z "$ac_c_werror_flag"
7365 || test ! -s conftest.err'
453310d8
RS
7366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7367 (eval $ac_try) 2>&5
7368 ac_status=$?
7369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7370 (exit $ac_status); }; } &&
7371 { ac_try='test -s conftest$ac_exeext'
7372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7373 (eval $ac_try) 2>&5
7374 ac_status=$?
7375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7376 (exit $ac_status); }; }; then
7377 ac_cv_lib_m_atan2f=yes
7378else
7379 echo "$as_me: failed program was:" >&5
7380sed 's/^/| /' conftest.$ac_ext >&5
7381
7382ac_cv_lib_m_atan2f=no
7383fi
7384rm -f conftest.err conftest.$ac_objext \
7385 conftest$ac_exeext conftest.$ac_ext
7386LIBS=$ac_check_lib_save_LIBS
7387fi
7388echo "$as_me:$LINENO: result: $ac_cv_lib_m_atan2f" >&5
7389echo "${ECHO_T}$ac_cv_lib_m_atan2f" >&6
7390if test $ac_cv_lib_m_atan2f = yes; then
7391
7392cat >>confdefs.h <<\_ACEOF
7393#define HAVE_ATAN2F 1
7394_ACEOF
7395
7396fi
7397
7398echo "$as_me:$LINENO: checking for atanf in -lm" >&5
7399echo $ECHO_N "checking for atanf in -lm... $ECHO_C" >&6
7400if test "${ac_cv_lib_m_atanf+set}" = set; then
7401 echo $ECHO_N "(cached) $ECHO_C" >&6
7402else
7403 ac_check_lib_save_LIBS=$LIBS
7404LIBS="-lm $LIBS"
d49ec2d1
KC
7405if test x$gcc_no_link = xyes; then
7406 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7407echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7408 { (exit 1); exit 1; }; }
7409fi
453310d8
RS
7410cat >conftest.$ac_ext <<_ACEOF
7411/* confdefs.h. */
7412_ACEOF
7413cat confdefs.h >>conftest.$ac_ext
7414cat >>conftest.$ac_ext <<_ACEOF
7415/* end confdefs.h. */
7416
7417/* Override any gcc2 internal prototype to avoid an error. */
7418#ifdef __cplusplus
7419extern "C"
7420#endif
7421/* We use char because int might match the return type of a gcc2
7422 builtin and then its argument prototype would still apply. */
7423char atanf ();
7424int
7425main ()
7426{
7427atanf ();
7428 ;
7429 return 0;
7430}
7431_ACEOF
7432rm -f conftest.$ac_objext conftest$ac_exeext
7433if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7434 (eval $ac_link) 2>conftest.er1
7435 ac_status=$?
7436 grep -v '^ *+' conftest.er1 >conftest.err
7437 rm -f conftest.er1
7438 cat conftest.err >&5
7439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7440 (exit $ac_status); } &&
bf4d99cf
TS
7441 { ac_try='test -z "$ac_c_werror_flag"
7442 || test ! -s conftest.err'
453310d8
RS
7443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7444 (eval $ac_try) 2>&5
7445 ac_status=$?
7446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7447 (exit $ac_status); }; } &&
7448 { ac_try='test -s conftest$ac_exeext'
7449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7450 (eval $ac_try) 2>&5
7451 ac_status=$?
7452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7453 (exit $ac_status); }; }; then
7454 ac_cv_lib_m_atanf=yes
7455else
7456 echo "$as_me: failed program was:" >&5
7457sed 's/^/| /' conftest.$ac_ext >&5
7458
7459ac_cv_lib_m_atanf=no
7460fi
7461rm -f conftest.err conftest.$ac_objext \
7462 conftest$ac_exeext conftest.$ac_ext
7463LIBS=$ac_check_lib_save_LIBS
7464fi
7465echo "$as_me:$LINENO: result: $ac_cv_lib_m_atanf" >&5
7466echo "${ECHO_T}$ac_cv_lib_m_atanf" >&6
7467if test $ac_cv_lib_m_atanf = yes; then
7468
7469cat >>confdefs.h <<\_ACEOF
7470#define HAVE_ATANF 1
7471_ACEOF
7472
7473fi
7474
7475echo "$as_me:$LINENO: checking for ceilf in -lm" >&5
7476echo $ECHO_N "checking for ceilf in -lm... $ECHO_C" >&6
7477if test "${ac_cv_lib_m_ceilf+set}" = set; then
7478 echo $ECHO_N "(cached) $ECHO_C" >&6
7479else
7480 ac_check_lib_save_LIBS=$LIBS
7481LIBS="-lm $LIBS"
d49ec2d1
KC
7482if test x$gcc_no_link = xyes; then
7483 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7484echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7485 { (exit 1); exit 1; }; }
7486fi
453310d8
RS
7487cat >conftest.$ac_ext <<_ACEOF
7488/* confdefs.h. */
7489_ACEOF
7490cat confdefs.h >>conftest.$ac_ext
7491cat >>conftest.$ac_ext <<_ACEOF
7492/* end confdefs.h. */
7493
7494/* Override any gcc2 internal prototype to avoid an error. */
7495#ifdef __cplusplus
7496extern "C"
7497#endif
7498/* We use char because int might match the return type of a gcc2
7499 builtin and then its argument prototype would still apply. */
7500char ceilf ();
7501int
7502main ()
7503{
7504ceilf ();
7505 ;
7506 return 0;
7507}
7508_ACEOF
7509rm -f conftest.$ac_objext conftest$ac_exeext
7510if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7511 (eval $ac_link) 2>conftest.er1
7512 ac_status=$?
7513 grep -v '^ *+' conftest.er1 >conftest.err
7514 rm -f conftest.er1
7515 cat conftest.err >&5
7516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7517 (exit $ac_status); } &&
bf4d99cf
TS
7518 { ac_try='test -z "$ac_c_werror_flag"
7519 || test ! -s conftest.err'
453310d8
RS
7520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7521 (eval $ac_try) 2>&5
7522 ac_status=$?
7523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7524 (exit $ac_status); }; } &&
7525 { ac_try='test -s conftest$ac_exeext'
7526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7527 (eval $ac_try) 2>&5
7528 ac_status=$?
7529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7530 (exit $ac_status); }; }; then
7531 ac_cv_lib_m_ceilf=yes
7532else
7533 echo "$as_me: failed program was:" >&5
7534sed 's/^/| /' conftest.$ac_ext >&5
7535
7536ac_cv_lib_m_ceilf=no
7537fi
7538rm -f conftest.err conftest.$ac_objext \
7539 conftest$ac_exeext conftest.$ac_ext
7540LIBS=$ac_check_lib_save_LIBS
7541fi
7542echo "$as_me:$LINENO: result: $ac_cv_lib_m_ceilf" >&5
7543echo "${ECHO_T}$ac_cv_lib_m_ceilf" >&6
7544if test $ac_cv_lib_m_ceilf = yes; then
7545
7546cat >>confdefs.h <<\_ACEOF
7547#define HAVE_CEILF 1
7548_ACEOF
7549
7550fi
7551
7552echo "$as_me:$LINENO: checking for copysignf in -lm" >&5
7553echo $ECHO_N "checking for copysignf in -lm... $ECHO_C" >&6
7554if test "${ac_cv_lib_m_copysignf+set}" = set; then
7555 echo $ECHO_N "(cached) $ECHO_C" >&6
7556else
7557 ac_check_lib_save_LIBS=$LIBS
7558LIBS="-lm $LIBS"
d49ec2d1
KC
7559if test x$gcc_no_link = xyes; then
7560 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7561echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7562 { (exit 1); exit 1; }; }
7563fi
453310d8
RS
7564cat >conftest.$ac_ext <<_ACEOF
7565/* confdefs.h. */
7566_ACEOF
7567cat confdefs.h >>conftest.$ac_ext
7568cat >>conftest.$ac_ext <<_ACEOF
7569/* end confdefs.h. */
7570
7571/* Override any gcc2 internal prototype to avoid an error. */
7572#ifdef __cplusplus
7573extern "C"
7574#endif
7575/* We use char because int might match the return type of a gcc2
7576 builtin and then its argument prototype would still apply. */
7577char copysignf ();
7578int
7579main ()
7580{
7581copysignf ();
7582 ;
7583 return 0;
7584}
7585_ACEOF
7586rm -f conftest.$ac_objext conftest$ac_exeext
7587if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7588 (eval $ac_link) 2>conftest.er1
7589 ac_status=$?
7590 grep -v '^ *+' conftest.er1 >conftest.err
7591 rm -f conftest.er1
7592 cat conftest.err >&5
7593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7594 (exit $ac_status); } &&
bf4d99cf
TS
7595 { ac_try='test -z "$ac_c_werror_flag"
7596 || test ! -s conftest.err'
453310d8
RS
7597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7598 (eval $ac_try) 2>&5
7599 ac_status=$?
7600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7601 (exit $ac_status); }; } &&
7602 { ac_try='test -s conftest$ac_exeext'
7603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7604 (eval $ac_try) 2>&5
7605 ac_status=$?
7606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7607 (exit $ac_status); }; }; then
7608 ac_cv_lib_m_copysignf=yes
7609else
7610 echo "$as_me: failed program was:" >&5
7611sed 's/^/| /' conftest.$ac_ext >&5
7612
7613ac_cv_lib_m_copysignf=no
7614fi
7615rm -f conftest.err conftest.$ac_objext \
7616 conftest$ac_exeext conftest.$ac_ext
7617LIBS=$ac_check_lib_save_LIBS
7618fi
7619echo "$as_me:$LINENO: result: $ac_cv_lib_m_copysignf" >&5
7620echo "${ECHO_T}$ac_cv_lib_m_copysignf" >&6
7621if test $ac_cv_lib_m_copysignf = yes; then
7622
7623cat >>confdefs.h <<\_ACEOF
7624#define HAVE_COPYSIGNF 1
7625_ACEOF
7626
7627fi
7628
7629echo "$as_me:$LINENO: checking for cosf in -lm" >&5
7630echo $ECHO_N "checking for cosf in -lm... $ECHO_C" >&6
7631if test "${ac_cv_lib_m_cosf+set}" = set; then
7632 echo $ECHO_N "(cached) $ECHO_C" >&6
7633else
7634 ac_check_lib_save_LIBS=$LIBS
7635LIBS="-lm $LIBS"
d49ec2d1
KC
7636if test x$gcc_no_link = xyes; then
7637 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7638echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7639 { (exit 1); exit 1; }; }
7640fi
453310d8
RS
7641cat >conftest.$ac_ext <<_ACEOF
7642/* confdefs.h. */
7643_ACEOF
7644cat confdefs.h >>conftest.$ac_ext
7645cat >>conftest.$ac_ext <<_ACEOF
7646/* end confdefs.h. */
7647
7648/* Override any gcc2 internal prototype to avoid an error. */
7649#ifdef __cplusplus
7650extern "C"
7651#endif
7652/* We use char because int might match the return type of a gcc2
7653 builtin and then its argument prototype would still apply. */
7654char cosf ();
7655int
7656main ()
7657{
7658cosf ();
7659 ;
7660 return 0;
7661}
7662_ACEOF
7663rm -f conftest.$ac_objext conftest$ac_exeext
7664if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7665 (eval $ac_link) 2>conftest.er1
7666 ac_status=$?
7667 grep -v '^ *+' conftest.er1 >conftest.err
7668 rm -f conftest.er1
7669 cat conftest.err >&5
7670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7671 (exit $ac_status); } &&
bf4d99cf
TS
7672 { ac_try='test -z "$ac_c_werror_flag"
7673 || test ! -s conftest.err'
453310d8
RS
7674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7675 (eval $ac_try) 2>&5
7676 ac_status=$?
7677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7678 (exit $ac_status); }; } &&
7679 { ac_try='test -s conftest$ac_exeext'
7680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7681 (eval $ac_try) 2>&5
7682 ac_status=$?
7683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7684 (exit $ac_status); }; }; then
7685 ac_cv_lib_m_cosf=yes
7686else
7687 echo "$as_me: failed program was:" >&5
7688sed 's/^/| /' conftest.$ac_ext >&5
7689
7690ac_cv_lib_m_cosf=no
7691fi
7692rm -f conftest.err conftest.$ac_objext \
7693 conftest$ac_exeext conftest.$ac_ext
7694LIBS=$ac_check_lib_save_LIBS
7695fi
7696echo "$as_me:$LINENO: result: $ac_cv_lib_m_cosf" >&5
7697echo "${ECHO_T}$ac_cv_lib_m_cosf" >&6
7698if test $ac_cv_lib_m_cosf = yes; then
7699
7700cat >>confdefs.h <<\_ACEOF
7701#define HAVE_COSF 1
7702_ACEOF
7703
7704fi
7705
7706echo "$as_me:$LINENO: checking for coshf in -lm" >&5
7707echo $ECHO_N "checking for coshf in -lm... $ECHO_C" >&6
7708if test "${ac_cv_lib_m_coshf+set}" = set; then
7709 echo $ECHO_N "(cached) $ECHO_C" >&6
7710else
7711 ac_check_lib_save_LIBS=$LIBS
7712LIBS="-lm $LIBS"
d49ec2d1
KC
7713if test x$gcc_no_link = xyes; then
7714 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7715echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7716 { (exit 1); exit 1; }; }
7717fi
453310d8
RS
7718cat >conftest.$ac_ext <<_ACEOF
7719/* confdefs.h. */
7720_ACEOF
7721cat confdefs.h >>conftest.$ac_ext
7722cat >>conftest.$ac_ext <<_ACEOF
7723/* end confdefs.h. */
7724
7725/* Override any gcc2 internal prototype to avoid an error. */
7726#ifdef __cplusplus
7727extern "C"
7728#endif
7729/* We use char because int might match the return type of a gcc2
7730 builtin and then its argument prototype would still apply. */
7731char coshf ();
7732int
7733main ()
7734{
7735coshf ();
7736 ;
7737 return 0;
7738}
7739_ACEOF
7740rm -f conftest.$ac_objext conftest$ac_exeext
7741if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7742 (eval $ac_link) 2>conftest.er1
7743 ac_status=$?
7744 grep -v '^ *+' conftest.er1 >conftest.err
7745 rm -f conftest.er1
7746 cat conftest.err >&5
7747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7748 (exit $ac_status); } &&
bf4d99cf
TS
7749 { ac_try='test -z "$ac_c_werror_flag"
7750 || test ! -s conftest.err'
453310d8
RS
7751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7752 (eval $ac_try) 2>&5
7753 ac_status=$?
7754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7755 (exit $ac_status); }; } &&
7756 { ac_try='test -s conftest$ac_exeext'
7757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7758 (eval $ac_try) 2>&5
7759 ac_status=$?
7760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7761 (exit $ac_status); }; }; then
7762 ac_cv_lib_m_coshf=yes
7763else
7764 echo "$as_me: failed program was:" >&5
7765sed 's/^/| /' conftest.$ac_ext >&5
7766
7767ac_cv_lib_m_coshf=no
7768fi
7769rm -f conftest.err conftest.$ac_objext \
7770 conftest$ac_exeext conftest.$ac_ext
7771LIBS=$ac_check_lib_save_LIBS
7772fi
7773echo "$as_me:$LINENO: result: $ac_cv_lib_m_coshf" >&5
7774echo "${ECHO_T}$ac_cv_lib_m_coshf" >&6
7775if test $ac_cv_lib_m_coshf = yes; then
7776
7777cat >>confdefs.h <<\_ACEOF
7778#define HAVE_COSHF 1
7779_ACEOF
7780
7781fi
7782
7783echo "$as_me:$LINENO: checking for expf in -lm" >&5
7784echo $ECHO_N "checking for expf in -lm... $ECHO_C" >&6
7785if test "${ac_cv_lib_m_expf+set}" = set; then
7786 echo $ECHO_N "(cached) $ECHO_C" >&6
7787else
7788 ac_check_lib_save_LIBS=$LIBS
7789LIBS="-lm $LIBS"
d49ec2d1
KC
7790if test x$gcc_no_link = xyes; then
7791 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7792echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7793 { (exit 1); exit 1; }; }
7794fi
453310d8
RS
7795cat >conftest.$ac_ext <<_ACEOF
7796/* confdefs.h. */
7797_ACEOF
7798cat confdefs.h >>conftest.$ac_ext
7799cat >>conftest.$ac_ext <<_ACEOF
7800/* end confdefs.h. */
7801
7802/* Override any gcc2 internal prototype to avoid an error. */
7803#ifdef __cplusplus
7804extern "C"
7805#endif
7806/* We use char because int might match the return type of a gcc2
7807 builtin and then its argument prototype would still apply. */
7808char expf ();
7809int
7810main ()
7811{
7812expf ();
7813 ;
7814 return 0;
7815}
7816_ACEOF
7817rm -f conftest.$ac_objext conftest$ac_exeext
7818if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7819 (eval $ac_link) 2>conftest.er1
7820 ac_status=$?
7821 grep -v '^ *+' conftest.er1 >conftest.err
7822 rm -f conftest.er1
7823 cat conftest.err >&5
7824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7825 (exit $ac_status); } &&
bf4d99cf
TS
7826 { ac_try='test -z "$ac_c_werror_flag"
7827 || test ! -s conftest.err'
453310d8
RS
7828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7829 (eval $ac_try) 2>&5
7830 ac_status=$?
7831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7832 (exit $ac_status); }; } &&
7833 { ac_try='test -s conftest$ac_exeext'
7834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7835 (eval $ac_try) 2>&5
7836 ac_status=$?
7837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7838 (exit $ac_status); }; }; then
7839 ac_cv_lib_m_expf=yes
7840else
7841 echo "$as_me: failed program was:" >&5
7842sed 's/^/| /' conftest.$ac_ext >&5
7843
7844ac_cv_lib_m_expf=no
7845fi
7846rm -f conftest.err conftest.$ac_objext \
7847 conftest$ac_exeext conftest.$ac_ext
7848LIBS=$ac_check_lib_save_LIBS
7849fi
7850echo "$as_me:$LINENO: result: $ac_cv_lib_m_expf" >&5
7851echo "${ECHO_T}$ac_cv_lib_m_expf" >&6
7852if test $ac_cv_lib_m_expf = yes; then
7853
7854cat >>confdefs.h <<\_ACEOF
7855#define HAVE_EXPF 1
7856_ACEOF
7857
7858fi
7859
7860echo "$as_me:$LINENO: checking for floorf in -lm" >&5
7861echo $ECHO_N "checking for floorf in -lm... $ECHO_C" >&6
7862if test "${ac_cv_lib_m_floorf+set}" = set; then
7863 echo $ECHO_N "(cached) $ECHO_C" >&6
7864else
7865 ac_check_lib_save_LIBS=$LIBS
7866LIBS="-lm $LIBS"
d49ec2d1
KC
7867if test x$gcc_no_link = xyes; then
7868 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7869echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7870 { (exit 1); exit 1; }; }
7871fi
453310d8
RS
7872cat >conftest.$ac_ext <<_ACEOF
7873/* confdefs.h. */
7874_ACEOF
7875cat confdefs.h >>conftest.$ac_ext
7876cat >>conftest.$ac_ext <<_ACEOF
7877/* end confdefs.h. */
7878
7879/* Override any gcc2 internal prototype to avoid an error. */
7880#ifdef __cplusplus
7881extern "C"
7882#endif
7883/* We use char because int might match the return type of a gcc2
7884 builtin and then its argument prototype would still apply. */
7885char floorf ();
7886int
7887main ()
7888{
7889floorf ();
7890 ;
7891 return 0;
7892}
7893_ACEOF
7894rm -f conftest.$ac_objext conftest$ac_exeext
7895if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7896 (eval $ac_link) 2>conftest.er1
7897 ac_status=$?
7898 grep -v '^ *+' conftest.er1 >conftest.err
7899 rm -f conftest.er1
7900 cat conftest.err >&5
7901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7902 (exit $ac_status); } &&
bf4d99cf
TS
7903 { ac_try='test -z "$ac_c_werror_flag"
7904 || test ! -s conftest.err'
453310d8
RS
7905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7906 (eval $ac_try) 2>&5
7907 ac_status=$?
7908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7909 (exit $ac_status); }; } &&
7910 { ac_try='test -s conftest$ac_exeext'
7911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7912 (eval $ac_try) 2>&5
7913 ac_status=$?
7914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7915 (exit $ac_status); }; }; then
7916 ac_cv_lib_m_floorf=yes
7917else
7918 echo "$as_me: failed program was:" >&5
7919sed 's/^/| /' conftest.$ac_ext >&5
7920
7921ac_cv_lib_m_floorf=no
7922fi
7923rm -f conftest.err conftest.$ac_objext \
7924 conftest$ac_exeext conftest.$ac_ext
7925LIBS=$ac_check_lib_save_LIBS
7926fi
7927echo "$as_me:$LINENO: result: $ac_cv_lib_m_floorf" >&5
7928echo "${ECHO_T}$ac_cv_lib_m_floorf" >&6
7929if test $ac_cv_lib_m_floorf = yes; then
7930
7931cat >>confdefs.h <<\_ACEOF
7932#define HAVE_FLOORF 1
7933_ACEOF
7934
7935fi
7936
7937echo "$as_me:$LINENO: checking for frexpf in -lm" >&5
7938echo $ECHO_N "checking for frexpf in -lm... $ECHO_C" >&6
7939if test "${ac_cv_lib_m_frexpf+set}" = set; then
7940 echo $ECHO_N "(cached) $ECHO_C" >&6
7941else
7942 ac_check_lib_save_LIBS=$LIBS
7943LIBS="-lm $LIBS"
d49ec2d1
KC
7944if test x$gcc_no_link = xyes; then
7945 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7946echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7947 { (exit 1); exit 1; }; }
7948fi
453310d8
RS
7949cat >conftest.$ac_ext <<_ACEOF
7950/* confdefs.h. */
7951_ACEOF
7952cat confdefs.h >>conftest.$ac_ext
7953cat >>conftest.$ac_ext <<_ACEOF
7954/* end confdefs.h. */
7955
7956/* Override any gcc2 internal prototype to avoid an error. */
7957#ifdef __cplusplus
7958extern "C"
7959#endif
7960/* We use char because int might match the return type of a gcc2
7961 builtin and then its argument prototype would still apply. */
7962char frexpf ();
7963int
7964main ()
7965{
7966frexpf ();
7967 ;
7968 return 0;
7969}
7970_ACEOF
7971rm -f conftest.$ac_objext conftest$ac_exeext
7972if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7973 (eval $ac_link) 2>conftest.er1
7974 ac_status=$?
7975 grep -v '^ *+' conftest.er1 >conftest.err
7976 rm -f conftest.er1
7977 cat conftest.err >&5
7978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7979 (exit $ac_status); } &&
bf4d99cf
TS
7980 { ac_try='test -z "$ac_c_werror_flag"
7981 || test ! -s conftest.err'
453310d8
RS
7982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7983 (eval $ac_try) 2>&5
7984 ac_status=$?
7985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7986 (exit $ac_status); }; } &&
7987 { ac_try='test -s conftest$ac_exeext'
7988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7989 (eval $ac_try) 2>&5
7990 ac_status=$?
7991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7992 (exit $ac_status); }; }; then
7993 ac_cv_lib_m_frexpf=yes
7994else
7995 echo "$as_me: failed program was:" >&5
7996sed 's/^/| /' conftest.$ac_ext >&5
7997
7998ac_cv_lib_m_frexpf=no
7999fi
8000rm -f conftest.err conftest.$ac_objext \
8001 conftest$ac_exeext conftest.$ac_ext
8002LIBS=$ac_check_lib_save_LIBS
8003fi
8004echo "$as_me:$LINENO: result: $ac_cv_lib_m_frexpf" >&5
8005echo "${ECHO_T}$ac_cv_lib_m_frexpf" >&6
8006if test $ac_cv_lib_m_frexpf = yes; then
8007
8008cat >>confdefs.h <<\_ACEOF
8009#define HAVE_FREXPF 1
8010_ACEOF
8011
8012fi
8013
8014echo "$as_me:$LINENO: checking for hypotf in -lm" >&5
8015echo $ECHO_N "checking for hypotf in -lm... $ECHO_C" >&6
8016if test "${ac_cv_lib_m_hypotf+set}" = set; then
8017 echo $ECHO_N "(cached) $ECHO_C" >&6
8018else
8019 ac_check_lib_save_LIBS=$LIBS
8020LIBS="-lm $LIBS"
d49ec2d1
KC
8021if test x$gcc_no_link = xyes; then
8022 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8023echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8024 { (exit 1); exit 1; }; }
8025fi
453310d8
RS
8026cat >conftest.$ac_ext <<_ACEOF
8027/* confdefs.h. */
8028_ACEOF
8029cat confdefs.h >>conftest.$ac_ext
8030cat >>conftest.$ac_ext <<_ACEOF
8031/* end confdefs.h. */
8032
8033/* Override any gcc2 internal prototype to avoid an error. */
8034#ifdef __cplusplus
8035extern "C"
8036#endif
8037/* We use char because int might match the return type of a gcc2
8038 builtin and then its argument prototype would still apply. */
8039char hypotf ();
8040int
8041main ()
8042{
8043hypotf ();
8044 ;
8045 return 0;
8046}
8047_ACEOF
8048rm -f conftest.$ac_objext conftest$ac_exeext
8049if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8050 (eval $ac_link) 2>conftest.er1
8051 ac_status=$?
8052 grep -v '^ *+' conftest.er1 >conftest.err
8053 rm -f conftest.er1
8054 cat conftest.err >&5
8055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8056 (exit $ac_status); } &&
bf4d99cf
TS
8057 { ac_try='test -z "$ac_c_werror_flag"
8058 || test ! -s conftest.err'
453310d8
RS
8059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8060 (eval $ac_try) 2>&5
8061 ac_status=$?
8062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8063 (exit $ac_status); }; } &&
8064 { ac_try='test -s conftest$ac_exeext'
8065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8066 (eval $ac_try) 2>&5
8067 ac_status=$?
8068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8069 (exit $ac_status); }; }; then
8070 ac_cv_lib_m_hypotf=yes
8071else
8072 echo "$as_me: failed program was:" >&5
8073sed 's/^/| /' conftest.$ac_ext >&5
8074
8075ac_cv_lib_m_hypotf=no
8076fi
8077rm -f conftest.err conftest.$ac_objext \
8078 conftest$ac_exeext conftest.$ac_ext
8079LIBS=$ac_check_lib_save_LIBS
8080fi
8081echo "$as_me:$LINENO: result: $ac_cv_lib_m_hypotf" >&5
8082echo "${ECHO_T}$ac_cv_lib_m_hypotf" >&6
8083if test $ac_cv_lib_m_hypotf = yes; then
8084
8085cat >>confdefs.h <<\_ACEOF
8086#define HAVE_HYPOTF 1
8087_ACEOF
8088
8089fi
8090
8091echo "$as_me:$LINENO: checking for logf in -lm" >&5
8092echo $ECHO_N "checking for logf in -lm... $ECHO_C" >&6
8093if test "${ac_cv_lib_m_logf+set}" = set; then
8094 echo $ECHO_N "(cached) $ECHO_C" >&6
8095else
8096 ac_check_lib_save_LIBS=$LIBS
8097LIBS="-lm $LIBS"
d49ec2d1
KC
8098if test x$gcc_no_link = xyes; then
8099 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8100echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8101 { (exit 1); exit 1; }; }
8102fi
453310d8
RS
8103cat >conftest.$ac_ext <<_ACEOF
8104/* confdefs.h. */
8105_ACEOF
8106cat confdefs.h >>conftest.$ac_ext
8107cat >>conftest.$ac_ext <<_ACEOF
8108/* end confdefs.h. */
8109
8110/* Override any gcc2 internal prototype to avoid an error. */
8111#ifdef __cplusplus
8112extern "C"
8113#endif
8114/* We use char because int might match the return type of a gcc2
8115 builtin and then its argument prototype would still apply. */
8116char logf ();
8117int
8118main ()
8119{
8120logf ();
8121 ;
8122 return 0;
8123}
8124_ACEOF
8125rm -f conftest.$ac_objext conftest$ac_exeext
8126if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8127 (eval $ac_link) 2>conftest.er1
8128 ac_status=$?
8129 grep -v '^ *+' conftest.er1 >conftest.err
8130 rm -f conftest.er1
8131 cat conftest.err >&5
8132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8133 (exit $ac_status); } &&
bf4d99cf
TS
8134 { ac_try='test -z "$ac_c_werror_flag"
8135 || test ! -s conftest.err'
453310d8
RS
8136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8137 (eval $ac_try) 2>&5
8138 ac_status=$?
8139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8140 (exit $ac_status); }; } &&
8141 { ac_try='test -s conftest$ac_exeext'
8142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8143 (eval $ac_try) 2>&5
8144 ac_status=$?
8145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8146 (exit $ac_status); }; }; then
8147 ac_cv_lib_m_logf=yes
8148else
8149 echo "$as_me: failed program was:" >&5
8150sed 's/^/| /' conftest.$ac_ext >&5
8151
8152ac_cv_lib_m_logf=no
8153fi
8154rm -f conftest.err conftest.$ac_objext \
8155 conftest$ac_exeext conftest.$ac_ext
8156LIBS=$ac_check_lib_save_LIBS
8157fi
8158echo "$as_me:$LINENO: result: $ac_cv_lib_m_logf" >&5
8159echo "${ECHO_T}$ac_cv_lib_m_logf" >&6
8160if test $ac_cv_lib_m_logf = yes; then
8161
8162cat >>confdefs.h <<\_ACEOF
8163#define HAVE_LOGF 1
8164_ACEOF
8165
8166fi
8167
8168echo "$as_me:$LINENO: checking for log10f in -lm" >&5
8169echo $ECHO_N "checking for log10f in -lm... $ECHO_C" >&6
8170if test "${ac_cv_lib_m_log10f+set}" = set; then
8171 echo $ECHO_N "(cached) $ECHO_C" >&6
8172else
8173 ac_check_lib_save_LIBS=$LIBS
8174LIBS="-lm $LIBS"
d49ec2d1
KC
8175if test x$gcc_no_link = xyes; then
8176 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8177echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8178 { (exit 1); exit 1; }; }
8179fi
453310d8
RS
8180cat >conftest.$ac_ext <<_ACEOF
8181/* confdefs.h. */
8182_ACEOF
8183cat confdefs.h >>conftest.$ac_ext
8184cat >>conftest.$ac_ext <<_ACEOF
8185/* end confdefs.h. */
8186
8187/* Override any gcc2 internal prototype to avoid an error. */
8188#ifdef __cplusplus
8189extern "C"
8190#endif
8191/* We use char because int might match the return type of a gcc2
8192 builtin and then its argument prototype would still apply. */
8193char log10f ();
8194int
8195main ()
8196{
8197log10f ();
8198 ;
8199 return 0;
8200}
8201_ACEOF
8202rm -f conftest.$ac_objext conftest$ac_exeext
8203if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8204 (eval $ac_link) 2>conftest.er1
8205 ac_status=$?
8206 grep -v '^ *+' conftest.er1 >conftest.err
8207 rm -f conftest.er1
8208 cat conftest.err >&5
8209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8210 (exit $ac_status); } &&
bf4d99cf
TS
8211 { ac_try='test -z "$ac_c_werror_flag"
8212 || test ! -s conftest.err'
453310d8
RS
8213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8214 (eval $ac_try) 2>&5
8215 ac_status=$?
8216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8217 (exit $ac_status); }; } &&
8218 { ac_try='test -s conftest$ac_exeext'
8219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8220 (eval $ac_try) 2>&5
8221 ac_status=$?
8222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8223 (exit $ac_status); }; }; then
8224 ac_cv_lib_m_log10f=yes
8225else
8226 echo "$as_me: failed program was:" >&5
8227sed 's/^/| /' conftest.$ac_ext >&5
8228
8229ac_cv_lib_m_log10f=no
8230fi
8231rm -f conftest.err conftest.$ac_objext \
8232 conftest$ac_exeext conftest.$ac_ext
8233LIBS=$ac_check_lib_save_LIBS
8234fi
8235echo "$as_me:$LINENO: result: $ac_cv_lib_m_log10f" >&5
8236echo "${ECHO_T}$ac_cv_lib_m_log10f" >&6
8237if test $ac_cv_lib_m_log10f = yes; then
8238
8239cat >>confdefs.h <<\_ACEOF
8240#define HAVE_LOG10F 1
8241_ACEOF
8242
8243fi
8244
8245echo "$as_me:$LINENO: checking for nextafter in -lm" >&5
8246echo $ECHO_N "checking for nextafter in -lm... $ECHO_C" >&6
8247if test "${ac_cv_lib_m_nextafter+set}" = set; then
8248 echo $ECHO_N "(cached) $ECHO_C" >&6
8249else
8250 ac_check_lib_save_LIBS=$LIBS
8251LIBS="-lm $LIBS"
d49ec2d1
KC
8252if test x$gcc_no_link = xyes; then
8253 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8254echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8255 { (exit 1); exit 1; }; }
8256fi
453310d8
RS
8257cat >conftest.$ac_ext <<_ACEOF
8258/* confdefs.h. */
8259_ACEOF
8260cat confdefs.h >>conftest.$ac_ext
8261cat >>conftest.$ac_ext <<_ACEOF
8262/* end confdefs.h. */
8263
8264/* Override any gcc2 internal prototype to avoid an error. */
8265#ifdef __cplusplus
8266extern "C"
8267#endif
8268/* We use char because int might match the return type of a gcc2
8269 builtin and then its argument prototype would still apply. */
8270char nextafter ();
8271int
8272main ()
8273{
8274nextafter ();
8275 ;
8276 return 0;
8277}
8278_ACEOF
8279rm -f conftest.$ac_objext conftest$ac_exeext
8280if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8281 (eval $ac_link) 2>conftest.er1
8282 ac_status=$?
8283 grep -v '^ *+' conftest.er1 >conftest.err
8284 rm -f conftest.er1
8285 cat conftest.err >&5
8286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8287 (exit $ac_status); } &&
bf4d99cf
TS
8288 { ac_try='test -z "$ac_c_werror_flag"
8289 || test ! -s conftest.err'
453310d8
RS
8290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8291 (eval $ac_try) 2>&5
8292 ac_status=$?
8293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8294 (exit $ac_status); }; } &&
8295 { ac_try='test -s conftest$ac_exeext'
8296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8297 (eval $ac_try) 2>&5
8298 ac_status=$?
8299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8300 (exit $ac_status); }; }; then
8301 ac_cv_lib_m_nextafter=yes
8302else
8303 echo "$as_me: failed program was:" >&5
8304sed 's/^/| /' conftest.$ac_ext >&5
8305
8306ac_cv_lib_m_nextafter=no
8307fi
8308rm -f conftest.err conftest.$ac_objext \
8309 conftest$ac_exeext conftest.$ac_ext
8310LIBS=$ac_check_lib_save_LIBS
8311fi
8312echo "$as_me:$LINENO: result: $ac_cv_lib_m_nextafter" >&5
8313echo "${ECHO_T}$ac_cv_lib_m_nextafter" >&6
8314if test $ac_cv_lib_m_nextafter = yes; then
8315
8316cat >>confdefs.h <<\_ACEOF
8317#define HAVE_NEXTAFTER 1
8318_ACEOF
8319
8320fi
8321
8322echo "$as_me:$LINENO: checking for nextafterf in -lm" >&5
8323echo $ECHO_N "checking for nextafterf in -lm... $ECHO_C" >&6
8324if test "${ac_cv_lib_m_nextafterf+set}" = set; then
8325 echo $ECHO_N "(cached) $ECHO_C" >&6
8326else
8327 ac_check_lib_save_LIBS=$LIBS
8328LIBS="-lm $LIBS"
d49ec2d1
KC
8329if test x$gcc_no_link = xyes; then
8330 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8331echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8332 { (exit 1); exit 1; }; }
8333fi
453310d8
RS
8334cat >conftest.$ac_ext <<_ACEOF
8335/* confdefs.h. */
8336_ACEOF
8337cat confdefs.h >>conftest.$ac_ext
8338cat >>conftest.$ac_ext <<_ACEOF
8339/* end confdefs.h. */
8340
8341/* Override any gcc2 internal prototype to avoid an error. */
8342#ifdef __cplusplus
8343extern "C"
8344#endif
8345/* We use char because int might match the return type of a gcc2
8346 builtin and then its argument prototype would still apply. */
8347char nextafterf ();
8348int
8349main ()
8350{
8351nextafterf ();
8352 ;
8353 return 0;
8354}
8355_ACEOF
8356rm -f conftest.$ac_objext conftest$ac_exeext
8357if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8358 (eval $ac_link) 2>conftest.er1
8359 ac_status=$?
8360 grep -v '^ *+' conftest.er1 >conftest.err
8361 rm -f conftest.er1
8362 cat conftest.err >&5
8363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8364 (exit $ac_status); } &&
bf4d99cf
TS
8365 { ac_try='test -z "$ac_c_werror_flag"
8366 || test ! -s conftest.err'
453310d8
RS
8367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8368 (eval $ac_try) 2>&5
8369 ac_status=$?
8370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8371 (exit $ac_status); }; } &&
8372 { ac_try='test -s conftest$ac_exeext'
8373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8374 (eval $ac_try) 2>&5
8375 ac_status=$?
8376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8377 (exit $ac_status); }; }; then
8378 ac_cv_lib_m_nextafterf=yes
8379else
8380 echo "$as_me: failed program was:" >&5
8381sed 's/^/| /' conftest.$ac_ext >&5
8382
8383ac_cv_lib_m_nextafterf=no
8384fi
8385rm -f conftest.err conftest.$ac_objext \
8386 conftest$ac_exeext conftest.$ac_ext
8387LIBS=$ac_check_lib_save_LIBS
8388fi
8389echo "$as_me:$LINENO: result: $ac_cv_lib_m_nextafterf" >&5
8390echo "${ECHO_T}$ac_cv_lib_m_nextafterf" >&6
8391if test $ac_cv_lib_m_nextafterf = yes; then
8392
8393cat >>confdefs.h <<\_ACEOF
8394#define HAVE_NEXTAFTERF 1
8395_ACEOF
8396
8397fi
8398
bf4d99cf
TS
8399echo "$as_me:$LINENO: checking for powf in -lm" >&5
8400echo $ECHO_N "checking for powf in -lm... $ECHO_C" >&6
8401if test "${ac_cv_lib_m_powf+set}" = set; then
8402 echo $ECHO_N "(cached) $ECHO_C" >&6
8403else
8404 ac_check_lib_save_LIBS=$LIBS
8405LIBS="-lm $LIBS"
d49ec2d1
KC
8406if test x$gcc_no_link = xyes; then
8407 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8408echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8409 { (exit 1); exit 1; }; }
8410fi
bf4d99cf
TS
8411cat >conftest.$ac_ext <<_ACEOF
8412/* confdefs.h. */
8413_ACEOF
8414cat confdefs.h >>conftest.$ac_ext
8415cat >>conftest.$ac_ext <<_ACEOF
8416/* end confdefs.h. */
8417
8418/* Override any gcc2 internal prototype to avoid an error. */
8419#ifdef __cplusplus
8420extern "C"
8421#endif
8422/* We use char because int might match the return type of a gcc2
8423 builtin and then its argument prototype would still apply. */
8424char powf ();
8425int
8426main ()
8427{
8428powf ();
8429 ;
8430 return 0;
8431}
8432_ACEOF
8433rm -f conftest.$ac_objext conftest$ac_exeext
8434if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8435 (eval $ac_link) 2>conftest.er1
8436 ac_status=$?
8437 grep -v '^ *+' conftest.er1 >conftest.err
8438 rm -f conftest.er1
8439 cat conftest.err >&5
8440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8441 (exit $ac_status); } &&
8442 { ac_try='test -z "$ac_c_werror_flag"
8443 || test ! -s conftest.err'
8444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8445 (eval $ac_try) 2>&5
8446 ac_status=$?
8447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8448 (exit $ac_status); }; } &&
8449 { ac_try='test -s conftest$ac_exeext'
8450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8451 (eval $ac_try) 2>&5
8452 ac_status=$?
8453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8454 (exit $ac_status); }; }; then
8455 ac_cv_lib_m_powf=yes
8456else
8457 echo "$as_me: failed program was:" >&5
8458sed 's/^/| /' conftest.$ac_ext >&5
8459
8460ac_cv_lib_m_powf=no
8461fi
8462rm -f conftest.err conftest.$ac_objext \
8463 conftest$ac_exeext conftest.$ac_ext
8464LIBS=$ac_check_lib_save_LIBS
8465fi
8466echo "$as_me:$LINENO: result: $ac_cv_lib_m_powf" >&5
8467echo "${ECHO_T}$ac_cv_lib_m_powf" >&6
8468if test $ac_cv_lib_m_powf = yes; then
8469
8470cat >>confdefs.h <<\_ACEOF
8471#define HAVE_POWF 1
8472_ACEOF
8473
8474fi
8475
a2a2059f
BD
8476echo "$as_me:$LINENO: checking for round in -lm" >&5
8477echo $ECHO_N "checking for round in -lm... $ECHO_C" >&6
8478if test "${ac_cv_lib_m_round+set}" = set; then
8479 echo $ECHO_N "(cached) $ECHO_C" >&6
8480else
8481 ac_check_lib_save_LIBS=$LIBS
8482LIBS="-lm $LIBS"
d49ec2d1
KC
8483if test x$gcc_no_link = xyes; then
8484 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8485echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8486 { (exit 1); exit 1; }; }
8487fi
a2a2059f
BD
8488cat >conftest.$ac_ext <<_ACEOF
8489/* confdefs.h. */
8490_ACEOF
8491cat confdefs.h >>conftest.$ac_ext
8492cat >>conftest.$ac_ext <<_ACEOF
8493/* end confdefs.h. */
8494
8495/* Override any gcc2 internal prototype to avoid an error. */
8496#ifdef __cplusplus
8497extern "C"
8498#endif
8499/* We use char because int might match the return type of a gcc2
8500 builtin and then its argument prototype would still apply. */
453310d8
RS
8501char round ();
8502int
8503main ()
8504{
8505round ();
8506 ;
8507 return 0;
8508}
8509_ACEOF
8510rm -f conftest.$ac_objext conftest$ac_exeext
8511if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8512 (eval $ac_link) 2>conftest.er1
8513 ac_status=$?
8514 grep -v '^ *+' conftest.er1 >conftest.err
8515 rm -f conftest.er1
8516 cat conftest.err >&5
8517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8518 (exit $ac_status); } &&
bf4d99cf
TS
8519 { ac_try='test -z "$ac_c_werror_flag"
8520 || test ! -s conftest.err'
453310d8
RS
8521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8522 (eval $ac_try) 2>&5
8523 ac_status=$?
8524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8525 (exit $ac_status); }; } &&
8526 { ac_try='test -s conftest$ac_exeext'
8527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8528 (eval $ac_try) 2>&5
8529 ac_status=$?
8530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8531 (exit $ac_status); }; }; then
8532 ac_cv_lib_m_round=yes
8533else
8534 echo "$as_me: failed program was:" >&5
8535sed 's/^/| /' conftest.$ac_ext >&5
8536
8537ac_cv_lib_m_round=no
8538fi
8539rm -f conftest.err conftest.$ac_objext \
8540 conftest$ac_exeext conftest.$ac_ext
8541LIBS=$ac_check_lib_save_LIBS
8542fi
8543echo "$as_me:$LINENO: result: $ac_cv_lib_m_round" >&5
8544echo "${ECHO_T}$ac_cv_lib_m_round" >&6
8545if test $ac_cv_lib_m_round = yes; then
8546
8547cat >>confdefs.h <<\_ACEOF
8548#define HAVE_ROUND 1
8549_ACEOF
8550
8551fi
8552
8553echo "$as_me:$LINENO: checking for roundf in -lm" >&5
8554echo $ECHO_N "checking for roundf in -lm... $ECHO_C" >&6
8555if test "${ac_cv_lib_m_roundf+set}" = set; then
8556 echo $ECHO_N "(cached) $ECHO_C" >&6
8557else
8558 ac_check_lib_save_LIBS=$LIBS
8559LIBS="-lm $LIBS"
d49ec2d1
KC
8560if test x$gcc_no_link = xyes; then
8561 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8562echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8563 { (exit 1); exit 1; }; }
8564fi
453310d8
RS
8565cat >conftest.$ac_ext <<_ACEOF
8566/* confdefs.h. */
8567_ACEOF
8568cat confdefs.h >>conftest.$ac_ext
8569cat >>conftest.$ac_ext <<_ACEOF
8570/* end confdefs.h. */
8571
8572/* Override any gcc2 internal prototype to avoid an error. */
8573#ifdef __cplusplus
8574extern "C"
8575#endif
8576/* We use char because int might match the return type of a gcc2
8577 builtin and then its argument prototype would still apply. */
8578char roundf ();
a2a2059f
BD
8579int
8580main ()
8581{
453310d8 8582roundf ();
a2a2059f
BD
8583 ;
8584 return 0;
8585}
8586_ACEOF
8587rm -f conftest.$ac_objext conftest$ac_exeext
8588if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8589 (eval $ac_link) 2>conftest.er1
8590 ac_status=$?
8591 grep -v '^ *+' conftest.er1 >conftest.err
8592 rm -f conftest.er1
8593 cat conftest.err >&5
8594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8595 (exit $ac_status); } &&
bf4d99cf
TS
8596 { ac_try='test -z "$ac_c_werror_flag"
8597 || test ! -s conftest.err'
a2a2059f
BD
8598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8599 (eval $ac_try) 2>&5
8600 ac_status=$?
8601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8602 (exit $ac_status); }; } &&
8603 { ac_try='test -s conftest$ac_exeext'
8604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8605 (eval $ac_try) 2>&5
8606 ac_status=$?
8607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8608 (exit $ac_status); }; }; then
453310d8 8609 ac_cv_lib_m_roundf=yes
a2a2059f
BD
8610else
8611 echo "$as_me: failed program was:" >&5
8612sed 's/^/| /' conftest.$ac_ext >&5
8613
453310d8 8614ac_cv_lib_m_roundf=no
a2a2059f
BD
8615fi
8616rm -f conftest.err conftest.$ac_objext \
8617 conftest$ac_exeext conftest.$ac_ext
8618LIBS=$ac_check_lib_save_LIBS
8619fi
453310d8
RS
8620echo "$as_me:$LINENO: result: $ac_cv_lib_m_roundf" >&5
8621echo "${ECHO_T}$ac_cv_lib_m_roundf" >&6
8622if test $ac_cv_lib_m_roundf = yes; then
a2a2059f
BD
8623
8624cat >>confdefs.h <<\_ACEOF
453310d8 8625#define HAVE_ROUNDF 1
a2a2059f
BD
8626_ACEOF
8627
8628fi
8629
453310d8
RS
8630echo "$as_me:$LINENO: checking for scalbnf in -lm" >&5
8631echo $ECHO_N "checking for scalbnf in -lm... $ECHO_C" >&6
8632if test "${ac_cv_lib_m_scalbnf+set}" = set; then
a2a2059f
BD
8633 echo $ECHO_N "(cached) $ECHO_C" >&6
8634else
8635 ac_check_lib_save_LIBS=$LIBS
8636LIBS="-lm $LIBS"
d49ec2d1
KC
8637if test x$gcc_no_link = xyes; then
8638 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8639echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8640 { (exit 1); exit 1; }; }
8641fi
a2a2059f
BD
8642cat >conftest.$ac_ext <<_ACEOF
8643/* confdefs.h. */
8644_ACEOF
8645cat confdefs.h >>conftest.$ac_ext
8646cat >>conftest.$ac_ext <<_ACEOF
8647/* end confdefs.h. */
8648
8649/* Override any gcc2 internal prototype to avoid an error. */
8650#ifdef __cplusplus
8651extern "C"
8652#endif
8653/* We use char because int might match the return type of a gcc2
8654 builtin and then its argument prototype would still apply. */
453310d8 8655char scalbnf ();
a2a2059f
BD
8656int
8657main ()
8658{
453310d8 8659scalbnf ();
a2a2059f
BD
8660 ;
8661 return 0;
8662}
8663_ACEOF
8664rm -f conftest.$ac_objext conftest$ac_exeext
8665if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8666 (eval $ac_link) 2>conftest.er1
8667 ac_status=$?
8668 grep -v '^ *+' conftest.er1 >conftest.err
8669 rm -f conftest.er1
8670 cat conftest.err >&5
8671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8672 (exit $ac_status); } &&
bf4d99cf
TS
8673 { ac_try='test -z "$ac_c_werror_flag"
8674 || test ! -s conftest.err'
a2a2059f
BD
8675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8676 (eval $ac_try) 2>&5
8677 ac_status=$?
8678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8679 (exit $ac_status); }; } &&
8680 { ac_try='test -s conftest$ac_exeext'
8681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8682 (eval $ac_try) 2>&5
8683 ac_status=$?
8684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8685 (exit $ac_status); }; }; then
453310d8 8686 ac_cv_lib_m_scalbnf=yes
a2a2059f
BD
8687else
8688 echo "$as_me: failed program was:" >&5
8689sed 's/^/| /' conftest.$ac_ext >&5
8690
453310d8 8691ac_cv_lib_m_scalbnf=no
a2a2059f
BD
8692fi
8693rm -f conftest.err conftest.$ac_objext \
8694 conftest$ac_exeext conftest.$ac_ext
8695LIBS=$ac_check_lib_save_LIBS
8696fi
453310d8
RS
8697echo "$as_me:$LINENO: result: $ac_cv_lib_m_scalbnf" >&5
8698echo "${ECHO_T}$ac_cv_lib_m_scalbnf" >&6
8699if test $ac_cv_lib_m_scalbnf = yes; then
a2a2059f
BD
8700
8701cat >>confdefs.h <<\_ACEOF
453310d8 8702#define HAVE_SCALBNF 1
a2a2059f
BD
8703_ACEOF
8704
8705fi
8706
453310d8
RS
8707echo "$as_me:$LINENO: checking for sinf in -lm" >&5
8708echo $ECHO_N "checking for sinf in -lm... $ECHO_C" >&6
8709if test "${ac_cv_lib_m_sinf+set}" = set; then
a9e7b9d3
PB
8710 echo $ECHO_N "(cached) $ECHO_C" >&6
8711else
8712 ac_check_lib_save_LIBS=$LIBS
8713LIBS="-lm $LIBS"
d49ec2d1
KC
8714if test x$gcc_no_link = xyes; then
8715 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8716echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8717 { (exit 1); exit 1; }; }
8718fi
a9e7b9d3
PB
8719cat >conftest.$ac_ext <<_ACEOF
8720/* confdefs.h. */
8721_ACEOF
8722cat confdefs.h >>conftest.$ac_ext
8723cat >>conftest.$ac_ext <<_ACEOF
8724/* end confdefs.h. */
8725
8726/* Override any gcc2 internal prototype to avoid an error. */
8727#ifdef __cplusplus
8728extern "C"
8729#endif
8730/* We use char because int might match the return type of a gcc2
8731 builtin and then its argument prototype would still apply. */
453310d8 8732char sinf ();
a9e7b9d3
PB
8733int
8734main ()
8735{
453310d8 8736sinf ();
a9e7b9d3
PB
8737 ;
8738 return 0;
8739}
8740_ACEOF
8741rm -f conftest.$ac_objext conftest$ac_exeext
8742if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8743 (eval $ac_link) 2>conftest.er1
8744 ac_status=$?
8745 grep -v '^ *+' conftest.er1 >conftest.err
8746 rm -f conftest.er1
8747 cat conftest.err >&5
8748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8749 (exit $ac_status); } &&
bf4d99cf
TS
8750 { ac_try='test -z "$ac_c_werror_flag"
8751 || test ! -s conftest.err'
a9e7b9d3
PB
8752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8753 (eval $ac_try) 2>&5
8754 ac_status=$?
8755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8756 (exit $ac_status); }; } &&
8757 { ac_try='test -s conftest$ac_exeext'
8758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8759 (eval $ac_try) 2>&5
8760 ac_status=$?
8761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8762 (exit $ac_status); }; }; then
453310d8 8763 ac_cv_lib_m_sinf=yes
a9e7b9d3
PB
8764else
8765 echo "$as_me: failed program was:" >&5
8766sed 's/^/| /' conftest.$ac_ext >&5
8767
453310d8 8768ac_cv_lib_m_sinf=no
a9e7b9d3
PB
8769fi
8770rm -f conftest.err conftest.$ac_objext \
8771 conftest$ac_exeext conftest.$ac_ext
8772LIBS=$ac_check_lib_save_LIBS
8773fi
453310d8
RS
8774echo "$as_me:$LINENO: result: $ac_cv_lib_m_sinf" >&5
8775echo "${ECHO_T}$ac_cv_lib_m_sinf" >&6
8776if test $ac_cv_lib_m_sinf = yes; then
a9e7b9d3
PB
8777
8778cat >>confdefs.h <<\_ACEOF
453310d8 8779#define HAVE_SINF 1
a9e7b9d3
PB
8780_ACEOF
8781
8782fi
8783
453310d8
RS
8784echo "$as_me:$LINENO: checking for sinhf in -lm" >&5
8785echo $ECHO_N "checking for sinhf in -lm... $ECHO_C" >&6
8786if test "${ac_cv_lib_m_sinhf+set}" = set; then
a9e7b9d3
PB
8787 echo $ECHO_N "(cached) $ECHO_C" >&6
8788else
8789 ac_check_lib_save_LIBS=$LIBS
8790LIBS="-lm $LIBS"
d49ec2d1
KC
8791if test x$gcc_no_link = xyes; then
8792 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8793echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8794 { (exit 1); exit 1; }; }
8795fi
a9e7b9d3
PB
8796cat >conftest.$ac_ext <<_ACEOF
8797/* confdefs.h. */
8798_ACEOF
8799cat confdefs.h >>conftest.$ac_ext
8800cat >>conftest.$ac_ext <<_ACEOF
8801/* end confdefs.h. */
8802
8803/* Override any gcc2 internal prototype to avoid an error. */
8804#ifdef __cplusplus
8805extern "C"
8806#endif
8807/* We use char because int might match the return type of a gcc2
8808 builtin and then its argument prototype would still apply. */
453310d8 8809char sinhf ();
a9e7b9d3
PB
8810int
8811main ()
8812{
453310d8 8813sinhf ();
a9e7b9d3
PB
8814 ;
8815 return 0;
8816}
8817_ACEOF
8818rm -f conftest.$ac_objext conftest$ac_exeext
8819if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8820 (eval $ac_link) 2>conftest.er1
8821 ac_status=$?
8822 grep -v '^ *+' conftest.er1 >conftest.err
8823 rm -f conftest.er1
8824 cat conftest.err >&5
8825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8826 (exit $ac_status); } &&
bf4d99cf
TS
8827 { ac_try='test -z "$ac_c_werror_flag"
8828 || test ! -s conftest.err'
a9e7b9d3
PB
8829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8830 (eval $ac_try) 2>&5
8831 ac_status=$?
8832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8833 (exit $ac_status); }; } &&
8834 { ac_try='test -s conftest$ac_exeext'
8835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8836 (eval $ac_try) 2>&5
8837 ac_status=$?
8838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8839 (exit $ac_status); }; }; then
453310d8 8840 ac_cv_lib_m_sinhf=yes
a9e7b9d3
PB
8841else
8842 echo "$as_me: failed program was:" >&5
8843sed 's/^/| /' conftest.$ac_ext >&5
8844
453310d8 8845ac_cv_lib_m_sinhf=no
a9e7b9d3
PB
8846fi
8847rm -f conftest.err conftest.$ac_objext \
8848 conftest$ac_exeext conftest.$ac_ext
8849LIBS=$ac_check_lib_save_LIBS
8850fi
453310d8
RS
8851echo "$as_me:$LINENO: result: $ac_cv_lib_m_sinhf" >&5
8852echo "${ECHO_T}$ac_cv_lib_m_sinhf" >&6
8853if test $ac_cv_lib_m_sinhf = yes; then
a9e7b9d3
PB
8854
8855cat >>confdefs.h <<\_ACEOF
453310d8
RS
8856#define HAVE_SINHF 1
8857_ACEOF
8858
8859fi
8860
8861echo "$as_me:$LINENO: checking for sqrtf in -lm" >&5
8862echo $ECHO_N "checking for sqrtf in -lm... $ECHO_C" >&6
8863if test "${ac_cv_lib_m_sqrtf+set}" = set; then
8864 echo $ECHO_N "(cached) $ECHO_C" >&6
8865else
8866 ac_check_lib_save_LIBS=$LIBS
8867LIBS="-lm $LIBS"
d49ec2d1
KC
8868if test x$gcc_no_link = xyes; then
8869 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8870echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8871 { (exit 1); exit 1; }; }
8872fi
453310d8
RS
8873cat >conftest.$ac_ext <<_ACEOF
8874/* confdefs.h. */
8875_ACEOF
8876cat confdefs.h >>conftest.$ac_ext
8877cat >>conftest.$ac_ext <<_ACEOF
8878/* end confdefs.h. */
8879
8880/* Override any gcc2 internal prototype to avoid an error. */
8881#ifdef __cplusplus
8882extern "C"
8883#endif
8884/* We use char because int might match the return type of a gcc2
8885 builtin and then its argument prototype would still apply. */
8886char sqrtf ();
8887int
8888main ()
8889{
8890sqrtf ();
8891 ;
8892 return 0;
8893}
8894_ACEOF
8895rm -f conftest.$ac_objext conftest$ac_exeext
8896if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8897 (eval $ac_link) 2>conftest.er1
8898 ac_status=$?
8899 grep -v '^ *+' conftest.er1 >conftest.err
8900 rm -f conftest.er1
8901 cat conftest.err >&5
8902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8903 (exit $ac_status); } &&
bf4d99cf
TS
8904 { ac_try='test -z "$ac_c_werror_flag"
8905 || test ! -s conftest.err'
453310d8
RS
8906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8907 (eval $ac_try) 2>&5
8908 ac_status=$?
8909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8910 (exit $ac_status); }; } &&
8911 { ac_try='test -s conftest$ac_exeext'
8912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8913 (eval $ac_try) 2>&5
8914 ac_status=$?
8915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8916 (exit $ac_status); }; }; then
8917 ac_cv_lib_m_sqrtf=yes
8918else
8919 echo "$as_me: failed program was:" >&5
8920sed 's/^/| /' conftest.$ac_ext >&5
8921
8922ac_cv_lib_m_sqrtf=no
8923fi
8924rm -f conftest.err conftest.$ac_objext \
8925 conftest$ac_exeext conftest.$ac_ext
8926LIBS=$ac_check_lib_save_LIBS
8927fi
8928echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrtf" >&5
8929echo "${ECHO_T}$ac_cv_lib_m_sqrtf" >&6
8930if test $ac_cv_lib_m_sqrtf = yes; then
8931
8932cat >>confdefs.h <<\_ACEOF
8933#define HAVE_SQRTF 1
8934_ACEOF
8935
8936fi
8937
8938echo "$as_me:$LINENO: checking for tanf in -lm" >&5
8939echo $ECHO_N "checking for tanf in -lm... $ECHO_C" >&6
8940if test "${ac_cv_lib_m_tanf+set}" = set; then
8941 echo $ECHO_N "(cached) $ECHO_C" >&6
8942else
8943 ac_check_lib_save_LIBS=$LIBS
8944LIBS="-lm $LIBS"
d49ec2d1
KC
8945if test x$gcc_no_link = xyes; then
8946 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8947echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8948 { (exit 1); exit 1; }; }
8949fi
453310d8
RS
8950cat >conftest.$ac_ext <<_ACEOF
8951/* confdefs.h. */
8952_ACEOF
8953cat confdefs.h >>conftest.$ac_ext
8954cat >>conftest.$ac_ext <<_ACEOF
8955/* end confdefs.h. */
8956
8957/* Override any gcc2 internal prototype to avoid an error. */
8958#ifdef __cplusplus
8959extern "C"
8960#endif
8961/* We use char because int might match the return type of a gcc2
8962 builtin and then its argument prototype would still apply. */
8963char tanf ();
8964int
8965main ()
8966{
8967tanf ();
8968 ;
8969 return 0;
8970}
8971_ACEOF
8972rm -f conftest.$ac_objext conftest$ac_exeext
8973if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8974 (eval $ac_link) 2>conftest.er1
8975 ac_status=$?
8976 grep -v '^ *+' conftest.er1 >conftest.err
8977 rm -f conftest.er1
8978 cat conftest.err >&5
8979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8980 (exit $ac_status); } &&
bf4d99cf
TS
8981 { ac_try='test -z "$ac_c_werror_flag"
8982 || test ! -s conftest.err'
453310d8
RS
8983 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8984 (eval $ac_try) 2>&5
8985 ac_status=$?
8986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8987 (exit $ac_status); }; } &&
8988 { ac_try='test -s conftest$ac_exeext'
8989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8990 (eval $ac_try) 2>&5
8991 ac_status=$?
8992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8993 (exit $ac_status); }; }; then
8994 ac_cv_lib_m_tanf=yes
8995else
8996 echo "$as_me: failed program was:" >&5
8997sed 's/^/| /' conftest.$ac_ext >&5
8998
8999ac_cv_lib_m_tanf=no
9000fi
9001rm -f conftest.err conftest.$ac_objext \
9002 conftest$ac_exeext conftest.$ac_ext
9003LIBS=$ac_check_lib_save_LIBS
9004fi
9005echo "$as_me:$LINENO: result: $ac_cv_lib_m_tanf" >&5
9006echo "${ECHO_T}$ac_cv_lib_m_tanf" >&6
9007if test $ac_cv_lib_m_tanf = yes; then
9008
9009cat >>confdefs.h <<\_ACEOF
9010#define HAVE_TANF 1
9011_ACEOF
9012
9013fi
9014
9015echo "$as_me:$LINENO: checking for tanhf in -lm" >&5
9016echo $ECHO_N "checking for tanhf in -lm... $ECHO_C" >&6
9017if test "${ac_cv_lib_m_tanhf+set}" = set; then
9018 echo $ECHO_N "(cached) $ECHO_C" >&6
9019else
9020 ac_check_lib_save_LIBS=$LIBS
9021LIBS="-lm $LIBS"
d49ec2d1
KC
9022if test x$gcc_no_link = xyes; then
9023 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9024echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9025 { (exit 1); exit 1; }; }
9026fi
453310d8
RS
9027cat >conftest.$ac_ext <<_ACEOF
9028/* confdefs.h. */
9029_ACEOF
9030cat confdefs.h >>conftest.$ac_ext
9031cat >>conftest.$ac_ext <<_ACEOF
9032/* end confdefs.h. */
9033
9034/* Override any gcc2 internal prototype to avoid an error. */
9035#ifdef __cplusplus
9036extern "C"
9037#endif
9038/* We use char because int might match the return type of a gcc2
9039 builtin and then its argument prototype would still apply. */
9040char tanhf ();
9041int
9042main ()
9043{
9044tanhf ();
9045 ;
9046 return 0;
9047}
9048_ACEOF
9049rm -f conftest.$ac_objext conftest$ac_exeext
9050if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9051 (eval $ac_link) 2>conftest.er1
9052 ac_status=$?
9053 grep -v '^ *+' conftest.er1 >conftest.err
9054 rm -f conftest.er1
9055 cat conftest.err >&5
9056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9057 (exit $ac_status); } &&
bf4d99cf
TS
9058 { ac_try='test -z "$ac_c_werror_flag"
9059 || test ! -s conftest.err'
453310d8
RS
9060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9061 (eval $ac_try) 2>&5
9062 ac_status=$?
9063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9064 (exit $ac_status); }; } &&
9065 { ac_try='test -s conftest$ac_exeext'
9066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9067 (eval $ac_try) 2>&5
9068 ac_status=$?
9069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9070 (exit $ac_status); }; }; then
9071 ac_cv_lib_m_tanhf=yes
9072else
9073 echo "$as_me: failed program was:" >&5
9074sed 's/^/| /' conftest.$ac_ext >&5
9075
9076ac_cv_lib_m_tanhf=no
9077fi
9078rm -f conftest.err conftest.$ac_objext \
9079 conftest$ac_exeext conftest.$ac_ext
9080LIBS=$ac_check_lib_save_LIBS
9081fi
9082echo "$as_me:$LINENO: result: $ac_cv_lib_m_tanhf" >&5
9083echo "${ECHO_T}$ac_cv_lib_m_tanhf" >&6
9084if test $ac_cv_lib_m_tanhf = yes; then
9085
9086cat >>confdefs.h <<\_ACEOF
9087#define HAVE_TANHF 1
a9e7b9d3
PB
9088_ACEOF
9089
9090fi
9091
e8525382
SK
9092echo "$as_me:$LINENO: checking for erf in -lm" >&5
9093echo $ECHO_N "checking for erf in -lm... $ECHO_C" >&6
9094if test "${ac_cv_lib_m_erf+set}" = set; then
9095 echo $ECHO_N "(cached) $ECHO_C" >&6
9096else
9097 ac_check_lib_save_LIBS=$LIBS
9098LIBS="-lm $LIBS"
d49ec2d1
KC
9099if test x$gcc_no_link = xyes; then
9100 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9101echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9102 { (exit 1); exit 1; }; }
9103fi
e8525382
SK
9104cat >conftest.$ac_ext <<_ACEOF
9105/* confdefs.h. */
9106_ACEOF
9107cat confdefs.h >>conftest.$ac_ext
9108cat >>conftest.$ac_ext <<_ACEOF
9109/* end confdefs.h. */
9110
9111/* Override any gcc2 internal prototype to avoid an error. */
9112#ifdef __cplusplus
9113extern "C"
9114#endif
9115/* We use char because int might match the return type of a gcc2
9116 builtin and then its argument prototype would still apply. */
9117char erf ();
9118int
9119main ()
9120{
9121erf ();
9122 ;
9123 return 0;
9124}
9125_ACEOF
9126rm -f conftest.$ac_objext conftest$ac_exeext
9127if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9128 (eval $ac_link) 2>conftest.er1
9129 ac_status=$?
9130 grep -v '^ *+' conftest.er1 >conftest.err
9131 rm -f conftest.er1
9132 cat conftest.err >&5
9133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9134 (exit $ac_status); } &&
bf4d99cf
TS
9135 { ac_try='test -z "$ac_c_werror_flag"
9136 || test ! -s conftest.err'
e8525382
SK
9137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9138 (eval $ac_try) 2>&5
9139 ac_status=$?
9140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9141 (exit $ac_status); }; } &&
9142 { ac_try='test -s conftest$ac_exeext'
9143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9144 (eval $ac_try) 2>&5
9145 ac_status=$?
9146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9147 (exit $ac_status); }; }; then
9148 ac_cv_lib_m_erf=yes
9149else
9150 echo "$as_me: failed program was:" >&5
9151sed 's/^/| /' conftest.$ac_ext >&5
9152
9153ac_cv_lib_m_erf=no
9154fi
9155rm -f conftest.err conftest.$ac_objext \
9156 conftest$ac_exeext conftest.$ac_ext
9157LIBS=$ac_check_lib_save_LIBS
9158fi
9159echo "$as_me:$LINENO: result: $ac_cv_lib_m_erf" >&5
9160echo "${ECHO_T}$ac_cv_lib_m_erf" >&6
9161if test $ac_cv_lib_m_erf = yes; then
9162
9163cat >>confdefs.h <<\_ACEOF
9164#define HAVE_ERF 1
9165_ACEOF
9166
9167fi
9168
9169echo "$as_me:$LINENO: checking for erfc in -lm" >&5
9170echo $ECHO_N "checking for erfc in -lm... $ECHO_C" >&6
9171if test "${ac_cv_lib_m_erfc+set}" = set; then
9172 echo $ECHO_N "(cached) $ECHO_C" >&6
9173else
9174 ac_check_lib_save_LIBS=$LIBS
9175LIBS="-lm $LIBS"
d49ec2d1
KC
9176if test x$gcc_no_link = xyes; then
9177 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9178echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9179 { (exit 1); exit 1; }; }
9180fi
e8525382
SK
9181cat >conftest.$ac_ext <<_ACEOF
9182/* confdefs.h. */
9183_ACEOF
9184cat confdefs.h >>conftest.$ac_ext
9185cat >>conftest.$ac_ext <<_ACEOF
9186/* end confdefs.h. */
9187
9188/* Override any gcc2 internal prototype to avoid an error. */
9189#ifdef __cplusplus
9190extern "C"
9191#endif
9192/* We use char because int might match the return type of a gcc2
9193 builtin and then its argument prototype would still apply. */
9194char erfc ();
9195int
9196main ()
9197{
9198erfc ();
9199 ;
9200 return 0;
9201}
9202_ACEOF
9203rm -f conftest.$ac_objext conftest$ac_exeext
9204if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9205 (eval $ac_link) 2>conftest.er1
9206 ac_status=$?
9207 grep -v '^ *+' conftest.er1 >conftest.err
9208 rm -f conftest.er1
9209 cat conftest.err >&5
9210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9211 (exit $ac_status); } &&
bf4d99cf
TS
9212 { ac_try='test -z "$ac_c_werror_flag"
9213 || test ! -s conftest.err'
e8525382
SK
9214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9215 (eval $ac_try) 2>&5
9216 ac_status=$?
9217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9218 (exit $ac_status); }; } &&
9219 { ac_try='test -s conftest$ac_exeext'
9220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9221 (eval $ac_try) 2>&5
9222 ac_status=$?
9223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9224 (exit $ac_status); }; }; then
9225 ac_cv_lib_m_erfc=yes
9226else
9227 echo "$as_me: failed program was:" >&5
9228sed 's/^/| /' conftest.$ac_ext >&5
9229
9230ac_cv_lib_m_erfc=no
9231fi
9232rm -f conftest.err conftest.$ac_objext \
9233 conftest$ac_exeext conftest.$ac_ext
9234LIBS=$ac_check_lib_save_LIBS
9235fi
9236echo "$as_me:$LINENO: result: $ac_cv_lib_m_erfc" >&5
9237echo "${ECHO_T}$ac_cv_lib_m_erfc" >&6
9238if test $ac_cv_lib_m_erfc = yes; then
9239
9240cat >>confdefs.h <<\_ACEOF
9241#define HAVE_ERFC 1
9242_ACEOF
9243
9244fi
9245
9246echo "$as_me:$LINENO: checking for erfcf in -lm" >&5
9247echo $ECHO_N "checking for erfcf in -lm... $ECHO_C" >&6
9248if test "${ac_cv_lib_m_erfcf+set}" = set; then
9249 echo $ECHO_N "(cached) $ECHO_C" >&6
9250else
9251 ac_check_lib_save_LIBS=$LIBS
9252LIBS="-lm $LIBS"
d49ec2d1
KC
9253if test x$gcc_no_link = xyes; then
9254 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9255echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9256 { (exit 1); exit 1; }; }
9257fi
e8525382
SK
9258cat >conftest.$ac_ext <<_ACEOF
9259/* confdefs.h. */
9260_ACEOF
9261cat confdefs.h >>conftest.$ac_ext
9262cat >>conftest.$ac_ext <<_ACEOF
9263/* end confdefs.h. */
9264
9265/* Override any gcc2 internal prototype to avoid an error. */
9266#ifdef __cplusplus
9267extern "C"
9268#endif
9269/* We use char because int might match the return type of a gcc2
9270 builtin and then its argument prototype would still apply. */
9271char erfcf ();
9272int
9273main ()
9274{
9275erfcf ();
9276 ;
9277 return 0;
9278}
9279_ACEOF
9280rm -f conftest.$ac_objext conftest$ac_exeext
9281if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9282 (eval $ac_link) 2>conftest.er1
9283 ac_status=$?
9284 grep -v '^ *+' conftest.er1 >conftest.err
9285 rm -f conftest.er1
9286 cat conftest.err >&5
9287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9288 (exit $ac_status); } &&
bf4d99cf
TS
9289 { ac_try='test -z "$ac_c_werror_flag"
9290 || test ! -s conftest.err'
e8525382
SK
9291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9292 (eval $ac_try) 2>&5
9293 ac_status=$?
9294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9295 (exit $ac_status); }; } &&
9296 { ac_try='test -s conftest$ac_exeext'
9297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9298 (eval $ac_try) 2>&5
9299 ac_status=$?
9300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9301 (exit $ac_status); }; }; then
9302 ac_cv_lib_m_erfcf=yes
9303else
9304 echo "$as_me: failed program was:" >&5
9305sed 's/^/| /' conftest.$ac_ext >&5
9306
9307ac_cv_lib_m_erfcf=no
9308fi
9309rm -f conftest.err conftest.$ac_objext \
9310 conftest$ac_exeext conftest.$ac_ext
9311LIBS=$ac_check_lib_save_LIBS
9312fi
9313echo "$as_me:$LINENO: result: $ac_cv_lib_m_erfcf" >&5
9314echo "${ECHO_T}$ac_cv_lib_m_erfcf" >&6
9315if test $ac_cv_lib_m_erfcf = yes; then
9316
9317cat >>confdefs.h <<\_ACEOF
9318#define HAVE_ERFCF 1
9319_ACEOF
9320
9321fi
9322
9323echo "$as_me:$LINENO: checking for erff in -lm" >&5
9324echo $ECHO_N "checking for erff in -lm... $ECHO_C" >&6
9325if test "${ac_cv_lib_m_erff+set}" = set; then
9326 echo $ECHO_N "(cached) $ECHO_C" >&6
9327else
9328 ac_check_lib_save_LIBS=$LIBS
9329LIBS="-lm $LIBS"
d49ec2d1
KC
9330if test x$gcc_no_link = xyes; then
9331 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9332echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9333 { (exit 1); exit 1; }; }
9334fi
e8525382
SK
9335cat >conftest.$ac_ext <<_ACEOF
9336/* confdefs.h. */
9337_ACEOF
9338cat confdefs.h >>conftest.$ac_ext
9339cat >>conftest.$ac_ext <<_ACEOF
9340/* end confdefs.h. */
9341
9342/* Override any gcc2 internal prototype to avoid an error. */
9343#ifdef __cplusplus
9344extern "C"
9345#endif
9346/* We use char because int might match the return type of a gcc2
9347 builtin and then its argument prototype would still apply. */
9348char erff ();
9349int
9350main ()
9351{
9352erff ();
9353 ;
9354 return 0;
9355}
9356_ACEOF
9357rm -f conftest.$ac_objext conftest$ac_exeext
9358if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9359 (eval $ac_link) 2>conftest.er1
9360 ac_status=$?
9361 grep -v '^ *+' conftest.er1 >conftest.err
9362 rm -f conftest.er1
9363 cat conftest.err >&5
9364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9365 (exit $ac_status); } &&
bf4d99cf
TS
9366 { ac_try='test -z "$ac_c_werror_flag"
9367 || test ! -s conftest.err'
e8525382
SK
9368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9369 (eval $ac_try) 2>&5
9370 ac_status=$?
9371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9372 (exit $ac_status); }; } &&
9373 { ac_try='test -s conftest$ac_exeext'
9374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9375 (eval $ac_try) 2>&5
9376 ac_status=$?
9377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9378 (exit $ac_status); }; }; then
9379 ac_cv_lib_m_erff=yes
9380else
9381 echo "$as_me: failed program was:" >&5
9382sed 's/^/| /' conftest.$ac_ext >&5
9383
9384ac_cv_lib_m_erff=no
9385fi
9386rm -f conftest.err conftest.$ac_objext \
9387 conftest$ac_exeext conftest.$ac_ext
9388LIBS=$ac_check_lib_save_LIBS
9389fi
9390echo "$as_me:$LINENO: result: $ac_cv_lib_m_erff" >&5
9391echo "${ECHO_T}$ac_cv_lib_m_erff" >&6
9392if test $ac_cv_lib_m_erff = yes; then
9393
9394cat >>confdefs.h <<\_ACEOF
9395#define HAVE_ERFF 1
9396_ACEOF
9397
9398fi
9399
9400echo "$as_me:$LINENO: checking for j0 in -lm" >&5
9401echo $ECHO_N "checking for j0 in -lm... $ECHO_C" >&6
9402if test "${ac_cv_lib_m_j0+set}" = set; then
9403 echo $ECHO_N "(cached) $ECHO_C" >&6
9404else
9405 ac_check_lib_save_LIBS=$LIBS
9406LIBS="-lm $LIBS"
d49ec2d1
KC
9407if test x$gcc_no_link = xyes; then
9408 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9409echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9410 { (exit 1); exit 1; }; }
9411fi
e8525382
SK
9412cat >conftest.$ac_ext <<_ACEOF
9413/* confdefs.h. */
9414_ACEOF
9415cat confdefs.h >>conftest.$ac_ext
9416cat >>conftest.$ac_ext <<_ACEOF
9417/* end confdefs.h. */
9418
9419/* Override any gcc2 internal prototype to avoid an error. */
9420#ifdef __cplusplus
9421extern "C"
9422#endif
9423/* We use char because int might match the return type of a gcc2
9424 builtin and then its argument prototype would still apply. */
9425char j0 ();
9426int
9427main ()
9428{
9429j0 ();
9430 ;
9431 return 0;
9432}
9433_ACEOF
9434rm -f conftest.$ac_objext conftest$ac_exeext
9435if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9436 (eval $ac_link) 2>conftest.er1
9437 ac_status=$?
9438 grep -v '^ *+' conftest.er1 >conftest.err
9439 rm -f conftest.er1
9440 cat conftest.err >&5
9441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9442 (exit $ac_status); } &&
bf4d99cf
TS
9443 { ac_try='test -z "$ac_c_werror_flag"
9444 || test ! -s conftest.err'
e8525382
SK
9445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9446 (eval $ac_try) 2>&5
9447 ac_status=$?
9448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9449 (exit $ac_status); }; } &&
9450 { ac_try='test -s conftest$ac_exeext'
9451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9452 (eval $ac_try) 2>&5
9453 ac_status=$?
9454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9455 (exit $ac_status); }; }; then
9456 ac_cv_lib_m_j0=yes
9457else
9458 echo "$as_me: failed program was:" >&5
9459sed 's/^/| /' conftest.$ac_ext >&5
9460
9461ac_cv_lib_m_j0=no
9462fi
9463rm -f conftest.err conftest.$ac_objext \
9464 conftest$ac_exeext conftest.$ac_ext
9465LIBS=$ac_check_lib_save_LIBS
9466fi
9467echo "$as_me:$LINENO: result: $ac_cv_lib_m_j0" >&5
9468echo "${ECHO_T}$ac_cv_lib_m_j0" >&6
9469if test $ac_cv_lib_m_j0 = yes; then
9470
9471cat >>confdefs.h <<\_ACEOF
9472#define HAVE_J0 1
9473_ACEOF
9474
9475fi
9476
9477echo "$as_me:$LINENO: checking for j0f in -lm" >&5
9478echo $ECHO_N "checking for j0f in -lm... $ECHO_C" >&6
9479if test "${ac_cv_lib_m_j0f+set}" = set; then
9480 echo $ECHO_N "(cached) $ECHO_C" >&6
9481else
9482 ac_check_lib_save_LIBS=$LIBS
9483LIBS="-lm $LIBS"
d49ec2d1
KC
9484if test x$gcc_no_link = xyes; then
9485 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9486echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9487 { (exit 1); exit 1; }; }
9488fi
e8525382
SK
9489cat >conftest.$ac_ext <<_ACEOF
9490/* confdefs.h. */
9491_ACEOF
9492cat confdefs.h >>conftest.$ac_ext
9493cat >>conftest.$ac_ext <<_ACEOF
9494/* end confdefs.h. */
9495
9496/* Override any gcc2 internal prototype to avoid an error. */
9497#ifdef __cplusplus
9498extern "C"
9499#endif
9500/* We use char because int might match the return type of a gcc2
9501 builtin and then its argument prototype would still apply. */
9502char j0f ();
9503int
9504main ()
9505{
9506j0f ();
9507 ;
9508 return 0;
9509}
9510_ACEOF
9511rm -f conftest.$ac_objext conftest$ac_exeext
9512if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9513 (eval $ac_link) 2>conftest.er1
9514 ac_status=$?
9515 grep -v '^ *+' conftest.er1 >conftest.err
9516 rm -f conftest.er1
9517 cat conftest.err >&5
9518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9519 (exit $ac_status); } &&
bf4d99cf
TS
9520 { ac_try='test -z "$ac_c_werror_flag"
9521 || test ! -s conftest.err'
e8525382
SK
9522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9523 (eval $ac_try) 2>&5
9524 ac_status=$?
9525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9526 (exit $ac_status); }; } &&
9527 { ac_try='test -s conftest$ac_exeext'
9528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9529 (eval $ac_try) 2>&5
9530 ac_status=$?
9531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9532 (exit $ac_status); }; }; then
9533 ac_cv_lib_m_j0f=yes
9534else
9535 echo "$as_me: failed program was:" >&5
9536sed 's/^/| /' conftest.$ac_ext >&5
9537
9538ac_cv_lib_m_j0f=no
9539fi
9540rm -f conftest.err conftest.$ac_objext \
9541 conftest$ac_exeext conftest.$ac_ext
9542LIBS=$ac_check_lib_save_LIBS
9543fi
9544echo "$as_me:$LINENO: result: $ac_cv_lib_m_j0f" >&5
9545echo "${ECHO_T}$ac_cv_lib_m_j0f" >&6
9546if test $ac_cv_lib_m_j0f = yes; then
9547
9548cat >>confdefs.h <<\_ACEOF
9549#define HAVE_J0F 1
9550_ACEOF
9551
9552fi
9553
9554echo "$as_me:$LINENO: checking for j1 in -lm" >&5
9555echo $ECHO_N "checking for j1 in -lm... $ECHO_C" >&6
9556if test "${ac_cv_lib_m_j1+set}" = set; then
9557 echo $ECHO_N "(cached) $ECHO_C" >&6
9558else
9559 ac_check_lib_save_LIBS=$LIBS
9560LIBS="-lm $LIBS"
d49ec2d1
KC
9561if test x$gcc_no_link = xyes; then
9562 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9563echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9564 { (exit 1); exit 1; }; }
9565fi
e8525382
SK
9566cat >conftest.$ac_ext <<_ACEOF
9567/* confdefs.h. */
9568_ACEOF
9569cat confdefs.h >>conftest.$ac_ext
9570cat >>conftest.$ac_ext <<_ACEOF
9571/* end confdefs.h. */
9572
9573/* Override any gcc2 internal prototype to avoid an error. */
9574#ifdef __cplusplus
9575extern "C"
9576#endif
9577/* We use char because int might match the return type of a gcc2
9578 builtin and then its argument prototype would still apply. */
9579char j1 ();
9580int
9581main ()
9582{
9583j1 ();
9584 ;
9585 return 0;
9586}
9587_ACEOF
9588rm -f conftest.$ac_objext conftest$ac_exeext
9589if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9590 (eval $ac_link) 2>conftest.er1
9591 ac_status=$?
9592 grep -v '^ *+' conftest.er1 >conftest.err
9593 rm -f conftest.er1
9594 cat conftest.err >&5
9595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9596 (exit $ac_status); } &&
bf4d99cf
TS
9597 { ac_try='test -z "$ac_c_werror_flag"
9598 || test ! -s conftest.err'
e8525382
SK
9599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9600 (eval $ac_try) 2>&5
9601 ac_status=$?
9602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9603 (exit $ac_status); }; } &&
9604 { ac_try='test -s conftest$ac_exeext'
9605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9606 (eval $ac_try) 2>&5
9607 ac_status=$?
9608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9609 (exit $ac_status); }; }; then
9610 ac_cv_lib_m_j1=yes
9611else
9612 echo "$as_me: failed program was:" >&5
9613sed 's/^/| /' conftest.$ac_ext >&5
9614
9615ac_cv_lib_m_j1=no
9616fi
9617rm -f conftest.err conftest.$ac_objext \
9618 conftest$ac_exeext conftest.$ac_ext
9619LIBS=$ac_check_lib_save_LIBS
9620fi
9621echo "$as_me:$LINENO: result: $ac_cv_lib_m_j1" >&5
9622echo "${ECHO_T}$ac_cv_lib_m_j1" >&6
9623if test $ac_cv_lib_m_j1 = yes; then
9624
9625cat >>confdefs.h <<\_ACEOF
9626#define HAVE_J1 1
9627_ACEOF
9628
9629fi
9630
9631echo "$as_me:$LINENO: checking for j1f in -lm" >&5
9632echo $ECHO_N "checking for j1f in -lm... $ECHO_C" >&6
9633if test "${ac_cv_lib_m_j1f+set}" = set; then
9634 echo $ECHO_N "(cached) $ECHO_C" >&6
9635else
9636 ac_check_lib_save_LIBS=$LIBS
9637LIBS="-lm $LIBS"
d49ec2d1
KC
9638if test x$gcc_no_link = xyes; then
9639 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9640echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9641 { (exit 1); exit 1; }; }
9642fi
e8525382
SK
9643cat >conftest.$ac_ext <<_ACEOF
9644/* confdefs.h. */
9645_ACEOF
9646cat confdefs.h >>conftest.$ac_ext
9647cat >>conftest.$ac_ext <<_ACEOF
9648/* end confdefs.h. */
9649
9650/* Override any gcc2 internal prototype to avoid an error. */
9651#ifdef __cplusplus
9652extern "C"
9653#endif
9654/* We use char because int might match the return type of a gcc2
9655 builtin and then its argument prototype would still apply. */
9656char j1f ();
9657int
9658main ()
9659{
9660j1f ();
9661 ;
9662 return 0;
9663}
9664_ACEOF
9665rm -f conftest.$ac_objext conftest$ac_exeext
9666if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9667 (eval $ac_link) 2>conftest.er1
9668 ac_status=$?
9669 grep -v '^ *+' conftest.er1 >conftest.err
9670 rm -f conftest.er1
9671 cat conftest.err >&5
9672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9673 (exit $ac_status); } &&
bf4d99cf
TS
9674 { ac_try='test -z "$ac_c_werror_flag"
9675 || test ! -s conftest.err'
e8525382
SK
9676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9677 (eval $ac_try) 2>&5
9678 ac_status=$?
9679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9680 (exit $ac_status); }; } &&
9681 { ac_try='test -s conftest$ac_exeext'
9682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9683 (eval $ac_try) 2>&5
9684 ac_status=$?
9685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9686 (exit $ac_status); }; }; then
9687 ac_cv_lib_m_j1f=yes
9688else
9689 echo "$as_me: failed program was:" >&5
9690sed 's/^/| /' conftest.$ac_ext >&5
9691
9692ac_cv_lib_m_j1f=no
9693fi
9694rm -f conftest.err conftest.$ac_objext \
9695 conftest$ac_exeext conftest.$ac_ext
9696LIBS=$ac_check_lib_save_LIBS
9697fi
9698echo "$as_me:$LINENO: result: $ac_cv_lib_m_j1f" >&5
9699echo "${ECHO_T}$ac_cv_lib_m_j1f" >&6
9700if test $ac_cv_lib_m_j1f = yes; then
9701
9702cat >>confdefs.h <<\_ACEOF
9703#define HAVE_J1F 1
9704_ACEOF
9705
9706fi
9707
9708echo "$as_me:$LINENO: checking for jn in -lm" >&5
9709echo $ECHO_N "checking for jn in -lm... $ECHO_C" >&6
9710if test "${ac_cv_lib_m_jn+set}" = set; then
9711 echo $ECHO_N "(cached) $ECHO_C" >&6
9712else
9713 ac_check_lib_save_LIBS=$LIBS
9714LIBS="-lm $LIBS"
d49ec2d1
KC
9715if test x$gcc_no_link = xyes; then
9716 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9717echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9718 { (exit 1); exit 1; }; }
9719fi
e8525382
SK
9720cat >conftest.$ac_ext <<_ACEOF
9721/* confdefs.h. */
9722_ACEOF
9723cat confdefs.h >>conftest.$ac_ext
9724cat >>conftest.$ac_ext <<_ACEOF
9725/* end confdefs.h. */
9726
9727/* Override any gcc2 internal prototype to avoid an error. */
9728#ifdef __cplusplus
9729extern "C"
9730#endif
9731/* We use char because int might match the return type of a gcc2
9732 builtin and then its argument prototype would still apply. */
9733char jn ();
9734int
9735main ()
9736{
9737jn ();
9738 ;
9739 return 0;
9740}
9741_ACEOF
9742rm -f conftest.$ac_objext conftest$ac_exeext
9743if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9744 (eval $ac_link) 2>conftest.er1
9745 ac_status=$?
9746 grep -v '^ *+' conftest.er1 >conftest.err
9747 rm -f conftest.er1
9748 cat conftest.err >&5
9749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9750 (exit $ac_status); } &&
bf4d99cf
TS
9751 { ac_try='test -z "$ac_c_werror_flag"
9752 || test ! -s conftest.err'
e8525382
SK
9753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9754 (eval $ac_try) 2>&5
9755 ac_status=$?
9756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9757 (exit $ac_status); }; } &&
9758 { ac_try='test -s conftest$ac_exeext'
9759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9760 (eval $ac_try) 2>&5
9761 ac_status=$?
9762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9763 (exit $ac_status); }; }; then
9764 ac_cv_lib_m_jn=yes
9765else
9766 echo "$as_me: failed program was:" >&5
9767sed 's/^/| /' conftest.$ac_ext >&5
9768
9769ac_cv_lib_m_jn=no
9770fi
9771rm -f conftest.err conftest.$ac_objext \
9772 conftest$ac_exeext conftest.$ac_ext
9773LIBS=$ac_check_lib_save_LIBS
9774fi
9775echo "$as_me:$LINENO: result: $ac_cv_lib_m_jn" >&5
9776echo "${ECHO_T}$ac_cv_lib_m_jn" >&6
9777if test $ac_cv_lib_m_jn = yes; then
9778
9779cat >>confdefs.h <<\_ACEOF
9780#define HAVE_JN 1
9781_ACEOF
9782
9783fi
9784
9785echo "$as_me:$LINENO: checking for jnf in -lm" >&5
9786echo $ECHO_N "checking for jnf in -lm... $ECHO_C" >&6
9787if test "${ac_cv_lib_m_jnf+set}" = set; then
9788 echo $ECHO_N "(cached) $ECHO_C" >&6
9789else
9790 ac_check_lib_save_LIBS=$LIBS
9791LIBS="-lm $LIBS"
d49ec2d1
KC
9792if test x$gcc_no_link = xyes; then
9793 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9794echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9795 { (exit 1); exit 1; }; }
9796fi
e8525382
SK
9797cat >conftest.$ac_ext <<_ACEOF
9798/* confdefs.h. */
9799_ACEOF
9800cat confdefs.h >>conftest.$ac_ext
9801cat >>conftest.$ac_ext <<_ACEOF
9802/* end confdefs.h. */
9803
9804/* Override any gcc2 internal prototype to avoid an error. */
9805#ifdef __cplusplus
9806extern "C"
9807#endif
9808/* We use char because int might match the return type of a gcc2
9809 builtin and then its argument prototype would still apply. */
9810char jnf ();
9811int
9812main ()
9813{
9814jnf ();
9815 ;
9816 return 0;
9817}
9818_ACEOF
9819rm -f conftest.$ac_objext conftest$ac_exeext
9820if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9821 (eval $ac_link) 2>conftest.er1
9822 ac_status=$?
9823 grep -v '^ *+' conftest.er1 >conftest.err
9824 rm -f conftest.er1
9825 cat conftest.err >&5
9826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9827 (exit $ac_status); } &&
bf4d99cf
TS
9828 { ac_try='test -z "$ac_c_werror_flag"
9829 || test ! -s conftest.err'
e8525382
SK
9830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9831 (eval $ac_try) 2>&5
9832 ac_status=$?
9833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9834 (exit $ac_status); }; } &&
9835 { ac_try='test -s conftest$ac_exeext'
9836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9837 (eval $ac_try) 2>&5
9838 ac_status=$?
9839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9840 (exit $ac_status); }; }; then
9841 ac_cv_lib_m_jnf=yes
9842else
9843 echo "$as_me: failed program was:" >&5
9844sed 's/^/| /' conftest.$ac_ext >&5
9845
9846ac_cv_lib_m_jnf=no
9847fi
9848rm -f conftest.err conftest.$ac_objext \
9849 conftest$ac_exeext conftest.$ac_ext
9850LIBS=$ac_check_lib_save_LIBS
9851fi
9852echo "$as_me:$LINENO: result: $ac_cv_lib_m_jnf" >&5
9853echo "${ECHO_T}$ac_cv_lib_m_jnf" >&6
9854if test $ac_cv_lib_m_jnf = yes; then
9855
9856cat >>confdefs.h <<\_ACEOF
9857#define HAVE_JNF 1
9858_ACEOF
9859
9860fi
9861
9862echo "$as_me:$LINENO: checking for y0 in -lm" >&5
9863echo $ECHO_N "checking for y0 in -lm... $ECHO_C" >&6
9864if test "${ac_cv_lib_m_y0+set}" = set; then
9865 echo $ECHO_N "(cached) $ECHO_C" >&6
9866else
9867 ac_check_lib_save_LIBS=$LIBS
9868LIBS="-lm $LIBS"
d49ec2d1
KC
9869if test x$gcc_no_link = xyes; then
9870 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9871echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9872 { (exit 1); exit 1; }; }
9873fi
e8525382
SK
9874cat >conftest.$ac_ext <<_ACEOF
9875/* confdefs.h. */
9876_ACEOF
9877cat confdefs.h >>conftest.$ac_ext
9878cat >>conftest.$ac_ext <<_ACEOF
9879/* end confdefs.h. */
9880
9881/* Override any gcc2 internal prototype to avoid an error. */
9882#ifdef __cplusplus
9883extern "C"
9884#endif
9885/* We use char because int might match the return type of a gcc2
9886 builtin and then its argument prototype would still apply. */
9887char y0 ();
9888int
9889main ()
9890{
9891y0 ();
9892 ;
9893 return 0;
9894}
9895_ACEOF
9896rm -f conftest.$ac_objext conftest$ac_exeext
9897if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9898 (eval $ac_link) 2>conftest.er1
9899 ac_status=$?
9900 grep -v '^ *+' conftest.er1 >conftest.err
9901 rm -f conftest.er1
9902 cat conftest.err >&5
9903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9904 (exit $ac_status); } &&
bf4d99cf
TS
9905 { ac_try='test -z "$ac_c_werror_flag"
9906 || test ! -s conftest.err'
e8525382
SK
9907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9908 (eval $ac_try) 2>&5
9909 ac_status=$?
9910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9911 (exit $ac_status); }; } &&
9912 { ac_try='test -s conftest$ac_exeext'
9913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9914 (eval $ac_try) 2>&5
9915 ac_status=$?
9916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9917 (exit $ac_status); }; }; then
9918 ac_cv_lib_m_y0=yes
9919else
9920 echo "$as_me: failed program was:" >&5
9921sed 's/^/| /' conftest.$ac_ext >&5
9922
9923ac_cv_lib_m_y0=no
9924fi
9925rm -f conftest.err conftest.$ac_objext \
9926 conftest$ac_exeext conftest.$ac_ext
9927LIBS=$ac_check_lib_save_LIBS
9928fi
9929echo "$as_me:$LINENO: result: $ac_cv_lib_m_y0" >&5
9930echo "${ECHO_T}$ac_cv_lib_m_y0" >&6
9931if test $ac_cv_lib_m_y0 = yes; then
9932
9933cat >>confdefs.h <<\_ACEOF
9934#define HAVE_Y0 1
9935_ACEOF
9936
9937fi
9938
9939echo "$as_me:$LINENO: checking for y0f in -lm" >&5
9940echo $ECHO_N "checking for y0f in -lm... $ECHO_C" >&6
9941if test "${ac_cv_lib_m_y0f+set}" = set; then
9942 echo $ECHO_N "(cached) $ECHO_C" >&6
9943else
9944 ac_check_lib_save_LIBS=$LIBS
9945LIBS="-lm $LIBS"
d49ec2d1
KC
9946if test x$gcc_no_link = xyes; then
9947 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9948echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9949 { (exit 1); exit 1; }; }
9950fi
e8525382
SK
9951cat >conftest.$ac_ext <<_ACEOF
9952/* confdefs.h. */
9953_ACEOF
9954cat confdefs.h >>conftest.$ac_ext
9955cat >>conftest.$ac_ext <<_ACEOF
9956/* end confdefs.h. */
9957
9958/* Override any gcc2 internal prototype to avoid an error. */
9959#ifdef __cplusplus
9960extern "C"
9961#endif
9962/* We use char because int might match the return type of a gcc2
9963 builtin and then its argument prototype would still apply. */
9964char y0f ();
9965int
9966main ()
9967{
9968y0f ();
9969 ;
9970 return 0;
9971}
9972_ACEOF
9973rm -f conftest.$ac_objext conftest$ac_exeext
9974if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9975 (eval $ac_link) 2>conftest.er1
9976 ac_status=$?
9977 grep -v '^ *+' conftest.er1 >conftest.err
9978 rm -f conftest.er1
9979 cat conftest.err >&5
9980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9981 (exit $ac_status); } &&
bf4d99cf
TS
9982 { ac_try='test -z "$ac_c_werror_flag"
9983 || test ! -s conftest.err'
e8525382
SK
9984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9985 (eval $ac_try) 2>&5
9986 ac_status=$?
9987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9988 (exit $ac_status); }; } &&
9989 { ac_try='test -s conftest$ac_exeext'
9990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9991 (eval $ac_try) 2>&5
9992 ac_status=$?
9993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9994 (exit $ac_status); }; }; then
9995 ac_cv_lib_m_y0f=yes
9996else
9997 echo "$as_me: failed program was:" >&5
9998sed 's/^/| /' conftest.$ac_ext >&5
9999
10000ac_cv_lib_m_y0f=no
10001fi
10002rm -f conftest.err conftest.$ac_objext \
10003 conftest$ac_exeext conftest.$ac_ext
10004LIBS=$ac_check_lib_save_LIBS
10005fi
10006echo "$as_me:$LINENO: result: $ac_cv_lib_m_y0f" >&5
10007echo "${ECHO_T}$ac_cv_lib_m_y0f" >&6
10008if test $ac_cv_lib_m_y0f = yes; then
10009
10010cat >>confdefs.h <<\_ACEOF
10011#define HAVE_Y0F 1
10012_ACEOF
10013
10014fi
10015
10016echo "$as_me:$LINENO: checking for y1 in -lm" >&5
10017echo $ECHO_N "checking for y1 in -lm... $ECHO_C" >&6
10018if test "${ac_cv_lib_m_y1+set}" = set; then
10019 echo $ECHO_N "(cached) $ECHO_C" >&6
10020else
10021 ac_check_lib_save_LIBS=$LIBS
10022LIBS="-lm $LIBS"
d49ec2d1
KC
10023if test x$gcc_no_link = xyes; then
10024 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10025echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10026 { (exit 1); exit 1; }; }
10027fi
e8525382
SK
10028cat >conftest.$ac_ext <<_ACEOF
10029/* confdefs.h. */
10030_ACEOF
10031cat confdefs.h >>conftest.$ac_ext
10032cat >>conftest.$ac_ext <<_ACEOF
10033/* end confdefs.h. */
10034
10035/* Override any gcc2 internal prototype to avoid an error. */
10036#ifdef __cplusplus
10037extern "C"
10038#endif
10039/* We use char because int might match the return type of a gcc2
10040 builtin and then its argument prototype would still apply. */
10041char y1 ();
10042int
10043main ()
10044{
10045y1 ();
10046 ;
10047 return 0;
10048}
10049_ACEOF
10050rm -f conftest.$ac_objext conftest$ac_exeext
10051if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10052 (eval $ac_link) 2>conftest.er1
10053 ac_status=$?
10054 grep -v '^ *+' conftest.er1 >conftest.err
10055 rm -f conftest.er1
10056 cat conftest.err >&5
10057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10058 (exit $ac_status); } &&
bf4d99cf
TS
10059 { ac_try='test -z "$ac_c_werror_flag"
10060 || test ! -s conftest.err'
e8525382
SK
10061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10062 (eval $ac_try) 2>&5
10063 ac_status=$?
10064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10065 (exit $ac_status); }; } &&
10066 { ac_try='test -s conftest$ac_exeext'
10067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10068 (eval $ac_try) 2>&5
10069 ac_status=$?
10070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10071 (exit $ac_status); }; }; then
10072 ac_cv_lib_m_y1=yes
10073else
10074 echo "$as_me: failed program was:" >&5
10075sed 's/^/| /' conftest.$ac_ext >&5
10076
10077ac_cv_lib_m_y1=no
10078fi
10079rm -f conftest.err conftest.$ac_objext \
10080 conftest$ac_exeext conftest.$ac_ext
10081LIBS=$ac_check_lib_save_LIBS
10082fi
10083echo "$as_me:$LINENO: result: $ac_cv_lib_m_y1" >&5
10084echo "${ECHO_T}$ac_cv_lib_m_y1" >&6
10085if test $ac_cv_lib_m_y1 = yes; then
10086
10087cat >>confdefs.h <<\_ACEOF
10088#define HAVE_Y1 1
10089_ACEOF
10090
10091fi
10092
10093echo "$as_me:$LINENO: checking for y1f in -lm" >&5
10094echo $ECHO_N "checking for y1f in -lm... $ECHO_C" >&6
10095if test "${ac_cv_lib_m_y1f+set}" = set; then
10096 echo $ECHO_N "(cached) $ECHO_C" >&6
10097else
10098 ac_check_lib_save_LIBS=$LIBS
10099LIBS="-lm $LIBS"
d49ec2d1
KC
10100if test x$gcc_no_link = xyes; then
10101 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10102echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10103 { (exit 1); exit 1; }; }
10104fi
e8525382
SK
10105cat >conftest.$ac_ext <<_ACEOF
10106/* confdefs.h. */
10107_ACEOF
10108cat confdefs.h >>conftest.$ac_ext
10109cat >>conftest.$ac_ext <<_ACEOF
10110/* end confdefs.h. */
10111
10112/* Override any gcc2 internal prototype to avoid an error. */
10113#ifdef __cplusplus
10114extern "C"
10115#endif
10116/* We use char because int might match the return type of a gcc2
10117 builtin and then its argument prototype would still apply. */
10118char y1f ();
10119int
10120main ()
10121{
10122y1f ();
10123 ;
10124 return 0;
10125}
10126_ACEOF
10127rm -f conftest.$ac_objext conftest$ac_exeext
10128if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10129 (eval $ac_link) 2>conftest.er1
10130 ac_status=$?
10131 grep -v '^ *+' conftest.er1 >conftest.err
10132 rm -f conftest.er1
10133 cat conftest.err >&5
10134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10135 (exit $ac_status); } &&
bf4d99cf
TS
10136 { ac_try='test -z "$ac_c_werror_flag"
10137 || test ! -s conftest.err'
e8525382
SK
10138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10139 (eval $ac_try) 2>&5
10140 ac_status=$?
10141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10142 (exit $ac_status); }; } &&
10143 { ac_try='test -s conftest$ac_exeext'
10144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10145 (eval $ac_try) 2>&5
10146 ac_status=$?
10147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10148 (exit $ac_status); }; }; then
10149 ac_cv_lib_m_y1f=yes
10150else
10151 echo "$as_me: failed program was:" >&5
10152sed 's/^/| /' conftest.$ac_ext >&5
10153
10154ac_cv_lib_m_y1f=no
10155fi
10156rm -f conftest.err conftest.$ac_objext \
10157 conftest$ac_exeext conftest.$ac_ext
10158LIBS=$ac_check_lib_save_LIBS
10159fi
10160echo "$as_me:$LINENO: result: $ac_cv_lib_m_y1f" >&5
10161echo "${ECHO_T}$ac_cv_lib_m_y1f" >&6
10162if test $ac_cv_lib_m_y1f = yes; then
10163
10164cat >>confdefs.h <<\_ACEOF
10165#define HAVE_Y1F 1
10166_ACEOF
10167
10168fi
10169
10170echo "$as_me:$LINENO: checking for yn in -lm" >&5
10171echo $ECHO_N "checking for yn in -lm... $ECHO_C" >&6
10172if test "${ac_cv_lib_m_yn+set}" = set; then
10173 echo $ECHO_N "(cached) $ECHO_C" >&6
10174else
10175 ac_check_lib_save_LIBS=$LIBS
10176LIBS="-lm $LIBS"
d49ec2d1
KC
10177if test x$gcc_no_link = xyes; then
10178 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10179echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10180 { (exit 1); exit 1; }; }
10181fi
e8525382
SK
10182cat >conftest.$ac_ext <<_ACEOF
10183/* confdefs.h. */
10184_ACEOF
10185cat confdefs.h >>conftest.$ac_ext
10186cat >>conftest.$ac_ext <<_ACEOF
10187/* end confdefs.h. */
10188
10189/* Override any gcc2 internal prototype to avoid an error. */
10190#ifdef __cplusplus
10191extern "C"
10192#endif
10193/* We use char because int might match the return type of a gcc2
10194 builtin and then its argument prototype would still apply. */
10195char yn ();
10196int
10197main ()
10198{
10199yn ();
10200 ;
10201 return 0;
10202}
10203_ACEOF
10204rm -f conftest.$ac_objext conftest$ac_exeext
10205if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10206 (eval $ac_link) 2>conftest.er1
10207 ac_status=$?
10208 grep -v '^ *+' conftest.er1 >conftest.err
10209 rm -f conftest.er1
10210 cat conftest.err >&5
10211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10212 (exit $ac_status); } &&
bf4d99cf
TS
10213 { ac_try='test -z "$ac_c_werror_flag"
10214 || test ! -s conftest.err'
e8525382
SK
10215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10216 (eval $ac_try) 2>&5
10217 ac_status=$?
10218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10219 (exit $ac_status); }; } &&
10220 { ac_try='test -s conftest$ac_exeext'
10221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10222 (eval $ac_try) 2>&5
10223 ac_status=$?
10224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10225 (exit $ac_status); }; }; then
10226 ac_cv_lib_m_yn=yes
10227else
10228 echo "$as_me: failed program was:" >&5
10229sed 's/^/| /' conftest.$ac_ext >&5
10230
10231ac_cv_lib_m_yn=no
10232fi
10233rm -f conftest.err conftest.$ac_objext \
10234 conftest$ac_exeext conftest.$ac_ext
10235LIBS=$ac_check_lib_save_LIBS
10236fi
10237echo "$as_me:$LINENO: result: $ac_cv_lib_m_yn" >&5
10238echo "${ECHO_T}$ac_cv_lib_m_yn" >&6
10239if test $ac_cv_lib_m_yn = yes; then
10240
10241cat >>confdefs.h <<\_ACEOF
10242#define HAVE_YN 1
10243_ACEOF
10244
10245fi
10246
10247echo "$as_me:$LINENO: checking for ynf in -lm" >&5
10248echo $ECHO_N "checking for ynf in -lm... $ECHO_C" >&6
10249if test "${ac_cv_lib_m_ynf+set}" = set; then
10250 echo $ECHO_N "(cached) $ECHO_C" >&6
10251else
10252 ac_check_lib_save_LIBS=$LIBS
10253LIBS="-lm $LIBS"
d49ec2d1
KC
10254if test x$gcc_no_link = xyes; then
10255 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10256echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10257 { (exit 1); exit 1; }; }
10258fi
e8525382
SK
10259cat >conftest.$ac_ext <<_ACEOF
10260/* confdefs.h. */
10261_ACEOF
10262cat confdefs.h >>conftest.$ac_ext
10263cat >>conftest.$ac_ext <<_ACEOF
10264/* end confdefs.h. */
10265
10266/* Override any gcc2 internal prototype to avoid an error. */
10267#ifdef __cplusplus
10268extern "C"
10269#endif
10270/* We use char because int might match the return type of a gcc2
10271 builtin and then its argument prototype would still apply. */
10272char ynf ();
10273int
10274main ()
10275{
10276ynf ();
10277 ;
10278 return 0;
10279}
10280_ACEOF
10281rm -f conftest.$ac_objext conftest$ac_exeext
10282if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10283 (eval $ac_link) 2>conftest.er1
10284 ac_status=$?
10285 grep -v '^ *+' conftest.er1 >conftest.err
10286 rm -f conftest.er1
10287 cat conftest.err >&5
10288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10289 (exit $ac_status); } &&
bf4d99cf
TS
10290 { ac_try='test -z "$ac_c_werror_flag"
10291 || test ! -s conftest.err'
e8525382
SK
10292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10293 (eval $ac_try) 2>&5
10294 ac_status=$?
10295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10296 (exit $ac_status); }; } &&
10297 { ac_try='test -s conftest$ac_exeext'
10298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10299 (eval $ac_try) 2>&5
10300 ac_status=$?
10301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10302 (exit $ac_status); }; }; then
10303 ac_cv_lib_m_ynf=yes
10304else
10305 echo "$as_me: failed program was:" >&5
10306sed 's/^/| /' conftest.$ac_ext >&5
10307
10308ac_cv_lib_m_ynf=no
10309fi
10310rm -f conftest.err conftest.$ac_objext \
10311 conftest$ac_exeext conftest.$ac_ext
10312LIBS=$ac_check_lib_save_LIBS
10313fi
10314echo "$as_me:$LINENO: result: $ac_cv_lib_m_ynf" >&5
10315echo "${ECHO_T}$ac_cv_lib_m_ynf" >&6
10316if test $ac_cv_lib_m_ynf = yes; then
10317
10318cat >>confdefs.h <<\_ACEOF
10319#define HAVE_YNF 1
10320_ACEOF
10321
10322fi
10323
a2a2059f 10324
96b8a615
AJ
10325# Let the user override this
10326# Check whether --enable-cmath or --disable-cmath was given.
10327if test "${enable_cmath+set}" = set; then
10328 enableval="$enable_cmath"
10329 need_math=$enableval
10330fi;
10331if test "$need_math" = "yes"; then
10332 { echo "$as_me:$LINENO: Including complex math functions in libgfor" >&5
10333echo "$as_me: Including complex math functions in libgfor" >&6;};
10334 extra_math_obj='$(gfor_cmath_obj)'
10335fi
10336
10337MATH_OBJ="$extra_math_obj"
10338
10339
10340# The standard autoconf HAVE_STRUCT_TIMEZONE doesn't actually check
10341# for struct timezone, as you might think. We also need to check how
10342# to call gettimeofday if we have it.
10343echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
10344echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
10345if test "${ac_cv_header_time+set}" = set; then
6de9cd9a
DN
10346 echo $ECHO_N "(cached) $ECHO_C" >&6
10347else
96b8a615
AJ
10348 cat >conftest.$ac_ext <<_ACEOF
10349/* confdefs.h. */
10350_ACEOF
10351cat confdefs.h >>conftest.$ac_ext
10352cat >>conftest.$ac_ext <<_ACEOF
10353/* end confdefs.h. */
10354#include <sys/types.h>
10355#include <sys/time.h>
10356#include <time.h>
10357
10358int
10359main ()
10360{
10361if ((struct tm *) 0)
10362return 0;
10363 ;
10364 return 0;
10365}
10366_ACEOF
10367rm -f conftest.$ac_objext
10368if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10369 (eval $ac_compile) 2>conftest.er1
10370 ac_status=$?
10371 grep -v '^ *+' conftest.er1 >conftest.err
10372 rm -f conftest.er1
10373 cat conftest.err >&5
10374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10375 (exit $ac_status); } &&
bf4d99cf
TS
10376 { ac_try='test -z "$ac_c_werror_flag"
10377 || test ! -s conftest.err'
96b8a615
AJ
10378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10379 (eval $ac_try) 2>&5
10380 ac_status=$?
10381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10382 (exit $ac_status); }; } &&
10383 { ac_try='test -s conftest.$ac_objext'
10384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10385 (eval $ac_try) 2>&5
10386 ac_status=$?
10387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10388 (exit $ac_status); }; }; then
10389 ac_cv_header_time=yes
10390else
10391 echo "$as_me: failed program was:" >&5
10392sed 's/^/| /' conftest.$ac_ext >&5
6de9cd9a 10393
96b8a615 10394ac_cv_header_time=no
6de9cd9a 10395fi
96b8a615 10396rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6de9cd9a 10397fi
96b8a615
AJ
10398echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
10399echo "${ECHO_T}$ac_cv_header_time" >&6
10400if test $ac_cv_header_time = yes; then
6de9cd9a 10401
96b8a615
AJ
10402cat >>confdefs.h <<\_ACEOF
10403#define TIME_WITH_SYS_TIME 1
10404_ACEOF
6de9cd9a 10405
6de9cd9a
DN
10406fi
10407
6de9cd9a 10408
96b8a615
AJ
10409
10410for ac_func in gettimeofday
10411do
10412as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10413echo "$as_me:$LINENO: checking for $ac_func" >&5
10414echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10415if eval "test \"\${$as_ac_var+set}\" = set"; then
6de9cd9a
DN
10416 echo $ECHO_N "(cached) $ECHO_C" >&6
10417else
d49ec2d1
KC
10418 if test x$gcc_no_link = xyes; then
10419 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10420echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10421 { (exit 1); exit 1; }; }
10422fi
10423cat >conftest.$ac_ext <<_ACEOF
96b8a615
AJ
10424/* confdefs.h. */
10425_ACEOF
10426cat confdefs.h >>conftest.$ac_ext
10427cat >>conftest.$ac_ext <<_ACEOF
10428/* end confdefs.h. */
10429/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10430 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10431#define $ac_func innocuous_$ac_func
10432
10433/* System header to define __stub macros and hopefully few prototypes,
10434 which can conflict with char $ac_func (); below.
10435 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10436 <limits.h> exists even on freestanding compilers. */
10437
10438#ifdef __STDC__
10439# include <limits.h>
10440#else
10441# include <assert.h>
10442#endif
10443
10444#undef $ac_func
10445
10446/* Override any gcc2 internal prototype to avoid an error. */
10447#ifdef __cplusplus
10448extern "C"
10449{
10450#endif
10451/* We use char because int might match the return type of a gcc2
10452 builtin and then its argument prototype would still apply. */
10453char $ac_func ();
10454/* The GNU C library defines this for functions which it implements
10455 to always fail with ENOSYS. Some functions are actually named
10456 something starting with __ and the normal name is an alias. */
10457#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10458choke me
10459#else
10460char (*f) () = $ac_func;
10461#endif
10462#ifdef __cplusplus
10463}
10464#endif
10465
10466int
10467main ()
10468{
10469return f != $ac_func;
10470 ;
10471 return 0;
10472}
10473_ACEOF
10474rm -f conftest.$ac_objext conftest$ac_exeext
10475if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10476 (eval $ac_link) 2>conftest.er1
10477 ac_status=$?
10478 grep -v '^ *+' conftest.er1 >conftest.err
10479 rm -f conftest.er1
10480 cat conftest.err >&5
10481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10482 (exit $ac_status); } &&
bf4d99cf
TS
10483 { ac_try='test -z "$ac_c_werror_flag"
10484 || test ! -s conftest.err'
96b8a615
AJ
10485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10486 (eval $ac_try) 2>&5
10487 ac_status=$?
10488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10489 (exit $ac_status); }; } &&
10490 { ac_try='test -s conftest$ac_exeext'
10491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10492 (eval $ac_try) 2>&5
10493 ac_status=$?
10494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10495 (exit $ac_status); }; }; then
10496 eval "$as_ac_var=yes"
6de9cd9a 10497else
96b8a615
AJ
10498 echo "$as_me: failed program was:" >&5
10499sed 's/^/| /' conftest.$ac_ext >&5
6de9cd9a 10500
96b8a615 10501eval "$as_ac_var=no"
6de9cd9a 10502fi
96b8a615
AJ
10503rm -f conftest.err conftest.$ac_objext \
10504 conftest$ac_exeext conftest.$ac_ext
6de9cd9a 10505fi
96b8a615
AJ
10506echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10507echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10508if test `eval echo '${'$as_ac_var'}'` = yes; then
10509 cat >>confdefs.h <<_ACEOF
10510#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10511_ACEOF
6de9cd9a
DN
10512
10513fi
6de9cd9a
DN
10514done
10515
96b8a615
AJ
10516 if test "$ac_cv_func_gettimeofday" = yes; then
10517 echo "$as_me:$LINENO: checking for struct timezone" >&5
10518echo $ECHO_N "checking for struct timezone... $ECHO_C" >&6
10519if test "${gfor_cv_struct_timezone+set}" = set; then
10520 echo $ECHO_N "(cached) $ECHO_C" >&6
10521else
10522 cat >conftest.$ac_ext <<_ACEOF
10523/* confdefs.h. */
10524_ACEOF
10525cat confdefs.h >>conftest.$ac_ext
10526cat >>conftest.$ac_ext <<_ACEOF
10527/* end confdefs.h. */
10528#include <sys/time.h>
10529int
10530main ()
10531{
10532struct timezone tz;
10533 ;
10534 return 0;
10535}
10536_ACEOF
10537rm -f conftest.$ac_objext
10538if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10539 (eval $ac_compile) 2>conftest.er1
10540 ac_status=$?
10541 grep -v '^ *+' conftest.er1 >conftest.err
10542 rm -f conftest.er1
10543 cat conftest.err >&5
10544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10545 (exit $ac_status); } &&
bf4d99cf
TS
10546 { ac_try='test -z "$ac_c_werror_flag"
10547 || test ! -s conftest.err'
96b8a615
AJ
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); }; } &&
10553 { ac_try='test -s conftest.$ac_objext'
10554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10555 (eval $ac_try) 2>&5
10556 ac_status=$?
10557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10558 (exit $ac_status); }; }; then
10559 gfor_cv_struct_timezone=yes
6de9cd9a 10560else
96b8a615
AJ
10561 echo "$as_me: failed program was:" >&5
10562sed 's/^/| /' conftest.$ac_ext >&5
6de9cd9a 10563
96b8a615 10564gfor_cv_struct_timezone=no
6de9cd9a 10565fi
96b8a615
AJ
10566rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10567fi
10568echo "$as_me:$LINENO: result: $gfor_cv_struct_timezone" >&5
10569echo "${ECHO_T}$gfor_cv_struct_timezone" >&6
10570 if test $gfor_cv_struct_timezone = yes; then
10571 if test "$cross_compiling" = yes; then
10572 gfor_have_struct_timezone=yes
6de9cd9a 10573else
96b8a615
AJ
10574 cat >conftest.$ac_ext <<_ACEOF
10575/* confdefs.h. */
10576_ACEOF
10577cat confdefs.h >>conftest.$ac_ext
10578cat >>conftest.$ac_ext <<_ACEOF
10579/* end confdefs.h. */
6de9cd9a 10580
96b8a615
AJ
10581#ifdef TIME_WITH_SYS_TIME
10582#include <sys/time.h>
10583#include <time.h>
10584#else
10585#ifdef HAVE_SYS_TIME_H
10586#include <sys/time.h>
10587#else
10588#include <time.h>
10589#endif
10590#endif
10591main ()
10592{
10593 struct timeval time;
10594 struct timezone dummy;
10595 if (gettimeofday (&time, &dummy))
10596 exit (1);
10597 else
10598 exit (0);
10599}
10600_ACEOF
10601rm -f conftest$ac_exeext
10602if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10603 (eval $ac_link) 2>&5
6de9cd9a
DN
10604 ac_status=$?
10605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
96b8a615
AJ
10606 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10608 (eval $ac_try) 2>&5
6de9cd9a
DN
10609 ac_status=$?
10610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
96b8a615
AJ
10611 (exit $ac_status); }; }; then
10612 gfor_have_struct_timezone=yes
6de9cd9a 10613else
96b8a615
AJ
10614 echo "$as_me: program exited with status $ac_status" >&5
10615echo "$as_me: failed program was:" >&5
10616sed 's/^/| /' conftest.$ac_ext >&5
6de9cd9a 10617
96b8a615
AJ
10618( exit $ac_status )
10619gfor_have_struct_timezone=no
10620fi
10621rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10622fi
10623 if test $gfor_have_struct_timezone = yes; then
6de9cd9a 10624
96b8a615
AJ
10625cat >>confdefs.h <<\_ACEOF
10626#define HAVE_TIMEZONE 1
10627_ACEOF
6de9cd9a 10628
96b8a615
AJ
10629 fi
10630 fi
10631
10632 echo "$as_me:$LINENO: checking whether gettimeofday can accept two arguments" >&5
10633echo $ECHO_N "checking whether gettimeofday can accept two arguments... $ECHO_C" >&6
10634if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then
10635 echo $ECHO_N "(cached) $ECHO_C" >&6
10636else
d49ec2d1
KC
10637 if test x$gcc_no_link = xyes; then
10638 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10639echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10640 { (exit 1); exit 1; }; }
10641fi
10642cat >conftest.$ac_ext <<_ACEOF
6de9cd9a
DN
10643/* confdefs.h. */
10644_ACEOF
10645cat confdefs.h >>conftest.$ac_ext
10646cat >>conftest.$ac_ext <<_ACEOF
10647/* end confdefs.h. */
10648
96b8a615
AJ
10649#ifdef TIME_WITH_SYS_TIME
10650#include <sys/time.h>
10651#include <time.h>
10652#else
10653#ifdef HAVE_SYS_TIME_H
10654#include <sys/time.h>
10655#else
10656#include <time.h>
10657#endif
10658#endif
10659
6de9cd9a
DN
10660int
10661main ()
10662{
10663
96b8a615
AJ
10664 struct timeval time;
10665#ifdef HAVE_TIMEZONE
10666 struct timezone dummy;
10667#define DUMMY &dummy
10668#else
10669#define DUMMY NULL
10670#endif
10671 gettimeofday (&time, DUMMY);
6de9cd9a
DN
10672 ;
10673 return 0;
10674}
10675_ACEOF
10676rm -f conftest.$ac_objext conftest$ac_exeext
10677if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10678 (eval $ac_link) 2>conftest.er1
10679 ac_status=$?
10680 grep -v '^ *+' conftest.er1 >conftest.err
10681 rm -f conftest.er1
10682 cat conftest.err >&5
10683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10684 (exit $ac_status); } &&
bf4d99cf
TS
10685 { ac_try='test -z "$ac_c_werror_flag"
10686 || test ! -s conftest.err'
6de9cd9a
DN
10687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10688 (eval $ac_try) 2>&5
10689 ac_status=$?
10690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10691 (exit $ac_status); }; } &&
10692 { ac_try='test -s conftest$ac_exeext'
10693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10694 (eval $ac_try) 2>&5
10695 ac_status=$?
10696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10697 (exit $ac_status); }; }; then
96b8a615 10698 emacs_cv_gettimeofday_two_arguments=yes
6de9cd9a
DN
10699else
10700 echo "$as_me: failed program was:" >&5
10701sed 's/^/| /' conftest.$ac_ext >&5
10702
96b8a615 10703emacs_cv_gettimeofday_two_arguments=no
6de9cd9a
DN
10704fi
10705rm -f conftest.err conftest.$ac_objext \
10706 conftest$ac_exeext conftest.$ac_ext
6de9cd9a 10707fi
96b8a615
AJ
10708echo "$as_me:$LINENO: result: $emacs_cv_gettimeofday_two_arguments" >&5
10709echo "${ECHO_T}$emacs_cv_gettimeofday_two_arguments" >&6
10710 if test $emacs_cv_gettimeofday_two_arguments = no; then
6de9cd9a 10711
96b8a615
AJ
10712cat >>confdefs.h <<\_ACEOF
10713#define GETTIMEOFDAY_ONE_ARGUMENT 1
10714_ACEOF
6de9cd9a 10715
96b8a615
AJ
10716 fi
10717 fi
6de9cd9a 10718
6de9cd9a
DN
10719cat >confcache <<\_ACEOF
10720# This file is a shell script that caches the results of configure
10721# tests run on this system so they can be shared between configure
10722# scripts and configure runs, see configure's option --config-cache.
10723# It is not useful on other systems. If it contains results you don't
10724# want to keep, you may remove or edit it.
10725#
10726# config.status only pays attention to the cache file if you give it
10727# the --recheck option to rerun configure.
10728#
10729# `ac_cv_env_foo' variables (set or unset) will be overridden when
10730# loading this file, other *unset* `ac_cv_foo' will be assigned the
10731# following values.
10732
10733_ACEOF
10734
10735# The following way of writing the cache mishandles newlines in values,
10736# but we know of no workaround that is simple, portable, and efficient.
10737# So, don't put newlines in cache variables' values.
10738# Ultrix sh set writes to stderr and can't be redirected directly,
10739# and sets the high bit in the cache file unless we assign to the vars.
10740{
10741 (set) 2>&1 |
10742 case `(ac_space=' '; set | grep ac_space) 2>&1` in
10743 *ac_space=\ *)
10744 # `set' does not quote correctly, so add quotes (double-quote
10745 # substitution turns \\\\ into \\, and sed turns \\ into \).
10746 sed -n \
10747 "s/'/'\\\\''/g;
10748 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
10749 ;;
10750 *)
10751 # `set' quotes correctly as required by POSIX, so do not add quotes.
10752 sed -n \
10753 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
10754 ;;
10755 esac;
10756} |
10757 sed '
10758 t clear
10759 : clear
10760 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10761 t end
10762 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10763 : end' >>confcache
10764if diff $cache_file confcache >/dev/null 2>&1; then :; else
10765 if test -w $cache_file; then
10766 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
10767 cat confcache >$cache_file
10768 else
10769 echo "not updating unwritable cache $cache_file"
10770 fi
10771fi
10772rm -f confcache
10773
96b8a615
AJ
10774if test ${multilib} = yes; then
10775 multilib_arg="--enable-multilib"
6de9cd9a 10776else
96b8a615 10777 multilib_arg=
6de9cd9a 10778fi
6de9cd9a 10779
96b8a615 10780# Write our Makefile.
6de9cd9a 10781 ac_config_files="$ac_config_files Makefile"
96b8a615 10782
6de9cd9a
DN
10783cat >confcache <<\_ACEOF
10784# This file is a shell script that caches the results of configure
10785# tests run on this system so they can be shared between configure
10786# scripts and configure runs, see configure's option --config-cache.
10787# It is not useful on other systems. If it contains results you don't
10788# want to keep, you may remove or edit it.
10789#
10790# config.status only pays attention to the cache file if you give it
10791# the --recheck option to rerun configure.
10792#
10793# `ac_cv_env_foo' variables (set or unset) will be overridden when
10794# loading this file, other *unset* `ac_cv_foo' will be assigned the
10795# following values.
10796
10797_ACEOF
10798
10799# The following way of writing the cache mishandles newlines in values,
10800# but we know of no workaround that is simple, portable, and efficient.
10801# So, don't put newlines in cache variables' values.
10802# Ultrix sh set writes to stderr and can't be redirected directly,
10803# and sets the high bit in the cache file unless we assign to the vars.
10804{
10805 (set) 2>&1 |
10806 case `(ac_space=' '; set | grep ac_space) 2>&1` in
10807 *ac_space=\ *)
10808 # `set' does not quote correctly, so add quotes (double-quote
10809 # substitution turns \\\\ into \\, and sed turns \\ into \).
10810 sed -n \
10811 "s/'/'\\\\''/g;
10812 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
10813 ;;
10814 *)
10815 # `set' quotes correctly as required by POSIX, so do not add quotes.
10816 sed -n \
10817 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
10818 ;;
10819 esac;
10820} |
10821 sed '
10822 t clear
10823 : clear
10824 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10825 t end
10826 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10827 : end' >>confcache
10828if diff $cache_file confcache >/dev/null 2>&1; then :; else
10829 if test -w $cache_file; then
10830 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
10831 cat confcache >$cache_file
10832 else
10833 echo "not updating unwritable cache $cache_file"
10834 fi
10835fi
10836rm -f confcache
10837
10838test "x$prefix" = xNONE && prefix=$ac_default_prefix
10839# Let make expand exec_prefix.
10840test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
10841
10842# VPATH may cause trouble with some makes, so we remove $(srcdir),
10843# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
10844# trailing colons and then remove the whole line if VPATH becomes empty
10845# (actually we leave an empty line to preserve line numbers).
10846if test "x$srcdir" = x.; then
10847 ac_vpsub='/^[ ]*VPATH[ ]*=/{
10848s/:*\$(srcdir):*/:/;
10849s/:*\${srcdir}:*/:/;
10850s/:*@srcdir@:*/:/;
10851s/^\([^=]*=[ ]*\):*/\1/;
10852s/:*$//;
10853s/^[^=]*=[ ]*$//;
10854}'
10855fi
10856
10857DEFS=-DHAVE_CONFIG_H
10858
10859ac_libobjs=
10860ac_ltlibobjs=
10861for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
10862 # 1. Remove the extension, and $U if already installed.
10863 ac_i=`echo "$ac_i" |
10864 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
10865 # 2. Add them.
10866 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
10867 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
10868done
10869LIBOBJS=$ac_libobjs
10870
10871LTLIBOBJS=$ac_ltlibobjs
10872
10873
10874if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
10875 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
10876Usually this means the macro was only invoked conditionally." >&5
10877echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
10878Usually this means the macro was only invoked conditionally." >&2;}
10879 { (exit 1); exit 1; }; }
10880fi
6de9cd9a
DN
10881
10882: ${CONFIG_STATUS=./config.status}
10883ac_clean_files_save=$ac_clean_files
10884ac_clean_files="$ac_clean_files $CONFIG_STATUS"
10885{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
10886echo "$as_me: creating $CONFIG_STATUS" >&6;}
10887cat >$CONFIG_STATUS <<_ACEOF
10888#! $SHELL
10889# Generated by $as_me.
10890# Run this file to recreate the current configuration.
10891# Compiler output produced by configure, useful for debugging
10892# configure, is in config.log if it exists.
10893
10894debug=false
10895ac_cs_recheck=false
10896ac_cs_silent=false
10897SHELL=\${CONFIG_SHELL-$SHELL}
10898_ACEOF
10899
10900cat >>$CONFIG_STATUS <<\_ACEOF
10901## --------------------- ##
10902## M4sh Initialization. ##
10903## --------------------- ##
10904
10905# Be Bourne compatible
10906if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
10907 emulate sh
10908 NULLCMD=:
10909 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
10910 # is contrary to our usage. Disable this feature.
10911 alias -g '${1+"$@"}'='"$@"'
10912elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
10913 set -o posix
10914fi
10915DUALCASE=1; export DUALCASE # for MKS sh
10916
10917# Support unset when possible.
10918if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
10919 as_unset=unset
10920else
10921 as_unset=false
10922fi
10923
10924
10925# Work around bugs in pre-3.0 UWIN ksh.
10926$as_unset ENV MAIL MAILPATH
10927PS1='$ '
10928PS2='> '
10929PS4='+ '
10930
10931# NLS nuisances.
10932for as_var in \
10933 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
10934 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
10935 LC_TELEPHONE LC_TIME
10936do
10937 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
10938 eval $as_var=C; export $as_var
10939 else
10940 $as_unset $as_var
10941 fi
10942done
10943
10944# Required to use basename.
10945if expr a : '\(a\)' >/dev/null 2>&1; then
10946 as_expr=expr
10947else
10948 as_expr=false
10949fi
10950
10951if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
10952 as_basename=basename
10953else
10954 as_basename=false
10955fi
10956
10957
10958# Name of the executable.
10959as_me=`$as_basename "$0" ||
10960$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
10961 X"$0" : 'X\(//\)$' \| \
10962 X"$0" : 'X\(/\)$' \| \
10963 . : '\(.\)' 2>/dev/null ||
10964echo X/"$0" |
10965 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
10966 /^X\/\(\/\/\)$/{ s//\1/; q; }
10967 /^X\/\(\/\).*/{ s//\1/; q; }
10968 s/.*/./; q'`
10969
10970
10971# PATH needs CR, and LINENO needs CR and PATH.
10972# Avoid depending upon Character Ranges.
10973as_cr_letters='abcdefghijklmnopqrstuvwxyz'
10974as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
10975as_cr_Letters=$as_cr_letters$as_cr_LETTERS
10976as_cr_digits='0123456789'
10977as_cr_alnum=$as_cr_Letters$as_cr_digits
10978
10979# The user is always right.
10980if test "${PATH_SEPARATOR+set}" != set; then
10981 echo "#! /bin/sh" >conf$$.sh
10982 echo "exit 0" >>conf$$.sh
10983 chmod +x conf$$.sh
10984 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10985 PATH_SEPARATOR=';'
10986 else
10987 PATH_SEPARATOR=:
10988 fi
10989 rm -f conf$$.sh
10990fi
10991
10992
10993 as_lineno_1=$LINENO
10994 as_lineno_2=$LINENO
10995 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
10996 test "x$as_lineno_1" != "x$as_lineno_2" &&
10997 test "x$as_lineno_3" = "x$as_lineno_2" || {
10998 # Find who we are. Look in the path if we contain no path at all
10999 # relative or not.
11000 case $0 in
11001 *[\\/]* ) as_myself=$0 ;;
11002 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11003for as_dir in $PATH
11004do
11005 IFS=$as_save_IFS
11006 test -z "$as_dir" && as_dir=.
11007 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11008done
11009
11010 ;;
11011 esac
11012 # We did not find ourselves, most probably we were run as `sh COMMAND'
11013 # in which case we are not to be found in the path.
11014 if test "x$as_myself" = x; then
11015 as_myself=$0
11016 fi
11017 if test ! -f "$as_myself"; then
11018 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
11019echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
11020 { (exit 1); exit 1; }; }
11021 fi
11022 case $CONFIG_SHELL in
11023 '')
11024 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11025for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
11026do
11027 IFS=$as_save_IFS
11028 test -z "$as_dir" && as_dir=.
11029 for as_base in sh bash ksh sh5; do
11030 case $as_dir in
11031 /*)
11032 if ("$as_dir/$as_base" -c '
11033 as_lineno_1=$LINENO
11034 as_lineno_2=$LINENO
11035 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
11036 test "x$as_lineno_1" != "x$as_lineno_2" &&
11037 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
11038 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
11039 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
11040 CONFIG_SHELL=$as_dir/$as_base
11041 export CONFIG_SHELL
11042 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
11043 fi;;
11044 esac
11045 done
11046done
11047;;
11048 esac
11049
11050 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
11051 # uniformly replaced by the line number. The first 'sed' inserts a
11052 # line-number line before each line; the second 'sed' does the real
11053 # work. The second script uses 'N' to pair each line-number line
11054 # with the numbered line, and appends trailing '-' during
11055 # substitution so that $LINENO is not a special case at line end.
11056 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
11057 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
11058 sed '=' <$as_myself |
11059 sed '
11060 N
11061 s,$,-,
11062 : loop
11063 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
11064 t loop
11065 s,-$,,
11066 s,^['$as_cr_digits']*\n,,
11067 ' >$as_me.lineno &&
11068 chmod +x $as_me.lineno ||
11069 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
11070echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
11071 { (exit 1); exit 1; }; }
11072
11073 # Don't try to exec as it changes $[0], causing all sort of problems
11074 # (the dirname of $[0] is not the place where we might find the
11075 # original and so on. Autoconf is especially sensible to this).
11076 . ./$as_me.lineno
11077 # Exit status is that of the last command.
11078 exit
11079}
11080
11081
11082case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
11083 *c*,-n*) ECHO_N= ECHO_C='
11084' ECHO_T=' ' ;;
11085 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
11086 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
11087esac
11088
11089if expr a : '\(a\)' >/dev/null 2>&1; then
11090 as_expr=expr
11091else
11092 as_expr=false
11093fi
11094
11095rm -f conf$$ conf$$.exe conf$$.file
11096echo >conf$$.file
11097if ln -s conf$$.file conf$$ 2>/dev/null; then
11098 # We could just check for DJGPP; but this test a) works b) is more generic
11099 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
11100 if test -f conf$$.exe; then
11101 # Don't use ln at all; we don't have any links
11102 as_ln_s='cp -p'
11103 else
11104 as_ln_s='ln -s'
11105 fi
11106elif ln conf$$.file conf$$ 2>/dev/null; then
11107 as_ln_s=ln
11108else
11109 as_ln_s='cp -p'
11110fi
11111rm -f conf$$ conf$$.exe conf$$.file
11112
11113if mkdir -p . 2>/dev/null; then
11114 as_mkdir_p=:
11115else
11116 test -d ./-p && rmdir ./-p
11117 as_mkdir_p=false
11118fi
11119
11120as_executable_p="test -f"
11121
11122# Sed expression to map a string onto a valid CPP name.
11123as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11124
11125# Sed expression to map a string onto a valid variable name.
11126as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11127
11128
11129# IFS
11130# We need space, tab and new line, in precisely that order.
11131as_nl='
11132'
11133IFS=" $as_nl"
11134
11135# CDPATH.
11136$as_unset CDPATH
11137
11138exec 6>&1
11139
11140# Open the log real soon, to keep \$[0] and so on meaningful, and to
11141# report actual input values of CONFIG_FILES etc. instead of their
11142# values after options handling. Logging --version etc. is OK.
11143exec 5>>config.log
11144{
11145 echo
11146 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11147## Running $as_me. ##
11148_ASBOX
11149} >&5
11150cat >&5 <<_CSEOF
11151
11152This file was extended by GNU Fortran Runtime Library $as_me 0.2, which was
11153generated by GNU Autoconf 2.59. Invocation command line was
11154
11155 CONFIG_FILES = $CONFIG_FILES
11156 CONFIG_HEADERS = $CONFIG_HEADERS
11157 CONFIG_LINKS = $CONFIG_LINKS
11158 CONFIG_COMMANDS = $CONFIG_COMMANDS
11159 $ $0 $@
11160
11161_CSEOF
11162echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
11163echo >&5
11164_ACEOF
11165
11166# Files that config.status was made for.
11167if test -n "$ac_config_files"; then
11168 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
11169fi
11170
11171if test -n "$ac_config_headers"; then
11172 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
11173fi
11174
11175if test -n "$ac_config_links"; then
11176 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
11177fi
11178
11179if test -n "$ac_config_commands"; then
11180 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
11181fi
11182
11183cat >>$CONFIG_STATUS <<\_ACEOF
11184
11185ac_cs_usage="\
11186\`$as_me' instantiates files from templates according to the
11187current configuration.
11188
11189Usage: $0 [OPTIONS] [FILE]...
11190
11191 -h, --help print this help, then exit
11192 -V, --version print version number, then exit
11193 -q, --quiet do not print progress messages
11194 -d, --debug don't remove temporary files
11195 --recheck update $as_me by reconfiguring in the same conditions
11196 --file=FILE[:TEMPLATE]
11197 instantiate the configuration file FILE
11198 --header=FILE[:TEMPLATE]
11199 instantiate the configuration header FILE
11200
11201Configuration files:
11202$config_files
11203
11204Configuration headers:
11205$config_headers
11206
11207Configuration commands:
11208$config_commands
11209
11210Report bugs to <bug-autoconf@gnu.org>."
11211_ACEOF
11212
11213cat >>$CONFIG_STATUS <<_ACEOF
11214ac_cs_version="\\
11215GNU Fortran Runtime Library config.status 0.2
11216configured by $0, generated by GNU Autoconf 2.59,
11217 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
11218
11219Copyright (C) 2003 Free Software Foundation, Inc.
11220This config.status script is free software; the Free Software Foundation
11221gives unlimited permission to copy, distribute and modify it."
11222srcdir=$srcdir
11223INSTALL="$INSTALL"
11224_ACEOF
11225
11226cat >>$CONFIG_STATUS <<\_ACEOF
11227# If no file are specified by the user, then we need to provide default
11228# value. By we need to know if files were specified by the user.
11229ac_need_defaults=:
11230while test $# != 0
11231do
11232 case $1 in
11233 --*=*)
11234 ac_option=`expr "x$1" : 'x\([^=]*\)='`
11235 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
11236 ac_shift=:
11237 ;;
11238 -*)
11239 ac_option=$1
11240 ac_optarg=$2
11241 ac_shift=shift
11242 ;;
11243 *) # This is not an option, so the user has probably given explicit
11244 # arguments.
11245 ac_option=$1
11246 ac_need_defaults=false;;
11247 esac
11248
11249 case $ac_option in
11250 # Handling of the options.
11251_ACEOF
11252cat >>$CONFIG_STATUS <<\_ACEOF
11253 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11254 ac_cs_recheck=: ;;
11255 --version | --vers* | -V )
11256 echo "$ac_cs_version"; exit 0 ;;
11257 --he | --h)
11258 # Conflict between --help and --header
11259 { { echo "$as_me:$LINENO: error: ambiguous option: $1
11260Try \`$0 --help' for more information." >&5
11261echo "$as_me: error: ambiguous option: $1
11262Try \`$0 --help' for more information." >&2;}
11263 { (exit 1); exit 1; }; };;
11264 --help | --hel | -h )
11265 echo "$ac_cs_usage"; exit 0 ;;
11266 --debug | --d* | -d )
11267 debug=: ;;
11268 --file | --fil | --fi | --f )
11269 $ac_shift
11270 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
11271 ac_need_defaults=false;;
11272 --header | --heade | --head | --hea )
11273 $ac_shift
11274 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
11275 ac_need_defaults=false;;
11276 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11277 | -silent | --silent | --silen | --sile | --sil | --si | --s)
11278 ac_cs_silent=: ;;
11279
11280 # This is an error.
11281 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
11282Try \`$0 --help' for more information." >&5
11283echo "$as_me: error: unrecognized option: $1
11284Try \`$0 --help' for more information." >&2;}
11285 { (exit 1); exit 1; }; } ;;
11286
11287 *) ac_config_targets="$ac_config_targets $1" ;;
11288
11289 esac
11290 shift
11291done
11292
11293ac_configure_extra_args=
11294
11295if $ac_cs_silent; then
11296 exec 6>/dev/null
11297 ac_configure_extra_args="$ac_configure_extra_args --silent"
11298fi
11299
11300_ACEOF
11301cat >>$CONFIG_STATUS <<_ACEOF
11302if \$ac_cs_recheck; then
11303 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
11304 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11305fi
11306
11307_ACEOF
11308
11309cat >>$CONFIG_STATUS <<_ACEOF
11310#
11311# INIT-COMMANDS section.
11312#
11313
96b8a615
AJ
11314
11315srcdir="$srcdir"
11316host="$host"
11317target="$target"
11318with_multisubdir="$with_multisubdir"
11319with_multisrctop="$with_multisrctop"
11320with_target_subdir="$with_target_subdir"
11321ac_configure_args="${multilib_arg} ${ac_configure_args}"
11322multi_basedir="$multi_basedir"
11323CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
11324CC="$CC"
6de9cd9a
DN
11325
11326_ACEOF
11327
11328
11329
11330cat >>$CONFIG_STATUS <<\_ACEOF
11331for ac_config_target in $ac_config_targets
11332do
11333 case "$ac_config_target" in
11334 # Handling of arguments.
11335 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
96b8a615 11336 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
6de9cd9a
DN
11337 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
11338 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
11339echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
11340 { (exit 1); exit 1; }; };;
11341 esac
11342done
11343
11344# If the user did not use the arguments to specify the items to instantiate,
11345# then the envvar interface is used. Set only those that are not.
11346# We use the long form for the default assignment because of an extremely
11347# bizarre bug on SunOS 4.1.3.
11348if $ac_need_defaults; then
11349 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
11350 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
11351 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
11352fi
11353
11354# Have a temporary directory for convenience. Make it in the build tree
11355# simply because there is no reason to put it here, and in addition,
11356# creating and moving files from /tmp can sometimes cause problems.
11357# Create a temporary directory, and hook for its removal unless debugging.
11358$debug ||
11359{
11360 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
11361 trap '{ (exit 1); exit 1; }' 1 2 13 15
11362}
11363
11364# Create a (secure) tmp directory for tmp files.
11365
11366{
11367 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
11368 test -n "$tmp" && test -d "$tmp"
11369} ||
11370{
11371 tmp=./confstat$$-$RANDOM
11372 (umask 077 && mkdir $tmp)
11373} ||
11374{
11375 echo "$me: cannot create a temporary directory in ." >&2
11376 { (exit 1); exit 1; }
11377}
11378
11379_ACEOF
11380
11381cat >>$CONFIG_STATUS <<_ACEOF
11382
11383#
11384# CONFIG_FILES section.
11385#
11386
11387# No need to generate the scripts if there are no CONFIG_FILES.
11388# This happens for instance when ./config.status config.h
11389if test -n "\$CONFIG_FILES"; then
11390 # Protect against being on the right side of a sed subst in config.status.
11391 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
11392 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
11393s,@SHELL@,$SHELL,;t t
11394s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
11395s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
11396s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
11397s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
11398s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
11399s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
11400s,@exec_prefix@,$exec_prefix,;t t
11401s,@prefix@,$prefix,;t t
11402s,@program_transform_name@,$program_transform_name,;t t
11403s,@bindir@,$bindir,;t t
11404s,@sbindir@,$sbindir,;t t
11405s,@libexecdir@,$libexecdir,;t t
11406s,@datadir@,$datadir,;t t
11407s,@sysconfdir@,$sysconfdir,;t t
11408s,@sharedstatedir@,$sharedstatedir,;t t
11409s,@localstatedir@,$localstatedir,;t t
11410s,@libdir@,$libdir,;t t
11411s,@includedir@,$includedir,;t t
11412s,@oldincludedir@,$oldincludedir,;t t
11413s,@infodir@,$infodir,;t t
11414s,@mandir@,$mandir,;t t
11415s,@build_alias@,$build_alias,;t t
11416s,@host_alias@,$host_alias,;t t
11417s,@target_alias@,$target_alias,;t t
11418s,@DEFS@,$DEFS,;t t
11419s,@ECHO_C@,$ECHO_C,;t t
11420s,@ECHO_N@,$ECHO_N,;t t
11421s,@ECHO_T@,$ECHO_T,;t t
11422s,@LIBS@,$LIBS,;t t
96b8a615
AJ
11423s,@build@,$build,;t t
11424s,@build_cpu@,$build_cpu,;t t
11425s,@build_vendor@,$build_vendor,;t t
11426s,@build_os@,$build_os,;t t
11427s,@host@,$host,;t t
11428s,@host_cpu@,$host_cpu,;t t
11429s,@host_vendor@,$host_vendor,;t t
11430s,@host_os@,$host_os,;t t
11431s,@target@,$target,;t t
11432s,@target_cpu@,$target_cpu,;t t
11433s,@target_vendor@,$target_vendor,;t t
11434s,@target_os@,$target_os,;t t
6de9cd9a
DN
11435s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
11436s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
11437s,@INSTALL_DATA@,$INSTALL_DATA,;t t
11438s,@CYGPATH_W@,$CYGPATH_W,;t t
11439s,@PACKAGE@,$PACKAGE,;t t
11440s,@VERSION@,$VERSION,;t t
11441s,@ACLOCAL@,$ACLOCAL,;t t
11442s,@AUTOCONF@,$AUTOCONF,;t t
11443s,@AUTOMAKE@,$AUTOMAKE,;t t
11444s,@AUTOHEADER@,$AUTOHEADER,;t t
11445s,@MAKEINFO@,$MAKEINFO,;t t
6de9cd9a
DN
11446s,@install_sh@,$install_sh,;t t
11447s,@STRIP@,$STRIP,;t t
11448s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
11449s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
11450s,@mkdir_p@,$mkdir_p,;t t
11451s,@AWK@,$AWK,;t t
11452s,@SET_MAKE@,$SET_MAKE,;t t
11453s,@am__leading_dot@,$am__leading_dot,;t t
d49ec2d1
KC
11454s,@AMTAR@,$AMTAR,;t t
11455s,@am__tar@,$am__tar,;t t
11456s,@am__untar@,$am__untar,;t t
6de9cd9a
DN
11457s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
11458s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
11459s,@MAINT@,$MAINT,;t t
96b8a615
AJ
11460s,@multi_basedir@,$multi_basedir,;t t
11461s,@gcc_version@,$gcc_version,;t t
11462s,@toolexecdir@,$toolexecdir,;t t
11463s,@toolexeclibdir@,$toolexeclibdir,;t t
6de9cd9a 11464s,@CC@,$CC,;t t
6de9cd9a
DN
11465s,@ac_ct_CC@,$ac_ct_CC,;t t
11466s,@EXEEXT@,$EXEEXT,;t t
11467s,@OBJEXT@,$OBJEXT,;t t
96b8a615
AJ
11468s,@CFLAGS@,$CFLAGS,;t t
11469s,@AS@,$AS,;t t
11470s,@ac_ct_AS@,$ac_ct_AS,;t t
11471s,@AR@,$AR,;t t
11472s,@ac_ct_AR@,$ac_ct_AR,;t t
11473s,@RANLIB@,$RANLIB,;t t
11474s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
11475s,@LN_S@,$LN_S,;t t
11476s,@LIBTOOL@,$LIBTOOL,;t t
11477s,@enable_shared@,$enable_shared,;t t
11478s,@enable_static@,$enable_static,;t t
6de9cd9a
DN
11479s,@F77@,$F77,;t t
11480s,@FFLAGS@,$FFLAGS,;t t
96b8a615 11481s,@LDFLAGS@,$LDFLAGS,;t t
6de9cd9a
DN
11482s,@ac_ct_F77@,$ac_ct_F77,;t t
11483s,@CPP@,$CPP,;t t
96b8a615 11484s,@CPPFLAGS@,$CPPFLAGS,;t t
6de9cd9a
DN
11485s,@EGREP@,$EGREP,;t t
11486s,@MATH_OBJ@,$MATH_OBJ,;t t
6de9cd9a
DN
11487s,@LIBOBJS@,$LIBOBJS,;t t
11488s,@LTLIBOBJS@,$LTLIBOBJS,;t t
11489CEOF
11490
11491_ACEOF
11492
11493 cat >>$CONFIG_STATUS <<\_ACEOF
11494 # Split the substitutions into bite-sized pieces for seds with
11495 # small command number limits, like on Digital OSF/1 and HP-UX.
11496 ac_max_sed_lines=48
11497 ac_sed_frag=1 # Number of current file.
11498 ac_beg=1 # First line for current file.
11499 ac_end=$ac_max_sed_lines # Line after last line for current file.
11500 ac_more_lines=:
11501 ac_sed_cmds=
11502 while $ac_more_lines; do
11503 if test $ac_beg -gt 1; then
11504 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
11505 else
11506 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
11507 fi
11508 if test ! -s $tmp/subs.frag; then
11509 ac_more_lines=false
11510 else
11511 # The purpose of the label and of the branching condition is to
11512 # speed up the sed processing (if there are no `@' at all, there
11513 # is no need to browse any of the substitutions).
11514 # These are the two extra sed commands mentioned above.
11515 (echo ':t
11516 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
11517 if test -z "$ac_sed_cmds"; then
11518 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
11519 else
11520 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
11521 fi
11522 ac_sed_frag=`expr $ac_sed_frag + 1`
11523 ac_beg=$ac_end
11524 ac_end=`expr $ac_end + $ac_max_sed_lines`
11525 fi
11526 done
11527 if test -z "$ac_sed_cmds"; then
11528 ac_sed_cmds=cat
11529 fi
11530fi # test -n "$CONFIG_FILES"
11531
11532_ACEOF
11533cat >>$CONFIG_STATUS <<\_ACEOF
11534for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
11535 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
11536 case $ac_file in
11537 - | *:- | *:-:* ) # input from stdin
11538 cat >$tmp/stdin
11539 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11540 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11541 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11542 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11543 * ) ac_file_in=$ac_file.in ;;
11544 esac
11545
11546 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
11547 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
11548$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11549 X"$ac_file" : 'X\(//\)[^/]' \| \
11550 X"$ac_file" : 'X\(//\)$' \| \
11551 X"$ac_file" : 'X\(/\)' \| \
11552 . : '\(.\)' 2>/dev/null ||
11553echo X"$ac_file" |
11554 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11555 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11556 /^X\(\/\/\)$/{ s//\1/; q; }
11557 /^X\(\/\).*/{ s//\1/; q; }
11558 s/.*/./; q'`
11559 { if $as_mkdir_p; then
11560 mkdir -p "$ac_dir"
11561 else
11562 as_dir="$ac_dir"
11563 as_dirs=
11564 while test ! -d "$as_dir"; do
11565 as_dirs="$as_dir $as_dirs"
11566 as_dir=`(dirname "$as_dir") 2>/dev/null ||
11567$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11568 X"$as_dir" : 'X\(//\)[^/]' \| \
11569 X"$as_dir" : 'X\(//\)$' \| \
11570 X"$as_dir" : 'X\(/\)' \| \
11571 . : '\(.\)' 2>/dev/null ||
11572echo X"$as_dir" |
11573 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11574 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11575 /^X\(\/\/\)$/{ s//\1/; q; }
11576 /^X\(\/\).*/{ s//\1/; q; }
11577 s/.*/./; q'`
11578 done
11579 test ! -n "$as_dirs" || mkdir $as_dirs
11580 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
11581echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
11582 { (exit 1); exit 1; }; }; }
11583
11584 ac_builddir=.
11585
11586if test "$ac_dir" != .; then
11587 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
11588 # A "../" for each directory in $ac_dir_suffix.
11589 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
11590else
11591 ac_dir_suffix= ac_top_builddir=
11592fi
11593
11594case $srcdir in
11595 .) # No --srcdir option. We are building in place.
11596 ac_srcdir=.
11597 if test -z "$ac_top_builddir"; then
11598 ac_top_srcdir=.
11599 else
11600 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
11601 fi ;;
11602 [\\/]* | ?:[\\/]* ) # Absolute path.
11603 ac_srcdir=$srcdir$ac_dir_suffix;
11604 ac_top_srcdir=$srcdir ;;
11605 *) # Relative path.
11606 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
11607 ac_top_srcdir=$ac_top_builddir$srcdir ;;
11608esac
11609
11610# Do not use `cd foo && pwd` to compute absolute paths, because
11611# the directories may not exist.
11612case `pwd` in
11613.) ac_abs_builddir="$ac_dir";;
11614*)
11615 case "$ac_dir" in
11616 .) ac_abs_builddir=`pwd`;;
11617 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
11618 *) ac_abs_builddir=`pwd`/"$ac_dir";;
11619 esac;;
11620esac
11621case $ac_abs_builddir in
11622.) ac_abs_top_builddir=${ac_top_builddir}.;;
11623*)
11624 case ${ac_top_builddir}. in
11625 .) ac_abs_top_builddir=$ac_abs_builddir;;
11626 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
11627 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
11628 esac;;
11629esac
11630case $ac_abs_builddir in
11631.) ac_abs_srcdir=$ac_srcdir;;
11632*)
11633 case $ac_srcdir in
11634 .) ac_abs_srcdir=$ac_abs_builddir;;
11635 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
11636 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
11637 esac;;
11638esac
11639case $ac_abs_builddir in
11640.) ac_abs_top_srcdir=$ac_top_srcdir;;
11641*)
11642 case $ac_top_srcdir in
11643 .) ac_abs_top_srcdir=$ac_abs_builddir;;
11644 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
11645 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
11646 esac;;
11647esac
11648
11649
11650 case $INSTALL in
11651 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
11652 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
11653 esac
11654
bf4d99cf
TS
11655 if test x"$ac_file" != x-; then
11656 { echo "$as_me:$LINENO: creating $ac_file" >&5
11657echo "$as_me: creating $ac_file" >&6;}
11658 rm -f "$ac_file"
11659 fi
6de9cd9a
DN
11660 # Let's still pretend it is `configure' which instantiates (i.e., don't
11661 # use $as_me), people would be surprised to read:
11662 # /* config.h. Generated by config.status. */
11663 if test x"$ac_file" = x-; then
11664 configure_input=
11665 else
11666 configure_input="$ac_file. "
11667 fi
11668 configure_input=$configure_input"Generated from `echo $ac_file_in |
11669 sed 's,.*/,,'` by configure."
11670
11671 # First look for the input files in the build tree, otherwise in the
11672 # src tree.
11673 ac_file_inputs=`IFS=:
11674 for f in $ac_file_in; do
11675 case $f in
11676 -) echo $tmp/stdin ;;
11677 [\\/$]*)
11678 # Absolute (can't be DOS-style, as IFS=:)
11679 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11680echo "$as_me: error: cannot find input file: $f" >&2;}
11681 { (exit 1); exit 1; }; }
11682 echo "$f";;
11683 *) # Relative
11684 if test -f "$f"; then
11685 # Build tree
11686 echo "$f"
11687 elif test -f "$srcdir/$f"; then
11688 # Source tree
11689 echo "$srcdir/$f"
11690 else
11691 # /dev/null tree
11692 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11693echo "$as_me: error: cannot find input file: $f" >&2;}
11694 { (exit 1); exit 1; }; }
11695 fi;;
11696 esac
11697 done` || { (exit 1); exit 1; }
6de9cd9a
DN
11698_ACEOF
11699cat >>$CONFIG_STATUS <<_ACEOF
11700 sed "$ac_vpsub
11701$extrasub
11702_ACEOF
11703cat >>$CONFIG_STATUS <<\_ACEOF
11704:t
11705/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
11706s,@configure_input@,$configure_input,;t t
11707s,@srcdir@,$ac_srcdir,;t t
11708s,@abs_srcdir@,$ac_abs_srcdir,;t t
11709s,@top_srcdir@,$ac_top_srcdir,;t t
11710s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
11711s,@builddir@,$ac_builddir,;t t
11712s,@abs_builddir@,$ac_abs_builddir,;t t
11713s,@top_builddir@,$ac_top_builddir,;t t
11714s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
11715s,@INSTALL@,$ac_INSTALL,;t t
11716" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
11717 rm -f $tmp/stdin
11718 if test x"$ac_file" != x-; then
11719 mv $tmp/out $ac_file
11720 else
11721 cat $tmp/out
11722 rm -f $tmp/out
11723 fi
11724
11725done
11726_ACEOF
11727cat >>$CONFIG_STATUS <<\_ACEOF
11728
11729#
11730# CONFIG_HEADER section.
11731#
11732
11733# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
11734# NAME is the cpp macro being defined and VALUE is the value it is being given.
11735#
11736# ac_d sets the value in "#define NAME VALUE" lines.
11737ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
11738ac_dB='[ ].*$,\1#\2'
11739ac_dC=' '
11740ac_dD=',;t'
11741# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
11742ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
11743ac_uB='$,\1#\2define\3'
11744ac_uC=' '
11745ac_uD=',;t'
11746
11747for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
11748 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
11749 case $ac_file in
11750 - | *:- | *:-:* ) # input from stdin
11751 cat >$tmp/stdin
11752 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11753 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11754 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11755 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11756 * ) ac_file_in=$ac_file.in ;;
11757 esac
11758
11759 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
11760echo "$as_me: creating $ac_file" >&6;}
11761
11762 # First look for the input files in the build tree, otherwise in the
11763 # src tree.
11764 ac_file_inputs=`IFS=:
11765 for f in $ac_file_in; do
11766 case $f in
11767 -) echo $tmp/stdin ;;
11768 [\\/$]*)
11769 # Absolute (can't be DOS-style, as IFS=:)
11770 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11771echo "$as_me: error: cannot find input file: $f" >&2;}
11772 { (exit 1); exit 1; }; }
11773 # Do quote $f, to prevent DOS paths from being IFS'd.
11774 echo "$f";;
11775 *) # Relative
11776 if test -f "$f"; then
11777 # Build tree
11778 echo "$f"
11779 elif test -f "$srcdir/$f"; then
11780 # Source tree
11781 echo "$srcdir/$f"
11782 else
11783 # /dev/null tree
11784 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11785echo "$as_me: error: cannot find input file: $f" >&2;}
11786 { (exit 1); exit 1; }; }
11787 fi;;
11788 esac
11789 done` || { (exit 1); exit 1; }
11790 # Remove the trailing spaces.
11791 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
11792
11793_ACEOF
11794
11795# Transform confdefs.h into two sed scripts, `conftest.defines' and
11796# `conftest.undefs', that substitutes the proper values into
11797# config.h.in to produce config.h. The first handles `#define'
11798# templates, and the second `#undef' templates.
11799# And first: Protect against being on the right side of a sed subst in
11800# config.status. Protect against being in an unquoted here document
11801# in config.status.
11802rm -f conftest.defines conftest.undefs
11803# Using a here document instead of a string reduces the quoting nightmare.
11804# Putting comments in sed scripts is not portable.
11805#
11806# `end' is used to avoid that the second main sed command (meant for
11807# 0-ary CPP macros) applies to n-ary macro definitions.
11808# See the Autoconf documentation for `clear'.
11809cat >confdef2sed.sed <<\_ACEOF
11810s/[\\&,]/\\&/g
11811s,[\\$`],\\&,g
11812t clear
11813: clear
11814s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
11815t end
11816s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
11817: end
11818_ACEOF
11819# If some macros were called several times there might be several times
11820# the same #defines, which is useless. Nevertheless, we may not want to
11821# sort them, since we want the *last* AC-DEFINE to be honored.
11822uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
11823sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
11824rm -f confdef2sed.sed
11825
11826# This sed command replaces #undef with comments. This is necessary, for
11827# example, in the case of _POSIX_SOURCE, which is predefined and required
11828# on some systems where configure will not decide to define it.
11829cat >>conftest.undefs <<\_ACEOF
11830s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
11831_ACEOF
11832
11833# Break up conftest.defines because some shells have a limit on the size
11834# of here documents, and old seds have small limits too (100 cmds).
11835echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
11836echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
11837echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
11838echo ' :' >>$CONFIG_STATUS
11839rm -f conftest.tail
11840while grep . conftest.defines >/dev/null
11841do
11842 # Write a limited-size here document to $tmp/defines.sed.
11843 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
11844 # Speed up: don't consider the non `#define' lines.
11845 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
11846 # Work around the forget-to-reset-the-flag bug.
11847 echo 't clr' >>$CONFIG_STATUS
11848 echo ': clr' >>$CONFIG_STATUS
11849 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
11850 echo 'CEOF
11851 sed -f $tmp/defines.sed $tmp/in >$tmp/out
11852 rm -f $tmp/in
11853 mv $tmp/out $tmp/in
11854' >>$CONFIG_STATUS
11855 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
11856 rm -f conftest.defines
11857 mv conftest.tail conftest.defines
11858done
11859rm -f conftest.defines
11860echo ' fi # grep' >>$CONFIG_STATUS
11861echo >>$CONFIG_STATUS
11862
11863# Break up conftest.undefs because some shells have a limit on the size
11864# of here documents, and old seds have small limits too (100 cmds).
11865echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
11866rm -f conftest.tail
11867while grep . conftest.undefs >/dev/null
11868do
11869 # Write a limited-size here document to $tmp/undefs.sed.
11870 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
11871 # Speed up: don't consider the non `#undef'
11872 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
11873 # Work around the forget-to-reset-the-flag bug.
11874 echo 't clr' >>$CONFIG_STATUS
11875 echo ': clr' >>$CONFIG_STATUS
11876 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
11877 echo 'CEOF
11878 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
11879 rm -f $tmp/in
11880 mv $tmp/out $tmp/in
11881' >>$CONFIG_STATUS
11882 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
11883 rm -f conftest.undefs
11884 mv conftest.tail conftest.undefs
11885done
11886rm -f conftest.undefs
11887
11888cat >>$CONFIG_STATUS <<\_ACEOF
11889 # Let's still pretend it is `configure' which instantiates (i.e., don't
11890 # use $as_me), people would be surprised to read:
11891 # /* config.h. Generated by config.status. */
11892 if test x"$ac_file" = x-; then
11893 echo "/* Generated by configure. */" >$tmp/config.h
11894 else
11895 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
11896 fi
11897 cat $tmp/in >>$tmp/config.h
11898 rm -f $tmp/in
11899 if test x"$ac_file" != x-; then
11900 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
11901 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
11902echo "$as_me: $ac_file is unchanged" >&6;}
11903 else
11904 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
11905$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11906 X"$ac_file" : 'X\(//\)[^/]' \| \
11907 X"$ac_file" : 'X\(//\)$' \| \
11908 X"$ac_file" : 'X\(/\)' \| \
11909 . : '\(.\)' 2>/dev/null ||
11910echo X"$ac_file" |
11911 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11912 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11913 /^X\(\/\/\)$/{ s//\1/; q; }
11914 /^X\(\/\).*/{ s//\1/; q; }
11915 s/.*/./; q'`
11916 { if $as_mkdir_p; then
11917 mkdir -p "$ac_dir"
11918 else
11919 as_dir="$ac_dir"
11920 as_dirs=
11921 while test ! -d "$as_dir"; do
11922 as_dirs="$as_dir $as_dirs"
11923 as_dir=`(dirname "$as_dir") 2>/dev/null ||
11924$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11925 X"$as_dir" : 'X\(//\)[^/]' \| \
11926 X"$as_dir" : 'X\(//\)$' \| \
11927 X"$as_dir" : 'X\(/\)' \| \
11928 . : '\(.\)' 2>/dev/null ||
11929echo X"$as_dir" |
11930 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11931 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11932 /^X\(\/\/\)$/{ s//\1/; q; }
11933 /^X\(\/\).*/{ s//\1/; q; }
11934 s/.*/./; q'`
11935 done
11936 test ! -n "$as_dirs" || mkdir $as_dirs
11937 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
11938echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
11939 { (exit 1); exit 1; }; }; }
11940
11941 rm -f $ac_file
11942 mv $tmp/config.h $ac_file
11943 fi
11944 else
11945 cat $tmp/config.h
11946 rm -f $tmp/config.h
11947 fi
11948# Compute $ac_file's index in $config_headers.
11949_am_stamp_count=1
11950for _am_header in $config_headers :; do
11951 case $_am_header in
11952 $ac_file | $ac_file:* )
11953 break ;;
11954 * )
11955 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
11956 esac
11957done
11958echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
11959$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11960 X$ac_file : 'X\(//\)[^/]' \| \
11961 X$ac_file : 'X\(//\)$' \| \
11962 X$ac_file : 'X\(/\)' \| \
11963 . : '\(.\)' 2>/dev/null ||
11964echo X$ac_file |
11965 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11966 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11967 /^X\(\/\/\)$/{ s//\1/; q; }
11968 /^X\(\/\).*/{ s//\1/; q; }
11969 s/.*/./; q'`/stamp-h$_am_stamp_count
11970done
11971_ACEOF
11972cat >>$CONFIG_STATUS <<\_ACEOF
11973
11974#
11975# CONFIG_COMMANDS section.
11976#
11977for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
11978 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
11979 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
11980 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
11981$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11982 X"$ac_dest" : 'X\(//\)[^/]' \| \
11983 X"$ac_dest" : 'X\(//\)$' \| \
11984 X"$ac_dest" : 'X\(/\)' \| \
11985 . : '\(.\)' 2>/dev/null ||
11986echo X"$ac_dest" |
11987 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11988 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11989 /^X\(\/\/\)$/{ s//\1/; q; }
11990 /^X\(\/\).*/{ s//\1/; q; }
11991 s/.*/./; q'`
11992 { if $as_mkdir_p; then
11993 mkdir -p "$ac_dir"
11994 else
11995 as_dir="$ac_dir"
11996 as_dirs=
11997 while test ! -d "$as_dir"; do
11998 as_dirs="$as_dir $as_dirs"
11999 as_dir=`(dirname "$as_dir") 2>/dev/null ||
12000$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12001 X"$as_dir" : 'X\(//\)[^/]' \| \
12002 X"$as_dir" : 'X\(//\)$' \| \
12003 X"$as_dir" : 'X\(/\)' \| \
12004 . : '\(.\)' 2>/dev/null ||
12005echo X"$as_dir" |
12006 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12007 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12008 /^X\(\/\/\)$/{ s//\1/; q; }
12009 /^X\(\/\).*/{ s//\1/; q; }
12010 s/.*/./; q'`
12011 done
12012 test ! -n "$as_dirs" || mkdir $as_dirs
12013 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
12014echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
12015 { (exit 1); exit 1; }; }; }
12016
12017 ac_builddir=.
12018
12019if test "$ac_dir" != .; then
12020 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
12021 # A "../" for each directory in $ac_dir_suffix.
12022 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
12023else
12024 ac_dir_suffix= ac_top_builddir=
12025fi
12026
12027case $srcdir in
12028 .) # No --srcdir option. We are building in place.
12029 ac_srcdir=.
12030 if test -z "$ac_top_builddir"; then
12031 ac_top_srcdir=.
12032 else
12033 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
12034 fi ;;
12035 [\\/]* | ?:[\\/]* ) # Absolute path.
12036 ac_srcdir=$srcdir$ac_dir_suffix;
12037 ac_top_srcdir=$srcdir ;;
12038 *) # Relative path.
12039 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
12040 ac_top_srcdir=$ac_top_builddir$srcdir ;;
12041esac
12042
12043# Do not use `cd foo && pwd` to compute absolute paths, because
12044# the directories may not exist.
12045case `pwd` in
12046.) ac_abs_builddir="$ac_dir";;
12047*)
12048 case "$ac_dir" in
12049 .) ac_abs_builddir=`pwd`;;
12050 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
12051 *) ac_abs_builddir=`pwd`/"$ac_dir";;
12052 esac;;
12053esac
12054case $ac_abs_builddir in
12055.) ac_abs_top_builddir=${ac_top_builddir}.;;
12056*)
12057 case ${ac_top_builddir}. in
12058 .) ac_abs_top_builddir=$ac_abs_builddir;;
12059 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
12060 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
12061 esac;;
12062esac
12063case $ac_abs_builddir in
12064.) ac_abs_srcdir=$ac_srcdir;;
12065*)
12066 case $ac_srcdir in
12067 .) ac_abs_srcdir=$ac_abs_builddir;;
12068 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
12069 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
12070 esac;;
12071esac
12072case $ac_abs_builddir in
12073.) ac_abs_top_srcdir=$ac_top_srcdir;;
12074*)
12075 case $ac_top_srcdir in
12076 .) ac_abs_top_srcdir=$ac_abs_builddir;;
12077 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
12078 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
12079 esac;;
12080esac
12081
12082
12083 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
12084echo "$as_me: executing $ac_dest commands" >&6;}
12085 case $ac_dest in
96b8a615
AJ
12086 default-1 )
12087# Only add multilib support code if we just rebuilt the top-level
12088# Makefile.
12089case " $CONFIG_FILES " in
12090 *" Makefile "*)
12091 ac_file=Makefile . ${multi_basedir}/config-ml.in
12092 ;;
12093esac ;;
6de9cd9a
DN
12094 esac
12095done
12096_ACEOF
12097
12098cat >>$CONFIG_STATUS <<\_ACEOF
12099
12100{ (exit 0); exit 0; }
12101_ACEOF
12102chmod +x $CONFIG_STATUS
12103ac_clean_files=$ac_clean_files_save
12104
12105
12106# configure is writing to config.log, and then calls config.status.
12107# config.status does its own redirection, appending to config.log.
12108# Unfortunately, on DOS this fails, as config.log is still kept open
12109# by configure, so config.status won't be able to write to it; its
12110# output is simply discarded. So we exec the FD to /dev/null,
12111# effectively closing config.log, so it can be properly (re)opened and
12112# appended to by config.status. When coming back to configure, we
12113# need to make the FD available again.
12114if test "$no_create" != yes; then
12115 ac_cs_success=:
12116 ac_config_status_args=
12117 test "$silent" = yes &&
12118 ac_config_status_args="$ac_config_status_args --quiet"
12119 exec 5>/dev/null
12120 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
12121 exec 5>>config.log
12122 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12123 # would make configure fail if this is the last instruction.
12124 $ac_cs_success || { (exit 1); exit 1; }
12125fi
12126
This page took 1.330956 seconds and 5 git commands to generate.