2005-09-12 Benjamin Kosnik <bkoz@redhat.com>
[official-gcc.git] / libgfortran / configure
blob74f922b95b365919e6131cfef7f71f5abaaba8c4
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.
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 ## --------------------- ##
12 # Be Bourne compatible
13 if 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+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20 set -o posix
22 DUALCASE=1; export DUALCASE # for MKS sh
24 # Support unset when possible.
25 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26 as_unset=unset
27 else
28 as_unset=false
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
34 PS1='$ '
35 PS2='> '
36 PS4='+ '
38 # NLS nuisances.
39 for 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
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
49 done
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
53 as_expr=expr
54 else
55 as_expr=false
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59 as_basename=basename
60 else
61 as_basename=false
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
71 echo X/"$0" |
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
75 s/.*/./; q'`
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
86 # The user is always right.
87 if 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=:
96 rm -f conf$$.sh
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
110 for as_dir in $PATH
112 IFS=$as_save_IFS
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115 done
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
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; }; }
128 case $CONFIG_SHELL in
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
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
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
152 done
154 esac
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 '
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; }; }
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
187 case `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= ;;
192 esac
194 if expr a : '\(a\)' >/dev/null 2>&1; then
195 as_expr=expr
196 else
197 as_expr=false
200 rm -f conf$$ conf$$.exe conf$$.file
201 echo >conf$$.file
202 if 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'
211 elif ln conf$$.file conf$$ 2>/dev/null; then
212 as_ln_s=ln
213 else
214 as_ln_s='cp -p'
216 rm -f conf$$ conf$$.exe conf$$.file
218 if mkdir -p . 2>/dev/null; then
219 as_mkdir_p=:
220 else
221 test -d ./-p && rmdir ./-p
222 as_mkdir_p=false
225 as_executable_p="test -f"
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
234 # IFS
235 # We need space, tab and new line, in precisely that order.
236 as_nl='
238 IFS=" $as_nl"
240 # CDPATH.
241 $as_unset CDPATH
244 # Name of the host.
245 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246 # so uname gets run too.
247 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
249 exec 6>&1
252 # Initializations.
254 ac_default_prefix=/usr/local
255 ac_config_libobj_dir=.
256 cross_compiling=no
257 subdirs=
258 MFLAGS=
259 MAKEFLAGS=
260 SHELL=${CONFIG_SHELL-/bin/sh}
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}
267 # Identity of this package.
268 PACKAGE_NAME='GNU Fortran Runtime Library'
269 PACKAGE_TARNAME='libgfortran'
270 PACKAGE_VERSION='0.2'
271 PACKAGE_STRING='GNU Fortran Runtime Library 0.2'
272 PACKAGE_BUGREPORT=''
274 # Factoring default headers for most tests.
275 ac_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"
311 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT multi_basedir toolexecdir toolexeclibdir CC ac_ct_CC EXEEXT OBJEXT AM_FCFLAGS AM_CFLAGS AS ac_ct_AS AR ac_ct_AR RANLIB ac_ct_RANLIB LN_S LIBTOOL enable_shared enable_static FC FCFLAGS LDFLAGS ac_ct_FC extra_ldflags_libgfortran CPP CPPFLAGS EGREP MATH_OBJ LIBOBJS LTLIBOBJS'
312 ac_subst_files=''
314 # Initialize some variables set by options.
315 ac_init_help=
316 ac_init_version=false
317 # The variables have the same names as the options, with
318 # dashes changed to underlines.
319 cache_file=/dev/null
320 exec_prefix=NONE
321 no_create=
322 no_recursion=
323 prefix=NONE
324 program_prefix=NONE
325 program_suffix=NONE
326 program_transform_name=s,x,x,
327 silent=
328 site=
329 srcdir=
330 verbose=
331 x_includes=NONE
332 x_libraries=NONE
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.
339 bindir='${exec_prefix}/bin'
340 sbindir='${exec_prefix}/sbin'
341 libexecdir='${exec_prefix}/libexec'
342 datadir='${prefix}/share'
343 sysconfdir='${prefix}/etc'
344 sharedstatedir='${prefix}/com'
345 localstatedir='${prefix}/var'
346 libdir='${exec_prefix}/lib'
347 includedir='${prefix}/include'
348 oldincludedir='/usr/include'
349 infodir='${prefix}/info'
350 mandir='${prefix}/man'
352 ac_prev=
353 for ac_option
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
362 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
364 # Accept the important Cygnus configure options, so we can diagnose typos.
366 case $ac_option in
368 -bindir | --bindir | --bindi | --bind | --bin | --bi)
369 ac_prev=bindir ;;
370 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
371 bindir=$ac_optarg ;;
373 -build | --build | --buil | --bui | --bu)
374 ac_prev=build_alias ;;
375 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
376 build_alias=$ac_optarg ;;
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 ;;
385 --config-cache | -C)
386 cache_file=config.cache ;;
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 ;;
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" ;;
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'" ;;
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 ;;
425 -gas | --gas | --ga | --g)
426 # Obsolete; use --with-gas.
427 with_gas=yes ;;
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 ;;
436 -host | --host | --hos | --ho)
437 ac_prev=host_alias ;;
438 -host=* | --host=* | --hos=* | --ho=*)
439 host_alias=$ac_optarg ;;
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 ;;
448 -infodir | --infodir | --infodi | --infod | --info | --inf)
449 ac_prev=infodir ;;
450 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
451 infodir=$ac_optarg ;;
453 -libdir | --libdir | --libdi | --libd)
454 ac_prev=libdir ;;
455 -libdir=* | --libdir=* | --libdi=* | --libd=*)
456 libdir=$ac_optarg ;;
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 ;;
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 ;;
474 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
475 ac_prev=mandir ;;
476 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
477 mandir=$ac_optarg ;;
479 -nfp | --nfp | --nf)
480 # Obsolete; use --without-fp.
481 with_fp=no ;;
483 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
484 | --no-cr | --no-c | -n)
485 no_create=yes ;;
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 ;;
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 ;;
500 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
501 ac_prev=prefix ;;
502 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
503 prefix=$ac_optarg ;;
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 ;;
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 ;;
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 ;;
536 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
537 | -silent | --silent | --silen | --sile | --sil)
538 silent=yes ;;
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 ;;
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 ;;
557 -site | --site | --sit)
558 ac_prev=site ;;
559 -site=* | --site=* | --sit=*)
560 site=$ac_optarg ;;
562 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
563 ac_prev=srcdir ;;
564 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
565 srcdir=$ac_optarg ;;
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 ;;
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 ;;
579 -v | -verbose | --verbose | --verbos | --verbo | --verb)
580 verbose=yes ;;
582 -version | --version | --versio | --versi | --vers | -V)
583 ac_init_version=: ;;
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'" ;;
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" ;;
607 --x)
608 # Obsolete; use --with-x.
609 with_x=yes ;;
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 ;;
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 ;;
625 -*) { echo "$as_me: error: unrecognized option: $ac_option
626 Try \`$0 --help' for more information." >&2
627 { (exit 1); exit 1; }; }
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 ;;
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}
648 esac
649 done
651 if 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; }; }
657 # Be sure to have absolute paths.
658 for ac_var in exec_prefix prefix
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
666 done
668 # Be sure to have absolute paths.
669 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
670 localstatedir libdir includedir oldincludedir infodir mandir
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
678 done
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.
683 build=$build_alias
684 host=$host_alias
685 target=$target_alias
687 # FIXME: To remove some day.
688 if 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
698 ac_tool_prefix=
699 test -n "$host_alias" && ac_tool_prefix=$host_alias-
701 test "$silent" = yes && exec 6>/dev/null
704 # Find the source files, if location was not specified.
705 if 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 ||
714 echo 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=..
724 else
725 ac_srcdir_defaulted=no
727 if 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; }; }
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; }; }
739 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
740 ac_env_build_alias_set=${build_alias+set}
741 ac_env_build_alias_value=$build_alias
742 ac_cv_env_build_alias_set=${build_alias+set}
743 ac_cv_env_build_alias_value=$build_alias
744 ac_env_host_alias_set=${host_alias+set}
745 ac_env_host_alias_value=$host_alias
746 ac_cv_env_host_alias_set=${host_alias+set}
747 ac_cv_env_host_alias_value=$host_alias
748 ac_env_target_alias_set=${target_alias+set}
749 ac_env_target_alias_value=$target_alias
750 ac_cv_env_target_alias_set=${target_alias+set}
751 ac_cv_env_target_alias_value=$target_alias
752 ac_env_FC_set=${FC+set}
753 ac_env_FC_value=$FC
754 ac_cv_env_FC_set=${FC+set}
755 ac_cv_env_FC_value=$FC
756 ac_env_FCFLAGS_set=${FCFLAGS+set}
757 ac_env_FCFLAGS_value=$FCFLAGS
758 ac_cv_env_FCFLAGS_set=${FCFLAGS+set}
759 ac_cv_env_FCFLAGS_value=$FCFLAGS
760 ac_env_LDFLAGS_set=${LDFLAGS+set}
761 ac_env_LDFLAGS_value=$LDFLAGS
762 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
763 ac_cv_env_LDFLAGS_value=$LDFLAGS
764 ac_env_CPP_set=${CPP+set}
765 ac_env_CPP_value=$CPP
766 ac_cv_env_CPP_set=${CPP+set}
767 ac_cv_env_CPP_value=$CPP
768 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
769 ac_env_CPPFLAGS_value=$CPPFLAGS
770 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
771 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
774 # Report the --help message.
776 if 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.
782 Usage: $0 [OPTION]... [VAR=VALUE]...
784 To assign environment variables (e.g., CC, CFLAGS...), specify them as
785 VAR=VALUE. See below for descriptions of some of the useful variables.
787 Defaults for the options are specified in brackets.
789 Configuration:
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 \`..']
800 _ACEOF
802 cat <<_ACEOF
803 Installation 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]
809 By default, \`make install' will install all the files in
810 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
811 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
812 for instance \`--prefix=\$HOME'.
814 For better control, use the options below.
816 Fine 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
831 cat <<\_ACEOF
833 Program 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
838 System types:
839 --build=BUILD configure for building on BUILD [guessed]
840 --host=HOST cross-compile to build programs to run on HOST [BUILD]
841 --target=TARGET configure for building compilers for TARGET [HOST]
842 _ACEOF
845 if 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
851 Optional Features:
852 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
853 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
854 --enable-version-specific-runtime-libs Specify that runtime libraries should be installed in a compiler-specific directory
855 --enable-maintainer-mode enable make rules and dependencies not useful
856 (and sometimes confusing) to the casual installer
857 --enable-multilib build many library versions (default)
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)
862 --disable-largefile omit support for large files
863 --enable-cmath Include complex math functions
865 Optional 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
871 Some 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 FC Fortran compiler command
879 FCFLAGS Fortran compiler flags
880 CPP C preprocessor
882 Use these variables to override the choices made by `configure' or to help
883 it to find libraries and programs with nonstandard names/locations.
885 _ACEOF
888 if 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=.
895 if 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'`
899 else
900 ac_dir_suffix= ac_top_builddir=
903 case $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 ;;
917 esac
919 # Do not use `cd foo && pwd` to compute absolute paths, because
920 # the directories may not exist.
921 case `pwd` in
922 .) ac_abs_builddir="$ac_dir";;
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;;
929 esac
930 case $ac_abs_builddir in
931 .) ac_abs_top_builddir=${ac_top_builddir}.;;
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;;
938 esac
939 case $ac_abs_builddir in
940 .) ac_abs_srcdir=$ac_srcdir;;
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;;
947 esac
948 case $ac_abs_builddir in
949 .) ac_abs_top_srcdir=$ac_top_srcdir;;
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;;
956 esac
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
973 cd "$ac_popdir"
974 done
977 test -n "$ac_init_help" && exit 0
978 if $ac_init_version; then
979 cat <<\_ACEOF
980 GNU Fortran Runtime Library configure 0.2
981 generated by GNU Autoconf 2.59
983 Copyright (C) 2003 Free Software Foundation, Inc.
984 This configure script is free software; the Free Software Foundation
985 gives unlimited permission to copy, distribute and modify it.
986 _ACEOF
987 exit 0
989 exec 5>config.log
990 cat >&5 <<_ACEOF
991 This file contains any messages produced by compilers while
992 running configure, to aid debugging if configure makes a mistake.
994 It was created by GNU Fortran Runtime Library $as_me 0.2, which was
995 generated by GNU Autoconf 2.59. Invocation command line was
997 $ $0 $@
999 _ACEOF
1001 cat <<_ASUNAME
1002 ## --------- ##
1003 ## Platform. ##
1004 ## --------- ##
1006 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1007 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1008 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1009 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1010 uname -v = `(uname -v) 2>/dev/null || echo unknown`
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`
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`
1018 hostinfo = `(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`
1023 _ASUNAME
1025 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1026 for as_dir in $PATH
1028 IFS=$as_save_IFS
1029 test -z "$as_dir" && as_dir=.
1030 echo "PATH: $as_dir"
1031 done
1033 } >&5
1035 cat >&5 <<_ACEOF
1038 ## ----------- ##
1039 ## Core tests. ##
1040 ## ----------- ##
1042 _ACEOF
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.
1050 ac_configure_args=
1051 ac_configure_args0=
1052 ac_configure_args1=
1053 ac_sep=
1054 ac_must_keep_next=false
1055 for ac_pass in 1 2
1057 for ac_arg
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'" ;;
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
1083 -* ) ac_must_keep_next=true ;;
1084 esac
1086 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1087 # Get rid of the leading space.
1088 ac_sep=" "
1090 esac
1091 done
1092 done
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; }
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.
1101 trap 'exit_status=$?
1102 # Save into config.log some information that might help in debugging.
1104 echo
1106 cat <<\_ASBOX
1107 ## ---------------- ##
1108 ## Cache variables. ##
1109 ## ---------------- ##
1110 _ASBOX
1111 echo
1112 # The following way of writing the cache mishandles newlines in values,
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"
1122 sed -n \
1123 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1125 esac;
1127 echo
1129 cat <<\_ASBOX
1130 ## ----------------- ##
1131 ## Output variables. ##
1132 ## ----------------- ##
1133 _ASBOX
1134 echo
1135 for ac_var in $ac_subst_vars
1137 eval ac_val=$`echo $ac_var`
1138 echo "$ac_var='"'"'$ac_val'"'"'"
1139 done | sort
1140 echo
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
1151 eval ac_val=$`echo $ac_var`
1152 echo "$ac_var='"'"'$ac_val'"'"'"
1153 done | sort
1154 echo
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
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
1175 for ac_signal in 1 2 13 15; do
1176 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1177 done
1178 ac_signal=0
1180 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1181 rm -rf conftest* confdefs.h
1182 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1183 echo >confdefs.h
1185 # Predefined preprocessor variables.
1187 cat >>confdefs.h <<_ACEOF
1188 #define PACKAGE_NAME "$PACKAGE_NAME"
1189 _ACEOF
1192 cat >>confdefs.h <<_ACEOF
1193 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1194 _ACEOF
1197 cat >>confdefs.h <<_ACEOF
1198 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1199 _ACEOF
1202 cat >>confdefs.h <<_ACEOF
1203 #define PACKAGE_STRING "$PACKAGE_STRING"
1204 _ACEOF
1207 cat >>confdefs.h <<_ACEOF
1208 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1209 _ACEOF
1212 # Let the site file select an alternate cache file if it wants to.
1213 # Prefer explicitly selected file to automatically selected ones.
1214 if 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"
1221 for 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
1224 echo "$as_me: loading site script $ac_site_file" >&6;}
1225 sed 's/^/| /' "$ac_site_file" >&5
1226 . "$ac_site_file"
1228 done
1230 if 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
1235 echo "$as_me: loading cache $cache_file" >&6;}
1236 case $cache_file in
1237 [\\/]* | ?:[\\/]* ) . $cache_file;;
1238 *) . ./$cache_file;;
1239 esac
1241 else
1242 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1243 echo "$as_me: creating cache $cache_file" >&6;}
1244 >$cache_file
1247 # Check that the precious variables saved in the cache have kept the same
1248 # value.
1249 ac_cache_corrupted=false
1250 for 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
1259 echo "$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
1263 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1264 ac_cache_corrupted=: ;;
1265 ,);;
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
1269 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1270 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1271 echo "$as_me: former value: $ac_old_val" >&2;}
1272 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1273 echo "$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
1289 done
1290 if $ac_cache_corrupted; then
1291 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1292 echo "$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
1294 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1295 { (exit 1); exit 1; }; }
1298 ac_ext=c
1299 ac_cpp='$CPP $CPPFLAGS'
1300 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1301 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1302 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1330 ac_config_headers="$ac_config_headers config.h"
1333 # -------
1334 # Options
1335 # -------
1337 echo "$as_me:$LINENO: checking for --enable-version-specific-runtime-libs" >&5
1338 echo $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.
1340 if 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
1346 echo "$as_me: error: Unknown argument to enable/disable version-specific libs" >&2;}
1347 { (exit 1); exit 1; }; };;
1348 esac
1349 else
1350 version_specific_libs=no
1352 echo "$as_me:$LINENO: result: $version_specific_libs" >&5
1353 echo "${ECHO_T}$version_specific_libs" >&6
1356 # Gets build, host, target, *_vendor, *_cpu, *_os, etc.
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/.
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. :-)
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.
1369 # Do not delete or change the following two lines. For why, see
1370 # http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html
1371 ac_aux_dir=
1372 for 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
1386 done
1387 if test -z "$ac_aux_dir"; then
1388 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1389 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1390 { (exit 1); exit 1; }; }
1392 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1393 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1394 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
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
1399 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1400 { (exit 1); exit 1; }; }
1402 echo "$as_me:$LINENO: checking build system type" >&5
1403 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1404 if test "${ac_cv_build+set}" = set; then
1405 echo $ECHO_N "(cached) $ECHO_C" >&6
1406 else
1407 ac_cv_build_alias=$build_alias
1408 test -z "$ac_cv_build_alias" &&
1409 ac_cv_build_alias=`$ac_config_guess`
1410 test -z "$ac_cv_build_alias" &&
1411 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1412 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1413 { (exit 1); exit 1; }; }
1414 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1415 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1416 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1417 { (exit 1); exit 1; }; }
1420 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1421 echo "${ECHO_T}$ac_cv_build" >&6
1422 build=$ac_cv_build
1423 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1424 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1425 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1428 echo "$as_me:$LINENO: checking host system type" >&5
1429 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1430 if test "${ac_cv_host+set}" = set; then
1431 echo $ECHO_N "(cached) $ECHO_C" >&6
1432 else
1433 ac_cv_host_alias=$host_alias
1434 test -z "$ac_cv_host_alias" &&
1435 ac_cv_host_alias=$ac_cv_build_alias
1436 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1437 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1438 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1439 { (exit 1); exit 1; }; }
1442 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1443 echo "${ECHO_T}$ac_cv_host" >&6
1444 host=$ac_cv_host
1445 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1446 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1447 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1450 echo "$as_me:$LINENO: checking target system type" >&5
1451 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1452 if test "${ac_cv_target+set}" = set; then
1453 echo $ECHO_N "(cached) $ECHO_C" >&6
1454 else
1455 ac_cv_target_alias=$target_alias
1456 test "x$ac_cv_target_alias" = "x" &&
1457 ac_cv_target_alias=$ac_cv_host_alias
1458 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1459 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1460 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1461 { (exit 1); exit 1; }; }
1464 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1465 echo "${ECHO_T}$ac_cv_target" >&6
1466 target=$ac_cv_target
1467 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1468 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1469 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1472 # The aliases save the names the user supplied, while $host etc.
1473 # will get canonicalized.
1474 test -n "$target_alias" &&
1475 test "$program_prefix$program_suffix$program_transform_name" = \
1476 NONENONEs,x,x, &&
1477 program_prefix=${target_alias}-
1478 target_alias=${target_alias-$host_alias}
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.
1491 am__api_version="1.9"
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.
1505 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1506 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1507 if test -z "$INSTALL"; then
1508 if test "${ac_cv_path_install+set}" = set; then
1509 echo $ECHO_N "(cached) $ECHO_C" >&6
1510 else
1511 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1512 for as_dir in $PATH
1514 IFS=$as_save_IFS
1515 test -z "$as_dir" && as_dir=.
1516 # Account for people who put trailing slashes in PATH elements.
1517 case $as_dir/ in
1518 ./ | .// | /cC/* | \
1519 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1520 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1521 /usr/ucb/* ) ;;
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.
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.
1537 else
1538 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1539 break 3
1542 done
1543 done
1545 esac
1546 done
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
1560 echo "$as_me:$LINENO: result: $INSTALL" >&5
1561 echo "${ECHO_T}$INSTALL" >&6
1563 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1564 # It thinks the first close brace ends the variable substitution.
1565 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1567 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1569 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1571 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1572 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1573 # Just in case
1574 sleep 1
1575 echo 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).
1581 if (
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`
1587 rm -f conftest.file
1588 if test "$*" != "X $srcdir/configure conftest.file" \
1589 && test "$*" != "X conftest.file $srcdir/configure"; then
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
1596 alias in your environment" >&5
1597 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1598 alias in your environment" >&2;}
1599 { (exit 1); exit 1; }; }
1602 test "$2" = conftest.file
1604 then
1605 # Ok.
1607 else
1608 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1609 Check your system clock" >&5
1610 echo "$as_me: error: newly created file is older than distributed files!
1611 Check your system clock" >&2;}
1612 { (exit 1); exit 1; }; }
1614 echo "$as_me:$LINENO: result: yes" >&5
1615 echo "${ECHO_T}yes" >&6
1616 test "$program_prefix" != NONE &&
1617 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1618 # Use a double $ so make ignores it.
1619 test "$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.
1623 cat <<\_ACEOF >conftest.sed
1624 s/[\\$]/&&/g;s/;s,x,x,$//
1625 _ACEOF
1626 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1627 rm conftest.sed
1629 # expand $ac_aux_dir to an absolute path
1630 am_aux_dir=`cd $ac_aux_dir && pwd`
1632 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1633 # Use eval to expand $SHELL
1634 if eval "$MISSING --run true"; then
1635 am_missing_run="$MISSING --run "
1636 else
1637 am_missing_run=
1638 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1639 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1642 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1643 # We used to keeping the `.' as first argument, in order to
1644 # allow $(mkdir_p) to be used without argument. As in
1645 # $(mkdir_p) $(somedir)
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 --'
1658 else
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.
1663 for d in ./-p ./--version;
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'
1675 for ac_prog in gawk mawk nawk awk
1677 # Extract the first word of "$ac_prog", so it can be a program name with args.
1678 set dummy $ac_prog; ac_word=$2
1679 echo "$as_me:$LINENO: checking for $ac_word" >&5
1680 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1681 if test "${ac_cv_prog_AWK+set}" = set; then
1682 echo $ECHO_N "(cached) $ECHO_C" >&6
1683 else
1684 if test -n "$AWK"; then
1685 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1686 else
1687 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1688 for as_dir in $PATH
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
1698 done
1699 done
1703 AWK=$ac_cv_prog_AWK
1704 if test -n "$AWK"; then
1705 echo "$as_me:$LINENO: result: $AWK" >&5
1706 echo "${ECHO_T}$AWK" >&6
1707 else
1708 echo "$as_me:$LINENO: result: no" >&5
1709 echo "${ECHO_T}no" >&6
1712 test -n "$AWK" && break
1713 done
1715 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1716 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1717 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1718 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1719 echo $ECHO_N "(cached) $ECHO_C" >&6
1720 else
1721 cat >conftest.make <<\_ACEOF
1722 all:
1723 @echo 'ac_maketemp="$(MAKE)"'
1724 _ACEOF
1725 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1726 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1727 if test -n "$ac_maketemp"; then
1728 eval ac_cv_prog_make_${ac_make}_set=yes
1729 else
1730 eval ac_cv_prog_make_${ac_make}_set=no
1732 rm -f conftest.make
1734 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1735 echo "$as_me:$LINENO: result: yes" >&5
1736 echo "${ECHO_T}yes" >&6
1737 SET_MAKE=
1738 else
1739 echo "$as_me:$LINENO: result: no" >&5
1740 echo "${ECHO_T}no" >&6
1741 SET_MAKE="MAKE=${MAKE-make}"
1744 rm -rf .tst 2>/dev/null
1745 mkdir .tst 2>/dev/null
1746 if test -d .tst; then
1747 am__leading_dot=.
1748 else
1749 am__leading_dot=_
1751 rmdir .tst 2>/dev/null
1753 # test to see if srcdir already configured
1754 if 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
1757 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1758 { (exit 1); exit 1; }; }
1761 # test whether we have cygpath
1762 if 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
1771 # Define the identity of the package.
1772 PACKAGE='libgfortran'
1773 VERSION='0.2'
1776 # Some tools Automake needs.
1778 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1781 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1784 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1787 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1790 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1792 install_sh=${install_sh-"$am_aux_dir/install-sh"}
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.
1798 if 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.
1801 set dummy ${ac_tool_prefix}strip; ac_word=$2
1802 echo "$as_me:$LINENO: checking for $ac_word" >&5
1803 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1804 if test "${ac_cv_prog_STRIP+set}" = set; then
1805 echo $ECHO_N "(cached) $ECHO_C" >&6
1806 else
1807 if test -n "$STRIP"; then
1808 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1809 else
1810 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1811 for as_dir in $PATH
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
1821 done
1822 done
1826 STRIP=$ac_cv_prog_STRIP
1827 if test -n "$STRIP"; then
1828 echo "$as_me:$LINENO: result: $STRIP" >&5
1829 echo "${ECHO_T}$STRIP" >&6
1830 else
1831 echo "$as_me:$LINENO: result: no" >&5
1832 echo "${ECHO_T}no" >&6
1836 if 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.
1839 set dummy strip; ac_word=$2
1840 echo "$as_me:$LINENO: checking for $ac_word" >&5
1841 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1842 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1843 echo $ECHO_N "(cached) $ECHO_C" >&6
1844 else
1845 if test -n "$ac_ct_STRIP"; then
1846 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1847 else
1848 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1849 for as_dir in $PATH
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
1859 done
1860 done
1862 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1865 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1866 if test -n "$ac_ct_STRIP"; then
1867 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1868 echo "${ECHO_T}$ac_ct_STRIP" >&6
1869 else
1870 echo "$as_me:$LINENO: result: no" >&5
1871 echo "${ECHO_T}no" >&6
1874 STRIP=$ac_ct_STRIP
1875 else
1876 STRIP="$ac_cv_prog_STRIP"
1880 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1882 # We need awk for the "check" target. The system "awk" is bad on
1883 # some platforms.
1884 # Always define AMTAR for backward compatibility.
1886 AMTAR=${AMTAR-"${am_missing_run}tar"}
1888 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
1895 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
1896 echo $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.
1898 if test "${enable_maintainer_mode+set}" = set; then
1899 enableval="$enable_maintainer_mode"
1900 USE_MAINTAINER_MODE=$enableval
1901 else
1902 USE_MAINTAINER_MODE=no
1904 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
1905 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
1908 if test $USE_MAINTAINER_MODE = yes; then
1909 MAINTAINER_MODE_TRUE=
1910 MAINTAINER_MODE_FALSE='#'
1911 else
1912 MAINTAINER_MODE_TRUE='#'
1913 MAINTAINER_MODE_FALSE=
1916 MAINT=$MAINTAINER_MODE_TRUE
1919 # Default to --enable-multilib
1920 # Check whether --enable-multilib or --disable-multilib was given.
1921 if 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
1927 echo "$as_me: error: bad value $enableval for multilib option" >&2;}
1928 { (exit 1); exit 1; }; } ;;
1929 esac
1930 else
1931 multilib=yes
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.
1938 if test "$srcdir" = "."; then
1939 if test "$with_target_subdir" != "."; then
1940 multi_basedir="$srcdir/$with_multisrctop../.."
1941 else
1942 multi_basedir="$srcdir/$with_multisrctop.."
1944 else
1945 multi_basedir="$srcdir/.."
1949 ac_config_commands="$ac_config_commands default-1"
1952 # Handy for debugging:
1953 #AC_MSG_NOTICE($build / $host / $target / $host_alias / $target_alias); sleep 5
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.
1958 if test "$build" != "$host"; then
1959 LIBGFOR_IS_NATIVE=false
1961 else
1962 LIBGFOR_IS_NATIVE=true
1965 # Calculate toolexeclibdir
1966 # Also toolexecdir, though it's only used in toolexeclibdir
1967 case ${version_specific_libs} in
1968 yes)
1969 # Need the gcc compiler version to know where to install libraries
1970 # and header files if --enable-version-specific-runtime-libs option
1971 # is selected.
1972 toolexecdir='$(libdir)/gcc/$(target_alias)'
1973 toolexeclibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
1976 if test -n "$with_cross_host" &&
1977 test x"$with_cross_host" != x"no"; then
1978 # Install a library built with a cross compiler in tooldir, not libdir.
1979 toolexecdir='$(exec_prefix)/$(target_alias)'
1980 toolexeclibdir='$(toolexecdir)/lib'
1981 else
1982 toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
1983 toolexeclibdir='$(libdir)'
1985 multi_os_directory=`$CC -print-multi-os-directory`
1986 case $multi_os_directory in
1987 .) ;; # Avoid trailing /.
1988 *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
1989 esac
1991 esac
1995 # Check the compiler.
1996 # The same as in boehm-gc and libstdc++. Have to borrow it from there.
1997 # We must force CC to /not/ be precious variables; otherwise
1998 # the wrong, non-multilib-adjusted value will be used in multilibs.
1999 # As a side effect, we have to subst CFLAGS ourselves.
2003 ac_ext=c
2004 ac_cpp='$CPP $CPPFLAGS'
2005 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2006 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2007 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2008 if test -n "$ac_tool_prefix"; then
2009 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2010 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2011 echo "$as_me:$LINENO: checking for $ac_word" >&5
2012 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2013 if test "${ac_cv_prog_CC+set}" = set; then
2014 echo $ECHO_N "(cached) $ECHO_C" >&6
2015 else
2016 if test -n "$CC"; then
2017 ac_cv_prog_CC="$CC" # Let the user override the test.
2018 else
2019 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2020 for as_dir in $PATH
2022 IFS=$as_save_IFS
2023 test -z "$as_dir" && as_dir=.
2024 for ac_exec_ext in '' $ac_executable_extensions; do
2025 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2026 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2027 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2028 break 2
2030 done
2031 done
2035 CC=$ac_cv_prog_CC
2036 if test -n "$CC"; then
2037 echo "$as_me:$LINENO: result: $CC" >&5
2038 echo "${ECHO_T}$CC" >&6
2039 else
2040 echo "$as_me:$LINENO: result: no" >&5
2041 echo "${ECHO_T}no" >&6
2045 if test -z "$ac_cv_prog_CC"; then
2046 ac_ct_CC=$CC
2047 # Extract the first word of "gcc", so it can be a program name with args.
2048 set dummy gcc; ac_word=$2
2049 echo "$as_me:$LINENO: checking for $ac_word" >&5
2050 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2051 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2052 echo $ECHO_N "(cached) $ECHO_C" >&6
2053 else
2054 if test -n "$ac_ct_CC"; then
2055 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2056 else
2057 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2058 for as_dir in $PATH
2060 IFS=$as_save_IFS
2061 test -z "$as_dir" && as_dir=.
2062 for ac_exec_ext in '' $ac_executable_extensions; do
2063 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2064 ac_cv_prog_ac_ct_CC="gcc"
2065 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2066 break 2
2068 done
2069 done
2073 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2074 if test -n "$ac_ct_CC"; then
2075 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2076 echo "${ECHO_T}$ac_ct_CC" >&6
2077 else
2078 echo "$as_me:$LINENO: result: no" >&5
2079 echo "${ECHO_T}no" >&6
2082 CC=$ac_ct_CC
2083 else
2084 CC="$ac_cv_prog_CC"
2087 if test -z "$CC"; then
2088 if test -n "$ac_tool_prefix"; then
2089 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2090 set dummy ${ac_tool_prefix}cc; ac_word=$2
2091 echo "$as_me:$LINENO: checking for $ac_word" >&5
2092 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2093 if test "${ac_cv_prog_CC+set}" = set; then
2094 echo $ECHO_N "(cached) $ECHO_C" >&6
2095 else
2096 if test -n "$CC"; then
2097 ac_cv_prog_CC="$CC" # Let the user override the test.
2098 else
2099 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2100 for as_dir in $PATH
2102 IFS=$as_save_IFS
2103 test -z "$as_dir" && as_dir=.
2104 for ac_exec_ext in '' $ac_executable_extensions; do
2105 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2106 ac_cv_prog_CC="${ac_tool_prefix}cc"
2107 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2108 break 2
2110 done
2111 done
2115 CC=$ac_cv_prog_CC
2116 if test -n "$CC"; then
2117 echo "$as_me:$LINENO: result: $CC" >&5
2118 echo "${ECHO_T}$CC" >&6
2119 else
2120 echo "$as_me:$LINENO: result: no" >&5
2121 echo "${ECHO_T}no" >&6
2125 if test -z "$ac_cv_prog_CC"; then
2126 ac_ct_CC=$CC
2127 # Extract the first word of "cc", so it can be a program name with args.
2128 set dummy cc; ac_word=$2
2129 echo "$as_me:$LINENO: checking for $ac_word" >&5
2130 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2131 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2132 echo $ECHO_N "(cached) $ECHO_C" >&6
2133 else
2134 if test -n "$ac_ct_CC"; then
2135 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2136 else
2137 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2138 for as_dir in $PATH
2140 IFS=$as_save_IFS
2141 test -z "$as_dir" && as_dir=.
2142 for ac_exec_ext in '' $ac_executable_extensions; do
2143 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2144 ac_cv_prog_ac_ct_CC="cc"
2145 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2146 break 2
2148 done
2149 done
2153 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2154 if test -n "$ac_ct_CC"; then
2155 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2156 echo "${ECHO_T}$ac_ct_CC" >&6
2157 else
2158 echo "$as_me:$LINENO: result: no" >&5
2159 echo "${ECHO_T}no" >&6
2162 CC=$ac_ct_CC
2163 else
2164 CC="$ac_cv_prog_CC"
2168 if test -z "$CC"; then
2169 # Extract the first word of "cc", so it can be a program name with args.
2170 set dummy cc; ac_word=$2
2171 echo "$as_me:$LINENO: checking for $ac_word" >&5
2172 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2173 if test "${ac_cv_prog_CC+set}" = set; then
2174 echo $ECHO_N "(cached) $ECHO_C" >&6
2175 else
2176 if test -n "$CC"; then
2177 ac_cv_prog_CC="$CC" # Let the user override the test.
2178 else
2179 ac_prog_rejected=no
2180 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2181 for as_dir in $PATH
2183 IFS=$as_save_IFS
2184 test -z "$as_dir" && as_dir=.
2185 for ac_exec_ext in '' $ac_executable_extensions; do
2186 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2187 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2188 ac_prog_rejected=yes
2189 continue
2191 ac_cv_prog_CC="cc"
2192 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2193 break 2
2195 done
2196 done
2198 if test $ac_prog_rejected = yes; then
2199 # We found a bogon in the path, so make sure we never use it.
2200 set dummy $ac_cv_prog_CC
2201 shift
2202 if test $# != 0; then
2203 # We chose a different compiler from the bogus one.
2204 # However, it has the same basename, so the bogon will be chosen
2205 # first if we set CC to just the basename; use the full file name.
2206 shift
2207 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2212 CC=$ac_cv_prog_CC
2213 if test -n "$CC"; then
2214 echo "$as_me:$LINENO: result: $CC" >&5
2215 echo "${ECHO_T}$CC" >&6
2216 else
2217 echo "$as_me:$LINENO: result: no" >&5
2218 echo "${ECHO_T}no" >&6
2222 if test -z "$CC"; then
2223 if test -n "$ac_tool_prefix"; then
2224 for ac_prog in cl
2226 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2227 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2228 echo "$as_me:$LINENO: checking for $ac_word" >&5
2229 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2230 if test "${ac_cv_prog_CC+set}" = set; then
2231 echo $ECHO_N "(cached) $ECHO_C" >&6
2232 else
2233 if test -n "$CC"; then
2234 ac_cv_prog_CC="$CC" # Let the user override the test.
2235 else
2236 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2237 for as_dir in $PATH
2239 IFS=$as_save_IFS
2240 test -z "$as_dir" && as_dir=.
2241 for ac_exec_ext in '' $ac_executable_extensions; do
2242 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2243 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2244 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2245 break 2
2247 done
2248 done
2252 CC=$ac_cv_prog_CC
2253 if test -n "$CC"; then
2254 echo "$as_me:$LINENO: result: $CC" >&5
2255 echo "${ECHO_T}$CC" >&6
2256 else
2257 echo "$as_me:$LINENO: result: no" >&5
2258 echo "${ECHO_T}no" >&6
2261 test -n "$CC" && break
2262 done
2264 if test -z "$CC"; then
2265 ac_ct_CC=$CC
2266 for ac_prog in cl
2268 # Extract the first word of "$ac_prog", so it can be a program name with args.
2269 set dummy $ac_prog; ac_word=$2
2270 echo "$as_me:$LINENO: checking for $ac_word" >&5
2271 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2272 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2273 echo $ECHO_N "(cached) $ECHO_C" >&6
2274 else
2275 if test -n "$ac_ct_CC"; then
2276 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2277 else
2278 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2279 for as_dir in $PATH
2281 IFS=$as_save_IFS
2282 test -z "$as_dir" && as_dir=.
2283 for ac_exec_ext in '' $ac_executable_extensions; do
2284 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2285 ac_cv_prog_ac_ct_CC="$ac_prog"
2286 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2287 break 2
2289 done
2290 done
2294 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2295 if test -n "$ac_ct_CC"; then
2296 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2297 echo "${ECHO_T}$ac_ct_CC" >&6
2298 else
2299 echo "$as_me:$LINENO: result: no" >&5
2300 echo "${ECHO_T}no" >&6
2303 test -n "$ac_ct_CC" && break
2304 done
2306 CC=$ac_ct_CC
2312 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2313 See \`config.log' for more details." >&5
2314 echo "$as_me: error: no acceptable C compiler found in \$PATH
2315 See \`config.log' for more details." >&2;}
2316 { (exit 1); exit 1; }; }
2318 # Provide some information about the compiler.
2319 echo "$as_me:$LINENO:" \
2320 "checking for C compiler version" >&5
2321 ac_compiler=`set X $ac_compile; echo $2`
2322 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2323 (eval $ac_compiler --version </dev/null >&5) 2>&5
2324 ac_status=$?
2325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2326 (exit $ac_status); }
2327 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2328 (eval $ac_compiler -v </dev/null >&5) 2>&5
2329 ac_status=$?
2330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2331 (exit $ac_status); }
2332 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2333 (eval $ac_compiler -V </dev/null >&5) 2>&5
2334 ac_status=$?
2335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2336 (exit $ac_status); }
2338 cat >conftest.$ac_ext <<_ACEOF
2339 /* confdefs.h. */
2340 _ACEOF
2341 cat confdefs.h >>conftest.$ac_ext
2342 cat >>conftest.$ac_ext <<_ACEOF
2343 /* end confdefs.h. */
2346 main ()
2350 return 0;
2352 _ACEOF
2353 # FIXME: Cleanup?
2354 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2355 (eval $ac_link) 2>&5
2356 ac_status=$?
2357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2358 (exit $ac_status); }; then
2359 gcc_no_link=no
2360 else
2361 gcc_no_link=yes
2364 if test x$gcc_no_link = xyes; then
2365 # Setting cross_compile will disable run tests; it will
2366 # also disable AC_CHECK_FILE but that's generally
2367 # correct if we can't link.
2368 cross_compiling=yes
2369 EXEEXT=
2370 else
2371 cat >conftest.$ac_ext <<_ACEOF
2372 /* confdefs.h. */
2373 _ACEOF
2374 cat confdefs.h >>conftest.$ac_ext
2375 cat >>conftest.$ac_ext <<_ACEOF
2376 /* end confdefs.h. */
2379 main ()
2383 return 0;
2385 _ACEOF
2386 ac_clean_files_save=$ac_clean_files
2387 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2388 # Try to create an executable without -o first, disregard a.out.
2389 # It will help us diagnose broken compilers, and finding out an intuition
2390 # of exeext.
2391 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2392 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2393 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2394 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2395 (eval $ac_link_default) 2>&5
2396 ac_status=$?
2397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2398 (exit $ac_status); }; then
2399 # Find the output, starting from the most likely. This scheme is
2400 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2401 # resort.
2403 # Be careful to initialize this variable, since it used to be cached.
2404 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2405 ac_cv_exeext=
2406 # b.out is created by i960 compilers.
2407 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2409 test -f "$ac_file" || continue
2410 case $ac_file in
2411 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2413 conftest.$ac_ext )
2414 # This is the source file.
2416 [ab].out )
2417 # We found the default executable, but exeext='' is most
2418 # certainly right.
2419 break;;
2420 *.* )
2421 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2422 # FIXME: I believe we export ac_cv_exeext for Libtool,
2423 # but it would be cool to find out if it's true. Does anybody
2424 # maintain Libtool? --akim.
2425 export ac_cv_exeext
2426 break;;
2428 break;;
2429 esac
2430 done
2431 else
2432 echo "$as_me: failed program was:" >&5
2433 sed 's/^/| /' conftest.$ac_ext >&5
2435 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2436 See \`config.log' for more details." >&5
2437 echo "$as_me: error: C compiler cannot create executables
2438 See \`config.log' for more details." >&2;}
2439 { (exit 77); exit 77; }; }
2442 ac_exeext=$ac_cv_exeext
2443 echo "$as_me:$LINENO: result: $ac_file" >&5
2444 echo "${ECHO_T}$ac_file" >&6
2446 # Check the compiler produces executables we can run. If not, either
2447 # the compiler is broken, or we cross compile.
2448 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2449 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2450 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2451 # If not cross compiling, check that we can run a simple program.
2452 if test "$cross_compiling" != yes; then
2453 if { ac_try='./$ac_file'
2454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2455 (eval $ac_try) 2>&5
2456 ac_status=$?
2457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2458 (exit $ac_status); }; }; then
2459 cross_compiling=no
2460 else
2461 if test "$cross_compiling" = maybe; then
2462 cross_compiling=yes
2463 else
2464 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2465 If you meant to cross compile, use \`--host'.
2466 See \`config.log' for more details." >&5
2467 echo "$as_me: error: cannot run C compiled programs.
2468 If you meant to cross compile, use \`--host'.
2469 See \`config.log' for more details." >&2;}
2470 { (exit 1); exit 1; }; }
2474 echo "$as_me:$LINENO: result: yes" >&5
2475 echo "${ECHO_T}yes" >&6
2477 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2478 ac_clean_files=$ac_clean_files_save
2479 # Check the compiler produces executables we can run. If not, either
2480 # the compiler is broken, or we cross compile.
2481 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2482 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2483 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2484 echo "${ECHO_T}$cross_compiling" >&6
2486 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2487 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2488 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2489 (eval $ac_link) 2>&5
2490 ac_status=$?
2491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2492 (exit $ac_status); }; then
2493 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2494 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2495 # work properly (i.e., refer to `conftest.exe'), while it won't with
2496 # `rm'.
2497 for ac_file in conftest.exe conftest conftest.*; do
2498 test -f "$ac_file" || continue
2499 case $ac_file in
2500 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2501 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2502 export ac_cv_exeext
2503 break;;
2504 * ) break;;
2505 esac
2506 done
2507 else
2508 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2509 See \`config.log' for more details." >&5
2510 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2511 See \`config.log' for more details." >&2;}
2512 { (exit 1); exit 1; }; }
2515 rm -f conftest$ac_cv_exeext
2516 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2517 echo "${ECHO_T}$ac_cv_exeext" >&6
2519 rm -f conftest.$ac_ext
2520 EXEEXT=$ac_cv_exeext
2521 ac_exeext=$EXEEXT
2523 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2524 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2525 if test "${ac_cv_objext+set}" = set; then
2526 echo $ECHO_N "(cached) $ECHO_C" >&6
2527 else
2528 cat >conftest.$ac_ext <<_ACEOF
2529 /* confdefs.h. */
2530 _ACEOF
2531 cat confdefs.h >>conftest.$ac_ext
2532 cat >>conftest.$ac_ext <<_ACEOF
2533 /* end confdefs.h. */
2536 main ()
2540 return 0;
2542 _ACEOF
2543 rm -f conftest.o conftest.obj
2544 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2545 (eval $ac_compile) 2>&5
2546 ac_status=$?
2547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2548 (exit $ac_status); }; then
2549 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2550 case $ac_file in
2551 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2552 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2553 break;;
2554 esac
2555 done
2556 else
2557 echo "$as_me: failed program was:" >&5
2558 sed 's/^/| /' conftest.$ac_ext >&5
2560 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2561 See \`config.log' for more details." >&5
2562 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2563 See \`config.log' for more details." >&2;}
2564 { (exit 1); exit 1; }; }
2567 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2569 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2570 echo "${ECHO_T}$ac_cv_objext" >&6
2571 OBJEXT=$ac_cv_objext
2572 ac_objext=$OBJEXT
2573 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2574 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2575 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2576 echo $ECHO_N "(cached) $ECHO_C" >&6
2577 else
2578 cat >conftest.$ac_ext <<_ACEOF
2579 /* confdefs.h. */
2580 _ACEOF
2581 cat confdefs.h >>conftest.$ac_ext
2582 cat >>conftest.$ac_ext <<_ACEOF
2583 /* end confdefs.h. */
2586 main ()
2588 #ifndef __GNUC__
2589 choke me
2590 #endif
2593 return 0;
2595 _ACEOF
2596 rm -f conftest.$ac_objext
2597 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2598 (eval $ac_compile) 2>conftest.er1
2599 ac_status=$?
2600 grep -v '^ *+' conftest.er1 >conftest.err
2601 rm -f conftest.er1
2602 cat conftest.err >&5
2603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2604 (exit $ac_status); } &&
2605 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2607 (eval $ac_try) 2>&5
2608 ac_status=$?
2609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2610 (exit $ac_status); }; } &&
2611 { ac_try='test -s conftest.$ac_objext'
2612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2613 (eval $ac_try) 2>&5
2614 ac_status=$?
2615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2616 (exit $ac_status); }; }; then
2617 ac_compiler_gnu=yes
2618 else
2619 echo "$as_me: failed program was:" >&5
2620 sed 's/^/| /' conftest.$ac_ext >&5
2622 ac_compiler_gnu=no
2624 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2625 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2628 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2629 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2630 GCC=`test $ac_compiler_gnu = yes && echo yes`
2631 ac_test_CFLAGS=${CFLAGS+set}
2632 ac_save_CFLAGS=$CFLAGS
2633 CFLAGS="-g"
2634 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2635 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2636 if test "${ac_cv_prog_cc_g+set}" = set; then
2637 echo $ECHO_N "(cached) $ECHO_C" >&6
2638 else
2639 cat >conftest.$ac_ext <<_ACEOF
2640 /* confdefs.h. */
2641 _ACEOF
2642 cat confdefs.h >>conftest.$ac_ext
2643 cat >>conftest.$ac_ext <<_ACEOF
2644 /* end confdefs.h. */
2647 main ()
2651 return 0;
2653 _ACEOF
2654 rm -f conftest.$ac_objext
2655 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2656 (eval $ac_compile) 2>conftest.er1
2657 ac_status=$?
2658 grep -v '^ *+' conftest.er1 >conftest.err
2659 rm -f conftest.er1
2660 cat conftest.err >&5
2661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2662 (exit $ac_status); } &&
2663 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2665 (eval $ac_try) 2>&5
2666 ac_status=$?
2667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2668 (exit $ac_status); }; } &&
2669 { ac_try='test -s conftest.$ac_objext'
2670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2671 (eval $ac_try) 2>&5
2672 ac_status=$?
2673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2674 (exit $ac_status); }; }; then
2675 ac_cv_prog_cc_g=yes
2676 else
2677 echo "$as_me: failed program was:" >&5
2678 sed 's/^/| /' conftest.$ac_ext >&5
2680 ac_cv_prog_cc_g=no
2682 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2684 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2685 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2686 if test "$ac_test_CFLAGS" = set; then
2687 CFLAGS=$ac_save_CFLAGS
2688 elif test $ac_cv_prog_cc_g = yes; then
2689 if test "$GCC" = yes; then
2690 CFLAGS="-g -O2"
2691 else
2692 CFLAGS="-g"
2694 else
2695 if test "$GCC" = yes; then
2696 CFLAGS="-O2"
2697 else
2698 CFLAGS=
2701 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2702 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2703 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2704 echo $ECHO_N "(cached) $ECHO_C" >&6
2705 else
2706 ac_cv_prog_cc_stdc=no
2707 ac_save_CC=$CC
2708 cat >conftest.$ac_ext <<_ACEOF
2709 /* confdefs.h. */
2710 _ACEOF
2711 cat confdefs.h >>conftest.$ac_ext
2712 cat >>conftest.$ac_ext <<_ACEOF
2713 /* end confdefs.h. */
2714 #include <stdarg.h>
2715 #include <stdio.h>
2716 #include <sys/types.h>
2717 #include <sys/stat.h>
2718 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2719 struct buf { int x; };
2720 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2721 static char *e (p, i)
2722 char **p;
2723 int i;
2725 return p[i];
2727 static char *f (char * (*g) (char **, int), char **p, ...)
2729 char *s;
2730 va_list v;
2731 va_start (v,p);
2732 s = g (p, va_arg (v,int));
2733 va_end (v);
2734 return s;
2737 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2738 function prototypes and stuff, but not '\xHH' hex character constants.
2739 These don't provoke an error unfortunately, instead are silently treated
2740 as 'x'. The following induces an error, until -std1 is added to get
2741 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2742 array size at least. It's necessary to write '\x00'==0 to get something
2743 that's true only with -std1. */
2744 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2746 int test (int i, double x);
2747 struct s1 {int (*f) (int a);};
2748 struct s2 {int (*f) (double a);};
2749 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2750 int argc;
2751 char **argv;
2753 main ()
2755 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2757 return 0;
2759 _ACEOF
2760 # Don't try gcc -ansi; that turns off useful extensions and
2761 # breaks some systems' header files.
2762 # AIX -qlanglvl=ansi
2763 # Ultrix and OSF/1 -std1
2764 # HP-UX 10.20 and later -Ae
2765 # HP-UX older versions -Aa -D_HPUX_SOURCE
2766 # SVR4 -Xc -D__EXTENSIONS__
2767 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2769 CC="$ac_save_CC $ac_arg"
2770 rm -f conftest.$ac_objext
2771 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2772 (eval $ac_compile) 2>conftest.er1
2773 ac_status=$?
2774 grep -v '^ *+' conftest.er1 >conftest.err
2775 rm -f conftest.er1
2776 cat conftest.err >&5
2777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2778 (exit $ac_status); } &&
2779 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2781 (eval $ac_try) 2>&5
2782 ac_status=$?
2783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2784 (exit $ac_status); }; } &&
2785 { ac_try='test -s conftest.$ac_objext'
2786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2787 (eval $ac_try) 2>&5
2788 ac_status=$?
2789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2790 (exit $ac_status); }; }; then
2791 ac_cv_prog_cc_stdc=$ac_arg
2792 break
2793 else
2794 echo "$as_me: failed program was:" >&5
2795 sed 's/^/| /' conftest.$ac_ext >&5
2798 rm -f conftest.err conftest.$ac_objext
2799 done
2800 rm -f conftest.$ac_ext conftest.$ac_objext
2801 CC=$ac_save_CC
2805 case "x$ac_cv_prog_cc_stdc" in
2806 x|xno)
2807 echo "$as_me:$LINENO: result: none needed" >&5
2808 echo "${ECHO_T}none needed" >&6 ;;
2810 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2811 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2812 CC="$CC $ac_cv_prog_cc_stdc" ;;
2813 esac
2815 # Some people use a C++ compiler to compile C. Since we use `exit',
2816 # in C++ we need to declare it. In case someone uses the same compiler
2817 # for both compiling C and C++ we need to have the C++ compiler decide
2818 # the declaration of exit, since it's the most demanding environment.
2819 cat >conftest.$ac_ext <<_ACEOF
2820 #ifndef __cplusplus
2821 choke me
2822 #endif
2823 _ACEOF
2824 rm -f conftest.$ac_objext
2825 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2826 (eval $ac_compile) 2>conftest.er1
2827 ac_status=$?
2828 grep -v '^ *+' conftest.er1 >conftest.err
2829 rm -f conftest.er1
2830 cat conftest.err >&5
2831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2832 (exit $ac_status); } &&
2833 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2835 (eval $ac_try) 2>&5
2836 ac_status=$?
2837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2838 (exit $ac_status); }; } &&
2839 { ac_try='test -s conftest.$ac_objext'
2840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2841 (eval $ac_try) 2>&5
2842 ac_status=$?
2843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2844 (exit $ac_status); }; }; then
2845 for ac_declaration in \
2846 '' \
2847 'extern "C" void std::exit (int) throw (); using std::exit;' \
2848 'extern "C" void std::exit (int); using std::exit;' \
2849 'extern "C" void exit (int) throw ();' \
2850 'extern "C" void exit (int);' \
2851 'void exit (int);'
2853 cat >conftest.$ac_ext <<_ACEOF
2854 /* confdefs.h. */
2855 _ACEOF
2856 cat confdefs.h >>conftest.$ac_ext
2857 cat >>conftest.$ac_ext <<_ACEOF
2858 /* end confdefs.h. */
2859 $ac_declaration
2860 #include <stdlib.h>
2862 main ()
2864 exit (42);
2866 return 0;
2868 _ACEOF
2869 rm -f conftest.$ac_objext
2870 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2871 (eval $ac_compile) 2>conftest.er1
2872 ac_status=$?
2873 grep -v '^ *+' conftest.er1 >conftest.err
2874 rm -f conftest.er1
2875 cat conftest.err >&5
2876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2877 (exit $ac_status); } &&
2878 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2880 (eval $ac_try) 2>&5
2881 ac_status=$?
2882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2883 (exit $ac_status); }; } &&
2884 { ac_try='test -s conftest.$ac_objext'
2885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2886 (eval $ac_try) 2>&5
2887 ac_status=$?
2888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2889 (exit $ac_status); }; }; then
2891 else
2892 echo "$as_me: failed program was:" >&5
2893 sed 's/^/| /' conftest.$ac_ext >&5
2895 continue
2897 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2898 cat >conftest.$ac_ext <<_ACEOF
2899 /* confdefs.h. */
2900 _ACEOF
2901 cat confdefs.h >>conftest.$ac_ext
2902 cat >>conftest.$ac_ext <<_ACEOF
2903 /* end confdefs.h. */
2904 $ac_declaration
2906 main ()
2908 exit (42);
2910 return 0;
2912 _ACEOF
2913 rm -f conftest.$ac_objext
2914 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2915 (eval $ac_compile) 2>conftest.er1
2916 ac_status=$?
2917 grep -v '^ *+' conftest.er1 >conftest.err
2918 rm -f conftest.er1
2919 cat conftest.err >&5
2920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2921 (exit $ac_status); } &&
2922 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2924 (eval $ac_try) 2>&5
2925 ac_status=$?
2926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2927 (exit $ac_status); }; } &&
2928 { ac_try='test -s conftest.$ac_objext'
2929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2930 (eval $ac_try) 2>&5
2931 ac_status=$?
2932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2933 (exit $ac_status); }; }; then
2934 break
2935 else
2936 echo "$as_me: failed program was:" >&5
2937 sed 's/^/| /' conftest.$ac_ext >&5
2940 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2941 done
2942 rm -f conftest*
2943 if test -n "$ac_declaration"; then
2944 echo '#ifdef __cplusplus' >>confdefs.h
2945 echo $ac_declaration >>confdefs.h
2946 echo '#endif' >>confdefs.h
2949 else
2950 echo "$as_me: failed program was:" >&5
2951 sed 's/^/| /' conftest.$ac_ext >&5
2954 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2955 ac_ext=c
2956 ac_cpp='$CPP $CPPFLAGS'
2957 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2958 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2959 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2963 # Add -Wall if we are using GCC.
2964 if test "x$GCC" = "xyes"; then
2965 AM_FCFLAGS="-Wall"
2966 ## We like to use C99 routines when available. This makes sure that
2967 ## __STDC_VERSION__ is set such that libc includes make them available.
2968 AM_CFLAGS="-std=gnu99 -Wall -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -Wextra -Wwrite-strings"
2973 # Find other programs we need.
2974 if test -n "$ac_tool_prefix"; then
2975 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
2976 set dummy ${ac_tool_prefix}as; ac_word=$2
2977 echo "$as_me:$LINENO: checking for $ac_word" >&5
2978 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2979 if test "${ac_cv_prog_AS+set}" = set; then
2980 echo $ECHO_N "(cached) $ECHO_C" >&6
2981 else
2982 if test -n "$AS"; then
2983 ac_cv_prog_AS="$AS" # Let the user override the test.
2984 else
2985 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2986 for as_dir in $PATH
2988 IFS=$as_save_IFS
2989 test -z "$as_dir" && as_dir=.
2990 for ac_exec_ext in '' $ac_executable_extensions; do
2991 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2992 ac_cv_prog_AS="${ac_tool_prefix}as"
2993 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2994 break 2
2996 done
2997 done
3001 AS=$ac_cv_prog_AS
3002 if test -n "$AS"; then
3003 echo "$as_me:$LINENO: result: $AS" >&5
3004 echo "${ECHO_T}$AS" >&6
3005 else
3006 echo "$as_me:$LINENO: result: no" >&5
3007 echo "${ECHO_T}no" >&6
3011 if test -z "$ac_cv_prog_AS"; then
3012 ac_ct_AS=$AS
3013 # Extract the first word of "as", so it can be a program name with args.
3014 set dummy as; ac_word=$2
3015 echo "$as_me:$LINENO: checking for $ac_word" >&5
3016 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3017 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
3018 echo $ECHO_N "(cached) $ECHO_C" >&6
3019 else
3020 if test -n "$ac_ct_AS"; then
3021 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
3022 else
3023 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3024 for as_dir in $PATH
3026 IFS=$as_save_IFS
3027 test -z "$as_dir" && as_dir=.
3028 for ac_exec_ext in '' $ac_executable_extensions; do
3029 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3030 ac_cv_prog_ac_ct_AS="as"
3031 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3032 break 2
3034 done
3035 done
3039 ac_ct_AS=$ac_cv_prog_ac_ct_AS
3040 if test -n "$ac_ct_AS"; then
3041 echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
3042 echo "${ECHO_T}$ac_ct_AS" >&6
3043 else
3044 echo "$as_me:$LINENO: result: no" >&5
3045 echo "${ECHO_T}no" >&6
3048 AS=$ac_ct_AS
3049 else
3050 AS="$ac_cv_prog_AS"
3053 if test -n "$ac_tool_prefix"; then
3054 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3055 set dummy ${ac_tool_prefix}ar; ac_word=$2
3056 echo "$as_me:$LINENO: checking for $ac_word" >&5
3057 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3058 if test "${ac_cv_prog_AR+set}" = set; then
3059 echo $ECHO_N "(cached) $ECHO_C" >&6
3060 else
3061 if test -n "$AR"; then
3062 ac_cv_prog_AR="$AR" # Let the user override the test.
3063 else
3064 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3065 for as_dir in $PATH
3067 IFS=$as_save_IFS
3068 test -z "$as_dir" && as_dir=.
3069 for ac_exec_ext in '' $ac_executable_extensions; do
3070 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3071 ac_cv_prog_AR="${ac_tool_prefix}ar"
3072 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3073 break 2
3075 done
3076 done
3080 AR=$ac_cv_prog_AR
3081 if test -n "$AR"; then
3082 echo "$as_me:$LINENO: result: $AR" >&5
3083 echo "${ECHO_T}$AR" >&6
3084 else
3085 echo "$as_me:$LINENO: result: no" >&5
3086 echo "${ECHO_T}no" >&6
3090 if test -z "$ac_cv_prog_AR"; then
3091 ac_ct_AR=$AR
3092 # Extract the first word of "ar", so it can be a program name with args.
3093 set dummy ar; ac_word=$2
3094 echo "$as_me:$LINENO: checking for $ac_word" >&5
3095 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3096 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
3097 echo $ECHO_N "(cached) $ECHO_C" >&6
3098 else
3099 if test -n "$ac_ct_AR"; then
3100 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
3101 else
3102 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3103 for as_dir in $PATH
3105 IFS=$as_save_IFS
3106 test -z "$as_dir" && as_dir=.
3107 for ac_exec_ext in '' $ac_executable_extensions; do
3108 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3109 ac_cv_prog_ac_ct_AR="ar"
3110 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3111 break 2
3113 done
3114 done
3118 ac_ct_AR=$ac_cv_prog_ac_ct_AR
3119 if test -n "$ac_ct_AR"; then
3120 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
3121 echo "${ECHO_T}$ac_ct_AR" >&6
3122 else
3123 echo "$as_me:$LINENO: result: no" >&5
3124 echo "${ECHO_T}no" >&6
3127 AR=$ac_ct_AR
3128 else
3129 AR="$ac_cv_prog_AR"
3132 if test -n "$ac_tool_prefix"; then
3133 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3134 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3135 echo "$as_me:$LINENO: checking for $ac_word" >&5
3136 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3137 if test "${ac_cv_prog_RANLIB+set}" = set; then
3138 echo $ECHO_N "(cached) $ECHO_C" >&6
3139 else
3140 if test -n "$RANLIB"; then
3141 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3142 else
3143 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3144 for as_dir in $PATH
3146 IFS=$as_save_IFS
3147 test -z "$as_dir" && as_dir=.
3148 for ac_exec_ext in '' $ac_executable_extensions; do
3149 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3150 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3151 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3152 break 2
3154 done
3155 done
3159 RANLIB=$ac_cv_prog_RANLIB
3160 if test -n "$RANLIB"; then
3161 echo "$as_me:$LINENO: result: $RANLIB" >&5
3162 echo "${ECHO_T}$RANLIB" >&6
3163 else
3164 echo "$as_me:$LINENO: result: no" >&5
3165 echo "${ECHO_T}no" >&6
3169 if test -z "$ac_cv_prog_RANLIB"; then
3170 ac_ct_RANLIB=$RANLIB
3171 # Extract the first word of "ranlib", so it can be a program name with args.
3172 set dummy ranlib; ac_word=$2
3173 echo "$as_me:$LINENO: checking for $ac_word" >&5
3174 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3175 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3176 echo $ECHO_N "(cached) $ECHO_C" >&6
3177 else
3178 if test -n "$ac_ct_RANLIB"; then
3179 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3180 else
3181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3182 for as_dir in $PATH
3184 IFS=$as_save_IFS
3185 test -z "$as_dir" && as_dir=.
3186 for ac_exec_ext in '' $ac_executable_extensions; do
3187 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3188 ac_cv_prog_ac_ct_RANLIB="ranlib"
3189 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3190 break 2
3192 done
3193 done
3195 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB="ranlib-not-found-in-path-error"
3198 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3199 if test -n "$ac_ct_RANLIB"; then
3200 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3201 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3202 else
3203 echo "$as_me:$LINENO: result: no" >&5
3204 echo "${ECHO_T}no" >&6
3207 RANLIB=$ac_ct_RANLIB
3208 else
3209 RANLIB="$ac_cv_prog_RANLIB"
3212 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3213 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
3214 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
3215 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
3216 echo $ECHO_N "(cached) $ECHO_C" >&6
3217 else
3218 cat >conftest.make <<\_ACEOF
3219 all:
3220 @echo 'ac_maketemp="$(MAKE)"'
3221 _ACEOF
3222 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3223 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
3224 if test -n "$ac_maketemp"; then
3225 eval ac_cv_prog_make_${ac_make}_set=yes
3226 else
3227 eval ac_cv_prog_make_${ac_make}_set=no
3229 rm -f conftest.make
3231 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3232 echo "$as_me:$LINENO: result: yes" >&5
3233 echo "${ECHO_T}yes" >&6
3234 SET_MAKE=
3235 else
3236 echo "$as_me:$LINENO: result: no" >&5
3237 echo "${ECHO_T}no" >&6
3238 SET_MAKE="MAKE=${MAKE-make}"
3241 # Find a good install program. We prefer a C program (faster),
3242 # so one script is as good as another. But avoid the broken or
3243 # incompatible versions:
3244 # SysV /etc/install, /usr/sbin/install
3245 # SunOS /usr/etc/install
3246 # IRIX /sbin/install
3247 # AIX /bin/install
3248 # AmigaOS /C/install, which installs bootblocks on floppy discs
3249 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3250 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3251 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3252 # OS/2's system install, which has a completely different semantic
3253 # ./install, which can be erroneously created by make from ./install.sh.
3254 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3255 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3256 if test -z "$INSTALL"; then
3257 if test "${ac_cv_path_install+set}" = set; then
3258 echo $ECHO_N "(cached) $ECHO_C" >&6
3259 else
3260 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3261 for as_dir in $PATH
3263 IFS=$as_save_IFS
3264 test -z "$as_dir" && as_dir=.
3265 # Account for people who put trailing slashes in PATH elements.
3266 case $as_dir/ in
3267 ./ | .// | /cC/* | \
3268 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3269 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3270 /usr/ucb/* ) ;;
3272 # OSF1 and SCO ODT 3.0 have their own names for install.
3273 # Don't use installbsd from OSF since it installs stuff as root
3274 # by default.
3275 for ac_prog in ginstall scoinst install; do
3276 for ac_exec_ext in '' $ac_executable_extensions; do
3277 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3278 if test $ac_prog = install &&
3279 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3280 # AIX install. It has an incompatible calling convention.
3282 elif test $ac_prog = install &&
3283 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3284 # program-specific install script used by HP pwplus--don't use.
3286 else
3287 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3288 break 3
3291 done
3292 done
3294 esac
3295 done
3299 if test "${ac_cv_path_install+set}" = set; then
3300 INSTALL=$ac_cv_path_install
3301 else
3302 # As a last resort, use the slow shell script. We don't cache a
3303 # path for INSTALL within a source directory, because that will
3304 # break other packages using the cache if that directory is
3305 # removed, or if the path is relative.
3306 INSTALL=$ac_install_sh
3309 echo "$as_me:$LINENO: result: $INSTALL" >&5
3310 echo "${ECHO_T}$INSTALL" >&6
3312 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3313 # It thinks the first close brace ends the variable substitution.
3314 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3316 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3318 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3321 # Configure libtool
3322 #AC_MSG_NOTICE([====== Starting libtool configuration])
3324 # Check whether --enable-shared or --disable-shared was given.
3325 if test "${enable_shared+set}" = set; then
3326 enableval="$enable_shared"
3327 p=${PACKAGE-default}
3328 case $enableval in
3329 yes) enable_shared=yes ;;
3330 no) enable_shared=no ;;
3332 enable_shared=no
3333 # Look at the argument we got. We use all the common list separators.
3334 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3335 for pkg in $enableval; do
3336 if test "X$pkg" = "X$p"; then
3337 enable_shared=yes
3339 done
3340 IFS="$ac_save_ifs"
3342 esac
3343 else
3344 enable_shared=yes
3346 # Check whether --enable-static or --disable-static was given.
3347 if test "${enable_static+set}" = set; then
3348 enableval="$enable_static"
3349 p=${PACKAGE-default}
3350 case $enableval in
3351 yes) enable_static=yes ;;
3352 no) enable_static=no ;;
3354 enable_static=no
3355 # Look at the argument we got. We use all the common list separators.
3356 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3357 for pkg in $enableval; do
3358 if test "X$pkg" = "X$p"; then
3359 enable_static=yes
3361 done
3362 IFS="$ac_save_ifs"
3364 esac
3365 else
3366 enable_static=yes
3368 # Check whether --enable-fast-install or --disable-fast-install was given.
3369 if test "${enable_fast_install+set}" = set; then
3370 enableval="$enable_fast_install"
3371 p=${PACKAGE-default}
3372 case $enableval in
3373 yes) enable_fast_install=yes ;;
3374 no) enable_fast_install=no ;;
3376 enable_fast_install=no
3377 # Look at the argument we got. We use all the common list separators.
3378 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3379 for pkg in $enableval; do
3380 if test "X$pkg" = "X$p"; then
3381 enable_fast_install=yes
3383 done
3384 IFS="$ac_save_ifs"
3386 esac
3387 else
3388 enable_fast_install=yes
3391 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3392 if test "${with_gnu_ld+set}" = set; then
3393 withval="$with_gnu_ld"
3394 test "$withval" = no || with_gnu_ld=yes
3395 else
3396 with_gnu_ld=no
3398 ac_prog=ld
3399 if test "$GCC" = yes; then
3400 # Check if gcc -print-prog-name=ld gives a path.
3401 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
3402 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
3403 case $host in
3404 *-*-mingw*)
3405 # gcc leaves a trailing carriage return which upsets mingw
3406 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3408 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3409 esac
3410 case $ac_prog in
3411 # Accept absolute paths.
3412 [\\/]* | [A-Za-z]:[\\/]*)
3413 re_direlt='/[^/][^/]*/\.\./'
3414 # Canonicalize the path of ld
3415 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
3416 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3417 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
3418 done
3419 test -z "$LD" && LD="$ac_prog"
3422 # If it fails, then pretend we aren't using GCC.
3423 ac_prog=ld
3426 # If it is relative, then search for the first ld in PATH.
3427 with_gnu_ld=unknown
3429 esac
3430 elif test "$with_gnu_ld" = yes; then
3431 echo "$as_me:$LINENO: checking for GNU ld" >&5
3432 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3433 else
3434 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3435 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3437 if test "${lt_cv_path_LD+set}" = set; then
3438 echo $ECHO_N "(cached) $ECHO_C" >&6
3439 else
3440 if test -z "$LD"; then
3441 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
3442 for ac_dir in $PATH; do
3443 test -z "$ac_dir" && ac_dir=.
3444 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3445 lt_cv_path_LD="$ac_dir/$ac_prog"
3446 # Check to see if the program is GNU ld. I'd rather use --version,
3447 # but apparently some GNU ld's only accept -v.
3448 # Break only if it was the GNU/non-GNU ld that we prefer.
3449 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
3450 test "$with_gnu_ld" != no && break
3451 else
3452 test "$with_gnu_ld" != yes && break
3455 done
3456 IFS="$ac_save_ifs"
3457 else
3458 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3462 LD="$lt_cv_path_LD"
3463 if test -n "$LD"; then
3464 echo "$as_me:$LINENO: result: $LD" >&5
3465 echo "${ECHO_T}$LD" >&6
3466 else
3467 echo "$as_me:$LINENO: result: no" >&5
3468 echo "${ECHO_T}no" >&6
3470 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3471 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3472 { (exit 1); exit 1; }; }
3473 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3474 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3475 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3476 echo $ECHO_N "(cached) $ECHO_C" >&6
3477 else
3478 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3479 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
3480 lt_cv_prog_gnu_ld=yes
3481 else
3482 lt_cv_prog_gnu_ld=no
3485 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3486 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3487 with_gnu_ld=$lt_cv_prog_gnu_ld
3490 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3491 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3492 if test "${lt_cv_ld_reload_flag+set}" = set; then
3493 echo $ECHO_N "(cached) $ECHO_C" >&6
3494 else
3495 lt_cv_ld_reload_flag='-r'
3497 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3498 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3499 reload_flag=$lt_cv_ld_reload_flag
3500 test -n "$reload_flag" && reload_flag=" $reload_flag"
3502 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3503 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3504 if test "${lt_cv_path_NM+set}" = set; then
3505 echo $ECHO_N "(cached) $ECHO_C" >&6
3506 else
3507 if test -n "$NM"; then
3508 # Let the user override the test.
3509 lt_cv_path_NM="$NM"
3510 else
3511 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
3512 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3513 test -z "$ac_dir" && ac_dir=.
3514 tmp_nm=$ac_dir/${ac_tool_prefix}nm
3515 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
3516 # Check to see if the nm accepts a BSD-compat flag.
3517 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3518 # nm: unknown option "B" ignored
3519 # Tru64's nm complains that /dev/null is an invalid object file
3520 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
3521 lt_cv_path_NM="$tmp_nm -B"
3522 break
3523 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
3524 lt_cv_path_NM="$tmp_nm -p"
3525 break
3526 else
3527 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3528 continue # so that we can try to find one that supports BSD flags
3531 done
3532 IFS="$ac_save_ifs"
3533 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3537 NM="$lt_cv_path_NM"
3538 echo "$as_me:$LINENO: result: $NM" >&5
3539 echo "${ECHO_T}$NM" >&6
3541 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3542 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3543 LN_S=$as_ln_s
3544 if test "$LN_S" = "ln -s"; then
3545 echo "$as_me:$LINENO: result: yes" >&5
3546 echo "${ECHO_T}yes" >&6
3547 else
3548 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3549 echo "${ECHO_T}no, using $LN_S" >&6
3552 echo "$as_me:$LINENO: checking how to recognise dependant libraries" >&5
3553 echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6
3554 if test "${lt_cv_deplibs_check_method+set}" = set; then
3555 echo $ECHO_N "(cached) $ECHO_C" >&6
3556 else
3557 lt_cv_file_magic_cmd='$MAGIC_CMD'
3558 lt_cv_file_magic_test_file=
3559 lt_cv_deplibs_check_method='unknown'
3560 # Need to set the preceding variable on all platforms that support
3561 # interlibrary dependencies.
3562 # 'none' -- dependencies not supported.
3563 # `unknown' -- same as none, but documents that we really don't know.
3564 # 'pass_all' -- all dependencies passed with no checks.
3565 # 'test_compile' -- check by making test program.
3566 # 'file_magic [regex]' -- check by looking for files in library path
3567 # which responds to the $file_magic_cmd with a given egrep regex.
3568 # If you have `file' or equivalent on your system and you're not sure
3569 # whether `pass_all' will *always* work, you probably want this one.
3571 case $host_os in
3572 aix*)
3573 lt_cv_deplibs_check_method=pass_all
3576 beos*)
3577 lt_cv_deplibs_check_method=pass_all
3580 bsdi4*)
3581 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3582 lt_cv_file_magic_cmd='/usr/bin/file -L'
3583 lt_cv_file_magic_test_file=/shlib/libc.so
3586 cygwin* | mingw* |pw32*)
3587 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3588 lt_cv_file_magic_cmd='$OBJDUMP -f'
3591 darwin* | rhapsody*)
3592 # this will be overwritten by pass_all, but leave it in just in case
3593 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
3594 lt_cv_file_magic_cmd='/usr/bin/file -L'
3595 case "$host_os" in
3596 rhapsody* | darwin1.012)
3597 lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
3599 *) # Darwin 1.3 on
3600 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
3602 esac
3603 lt_cv_deplibs_check_method=pass_all
3606 freebsd* | kfreebsd*-gnu)
3607 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3608 case $host_cpu in
3609 i*86 )
3610 # Not sure whether the presence of OpenBSD here was a mistake.
3611 # Let's accept both of them until this is cleared up.
3612 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3613 lt_cv_file_magic_cmd=/usr/bin/file
3614 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3616 esac
3617 else
3618 lt_cv_deplibs_check_method=pass_all
3622 gnu*)
3623 lt_cv_deplibs_check_method=pass_all
3626 hpux10.20*|hpux11*)
3627 case $host_cpu in
3628 hppa*)
3629 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3630 lt_cv_file_magic_cmd=/usr/bin/file
3631 lt_cv_file_magic_test_file=/usr/lib/libc.sl
3633 ia64*)
3634 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3635 lt_cv_file_magic_cmd=/usr/bin/file
3636 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3638 esac
3641 irix5* | irix6*)
3642 case $host_os in
3643 irix5*)
3644 # this will be overridden with pass_all, but let us keep it just in case
3645 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
3648 case $LD in
3649 *-32|*"-32 ") libmagic=32-bit;;
3650 *-n32|*"-n32 ") libmagic=N32;;
3651 *-64|*"-64 ") libmagic=64-bit;;
3652 *) libmagic=never-match;;
3653 esac
3654 # this will be overridden with pass_all, but let us keep it just in case
3655 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
3657 esac
3658 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
3659 lt_cv_deplibs_check_method=pass_all
3662 # This must be Linux ELF.
3663 linux-gnu*)
3664 lt_cv_deplibs_check_method=pass_all
3667 netbsd* | knetbsd*-gnu)
3668 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3669 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
3670 else
3671 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
3675 newsos6)
3676 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3677 lt_cv_file_magic_cmd=/usr/bin/file
3678 lt_cv_file_magic_test_file=/usr/lib/libnls.so
3681 osf3* | osf4* | osf5*)
3682 # this will be overridden with pass_all, but let us keep it just in case
3683 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
3684 lt_cv_file_magic_test_file=/shlib/libc.so
3685 lt_cv_deplibs_check_method=pass_all
3688 sco3.2v5*)
3689 lt_cv_deplibs_check_method=pass_all
3692 solaris*)
3693 lt_cv_deplibs_check_method=pass_all
3694 lt_cv_file_magic_test_file=/lib/libc.so
3697 sysv5uw[78]* | sysv4*uw2*)
3698 lt_cv_deplibs_check_method=pass_all
3701 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3702 case $host_vendor in
3703 ncr)
3704 lt_cv_deplibs_check_method=pass_all
3706 motorola)
3707 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]'
3708 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3710 esac
3712 esac
3715 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3716 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3717 file_magic_cmd=$lt_cv_file_magic_cmd
3718 deplibs_check_method=$lt_cv_deplibs_check_method
3724 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
3726 # find the maximum length of command line arguments
3727 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
3728 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
3729 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
3730 echo $ECHO_N "(cached) $ECHO_C" >&6
3731 else
3733 teststring="ABCD"
3735 case $build_os in
3736 msdosdjgpp*)
3737 # On DJGPP, this test can blow up pretty badly due to problems in libc
3738 # (any single argument exceeding 2000 bytes causes a buffer overrun
3739 # during glob expansion). Even if it were fixed, the result of this
3740 # check would be larger than it should be.
3741 lt_cv_sys_max_cmd_len=12288; # 12K is about right
3744 cygwin* | mingw*)
3745 # On Win9x/ME, this test blows up -- it succeeds, but takes
3746 # about 5 minutes as the teststring grows exponentially.
3747 # Worse, since 9x/ME are not pre-emptively multitasking,
3748 # you end up with a "frozen" computer, even though with patience
3749 # the test eventually succeeds (with a max line length of 256k).
3750 # Instead, let's just punt: use the minimum linelength reported by
3751 # all of the supported platforms: 8192 (on NT/2K/XP).
3752 lt_cv_sys_max_cmd_len=8192;
3755 amigaos*)
3756 # On AmigaOS with pdksh, this test takes hours, literally.
3757 # So we just punt and use a minimum line length of 8192.
3758 lt_cv_sys_max_cmd_len=8192;
3761 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
3762 # This has been around since 386BSD, at least. Likely further.
3763 if test -x /sbin/sysctl; then
3764 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
3765 elif test -x /usr/sbin/sysctl; then
3766 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
3767 else
3768 lt_cv_sys_max_cmd_len=65536 # usable default for *BSD
3770 # And add a safety zone
3771 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
3772 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
3774 esac
3778 if test -n "$lt_cv_sys_max_cmd_len" ; then
3779 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
3780 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
3781 else
3782 echo "$as_me:$LINENO: result: none" >&5
3783 echo "${ECHO_T}none" >&6
3787 # Only perform the check for file, if the check method requires it
3788 case $deplibs_check_method in
3789 file_magic*)
3790 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
3791 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
3792 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
3793 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
3794 echo $ECHO_N "(cached) $ECHO_C" >&6
3795 else
3796 case $MAGIC_CMD in
3798 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
3800 ?:/*)
3801 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
3804 ac_save_MAGIC_CMD="$MAGIC_CMD"
3805 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3806 ac_dummy="/usr/bin:$PATH"
3807 for ac_dir in $ac_dummy; do
3808 test -z "$ac_dir" && ac_dir=.
3809 if test -f $ac_dir/${ac_tool_prefix}file; then
3810 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
3811 if test -n "$file_magic_test_file"; then
3812 case $deplibs_check_method in
3813 "file_magic "*)
3814 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
3815 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3816 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3817 egrep "$file_magic_regex" > /dev/null; then
3819 else
3820 cat <<EOF 1>&2
3822 *** Warning: the command libtool uses to detect shared libraries,
3823 *** $file_magic_cmd, produces output that libtool cannot recognize.
3824 *** The result is that libtool may fail to recognize shared libraries
3825 *** as such. This will affect the creation of libtool libraries that
3826 *** depend on shared libraries, but programs linked with such libtool
3827 *** libraries will work regardless of this problem. Nevertheless, you
3828 *** may want to report the problem to your system manager and/or to
3829 *** bug-libtool@gnu.org
3832 fi ;;
3833 esac
3835 break
3837 done
3838 IFS="$ac_save_ifs"
3839 MAGIC_CMD="$ac_save_MAGIC_CMD"
3841 esac
3844 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3845 if test -n "$MAGIC_CMD"; then
3846 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
3847 echo "${ECHO_T}$MAGIC_CMD" >&6
3848 else
3849 echo "$as_me:$LINENO: result: no" >&5
3850 echo "${ECHO_T}no" >&6
3853 if test -z "$lt_cv_path_MAGIC_CMD"; then
3854 if test -n "$ac_tool_prefix"; then
3855 echo "$as_me:$LINENO: checking for file" >&5
3856 echo $ECHO_N "checking for file... $ECHO_C" >&6
3857 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
3858 echo $ECHO_N "(cached) $ECHO_C" >&6
3859 else
3860 case $MAGIC_CMD in
3862 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
3864 ?:/*)
3865 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
3868 ac_save_MAGIC_CMD="$MAGIC_CMD"
3869 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3870 ac_dummy="/usr/bin:$PATH"
3871 for ac_dir in $ac_dummy; do
3872 test -z "$ac_dir" && ac_dir=.
3873 if test -f $ac_dir/file; then
3874 lt_cv_path_MAGIC_CMD="$ac_dir/file"
3875 if test -n "$file_magic_test_file"; then
3876 case $deplibs_check_method in
3877 "file_magic "*)
3878 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
3879 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3880 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3881 egrep "$file_magic_regex" > /dev/null; then
3883 else
3884 cat <<EOF 1>&2
3886 *** Warning: the command libtool uses to detect shared libraries,
3887 *** $file_magic_cmd, produces output that libtool cannot recognize.
3888 *** The result is that libtool may fail to recognize shared libraries
3889 *** as such. This will affect the creation of libtool libraries that
3890 *** depend on shared libraries, but programs linked with such libtool
3891 *** libraries will work regardless of this problem. Nevertheless, you
3892 *** may want to report the problem to your system manager and/or to
3893 *** bug-libtool@gnu.org
3896 fi ;;
3897 esac
3899 break
3901 done
3902 IFS="$ac_save_ifs"
3903 MAGIC_CMD="$ac_save_MAGIC_CMD"
3905 esac
3908 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3909 if test -n "$MAGIC_CMD"; then
3910 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
3911 echo "${ECHO_T}$MAGIC_CMD" >&6
3912 else
3913 echo "$as_me:$LINENO: result: no" >&5
3914 echo "${ECHO_T}no" >&6
3917 else
3918 MAGIC_CMD=:
3924 esac
3926 if test -n "$ac_tool_prefix"; then
3927 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3928 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3929 echo "$as_me:$LINENO: checking for $ac_word" >&5
3930 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3931 if test "${ac_cv_prog_RANLIB+set}" = set; then
3932 echo $ECHO_N "(cached) $ECHO_C" >&6
3933 else
3934 if test -n "$RANLIB"; then
3935 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3936 else
3937 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3938 for as_dir in $PATH
3940 IFS=$as_save_IFS
3941 test -z "$as_dir" && as_dir=.
3942 for ac_exec_ext in '' $ac_executable_extensions; do
3943 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3944 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3945 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3946 break 2
3948 done
3949 done
3953 RANLIB=$ac_cv_prog_RANLIB
3954 if test -n "$RANLIB"; then
3955 echo "$as_me:$LINENO: result: $RANLIB" >&5
3956 echo "${ECHO_T}$RANLIB" >&6
3957 else
3958 echo "$as_me:$LINENO: result: no" >&5
3959 echo "${ECHO_T}no" >&6
3963 if test -z "$ac_cv_prog_RANLIB"; then
3964 ac_ct_RANLIB=$RANLIB
3965 # Extract the first word of "ranlib", so it can be a program name with args.
3966 set dummy ranlib; ac_word=$2
3967 echo "$as_me:$LINENO: checking for $ac_word" >&5
3968 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3969 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3970 echo $ECHO_N "(cached) $ECHO_C" >&6
3971 else
3972 if test -n "$ac_ct_RANLIB"; then
3973 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3974 else
3975 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3976 for as_dir in $PATH
3978 IFS=$as_save_IFS
3979 test -z "$as_dir" && as_dir=.
3980 for ac_exec_ext in '' $ac_executable_extensions; do
3981 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3982 ac_cv_prog_ac_ct_RANLIB="ranlib"
3983 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3984 break 2
3986 done
3987 done
3989 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3992 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3993 if test -n "$ac_ct_RANLIB"; then
3994 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3995 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3996 else
3997 echo "$as_me:$LINENO: result: no" >&5
3998 echo "${ECHO_T}no" >&6
4001 RANLIB=$ac_ct_RANLIB
4002 else
4003 RANLIB="$ac_cv_prog_RANLIB"
4006 if test -n "$ac_tool_prefix"; then
4007 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4008 set dummy ${ac_tool_prefix}strip; ac_word=$2
4009 echo "$as_me:$LINENO: checking for $ac_word" >&5
4010 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4011 if test "${ac_cv_prog_STRIP+set}" = set; then
4012 echo $ECHO_N "(cached) $ECHO_C" >&6
4013 else
4014 if test -n "$STRIP"; then
4015 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4016 else
4017 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4018 for as_dir in $PATH
4020 IFS=$as_save_IFS
4021 test -z "$as_dir" && as_dir=.
4022 for ac_exec_ext in '' $ac_executable_extensions; do
4023 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4024 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4025 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4026 break 2
4028 done
4029 done
4033 STRIP=$ac_cv_prog_STRIP
4034 if test -n "$STRIP"; then
4035 echo "$as_me:$LINENO: result: $STRIP" >&5
4036 echo "${ECHO_T}$STRIP" >&6
4037 else
4038 echo "$as_me:$LINENO: result: no" >&5
4039 echo "${ECHO_T}no" >&6
4043 if test -z "$ac_cv_prog_STRIP"; then
4044 ac_ct_STRIP=$STRIP
4045 # Extract the first word of "strip", so it can be a program name with args.
4046 set dummy strip; ac_word=$2
4047 echo "$as_me:$LINENO: checking for $ac_word" >&5
4048 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4049 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4050 echo $ECHO_N "(cached) $ECHO_C" >&6
4051 else
4052 if test -n "$ac_ct_STRIP"; then
4053 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4054 else
4055 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4056 for as_dir in $PATH
4058 IFS=$as_save_IFS
4059 test -z "$as_dir" && as_dir=.
4060 for ac_exec_ext in '' $ac_executable_extensions; do
4061 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4062 ac_cv_prog_ac_ct_STRIP="strip"
4063 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4064 break 2
4066 done
4067 done
4069 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
4072 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4073 if test -n "$ac_ct_STRIP"; then
4074 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4075 echo "${ECHO_T}$ac_ct_STRIP" >&6
4076 else
4077 echo "$as_me:$LINENO: result: no" >&5
4078 echo "${ECHO_T}no" >&6
4081 STRIP=$ac_ct_STRIP
4082 else
4083 STRIP="$ac_cv_prog_STRIP"
4087 # Check for any special flags to pass to ltconfig.
4088 libtool_flags="--cache-file=$cache_file"
4089 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
4090 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
4091 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
4092 test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
4093 test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
4096 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4097 if test "${enable_libtool_lock+set}" = set; then
4098 enableval="$enable_libtool_lock"
4101 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
4102 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
4105 # Check whether --with-pic or --without-pic was given.
4106 if test "${with_pic+set}" = set; then
4107 withval="$with_pic"
4108 pic_mode="$withval"
4109 else
4110 pic_mode=default
4112 test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
4113 test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
4115 # Some flags need to be propagated to the compiler or linker for good
4116 # libtool support.
4117 case $host in
4118 *-*-irix6*)
4119 # Find out which ABI we are using.
4120 echo '#line 4120 "configure"' > conftest.$ac_ext
4121 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4122 (eval $ac_compile) 2>&5
4123 ac_status=$?
4124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4125 (exit $ac_status); }; then
4126 if test "$lt_cv_prog_gnu_ld" = yes; then
4127 case `/usr/bin/file conftest.$ac_objext` in
4128 *32-bit*)
4129 LD="${LD-ld} -melf32bsmip"
4131 *N32*)
4132 LD="${LD-ld} -melf32bmipn32"
4134 *64-bit*)
4135 LD="${LD-ld} -melf64bmip"
4137 esac
4138 else
4139 case `/usr/bin/file conftest.$ac_objext` in
4140 *32-bit*)
4141 LD="${LD-ld} -32"
4143 *N32*)
4144 LD="${LD-ld} -n32"
4146 *64-bit*)
4147 LD="${LD-ld} -64"
4149 esac
4152 rm -rf conftest*
4155 ia64-*-hpux*)
4156 # Find out which ABI we are using.
4157 echo 'int i;' > conftest.$ac_ext
4158 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4159 (eval $ac_compile) 2>&5
4160 ac_status=$?
4161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4162 (exit $ac_status); }; then
4163 case "`/usr/bin/file conftest.o`" in
4164 *ELF-32*)
4165 HPUX_IA64_MODE="32"
4167 *ELF-64*)
4168 HPUX_IA64_MODE="64"
4170 esac
4172 rm -rf conftest*
4175 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4176 # Find out which ABI we are using.
4177 echo 'int i;' > conftest.$ac_ext
4178 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4179 (eval $ac_compile) 2>&5
4180 ac_status=$?
4181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4182 (exit $ac_status); }; then
4183 case "`/usr/bin/file conftest.o`" in
4184 *32-bit*)
4185 case $host in
4186 x86_64-*linux*)
4187 LD="${LD-ld} -m elf_i386"
4189 ppc64-*linux*|powerpc64-*linux*)
4190 LD="${LD-ld} -m elf32ppclinux"
4192 s390x-*linux*)
4193 LD="${LD-ld} -m elf_s390"
4195 sparc64-*linux*)
4196 LD="${LD-ld} -m elf32_sparc"
4198 esac
4200 *64-bit*)
4201 case $host in
4202 x86_64-*linux*)
4203 LD="${LD-ld} -m elf_x86_64"
4205 ppc*-*linux*|powerpc*-*linux*)
4206 LD="${LD-ld} -m elf64ppc"
4208 s390*-*linux*)
4209 LD="${LD-ld} -m elf64_s390"
4211 sparc*-*linux*)
4212 LD="${LD-ld} -m elf64_sparc"
4214 esac
4216 esac
4218 rm -rf conftest*
4221 *-*-sco3.2v5*)
4222 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4223 SAVE_CFLAGS="$CFLAGS"
4224 CFLAGS="$CFLAGS -belf"
4225 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4226 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4227 if test "${lt_cv_cc_needs_belf+set}" = set; then
4228 echo $ECHO_N "(cached) $ECHO_C" >&6
4229 else
4232 ac_ext=c
4233 ac_cpp='$CPP $CPPFLAGS'
4234 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4235 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4236 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4238 if test x$gcc_no_link = xyes; then
4239 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
4240 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
4241 { (exit 1); exit 1; }; }
4243 cat >conftest.$ac_ext <<_ACEOF
4244 /* confdefs.h. */
4245 _ACEOF
4246 cat confdefs.h >>conftest.$ac_ext
4247 cat >>conftest.$ac_ext <<_ACEOF
4248 /* end confdefs.h. */
4251 main ()
4255 return 0;
4257 _ACEOF
4258 rm -f conftest.$ac_objext conftest$ac_exeext
4259 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4260 (eval $ac_link) 2>conftest.er1
4261 ac_status=$?
4262 grep -v '^ *+' conftest.er1 >conftest.err
4263 rm -f conftest.er1
4264 cat conftest.err >&5
4265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4266 (exit $ac_status); } &&
4267 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4269 (eval $ac_try) 2>&5
4270 ac_status=$?
4271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4272 (exit $ac_status); }; } &&
4273 { ac_try='test -s conftest$ac_exeext'
4274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4275 (eval $ac_try) 2>&5
4276 ac_status=$?
4277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4278 (exit $ac_status); }; }; then
4279 lt_cv_cc_needs_belf=yes
4280 else
4281 echo "$as_me: failed program was:" >&5
4282 sed 's/^/| /' conftest.$ac_ext >&5
4284 lt_cv_cc_needs_belf=no
4286 rm -f conftest.err conftest.$ac_objext \
4287 conftest$ac_exeext conftest.$ac_ext
4288 ac_ext=c
4289 ac_cpp='$CPP $CPPFLAGS'
4290 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4291 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4292 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4295 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4296 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4297 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4298 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4299 CFLAGS="$SAVE_CFLAGS"
4304 esac
4307 # Save cache, so that ltconfig can load it
4308 cat >confcache <<\_ACEOF
4309 # This file is a shell script that caches the results of configure
4310 # tests run on this system so they can be shared between configure
4311 # scripts and configure runs, see configure's option --config-cache.
4312 # It is not useful on other systems. If it contains results you don't
4313 # want to keep, you may remove or edit it.
4315 # config.status only pays attention to the cache file if you give it
4316 # the --recheck option to rerun configure.
4318 # `ac_cv_env_foo' variables (set or unset) will be overridden when
4319 # loading this file, other *unset* `ac_cv_foo' will be assigned the
4320 # following values.
4322 _ACEOF
4324 # The following way of writing the cache mishandles newlines in values,
4325 # but we know of no workaround that is simple, portable, and efficient.
4326 # So, don't put newlines in cache variables' values.
4327 # Ultrix sh set writes to stderr and can't be redirected directly,
4328 # and sets the high bit in the cache file unless we assign to the vars.
4330 (set) 2>&1 |
4331 case `(ac_space=' '; set | grep ac_space) 2>&1` in
4332 *ac_space=\ *)
4333 # `set' does not quote correctly, so add quotes (double-quote
4334 # substitution turns \\\\ into \\, and sed turns \\ into \).
4335 sed -n \
4336 "s/'/'\\\\''/g;
4337 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
4340 # `set' quotes correctly as required by POSIX, so do not add quotes.
4341 sed -n \
4342 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
4344 esac;
4346 sed '
4347 t clear
4348 : clear
4349 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
4350 t end
4351 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4352 : end' >>confcache
4353 if diff $cache_file confcache >/dev/null 2>&1; then :; else
4354 if test -w $cache_file; then
4355 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
4356 cat confcache >$cache_file
4357 else
4358 echo "not updating unwritable cache $cache_file"
4361 rm -f confcache
4363 # Actually configure libtool. ac_aux_dir is where install-sh is found.
4364 AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
4365 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
4366 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
4367 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
4368 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
4369 deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
4370 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
4371 $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
4372 || { { echo "$as_me:$LINENO: error: libtool configure failed" >&5
4373 echo "$as_me: error: libtool configure failed" >&2;}
4374 { (exit 1); exit 1; }; }
4376 # Reload cache, that may have been modified by ltconfig
4377 if test -r "$cache_file"; then
4378 # Some versions of bash will fail to source /dev/null (special
4379 # files actually), so we avoid doing that.
4380 if test -f "$cache_file"; then
4381 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
4382 echo "$as_me: loading cache $cache_file" >&6;}
4383 case $cache_file in
4384 [\\/]* | ?:[\\/]* ) . $cache_file;;
4385 *) . ./$cache_file;;
4386 esac
4388 else
4389 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
4390 echo "$as_me: creating cache $cache_file" >&6;}
4391 >$cache_file
4395 # This can be used to rebuild libtool when needed
4396 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
4398 # Always use our own libtool.
4399 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
4401 # Redirect the config.log output again, so that the ltconfig log is not
4402 # clobbered by the next message.
4403 exec 5>>./config.log
4412 #AC_MSG_NOTICE([====== Finished libtool configuration]) ; sleep 10
4414 # We need gfortran to compile parts of the library
4415 # We can't use AC_PROG_FC because it expects a fully working gfortran.
4416 #AC_PROG_FC(gfortran)
4417 FC="$GFORTRAN"
4418 ac_ext=${FC_SRCEXT-f}
4419 ac_compile='$FC -c $FCFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext >&5'
4420 ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext $LIBS >&5'
4421 ac_compiler_gnu=$ac_cv_fc_compiler_gnu
4422 if test -n "$ac_tool_prefix"; then
4423 for ac_prog in gfortran
4425 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4426 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4427 echo "$as_me:$LINENO: checking for $ac_word" >&5
4428 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4429 if test "${ac_cv_prog_FC+set}" = set; then
4430 echo $ECHO_N "(cached) $ECHO_C" >&6
4431 else
4432 if test -n "$FC"; then
4433 ac_cv_prog_FC="$FC" # Let the user override the test.
4434 else
4435 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4436 for as_dir in $PATH
4438 IFS=$as_save_IFS
4439 test -z "$as_dir" && as_dir=.
4440 for ac_exec_ext in '' $ac_executable_extensions; do
4441 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4442 ac_cv_prog_FC="$ac_tool_prefix$ac_prog"
4443 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4444 break 2
4446 done
4447 done
4451 FC=$ac_cv_prog_FC
4452 if test -n "$FC"; then
4453 echo "$as_me:$LINENO: result: $FC" >&5
4454 echo "${ECHO_T}$FC" >&6
4455 else
4456 echo "$as_me:$LINENO: result: no" >&5
4457 echo "${ECHO_T}no" >&6
4460 test -n "$FC" && break
4461 done
4463 if test -z "$FC"; then
4464 ac_ct_FC=$FC
4465 for ac_prog in gfortran
4467 # Extract the first word of "$ac_prog", so it can be a program name with args.
4468 set dummy $ac_prog; ac_word=$2
4469 echo "$as_me:$LINENO: checking for $ac_word" >&5
4470 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4471 if test "${ac_cv_prog_ac_ct_FC+set}" = set; then
4472 echo $ECHO_N "(cached) $ECHO_C" >&6
4473 else
4474 if test -n "$ac_ct_FC"; then
4475 ac_cv_prog_ac_ct_FC="$ac_ct_FC" # Let the user override the test.
4476 else
4477 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4478 for as_dir in $PATH
4480 IFS=$as_save_IFS
4481 test -z "$as_dir" && as_dir=.
4482 for ac_exec_ext in '' $ac_executable_extensions; do
4483 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4484 ac_cv_prog_ac_ct_FC="$ac_prog"
4485 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4486 break 2
4488 done
4489 done
4493 ac_ct_FC=$ac_cv_prog_ac_ct_FC
4494 if test -n "$ac_ct_FC"; then
4495 echo "$as_me:$LINENO: result: $ac_ct_FC" >&5
4496 echo "${ECHO_T}$ac_ct_FC" >&6
4497 else
4498 echo "$as_me:$LINENO: result: no" >&5
4499 echo "${ECHO_T}no" >&6
4502 test -n "$ac_ct_FC" && break
4503 done
4505 FC=$ac_ct_FC
4509 # Provide some information about the compiler.
4510 echo "$as_me:4510:" \
4511 "checking for Fortran compiler version" >&5
4512 ac_compiler=`set X $ac_compile; echo $2`
4513 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4514 (eval $ac_compiler --version </dev/null >&5) 2>&5
4515 ac_status=$?
4516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4517 (exit $ac_status); }
4518 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4519 (eval $ac_compiler -v </dev/null >&5) 2>&5
4520 ac_status=$?
4521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4522 (exit $ac_status); }
4523 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4524 (eval $ac_compiler -V </dev/null >&5) 2>&5
4525 ac_status=$?
4526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4527 (exit $ac_status); }
4528 rm -f a.out
4530 # If we don't use `.F' as extension, the preprocessor is not run on the
4531 # input file. (Note that this only needs to work for GNU compilers.)
4532 ac_save_ext=$ac_ext
4533 ac_ext=F
4534 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran compiler" >&5
4535 echo $ECHO_N "checking whether we are using the GNU Fortran compiler... $ECHO_C" >&6
4536 if test "${ac_cv_fc_compiler_gnu+set}" = set; then
4537 echo $ECHO_N "(cached) $ECHO_C" >&6
4538 else
4539 cat >conftest.$ac_ext <<_ACEOF
4540 program main
4541 #ifndef __GNUC__
4542 choke me
4543 #endif
4546 _ACEOF
4547 rm -f conftest.$ac_objext
4548 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4549 (eval $ac_compile) 2>conftest.er1
4550 ac_status=$?
4551 grep -v '^ *+' conftest.er1 >conftest.err
4552 rm -f conftest.er1
4553 cat conftest.err >&5
4554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4555 (exit $ac_status); } &&
4556 { ac_try='test -z "$ac_fc_werror_flag" || test ! -s conftest.err'
4557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4558 (eval $ac_try) 2>&5
4559 ac_status=$?
4560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4561 (exit $ac_status); }; } &&
4562 { ac_try='test -s conftest.$ac_objext'
4563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4564 (eval $ac_try) 2>&5
4565 ac_status=$?
4566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4567 (exit $ac_status); }; }; then
4568 ac_compiler_gnu=yes
4569 else
4570 echo "$as_me: failed program was:" >&5
4571 sed 's/^/| /' conftest.$ac_ext >&5
4573 ac_compiler_gnu=no
4575 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4576 ac_cv_fc_compiler_gnu=$ac_compiler_gnu
4579 echo "$as_me:$LINENO: result: $ac_cv_fc_compiler_gnu" >&5
4580 echo "${ECHO_T}$ac_cv_fc_compiler_gnu" >&6
4581 ac_ext=$ac_save_ext
4582 ac_test_FFLAGS=${FCFLAGS+set}
4583 ac_save_FFLAGS=$FCFLAGS
4584 FCFLAGS=
4585 echo "$as_me:$LINENO: checking whether $FC accepts -g" >&5
4586 echo $ECHO_N "checking whether $FC accepts -g... $ECHO_C" >&6
4587 if test "${ac_cv_prog_fc_g+set}" = set; then
4588 echo $ECHO_N "(cached) $ECHO_C" >&6
4589 else
4590 FCFLAGS=-g
4591 cat >conftest.$ac_ext <<_ACEOF
4592 program main
4595 _ACEOF
4596 rm -f conftest.$ac_objext
4597 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4598 (eval $ac_compile) 2>conftest.er1
4599 ac_status=$?
4600 grep -v '^ *+' conftest.er1 >conftest.err
4601 rm -f conftest.er1
4602 cat conftest.err >&5
4603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4604 (exit $ac_status); } &&
4605 { ac_try='test -z "$ac_fc_werror_flag" || test ! -s conftest.err'
4606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4607 (eval $ac_try) 2>&5
4608 ac_status=$?
4609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4610 (exit $ac_status); }; } &&
4611 { ac_try='test -s conftest.$ac_objext'
4612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4613 (eval $ac_try) 2>&5
4614 ac_status=$?
4615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4616 (exit $ac_status); }; }; then
4617 ac_cv_prog_fc_g=yes
4618 else
4619 echo "$as_me: failed program was:" >&5
4620 sed 's/^/| /' conftest.$ac_ext >&5
4622 ac_cv_prog_fc_g=no
4624 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4627 echo "$as_me:$LINENO: result: $ac_cv_prog_fc_g" >&5
4628 echo "${ECHO_T}$ac_cv_prog_fc_g" >&6
4629 if test "$ac_test_FFLAGS" = set; then
4630 FCFLAGS=$ac_save_FFLAGS
4631 elif test $ac_cv_prog_fc_g = yes; then
4632 if test "x$ac_cv_fc_compiler_gnu" = xyes; then
4633 FCFLAGS="-g -O2"
4634 else
4635 FCFLAGS="-g"
4637 else
4638 if test "x$ac_cv_fc_compiler_gnu" = xyes; then
4639 FCFLAGS="-O2"
4640 else
4641 FCFLAGS=
4645 ac_ext=c
4646 ac_cpp='$CPP $CPPFLAGS'
4647 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4648 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4649 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4651 FCFLAGS="$FCFLAGS -Wall -fno-repack-arrays -fno-underscoring"
4653 # extra LD Flags which are required for targets
4654 case "${host}" in
4655 *-darwin*)
4656 # Darwin needs -single_module when linking libgfortran
4657 extra_ldflags_libgfortran=-Wl,-single_module
4659 esac
4662 # Check whether --enable-largefile or --disable-largefile was given.
4663 if test "${enable_largefile+set}" = set; then
4664 enableval="$enable_largefile"
4667 if test "$enable_largefile" != no; then
4669 echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
4670 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
4671 if test "${ac_cv_sys_largefile_CC+set}" = set; then
4672 echo $ECHO_N "(cached) $ECHO_C" >&6
4673 else
4674 ac_cv_sys_largefile_CC=no
4675 if test "$GCC" != yes; then
4676 ac_save_CC=$CC
4677 while :; do
4678 # IRIX 6.2 and later do not support large files by default,
4679 # so use the C compiler's -n32 option if that helps.
4680 cat >conftest.$ac_ext <<_ACEOF
4681 /* confdefs.h. */
4682 _ACEOF
4683 cat confdefs.h >>conftest.$ac_ext
4684 cat >>conftest.$ac_ext <<_ACEOF
4685 /* end confdefs.h. */
4686 #include <sys/types.h>
4687 /* Check that off_t can represent 2**63 - 1 correctly.
4688 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4689 since some C++ compilers masquerading as C compilers
4690 incorrectly reject 9223372036854775807. */
4691 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4692 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4693 && LARGE_OFF_T % 2147483647 == 1)
4694 ? 1 : -1];
4696 main ()
4700 return 0;
4702 _ACEOF
4703 rm -f conftest.$ac_objext
4704 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4705 (eval $ac_compile) 2>conftest.er1
4706 ac_status=$?
4707 grep -v '^ *+' conftest.er1 >conftest.err
4708 rm -f conftest.er1
4709 cat conftest.err >&5
4710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4711 (exit $ac_status); } &&
4712 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4714 (eval $ac_try) 2>&5
4715 ac_status=$?
4716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4717 (exit $ac_status); }; } &&
4718 { ac_try='test -s conftest.$ac_objext'
4719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4720 (eval $ac_try) 2>&5
4721 ac_status=$?
4722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4723 (exit $ac_status); }; }; then
4724 break
4725 else
4726 echo "$as_me: failed program was:" >&5
4727 sed 's/^/| /' conftest.$ac_ext >&5
4730 rm -f conftest.err conftest.$ac_objext
4731 CC="$CC -n32"
4732 rm -f conftest.$ac_objext
4733 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4734 (eval $ac_compile) 2>conftest.er1
4735 ac_status=$?
4736 grep -v '^ *+' conftest.er1 >conftest.err
4737 rm -f conftest.er1
4738 cat conftest.err >&5
4739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4740 (exit $ac_status); } &&
4741 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4743 (eval $ac_try) 2>&5
4744 ac_status=$?
4745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4746 (exit $ac_status); }; } &&
4747 { ac_try='test -s conftest.$ac_objext'
4748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4749 (eval $ac_try) 2>&5
4750 ac_status=$?
4751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4752 (exit $ac_status); }; }; then
4753 ac_cv_sys_largefile_CC=' -n32'; break
4754 else
4755 echo "$as_me: failed program was:" >&5
4756 sed 's/^/| /' conftest.$ac_ext >&5
4759 rm -f conftest.err conftest.$ac_objext
4760 break
4761 done
4762 CC=$ac_save_CC
4763 rm -f conftest.$ac_ext
4766 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
4767 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
4768 if test "$ac_cv_sys_largefile_CC" != no; then
4769 CC=$CC$ac_cv_sys_largefile_CC
4772 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4773 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
4774 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
4775 echo $ECHO_N "(cached) $ECHO_C" >&6
4776 else
4777 while :; do
4778 ac_cv_sys_file_offset_bits=no
4779 cat >conftest.$ac_ext <<_ACEOF
4780 /* confdefs.h. */
4781 _ACEOF
4782 cat confdefs.h >>conftest.$ac_ext
4783 cat >>conftest.$ac_ext <<_ACEOF
4784 /* end confdefs.h. */
4785 #include <sys/types.h>
4786 /* Check that off_t can represent 2**63 - 1 correctly.
4787 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4788 since some C++ compilers masquerading as C compilers
4789 incorrectly reject 9223372036854775807. */
4790 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4791 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4792 && LARGE_OFF_T % 2147483647 == 1)
4793 ? 1 : -1];
4795 main ()
4799 return 0;
4801 _ACEOF
4802 rm -f conftest.$ac_objext
4803 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4804 (eval $ac_compile) 2>conftest.er1
4805 ac_status=$?
4806 grep -v '^ *+' conftest.er1 >conftest.err
4807 rm -f conftest.er1
4808 cat conftest.err >&5
4809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4810 (exit $ac_status); } &&
4811 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4813 (eval $ac_try) 2>&5
4814 ac_status=$?
4815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4816 (exit $ac_status); }; } &&
4817 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
4823 break
4824 else
4825 echo "$as_me: failed program was:" >&5
4826 sed 's/^/| /' conftest.$ac_ext >&5
4829 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4830 cat >conftest.$ac_ext <<_ACEOF
4831 /* confdefs.h. */
4832 _ACEOF
4833 cat confdefs.h >>conftest.$ac_ext
4834 cat >>conftest.$ac_ext <<_ACEOF
4835 /* end confdefs.h. */
4836 #define _FILE_OFFSET_BITS 64
4837 #include <sys/types.h>
4838 /* Check that off_t can represent 2**63 - 1 correctly.
4839 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4840 since some C++ compilers masquerading as C compilers
4841 incorrectly reject 9223372036854775807. */
4842 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4843 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4844 && LARGE_OFF_T % 2147483647 == 1)
4845 ? 1 : -1];
4847 main ()
4851 return 0;
4853 _ACEOF
4854 rm -f conftest.$ac_objext
4855 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4856 (eval $ac_compile) 2>conftest.er1
4857 ac_status=$?
4858 grep -v '^ *+' conftest.er1 >conftest.err
4859 rm -f conftest.er1
4860 cat conftest.err >&5
4861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4862 (exit $ac_status); } &&
4863 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4865 (eval $ac_try) 2>&5
4866 ac_status=$?
4867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4868 (exit $ac_status); }; } &&
4869 { ac_try='test -s conftest.$ac_objext'
4870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4871 (eval $ac_try) 2>&5
4872 ac_status=$?
4873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4874 (exit $ac_status); }; }; then
4875 ac_cv_sys_file_offset_bits=64; break
4876 else
4877 echo "$as_me: failed program was:" >&5
4878 sed 's/^/| /' conftest.$ac_ext >&5
4881 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4882 break
4883 done
4885 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
4886 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
4887 if test "$ac_cv_sys_file_offset_bits" != no; then
4889 cat >>confdefs.h <<_ACEOF
4890 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4891 _ACEOF
4894 rm -f conftest*
4895 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
4896 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
4897 if test "${ac_cv_sys_large_files+set}" = set; then
4898 echo $ECHO_N "(cached) $ECHO_C" >&6
4899 else
4900 while :; do
4901 ac_cv_sys_large_files=no
4902 cat >conftest.$ac_ext <<_ACEOF
4903 /* confdefs.h. */
4904 _ACEOF
4905 cat confdefs.h >>conftest.$ac_ext
4906 cat >>conftest.$ac_ext <<_ACEOF
4907 /* end confdefs.h. */
4908 #include <sys/types.h>
4909 /* Check that off_t can represent 2**63 - 1 correctly.
4910 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4911 since some C++ compilers masquerading as C compilers
4912 incorrectly reject 9223372036854775807. */
4913 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4914 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4915 && LARGE_OFF_T % 2147483647 == 1)
4916 ? 1 : -1];
4918 main ()
4922 return 0;
4924 _ACEOF
4925 rm -f conftest.$ac_objext
4926 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4927 (eval $ac_compile) 2>conftest.er1
4928 ac_status=$?
4929 grep -v '^ *+' conftest.er1 >conftest.err
4930 rm -f conftest.er1
4931 cat conftest.err >&5
4932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4933 (exit $ac_status); } &&
4934 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4936 (eval $ac_try) 2>&5
4937 ac_status=$?
4938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4939 (exit $ac_status); }; } &&
4940 { ac_try='test -s conftest.$ac_objext'
4941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4942 (eval $ac_try) 2>&5
4943 ac_status=$?
4944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4945 (exit $ac_status); }; }; then
4946 break
4947 else
4948 echo "$as_me: failed program was:" >&5
4949 sed 's/^/| /' conftest.$ac_ext >&5
4952 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4953 cat >conftest.$ac_ext <<_ACEOF
4954 /* confdefs.h. */
4955 _ACEOF
4956 cat confdefs.h >>conftest.$ac_ext
4957 cat >>conftest.$ac_ext <<_ACEOF
4958 /* end confdefs.h. */
4959 #define _LARGE_FILES 1
4960 #include <sys/types.h>
4961 /* Check that off_t can represent 2**63 - 1 correctly.
4962 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4963 since some C++ compilers masquerading as C compilers
4964 incorrectly reject 9223372036854775807. */
4965 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4966 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4967 && LARGE_OFF_T % 2147483647 == 1)
4968 ? 1 : -1];
4970 main ()
4974 return 0;
4976 _ACEOF
4977 rm -f conftest.$ac_objext
4978 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4979 (eval $ac_compile) 2>conftest.er1
4980 ac_status=$?
4981 grep -v '^ *+' conftest.er1 >conftest.err
4982 rm -f conftest.er1
4983 cat conftest.err >&5
4984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4985 (exit $ac_status); } &&
4986 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4988 (eval $ac_try) 2>&5
4989 ac_status=$?
4990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4991 (exit $ac_status); }; } &&
4992 { ac_try='test -s conftest.$ac_objext'
4993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4994 (eval $ac_try) 2>&5
4995 ac_status=$?
4996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4997 (exit $ac_status); }; }; then
4998 ac_cv_sys_large_files=1; break
4999 else
5000 echo "$as_me: failed program was:" >&5
5001 sed 's/^/| /' conftest.$ac_ext >&5
5004 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5005 break
5006 done
5008 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
5009 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
5010 if test "$ac_cv_sys_large_files" != no; then
5012 cat >>confdefs.h <<_ACEOF
5013 #define _LARGE_FILES $ac_cv_sys_large_files
5014 _ACEOF
5017 rm -f conftest*
5020 if test x$gcc_no_link = xyes; then
5021 if test "x${ac_cv_func_mmap_fixed_mapped+set}" != xset; then
5022 ac_cv_func_mmap_fixed_mapped=no
5025 if test "x${ac_cv_func_mmap_fixed_mapped}" != xno; then
5026 ac_ext=c
5027 ac_cpp='$CPP $CPPFLAGS'
5028 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5029 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5030 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5031 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5032 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
5033 # On Suns, sometimes $CPP names a directory.
5034 if test -n "$CPP" && test -d "$CPP"; then
5035 CPP=
5037 if test -z "$CPP"; then
5038 if test "${ac_cv_prog_CPP+set}" = set; then
5039 echo $ECHO_N "(cached) $ECHO_C" >&6
5040 else
5041 # Double quotes because CPP needs to be expanded
5042 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5044 ac_preproc_ok=false
5045 for ac_c_preproc_warn_flag in '' yes
5047 # Use a header file that comes with gcc, so configuring glibc
5048 # with a fresh cross-compiler works.
5049 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5050 # <limits.h> exists even on freestanding compilers.
5051 # On the NeXT, cc -E runs the code through the compiler's parser,
5052 # not just through cpp. "Syntax error" is here to catch this case.
5053 cat >conftest.$ac_ext <<_ACEOF
5054 /* confdefs.h. */
5055 _ACEOF
5056 cat confdefs.h >>conftest.$ac_ext
5057 cat >>conftest.$ac_ext <<_ACEOF
5058 /* end confdefs.h. */
5059 #ifdef __STDC__
5060 # include <limits.h>
5061 #else
5062 # include <assert.h>
5063 #endif
5064 Syntax error
5065 _ACEOF
5066 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5067 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5068 ac_status=$?
5069 grep -v '^ *+' conftest.er1 >conftest.err
5070 rm -f conftest.er1
5071 cat conftest.err >&5
5072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5073 (exit $ac_status); } >/dev/null; then
5074 if test -s conftest.err; then
5075 ac_cpp_err=$ac_c_preproc_warn_flag
5076 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5077 else
5078 ac_cpp_err=
5080 else
5081 ac_cpp_err=yes
5083 if test -z "$ac_cpp_err"; then
5085 else
5086 echo "$as_me: failed program was:" >&5
5087 sed 's/^/| /' conftest.$ac_ext >&5
5089 # Broken: fails on valid input.
5090 continue
5092 rm -f conftest.err conftest.$ac_ext
5094 # OK, works on sane cases. Now check whether non-existent headers
5095 # can be detected and how.
5096 cat >conftest.$ac_ext <<_ACEOF
5097 /* confdefs.h. */
5098 _ACEOF
5099 cat confdefs.h >>conftest.$ac_ext
5100 cat >>conftest.$ac_ext <<_ACEOF
5101 /* end confdefs.h. */
5102 #include <ac_nonexistent.h>
5103 _ACEOF
5104 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5105 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5106 ac_status=$?
5107 grep -v '^ *+' conftest.er1 >conftest.err
5108 rm -f conftest.er1
5109 cat conftest.err >&5
5110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5111 (exit $ac_status); } >/dev/null; then
5112 if test -s conftest.err; then
5113 ac_cpp_err=$ac_c_preproc_warn_flag
5114 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5115 else
5116 ac_cpp_err=
5118 else
5119 ac_cpp_err=yes
5121 if test -z "$ac_cpp_err"; then
5122 # Broken: success on invalid input.
5123 continue
5124 else
5125 echo "$as_me: failed program was:" >&5
5126 sed 's/^/| /' conftest.$ac_ext >&5
5128 # Passes both tests.
5129 ac_preproc_ok=:
5130 break
5132 rm -f conftest.err conftest.$ac_ext
5134 done
5135 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5136 rm -f conftest.err conftest.$ac_ext
5137 if $ac_preproc_ok; then
5138 break
5141 done
5142 ac_cv_prog_CPP=$CPP
5145 CPP=$ac_cv_prog_CPP
5146 else
5147 ac_cv_prog_CPP=$CPP
5149 echo "$as_me:$LINENO: result: $CPP" >&5
5150 echo "${ECHO_T}$CPP" >&6
5151 ac_preproc_ok=false
5152 for ac_c_preproc_warn_flag in '' yes
5154 # Use a header file that comes with gcc, so configuring glibc
5155 # with a fresh cross-compiler works.
5156 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5157 # <limits.h> exists even on freestanding compilers.
5158 # On the NeXT, cc -E runs the code through the compiler's parser,
5159 # not just through cpp. "Syntax error" is here to catch this case.
5160 cat >conftest.$ac_ext <<_ACEOF
5161 /* confdefs.h. */
5162 _ACEOF
5163 cat confdefs.h >>conftest.$ac_ext
5164 cat >>conftest.$ac_ext <<_ACEOF
5165 /* end confdefs.h. */
5166 #ifdef __STDC__
5167 # include <limits.h>
5168 #else
5169 # include <assert.h>
5170 #endif
5171 Syntax error
5172 _ACEOF
5173 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5174 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5175 ac_status=$?
5176 grep -v '^ *+' conftest.er1 >conftest.err
5177 rm -f conftest.er1
5178 cat conftest.err >&5
5179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5180 (exit $ac_status); } >/dev/null; then
5181 if test -s conftest.err; then
5182 ac_cpp_err=$ac_c_preproc_warn_flag
5183 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5184 else
5185 ac_cpp_err=
5187 else
5188 ac_cpp_err=yes
5190 if test -z "$ac_cpp_err"; then
5192 else
5193 echo "$as_me: failed program was:" >&5
5194 sed 's/^/| /' conftest.$ac_ext >&5
5196 # Broken: fails on valid input.
5197 continue
5199 rm -f conftest.err conftest.$ac_ext
5201 # OK, works on sane cases. Now check whether non-existent headers
5202 # can be detected and how.
5203 cat >conftest.$ac_ext <<_ACEOF
5204 /* confdefs.h. */
5205 _ACEOF
5206 cat confdefs.h >>conftest.$ac_ext
5207 cat >>conftest.$ac_ext <<_ACEOF
5208 /* end confdefs.h. */
5209 #include <ac_nonexistent.h>
5210 _ACEOF
5211 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5212 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5213 ac_status=$?
5214 grep -v '^ *+' conftest.er1 >conftest.err
5215 rm -f conftest.er1
5216 cat conftest.err >&5
5217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5218 (exit $ac_status); } >/dev/null; then
5219 if test -s conftest.err; then
5220 ac_cpp_err=$ac_c_preproc_warn_flag
5221 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5222 else
5223 ac_cpp_err=
5225 else
5226 ac_cpp_err=yes
5228 if test -z "$ac_cpp_err"; then
5229 # Broken: success on invalid input.
5230 continue
5231 else
5232 echo "$as_me: failed program was:" >&5
5233 sed 's/^/| /' conftest.$ac_ext >&5
5235 # Passes both tests.
5236 ac_preproc_ok=:
5237 break
5239 rm -f conftest.err conftest.$ac_ext
5241 done
5242 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5243 rm -f conftest.err conftest.$ac_ext
5244 if $ac_preproc_ok; then
5246 else
5247 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5248 See \`config.log' for more details." >&5
5249 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5250 See \`config.log' for more details." >&2;}
5251 { (exit 1); exit 1; }; }
5254 ac_ext=c
5255 ac_cpp='$CPP $CPPFLAGS'
5256 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5257 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5258 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5261 echo "$as_me:$LINENO: checking for egrep" >&5
5262 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5263 if test "${ac_cv_prog_egrep+set}" = set; then
5264 echo $ECHO_N "(cached) $ECHO_C" >&6
5265 else
5266 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
5267 then ac_cv_prog_egrep='grep -E'
5268 else ac_cv_prog_egrep='egrep'
5271 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
5272 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
5273 EGREP=$ac_cv_prog_egrep
5276 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5277 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5278 if test "${ac_cv_header_stdc+set}" = set; then
5279 echo $ECHO_N "(cached) $ECHO_C" >&6
5280 else
5281 cat >conftest.$ac_ext <<_ACEOF
5282 /* confdefs.h. */
5283 _ACEOF
5284 cat confdefs.h >>conftest.$ac_ext
5285 cat >>conftest.$ac_ext <<_ACEOF
5286 /* end confdefs.h. */
5287 #include <stdlib.h>
5288 #include <stdarg.h>
5289 #include <string.h>
5290 #include <float.h>
5293 main ()
5297 return 0;
5299 _ACEOF
5300 rm -f conftest.$ac_objext
5301 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5302 (eval $ac_compile) 2>conftest.er1
5303 ac_status=$?
5304 grep -v '^ *+' conftest.er1 >conftest.err
5305 rm -f conftest.er1
5306 cat conftest.err >&5
5307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5308 (exit $ac_status); } &&
5309 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5311 (eval $ac_try) 2>&5
5312 ac_status=$?
5313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5314 (exit $ac_status); }; } &&
5315 { ac_try='test -s conftest.$ac_objext'
5316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5317 (eval $ac_try) 2>&5
5318 ac_status=$?
5319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5320 (exit $ac_status); }; }; then
5321 ac_cv_header_stdc=yes
5322 else
5323 echo "$as_me: failed program was:" >&5
5324 sed 's/^/| /' conftest.$ac_ext >&5
5326 ac_cv_header_stdc=no
5328 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5330 if test $ac_cv_header_stdc = yes; then
5331 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5332 cat >conftest.$ac_ext <<_ACEOF
5333 /* confdefs.h. */
5334 _ACEOF
5335 cat confdefs.h >>conftest.$ac_ext
5336 cat >>conftest.$ac_ext <<_ACEOF
5337 /* end confdefs.h. */
5338 #include <string.h>
5340 _ACEOF
5341 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5342 $EGREP "memchr" >/dev/null 2>&1; then
5344 else
5345 ac_cv_header_stdc=no
5347 rm -f conftest*
5351 if test $ac_cv_header_stdc = yes; then
5352 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5353 cat >conftest.$ac_ext <<_ACEOF
5354 /* confdefs.h. */
5355 _ACEOF
5356 cat confdefs.h >>conftest.$ac_ext
5357 cat >>conftest.$ac_ext <<_ACEOF
5358 /* end confdefs.h. */
5359 #include <stdlib.h>
5361 _ACEOF
5362 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5363 $EGREP "free" >/dev/null 2>&1; then
5365 else
5366 ac_cv_header_stdc=no
5368 rm -f conftest*
5372 if test $ac_cv_header_stdc = yes; then
5373 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5374 if test "$cross_compiling" = yes; then
5376 else
5377 cat >conftest.$ac_ext <<_ACEOF
5378 /* confdefs.h. */
5379 _ACEOF
5380 cat confdefs.h >>conftest.$ac_ext
5381 cat >>conftest.$ac_ext <<_ACEOF
5382 /* end confdefs.h. */
5383 #include <ctype.h>
5384 #if ((' ' & 0x0FF) == 0x020)
5385 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5386 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5387 #else
5388 # define ISLOWER(c) \
5389 (('a' <= (c) && (c) <= 'i') \
5390 || ('j' <= (c) && (c) <= 'r') \
5391 || ('s' <= (c) && (c) <= 'z'))
5392 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5393 #endif
5395 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5397 main ()
5399 int i;
5400 for (i = 0; i < 256; i++)
5401 if (XOR (islower (i), ISLOWER (i))
5402 || toupper (i) != TOUPPER (i))
5403 exit(2);
5404 exit (0);
5406 _ACEOF
5407 rm -f conftest$ac_exeext
5408 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5409 (eval $ac_link) 2>&5
5410 ac_status=$?
5411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5412 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5414 (eval $ac_try) 2>&5
5415 ac_status=$?
5416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5417 (exit $ac_status); }; }; then
5419 else
5420 echo "$as_me: program exited with status $ac_status" >&5
5421 echo "$as_me: failed program was:" >&5
5422 sed 's/^/| /' conftest.$ac_ext >&5
5424 ( exit $ac_status )
5425 ac_cv_header_stdc=no
5427 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5431 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5432 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5433 if test $ac_cv_header_stdc = yes; then
5435 cat >>confdefs.h <<\_ACEOF
5436 #define STDC_HEADERS 1
5437 _ACEOF
5441 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5451 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5452 inttypes.h stdint.h unistd.h
5454 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5455 echo "$as_me:$LINENO: checking for $ac_header" >&5
5456 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5457 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5458 echo $ECHO_N "(cached) $ECHO_C" >&6
5459 else
5460 cat >conftest.$ac_ext <<_ACEOF
5461 /* confdefs.h. */
5462 _ACEOF
5463 cat confdefs.h >>conftest.$ac_ext
5464 cat >>conftest.$ac_ext <<_ACEOF
5465 /* end confdefs.h. */
5466 $ac_includes_default
5468 #include <$ac_header>
5469 _ACEOF
5470 rm -f conftest.$ac_objext
5471 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5472 (eval $ac_compile) 2>conftest.er1
5473 ac_status=$?
5474 grep -v '^ *+' conftest.er1 >conftest.err
5475 rm -f conftest.er1
5476 cat conftest.err >&5
5477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5478 (exit $ac_status); } &&
5479 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5481 (eval $ac_try) 2>&5
5482 ac_status=$?
5483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5484 (exit $ac_status); }; } &&
5485 { ac_try='test -s conftest.$ac_objext'
5486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5487 (eval $ac_try) 2>&5
5488 ac_status=$?
5489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5490 (exit $ac_status); }; }; then
5491 eval "$as_ac_Header=yes"
5492 else
5493 echo "$as_me: failed program was:" >&5
5494 sed 's/^/| /' conftest.$ac_ext >&5
5496 eval "$as_ac_Header=no"
5498 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5500 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5501 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5502 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5503 cat >>confdefs.h <<_ACEOF
5504 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5505 _ACEOF
5509 done
5514 for ac_header in stdlib.h unistd.h
5516 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5517 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5518 echo "$as_me:$LINENO: checking for $ac_header" >&5
5519 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5520 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5521 echo $ECHO_N "(cached) $ECHO_C" >&6
5523 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5524 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5525 else
5526 # Is the header compilable?
5527 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5528 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5529 cat >conftest.$ac_ext <<_ACEOF
5530 /* confdefs.h. */
5531 _ACEOF
5532 cat confdefs.h >>conftest.$ac_ext
5533 cat >>conftest.$ac_ext <<_ACEOF
5534 /* end confdefs.h. */
5535 $ac_includes_default
5536 #include <$ac_header>
5537 _ACEOF
5538 rm -f conftest.$ac_objext
5539 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5540 (eval $ac_compile) 2>conftest.er1
5541 ac_status=$?
5542 grep -v '^ *+' conftest.er1 >conftest.err
5543 rm -f conftest.er1
5544 cat conftest.err >&5
5545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5546 (exit $ac_status); } &&
5547 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5549 (eval $ac_try) 2>&5
5550 ac_status=$?
5551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5552 (exit $ac_status); }; } &&
5553 { ac_try='test -s conftest.$ac_objext'
5554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5555 (eval $ac_try) 2>&5
5556 ac_status=$?
5557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5558 (exit $ac_status); }; }; then
5559 ac_header_compiler=yes
5560 else
5561 echo "$as_me: failed program was:" >&5
5562 sed 's/^/| /' conftest.$ac_ext >&5
5564 ac_header_compiler=no
5566 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5567 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5568 echo "${ECHO_T}$ac_header_compiler" >&6
5570 # Is the header present?
5571 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5572 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5573 cat >conftest.$ac_ext <<_ACEOF
5574 /* confdefs.h. */
5575 _ACEOF
5576 cat confdefs.h >>conftest.$ac_ext
5577 cat >>conftest.$ac_ext <<_ACEOF
5578 /* end confdefs.h. */
5579 #include <$ac_header>
5580 _ACEOF
5581 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5582 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5583 ac_status=$?
5584 grep -v '^ *+' conftest.er1 >conftest.err
5585 rm -f conftest.er1
5586 cat conftest.err >&5
5587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5588 (exit $ac_status); } >/dev/null; then
5589 if test -s conftest.err; then
5590 ac_cpp_err=$ac_c_preproc_warn_flag
5591 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5592 else
5593 ac_cpp_err=
5595 else
5596 ac_cpp_err=yes
5598 if test -z "$ac_cpp_err"; then
5599 ac_header_preproc=yes
5600 else
5601 echo "$as_me: failed program was:" >&5
5602 sed 's/^/| /' conftest.$ac_ext >&5
5604 ac_header_preproc=no
5606 rm -f conftest.err conftest.$ac_ext
5607 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5608 echo "${ECHO_T}$ac_header_preproc" >&6
5610 # So? What about this header?
5611 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5612 yes:no: )
5613 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5614 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5615 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5616 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5617 ac_header_preproc=yes
5619 no:yes:* )
5620 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5621 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5622 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5623 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5624 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5625 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5626 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5627 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5628 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5629 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5630 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5631 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5633 cat <<\_ASBOX
5634 ## ------------------------------------------------------ ##
5635 ## Report this to the GNU Fortran Runtime Library lists. ##
5636 ## ------------------------------------------------------ ##
5637 _ASBOX
5639 sed "s/^/$as_me: WARNING: /" >&2
5641 esac
5642 echo "$as_me:$LINENO: checking for $ac_header" >&5
5643 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5644 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5645 echo $ECHO_N "(cached) $ECHO_C" >&6
5646 else
5647 eval "$as_ac_Header=\$ac_header_preproc"
5649 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5650 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5653 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5654 cat >>confdefs.h <<_ACEOF
5655 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5656 _ACEOF
5660 done
5663 for ac_func in getpagesize
5665 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5666 echo "$as_me:$LINENO: checking for $ac_func" >&5
5667 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5668 if eval "test \"\${$as_ac_var+set}\" = set"; then
5669 echo $ECHO_N "(cached) $ECHO_C" >&6
5670 else
5671 if test x$gcc_no_link = xyes; then
5672 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
5673 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
5674 { (exit 1); exit 1; }; }
5676 cat >conftest.$ac_ext <<_ACEOF
5677 /* confdefs.h. */
5678 _ACEOF
5679 cat confdefs.h >>conftest.$ac_ext
5680 cat >>conftest.$ac_ext <<_ACEOF
5681 /* end confdefs.h. */
5682 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5683 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5684 #define $ac_func innocuous_$ac_func
5686 /* System header to define __stub macros and hopefully few prototypes,
5687 which can conflict with char $ac_func (); below.
5688 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5689 <limits.h> exists even on freestanding compilers. */
5691 #ifdef __STDC__
5692 # include <limits.h>
5693 #else
5694 # include <assert.h>
5695 #endif
5697 #undef $ac_func
5699 /* Override any gcc2 internal prototype to avoid an error. */
5700 #ifdef __cplusplus
5701 extern "C"
5703 #endif
5704 /* We use char because int might match the return type of a gcc2
5705 builtin and then its argument prototype would still apply. */
5706 char $ac_func ();
5707 /* The GNU C library defines this for functions which it implements
5708 to always fail with ENOSYS. Some functions are actually named
5709 something starting with __ and the normal name is an alias. */
5710 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5711 choke me
5712 #else
5713 char (*f) () = $ac_func;
5714 #endif
5715 #ifdef __cplusplus
5717 #endif
5720 main ()
5722 return f != $ac_func;
5724 return 0;
5726 _ACEOF
5727 rm -f conftest.$ac_objext conftest$ac_exeext
5728 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5729 (eval $ac_link) 2>conftest.er1
5730 ac_status=$?
5731 grep -v '^ *+' conftest.er1 >conftest.err
5732 rm -f conftest.er1
5733 cat conftest.err >&5
5734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5735 (exit $ac_status); } &&
5736 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5738 (eval $ac_try) 2>&5
5739 ac_status=$?
5740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5741 (exit $ac_status); }; } &&
5742 { ac_try='test -s conftest$ac_exeext'
5743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5744 (eval $ac_try) 2>&5
5745 ac_status=$?
5746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5747 (exit $ac_status); }; }; then
5748 eval "$as_ac_var=yes"
5749 else
5750 echo "$as_me: failed program was:" >&5
5751 sed 's/^/| /' conftest.$ac_ext >&5
5753 eval "$as_ac_var=no"
5755 rm -f conftest.err conftest.$ac_objext \
5756 conftest$ac_exeext conftest.$ac_ext
5758 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5759 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5760 if test `eval echo '${'$as_ac_var'}'` = yes; then
5761 cat >>confdefs.h <<_ACEOF
5762 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5763 _ACEOF
5766 done
5768 echo "$as_me:$LINENO: checking for working mmap" >&5
5769 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
5770 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
5771 echo $ECHO_N "(cached) $ECHO_C" >&6
5772 else
5773 if test "$cross_compiling" = yes; then
5774 ac_cv_func_mmap_fixed_mapped=no
5775 else
5776 cat >conftest.$ac_ext <<_ACEOF
5777 /* confdefs.h. */
5778 _ACEOF
5779 cat confdefs.h >>conftest.$ac_ext
5780 cat >>conftest.$ac_ext <<_ACEOF
5781 /* end confdefs.h. */
5782 $ac_includes_default
5783 /* malloc might have been renamed as rpl_malloc. */
5784 #undef malloc
5786 /* Thanks to Mike Haertel and Jim Avera for this test.
5787 Here is a matrix of mmap possibilities:
5788 mmap private not fixed
5789 mmap private fixed at somewhere currently unmapped
5790 mmap private fixed at somewhere already mapped
5791 mmap shared not fixed
5792 mmap shared fixed at somewhere currently unmapped
5793 mmap shared fixed at somewhere already mapped
5794 For private mappings, we should verify that changes cannot be read()
5795 back from the file, nor mmap's back from the file at a different
5796 address. (There have been systems where private was not correctly
5797 implemented like the infamous i386 svr4.0, and systems where the
5798 VM page cache was not coherent with the file system buffer cache
5799 like early versions of FreeBSD and possibly contemporary NetBSD.)
5800 For shared mappings, we should conversely verify that changes get
5801 propagated back to all the places they're supposed to be.
5803 Grep wants private fixed already mapped.
5804 The main things grep needs to know about mmap are:
5805 * does it exist and is it safe to write into the mmap'd area
5806 * how to use it (BSD variants) */
5808 #include <fcntl.h>
5809 #include <sys/mman.h>
5811 #if !STDC_HEADERS && !HAVE_STDLIB_H
5812 char *malloc ();
5813 #endif
5815 /* This mess was copied from the GNU getpagesize.h. */
5816 #if !HAVE_GETPAGESIZE
5817 /* Assume that all systems that can run configure have sys/param.h. */
5818 # if !HAVE_SYS_PARAM_H
5819 # define HAVE_SYS_PARAM_H 1
5820 # endif
5822 # ifdef _SC_PAGESIZE
5823 # define getpagesize() sysconf(_SC_PAGESIZE)
5824 # else /* no _SC_PAGESIZE */
5825 # if HAVE_SYS_PARAM_H
5826 # include <sys/param.h>
5827 # ifdef EXEC_PAGESIZE
5828 # define getpagesize() EXEC_PAGESIZE
5829 # else /* no EXEC_PAGESIZE */
5830 # ifdef NBPG
5831 # define getpagesize() NBPG * CLSIZE
5832 # ifndef CLSIZE
5833 # define CLSIZE 1
5834 # endif /* no CLSIZE */
5835 # else /* no NBPG */
5836 # ifdef NBPC
5837 # define getpagesize() NBPC
5838 # else /* no NBPC */
5839 # ifdef PAGESIZE
5840 # define getpagesize() PAGESIZE
5841 # endif /* PAGESIZE */
5842 # endif /* no NBPC */
5843 # endif /* no NBPG */
5844 # endif /* no EXEC_PAGESIZE */
5845 # else /* no HAVE_SYS_PARAM_H */
5846 # define getpagesize() 8192 /* punt totally */
5847 # endif /* no HAVE_SYS_PARAM_H */
5848 # endif /* no _SC_PAGESIZE */
5850 #endif /* no HAVE_GETPAGESIZE */
5853 main ()
5855 char *data, *data2, *data3;
5856 int i, pagesize;
5857 int fd;
5859 pagesize = getpagesize ();
5861 /* First, make a file with some known garbage in it. */
5862 data = (char *) malloc (pagesize);
5863 if (!data)
5864 exit (1);
5865 for (i = 0; i < pagesize; ++i)
5866 *(data + i) = rand ();
5867 umask (0);
5868 fd = creat ("conftest.mmap", 0600);
5869 if (fd < 0)
5870 exit (1);
5871 if (write (fd, data, pagesize) != pagesize)
5872 exit (1);
5873 close (fd);
5875 /* Next, try to mmap the file at a fixed address which already has
5876 something else allocated at it. If we can, also make sure that
5877 we see the same garbage. */
5878 fd = open ("conftest.mmap", O_RDWR);
5879 if (fd < 0)
5880 exit (1);
5881 data2 = (char *) malloc (2 * pagesize);
5882 if (!data2)
5883 exit (1);
5884 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
5885 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
5886 MAP_PRIVATE | MAP_FIXED, fd, 0L))
5887 exit (1);
5888 for (i = 0; i < pagesize; ++i)
5889 if (*(data + i) != *(data2 + i))
5890 exit (1);
5892 /* Finally, make sure that changes to the mapped area do not
5893 percolate back to the file as seen by read(). (This is a bug on
5894 some variants of i386 svr4.0.) */
5895 for (i = 0; i < pagesize; ++i)
5896 *(data2 + i) = *(data2 + i) + 1;
5897 data3 = (char *) malloc (pagesize);
5898 if (!data3)
5899 exit (1);
5900 if (read (fd, data3, pagesize) != pagesize)
5901 exit (1);
5902 for (i = 0; i < pagesize; ++i)
5903 if (*(data + i) != *(data3 + i))
5904 exit (1);
5905 close (fd);
5906 exit (0);
5908 _ACEOF
5909 rm -f conftest$ac_exeext
5910 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5911 (eval $ac_link) 2>&5
5912 ac_status=$?
5913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5914 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5916 (eval $ac_try) 2>&5
5917 ac_status=$?
5918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5919 (exit $ac_status); }; }; then
5920 ac_cv_func_mmap_fixed_mapped=yes
5921 else
5922 echo "$as_me: program exited with status $ac_status" >&5
5923 echo "$as_me: failed program was:" >&5
5924 sed 's/^/| /' conftest.$ac_ext >&5
5926 ( exit $ac_status )
5927 ac_cv_func_mmap_fixed_mapped=no
5929 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5932 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
5933 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
5934 if test $ac_cv_func_mmap_fixed_mapped = yes; then
5936 cat >>confdefs.h <<\_ACEOF
5937 #define HAVE_MMAP 1
5938 _ACEOF
5941 rm -f conftest.mmap
5944 echo "$as_me:$LINENO: checking for off_t" >&5
5945 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
5946 if test "${ac_cv_type_off_t+set}" = set; then
5947 echo $ECHO_N "(cached) $ECHO_C" >&6
5948 else
5949 cat >conftest.$ac_ext <<_ACEOF
5950 /* confdefs.h. */
5951 _ACEOF
5952 cat confdefs.h >>conftest.$ac_ext
5953 cat >>conftest.$ac_ext <<_ACEOF
5954 /* end confdefs.h. */
5955 $ac_includes_default
5957 main ()
5959 if ((off_t *) 0)
5960 return 0;
5961 if (sizeof (off_t))
5962 return 0;
5964 return 0;
5966 _ACEOF
5967 rm -f conftest.$ac_objext
5968 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5969 (eval $ac_compile) 2>conftest.er1
5970 ac_status=$?
5971 grep -v '^ *+' conftest.er1 >conftest.err
5972 rm -f conftest.er1
5973 cat conftest.err >&5
5974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5975 (exit $ac_status); } &&
5976 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5978 (eval $ac_try) 2>&5
5979 ac_status=$?
5980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5981 (exit $ac_status); }; } &&
5982 { ac_try='test -s conftest.$ac_objext'
5983 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5984 (eval $ac_try) 2>&5
5985 ac_status=$?
5986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5987 (exit $ac_status); }; }; then
5988 ac_cv_type_off_t=yes
5989 else
5990 echo "$as_me: failed program was:" >&5
5991 sed 's/^/| /' conftest.$ac_ext >&5
5993 ac_cv_type_off_t=no
5995 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5997 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
5998 echo "${ECHO_T}$ac_cv_type_off_t" >&6
5999 if test $ac_cv_type_off_t = yes; then
6001 else
6003 cat >>confdefs.h <<_ACEOF
6004 #define off_t long
6005 _ACEOF
6010 # check header files
6011 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6012 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6013 if test "${ac_cv_header_stdc+set}" = set; then
6014 echo $ECHO_N "(cached) $ECHO_C" >&6
6015 else
6016 cat >conftest.$ac_ext <<_ACEOF
6017 /* confdefs.h. */
6018 _ACEOF
6019 cat confdefs.h >>conftest.$ac_ext
6020 cat >>conftest.$ac_ext <<_ACEOF
6021 /* end confdefs.h. */
6022 #include <stdlib.h>
6023 #include <stdarg.h>
6024 #include <string.h>
6025 #include <float.h>
6028 main ()
6032 return 0;
6034 _ACEOF
6035 rm -f conftest.$ac_objext
6036 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6037 (eval $ac_compile) 2>conftest.er1
6038 ac_status=$?
6039 grep -v '^ *+' conftest.er1 >conftest.err
6040 rm -f conftest.er1
6041 cat conftest.err >&5
6042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6043 (exit $ac_status); } &&
6044 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6046 (eval $ac_try) 2>&5
6047 ac_status=$?
6048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6049 (exit $ac_status); }; } &&
6050 { ac_try='test -s conftest.$ac_objext'
6051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6052 (eval $ac_try) 2>&5
6053 ac_status=$?
6054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6055 (exit $ac_status); }; }; then
6056 ac_cv_header_stdc=yes
6057 else
6058 echo "$as_me: failed program was:" >&5
6059 sed 's/^/| /' conftest.$ac_ext >&5
6061 ac_cv_header_stdc=no
6063 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6065 if test $ac_cv_header_stdc = yes; then
6066 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6067 cat >conftest.$ac_ext <<_ACEOF
6068 /* confdefs.h. */
6069 _ACEOF
6070 cat confdefs.h >>conftest.$ac_ext
6071 cat >>conftest.$ac_ext <<_ACEOF
6072 /* end confdefs.h. */
6073 #include <string.h>
6075 _ACEOF
6076 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6077 $EGREP "memchr" >/dev/null 2>&1; then
6079 else
6080 ac_cv_header_stdc=no
6082 rm -f conftest*
6086 if test $ac_cv_header_stdc = yes; then
6087 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6088 cat >conftest.$ac_ext <<_ACEOF
6089 /* confdefs.h. */
6090 _ACEOF
6091 cat confdefs.h >>conftest.$ac_ext
6092 cat >>conftest.$ac_ext <<_ACEOF
6093 /* end confdefs.h. */
6094 #include <stdlib.h>
6096 _ACEOF
6097 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6098 $EGREP "free" >/dev/null 2>&1; then
6100 else
6101 ac_cv_header_stdc=no
6103 rm -f conftest*
6107 if test $ac_cv_header_stdc = yes; then
6108 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6109 if test "$cross_compiling" = yes; then
6111 else
6112 cat >conftest.$ac_ext <<_ACEOF
6113 /* confdefs.h. */
6114 _ACEOF
6115 cat confdefs.h >>conftest.$ac_ext
6116 cat >>conftest.$ac_ext <<_ACEOF
6117 /* end confdefs.h. */
6118 #include <ctype.h>
6119 #if ((' ' & 0x0FF) == 0x020)
6120 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6121 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6122 #else
6123 # define ISLOWER(c) \
6124 (('a' <= (c) && (c) <= 'i') \
6125 || ('j' <= (c) && (c) <= 'r') \
6126 || ('s' <= (c) && (c) <= 'z'))
6127 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6128 #endif
6130 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6132 main ()
6134 int i;
6135 for (i = 0; i < 256; i++)
6136 if (XOR (islower (i), ISLOWER (i))
6137 || toupper (i) != TOUPPER (i))
6138 exit(2);
6139 exit (0);
6141 _ACEOF
6142 rm -f conftest$ac_exeext
6143 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6144 (eval $ac_link) 2>&5
6145 ac_status=$?
6146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6147 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6149 (eval $ac_try) 2>&5
6150 ac_status=$?
6151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6152 (exit $ac_status); }; }; then
6154 else
6155 echo "$as_me: program exited with status $ac_status" >&5
6156 echo "$as_me: failed program was:" >&5
6157 sed 's/^/| /' conftest.$ac_ext >&5
6159 ( exit $ac_status )
6160 ac_cv_header_stdc=no
6162 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6166 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6167 echo "${ECHO_T}$ac_cv_header_stdc" >&6
6168 if test $ac_cv_header_stdc = yes; then
6170 cat >>confdefs.h <<\_ACEOF
6171 #define STDC_HEADERS 1
6172 _ACEOF
6183 for ac_header in stdlib.h stdio.h string.h stddef.h math.h unistd.h signal.h
6185 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6186 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6187 echo "$as_me:$LINENO: checking for $ac_header" >&5
6188 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6189 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6190 echo $ECHO_N "(cached) $ECHO_C" >&6
6192 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6193 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6194 else
6195 # Is the header compilable?
6196 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6197 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6198 cat >conftest.$ac_ext <<_ACEOF
6199 /* confdefs.h. */
6200 _ACEOF
6201 cat confdefs.h >>conftest.$ac_ext
6202 cat >>conftest.$ac_ext <<_ACEOF
6203 /* end confdefs.h. */
6204 $ac_includes_default
6205 #include <$ac_header>
6206 _ACEOF
6207 rm -f conftest.$ac_objext
6208 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6209 (eval $ac_compile) 2>conftest.er1
6210 ac_status=$?
6211 grep -v '^ *+' conftest.er1 >conftest.err
6212 rm -f conftest.er1
6213 cat conftest.err >&5
6214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6215 (exit $ac_status); } &&
6216 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6218 (eval $ac_try) 2>&5
6219 ac_status=$?
6220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6221 (exit $ac_status); }; } &&
6222 { ac_try='test -s conftest.$ac_objext'
6223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6224 (eval $ac_try) 2>&5
6225 ac_status=$?
6226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6227 (exit $ac_status); }; }; then
6228 ac_header_compiler=yes
6229 else
6230 echo "$as_me: failed program was:" >&5
6231 sed 's/^/| /' conftest.$ac_ext >&5
6233 ac_header_compiler=no
6235 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6236 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6237 echo "${ECHO_T}$ac_header_compiler" >&6
6239 # Is the header present?
6240 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6241 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6242 cat >conftest.$ac_ext <<_ACEOF
6243 /* confdefs.h. */
6244 _ACEOF
6245 cat confdefs.h >>conftest.$ac_ext
6246 cat >>conftest.$ac_ext <<_ACEOF
6247 /* end confdefs.h. */
6248 #include <$ac_header>
6249 _ACEOF
6250 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6251 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6252 ac_status=$?
6253 grep -v '^ *+' conftest.er1 >conftest.err
6254 rm -f conftest.er1
6255 cat conftest.err >&5
6256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6257 (exit $ac_status); } >/dev/null; then
6258 if test -s conftest.err; then
6259 ac_cpp_err=$ac_c_preproc_warn_flag
6260 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6261 else
6262 ac_cpp_err=
6264 else
6265 ac_cpp_err=yes
6267 if test -z "$ac_cpp_err"; then
6268 ac_header_preproc=yes
6269 else
6270 echo "$as_me: failed program was:" >&5
6271 sed 's/^/| /' conftest.$ac_ext >&5
6273 ac_header_preproc=no
6275 rm -f conftest.err conftest.$ac_ext
6276 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6277 echo "${ECHO_T}$ac_header_preproc" >&6
6279 # So? What about this header?
6280 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6281 yes:no: )
6282 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6283 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6284 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6285 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6286 ac_header_preproc=yes
6288 no:yes:* )
6289 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6290 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6291 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6292 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6293 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6294 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6295 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6296 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6297 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6298 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6299 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6300 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6302 cat <<\_ASBOX
6303 ## ------------------------------------------------------ ##
6304 ## Report this to the GNU Fortran Runtime Library lists. ##
6305 ## ------------------------------------------------------ ##
6306 _ASBOX
6308 sed "s/^/$as_me: WARNING: /" >&2
6310 esac
6311 echo "$as_me:$LINENO: checking for $ac_header" >&5
6312 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6313 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6314 echo $ECHO_N "(cached) $ECHO_C" >&6
6315 else
6316 eval "$as_ac_Header=\$ac_header_preproc"
6318 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6319 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6322 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6323 cat >>confdefs.h <<_ACEOF
6324 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6325 _ACEOF
6329 done
6336 for ac_header in time.h sys/params.h sys/time.h sys/times.h sys/resource.h
6338 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6339 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6340 echo "$as_me:$LINENO: checking for $ac_header" >&5
6341 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6342 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6343 echo $ECHO_N "(cached) $ECHO_C" >&6
6345 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6346 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6347 else
6348 # Is the header compilable?
6349 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6350 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6351 cat >conftest.$ac_ext <<_ACEOF
6352 /* confdefs.h. */
6353 _ACEOF
6354 cat confdefs.h >>conftest.$ac_ext
6355 cat >>conftest.$ac_ext <<_ACEOF
6356 /* end confdefs.h. */
6357 $ac_includes_default
6358 #include <$ac_header>
6359 _ACEOF
6360 rm -f conftest.$ac_objext
6361 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6362 (eval $ac_compile) 2>conftest.er1
6363 ac_status=$?
6364 grep -v '^ *+' conftest.er1 >conftest.err
6365 rm -f conftest.er1
6366 cat conftest.err >&5
6367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6368 (exit $ac_status); } &&
6369 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6371 (eval $ac_try) 2>&5
6372 ac_status=$?
6373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6374 (exit $ac_status); }; } &&
6375 { ac_try='test -s conftest.$ac_objext'
6376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6377 (eval $ac_try) 2>&5
6378 ac_status=$?
6379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6380 (exit $ac_status); }; }; then
6381 ac_header_compiler=yes
6382 else
6383 echo "$as_me: failed program was:" >&5
6384 sed 's/^/| /' conftest.$ac_ext >&5
6386 ac_header_compiler=no
6388 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6389 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6390 echo "${ECHO_T}$ac_header_compiler" >&6
6392 # Is the header present?
6393 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6394 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6395 cat >conftest.$ac_ext <<_ACEOF
6396 /* confdefs.h. */
6397 _ACEOF
6398 cat confdefs.h >>conftest.$ac_ext
6399 cat >>conftest.$ac_ext <<_ACEOF
6400 /* end confdefs.h. */
6401 #include <$ac_header>
6402 _ACEOF
6403 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6404 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6405 ac_status=$?
6406 grep -v '^ *+' conftest.er1 >conftest.err
6407 rm -f conftest.er1
6408 cat conftest.err >&5
6409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6410 (exit $ac_status); } >/dev/null; then
6411 if test -s conftest.err; then
6412 ac_cpp_err=$ac_c_preproc_warn_flag
6413 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6414 else
6415 ac_cpp_err=
6417 else
6418 ac_cpp_err=yes
6420 if test -z "$ac_cpp_err"; then
6421 ac_header_preproc=yes
6422 else
6423 echo "$as_me: failed program was:" >&5
6424 sed 's/^/| /' conftest.$ac_ext >&5
6426 ac_header_preproc=no
6428 rm -f conftest.err conftest.$ac_ext
6429 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6430 echo "${ECHO_T}$ac_header_preproc" >&6
6432 # So? What about this header?
6433 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6434 yes:no: )
6435 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6436 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6437 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6438 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6439 ac_header_preproc=yes
6441 no:yes:* )
6442 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6443 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6444 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6445 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6446 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6447 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6448 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6449 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6450 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6451 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6452 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6453 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6455 cat <<\_ASBOX
6456 ## ------------------------------------------------------ ##
6457 ## Report this to the GNU Fortran Runtime Library lists. ##
6458 ## ------------------------------------------------------ ##
6459 _ASBOX
6461 sed "s/^/$as_me: WARNING: /" >&2
6463 esac
6464 echo "$as_me:$LINENO: checking for $ac_header" >&5
6465 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6466 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6467 echo $ECHO_N "(cached) $ECHO_C" >&6
6468 else
6469 eval "$as_ac_Header=\$ac_header_preproc"
6471 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6472 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6475 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6476 cat >>confdefs.h <<_ACEOF
6477 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6478 _ACEOF
6482 done
6488 for ac_header in sys/mman.h sys/types.h sys/stat.h ieeefp.h
6490 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6491 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6492 echo "$as_me:$LINENO: checking for $ac_header" >&5
6493 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6494 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6495 echo $ECHO_N "(cached) $ECHO_C" >&6
6497 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6498 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6499 else
6500 # Is the header compilable?
6501 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6502 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6503 cat >conftest.$ac_ext <<_ACEOF
6504 /* confdefs.h. */
6505 _ACEOF
6506 cat confdefs.h >>conftest.$ac_ext
6507 cat >>conftest.$ac_ext <<_ACEOF
6508 /* end confdefs.h. */
6509 $ac_includes_default
6510 #include <$ac_header>
6511 _ACEOF
6512 rm -f conftest.$ac_objext
6513 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6514 (eval $ac_compile) 2>conftest.er1
6515 ac_status=$?
6516 grep -v '^ *+' conftest.er1 >conftest.err
6517 rm -f conftest.er1
6518 cat conftest.err >&5
6519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6520 (exit $ac_status); } &&
6521 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6523 (eval $ac_try) 2>&5
6524 ac_status=$?
6525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6526 (exit $ac_status); }; } &&
6527 { ac_try='test -s conftest.$ac_objext'
6528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6529 (eval $ac_try) 2>&5
6530 ac_status=$?
6531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6532 (exit $ac_status); }; }; then
6533 ac_header_compiler=yes
6534 else
6535 echo "$as_me: failed program was:" >&5
6536 sed 's/^/| /' conftest.$ac_ext >&5
6538 ac_header_compiler=no
6540 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6541 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6542 echo "${ECHO_T}$ac_header_compiler" >&6
6544 # Is the header present?
6545 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6546 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6547 cat >conftest.$ac_ext <<_ACEOF
6548 /* confdefs.h. */
6549 _ACEOF
6550 cat confdefs.h >>conftest.$ac_ext
6551 cat >>conftest.$ac_ext <<_ACEOF
6552 /* end confdefs.h. */
6553 #include <$ac_header>
6554 _ACEOF
6555 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6556 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6557 ac_status=$?
6558 grep -v '^ *+' conftest.er1 >conftest.err
6559 rm -f conftest.er1
6560 cat conftest.err >&5
6561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6562 (exit $ac_status); } >/dev/null; then
6563 if test -s conftest.err; then
6564 ac_cpp_err=$ac_c_preproc_warn_flag
6565 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6566 else
6567 ac_cpp_err=
6569 else
6570 ac_cpp_err=yes
6572 if test -z "$ac_cpp_err"; then
6573 ac_header_preproc=yes
6574 else
6575 echo "$as_me: failed program was:" >&5
6576 sed 's/^/| /' conftest.$ac_ext >&5
6578 ac_header_preproc=no
6580 rm -f conftest.err conftest.$ac_ext
6581 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6582 echo "${ECHO_T}$ac_header_preproc" >&6
6584 # So? What about this header?
6585 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6586 yes:no: )
6587 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6588 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6589 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6590 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6591 ac_header_preproc=yes
6593 no:yes:* )
6594 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6595 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6596 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6597 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6598 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6599 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6600 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6601 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6602 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6603 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6604 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6605 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6607 cat <<\_ASBOX
6608 ## ------------------------------------------------------ ##
6609 ## Report this to the GNU Fortran Runtime Library lists. ##
6610 ## ------------------------------------------------------ ##
6611 _ASBOX
6613 sed "s/^/$as_me: WARNING: /" >&2
6615 esac
6616 echo "$as_me:$LINENO: checking for $ac_header" >&5
6617 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6618 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6619 echo $ECHO_N "(cached) $ECHO_C" >&6
6620 else
6621 eval "$as_ac_Header=\$ac_header_preproc"
6623 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6624 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6627 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6628 cat >>confdefs.h <<_ACEOF
6629 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6630 _ACEOF
6634 done
6636 if test "${ac_cv_header_complex_h+set}" = set; then
6637 echo "$as_me:$LINENO: checking for complex.h" >&5
6638 echo $ECHO_N "checking for complex.h... $ECHO_C" >&6
6639 if test "${ac_cv_header_complex_h+set}" = set; then
6640 echo $ECHO_N "(cached) $ECHO_C" >&6
6642 echo "$as_me:$LINENO: result: $ac_cv_header_complex_h" >&5
6643 echo "${ECHO_T}$ac_cv_header_complex_h" >&6
6644 else
6645 # Is the header compilable?
6646 echo "$as_me:$LINENO: checking complex.h usability" >&5
6647 echo $ECHO_N "checking complex.h usability... $ECHO_C" >&6
6648 cat >conftest.$ac_ext <<_ACEOF
6649 /* confdefs.h. */
6650 _ACEOF
6651 cat confdefs.h >>conftest.$ac_ext
6652 cat >>conftest.$ac_ext <<_ACEOF
6653 /* end confdefs.h. */
6654 $ac_includes_default
6655 #include <complex.h>
6656 _ACEOF
6657 rm -f conftest.$ac_objext
6658 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6659 (eval $ac_compile) 2>conftest.er1
6660 ac_status=$?
6661 grep -v '^ *+' conftest.er1 >conftest.err
6662 rm -f conftest.er1
6663 cat conftest.err >&5
6664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6665 (exit $ac_status); } &&
6666 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6668 (eval $ac_try) 2>&5
6669 ac_status=$?
6670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6671 (exit $ac_status); }; } &&
6672 { ac_try='test -s conftest.$ac_objext'
6673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6674 (eval $ac_try) 2>&5
6675 ac_status=$?
6676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6677 (exit $ac_status); }; }; then
6678 ac_header_compiler=yes
6679 else
6680 echo "$as_me: failed program was:" >&5
6681 sed 's/^/| /' conftest.$ac_ext >&5
6683 ac_header_compiler=no
6685 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6686 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6687 echo "${ECHO_T}$ac_header_compiler" >&6
6689 # Is the header present?
6690 echo "$as_me:$LINENO: checking complex.h presence" >&5
6691 echo $ECHO_N "checking complex.h presence... $ECHO_C" >&6
6692 cat >conftest.$ac_ext <<_ACEOF
6693 /* confdefs.h. */
6694 _ACEOF
6695 cat confdefs.h >>conftest.$ac_ext
6696 cat >>conftest.$ac_ext <<_ACEOF
6697 /* end confdefs.h. */
6698 #include <complex.h>
6699 _ACEOF
6700 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6701 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6702 ac_status=$?
6703 grep -v '^ *+' conftest.er1 >conftest.err
6704 rm -f conftest.er1
6705 cat conftest.err >&5
6706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6707 (exit $ac_status); } >/dev/null; then
6708 if test -s conftest.err; then
6709 ac_cpp_err=$ac_c_preproc_warn_flag
6710 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6711 else
6712 ac_cpp_err=
6714 else
6715 ac_cpp_err=yes
6717 if test -z "$ac_cpp_err"; then
6718 ac_header_preproc=yes
6719 else
6720 echo "$as_me: failed program was:" >&5
6721 sed 's/^/| /' conftest.$ac_ext >&5
6723 ac_header_preproc=no
6725 rm -f conftest.err conftest.$ac_ext
6726 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6727 echo "${ECHO_T}$ac_header_preproc" >&6
6729 # So? What about this header?
6730 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6731 yes:no: )
6732 { echo "$as_me:$LINENO: WARNING: complex.h: accepted by the compiler, rejected by the preprocessor!" >&5
6733 echo "$as_me: WARNING: complex.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6734 { echo "$as_me:$LINENO: WARNING: complex.h: proceeding with the compiler's result" >&5
6735 echo "$as_me: WARNING: complex.h: proceeding with the compiler's result" >&2;}
6736 ac_header_preproc=yes
6738 no:yes:* )
6739 { echo "$as_me:$LINENO: WARNING: complex.h: present but cannot be compiled" >&5
6740 echo "$as_me: WARNING: complex.h: present but cannot be compiled" >&2;}
6741 { echo "$as_me:$LINENO: WARNING: complex.h: check for missing prerequisite headers?" >&5
6742 echo "$as_me: WARNING: complex.h: check for missing prerequisite headers?" >&2;}
6743 { echo "$as_me:$LINENO: WARNING: complex.h: see the Autoconf documentation" >&5
6744 echo "$as_me: WARNING: complex.h: see the Autoconf documentation" >&2;}
6745 { echo "$as_me:$LINENO: WARNING: complex.h: section \"Present But Cannot Be Compiled\"" >&5
6746 echo "$as_me: WARNING: complex.h: section \"Present But Cannot Be Compiled\"" >&2;}
6747 { echo "$as_me:$LINENO: WARNING: complex.h: proceeding with the preprocessor's result" >&5
6748 echo "$as_me: WARNING: complex.h: proceeding with the preprocessor's result" >&2;}
6749 { echo "$as_me:$LINENO: WARNING: complex.h: in the future, the compiler will take precedence" >&5
6750 echo "$as_me: WARNING: complex.h: in the future, the compiler will take precedence" >&2;}
6752 cat <<\_ASBOX
6753 ## ------------------------------------------------------ ##
6754 ## Report this to the GNU Fortran Runtime Library lists. ##
6755 ## ------------------------------------------------------ ##
6756 _ASBOX
6758 sed "s/^/$as_me: WARNING: /" >&2
6760 esac
6761 echo "$as_me:$LINENO: checking for complex.h" >&5
6762 echo $ECHO_N "checking for complex.h... $ECHO_C" >&6
6763 if test "${ac_cv_header_complex_h+set}" = set; then
6764 echo $ECHO_N "(cached) $ECHO_C" >&6
6765 else
6766 ac_cv_header_complex_h=$ac_header_preproc
6768 echo "$as_me:$LINENO: result: $ac_cv_header_complex_h" >&5
6769 echo "${ECHO_T}$ac_cv_header_complex_h" >&6
6772 if test $ac_cv_header_complex_h = yes; then
6774 cat >>confdefs.h <<\_ACEOF
6775 #define HAVE_COMPLEX_H 1
6776 _ACEOF
6782 echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
6783 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
6784 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
6785 echo $ECHO_N "(cached) $ECHO_C" >&6
6786 else
6787 cat >conftest.$ac_ext <<_ACEOF
6788 /* confdefs.h. */
6789 _ACEOF
6790 cat confdefs.h >>conftest.$ac_ext
6791 cat >>conftest.$ac_ext <<_ACEOF
6792 /* end confdefs.h. */
6793 $ac_includes_default
6795 main ()
6797 static struct stat ac_aggr;
6798 if (ac_aggr.st_blksize)
6799 return 0;
6801 return 0;
6803 _ACEOF
6804 rm -f conftest.$ac_objext
6805 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6806 (eval $ac_compile) 2>conftest.er1
6807 ac_status=$?
6808 grep -v '^ *+' conftest.er1 >conftest.err
6809 rm -f conftest.er1
6810 cat conftest.err >&5
6811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6812 (exit $ac_status); } &&
6813 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6815 (eval $ac_try) 2>&5
6816 ac_status=$?
6817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6818 (exit $ac_status); }; } &&
6819 { ac_try='test -s conftest.$ac_objext'
6820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6821 (eval $ac_try) 2>&5
6822 ac_status=$?
6823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6824 (exit $ac_status); }; }; then
6825 ac_cv_member_struct_stat_st_blksize=yes
6826 else
6827 echo "$as_me: failed program was:" >&5
6828 sed 's/^/| /' conftest.$ac_ext >&5
6830 cat >conftest.$ac_ext <<_ACEOF
6831 /* confdefs.h. */
6832 _ACEOF
6833 cat confdefs.h >>conftest.$ac_ext
6834 cat >>conftest.$ac_ext <<_ACEOF
6835 /* end confdefs.h. */
6836 $ac_includes_default
6838 main ()
6840 static struct stat ac_aggr;
6841 if (sizeof ac_aggr.st_blksize)
6842 return 0;
6844 return 0;
6846 _ACEOF
6847 rm -f conftest.$ac_objext
6848 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6849 (eval $ac_compile) 2>conftest.er1
6850 ac_status=$?
6851 grep -v '^ *+' conftest.er1 >conftest.err
6852 rm -f conftest.er1
6853 cat conftest.err >&5
6854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6855 (exit $ac_status); } &&
6856 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6858 (eval $ac_try) 2>&5
6859 ac_status=$?
6860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6861 (exit $ac_status); }; } &&
6862 { ac_try='test -s conftest.$ac_objext'
6863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6864 (eval $ac_try) 2>&5
6865 ac_status=$?
6866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6867 (exit $ac_status); }; }; then
6868 ac_cv_member_struct_stat_st_blksize=yes
6869 else
6870 echo "$as_me: failed program was:" >&5
6871 sed 's/^/| /' conftest.$ac_ext >&5
6873 ac_cv_member_struct_stat_st_blksize=no
6875 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6877 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6879 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
6880 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
6881 if test $ac_cv_member_struct_stat_st_blksize = yes; then
6883 cat >>confdefs.h <<_ACEOF
6884 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
6885 _ACEOF
6890 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
6891 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
6892 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
6893 echo $ECHO_N "(cached) $ECHO_C" >&6
6894 else
6895 cat >conftest.$ac_ext <<_ACEOF
6896 /* confdefs.h. */
6897 _ACEOF
6898 cat confdefs.h >>conftest.$ac_ext
6899 cat >>conftest.$ac_ext <<_ACEOF
6900 /* end confdefs.h. */
6901 $ac_includes_default
6903 main ()
6905 static struct stat ac_aggr;
6906 if (ac_aggr.st_blocks)
6907 return 0;
6909 return 0;
6911 _ACEOF
6912 rm -f conftest.$ac_objext
6913 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6914 (eval $ac_compile) 2>conftest.er1
6915 ac_status=$?
6916 grep -v '^ *+' conftest.er1 >conftest.err
6917 rm -f conftest.er1
6918 cat conftest.err >&5
6919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6920 (exit $ac_status); } &&
6921 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6923 (eval $ac_try) 2>&5
6924 ac_status=$?
6925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6926 (exit $ac_status); }; } &&
6927 { ac_try='test -s conftest.$ac_objext'
6928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6929 (eval $ac_try) 2>&5
6930 ac_status=$?
6931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6932 (exit $ac_status); }; }; then
6933 ac_cv_member_struct_stat_st_blocks=yes
6934 else
6935 echo "$as_me: failed program was:" >&5
6936 sed 's/^/| /' conftest.$ac_ext >&5
6938 cat >conftest.$ac_ext <<_ACEOF
6939 /* confdefs.h. */
6940 _ACEOF
6941 cat confdefs.h >>conftest.$ac_ext
6942 cat >>conftest.$ac_ext <<_ACEOF
6943 /* end confdefs.h. */
6944 $ac_includes_default
6946 main ()
6948 static struct stat ac_aggr;
6949 if (sizeof ac_aggr.st_blocks)
6950 return 0;
6952 return 0;
6954 _ACEOF
6955 rm -f conftest.$ac_objext
6956 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6957 (eval $ac_compile) 2>conftest.er1
6958 ac_status=$?
6959 grep -v '^ *+' conftest.er1 >conftest.err
6960 rm -f conftest.er1
6961 cat conftest.err >&5
6962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6963 (exit $ac_status); } &&
6964 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6966 (eval $ac_try) 2>&5
6967 ac_status=$?
6968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6969 (exit $ac_status); }; } &&
6970 { ac_try='test -s conftest.$ac_objext'
6971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6972 (eval $ac_try) 2>&5
6973 ac_status=$?
6974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6975 (exit $ac_status); }; }; then
6976 ac_cv_member_struct_stat_st_blocks=yes
6977 else
6978 echo "$as_me: failed program was:" >&5
6979 sed 's/^/| /' conftest.$ac_ext >&5
6981 ac_cv_member_struct_stat_st_blocks=no
6983 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6985 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6987 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
6988 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
6989 if test $ac_cv_member_struct_stat_st_blocks = yes; then
6991 cat >>confdefs.h <<_ACEOF
6992 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
6993 _ACEOF
6998 echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
6999 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6
7000 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
7001 echo $ECHO_N "(cached) $ECHO_C" >&6
7002 else
7003 cat >conftest.$ac_ext <<_ACEOF
7004 /* confdefs.h. */
7005 _ACEOF
7006 cat confdefs.h >>conftest.$ac_ext
7007 cat >>conftest.$ac_ext <<_ACEOF
7008 /* end confdefs.h. */
7009 $ac_includes_default
7011 main ()
7013 static struct stat ac_aggr;
7014 if (ac_aggr.st_rdev)
7015 return 0;
7017 return 0;
7019 _ACEOF
7020 rm -f conftest.$ac_objext
7021 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7022 (eval $ac_compile) 2>conftest.er1
7023 ac_status=$?
7024 grep -v '^ *+' conftest.er1 >conftest.err
7025 rm -f conftest.er1
7026 cat conftest.err >&5
7027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7028 (exit $ac_status); } &&
7029 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7031 (eval $ac_try) 2>&5
7032 ac_status=$?
7033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7034 (exit $ac_status); }; } &&
7035 { ac_try='test -s conftest.$ac_objext'
7036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7037 (eval $ac_try) 2>&5
7038 ac_status=$?
7039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7040 (exit $ac_status); }; }; then
7041 ac_cv_member_struct_stat_st_rdev=yes
7042 else
7043 echo "$as_me: failed program was:" >&5
7044 sed 's/^/| /' conftest.$ac_ext >&5
7046 cat >conftest.$ac_ext <<_ACEOF
7047 /* confdefs.h. */
7048 _ACEOF
7049 cat confdefs.h >>conftest.$ac_ext
7050 cat >>conftest.$ac_ext <<_ACEOF
7051 /* end confdefs.h. */
7052 $ac_includes_default
7054 main ()
7056 static struct stat ac_aggr;
7057 if (sizeof ac_aggr.st_rdev)
7058 return 0;
7060 return 0;
7062 _ACEOF
7063 rm -f conftest.$ac_objext
7064 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7065 (eval $ac_compile) 2>conftest.er1
7066 ac_status=$?
7067 grep -v '^ *+' conftest.er1 >conftest.err
7068 rm -f conftest.er1
7069 cat conftest.err >&5
7070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7071 (exit $ac_status); } &&
7072 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7074 (eval $ac_try) 2>&5
7075 ac_status=$?
7076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7077 (exit $ac_status); }; } &&
7078 { ac_try='test -s conftest.$ac_objext'
7079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7080 (eval $ac_try) 2>&5
7081 ac_status=$?
7082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7083 (exit $ac_status); }; }; then
7084 ac_cv_member_struct_stat_st_rdev=yes
7085 else
7086 echo "$as_me: failed program was:" >&5
7087 sed 's/^/| /' conftest.$ac_ext >&5
7089 ac_cv_member_struct_stat_st_rdev=no
7091 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7093 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7095 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
7096 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6
7097 if test $ac_cv_member_struct_stat_st_rdev = yes; then
7099 cat >>confdefs.h <<_ACEOF
7100 #define HAVE_STRUCT_STAT_ST_RDEV 1
7101 _ACEOF
7107 # Check for complex math functions
7108 echo "$as_me:$LINENO: checking for csin in -lm" >&5
7109 echo $ECHO_N "checking for csin in -lm... $ECHO_C" >&6
7110 if test "${ac_cv_lib_m_csin+set}" = set; then
7111 echo $ECHO_N "(cached) $ECHO_C" >&6
7112 else
7113 ac_check_lib_save_LIBS=$LIBS
7114 LIBS="-lm $LIBS"
7115 if test x$gcc_no_link = xyes; then
7116 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7117 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7118 { (exit 1); exit 1; }; }
7120 cat >conftest.$ac_ext <<_ACEOF
7121 /* confdefs.h. */
7122 _ACEOF
7123 cat confdefs.h >>conftest.$ac_ext
7124 cat >>conftest.$ac_ext <<_ACEOF
7125 /* end confdefs.h. */
7127 /* Override any gcc2 internal prototype to avoid an error. */
7128 #ifdef __cplusplus
7129 extern "C"
7130 #endif
7131 /* We use char because int might match the return type of a gcc2
7132 builtin and then its argument prototype would still apply. */
7133 char csin ();
7135 main ()
7137 csin ();
7139 return 0;
7141 _ACEOF
7142 rm -f conftest.$ac_objext conftest$ac_exeext
7143 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7144 (eval $ac_link) 2>conftest.er1
7145 ac_status=$?
7146 grep -v '^ *+' conftest.er1 >conftest.err
7147 rm -f conftest.er1
7148 cat conftest.err >&5
7149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7150 (exit $ac_status); } &&
7151 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7153 (eval $ac_try) 2>&5
7154 ac_status=$?
7155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7156 (exit $ac_status); }; } &&
7157 { ac_try='test -s conftest$ac_exeext'
7158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7159 (eval $ac_try) 2>&5
7160 ac_status=$?
7161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7162 (exit $ac_status); }; }; then
7163 ac_cv_lib_m_csin=yes
7164 else
7165 echo "$as_me: failed program was:" >&5
7166 sed 's/^/| /' conftest.$ac_ext >&5
7168 ac_cv_lib_m_csin=no
7170 rm -f conftest.err conftest.$ac_objext \
7171 conftest$ac_exeext conftest.$ac_ext
7172 LIBS=$ac_check_lib_save_LIBS
7174 echo "$as_me:$LINENO: result: $ac_cv_lib_m_csin" >&5
7175 echo "${ECHO_T}$ac_cv_lib_m_csin" >&6
7176 if test $ac_cv_lib_m_csin = yes; then
7177 need_math="no"
7178 else
7179 need_math="yes"
7183 # Check for library functions.
7192 for ac_func in getrusage times mkstemp strtof strtold snprintf ftruncate chsize
7194 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7195 echo "$as_me:$LINENO: checking for $ac_func" >&5
7196 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7197 if eval "test \"\${$as_ac_var+set}\" = set"; then
7198 echo $ECHO_N "(cached) $ECHO_C" >&6
7199 else
7200 if test x$gcc_no_link = xyes; then
7201 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7202 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7203 { (exit 1); exit 1; }; }
7205 cat >conftest.$ac_ext <<_ACEOF
7206 /* confdefs.h. */
7207 _ACEOF
7208 cat confdefs.h >>conftest.$ac_ext
7209 cat >>conftest.$ac_ext <<_ACEOF
7210 /* end confdefs.h. */
7211 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7212 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7213 #define $ac_func innocuous_$ac_func
7215 /* System header to define __stub macros and hopefully few prototypes,
7216 which can conflict with char $ac_func (); below.
7217 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7218 <limits.h> exists even on freestanding compilers. */
7220 #ifdef __STDC__
7221 # include <limits.h>
7222 #else
7223 # include <assert.h>
7224 #endif
7226 #undef $ac_func
7228 /* Override any gcc2 internal prototype to avoid an error. */
7229 #ifdef __cplusplus
7230 extern "C"
7232 #endif
7233 /* We use char because int might match the return type of a gcc2
7234 builtin and then its argument prototype would still apply. */
7235 char $ac_func ();
7236 /* The GNU C library defines this for functions which it implements
7237 to always fail with ENOSYS. Some functions are actually named
7238 something starting with __ and the normal name is an alias. */
7239 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7240 choke me
7241 #else
7242 char (*f) () = $ac_func;
7243 #endif
7244 #ifdef __cplusplus
7246 #endif
7249 main ()
7251 return f != $ac_func;
7253 return 0;
7255 _ACEOF
7256 rm -f conftest.$ac_objext conftest$ac_exeext
7257 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7258 (eval $ac_link) 2>conftest.er1
7259 ac_status=$?
7260 grep -v '^ *+' conftest.er1 >conftest.err
7261 rm -f conftest.er1
7262 cat conftest.err >&5
7263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7264 (exit $ac_status); } &&
7265 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7267 (eval $ac_try) 2>&5
7268 ac_status=$?
7269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7270 (exit $ac_status); }; } &&
7271 { ac_try='test -s conftest$ac_exeext'
7272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7273 (eval $ac_try) 2>&5
7274 ac_status=$?
7275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7276 (exit $ac_status); }; }; then
7277 eval "$as_ac_var=yes"
7278 else
7279 echo "$as_me: failed program was:" >&5
7280 sed 's/^/| /' conftest.$ac_ext >&5
7282 eval "$as_ac_var=no"
7284 rm -f conftest.err conftest.$ac_objext \
7285 conftest$ac_exeext conftest.$ac_ext
7287 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7288 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7289 if test `eval echo '${'$as_ac_var'}'` = yes; then
7290 cat >>confdefs.h <<_ACEOF
7291 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7292 _ACEOF
7295 done
7305 for ac_func in chdir strerror getlogin gethostname kill link symlink perror
7307 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7308 echo "$as_me:$LINENO: checking for $ac_func" >&5
7309 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7310 if eval "test \"\${$as_ac_var+set}\" = set"; then
7311 echo $ECHO_N "(cached) $ECHO_C" >&6
7312 else
7313 if test x$gcc_no_link = xyes; then
7314 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7315 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7316 { (exit 1); exit 1; }; }
7318 cat >conftest.$ac_ext <<_ACEOF
7319 /* confdefs.h. */
7320 _ACEOF
7321 cat confdefs.h >>conftest.$ac_ext
7322 cat >>conftest.$ac_ext <<_ACEOF
7323 /* end confdefs.h. */
7324 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7325 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7326 #define $ac_func innocuous_$ac_func
7328 /* System header to define __stub macros and hopefully few prototypes,
7329 which can conflict with char $ac_func (); below.
7330 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7331 <limits.h> exists even on freestanding compilers. */
7333 #ifdef __STDC__
7334 # include <limits.h>
7335 #else
7336 # include <assert.h>
7337 #endif
7339 #undef $ac_func
7341 /* Override any gcc2 internal prototype to avoid an error. */
7342 #ifdef __cplusplus
7343 extern "C"
7345 #endif
7346 /* We use char because int might match the return type of a gcc2
7347 builtin and then its argument prototype would still apply. */
7348 char $ac_func ();
7349 /* The GNU C library defines this for functions which it implements
7350 to always fail with ENOSYS. Some functions are actually named
7351 something starting with __ and the normal name is an alias. */
7352 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7353 choke me
7354 #else
7355 char (*f) () = $ac_func;
7356 #endif
7357 #ifdef __cplusplus
7359 #endif
7362 main ()
7364 return f != $ac_func;
7366 return 0;
7368 _ACEOF
7369 rm -f conftest.$ac_objext conftest$ac_exeext
7370 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7371 (eval $ac_link) 2>conftest.er1
7372 ac_status=$?
7373 grep -v '^ *+' conftest.er1 >conftest.err
7374 rm -f conftest.er1
7375 cat conftest.err >&5
7376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7377 (exit $ac_status); } &&
7378 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7380 (eval $ac_try) 2>&5
7381 ac_status=$?
7382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7383 (exit $ac_status); }; } &&
7384 { ac_try='test -s conftest$ac_exeext'
7385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7386 (eval $ac_try) 2>&5
7387 ac_status=$?
7388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7389 (exit $ac_status); }; }; then
7390 eval "$as_ac_var=yes"
7391 else
7392 echo "$as_me: failed program was:" >&5
7393 sed 's/^/| /' conftest.$ac_ext >&5
7395 eval "$as_ac_var=no"
7397 rm -f conftest.err conftest.$ac_objext \
7398 conftest$ac_exeext conftest.$ac_ext
7400 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7401 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7402 if test `eval echo '${'$as_ac_var'}'` = yes; then
7403 cat >>confdefs.h <<_ACEOF
7404 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7405 _ACEOF
7408 done
7413 for ac_func in sleep time ttyname
7415 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7416 echo "$as_me:$LINENO: checking for $ac_func" >&5
7417 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7418 if eval "test \"\${$as_ac_var+set}\" = set"; then
7419 echo $ECHO_N "(cached) $ECHO_C" >&6
7420 else
7421 if test x$gcc_no_link = xyes; then
7422 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7423 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7424 { (exit 1); exit 1; }; }
7426 cat >conftest.$ac_ext <<_ACEOF
7427 /* confdefs.h. */
7428 _ACEOF
7429 cat confdefs.h >>conftest.$ac_ext
7430 cat >>conftest.$ac_ext <<_ACEOF
7431 /* end confdefs.h. */
7432 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7433 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7434 #define $ac_func innocuous_$ac_func
7436 /* System header to define __stub macros and hopefully few prototypes,
7437 which can conflict with char $ac_func (); below.
7438 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7439 <limits.h> exists even on freestanding compilers. */
7441 #ifdef __STDC__
7442 # include <limits.h>
7443 #else
7444 # include <assert.h>
7445 #endif
7447 #undef $ac_func
7449 /* Override any gcc2 internal prototype to avoid an error. */
7450 #ifdef __cplusplus
7451 extern "C"
7453 #endif
7454 /* We use char because int might match the return type of a gcc2
7455 builtin and then its argument prototype would still apply. */
7456 char $ac_func ();
7457 /* The GNU C library defines this for functions which it implements
7458 to always fail with ENOSYS. Some functions are actually named
7459 something starting with __ and the normal name is an alias. */
7460 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7461 choke me
7462 #else
7463 char (*f) () = $ac_func;
7464 #endif
7465 #ifdef __cplusplus
7467 #endif
7470 main ()
7472 return f != $ac_func;
7474 return 0;
7476 _ACEOF
7477 rm -f conftest.$ac_objext conftest$ac_exeext
7478 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7479 (eval $ac_link) 2>conftest.er1
7480 ac_status=$?
7481 grep -v '^ *+' conftest.er1 >conftest.err
7482 rm -f conftest.er1
7483 cat conftest.err >&5
7484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7485 (exit $ac_status); } &&
7486 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7488 (eval $ac_try) 2>&5
7489 ac_status=$?
7490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7491 (exit $ac_status); }; } &&
7492 { ac_try='test -s conftest$ac_exeext'
7493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7494 (eval $ac_try) 2>&5
7495 ac_status=$?
7496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7497 (exit $ac_status); }; }; then
7498 eval "$as_ac_var=yes"
7499 else
7500 echo "$as_me: failed program was:" >&5
7501 sed 's/^/| /' conftest.$ac_ext >&5
7503 eval "$as_ac_var=no"
7505 rm -f conftest.err conftest.$ac_objext \
7506 conftest$ac_exeext conftest.$ac_ext
7508 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7509 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7510 if test `eval echo '${'$as_ac_var'}'` = yes; then
7511 cat >>confdefs.h <<_ACEOF
7512 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7513 _ACEOF
7516 done
7519 # Check libc for getgid, getpid, getuid
7520 echo "$as_me:$LINENO: checking for getgid in -lc" >&5
7521 echo $ECHO_N "checking for getgid in -lc... $ECHO_C" >&6
7522 if test "${ac_cv_lib_c_getgid+set}" = set; then
7523 echo $ECHO_N "(cached) $ECHO_C" >&6
7524 else
7525 ac_check_lib_save_LIBS=$LIBS
7526 LIBS="-lc $LIBS"
7527 if test x$gcc_no_link = xyes; then
7528 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7529 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7530 { (exit 1); exit 1; }; }
7532 cat >conftest.$ac_ext <<_ACEOF
7533 /* confdefs.h. */
7534 _ACEOF
7535 cat confdefs.h >>conftest.$ac_ext
7536 cat >>conftest.$ac_ext <<_ACEOF
7537 /* end confdefs.h. */
7539 /* Override any gcc2 internal prototype to avoid an error. */
7540 #ifdef __cplusplus
7541 extern "C"
7542 #endif
7543 /* We use char because int might match the return type of a gcc2
7544 builtin and then its argument prototype would still apply. */
7545 char getgid ();
7547 main ()
7549 getgid ();
7551 return 0;
7553 _ACEOF
7554 rm -f conftest.$ac_objext conftest$ac_exeext
7555 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7556 (eval $ac_link) 2>conftest.er1
7557 ac_status=$?
7558 grep -v '^ *+' conftest.er1 >conftest.err
7559 rm -f conftest.er1
7560 cat conftest.err >&5
7561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7562 (exit $ac_status); } &&
7563 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7565 (eval $ac_try) 2>&5
7566 ac_status=$?
7567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7568 (exit $ac_status); }; } &&
7569 { ac_try='test -s conftest$ac_exeext'
7570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7571 (eval $ac_try) 2>&5
7572 ac_status=$?
7573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7574 (exit $ac_status); }; }; then
7575 ac_cv_lib_c_getgid=yes
7576 else
7577 echo "$as_me: failed program was:" >&5
7578 sed 's/^/| /' conftest.$ac_ext >&5
7580 ac_cv_lib_c_getgid=no
7582 rm -f conftest.err conftest.$ac_objext \
7583 conftest$ac_exeext conftest.$ac_ext
7584 LIBS=$ac_check_lib_save_LIBS
7586 echo "$as_me:$LINENO: result: $ac_cv_lib_c_getgid" >&5
7587 echo "${ECHO_T}$ac_cv_lib_c_getgid" >&6
7588 if test $ac_cv_lib_c_getgid = yes; then
7590 cat >>confdefs.h <<\_ACEOF
7591 #define HAVE_GETGID 1
7592 _ACEOF
7596 echo "$as_me:$LINENO: checking for getpid in -lc" >&5
7597 echo $ECHO_N "checking for getpid in -lc... $ECHO_C" >&6
7598 if test "${ac_cv_lib_c_getpid+set}" = set; then
7599 echo $ECHO_N "(cached) $ECHO_C" >&6
7600 else
7601 ac_check_lib_save_LIBS=$LIBS
7602 LIBS="-lc $LIBS"
7603 if test x$gcc_no_link = xyes; then
7604 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7605 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7606 { (exit 1); exit 1; }; }
7608 cat >conftest.$ac_ext <<_ACEOF
7609 /* confdefs.h. */
7610 _ACEOF
7611 cat confdefs.h >>conftest.$ac_ext
7612 cat >>conftest.$ac_ext <<_ACEOF
7613 /* end confdefs.h. */
7615 /* Override any gcc2 internal prototype to avoid an error. */
7616 #ifdef __cplusplus
7617 extern "C"
7618 #endif
7619 /* We use char because int might match the return type of a gcc2
7620 builtin and then its argument prototype would still apply. */
7621 char getpid ();
7623 main ()
7625 getpid ();
7627 return 0;
7629 _ACEOF
7630 rm -f conftest.$ac_objext conftest$ac_exeext
7631 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7632 (eval $ac_link) 2>conftest.er1
7633 ac_status=$?
7634 grep -v '^ *+' conftest.er1 >conftest.err
7635 rm -f conftest.er1
7636 cat conftest.err >&5
7637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7638 (exit $ac_status); } &&
7639 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7641 (eval $ac_try) 2>&5
7642 ac_status=$?
7643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7644 (exit $ac_status); }; } &&
7645 { ac_try='test -s conftest$ac_exeext'
7646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7647 (eval $ac_try) 2>&5
7648 ac_status=$?
7649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7650 (exit $ac_status); }; }; then
7651 ac_cv_lib_c_getpid=yes
7652 else
7653 echo "$as_me: failed program was:" >&5
7654 sed 's/^/| /' conftest.$ac_ext >&5
7656 ac_cv_lib_c_getpid=no
7658 rm -f conftest.err conftest.$ac_objext \
7659 conftest$ac_exeext conftest.$ac_ext
7660 LIBS=$ac_check_lib_save_LIBS
7662 echo "$as_me:$LINENO: result: $ac_cv_lib_c_getpid" >&5
7663 echo "${ECHO_T}$ac_cv_lib_c_getpid" >&6
7664 if test $ac_cv_lib_c_getpid = yes; then
7666 cat >>confdefs.h <<\_ACEOF
7667 #define HAVE_GETPID 1
7668 _ACEOF
7672 echo "$as_me:$LINENO: checking for getuid in -lc" >&5
7673 echo $ECHO_N "checking for getuid in -lc... $ECHO_C" >&6
7674 if test "${ac_cv_lib_c_getuid+set}" = set; then
7675 echo $ECHO_N "(cached) $ECHO_C" >&6
7676 else
7677 ac_check_lib_save_LIBS=$LIBS
7678 LIBS="-lc $LIBS"
7679 if test x$gcc_no_link = xyes; then
7680 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7681 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7682 { (exit 1); exit 1; }; }
7684 cat >conftest.$ac_ext <<_ACEOF
7685 /* confdefs.h. */
7686 _ACEOF
7687 cat confdefs.h >>conftest.$ac_ext
7688 cat >>conftest.$ac_ext <<_ACEOF
7689 /* end confdefs.h. */
7691 /* Override any gcc2 internal prototype to avoid an error. */
7692 #ifdef __cplusplus
7693 extern "C"
7694 #endif
7695 /* We use char because int might match the return type of a gcc2
7696 builtin and then its argument prototype would still apply. */
7697 char getuid ();
7699 main ()
7701 getuid ();
7703 return 0;
7705 _ACEOF
7706 rm -f conftest.$ac_objext conftest$ac_exeext
7707 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7708 (eval $ac_link) 2>conftest.er1
7709 ac_status=$?
7710 grep -v '^ *+' conftest.er1 >conftest.err
7711 rm -f conftest.er1
7712 cat conftest.err >&5
7713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7714 (exit $ac_status); } &&
7715 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7717 (eval $ac_try) 2>&5
7718 ac_status=$?
7719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7720 (exit $ac_status); }; } &&
7721 { ac_try='test -s conftest$ac_exeext'
7722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7723 (eval $ac_try) 2>&5
7724 ac_status=$?
7725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7726 (exit $ac_status); }; }; then
7727 ac_cv_lib_c_getuid=yes
7728 else
7729 echo "$as_me: failed program was:" >&5
7730 sed 's/^/| /' conftest.$ac_ext >&5
7732 ac_cv_lib_c_getuid=no
7734 rm -f conftest.err conftest.$ac_objext \
7735 conftest$ac_exeext conftest.$ac_ext
7736 LIBS=$ac_check_lib_save_LIBS
7738 echo "$as_me:$LINENO: result: $ac_cv_lib_c_getuid" >&5
7739 echo "${ECHO_T}$ac_cv_lib_c_getuid" >&6
7740 if test $ac_cv_lib_c_getuid = yes; then
7742 cat >>confdefs.h <<\_ACEOF
7743 #define HAVE_GETUID 1
7744 _ACEOF
7749 # Check for C99 (and other IEEE) math functions
7750 # ??? This list seems awful long. Is there a better way to test for these?
7751 echo "$as_me:$LINENO: checking for acosf in -lm" >&5
7752 echo $ECHO_N "checking for acosf in -lm... $ECHO_C" >&6
7753 if test "${ac_cv_lib_m_acosf+set}" = set; then
7754 echo $ECHO_N "(cached) $ECHO_C" >&6
7755 else
7756 ac_check_lib_save_LIBS=$LIBS
7757 LIBS="-lm $LIBS"
7758 if test x$gcc_no_link = xyes; then
7759 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7760 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7761 { (exit 1); exit 1; }; }
7763 cat >conftest.$ac_ext <<_ACEOF
7764 /* confdefs.h. */
7765 _ACEOF
7766 cat confdefs.h >>conftest.$ac_ext
7767 cat >>conftest.$ac_ext <<_ACEOF
7768 /* end confdefs.h. */
7770 /* Override any gcc2 internal prototype to avoid an error. */
7771 #ifdef __cplusplus
7772 extern "C"
7773 #endif
7774 /* We use char because int might match the return type of a gcc2
7775 builtin and then its argument prototype would still apply. */
7776 char acosf ();
7778 main ()
7780 acosf ();
7782 return 0;
7784 _ACEOF
7785 rm -f conftest.$ac_objext conftest$ac_exeext
7786 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7787 (eval $ac_link) 2>conftest.er1
7788 ac_status=$?
7789 grep -v '^ *+' conftest.er1 >conftest.err
7790 rm -f conftest.er1
7791 cat conftest.err >&5
7792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7793 (exit $ac_status); } &&
7794 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7796 (eval $ac_try) 2>&5
7797 ac_status=$?
7798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7799 (exit $ac_status); }; } &&
7800 { ac_try='test -s conftest$ac_exeext'
7801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7802 (eval $ac_try) 2>&5
7803 ac_status=$?
7804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7805 (exit $ac_status); }; }; then
7806 ac_cv_lib_m_acosf=yes
7807 else
7808 echo "$as_me: failed program was:" >&5
7809 sed 's/^/| /' conftest.$ac_ext >&5
7811 ac_cv_lib_m_acosf=no
7813 rm -f conftest.err conftest.$ac_objext \
7814 conftest$ac_exeext conftest.$ac_ext
7815 LIBS=$ac_check_lib_save_LIBS
7817 echo "$as_me:$LINENO: result: $ac_cv_lib_m_acosf" >&5
7818 echo "${ECHO_T}$ac_cv_lib_m_acosf" >&6
7819 if test $ac_cv_lib_m_acosf = yes; then
7821 cat >>confdefs.h <<\_ACEOF
7822 #define HAVE_ACOSF 1
7823 _ACEOF
7827 echo "$as_me:$LINENO: checking for acoshf in -lm" >&5
7828 echo $ECHO_N "checking for acoshf in -lm... $ECHO_C" >&6
7829 if test "${ac_cv_lib_m_acoshf+set}" = set; then
7830 echo $ECHO_N "(cached) $ECHO_C" >&6
7831 else
7832 ac_check_lib_save_LIBS=$LIBS
7833 LIBS="-lm $LIBS"
7834 if test x$gcc_no_link = xyes; then
7835 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7836 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7837 { (exit 1); exit 1; }; }
7839 cat >conftest.$ac_ext <<_ACEOF
7840 /* confdefs.h. */
7841 _ACEOF
7842 cat confdefs.h >>conftest.$ac_ext
7843 cat >>conftest.$ac_ext <<_ACEOF
7844 /* end confdefs.h. */
7846 /* Override any gcc2 internal prototype to avoid an error. */
7847 #ifdef __cplusplus
7848 extern "C"
7849 #endif
7850 /* We use char because int might match the return type of a gcc2
7851 builtin and then its argument prototype would still apply. */
7852 char acoshf ();
7854 main ()
7856 acoshf ();
7858 return 0;
7860 _ACEOF
7861 rm -f conftest.$ac_objext conftest$ac_exeext
7862 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7863 (eval $ac_link) 2>conftest.er1
7864 ac_status=$?
7865 grep -v '^ *+' conftest.er1 >conftest.err
7866 rm -f conftest.er1
7867 cat conftest.err >&5
7868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7869 (exit $ac_status); } &&
7870 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7872 (eval $ac_try) 2>&5
7873 ac_status=$?
7874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7875 (exit $ac_status); }; } &&
7876 { ac_try='test -s conftest$ac_exeext'
7877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7878 (eval $ac_try) 2>&5
7879 ac_status=$?
7880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7881 (exit $ac_status); }; }; then
7882 ac_cv_lib_m_acoshf=yes
7883 else
7884 echo "$as_me: failed program was:" >&5
7885 sed 's/^/| /' conftest.$ac_ext >&5
7887 ac_cv_lib_m_acoshf=no
7889 rm -f conftest.err conftest.$ac_objext \
7890 conftest$ac_exeext conftest.$ac_ext
7891 LIBS=$ac_check_lib_save_LIBS
7893 echo "$as_me:$LINENO: result: $ac_cv_lib_m_acoshf" >&5
7894 echo "${ECHO_T}$ac_cv_lib_m_acoshf" >&6
7895 if test $ac_cv_lib_m_acoshf = yes; then
7897 cat >>confdefs.h <<\_ACEOF
7898 #define HAVE_ACOSHF 1
7899 _ACEOF
7903 echo "$as_me:$LINENO: checking for asinf in -lm" >&5
7904 echo $ECHO_N "checking for asinf in -lm... $ECHO_C" >&6
7905 if test "${ac_cv_lib_m_asinf+set}" = set; then
7906 echo $ECHO_N "(cached) $ECHO_C" >&6
7907 else
7908 ac_check_lib_save_LIBS=$LIBS
7909 LIBS="-lm $LIBS"
7910 if test x$gcc_no_link = xyes; then
7911 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7912 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7913 { (exit 1); exit 1; }; }
7915 cat >conftest.$ac_ext <<_ACEOF
7916 /* confdefs.h. */
7917 _ACEOF
7918 cat confdefs.h >>conftest.$ac_ext
7919 cat >>conftest.$ac_ext <<_ACEOF
7920 /* end confdefs.h. */
7922 /* Override any gcc2 internal prototype to avoid an error. */
7923 #ifdef __cplusplus
7924 extern "C"
7925 #endif
7926 /* We use char because int might match the return type of a gcc2
7927 builtin and then its argument prototype would still apply. */
7928 char asinf ();
7930 main ()
7932 asinf ();
7934 return 0;
7936 _ACEOF
7937 rm -f conftest.$ac_objext conftest$ac_exeext
7938 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7939 (eval $ac_link) 2>conftest.er1
7940 ac_status=$?
7941 grep -v '^ *+' conftest.er1 >conftest.err
7942 rm -f conftest.er1
7943 cat conftest.err >&5
7944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7945 (exit $ac_status); } &&
7946 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7948 (eval $ac_try) 2>&5
7949 ac_status=$?
7950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7951 (exit $ac_status); }; } &&
7952 { ac_try='test -s conftest$ac_exeext'
7953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7954 (eval $ac_try) 2>&5
7955 ac_status=$?
7956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7957 (exit $ac_status); }; }; then
7958 ac_cv_lib_m_asinf=yes
7959 else
7960 echo "$as_me: failed program was:" >&5
7961 sed 's/^/| /' conftest.$ac_ext >&5
7963 ac_cv_lib_m_asinf=no
7965 rm -f conftest.err conftest.$ac_objext \
7966 conftest$ac_exeext conftest.$ac_ext
7967 LIBS=$ac_check_lib_save_LIBS
7969 echo "$as_me:$LINENO: result: $ac_cv_lib_m_asinf" >&5
7970 echo "${ECHO_T}$ac_cv_lib_m_asinf" >&6
7971 if test $ac_cv_lib_m_asinf = yes; then
7973 cat >>confdefs.h <<\_ACEOF
7974 #define HAVE_ASINF 1
7975 _ACEOF
7979 echo "$as_me:$LINENO: checking for asinhf in -lm" >&5
7980 echo $ECHO_N "checking for asinhf in -lm... $ECHO_C" >&6
7981 if test "${ac_cv_lib_m_asinhf+set}" = set; then
7982 echo $ECHO_N "(cached) $ECHO_C" >&6
7983 else
7984 ac_check_lib_save_LIBS=$LIBS
7985 LIBS="-lm $LIBS"
7986 if test x$gcc_no_link = xyes; then
7987 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7988 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7989 { (exit 1); exit 1; }; }
7991 cat >conftest.$ac_ext <<_ACEOF
7992 /* confdefs.h. */
7993 _ACEOF
7994 cat confdefs.h >>conftest.$ac_ext
7995 cat >>conftest.$ac_ext <<_ACEOF
7996 /* end confdefs.h. */
7998 /* Override any gcc2 internal prototype to avoid an error. */
7999 #ifdef __cplusplus
8000 extern "C"
8001 #endif
8002 /* We use char because int might match the return type of a gcc2
8003 builtin and then its argument prototype would still apply. */
8004 char asinhf ();
8006 main ()
8008 asinhf ();
8010 return 0;
8012 _ACEOF
8013 rm -f conftest.$ac_objext conftest$ac_exeext
8014 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8015 (eval $ac_link) 2>conftest.er1
8016 ac_status=$?
8017 grep -v '^ *+' conftest.er1 >conftest.err
8018 rm -f conftest.er1
8019 cat conftest.err >&5
8020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8021 (exit $ac_status); } &&
8022 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8024 (eval $ac_try) 2>&5
8025 ac_status=$?
8026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8027 (exit $ac_status); }; } &&
8028 { ac_try='test -s conftest$ac_exeext'
8029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8030 (eval $ac_try) 2>&5
8031 ac_status=$?
8032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8033 (exit $ac_status); }; }; then
8034 ac_cv_lib_m_asinhf=yes
8035 else
8036 echo "$as_me: failed program was:" >&5
8037 sed 's/^/| /' conftest.$ac_ext >&5
8039 ac_cv_lib_m_asinhf=no
8041 rm -f conftest.err conftest.$ac_objext \
8042 conftest$ac_exeext conftest.$ac_ext
8043 LIBS=$ac_check_lib_save_LIBS
8045 echo "$as_me:$LINENO: result: $ac_cv_lib_m_asinhf" >&5
8046 echo "${ECHO_T}$ac_cv_lib_m_asinhf" >&6
8047 if test $ac_cv_lib_m_asinhf = yes; then
8049 cat >>confdefs.h <<\_ACEOF
8050 #define HAVE_ASINHF 1
8051 _ACEOF
8055 echo "$as_me:$LINENO: checking for atan2f in -lm" >&5
8056 echo $ECHO_N "checking for atan2f in -lm... $ECHO_C" >&6
8057 if test "${ac_cv_lib_m_atan2f+set}" = set; then
8058 echo $ECHO_N "(cached) $ECHO_C" >&6
8059 else
8060 ac_check_lib_save_LIBS=$LIBS
8061 LIBS="-lm $LIBS"
8062 if test x$gcc_no_link = xyes; then
8063 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8064 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8065 { (exit 1); exit 1; }; }
8067 cat >conftest.$ac_ext <<_ACEOF
8068 /* confdefs.h. */
8069 _ACEOF
8070 cat confdefs.h >>conftest.$ac_ext
8071 cat >>conftest.$ac_ext <<_ACEOF
8072 /* end confdefs.h. */
8074 /* Override any gcc2 internal prototype to avoid an error. */
8075 #ifdef __cplusplus
8076 extern "C"
8077 #endif
8078 /* We use char because int might match the return type of a gcc2
8079 builtin and then its argument prototype would still apply. */
8080 char atan2f ();
8082 main ()
8084 atan2f ();
8086 return 0;
8088 _ACEOF
8089 rm -f conftest.$ac_objext conftest$ac_exeext
8090 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8091 (eval $ac_link) 2>conftest.er1
8092 ac_status=$?
8093 grep -v '^ *+' conftest.er1 >conftest.err
8094 rm -f conftest.er1
8095 cat conftest.err >&5
8096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8097 (exit $ac_status); } &&
8098 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8100 (eval $ac_try) 2>&5
8101 ac_status=$?
8102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8103 (exit $ac_status); }; } &&
8104 { ac_try='test -s conftest$ac_exeext'
8105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8106 (eval $ac_try) 2>&5
8107 ac_status=$?
8108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8109 (exit $ac_status); }; }; then
8110 ac_cv_lib_m_atan2f=yes
8111 else
8112 echo "$as_me: failed program was:" >&5
8113 sed 's/^/| /' conftest.$ac_ext >&5
8115 ac_cv_lib_m_atan2f=no
8117 rm -f conftest.err conftest.$ac_objext \
8118 conftest$ac_exeext conftest.$ac_ext
8119 LIBS=$ac_check_lib_save_LIBS
8121 echo "$as_me:$LINENO: result: $ac_cv_lib_m_atan2f" >&5
8122 echo "${ECHO_T}$ac_cv_lib_m_atan2f" >&6
8123 if test $ac_cv_lib_m_atan2f = yes; then
8125 cat >>confdefs.h <<\_ACEOF
8126 #define HAVE_ATAN2F 1
8127 _ACEOF
8131 echo "$as_me:$LINENO: checking for atanf in -lm" >&5
8132 echo $ECHO_N "checking for atanf in -lm... $ECHO_C" >&6
8133 if test "${ac_cv_lib_m_atanf+set}" = set; then
8134 echo $ECHO_N "(cached) $ECHO_C" >&6
8135 else
8136 ac_check_lib_save_LIBS=$LIBS
8137 LIBS="-lm $LIBS"
8138 if test x$gcc_no_link = xyes; then
8139 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8140 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8141 { (exit 1); exit 1; }; }
8143 cat >conftest.$ac_ext <<_ACEOF
8144 /* confdefs.h. */
8145 _ACEOF
8146 cat confdefs.h >>conftest.$ac_ext
8147 cat >>conftest.$ac_ext <<_ACEOF
8148 /* end confdefs.h. */
8150 /* Override any gcc2 internal prototype to avoid an error. */
8151 #ifdef __cplusplus
8152 extern "C"
8153 #endif
8154 /* We use char because int might match the return type of a gcc2
8155 builtin and then its argument prototype would still apply. */
8156 char atanf ();
8158 main ()
8160 atanf ();
8162 return 0;
8164 _ACEOF
8165 rm -f conftest.$ac_objext conftest$ac_exeext
8166 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8167 (eval $ac_link) 2>conftest.er1
8168 ac_status=$?
8169 grep -v '^ *+' conftest.er1 >conftest.err
8170 rm -f conftest.er1
8171 cat conftest.err >&5
8172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8173 (exit $ac_status); } &&
8174 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8176 (eval $ac_try) 2>&5
8177 ac_status=$?
8178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8179 (exit $ac_status); }; } &&
8180 { ac_try='test -s conftest$ac_exeext'
8181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8182 (eval $ac_try) 2>&5
8183 ac_status=$?
8184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8185 (exit $ac_status); }; }; then
8186 ac_cv_lib_m_atanf=yes
8187 else
8188 echo "$as_me: failed program was:" >&5
8189 sed 's/^/| /' conftest.$ac_ext >&5
8191 ac_cv_lib_m_atanf=no
8193 rm -f conftest.err conftest.$ac_objext \
8194 conftest$ac_exeext conftest.$ac_ext
8195 LIBS=$ac_check_lib_save_LIBS
8197 echo "$as_me:$LINENO: result: $ac_cv_lib_m_atanf" >&5
8198 echo "${ECHO_T}$ac_cv_lib_m_atanf" >&6
8199 if test $ac_cv_lib_m_atanf = yes; then
8201 cat >>confdefs.h <<\_ACEOF
8202 #define HAVE_ATANF 1
8203 _ACEOF
8207 echo "$as_me:$LINENO: checking for atanhf in -lm" >&5
8208 echo $ECHO_N "checking for atanhf in -lm... $ECHO_C" >&6
8209 if test "${ac_cv_lib_m_atanhf+set}" = set; then
8210 echo $ECHO_N "(cached) $ECHO_C" >&6
8211 else
8212 ac_check_lib_save_LIBS=$LIBS
8213 LIBS="-lm $LIBS"
8214 if test x$gcc_no_link = xyes; then
8215 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8216 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8217 { (exit 1); exit 1; }; }
8219 cat >conftest.$ac_ext <<_ACEOF
8220 /* confdefs.h. */
8221 _ACEOF
8222 cat confdefs.h >>conftest.$ac_ext
8223 cat >>conftest.$ac_ext <<_ACEOF
8224 /* end confdefs.h. */
8226 /* Override any gcc2 internal prototype to avoid an error. */
8227 #ifdef __cplusplus
8228 extern "C"
8229 #endif
8230 /* We use char because int might match the return type of a gcc2
8231 builtin and then its argument prototype would still apply. */
8232 char atanhf ();
8234 main ()
8236 atanhf ();
8238 return 0;
8240 _ACEOF
8241 rm -f conftest.$ac_objext conftest$ac_exeext
8242 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8243 (eval $ac_link) 2>conftest.er1
8244 ac_status=$?
8245 grep -v '^ *+' conftest.er1 >conftest.err
8246 rm -f conftest.er1
8247 cat conftest.err >&5
8248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8249 (exit $ac_status); } &&
8250 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8252 (eval $ac_try) 2>&5
8253 ac_status=$?
8254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8255 (exit $ac_status); }; } &&
8256 { ac_try='test -s conftest$ac_exeext'
8257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8258 (eval $ac_try) 2>&5
8259 ac_status=$?
8260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8261 (exit $ac_status); }; }; then
8262 ac_cv_lib_m_atanhf=yes
8263 else
8264 echo "$as_me: failed program was:" >&5
8265 sed 's/^/| /' conftest.$ac_ext >&5
8267 ac_cv_lib_m_atanhf=no
8269 rm -f conftest.err conftest.$ac_objext \
8270 conftest$ac_exeext conftest.$ac_ext
8271 LIBS=$ac_check_lib_save_LIBS
8273 echo "$as_me:$LINENO: result: $ac_cv_lib_m_atanhf" >&5
8274 echo "${ECHO_T}$ac_cv_lib_m_atanhf" >&6
8275 if test $ac_cv_lib_m_atanhf = yes; then
8277 cat >>confdefs.h <<\_ACEOF
8278 #define HAVE_ATANHF 1
8279 _ACEOF
8283 echo "$as_me:$LINENO: checking for ceilf in -lm" >&5
8284 echo $ECHO_N "checking for ceilf in -lm... $ECHO_C" >&6
8285 if test "${ac_cv_lib_m_ceilf+set}" = set; then
8286 echo $ECHO_N "(cached) $ECHO_C" >&6
8287 else
8288 ac_check_lib_save_LIBS=$LIBS
8289 LIBS="-lm $LIBS"
8290 if test x$gcc_no_link = xyes; then
8291 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8292 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8293 { (exit 1); exit 1; }; }
8295 cat >conftest.$ac_ext <<_ACEOF
8296 /* confdefs.h. */
8297 _ACEOF
8298 cat confdefs.h >>conftest.$ac_ext
8299 cat >>conftest.$ac_ext <<_ACEOF
8300 /* end confdefs.h. */
8302 /* Override any gcc2 internal prototype to avoid an error. */
8303 #ifdef __cplusplus
8304 extern "C"
8305 #endif
8306 /* We use char because int might match the return type of a gcc2
8307 builtin and then its argument prototype would still apply. */
8308 char ceilf ();
8310 main ()
8312 ceilf ();
8314 return 0;
8316 _ACEOF
8317 rm -f conftest.$ac_objext conftest$ac_exeext
8318 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8319 (eval $ac_link) 2>conftest.er1
8320 ac_status=$?
8321 grep -v '^ *+' conftest.er1 >conftest.err
8322 rm -f conftest.er1
8323 cat conftest.err >&5
8324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8325 (exit $ac_status); } &&
8326 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8328 (eval $ac_try) 2>&5
8329 ac_status=$?
8330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8331 (exit $ac_status); }; } &&
8332 { ac_try='test -s conftest$ac_exeext'
8333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8334 (eval $ac_try) 2>&5
8335 ac_status=$?
8336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8337 (exit $ac_status); }; }; then
8338 ac_cv_lib_m_ceilf=yes
8339 else
8340 echo "$as_me: failed program was:" >&5
8341 sed 's/^/| /' conftest.$ac_ext >&5
8343 ac_cv_lib_m_ceilf=no
8345 rm -f conftest.err conftest.$ac_objext \
8346 conftest$ac_exeext conftest.$ac_ext
8347 LIBS=$ac_check_lib_save_LIBS
8349 echo "$as_me:$LINENO: result: $ac_cv_lib_m_ceilf" >&5
8350 echo "${ECHO_T}$ac_cv_lib_m_ceilf" >&6
8351 if test $ac_cv_lib_m_ceilf = yes; then
8353 cat >>confdefs.h <<\_ACEOF
8354 #define HAVE_CEILF 1
8355 _ACEOF
8359 echo "$as_me:$LINENO: checking for copysignf in -lm" >&5
8360 echo $ECHO_N "checking for copysignf in -lm... $ECHO_C" >&6
8361 if test "${ac_cv_lib_m_copysignf+set}" = set; then
8362 echo $ECHO_N "(cached) $ECHO_C" >&6
8363 else
8364 ac_check_lib_save_LIBS=$LIBS
8365 LIBS="-lm $LIBS"
8366 if test x$gcc_no_link = xyes; then
8367 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8368 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8369 { (exit 1); exit 1; }; }
8371 cat >conftest.$ac_ext <<_ACEOF
8372 /* confdefs.h. */
8373 _ACEOF
8374 cat confdefs.h >>conftest.$ac_ext
8375 cat >>conftest.$ac_ext <<_ACEOF
8376 /* end confdefs.h. */
8378 /* Override any gcc2 internal prototype to avoid an error. */
8379 #ifdef __cplusplus
8380 extern "C"
8381 #endif
8382 /* We use char because int might match the return type of a gcc2
8383 builtin and then its argument prototype would still apply. */
8384 char copysignf ();
8386 main ()
8388 copysignf ();
8390 return 0;
8392 _ACEOF
8393 rm -f conftest.$ac_objext conftest$ac_exeext
8394 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8395 (eval $ac_link) 2>conftest.er1
8396 ac_status=$?
8397 grep -v '^ *+' conftest.er1 >conftest.err
8398 rm -f conftest.er1
8399 cat conftest.err >&5
8400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8401 (exit $ac_status); } &&
8402 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8404 (eval $ac_try) 2>&5
8405 ac_status=$?
8406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8407 (exit $ac_status); }; } &&
8408 { ac_try='test -s conftest$ac_exeext'
8409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8410 (eval $ac_try) 2>&5
8411 ac_status=$?
8412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8413 (exit $ac_status); }; }; then
8414 ac_cv_lib_m_copysignf=yes
8415 else
8416 echo "$as_me: failed program was:" >&5
8417 sed 's/^/| /' conftest.$ac_ext >&5
8419 ac_cv_lib_m_copysignf=no
8421 rm -f conftest.err conftest.$ac_objext \
8422 conftest$ac_exeext conftest.$ac_ext
8423 LIBS=$ac_check_lib_save_LIBS
8425 echo "$as_me:$LINENO: result: $ac_cv_lib_m_copysignf" >&5
8426 echo "${ECHO_T}$ac_cv_lib_m_copysignf" >&6
8427 if test $ac_cv_lib_m_copysignf = yes; then
8429 cat >>confdefs.h <<\_ACEOF
8430 #define HAVE_COPYSIGNF 1
8431 _ACEOF
8435 echo "$as_me:$LINENO: checking for cosf in -lm" >&5
8436 echo $ECHO_N "checking for cosf in -lm... $ECHO_C" >&6
8437 if test "${ac_cv_lib_m_cosf+set}" = set; then
8438 echo $ECHO_N "(cached) $ECHO_C" >&6
8439 else
8440 ac_check_lib_save_LIBS=$LIBS
8441 LIBS="-lm $LIBS"
8442 if test x$gcc_no_link = xyes; then
8443 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8444 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8445 { (exit 1); exit 1; }; }
8447 cat >conftest.$ac_ext <<_ACEOF
8448 /* confdefs.h. */
8449 _ACEOF
8450 cat confdefs.h >>conftest.$ac_ext
8451 cat >>conftest.$ac_ext <<_ACEOF
8452 /* end confdefs.h. */
8454 /* Override any gcc2 internal prototype to avoid an error. */
8455 #ifdef __cplusplus
8456 extern "C"
8457 #endif
8458 /* We use char because int might match the return type of a gcc2
8459 builtin and then its argument prototype would still apply. */
8460 char cosf ();
8462 main ()
8464 cosf ();
8466 return 0;
8468 _ACEOF
8469 rm -f conftest.$ac_objext conftest$ac_exeext
8470 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8471 (eval $ac_link) 2>conftest.er1
8472 ac_status=$?
8473 grep -v '^ *+' conftest.er1 >conftest.err
8474 rm -f conftest.er1
8475 cat conftest.err >&5
8476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8477 (exit $ac_status); } &&
8478 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8480 (eval $ac_try) 2>&5
8481 ac_status=$?
8482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8483 (exit $ac_status); }; } &&
8484 { ac_try='test -s conftest$ac_exeext'
8485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8486 (eval $ac_try) 2>&5
8487 ac_status=$?
8488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8489 (exit $ac_status); }; }; then
8490 ac_cv_lib_m_cosf=yes
8491 else
8492 echo "$as_me: failed program was:" >&5
8493 sed 's/^/| /' conftest.$ac_ext >&5
8495 ac_cv_lib_m_cosf=no
8497 rm -f conftest.err conftest.$ac_objext \
8498 conftest$ac_exeext conftest.$ac_ext
8499 LIBS=$ac_check_lib_save_LIBS
8501 echo "$as_me:$LINENO: result: $ac_cv_lib_m_cosf" >&5
8502 echo "${ECHO_T}$ac_cv_lib_m_cosf" >&6
8503 if test $ac_cv_lib_m_cosf = yes; then
8505 cat >>confdefs.h <<\_ACEOF
8506 #define HAVE_COSF 1
8507 _ACEOF
8511 echo "$as_me:$LINENO: checking for coshf in -lm" >&5
8512 echo $ECHO_N "checking for coshf in -lm... $ECHO_C" >&6
8513 if test "${ac_cv_lib_m_coshf+set}" = set; then
8514 echo $ECHO_N "(cached) $ECHO_C" >&6
8515 else
8516 ac_check_lib_save_LIBS=$LIBS
8517 LIBS="-lm $LIBS"
8518 if test x$gcc_no_link = xyes; then
8519 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8520 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8521 { (exit 1); exit 1; }; }
8523 cat >conftest.$ac_ext <<_ACEOF
8524 /* confdefs.h. */
8525 _ACEOF
8526 cat confdefs.h >>conftest.$ac_ext
8527 cat >>conftest.$ac_ext <<_ACEOF
8528 /* end confdefs.h. */
8530 /* Override any gcc2 internal prototype to avoid an error. */
8531 #ifdef __cplusplus
8532 extern "C"
8533 #endif
8534 /* We use char because int might match the return type of a gcc2
8535 builtin and then its argument prototype would still apply. */
8536 char coshf ();
8538 main ()
8540 coshf ();
8542 return 0;
8544 _ACEOF
8545 rm -f conftest.$ac_objext conftest$ac_exeext
8546 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8547 (eval $ac_link) 2>conftest.er1
8548 ac_status=$?
8549 grep -v '^ *+' conftest.er1 >conftest.err
8550 rm -f conftest.er1
8551 cat conftest.err >&5
8552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8553 (exit $ac_status); } &&
8554 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8556 (eval $ac_try) 2>&5
8557 ac_status=$?
8558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8559 (exit $ac_status); }; } &&
8560 { ac_try='test -s conftest$ac_exeext'
8561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8562 (eval $ac_try) 2>&5
8563 ac_status=$?
8564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8565 (exit $ac_status); }; }; then
8566 ac_cv_lib_m_coshf=yes
8567 else
8568 echo "$as_me: failed program was:" >&5
8569 sed 's/^/| /' conftest.$ac_ext >&5
8571 ac_cv_lib_m_coshf=no
8573 rm -f conftest.err conftest.$ac_objext \
8574 conftest$ac_exeext conftest.$ac_ext
8575 LIBS=$ac_check_lib_save_LIBS
8577 echo "$as_me:$LINENO: result: $ac_cv_lib_m_coshf" >&5
8578 echo "${ECHO_T}$ac_cv_lib_m_coshf" >&6
8579 if test $ac_cv_lib_m_coshf = yes; then
8581 cat >>confdefs.h <<\_ACEOF
8582 #define HAVE_COSHF 1
8583 _ACEOF
8587 echo "$as_me:$LINENO: checking for expf in -lm" >&5
8588 echo $ECHO_N "checking for expf in -lm... $ECHO_C" >&6
8589 if test "${ac_cv_lib_m_expf+set}" = set; then
8590 echo $ECHO_N "(cached) $ECHO_C" >&6
8591 else
8592 ac_check_lib_save_LIBS=$LIBS
8593 LIBS="-lm $LIBS"
8594 if test x$gcc_no_link = xyes; then
8595 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8596 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8597 { (exit 1); exit 1; }; }
8599 cat >conftest.$ac_ext <<_ACEOF
8600 /* confdefs.h. */
8601 _ACEOF
8602 cat confdefs.h >>conftest.$ac_ext
8603 cat >>conftest.$ac_ext <<_ACEOF
8604 /* end confdefs.h. */
8606 /* Override any gcc2 internal prototype to avoid an error. */
8607 #ifdef __cplusplus
8608 extern "C"
8609 #endif
8610 /* We use char because int might match the return type of a gcc2
8611 builtin and then its argument prototype would still apply. */
8612 char expf ();
8614 main ()
8616 expf ();
8618 return 0;
8620 _ACEOF
8621 rm -f conftest.$ac_objext conftest$ac_exeext
8622 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8623 (eval $ac_link) 2>conftest.er1
8624 ac_status=$?
8625 grep -v '^ *+' conftest.er1 >conftest.err
8626 rm -f conftest.er1
8627 cat conftest.err >&5
8628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8629 (exit $ac_status); } &&
8630 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8632 (eval $ac_try) 2>&5
8633 ac_status=$?
8634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8635 (exit $ac_status); }; } &&
8636 { ac_try='test -s conftest$ac_exeext'
8637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8638 (eval $ac_try) 2>&5
8639 ac_status=$?
8640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8641 (exit $ac_status); }; }; then
8642 ac_cv_lib_m_expf=yes
8643 else
8644 echo "$as_me: failed program was:" >&5
8645 sed 's/^/| /' conftest.$ac_ext >&5
8647 ac_cv_lib_m_expf=no
8649 rm -f conftest.err conftest.$ac_objext \
8650 conftest$ac_exeext conftest.$ac_ext
8651 LIBS=$ac_check_lib_save_LIBS
8653 echo "$as_me:$LINENO: result: $ac_cv_lib_m_expf" >&5
8654 echo "${ECHO_T}$ac_cv_lib_m_expf" >&6
8655 if test $ac_cv_lib_m_expf = yes; then
8657 cat >>confdefs.h <<\_ACEOF
8658 #define HAVE_EXPF 1
8659 _ACEOF
8663 echo "$as_me:$LINENO: checking for fabsf in -lm" >&5
8664 echo $ECHO_N "checking for fabsf in -lm... $ECHO_C" >&6
8665 if test "${ac_cv_lib_m_fabsf+set}" = set; then
8666 echo $ECHO_N "(cached) $ECHO_C" >&6
8667 else
8668 ac_check_lib_save_LIBS=$LIBS
8669 LIBS="-lm $LIBS"
8670 if test x$gcc_no_link = xyes; then
8671 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8672 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8673 { (exit 1); exit 1; }; }
8675 cat >conftest.$ac_ext <<_ACEOF
8676 /* confdefs.h. */
8677 _ACEOF
8678 cat confdefs.h >>conftest.$ac_ext
8679 cat >>conftest.$ac_ext <<_ACEOF
8680 /* end confdefs.h. */
8682 /* Override any gcc2 internal prototype to avoid an error. */
8683 #ifdef __cplusplus
8684 extern "C"
8685 #endif
8686 /* We use char because int might match the return type of a gcc2
8687 builtin and then its argument prototype would still apply. */
8688 char fabsf ();
8690 main ()
8692 fabsf ();
8694 return 0;
8696 _ACEOF
8697 rm -f conftest.$ac_objext conftest$ac_exeext
8698 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8699 (eval $ac_link) 2>conftest.er1
8700 ac_status=$?
8701 grep -v '^ *+' conftest.er1 >conftest.err
8702 rm -f conftest.er1
8703 cat conftest.err >&5
8704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8705 (exit $ac_status); } &&
8706 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8708 (eval $ac_try) 2>&5
8709 ac_status=$?
8710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8711 (exit $ac_status); }; } &&
8712 { ac_try='test -s conftest$ac_exeext'
8713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8714 (eval $ac_try) 2>&5
8715 ac_status=$?
8716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8717 (exit $ac_status); }; }; then
8718 ac_cv_lib_m_fabsf=yes
8719 else
8720 echo "$as_me: failed program was:" >&5
8721 sed 's/^/| /' conftest.$ac_ext >&5
8723 ac_cv_lib_m_fabsf=no
8725 rm -f conftest.err conftest.$ac_objext \
8726 conftest$ac_exeext conftest.$ac_ext
8727 LIBS=$ac_check_lib_save_LIBS
8729 echo "$as_me:$LINENO: result: $ac_cv_lib_m_fabsf" >&5
8730 echo "${ECHO_T}$ac_cv_lib_m_fabsf" >&6
8731 if test $ac_cv_lib_m_fabsf = yes; then
8733 cat >>confdefs.h <<\_ACEOF
8734 #define HAVE_FABSF 1
8735 _ACEOF
8739 echo "$as_me:$LINENO: checking for floorf in -lm" >&5
8740 echo $ECHO_N "checking for floorf in -lm... $ECHO_C" >&6
8741 if test "${ac_cv_lib_m_floorf+set}" = set; then
8742 echo $ECHO_N "(cached) $ECHO_C" >&6
8743 else
8744 ac_check_lib_save_LIBS=$LIBS
8745 LIBS="-lm $LIBS"
8746 if test x$gcc_no_link = xyes; then
8747 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8748 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8749 { (exit 1); exit 1; }; }
8751 cat >conftest.$ac_ext <<_ACEOF
8752 /* confdefs.h. */
8753 _ACEOF
8754 cat confdefs.h >>conftest.$ac_ext
8755 cat >>conftest.$ac_ext <<_ACEOF
8756 /* end confdefs.h. */
8758 /* Override any gcc2 internal prototype to avoid an error. */
8759 #ifdef __cplusplus
8760 extern "C"
8761 #endif
8762 /* We use char because int might match the return type of a gcc2
8763 builtin and then its argument prototype would still apply. */
8764 char floorf ();
8766 main ()
8768 floorf ();
8770 return 0;
8772 _ACEOF
8773 rm -f conftest.$ac_objext conftest$ac_exeext
8774 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8775 (eval $ac_link) 2>conftest.er1
8776 ac_status=$?
8777 grep -v '^ *+' conftest.er1 >conftest.err
8778 rm -f conftest.er1
8779 cat conftest.err >&5
8780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8781 (exit $ac_status); } &&
8782 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8784 (eval $ac_try) 2>&5
8785 ac_status=$?
8786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8787 (exit $ac_status); }; } &&
8788 { ac_try='test -s conftest$ac_exeext'
8789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8790 (eval $ac_try) 2>&5
8791 ac_status=$?
8792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8793 (exit $ac_status); }; }; then
8794 ac_cv_lib_m_floorf=yes
8795 else
8796 echo "$as_me: failed program was:" >&5
8797 sed 's/^/| /' conftest.$ac_ext >&5
8799 ac_cv_lib_m_floorf=no
8801 rm -f conftest.err conftest.$ac_objext \
8802 conftest$ac_exeext conftest.$ac_ext
8803 LIBS=$ac_check_lib_save_LIBS
8805 echo "$as_me:$LINENO: result: $ac_cv_lib_m_floorf" >&5
8806 echo "${ECHO_T}$ac_cv_lib_m_floorf" >&6
8807 if test $ac_cv_lib_m_floorf = yes; then
8809 cat >>confdefs.h <<\_ACEOF
8810 #define HAVE_FLOORF 1
8811 _ACEOF
8815 echo "$as_me:$LINENO: checking for frexpf in -lm" >&5
8816 echo $ECHO_N "checking for frexpf in -lm... $ECHO_C" >&6
8817 if test "${ac_cv_lib_m_frexpf+set}" = set; then
8818 echo $ECHO_N "(cached) $ECHO_C" >&6
8819 else
8820 ac_check_lib_save_LIBS=$LIBS
8821 LIBS="-lm $LIBS"
8822 if test x$gcc_no_link = xyes; then
8823 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8824 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8825 { (exit 1); exit 1; }; }
8827 cat >conftest.$ac_ext <<_ACEOF
8828 /* confdefs.h. */
8829 _ACEOF
8830 cat confdefs.h >>conftest.$ac_ext
8831 cat >>conftest.$ac_ext <<_ACEOF
8832 /* end confdefs.h. */
8834 /* Override any gcc2 internal prototype to avoid an error. */
8835 #ifdef __cplusplus
8836 extern "C"
8837 #endif
8838 /* We use char because int might match the return type of a gcc2
8839 builtin and then its argument prototype would still apply. */
8840 char frexpf ();
8842 main ()
8844 frexpf ();
8846 return 0;
8848 _ACEOF
8849 rm -f conftest.$ac_objext conftest$ac_exeext
8850 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8851 (eval $ac_link) 2>conftest.er1
8852 ac_status=$?
8853 grep -v '^ *+' conftest.er1 >conftest.err
8854 rm -f conftest.er1
8855 cat conftest.err >&5
8856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8857 (exit $ac_status); } &&
8858 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8860 (eval $ac_try) 2>&5
8861 ac_status=$?
8862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8863 (exit $ac_status); }; } &&
8864 { ac_try='test -s conftest$ac_exeext'
8865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8866 (eval $ac_try) 2>&5
8867 ac_status=$?
8868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8869 (exit $ac_status); }; }; then
8870 ac_cv_lib_m_frexpf=yes
8871 else
8872 echo "$as_me: failed program was:" >&5
8873 sed 's/^/| /' conftest.$ac_ext >&5
8875 ac_cv_lib_m_frexpf=no
8877 rm -f conftest.err conftest.$ac_objext \
8878 conftest$ac_exeext conftest.$ac_ext
8879 LIBS=$ac_check_lib_save_LIBS
8881 echo "$as_me:$LINENO: result: $ac_cv_lib_m_frexpf" >&5
8882 echo "${ECHO_T}$ac_cv_lib_m_frexpf" >&6
8883 if test $ac_cv_lib_m_frexpf = yes; then
8885 cat >>confdefs.h <<\_ACEOF
8886 #define HAVE_FREXPF 1
8887 _ACEOF
8891 echo "$as_me:$LINENO: checking for hypotf in -lm" >&5
8892 echo $ECHO_N "checking for hypotf in -lm... $ECHO_C" >&6
8893 if test "${ac_cv_lib_m_hypotf+set}" = set; then
8894 echo $ECHO_N "(cached) $ECHO_C" >&6
8895 else
8896 ac_check_lib_save_LIBS=$LIBS
8897 LIBS="-lm $LIBS"
8898 if test x$gcc_no_link = xyes; then
8899 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8900 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8901 { (exit 1); exit 1; }; }
8903 cat >conftest.$ac_ext <<_ACEOF
8904 /* confdefs.h. */
8905 _ACEOF
8906 cat confdefs.h >>conftest.$ac_ext
8907 cat >>conftest.$ac_ext <<_ACEOF
8908 /* end confdefs.h. */
8910 /* Override any gcc2 internal prototype to avoid an error. */
8911 #ifdef __cplusplus
8912 extern "C"
8913 #endif
8914 /* We use char because int might match the return type of a gcc2
8915 builtin and then its argument prototype would still apply. */
8916 char hypotf ();
8918 main ()
8920 hypotf ();
8922 return 0;
8924 _ACEOF
8925 rm -f conftest.$ac_objext conftest$ac_exeext
8926 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8927 (eval $ac_link) 2>conftest.er1
8928 ac_status=$?
8929 grep -v '^ *+' conftest.er1 >conftest.err
8930 rm -f conftest.er1
8931 cat conftest.err >&5
8932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8933 (exit $ac_status); } &&
8934 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8936 (eval $ac_try) 2>&5
8937 ac_status=$?
8938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8939 (exit $ac_status); }; } &&
8940 { ac_try='test -s conftest$ac_exeext'
8941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8942 (eval $ac_try) 2>&5
8943 ac_status=$?
8944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8945 (exit $ac_status); }; }; then
8946 ac_cv_lib_m_hypotf=yes
8947 else
8948 echo "$as_me: failed program was:" >&5
8949 sed 's/^/| /' conftest.$ac_ext >&5
8951 ac_cv_lib_m_hypotf=no
8953 rm -f conftest.err conftest.$ac_objext \
8954 conftest$ac_exeext conftest.$ac_ext
8955 LIBS=$ac_check_lib_save_LIBS
8957 echo "$as_me:$LINENO: result: $ac_cv_lib_m_hypotf" >&5
8958 echo "${ECHO_T}$ac_cv_lib_m_hypotf" >&6
8959 if test $ac_cv_lib_m_hypotf = yes; then
8961 cat >>confdefs.h <<\_ACEOF
8962 #define HAVE_HYPOTF 1
8963 _ACEOF
8967 echo "$as_me:$LINENO: checking for logf in -lm" >&5
8968 echo $ECHO_N "checking for logf in -lm... $ECHO_C" >&6
8969 if test "${ac_cv_lib_m_logf+set}" = set; then
8970 echo $ECHO_N "(cached) $ECHO_C" >&6
8971 else
8972 ac_check_lib_save_LIBS=$LIBS
8973 LIBS="-lm $LIBS"
8974 if test x$gcc_no_link = xyes; then
8975 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8976 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8977 { (exit 1); exit 1; }; }
8979 cat >conftest.$ac_ext <<_ACEOF
8980 /* confdefs.h. */
8981 _ACEOF
8982 cat confdefs.h >>conftest.$ac_ext
8983 cat >>conftest.$ac_ext <<_ACEOF
8984 /* end confdefs.h. */
8986 /* Override any gcc2 internal prototype to avoid an error. */
8987 #ifdef __cplusplus
8988 extern "C"
8989 #endif
8990 /* We use char because int might match the return type of a gcc2
8991 builtin and then its argument prototype would still apply. */
8992 char logf ();
8994 main ()
8996 logf ();
8998 return 0;
9000 _ACEOF
9001 rm -f conftest.$ac_objext conftest$ac_exeext
9002 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9003 (eval $ac_link) 2>conftest.er1
9004 ac_status=$?
9005 grep -v '^ *+' conftest.er1 >conftest.err
9006 rm -f conftest.er1
9007 cat conftest.err >&5
9008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9009 (exit $ac_status); } &&
9010 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9012 (eval $ac_try) 2>&5
9013 ac_status=$?
9014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9015 (exit $ac_status); }; } &&
9016 { ac_try='test -s conftest$ac_exeext'
9017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9018 (eval $ac_try) 2>&5
9019 ac_status=$?
9020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9021 (exit $ac_status); }; }; then
9022 ac_cv_lib_m_logf=yes
9023 else
9024 echo "$as_me: failed program was:" >&5
9025 sed 's/^/| /' conftest.$ac_ext >&5
9027 ac_cv_lib_m_logf=no
9029 rm -f conftest.err conftest.$ac_objext \
9030 conftest$ac_exeext conftest.$ac_ext
9031 LIBS=$ac_check_lib_save_LIBS
9033 echo "$as_me:$LINENO: result: $ac_cv_lib_m_logf" >&5
9034 echo "${ECHO_T}$ac_cv_lib_m_logf" >&6
9035 if test $ac_cv_lib_m_logf = yes; then
9037 cat >>confdefs.h <<\_ACEOF
9038 #define HAVE_LOGF 1
9039 _ACEOF
9043 echo "$as_me:$LINENO: checking for log10f in -lm" >&5
9044 echo $ECHO_N "checking for log10f in -lm... $ECHO_C" >&6
9045 if test "${ac_cv_lib_m_log10f+set}" = set; then
9046 echo $ECHO_N "(cached) $ECHO_C" >&6
9047 else
9048 ac_check_lib_save_LIBS=$LIBS
9049 LIBS="-lm $LIBS"
9050 if test x$gcc_no_link = xyes; then
9051 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9052 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9053 { (exit 1); exit 1; }; }
9055 cat >conftest.$ac_ext <<_ACEOF
9056 /* confdefs.h. */
9057 _ACEOF
9058 cat confdefs.h >>conftest.$ac_ext
9059 cat >>conftest.$ac_ext <<_ACEOF
9060 /* end confdefs.h. */
9062 /* Override any gcc2 internal prototype to avoid an error. */
9063 #ifdef __cplusplus
9064 extern "C"
9065 #endif
9066 /* We use char because int might match the return type of a gcc2
9067 builtin and then its argument prototype would still apply. */
9068 char log10f ();
9070 main ()
9072 log10f ();
9074 return 0;
9076 _ACEOF
9077 rm -f conftest.$ac_objext conftest$ac_exeext
9078 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9079 (eval $ac_link) 2>conftest.er1
9080 ac_status=$?
9081 grep -v '^ *+' conftest.er1 >conftest.err
9082 rm -f conftest.er1
9083 cat conftest.err >&5
9084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9085 (exit $ac_status); } &&
9086 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9088 (eval $ac_try) 2>&5
9089 ac_status=$?
9090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9091 (exit $ac_status); }; } &&
9092 { ac_try='test -s conftest$ac_exeext'
9093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9094 (eval $ac_try) 2>&5
9095 ac_status=$?
9096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9097 (exit $ac_status); }; }; then
9098 ac_cv_lib_m_log10f=yes
9099 else
9100 echo "$as_me: failed program was:" >&5
9101 sed 's/^/| /' conftest.$ac_ext >&5
9103 ac_cv_lib_m_log10f=no
9105 rm -f conftest.err conftest.$ac_objext \
9106 conftest$ac_exeext conftest.$ac_ext
9107 LIBS=$ac_check_lib_save_LIBS
9109 echo "$as_me:$LINENO: result: $ac_cv_lib_m_log10f" >&5
9110 echo "${ECHO_T}$ac_cv_lib_m_log10f" >&6
9111 if test $ac_cv_lib_m_log10f = yes; then
9113 cat >>confdefs.h <<\_ACEOF
9114 #define HAVE_LOG10F 1
9115 _ACEOF
9119 echo "$as_me:$LINENO: checking for log10l in -lm" >&5
9120 echo $ECHO_N "checking for log10l in -lm... $ECHO_C" >&6
9121 if test "${ac_cv_lib_m_log10l+set}" = set; then
9122 echo $ECHO_N "(cached) $ECHO_C" >&6
9123 else
9124 ac_check_lib_save_LIBS=$LIBS
9125 LIBS="-lm $LIBS"
9126 if test x$gcc_no_link = xyes; then
9127 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9128 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9129 { (exit 1); exit 1; }; }
9131 cat >conftest.$ac_ext <<_ACEOF
9132 /* confdefs.h. */
9133 _ACEOF
9134 cat confdefs.h >>conftest.$ac_ext
9135 cat >>conftest.$ac_ext <<_ACEOF
9136 /* end confdefs.h. */
9138 /* Override any gcc2 internal prototype to avoid an error. */
9139 #ifdef __cplusplus
9140 extern "C"
9141 #endif
9142 /* We use char because int might match the return type of a gcc2
9143 builtin and then its argument prototype would still apply. */
9144 char log10l ();
9146 main ()
9148 log10l ();
9150 return 0;
9152 _ACEOF
9153 rm -f conftest.$ac_objext conftest$ac_exeext
9154 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9155 (eval $ac_link) 2>conftest.er1
9156 ac_status=$?
9157 grep -v '^ *+' conftest.er1 >conftest.err
9158 rm -f conftest.er1
9159 cat conftest.err >&5
9160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9161 (exit $ac_status); } &&
9162 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9164 (eval $ac_try) 2>&5
9165 ac_status=$?
9166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9167 (exit $ac_status); }; } &&
9168 { ac_try='test -s conftest$ac_exeext'
9169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9170 (eval $ac_try) 2>&5
9171 ac_status=$?
9172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9173 (exit $ac_status); }; }; then
9174 ac_cv_lib_m_log10l=yes
9175 else
9176 echo "$as_me: failed program was:" >&5
9177 sed 's/^/| /' conftest.$ac_ext >&5
9179 ac_cv_lib_m_log10l=no
9181 rm -f conftest.err conftest.$ac_objext \
9182 conftest$ac_exeext conftest.$ac_ext
9183 LIBS=$ac_check_lib_save_LIBS
9185 echo "$as_me:$LINENO: result: $ac_cv_lib_m_log10l" >&5
9186 echo "${ECHO_T}$ac_cv_lib_m_log10l" >&6
9187 if test $ac_cv_lib_m_log10l = yes; then
9189 cat >>confdefs.h <<\_ACEOF
9190 #define HAVE_LOG10L 1
9191 _ACEOF
9195 echo "$as_me:$LINENO: checking for nextafter in -lm" >&5
9196 echo $ECHO_N "checking for nextafter in -lm... $ECHO_C" >&6
9197 if test "${ac_cv_lib_m_nextafter+set}" = set; then
9198 echo $ECHO_N "(cached) $ECHO_C" >&6
9199 else
9200 ac_check_lib_save_LIBS=$LIBS
9201 LIBS="-lm $LIBS"
9202 if test x$gcc_no_link = xyes; then
9203 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9204 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9205 { (exit 1); exit 1; }; }
9207 cat >conftest.$ac_ext <<_ACEOF
9208 /* confdefs.h. */
9209 _ACEOF
9210 cat confdefs.h >>conftest.$ac_ext
9211 cat >>conftest.$ac_ext <<_ACEOF
9212 /* end confdefs.h. */
9214 /* Override any gcc2 internal prototype to avoid an error. */
9215 #ifdef __cplusplus
9216 extern "C"
9217 #endif
9218 /* We use char because int might match the return type of a gcc2
9219 builtin and then its argument prototype would still apply. */
9220 char nextafter ();
9222 main ()
9224 nextafter ();
9226 return 0;
9228 _ACEOF
9229 rm -f conftest.$ac_objext conftest$ac_exeext
9230 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9231 (eval $ac_link) 2>conftest.er1
9232 ac_status=$?
9233 grep -v '^ *+' conftest.er1 >conftest.err
9234 rm -f conftest.er1
9235 cat conftest.err >&5
9236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9237 (exit $ac_status); } &&
9238 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9240 (eval $ac_try) 2>&5
9241 ac_status=$?
9242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9243 (exit $ac_status); }; } &&
9244 { ac_try='test -s conftest$ac_exeext'
9245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9246 (eval $ac_try) 2>&5
9247 ac_status=$?
9248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9249 (exit $ac_status); }; }; then
9250 ac_cv_lib_m_nextafter=yes
9251 else
9252 echo "$as_me: failed program was:" >&5
9253 sed 's/^/| /' conftest.$ac_ext >&5
9255 ac_cv_lib_m_nextafter=no
9257 rm -f conftest.err conftest.$ac_objext \
9258 conftest$ac_exeext conftest.$ac_ext
9259 LIBS=$ac_check_lib_save_LIBS
9261 echo "$as_me:$LINENO: result: $ac_cv_lib_m_nextafter" >&5
9262 echo "${ECHO_T}$ac_cv_lib_m_nextafter" >&6
9263 if test $ac_cv_lib_m_nextafter = yes; then
9265 cat >>confdefs.h <<\_ACEOF
9266 #define HAVE_NEXTAFTER 1
9267 _ACEOF
9271 echo "$as_me:$LINENO: checking for nextafterf in -lm" >&5
9272 echo $ECHO_N "checking for nextafterf in -lm... $ECHO_C" >&6
9273 if test "${ac_cv_lib_m_nextafterf+set}" = set; then
9274 echo $ECHO_N "(cached) $ECHO_C" >&6
9275 else
9276 ac_check_lib_save_LIBS=$LIBS
9277 LIBS="-lm $LIBS"
9278 if test x$gcc_no_link = xyes; then
9279 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9280 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9281 { (exit 1); exit 1; }; }
9283 cat >conftest.$ac_ext <<_ACEOF
9284 /* confdefs.h. */
9285 _ACEOF
9286 cat confdefs.h >>conftest.$ac_ext
9287 cat >>conftest.$ac_ext <<_ACEOF
9288 /* end confdefs.h. */
9290 /* Override any gcc2 internal prototype to avoid an error. */
9291 #ifdef __cplusplus
9292 extern "C"
9293 #endif
9294 /* We use char because int might match the return type of a gcc2
9295 builtin and then its argument prototype would still apply. */
9296 char nextafterf ();
9298 main ()
9300 nextafterf ();
9302 return 0;
9304 _ACEOF
9305 rm -f conftest.$ac_objext conftest$ac_exeext
9306 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9307 (eval $ac_link) 2>conftest.er1
9308 ac_status=$?
9309 grep -v '^ *+' conftest.er1 >conftest.err
9310 rm -f conftest.er1
9311 cat conftest.err >&5
9312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9313 (exit $ac_status); } &&
9314 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9316 (eval $ac_try) 2>&5
9317 ac_status=$?
9318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9319 (exit $ac_status); }; } &&
9320 { ac_try='test -s conftest$ac_exeext'
9321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9322 (eval $ac_try) 2>&5
9323 ac_status=$?
9324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9325 (exit $ac_status); }; }; then
9326 ac_cv_lib_m_nextafterf=yes
9327 else
9328 echo "$as_me: failed program was:" >&5
9329 sed 's/^/| /' conftest.$ac_ext >&5
9331 ac_cv_lib_m_nextafterf=no
9333 rm -f conftest.err conftest.$ac_objext \
9334 conftest$ac_exeext conftest.$ac_ext
9335 LIBS=$ac_check_lib_save_LIBS
9337 echo "$as_me:$LINENO: result: $ac_cv_lib_m_nextafterf" >&5
9338 echo "${ECHO_T}$ac_cv_lib_m_nextafterf" >&6
9339 if test $ac_cv_lib_m_nextafterf = yes; then
9341 cat >>confdefs.h <<\_ACEOF
9342 #define HAVE_NEXTAFTERF 1
9343 _ACEOF
9347 echo "$as_me:$LINENO: checking for powf in -lm" >&5
9348 echo $ECHO_N "checking for powf in -lm... $ECHO_C" >&6
9349 if test "${ac_cv_lib_m_powf+set}" = set; then
9350 echo $ECHO_N "(cached) $ECHO_C" >&6
9351 else
9352 ac_check_lib_save_LIBS=$LIBS
9353 LIBS="-lm $LIBS"
9354 if test x$gcc_no_link = xyes; then
9355 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9356 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9357 { (exit 1); exit 1; }; }
9359 cat >conftest.$ac_ext <<_ACEOF
9360 /* confdefs.h. */
9361 _ACEOF
9362 cat confdefs.h >>conftest.$ac_ext
9363 cat >>conftest.$ac_ext <<_ACEOF
9364 /* end confdefs.h. */
9366 /* Override any gcc2 internal prototype to avoid an error. */
9367 #ifdef __cplusplus
9368 extern "C"
9369 #endif
9370 /* We use char because int might match the return type of a gcc2
9371 builtin and then its argument prototype would still apply. */
9372 char powf ();
9374 main ()
9376 powf ();
9378 return 0;
9380 _ACEOF
9381 rm -f conftest.$ac_objext conftest$ac_exeext
9382 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9383 (eval $ac_link) 2>conftest.er1
9384 ac_status=$?
9385 grep -v '^ *+' conftest.er1 >conftest.err
9386 rm -f conftest.er1
9387 cat conftest.err >&5
9388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9389 (exit $ac_status); } &&
9390 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9392 (eval $ac_try) 2>&5
9393 ac_status=$?
9394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9395 (exit $ac_status); }; } &&
9396 { ac_try='test -s conftest$ac_exeext'
9397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9398 (eval $ac_try) 2>&5
9399 ac_status=$?
9400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9401 (exit $ac_status); }; }; then
9402 ac_cv_lib_m_powf=yes
9403 else
9404 echo "$as_me: failed program was:" >&5
9405 sed 's/^/| /' conftest.$ac_ext >&5
9407 ac_cv_lib_m_powf=no
9409 rm -f conftest.err conftest.$ac_objext \
9410 conftest$ac_exeext conftest.$ac_ext
9411 LIBS=$ac_check_lib_save_LIBS
9413 echo "$as_me:$LINENO: result: $ac_cv_lib_m_powf" >&5
9414 echo "${ECHO_T}$ac_cv_lib_m_powf" >&6
9415 if test $ac_cv_lib_m_powf = yes; then
9417 cat >>confdefs.h <<\_ACEOF
9418 #define HAVE_POWF 1
9419 _ACEOF
9423 echo "$as_me:$LINENO: checking for round in -lm" >&5
9424 echo $ECHO_N "checking for round in -lm... $ECHO_C" >&6
9425 if test "${ac_cv_lib_m_round+set}" = set; then
9426 echo $ECHO_N "(cached) $ECHO_C" >&6
9427 else
9428 ac_check_lib_save_LIBS=$LIBS
9429 LIBS="-lm $LIBS"
9430 if test x$gcc_no_link = xyes; then
9431 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9432 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9433 { (exit 1); exit 1; }; }
9435 cat >conftest.$ac_ext <<_ACEOF
9436 /* confdefs.h. */
9437 _ACEOF
9438 cat confdefs.h >>conftest.$ac_ext
9439 cat >>conftest.$ac_ext <<_ACEOF
9440 /* end confdefs.h. */
9442 /* Override any gcc2 internal prototype to avoid an error. */
9443 #ifdef __cplusplus
9444 extern "C"
9445 #endif
9446 /* We use char because int might match the return type of a gcc2
9447 builtin and then its argument prototype would still apply. */
9448 char round ();
9450 main ()
9452 round ();
9454 return 0;
9456 _ACEOF
9457 rm -f conftest.$ac_objext conftest$ac_exeext
9458 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9459 (eval $ac_link) 2>conftest.er1
9460 ac_status=$?
9461 grep -v '^ *+' conftest.er1 >conftest.err
9462 rm -f conftest.er1
9463 cat conftest.err >&5
9464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9465 (exit $ac_status); } &&
9466 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9468 (eval $ac_try) 2>&5
9469 ac_status=$?
9470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9471 (exit $ac_status); }; } &&
9472 { ac_try='test -s conftest$ac_exeext'
9473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9474 (eval $ac_try) 2>&5
9475 ac_status=$?
9476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9477 (exit $ac_status); }; }; then
9478 ac_cv_lib_m_round=yes
9479 else
9480 echo "$as_me: failed program was:" >&5
9481 sed 's/^/| /' conftest.$ac_ext >&5
9483 ac_cv_lib_m_round=no
9485 rm -f conftest.err conftest.$ac_objext \
9486 conftest$ac_exeext conftest.$ac_ext
9487 LIBS=$ac_check_lib_save_LIBS
9489 echo "$as_me:$LINENO: result: $ac_cv_lib_m_round" >&5
9490 echo "${ECHO_T}$ac_cv_lib_m_round" >&6
9491 if test $ac_cv_lib_m_round = yes; then
9493 cat >>confdefs.h <<\_ACEOF
9494 #define HAVE_ROUND 1
9495 _ACEOF
9499 echo "$as_me:$LINENO: checking for roundf in -lm" >&5
9500 echo $ECHO_N "checking for roundf in -lm... $ECHO_C" >&6
9501 if test "${ac_cv_lib_m_roundf+set}" = set; then
9502 echo $ECHO_N "(cached) $ECHO_C" >&6
9503 else
9504 ac_check_lib_save_LIBS=$LIBS
9505 LIBS="-lm $LIBS"
9506 if test x$gcc_no_link = xyes; then
9507 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9508 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9509 { (exit 1); exit 1; }; }
9511 cat >conftest.$ac_ext <<_ACEOF
9512 /* confdefs.h. */
9513 _ACEOF
9514 cat confdefs.h >>conftest.$ac_ext
9515 cat >>conftest.$ac_ext <<_ACEOF
9516 /* end confdefs.h. */
9518 /* Override any gcc2 internal prototype to avoid an error. */
9519 #ifdef __cplusplus
9520 extern "C"
9521 #endif
9522 /* We use char because int might match the return type of a gcc2
9523 builtin and then its argument prototype would still apply. */
9524 char roundf ();
9526 main ()
9528 roundf ();
9530 return 0;
9532 _ACEOF
9533 rm -f conftest.$ac_objext conftest$ac_exeext
9534 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9535 (eval $ac_link) 2>conftest.er1
9536 ac_status=$?
9537 grep -v '^ *+' conftest.er1 >conftest.err
9538 rm -f conftest.er1
9539 cat conftest.err >&5
9540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9541 (exit $ac_status); } &&
9542 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9544 (eval $ac_try) 2>&5
9545 ac_status=$?
9546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9547 (exit $ac_status); }; } &&
9548 { ac_try='test -s conftest$ac_exeext'
9549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9550 (eval $ac_try) 2>&5
9551 ac_status=$?
9552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9553 (exit $ac_status); }; }; then
9554 ac_cv_lib_m_roundf=yes
9555 else
9556 echo "$as_me: failed program was:" >&5
9557 sed 's/^/| /' conftest.$ac_ext >&5
9559 ac_cv_lib_m_roundf=no
9561 rm -f conftest.err conftest.$ac_objext \
9562 conftest$ac_exeext conftest.$ac_ext
9563 LIBS=$ac_check_lib_save_LIBS
9565 echo "$as_me:$LINENO: result: $ac_cv_lib_m_roundf" >&5
9566 echo "${ECHO_T}$ac_cv_lib_m_roundf" >&6
9567 if test $ac_cv_lib_m_roundf = yes; then
9569 cat >>confdefs.h <<\_ACEOF
9570 #define HAVE_ROUNDF 1
9571 _ACEOF
9575 echo "$as_me:$LINENO: checking for scalbnf in -lm" >&5
9576 echo $ECHO_N "checking for scalbnf in -lm... $ECHO_C" >&6
9577 if test "${ac_cv_lib_m_scalbnf+set}" = set; then
9578 echo $ECHO_N "(cached) $ECHO_C" >&6
9579 else
9580 ac_check_lib_save_LIBS=$LIBS
9581 LIBS="-lm $LIBS"
9582 if test x$gcc_no_link = xyes; then
9583 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9584 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9585 { (exit 1); exit 1; }; }
9587 cat >conftest.$ac_ext <<_ACEOF
9588 /* confdefs.h. */
9589 _ACEOF
9590 cat confdefs.h >>conftest.$ac_ext
9591 cat >>conftest.$ac_ext <<_ACEOF
9592 /* end confdefs.h. */
9594 /* Override any gcc2 internal prototype to avoid an error. */
9595 #ifdef __cplusplus
9596 extern "C"
9597 #endif
9598 /* We use char because int might match the return type of a gcc2
9599 builtin and then its argument prototype would still apply. */
9600 char scalbnf ();
9602 main ()
9604 scalbnf ();
9606 return 0;
9608 _ACEOF
9609 rm -f conftest.$ac_objext conftest$ac_exeext
9610 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9611 (eval $ac_link) 2>conftest.er1
9612 ac_status=$?
9613 grep -v '^ *+' conftest.er1 >conftest.err
9614 rm -f conftest.er1
9615 cat conftest.err >&5
9616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9617 (exit $ac_status); } &&
9618 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9620 (eval $ac_try) 2>&5
9621 ac_status=$?
9622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9623 (exit $ac_status); }; } &&
9624 { ac_try='test -s conftest$ac_exeext'
9625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9626 (eval $ac_try) 2>&5
9627 ac_status=$?
9628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9629 (exit $ac_status); }; }; then
9630 ac_cv_lib_m_scalbnf=yes
9631 else
9632 echo "$as_me: failed program was:" >&5
9633 sed 's/^/| /' conftest.$ac_ext >&5
9635 ac_cv_lib_m_scalbnf=no
9637 rm -f conftest.err conftest.$ac_objext \
9638 conftest$ac_exeext conftest.$ac_ext
9639 LIBS=$ac_check_lib_save_LIBS
9641 echo "$as_me:$LINENO: result: $ac_cv_lib_m_scalbnf" >&5
9642 echo "${ECHO_T}$ac_cv_lib_m_scalbnf" >&6
9643 if test $ac_cv_lib_m_scalbnf = yes; then
9645 cat >>confdefs.h <<\_ACEOF
9646 #define HAVE_SCALBNF 1
9647 _ACEOF
9651 echo "$as_me:$LINENO: checking for scalbn in -lm" >&5
9652 echo $ECHO_N "checking for scalbn in -lm... $ECHO_C" >&6
9653 if test "${ac_cv_lib_m_scalbn+set}" = set; then
9654 echo $ECHO_N "(cached) $ECHO_C" >&6
9655 else
9656 ac_check_lib_save_LIBS=$LIBS
9657 LIBS="-lm $LIBS"
9658 if test x$gcc_no_link = xyes; then
9659 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9660 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9661 { (exit 1); exit 1; }; }
9663 cat >conftest.$ac_ext <<_ACEOF
9664 /* confdefs.h. */
9665 _ACEOF
9666 cat confdefs.h >>conftest.$ac_ext
9667 cat >>conftest.$ac_ext <<_ACEOF
9668 /* end confdefs.h. */
9670 /* Override any gcc2 internal prototype to avoid an error. */
9671 #ifdef __cplusplus
9672 extern "C"
9673 #endif
9674 /* We use char because int might match the return type of a gcc2
9675 builtin and then its argument prototype would still apply. */
9676 char scalbn ();
9678 main ()
9680 scalbn ();
9682 return 0;
9684 _ACEOF
9685 rm -f conftest.$ac_objext conftest$ac_exeext
9686 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9687 (eval $ac_link) 2>conftest.er1
9688 ac_status=$?
9689 grep -v '^ *+' conftest.er1 >conftest.err
9690 rm -f conftest.er1
9691 cat conftest.err >&5
9692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9693 (exit $ac_status); } &&
9694 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9696 (eval $ac_try) 2>&5
9697 ac_status=$?
9698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9699 (exit $ac_status); }; } &&
9700 { ac_try='test -s conftest$ac_exeext'
9701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9702 (eval $ac_try) 2>&5
9703 ac_status=$?
9704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9705 (exit $ac_status); }; }; then
9706 ac_cv_lib_m_scalbn=yes
9707 else
9708 echo "$as_me: failed program was:" >&5
9709 sed 's/^/| /' conftest.$ac_ext >&5
9711 ac_cv_lib_m_scalbn=no
9713 rm -f conftest.err conftest.$ac_objext \
9714 conftest$ac_exeext conftest.$ac_ext
9715 LIBS=$ac_check_lib_save_LIBS
9717 echo "$as_me:$LINENO: result: $ac_cv_lib_m_scalbn" >&5
9718 echo "${ECHO_T}$ac_cv_lib_m_scalbn" >&6
9719 if test $ac_cv_lib_m_scalbn = yes; then
9721 cat >>confdefs.h <<\_ACEOF
9722 #define HAVE_SCALBN 1
9723 _ACEOF
9727 echo "$as_me:$LINENO: checking for sinf in -lm" >&5
9728 echo $ECHO_N "checking for sinf in -lm... $ECHO_C" >&6
9729 if test "${ac_cv_lib_m_sinf+set}" = set; then
9730 echo $ECHO_N "(cached) $ECHO_C" >&6
9731 else
9732 ac_check_lib_save_LIBS=$LIBS
9733 LIBS="-lm $LIBS"
9734 if test x$gcc_no_link = xyes; then
9735 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9736 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9737 { (exit 1); exit 1; }; }
9739 cat >conftest.$ac_ext <<_ACEOF
9740 /* confdefs.h. */
9741 _ACEOF
9742 cat confdefs.h >>conftest.$ac_ext
9743 cat >>conftest.$ac_ext <<_ACEOF
9744 /* end confdefs.h. */
9746 /* Override any gcc2 internal prototype to avoid an error. */
9747 #ifdef __cplusplus
9748 extern "C"
9749 #endif
9750 /* We use char because int might match the return type of a gcc2
9751 builtin and then its argument prototype would still apply. */
9752 char sinf ();
9754 main ()
9756 sinf ();
9758 return 0;
9760 _ACEOF
9761 rm -f conftest.$ac_objext conftest$ac_exeext
9762 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9763 (eval $ac_link) 2>conftest.er1
9764 ac_status=$?
9765 grep -v '^ *+' conftest.er1 >conftest.err
9766 rm -f conftest.er1
9767 cat conftest.err >&5
9768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9769 (exit $ac_status); } &&
9770 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9772 (eval $ac_try) 2>&5
9773 ac_status=$?
9774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9775 (exit $ac_status); }; } &&
9776 { ac_try='test -s conftest$ac_exeext'
9777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9778 (eval $ac_try) 2>&5
9779 ac_status=$?
9780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9781 (exit $ac_status); }; }; then
9782 ac_cv_lib_m_sinf=yes
9783 else
9784 echo "$as_me: failed program was:" >&5
9785 sed 's/^/| /' conftest.$ac_ext >&5
9787 ac_cv_lib_m_sinf=no
9789 rm -f conftest.err conftest.$ac_objext \
9790 conftest$ac_exeext conftest.$ac_ext
9791 LIBS=$ac_check_lib_save_LIBS
9793 echo "$as_me:$LINENO: result: $ac_cv_lib_m_sinf" >&5
9794 echo "${ECHO_T}$ac_cv_lib_m_sinf" >&6
9795 if test $ac_cv_lib_m_sinf = yes; then
9797 cat >>confdefs.h <<\_ACEOF
9798 #define HAVE_SINF 1
9799 _ACEOF
9803 echo "$as_me:$LINENO: checking for sinhf in -lm" >&5
9804 echo $ECHO_N "checking for sinhf in -lm... $ECHO_C" >&6
9805 if test "${ac_cv_lib_m_sinhf+set}" = set; then
9806 echo $ECHO_N "(cached) $ECHO_C" >&6
9807 else
9808 ac_check_lib_save_LIBS=$LIBS
9809 LIBS="-lm $LIBS"
9810 if test x$gcc_no_link = xyes; then
9811 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9812 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9813 { (exit 1); exit 1; }; }
9815 cat >conftest.$ac_ext <<_ACEOF
9816 /* confdefs.h. */
9817 _ACEOF
9818 cat confdefs.h >>conftest.$ac_ext
9819 cat >>conftest.$ac_ext <<_ACEOF
9820 /* end confdefs.h. */
9822 /* Override any gcc2 internal prototype to avoid an error. */
9823 #ifdef __cplusplus
9824 extern "C"
9825 #endif
9826 /* We use char because int might match the return type of a gcc2
9827 builtin and then its argument prototype would still apply. */
9828 char sinhf ();
9830 main ()
9832 sinhf ();
9834 return 0;
9836 _ACEOF
9837 rm -f conftest.$ac_objext conftest$ac_exeext
9838 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9839 (eval $ac_link) 2>conftest.er1
9840 ac_status=$?
9841 grep -v '^ *+' conftest.er1 >conftest.err
9842 rm -f conftest.er1
9843 cat conftest.err >&5
9844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9845 (exit $ac_status); } &&
9846 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9848 (eval $ac_try) 2>&5
9849 ac_status=$?
9850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9851 (exit $ac_status); }; } &&
9852 { ac_try='test -s conftest$ac_exeext'
9853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9854 (eval $ac_try) 2>&5
9855 ac_status=$?
9856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9857 (exit $ac_status); }; }; then
9858 ac_cv_lib_m_sinhf=yes
9859 else
9860 echo "$as_me: failed program was:" >&5
9861 sed 's/^/| /' conftest.$ac_ext >&5
9863 ac_cv_lib_m_sinhf=no
9865 rm -f conftest.err conftest.$ac_objext \
9866 conftest$ac_exeext conftest.$ac_ext
9867 LIBS=$ac_check_lib_save_LIBS
9869 echo "$as_me:$LINENO: result: $ac_cv_lib_m_sinhf" >&5
9870 echo "${ECHO_T}$ac_cv_lib_m_sinhf" >&6
9871 if test $ac_cv_lib_m_sinhf = yes; then
9873 cat >>confdefs.h <<\_ACEOF
9874 #define HAVE_SINHF 1
9875 _ACEOF
9879 echo "$as_me:$LINENO: checking for sqrtf in -lm" >&5
9880 echo $ECHO_N "checking for sqrtf in -lm... $ECHO_C" >&6
9881 if test "${ac_cv_lib_m_sqrtf+set}" = set; then
9882 echo $ECHO_N "(cached) $ECHO_C" >&6
9883 else
9884 ac_check_lib_save_LIBS=$LIBS
9885 LIBS="-lm $LIBS"
9886 if test x$gcc_no_link = xyes; then
9887 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9888 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9889 { (exit 1); exit 1; }; }
9891 cat >conftest.$ac_ext <<_ACEOF
9892 /* confdefs.h. */
9893 _ACEOF
9894 cat confdefs.h >>conftest.$ac_ext
9895 cat >>conftest.$ac_ext <<_ACEOF
9896 /* end confdefs.h. */
9898 /* Override any gcc2 internal prototype to avoid an error. */
9899 #ifdef __cplusplus
9900 extern "C"
9901 #endif
9902 /* We use char because int might match the return type of a gcc2
9903 builtin and then its argument prototype would still apply. */
9904 char sqrtf ();
9906 main ()
9908 sqrtf ();
9910 return 0;
9912 _ACEOF
9913 rm -f conftest.$ac_objext conftest$ac_exeext
9914 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9915 (eval $ac_link) 2>conftest.er1
9916 ac_status=$?
9917 grep -v '^ *+' conftest.er1 >conftest.err
9918 rm -f conftest.er1
9919 cat conftest.err >&5
9920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9921 (exit $ac_status); } &&
9922 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9924 (eval $ac_try) 2>&5
9925 ac_status=$?
9926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9927 (exit $ac_status); }; } &&
9928 { ac_try='test -s conftest$ac_exeext'
9929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9930 (eval $ac_try) 2>&5
9931 ac_status=$?
9932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9933 (exit $ac_status); }; }; then
9934 ac_cv_lib_m_sqrtf=yes
9935 else
9936 echo "$as_me: failed program was:" >&5
9937 sed 's/^/| /' conftest.$ac_ext >&5
9939 ac_cv_lib_m_sqrtf=no
9941 rm -f conftest.err conftest.$ac_objext \
9942 conftest$ac_exeext conftest.$ac_ext
9943 LIBS=$ac_check_lib_save_LIBS
9945 echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrtf" >&5
9946 echo "${ECHO_T}$ac_cv_lib_m_sqrtf" >&6
9947 if test $ac_cv_lib_m_sqrtf = yes; then
9949 cat >>confdefs.h <<\_ACEOF
9950 #define HAVE_SQRTF 1
9951 _ACEOF
9955 echo "$as_me:$LINENO: checking for tanf in -lm" >&5
9956 echo $ECHO_N "checking for tanf in -lm... $ECHO_C" >&6
9957 if test "${ac_cv_lib_m_tanf+set}" = set; then
9958 echo $ECHO_N "(cached) $ECHO_C" >&6
9959 else
9960 ac_check_lib_save_LIBS=$LIBS
9961 LIBS="-lm $LIBS"
9962 if test x$gcc_no_link = xyes; then
9963 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9964 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9965 { (exit 1); exit 1; }; }
9967 cat >conftest.$ac_ext <<_ACEOF
9968 /* confdefs.h. */
9969 _ACEOF
9970 cat confdefs.h >>conftest.$ac_ext
9971 cat >>conftest.$ac_ext <<_ACEOF
9972 /* end confdefs.h. */
9974 /* Override any gcc2 internal prototype to avoid an error. */
9975 #ifdef __cplusplus
9976 extern "C"
9977 #endif
9978 /* We use char because int might match the return type of a gcc2
9979 builtin and then its argument prototype would still apply. */
9980 char tanf ();
9982 main ()
9984 tanf ();
9986 return 0;
9988 _ACEOF
9989 rm -f conftest.$ac_objext conftest$ac_exeext
9990 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9991 (eval $ac_link) 2>conftest.er1
9992 ac_status=$?
9993 grep -v '^ *+' conftest.er1 >conftest.err
9994 rm -f conftest.er1
9995 cat conftest.err >&5
9996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9997 (exit $ac_status); } &&
9998 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10000 (eval $ac_try) 2>&5
10001 ac_status=$?
10002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10003 (exit $ac_status); }; } &&
10004 { ac_try='test -s conftest$ac_exeext'
10005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10006 (eval $ac_try) 2>&5
10007 ac_status=$?
10008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10009 (exit $ac_status); }; }; then
10010 ac_cv_lib_m_tanf=yes
10011 else
10012 echo "$as_me: failed program was:" >&5
10013 sed 's/^/| /' conftest.$ac_ext >&5
10015 ac_cv_lib_m_tanf=no
10017 rm -f conftest.err conftest.$ac_objext \
10018 conftest$ac_exeext conftest.$ac_ext
10019 LIBS=$ac_check_lib_save_LIBS
10021 echo "$as_me:$LINENO: result: $ac_cv_lib_m_tanf" >&5
10022 echo "${ECHO_T}$ac_cv_lib_m_tanf" >&6
10023 if test $ac_cv_lib_m_tanf = yes; then
10025 cat >>confdefs.h <<\_ACEOF
10026 #define HAVE_TANF 1
10027 _ACEOF
10031 echo "$as_me:$LINENO: checking for tanhf in -lm" >&5
10032 echo $ECHO_N "checking for tanhf in -lm... $ECHO_C" >&6
10033 if test "${ac_cv_lib_m_tanhf+set}" = set; then
10034 echo $ECHO_N "(cached) $ECHO_C" >&6
10035 else
10036 ac_check_lib_save_LIBS=$LIBS
10037 LIBS="-lm $LIBS"
10038 if test x$gcc_no_link = xyes; then
10039 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10040 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10041 { (exit 1); exit 1; }; }
10043 cat >conftest.$ac_ext <<_ACEOF
10044 /* confdefs.h. */
10045 _ACEOF
10046 cat confdefs.h >>conftest.$ac_ext
10047 cat >>conftest.$ac_ext <<_ACEOF
10048 /* end confdefs.h. */
10050 /* Override any gcc2 internal prototype to avoid an error. */
10051 #ifdef __cplusplus
10052 extern "C"
10053 #endif
10054 /* We use char because int might match the return type of a gcc2
10055 builtin and then its argument prototype would still apply. */
10056 char tanhf ();
10058 main ()
10060 tanhf ();
10062 return 0;
10064 _ACEOF
10065 rm -f conftest.$ac_objext conftest$ac_exeext
10066 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10067 (eval $ac_link) 2>conftest.er1
10068 ac_status=$?
10069 grep -v '^ *+' conftest.er1 >conftest.err
10070 rm -f conftest.er1
10071 cat conftest.err >&5
10072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10073 (exit $ac_status); } &&
10074 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10076 (eval $ac_try) 2>&5
10077 ac_status=$?
10078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10079 (exit $ac_status); }; } &&
10080 { ac_try='test -s conftest$ac_exeext'
10081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10082 (eval $ac_try) 2>&5
10083 ac_status=$?
10084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10085 (exit $ac_status); }; }; then
10086 ac_cv_lib_m_tanhf=yes
10087 else
10088 echo "$as_me: failed program was:" >&5
10089 sed 's/^/| /' conftest.$ac_ext >&5
10091 ac_cv_lib_m_tanhf=no
10093 rm -f conftest.err conftest.$ac_objext \
10094 conftest$ac_exeext conftest.$ac_ext
10095 LIBS=$ac_check_lib_save_LIBS
10097 echo "$as_me:$LINENO: result: $ac_cv_lib_m_tanhf" >&5
10098 echo "${ECHO_T}$ac_cv_lib_m_tanhf" >&6
10099 if test $ac_cv_lib_m_tanhf = yes; then
10101 cat >>confdefs.h <<\_ACEOF
10102 #define HAVE_TANHF 1
10103 _ACEOF
10107 echo "$as_me:$LINENO: checking for trunc in -lm" >&5
10108 echo $ECHO_N "checking for trunc in -lm... $ECHO_C" >&6
10109 if test "${ac_cv_lib_m_trunc+set}" = set; then
10110 echo $ECHO_N "(cached) $ECHO_C" >&6
10111 else
10112 ac_check_lib_save_LIBS=$LIBS
10113 LIBS="-lm $LIBS"
10114 if test x$gcc_no_link = xyes; then
10115 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10116 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10117 { (exit 1); exit 1; }; }
10119 cat >conftest.$ac_ext <<_ACEOF
10120 /* confdefs.h. */
10121 _ACEOF
10122 cat confdefs.h >>conftest.$ac_ext
10123 cat >>conftest.$ac_ext <<_ACEOF
10124 /* end confdefs.h. */
10126 /* Override any gcc2 internal prototype to avoid an error. */
10127 #ifdef __cplusplus
10128 extern "C"
10129 #endif
10130 /* We use char because int might match the return type of a gcc2
10131 builtin and then its argument prototype would still apply. */
10132 char trunc ();
10134 main ()
10136 trunc ();
10138 return 0;
10140 _ACEOF
10141 rm -f conftest.$ac_objext conftest$ac_exeext
10142 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10143 (eval $ac_link) 2>conftest.er1
10144 ac_status=$?
10145 grep -v '^ *+' conftest.er1 >conftest.err
10146 rm -f conftest.er1
10147 cat conftest.err >&5
10148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10149 (exit $ac_status); } &&
10150 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10152 (eval $ac_try) 2>&5
10153 ac_status=$?
10154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10155 (exit $ac_status); }; } &&
10156 { ac_try='test -s conftest$ac_exeext'
10157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10158 (eval $ac_try) 2>&5
10159 ac_status=$?
10160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10161 (exit $ac_status); }; }; then
10162 ac_cv_lib_m_trunc=yes
10163 else
10164 echo "$as_me: failed program was:" >&5
10165 sed 's/^/| /' conftest.$ac_ext >&5
10167 ac_cv_lib_m_trunc=no
10169 rm -f conftest.err conftest.$ac_objext \
10170 conftest$ac_exeext conftest.$ac_ext
10171 LIBS=$ac_check_lib_save_LIBS
10173 echo "$as_me:$LINENO: result: $ac_cv_lib_m_trunc" >&5
10174 echo "${ECHO_T}$ac_cv_lib_m_trunc" >&6
10175 if test $ac_cv_lib_m_trunc = yes; then
10177 cat >>confdefs.h <<\_ACEOF
10178 #define HAVE_TRUNC 1
10179 _ACEOF
10183 echo "$as_me:$LINENO: checking for truncf in -lm" >&5
10184 echo $ECHO_N "checking for truncf in -lm... $ECHO_C" >&6
10185 if test "${ac_cv_lib_m_truncf+set}" = set; then
10186 echo $ECHO_N "(cached) $ECHO_C" >&6
10187 else
10188 ac_check_lib_save_LIBS=$LIBS
10189 LIBS="-lm $LIBS"
10190 if test x$gcc_no_link = xyes; then
10191 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10192 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10193 { (exit 1); exit 1; }; }
10195 cat >conftest.$ac_ext <<_ACEOF
10196 /* confdefs.h. */
10197 _ACEOF
10198 cat confdefs.h >>conftest.$ac_ext
10199 cat >>conftest.$ac_ext <<_ACEOF
10200 /* end confdefs.h. */
10202 /* Override any gcc2 internal prototype to avoid an error. */
10203 #ifdef __cplusplus
10204 extern "C"
10205 #endif
10206 /* We use char because int might match the return type of a gcc2
10207 builtin and then its argument prototype would still apply. */
10208 char truncf ();
10210 main ()
10212 truncf ();
10214 return 0;
10216 _ACEOF
10217 rm -f conftest.$ac_objext conftest$ac_exeext
10218 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10219 (eval $ac_link) 2>conftest.er1
10220 ac_status=$?
10221 grep -v '^ *+' conftest.er1 >conftest.err
10222 rm -f conftest.er1
10223 cat conftest.err >&5
10224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10225 (exit $ac_status); } &&
10226 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10228 (eval $ac_try) 2>&5
10229 ac_status=$?
10230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10231 (exit $ac_status); }; } &&
10232 { ac_try='test -s conftest$ac_exeext'
10233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10234 (eval $ac_try) 2>&5
10235 ac_status=$?
10236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10237 (exit $ac_status); }; }; then
10238 ac_cv_lib_m_truncf=yes
10239 else
10240 echo "$as_me: failed program was:" >&5
10241 sed 's/^/| /' conftest.$ac_ext >&5
10243 ac_cv_lib_m_truncf=no
10245 rm -f conftest.err conftest.$ac_objext \
10246 conftest$ac_exeext conftest.$ac_ext
10247 LIBS=$ac_check_lib_save_LIBS
10249 echo "$as_me:$LINENO: result: $ac_cv_lib_m_truncf" >&5
10250 echo "${ECHO_T}$ac_cv_lib_m_truncf" >&6
10251 if test $ac_cv_lib_m_truncf = yes; then
10253 cat >>confdefs.h <<\_ACEOF
10254 #define HAVE_TRUNCF 1
10255 _ACEOF
10259 echo "$as_me:$LINENO: checking for erf in -lm" >&5
10260 echo $ECHO_N "checking for erf in -lm... $ECHO_C" >&6
10261 if test "${ac_cv_lib_m_erf+set}" = set; then
10262 echo $ECHO_N "(cached) $ECHO_C" >&6
10263 else
10264 ac_check_lib_save_LIBS=$LIBS
10265 LIBS="-lm $LIBS"
10266 if test x$gcc_no_link = xyes; then
10267 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10268 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10269 { (exit 1); exit 1; }; }
10271 cat >conftest.$ac_ext <<_ACEOF
10272 /* confdefs.h. */
10273 _ACEOF
10274 cat confdefs.h >>conftest.$ac_ext
10275 cat >>conftest.$ac_ext <<_ACEOF
10276 /* end confdefs.h. */
10278 /* Override any gcc2 internal prototype to avoid an error. */
10279 #ifdef __cplusplus
10280 extern "C"
10281 #endif
10282 /* We use char because int might match the return type of a gcc2
10283 builtin and then its argument prototype would still apply. */
10284 char erf ();
10286 main ()
10288 erf ();
10290 return 0;
10292 _ACEOF
10293 rm -f conftest.$ac_objext conftest$ac_exeext
10294 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10295 (eval $ac_link) 2>conftest.er1
10296 ac_status=$?
10297 grep -v '^ *+' conftest.er1 >conftest.err
10298 rm -f conftest.er1
10299 cat conftest.err >&5
10300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10301 (exit $ac_status); } &&
10302 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10304 (eval $ac_try) 2>&5
10305 ac_status=$?
10306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10307 (exit $ac_status); }; } &&
10308 { ac_try='test -s conftest$ac_exeext'
10309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10310 (eval $ac_try) 2>&5
10311 ac_status=$?
10312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10313 (exit $ac_status); }; }; then
10314 ac_cv_lib_m_erf=yes
10315 else
10316 echo "$as_me: failed program was:" >&5
10317 sed 's/^/| /' conftest.$ac_ext >&5
10319 ac_cv_lib_m_erf=no
10321 rm -f conftest.err conftest.$ac_objext \
10322 conftest$ac_exeext conftest.$ac_ext
10323 LIBS=$ac_check_lib_save_LIBS
10325 echo "$as_me:$LINENO: result: $ac_cv_lib_m_erf" >&5
10326 echo "${ECHO_T}$ac_cv_lib_m_erf" >&6
10327 if test $ac_cv_lib_m_erf = yes; then
10329 cat >>confdefs.h <<\_ACEOF
10330 #define HAVE_ERF 1
10331 _ACEOF
10335 echo "$as_me:$LINENO: checking for erfc in -lm" >&5
10336 echo $ECHO_N "checking for erfc in -lm... $ECHO_C" >&6
10337 if test "${ac_cv_lib_m_erfc+set}" = set; then
10338 echo $ECHO_N "(cached) $ECHO_C" >&6
10339 else
10340 ac_check_lib_save_LIBS=$LIBS
10341 LIBS="-lm $LIBS"
10342 if test x$gcc_no_link = xyes; then
10343 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10344 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10345 { (exit 1); exit 1; }; }
10347 cat >conftest.$ac_ext <<_ACEOF
10348 /* confdefs.h. */
10349 _ACEOF
10350 cat confdefs.h >>conftest.$ac_ext
10351 cat >>conftest.$ac_ext <<_ACEOF
10352 /* end confdefs.h. */
10354 /* Override any gcc2 internal prototype to avoid an error. */
10355 #ifdef __cplusplus
10356 extern "C"
10357 #endif
10358 /* We use char because int might match the return type of a gcc2
10359 builtin and then its argument prototype would still apply. */
10360 char erfc ();
10362 main ()
10364 erfc ();
10366 return 0;
10368 _ACEOF
10369 rm -f conftest.$ac_objext conftest$ac_exeext
10370 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10371 (eval $ac_link) 2>conftest.er1
10372 ac_status=$?
10373 grep -v '^ *+' conftest.er1 >conftest.err
10374 rm -f conftest.er1
10375 cat conftest.err >&5
10376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10377 (exit $ac_status); } &&
10378 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10380 (eval $ac_try) 2>&5
10381 ac_status=$?
10382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10383 (exit $ac_status); }; } &&
10384 { ac_try='test -s conftest$ac_exeext'
10385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10386 (eval $ac_try) 2>&5
10387 ac_status=$?
10388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10389 (exit $ac_status); }; }; then
10390 ac_cv_lib_m_erfc=yes
10391 else
10392 echo "$as_me: failed program was:" >&5
10393 sed 's/^/| /' conftest.$ac_ext >&5
10395 ac_cv_lib_m_erfc=no
10397 rm -f conftest.err conftest.$ac_objext \
10398 conftest$ac_exeext conftest.$ac_ext
10399 LIBS=$ac_check_lib_save_LIBS
10401 echo "$as_me:$LINENO: result: $ac_cv_lib_m_erfc" >&5
10402 echo "${ECHO_T}$ac_cv_lib_m_erfc" >&6
10403 if test $ac_cv_lib_m_erfc = yes; then
10405 cat >>confdefs.h <<\_ACEOF
10406 #define HAVE_ERFC 1
10407 _ACEOF
10411 echo "$as_me:$LINENO: checking for erfcf in -lm" >&5
10412 echo $ECHO_N "checking for erfcf in -lm... $ECHO_C" >&6
10413 if test "${ac_cv_lib_m_erfcf+set}" = set; then
10414 echo $ECHO_N "(cached) $ECHO_C" >&6
10415 else
10416 ac_check_lib_save_LIBS=$LIBS
10417 LIBS="-lm $LIBS"
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
10420 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10421 { (exit 1); exit 1; }; }
10423 cat >conftest.$ac_ext <<_ACEOF
10424 /* confdefs.h. */
10425 _ACEOF
10426 cat confdefs.h >>conftest.$ac_ext
10427 cat >>conftest.$ac_ext <<_ACEOF
10428 /* end confdefs.h. */
10430 /* Override any gcc2 internal prototype to avoid an error. */
10431 #ifdef __cplusplus
10432 extern "C"
10433 #endif
10434 /* We use char because int might match the return type of a gcc2
10435 builtin and then its argument prototype would still apply. */
10436 char erfcf ();
10438 main ()
10440 erfcf ();
10442 return 0;
10444 _ACEOF
10445 rm -f conftest.$ac_objext conftest$ac_exeext
10446 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10447 (eval $ac_link) 2>conftest.er1
10448 ac_status=$?
10449 grep -v '^ *+' conftest.er1 >conftest.err
10450 rm -f conftest.er1
10451 cat conftest.err >&5
10452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10453 (exit $ac_status); } &&
10454 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10456 (eval $ac_try) 2>&5
10457 ac_status=$?
10458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10459 (exit $ac_status); }; } &&
10460 { ac_try='test -s conftest$ac_exeext'
10461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10462 (eval $ac_try) 2>&5
10463 ac_status=$?
10464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10465 (exit $ac_status); }; }; then
10466 ac_cv_lib_m_erfcf=yes
10467 else
10468 echo "$as_me: failed program was:" >&5
10469 sed 's/^/| /' conftest.$ac_ext >&5
10471 ac_cv_lib_m_erfcf=no
10473 rm -f conftest.err conftest.$ac_objext \
10474 conftest$ac_exeext conftest.$ac_ext
10475 LIBS=$ac_check_lib_save_LIBS
10477 echo "$as_me:$LINENO: result: $ac_cv_lib_m_erfcf" >&5
10478 echo "${ECHO_T}$ac_cv_lib_m_erfcf" >&6
10479 if test $ac_cv_lib_m_erfcf = yes; then
10481 cat >>confdefs.h <<\_ACEOF
10482 #define HAVE_ERFCF 1
10483 _ACEOF
10487 echo "$as_me:$LINENO: checking for erff in -lm" >&5
10488 echo $ECHO_N "checking for erff in -lm... $ECHO_C" >&6
10489 if test "${ac_cv_lib_m_erff+set}" = set; then
10490 echo $ECHO_N "(cached) $ECHO_C" >&6
10491 else
10492 ac_check_lib_save_LIBS=$LIBS
10493 LIBS="-lm $LIBS"
10494 if test x$gcc_no_link = xyes; then
10495 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10496 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10497 { (exit 1); exit 1; }; }
10499 cat >conftest.$ac_ext <<_ACEOF
10500 /* confdefs.h. */
10501 _ACEOF
10502 cat confdefs.h >>conftest.$ac_ext
10503 cat >>conftest.$ac_ext <<_ACEOF
10504 /* end confdefs.h. */
10506 /* Override any gcc2 internal prototype to avoid an error. */
10507 #ifdef __cplusplus
10508 extern "C"
10509 #endif
10510 /* We use char because int might match the return type of a gcc2
10511 builtin and then its argument prototype would still apply. */
10512 char erff ();
10514 main ()
10516 erff ();
10518 return 0;
10520 _ACEOF
10521 rm -f conftest.$ac_objext conftest$ac_exeext
10522 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10523 (eval $ac_link) 2>conftest.er1
10524 ac_status=$?
10525 grep -v '^ *+' conftest.er1 >conftest.err
10526 rm -f conftest.er1
10527 cat conftest.err >&5
10528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10529 (exit $ac_status); } &&
10530 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10532 (eval $ac_try) 2>&5
10533 ac_status=$?
10534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10535 (exit $ac_status); }; } &&
10536 { ac_try='test -s conftest$ac_exeext'
10537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10538 (eval $ac_try) 2>&5
10539 ac_status=$?
10540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10541 (exit $ac_status); }; }; then
10542 ac_cv_lib_m_erff=yes
10543 else
10544 echo "$as_me: failed program was:" >&5
10545 sed 's/^/| /' conftest.$ac_ext >&5
10547 ac_cv_lib_m_erff=no
10549 rm -f conftest.err conftest.$ac_objext \
10550 conftest$ac_exeext conftest.$ac_ext
10551 LIBS=$ac_check_lib_save_LIBS
10553 echo "$as_me:$LINENO: result: $ac_cv_lib_m_erff" >&5
10554 echo "${ECHO_T}$ac_cv_lib_m_erff" >&6
10555 if test $ac_cv_lib_m_erff = yes; then
10557 cat >>confdefs.h <<\_ACEOF
10558 #define HAVE_ERFF 1
10559 _ACEOF
10563 echo "$as_me:$LINENO: checking for j0 in -lm" >&5
10564 echo $ECHO_N "checking for j0 in -lm... $ECHO_C" >&6
10565 if test "${ac_cv_lib_m_j0+set}" = set; then
10566 echo $ECHO_N "(cached) $ECHO_C" >&6
10567 else
10568 ac_check_lib_save_LIBS=$LIBS
10569 LIBS="-lm $LIBS"
10570 if test x$gcc_no_link = xyes; then
10571 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10572 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10573 { (exit 1); exit 1; }; }
10575 cat >conftest.$ac_ext <<_ACEOF
10576 /* confdefs.h. */
10577 _ACEOF
10578 cat confdefs.h >>conftest.$ac_ext
10579 cat >>conftest.$ac_ext <<_ACEOF
10580 /* end confdefs.h. */
10582 /* Override any gcc2 internal prototype to avoid an error. */
10583 #ifdef __cplusplus
10584 extern "C"
10585 #endif
10586 /* We use char because int might match the return type of a gcc2
10587 builtin and then its argument prototype would still apply. */
10588 char j0 ();
10590 main ()
10592 j0 ();
10594 return 0;
10596 _ACEOF
10597 rm -f conftest.$ac_objext conftest$ac_exeext
10598 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10599 (eval $ac_link) 2>conftest.er1
10600 ac_status=$?
10601 grep -v '^ *+' conftest.er1 >conftest.err
10602 rm -f conftest.er1
10603 cat conftest.err >&5
10604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10605 (exit $ac_status); } &&
10606 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10608 (eval $ac_try) 2>&5
10609 ac_status=$?
10610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10611 (exit $ac_status); }; } &&
10612 { ac_try='test -s conftest$ac_exeext'
10613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10614 (eval $ac_try) 2>&5
10615 ac_status=$?
10616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10617 (exit $ac_status); }; }; then
10618 ac_cv_lib_m_j0=yes
10619 else
10620 echo "$as_me: failed program was:" >&5
10621 sed 's/^/| /' conftest.$ac_ext >&5
10623 ac_cv_lib_m_j0=no
10625 rm -f conftest.err conftest.$ac_objext \
10626 conftest$ac_exeext conftest.$ac_ext
10627 LIBS=$ac_check_lib_save_LIBS
10629 echo "$as_me:$LINENO: result: $ac_cv_lib_m_j0" >&5
10630 echo "${ECHO_T}$ac_cv_lib_m_j0" >&6
10631 if test $ac_cv_lib_m_j0 = yes; then
10633 cat >>confdefs.h <<\_ACEOF
10634 #define HAVE_J0 1
10635 _ACEOF
10639 echo "$as_me:$LINENO: checking for j0f in -lm" >&5
10640 echo $ECHO_N "checking for j0f in -lm... $ECHO_C" >&6
10641 if test "${ac_cv_lib_m_j0f+set}" = set; then
10642 echo $ECHO_N "(cached) $ECHO_C" >&6
10643 else
10644 ac_check_lib_save_LIBS=$LIBS
10645 LIBS="-lm $LIBS"
10646 if test x$gcc_no_link = xyes; then
10647 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10648 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10649 { (exit 1); exit 1; }; }
10651 cat >conftest.$ac_ext <<_ACEOF
10652 /* confdefs.h. */
10653 _ACEOF
10654 cat confdefs.h >>conftest.$ac_ext
10655 cat >>conftest.$ac_ext <<_ACEOF
10656 /* end confdefs.h. */
10658 /* Override any gcc2 internal prototype to avoid an error. */
10659 #ifdef __cplusplus
10660 extern "C"
10661 #endif
10662 /* We use char because int might match the return type of a gcc2
10663 builtin and then its argument prototype would still apply. */
10664 char j0f ();
10666 main ()
10668 j0f ();
10670 return 0;
10672 _ACEOF
10673 rm -f conftest.$ac_objext conftest$ac_exeext
10674 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10675 (eval $ac_link) 2>conftest.er1
10676 ac_status=$?
10677 grep -v '^ *+' conftest.er1 >conftest.err
10678 rm -f conftest.er1
10679 cat conftest.err >&5
10680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10681 (exit $ac_status); } &&
10682 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10684 (eval $ac_try) 2>&5
10685 ac_status=$?
10686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10687 (exit $ac_status); }; } &&
10688 { ac_try='test -s conftest$ac_exeext'
10689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10690 (eval $ac_try) 2>&5
10691 ac_status=$?
10692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10693 (exit $ac_status); }; }; then
10694 ac_cv_lib_m_j0f=yes
10695 else
10696 echo "$as_me: failed program was:" >&5
10697 sed 's/^/| /' conftest.$ac_ext >&5
10699 ac_cv_lib_m_j0f=no
10701 rm -f conftest.err conftest.$ac_objext \
10702 conftest$ac_exeext conftest.$ac_ext
10703 LIBS=$ac_check_lib_save_LIBS
10705 echo "$as_me:$LINENO: result: $ac_cv_lib_m_j0f" >&5
10706 echo "${ECHO_T}$ac_cv_lib_m_j0f" >&6
10707 if test $ac_cv_lib_m_j0f = yes; then
10709 cat >>confdefs.h <<\_ACEOF
10710 #define HAVE_J0F 1
10711 _ACEOF
10715 echo "$as_me:$LINENO: checking for j1 in -lm" >&5
10716 echo $ECHO_N "checking for j1 in -lm... $ECHO_C" >&6
10717 if test "${ac_cv_lib_m_j1+set}" = set; then
10718 echo $ECHO_N "(cached) $ECHO_C" >&6
10719 else
10720 ac_check_lib_save_LIBS=$LIBS
10721 LIBS="-lm $LIBS"
10722 if test x$gcc_no_link = xyes; then
10723 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10724 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10725 { (exit 1); exit 1; }; }
10727 cat >conftest.$ac_ext <<_ACEOF
10728 /* confdefs.h. */
10729 _ACEOF
10730 cat confdefs.h >>conftest.$ac_ext
10731 cat >>conftest.$ac_ext <<_ACEOF
10732 /* end confdefs.h. */
10734 /* Override any gcc2 internal prototype to avoid an error. */
10735 #ifdef __cplusplus
10736 extern "C"
10737 #endif
10738 /* We use char because int might match the return type of a gcc2
10739 builtin and then its argument prototype would still apply. */
10740 char j1 ();
10742 main ()
10744 j1 ();
10746 return 0;
10748 _ACEOF
10749 rm -f conftest.$ac_objext conftest$ac_exeext
10750 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10751 (eval $ac_link) 2>conftest.er1
10752 ac_status=$?
10753 grep -v '^ *+' conftest.er1 >conftest.err
10754 rm -f conftest.er1
10755 cat conftest.err >&5
10756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10757 (exit $ac_status); } &&
10758 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10760 (eval $ac_try) 2>&5
10761 ac_status=$?
10762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10763 (exit $ac_status); }; } &&
10764 { ac_try='test -s conftest$ac_exeext'
10765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10766 (eval $ac_try) 2>&5
10767 ac_status=$?
10768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10769 (exit $ac_status); }; }; then
10770 ac_cv_lib_m_j1=yes
10771 else
10772 echo "$as_me: failed program was:" >&5
10773 sed 's/^/| /' conftest.$ac_ext >&5
10775 ac_cv_lib_m_j1=no
10777 rm -f conftest.err conftest.$ac_objext \
10778 conftest$ac_exeext conftest.$ac_ext
10779 LIBS=$ac_check_lib_save_LIBS
10781 echo "$as_me:$LINENO: result: $ac_cv_lib_m_j1" >&5
10782 echo "${ECHO_T}$ac_cv_lib_m_j1" >&6
10783 if test $ac_cv_lib_m_j1 = yes; then
10785 cat >>confdefs.h <<\_ACEOF
10786 #define HAVE_J1 1
10787 _ACEOF
10791 echo "$as_me:$LINENO: checking for j1f in -lm" >&5
10792 echo $ECHO_N "checking for j1f in -lm... $ECHO_C" >&6
10793 if test "${ac_cv_lib_m_j1f+set}" = set; then
10794 echo $ECHO_N "(cached) $ECHO_C" >&6
10795 else
10796 ac_check_lib_save_LIBS=$LIBS
10797 LIBS="-lm $LIBS"
10798 if test x$gcc_no_link = xyes; then
10799 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10800 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10801 { (exit 1); exit 1; }; }
10803 cat >conftest.$ac_ext <<_ACEOF
10804 /* confdefs.h. */
10805 _ACEOF
10806 cat confdefs.h >>conftest.$ac_ext
10807 cat >>conftest.$ac_ext <<_ACEOF
10808 /* end confdefs.h. */
10810 /* Override any gcc2 internal prototype to avoid an error. */
10811 #ifdef __cplusplus
10812 extern "C"
10813 #endif
10814 /* We use char because int might match the return type of a gcc2
10815 builtin and then its argument prototype would still apply. */
10816 char j1f ();
10818 main ()
10820 j1f ();
10822 return 0;
10824 _ACEOF
10825 rm -f conftest.$ac_objext conftest$ac_exeext
10826 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10827 (eval $ac_link) 2>conftest.er1
10828 ac_status=$?
10829 grep -v '^ *+' conftest.er1 >conftest.err
10830 rm -f conftest.er1
10831 cat conftest.err >&5
10832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10833 (exit $ac_status); } &&
10834 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10836 (eval $ac_try) 2>&5
10837 ac_status=$?
10838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10839 (exit $ac_status); }; } &&
10840 { ac_try='test -s conftest$ac_exeext'
10841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10842 (eval $ac_try) 2>&5
10843 ac_status=$?
10844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10845 (exit $ac_status); }; }; then
10846 ac_cv_lib_m_j1f=yes
10847 else
10848 echo "$as_me: failed program was:" >&5
10849 sed 's/^/| /' conftest.$ac_ext >&5
10851 ac_cv_lib_m_j1f=no
10853 rm -f conftest.err conftest.$ac_objext \
10854 conftest$ac_exeext conftest.$ac_ext
10855 LIBS=$ac_check_lib_save_LIBS
10857 echo "$as_me:$LINENO: result: $ac_cv_lib_m_j1f" >&5
10858 echo "${ECHO_T}$ac_cv_lib_m_j1f" >&6
10859 if test $ac_cv_lib_m_j1f = yes; then
10861 cat >>confdefs.h <<\_ACEOF
10862 #define HAVE_J1F 1
10863 _ACEOF
10867 echo "$as_me:$LINENO: checking for jn in -lm" >&5
10868 echo $ECHO_N "checking for jn in -lm... $ECHO_C" >&6
10869 if test "${ac_cv_lib_m_jn+set}" = set; then
10870 echo $ECHO_N "(cached) $ECHO_C" >&6
10871 else
10872 ac_check_lib_save_LIBS=$LIBS
10873 LIBS="-lm $LIBS"
10874 if test x$gcc_no_link = xyes; then
10875 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10876 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10877 { (exit 1); exit 1; }; }
10879 cat >conftest.$ac_ext <<_ACEOF
10880 /* confdefs.h. */
10881 _ACEOF
10882 cat confdefs.h >>conftest.$ac_ext
10883 cat >>conftest.$ac_ext <<_ACEOF
10884 /* end confdefs.h. */
10886 /* Override any gcc2 internal prototype to avoid an error. */
10887 #ifdef __cplusplus
10888 extern "C"
10889 #endif
10890 /* We use char because int might match the return type of a gcc2
10891 builtin and then its argument prototype would still apply. */
10892 char jn ();
10894 main ()
10896 jn ();
10898 return 0;
10900 _ACEOF
10901 rm -f conftest.$ac_objext conftest$ac_exeext
10902 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10903 (eval $ac_link) 2>conftest.er1
10904 ac_status=$?
10905 grep -v '^ *+' conftest.er1 >conftest.err
10906 rm -f conftest.er1
10907 cat conftest.err >&5
10908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10909 (exit $ac_status); } &&
10910 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10912 (eval $ac_try) 2>&5
10913 ac_status=$?
10914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10915 (exit $ac_status); }; } &&
10916 { ac_try='test -s conftest$ac_exeext'
10917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10918 (eval $ac_try) 2>&5
10919 ac_status=$?
10920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10921 (exit $ac_status); }; }; then
10922 ac_cv_lib_m_jn=yes
10923 else
10924 echo "$as_me: failed program was:" >&5
10925 sed 's/^/| /' conftest.$ac_ext >&5
10927 ac_cv_lib_m_jn=no
10929 rm -f conftest.err conftest.$ac_objext \
10930 conftest$ac_exeext conftest.$ac_ext
10931 LIBS=$ac_check_lib_save_LIBS
10933 echo "$as_me:$LINENO: result: $ac_cv_lib_m_jn" >&5
10934 echo "${ECHO_T}$ac_cv_lib_m_jn" >&6
10935 if test $ac_cv_lib_m_jn = yes; then
10937 cat >>confdefs.h <<\_ACEOF
10938 #define HAVE_JN 1
10939 _ACEOF
10943 echo "$as_me:$LINENO: checking for jnf in -lm" >&5
10944 echo $ECHO_N "checking for jnf in -lm... $ECHO_C" >&6
10945 if test "${ac_cv_lib_m_jnf+set}" = set; then
10946 echo $ECHO_N "(cached) $ECHO_C" >&6
10947 else
10948 ac_check_lib_save_LIBS=$LIBS
10949 LIBS="-lm $LIBS"
10950 if test x$gcc_no_link = xyes; then
10951 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10952 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10953 { (exit 1); exit 1; }; }
10955 cat >conftest.$ac_ext <<_ACEOF
10956 /* confdefs.h. */
10957 _ACEOF
10958 cat confdefs.h >>conftest.$ac_ext
10959 cat >>conftest.$ac_ext <<_ACEOF
10960 /* end confdefs.h. */
10962 /* Override any gcc2 internal prototype to avoid an error. */
10963 #ifdef __cplusplus
10964 extern "C"
10965 #endif
10966 /* We use char because int might match the return type of a gcc2
10967 builtin and then its argument prototype would still apply. */
10968 char jnf ();
10970 main ()
10972 jnf ();
10974 return 0;
10976 _ACEOF
10977 rm -f conftest.$ac_objext conftest$ac_exeext
10978 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10979 (eval $ac_link) 2>conftest.er1
10980 ac_status=$?
10981 grep -v '^ *+' conftest.er1 >conftest.err
10982 rm -f conftest.er1
10983 cat conftest.err >&5
10984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10985 (exit $ac_status); } &&
10986 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10988 (eval $ac_try) 2>&5
10989 ac_status=$?
10990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10991 (exit $ac_status); }; } &&
10992 { ac_try='test -s conftest$ac_exeext'
10993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10994 (eval $ac_try) 2>&5
10995 ac_status=$?
10996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10997 (exit $ac_status); }; }; then
10998 ac_cv_lib_m_jnf=yes
10999 else
11000 echo "$as_me: failed program was:" >&5
11001 sed 's/^/| /' conftest.$ac_ext >&5
11003 ac_cv_lib_m_jnf=no
11005 rm -f conftest.err conftest.$ac_objext \
11006 conftest$ac_exeext conftest.$ac_ext
11007 LIBS=$ac_check_lib_save_LIBS
11009 echo "$as_me:$LINENO: result: $ac_cv_lib_m_jnf" >&5
11010 echo "${ECHO_T}$ac_cv_lib_m_jnf" >&6
11011 if test $ac_cv_lib_m_jnf = yes; then
11013 cat >>confdefs.h <<\_ACEOF
11014 #define HAVE_JNF 1
11015 _ACEOF
11019 echo "$as_me:$LINENO: checking for y0 in -lm" >&5
11020 echo $ECHO_N "checking for y0 in -lm... $ECHO_C" >&6
11021 if test "${ac_cv_lib_m_y0+set}" = set; then
11022 echo $ECHO_N "(cached) $ECHO_C" >&6
11023 else
11024 ac_check_lib_save_LIBS=$LIBS
11025 LIBS="-lm $LIBS"
11026 if test x$gcc_no_link = xyes; then
11027 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11028 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11029 { (exit 1); exit 1; }; }
11031 cat >conftest.$ac_ext <<_ACEOF
11032 /* confdefs.h. */
11033 _ACEOF
11034 cat confdefs.h >>conftest.$ac_ext
11035 cat >>conftest.$ac_ext <<_ACEOF
11036 /* end confdefs.h. */
11038 /* Override any gcc2 internal prototype to avoid an error. */
11039 #ifdef __cplusplus
11040 extern "C"
11041 #endif
11042 /* We use char because int might match the return type of a gcc2
11043 builtin and then its argument prototype would still apply. */
11044 char y0 ();
11046 main ()
11048 y0 ();
11050 return 0;
11052 _ACEOF
11053 rm -f conftest.$ac_objext conftest$ac_exeext
11054 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11055 (eval $ac_link) 2>conftest.er1
11056 ac_status=$?
11057 grep -v '^ *+' conftest.er1 >conftest.err
11058 rm -f conftest.er1
11059 cat conftest.err >&5
11060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11061 (exit $ac_status); } &&
11062 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11064 (eval $ac_try) 2>&5
11065 ac_status=$?
11066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11067 (exit $ac_status); }; } &&
11068 { ac_try='test -s conftest$ac_exeext'
11069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11070 (eval $ac_try) 2>&5
11071 ac_status=$?
11072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11073 (exit $ac_status); }; }; then
11074 ac_cv_lib_m_y0=yes
11075 else
11076 echo "$as_me: failed program was:" >&5
11077 sed 's/^/| /' conftest.$ac_ext >&5
11079 ac_cv_lib_m_y0=no
11081 rm -f conftest.err conftest.$ac_objext \
11082 conftest$ac_exeext conftest.$ac_ext
11083 LIBS=$ac_check_lib_save_LIBS
11085 echo "$as_me:$LINENO: result: $ac_cv_lib_m_y0" >&5
11086 echo "${ECHO_T}$ac_cv_lib_m_y0" >&6
11087 if test $ac_cv_lib_m_y0 = yes; then
11089 cat >>confdefs.h <<\_ACEOF
11090 #define HAVE_Y0 1
11091 _ACEOF
11095 echo "$as_me:$LINENO: checking for y0f in -lm" >&5
11096 echo $ECHO_N "checking for y0f in -lm... $ECHO_C" >&6
11097 if test "${ac_cv_lib_m_y0f+set}" = set; then
11098 echo $ECHO_N "(cached) $ECHO_C" >&6
11099 else
11100 ac_check_lib_save_LIBS=$LIBS
11101 LIBS="-lm $LIBS"
11102 if test x$gcc_no_link = xyes; then
11103 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11104 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11105 { (exit 1); exit 1; }; }
11107 cat >conftest.$ac_ext <<_ACEOF
11108 /* confdefs.h. */
11109 _ACEOF
11110 cat confdefs.h >>conftest.$ac_ext
11111 cat >>conftest.$ac_ext <<_ACEOF
11112 /* end confdefs.h. */
11114 /* Override any gcc2 internal prototype to avoid an error. */
11115 #ifdef __cplusplus
11116 extern "C"
11117 #endif
11118 /* We use char because int might match the return type of a gcc2
11119 builtin and then its argument prototype would still apply. */
11120 char y0f ();
11122 main ()
11124 y0f ();
11126 return 0;
11128 _ACEOF
11129 rm -f conftest.$ac_objext conftest$ac_exeext
11130 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11131 (eval $ac_link) 2>conftest.er1
11132 ac_status=$?
11133 grep -v '^ *+' conftest.er1 >conftest.err
11134 rm -f conftest.er1
11135 cat conftest.err >&5
11136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11137 (exit $ac_status); } &&
11138 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11140 (eval $ac_try) 2>&5
11141 ac_status=$?
11142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11143 (exit $ac_status); }; } &&
11144 { ac_try='test -s conftest$ac_exeext'
11145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11146 (eval $ac_try) 2>&5
11147 ac_status=$?
11148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11149 (exit $ac_status); }; }; then
11150 ac_cv_lib_m_y0f=yes
11151 else
11152 echo "$as_me: failed program was:" >&5
11153 sed 's/^/| /' conftest.$ac_ext >&5
11155 ac_cv_lib_m_y0f=no
11157 rm -f conftest.err conftest.$ac_objext \
11158 conftest$ac_exeext conftest.$ac_ext
11159 LIBS=$ac_check_lib_save_LIBS
11161 echo "$as_me:$LINENO: result: $ac_cv_lib_m_y0f" >&5
11162 echo "${ECHO_T}$ac_cv_lib_m_y0f" >&6
11163 if test $ac_cv_lib_m_y0f = yes; then
11165 cat >>confdefs.h <<\_ACEOF
11166 #define HAVE_Y0F 1
11167 _ACEOF
11171 echo "$as_me:$LINENO: checking for y1 in -lm" >&5
11172 echo $ECHO_N "checking for y1 in -lm... $ECHO_C" >&6
11173 if test "${ac_cv_lib_m_y1+set}" = set; then
11174 echo $ECHO_N "(cached) $ECHO_C" >&6
11175 else
11176 ac_check_lib_save_LIBS=$LIBS
11177 LIBS="-lm $LIBS"
11178 if test x$gcc_no_link = xyes; then
11179 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11180 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11181 { (exit 1); exit 1; }; }
11183 cat >conftest.$ac_ext <<_ACEOF
11184 /* confdefs.h. */
11185 _ACEOF
11186 cat confdefs.h >>conftest.$ac_ext
11187 cat >>conftest.$ac_ext <<_ACEOF
11188 /* end confdefs.h. */
11190 /* Override any gcc2 internal prototype to avoid an error. */
11191 #ifdef __cplusplus
11192 extern "C"
11193 #endif
11194 /* We use char because int might match the return type of a gcc2
11195 builtin and then its argument prototype would still apply. */
11196 char y1 ();
11198 main ()
11200 y1 ();
11202 return 0;
11204 _ACEOF
11205 rm -f conftest.$ac_objext conftest$ac_exeext
11206 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11207 (eval $ac_link) 2>conftest.er1
11208 ac_status=$?
11209 grep -v '^ *+' conftest.er1 >conftest.err
11210 rm -f conftest.er1
11211 cat conftest.err >&5
11212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11213 (exit $ac_status); } &&
11214 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11216 (eval $ac_try) 2>&5
11217 ac_status=$?
11218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11219 (exit $ac_status); }; } &&
11220 { ac_try='test -s conftest$ac_exeext'
11221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11222 (eval $ac_try) 2>&5
11223 ac_status=$?
11224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11225 (exit $ac_status); }; }; then
11226 ac_cv_lib_m_y1=yes
11227 else
11228 echo "$as_me: failed program was:" >&5
11229 sed 's/^/| /' conftest.$ac_ext >&5
11231 ac_cv_lib_m_y1=no
11233 rm -f conftest.err conftest.$ac_objext \
11234 conftest$ac_exeext conftest.$ac_ext
11235 LIBS=$ac_check_lib_save_LIBS
11237 echo "$as_me:$LINENO: result: $ac_cv_lib_m_y1" >&5
11238 echo "${ECHO_T}$ac_cv_lib_m_y1" >&6
11239 if test $ac_cv_lib_m_y1 = yes; then
11241 cat >>confdefs.h <<\_ACEOF
11242 #define HAVE_Y1 1
11243 _ACEOF
11247 echo "$as_me:$LINENO: checking for y1f in -lm" >&5
11248 echo $ECHO_N "checking for y1f in -lm... $ECHO_C" >&6
11249 if test "${ac_cv_lib_m_y1f+set}" = set; then
11250 echo $ECHO_N "(cached) $ECHO_C" >&6
11251 else
11252 ac_check_lib_save_LIBS=$LIBS
11253 LIBS="-lm $LIBS"
11254 if test x$gcc_no_link = xyes; then
11255 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11256 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11257 { (exit 1); exit 1; }; }
11259 cat >conftest.$ac_ext <<_ACEOF
11260 /* confdefs.h. */
11261 _ACEOF
11262 cat confdefs.h >>conftest.$ac_ext
11263 cat >>conftest.$ac_ext <<_ACEOF
11264 /* end confdefs.h. */
11266 /* Override any gcc2 internal prototype to avoid an error. */
11267 #ifdef __cplusplus
11268 extern "C"
11269 #endif
11270 /* We use char because int might match the return type of a gcc2
11271 builtin and then its argument prototype would still apply. */
11272 char y1f ();
11274 main ()
11276 y1f ();
11278 return 0;
11280 _ACEOF
11281 rm -f conftest.$ac_objext conftest$ac_exeext
11282 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11283 (eval $ac_link) 2>conftest.er1
11284 ac_status=$?
11285 grep -v '^ *+' conftest.er1 >conftest.err
11286 rm -f conftest.er1
11287 cat conftest.err >&5
11288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11289 (exit $ac_status); } &&
11290 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11292 (eval $ac_try) 2>&5
11293 ac_status=$?
11294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11295 (exit $ac_status); }; } &&
11296 { ac_try='test -s conftest$ac_exeext'
11297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11298 (eval $ac_try) 2>&5
11299 ac_status=$?
11300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11301 (exit $ac_status); }; }; then
11302 ac_cv_lib_m_y1f=yes
11303 else
11304 echo "$as_me: failed program was:" >&5
11305 sed 's/^/| /' conftest.$ac_ext >&5
11307 ac_cv_lib_m_y1f=no
11309 rm -f conftest.err conftest.$ac_objext \
11310 conftest$ac_exeext conftest.$ac_ext
11311 LIBS=$ac_check_lib_save_LIBS
11313 echo "$as_me:$LINENO: result: $ac_cv_lib_m_y1f" >&5
11314 echo "${ECHO_T}$ac_cv_lib_m_y1f" >&6
11315 if test $ac_cv_lib_m_y1f = yes; then
11317 cat >>confdefs.h <<\_ACEOF
11318 #define HAVE_Y1F 1
11319 _ACEOF
11323 echo "$as_me:$LINENO: checking for yn in -lm" >&5
11324 echo $ECHO_N "checking for yn in -lm... $ECHO_C" >&6
11325 if test "${ac_cv_lib_m_yn+set}" = set; then
11326 echo $ECHO_N "(cached) $ECHO_C" >&6
11327 else
11328 ac_check_lib_save_LIBS=$LIBS
11329 LIBS="-lm $LIBS"
11330 if test x$gcc_no_link = xyes; then
11331 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11332 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11333 { (exit 1); exit 1; }; }
11335 cat >conftest.$ac_ext <<_ACEOF
11336 /* confdefs.h. */
11337 _ACEOF
11338 cat confdefs.h >>conftest.$ac_ext
11339 cat >>conftest.$ac_ext <<_ACEOF
11340 /* end confdefs.h. */
11342 /* Override any gcc2 internal prototype to avoid an error. */
11343 #ifdef __cplusplus
11344 extern "C"
11345 #endif
11346 /* We use char because int might match the return type of a gcc2
11347 builtin and then its argument prototype would still apply. */
11348 char yn ();
11350 main ()
11352 yn ();
11354 return 0;
11356 _ACEOF
11357 rm -f conftest.$ac_objext conftest$ac_exeext
11358 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11359 (eval $ac_link) 2>conftest.er1
11360 ac_status=$?
11361 grep -v '^ *+' conftest.er1 >conftest.err
11362 rm -f conftest.er1
11363 cat conftest.err >&5
11364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11365 (exit $ac_status); } &&
11366 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11368 (eval $ac_try) 2>&5
11369 ac_status=$?
11370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11371 (exit $ac_status); }; } &&
11372 { ac_try='test -s conftest$ac_exeext'
11373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11374 (eval $ac_try) 2>&5
11375 ac_status=$?
11376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11377 (exit $ac_status); }; }; then
11378 ac_cv_lib_m_yn=yes
11379 else
11380 echo "$as_me: failed program was:" >&5
11381 sed 's/^/| /' conftest.$ac_ext >&5
11383 ac_cv_lib_m_yn=no
11385 rm -f conftest.err conftest.$ac_objext \
11386 conftest$ac_exeext conftest.$ac_ext
11387 LIBS=$ac_check_lib_save_LIBS
11389 echo "$as_me:$LINENO: result: $ac_cv_lib_m_yn" >&5
11390 echo "${ECHO_T}$ac_cv_lib_m_yn" >&6
11391 if test $ac_cv_lib_m_yn = yes; then
11393 cat >>confdefs.h <<\_ACEOF
11394 #define HAVE_YN 1
11395 _ACEOF
11399 echo "$as_me:$LINENO: checking for ynf in -lm" >&5
11400 echo $ECHO_N "checking for ynf in -lm... $ECHO_C" >&6
11401 if test "${ac_cv_lib_m_ynf+set}" = set; then
11402 echo $ECHO_N "(cached) $ECHO_C" >&6
11403 else
11404 ac_check_lib_save_LIBS=$LIBS
11405 LIBS="-lm $LIBS"
11406 if test x$gcc_no_link = xyes; then
11407 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11408 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11409 { (exit 1); exit 1; }; }
11411 cat >conftest.$ac_ext <<_ACEOF
11412 /* confdefs.h. */
11413 _ACEOF
11414 cat confdefs.h >>conftest.$ac_ext
11415 cat >>conftest.$ac_ext <<_ACEOF
11416 /* end confdefs.h. */
11418 /* Override any gcc2 internal prototype to avoid an error. */
11419 #ifdef __cplusplus
11420 extern "C"
11421 #endif
11422 /* We use char because int might match the return type of a gcc2
11423 builtin and then its argument prototype would still apply. */
11424 char ynf ();
11426 main ()
11428 ynf ();
11430 return 0;
11432 _ACEOF
11433 rm -f conftest.$ac_objext conftest$ac_exeext
11434 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11435 (eval $ac_link) 2>conftest.er1
11436 ac_status=$?
11437 grep -v '^ *+' conftest.er1 >conftest.err
11438 rm -f conftest.er1
11439 cat conftest.err >&5
11440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11441 (exit $ac_status); } &&
11442 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11444 (eval $ac_try) 2>&5
11445 ac_status=$?
11446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11447 (exit $ac_status); }; } &&
11448 { ac_try='test -s conftest$ac_exeext'
11449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11450 (eval $ac_try) 2>&5
11451 ac_status=$?
11452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11453 (exit $ac_status); }; }; then
11454 ac_cv_lib_m_ynf=yes
11455 else
11456 echo "$as_me: failed program was:" >&5
11457 sed 's/^/| /' conftest.$ac_ext >&5
11459 ac_cv_lib_m_ynf=no
11461 rm -f conftest.err conftest.$ac_objext \
11462 conftest$ac_exeext conftest.$ac_ext
11463 LIBS=$ac_check_lib_save_LIBS
11465 echo "$as_me:$LINENO: result: $ac_cv_lib_m_ynf" >&5
11466 echo "${ECHO_T}$ac_cv_lib_m_ynf" >&6
11467 if test $ac_cv_lib_m_ynf = yes; then
11469 cat >>confdefs.h <<\_ACEOF
11470 #define HAVE_YNF 1
11471 _ACEOF
11476 # Fallback in case isfinite is not available.
11477 echo "$as_me:$LINENO: checking for finite in -lm" >&5
11478 echo $ECHO_N "checking for finite in -lm... $ECHO_C" >&6
11479 if test "${ac_cv_lib_m_finite+set}" = set; then
11480 echo $ECHO_N "(cached) $ECHO_C" >&6
11481 else
11482 ac_check_lib_save_LIBS=$LIBS
11483 LIBS="-lm $LIBS"
11484 if test x$gcc_no_link = xyes; then
11485 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11486 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11487 { (exit 1); exit 1; }; }
11489 cat >conftest.$ac_ext <<_ACEOF
11490 /* confdefs.h. */
11491 _ACEOF
11492 cat confdefs.h >>conftest.$ac_ext
11493 cat >>conftest.$ac_ext <<_ACEOF
11494 /* end confdefs.h. */
11496 /* Override any gcc2 internal prototype to avoid an error. */
11497 #ifdef __cplusplus
11498 extern "C"
11499 #endif
11500 /* We use char because int might match the return type of a gcc2
11501 builtin and then its argument prototype would still apply. */
11502 char finite ();
11504 main ()
11506 finite ();
11508 return 0;
11510 _ACEOF
11511 rm -f conftest.$ac_objext conftest$ac_exeext
11512 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11513 (eval $ac_link) 2>conftest.er1
11514 ac_status=$?
11515 grep -v '^ *+' conftest.er1 >conftest.err
11516 rm -f conftest.er1
11517 cat conftest.err >&5
11518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11519 (exit $ac_status); } &&
11520 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11522 (eval $ac_try) 2>&5
11523 ac_status=$?
11524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11525 (exit $ac_status); }; } &&
11526 { ac_try='test -s conftest$ac_exeext'
11527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11528 (eval $ac_try) 2>&5
11529 ac_status=$?
11530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11531 (exit $ac_status); }; }; then
11532 ac_cv_lib_m_finite=yes
11533 else
11534 echo "$as_me: failed program was:" >&5
11535 sed 's/^/| /' conftest.$ac_ext >&5
11537 ac_cv_lib_m_finite=no
11539 rm -f conftest.err conftest.$ac_objext \
11540 conftest$ac_exeext conftest.$ac_ext
11541 LIBS=$ac_check_lib_save_LIBS
11543 echo "$as_me:$LINENO: result: $ac_cv_lib_m_finite" >&5
11544 echo "${ECHO_T}$ac_cv_lib_m_finite" >&6
11545 if test $ac_cv_lib_m_finite = yes; then
11547 cat >>confdefs.h <<\_ACEOF
11548 #define HAVE_FINITE 1
11549 _ACEOF
11554 # Let the user override this
11555 # Check whether --enable-cmath or --disable-cmath was given.
11556 if test "${enable_cmath+set}" = set; then
11557 enableval="$enable_cmath"
11558 need_math=$enableval
11560 if test "$need_math" = "yes"; then
11561 { echo "$as_me:$LINENO: Including complex math functions in libgfor" >&5
11562 echo "$as_me: Including complex math functions in libgfor" >&6;};
11563 extra_math_obj='$(gfor_cmath_obj)'
11566 MATH_OBJ="$extra_math_obj"
11569 # The standard autoconf HAVE_STRUCT_TIMEZONE doesn't actually check
11570 # for struct timezone, as you might think. We also need to check how
11571 # to call gettimeofday if we have it.
11572 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
11573 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
11574 if test "${ac_cv_header_time+set}" = set; then
11575 echo $ECHO_N "(cached) $ECHO_C" >&6
11576 else
11577 cat >conftest.$ac_ext <<_ACEOF
11578 /* confdefs.h. */
11579 _ACEOF
11580 cat confdefs.h >>conftest.$ac_ext
11581 cat >>conftest.$ac_ext <<_ACEOF
11582 /* end confdefs.h. */
11583 #include <sys/types.h>
11584 #include <sys/time.h>
11585 #include <time.h>
11588 main ()
11590 if ((struct tm *) 0)
11591 return 0;
11593 return 0;
11595 _ACEOF
11596 rm -f conftest.$ac_objext
11597 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11598 (eval $ac_compile) 2>conftest.er1
11599 ac_status=$?
11600 grep -v '^ *+' conftest.er1 >conftest.err
11601 rm -f conftest.er1
11602 cat conftest.err >&5
11603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11604 (exit $ac_status); } &&
11605 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11607 (eval $ac_try) 2>&5
11608 ac_status=$?
11609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11610 (exit $ac_status); }; } &&
11611 { ac_try='test -s conftest.$ac_objext'
11612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11613 (eval $ac_try) 2>&5
11614 ac_status=$?
11615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11616 (exit $ac_status); }; }; then
11617 ac_cv_header_time=yes
11618 else
11619 echo "$as_me: failed program was:" >&5
11620 sed 's/^/| /' conftest.$ac_ext >&5
11622 ac_cv_header_time=no
11624 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11626 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
11627 echo "${ECHO_T}$ac_cv_header_time" >&6
11628 if test $ac_cv_header_time = yes; then
11630 cat >>confdefs.h <<\_ACEOF
11631 #define TIME_WITH_SYS_TIME 1
11632 _ACEOF
11638 for ac_func in gettimeofday
11640 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11641 echo "$as_me:$LINENO: checking for $ac_func" >&5
11642 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11643 if eval "test \"\${$as_ac_var+set}\" = set"; then
11644 echo $ECHO_N "(cached) $ECHO_C" >&6
11645 else
11646 if test x$gcc_no_link = xyes; then
11647 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11648 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11649 { (exit 1); exit 1; }; }
11651 cat >conftest.$ac_ext <<_ACEOF
11652 /* confdefs.h. */
11653 _ACEOF
11654 cat confdefs.h >>conftest.$ac_ext
11655 cat >>conftest.$ac_ext <<_ACEOF
11656 /* end confdefs.h. */
11657 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11658 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11659 #define $ac_func innocuous_$ac_func
11661 /* System header to define __stub macros and hopefully few prototypes,
11662 which can conflict with char $ac_func (); below.
11663 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11664 <limits.h> exists even on freestanding compilers. */
11666 #ifdef __STDC__
11667 # include <limits.h>
11668 #else
11669 # include <assert.h>
11670 #endif
11672 #undef $ac_func
11674 /* Override any gcc2 internal prototype to avoid an error. */
11675 #ifdef __cplusplus
11676 extern "C"
11678 #endif
11679 /* We use char because int might match the return type of a gcc2
11680 builtin and then its argument prototype would still apply. */
11681 char $ac_func ();
11682 /* The GNU C library defines this for functions which it implements
11683 to always fail with ENOSYS. Some functions are actually named
11684 something starting with __ and the normal name is an alias. */
11685 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11686 choke me
11687 #else
11688 char (*f) () = $ac_func;
11689 #endif
11690 #ifdef __cplusplus
11692 #endif
11695 main ()
11697 return f != $ac_func;
11699 return 0;
11701 _ACEOF
11702 rm -f conftest.$ac_objext conftest$ac_exeext
11703 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11704 (eval $ac_link) 2>conftest.er1
11705 ac_status=$?
11706 grep -v '^ *+' conftest.er1 >conftest.err
11707 rm -f conftest.er1
11708 cat conftest.err >&5
11709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11710 (exit $ac_status); } &&
11711 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11713 (eval $ac_try) 2>&5
11714 ac_status=$?
11715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11716 (exit $ac_status); }; } &&
11717 { ac_try='test -s conftest$ac_exeext'
11718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11719 (eval $ac_try) 2>&5
11720 ac_status=$?
11721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11722 (exit $ac_status); }; }; then
11723 eval "$as_ac_var=yes"
11724 else
11725 echo "$as_me: failed program was:" >&5
11726 sed 's/^/| /' conftest.$ac_ext >&5
11728 eval "$as_ac_var=no"
11730 rm -f conftest.err conftest.$ac_objext \
11731 conftest$ac_exeext conftest.$ac_ext
11733 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11734 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11735 if test `eval echo '${'$as_ac_var'}'` = yes; then
11736 cat >>confdefs.h <<_ACEOF
11737 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11738 _ACEOF
11741 done
11743 if test "$ac_cv_func_gettimeofday" = yes; then
11744 echo "$as_me:$LINENO: checking for struct timezone" >&5
11745 echo $ECHO_N "checking for struct timezone... $ECHO_C" >&6
11746 if test "${gfor_cv_struct_timezone+set}" = set; then
11747 echo $ECHO_N "(cached) $ECHO_C" >&6
11748 else
11749 cat >conftest.$ac_ext <<_ACEOF
11750 /* confdefs.h. */
11751 _ACEOF
11752 cat confdefs.h >>conftest.$ac_ext
11753 cat >>conftest.$ac_ext <<_ACEOF
11754 /* end confdefs.h. */
11755 #include <sys/time.h>
11757 main ()
11759 struct timezone tz;
11761 return 0;
11763 _ACEOF
11764 rm -f conftest.$ac_objext
11765 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11766 (eval $ac_compile) 2>conftest.er1
11767 ac_status=$?
11768 grep -v '^ *+' conftest.er1 >conftest.err
11769 rm -f conftest.er1
11770 cat conftest.err >&5
11771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11772 (exit $ac_status); } &&
11773 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11775 (eval $ac_try) 2>&5
11776 ac_status=$?
11777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11778 (exit $ac_status); }; } &&
11779 { ac_try='test -s conftest.$ac_objext'
11780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11781 (eval $ac_try) 2>&5
11782 ac_status=$?
11783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11784 (exit $ac_status); }; }; then
11785 gfor_cv_struct_timezone=yes
11786 else
11787 echo "$as_me: failed program was:" >&5
11788 sed 's/^/| /' conftest.$ac_ext >&5
11790 gfor_cv_struct_timezone=no
11792 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11794 echo "$as_me:$LINENO: result: $gfor_cv_struct_timezone" >&5
11795 echo "${ECHO_T}$gfor_cv_struct_timezone" >&6
11796 if test $gfor_cv_struct_timezone = yes; then
11797 if test "$cross_compiling" = yes; then
11798 gfor_have_struct_timezone=yes
11799 else
11800 cat >conftest.$ac_ext <<_ACEOF
11801 /* confdefs.h. */
11802 _ACEOF
11803 cat confdefs.h >>conftest.$ac_ext
11804 cat >>conftest.$ac_ext <<_ACEOF
11805 /* end confdefs.h. */
11807 #ifdef TIME_WITH_SYS_TIME
11808 #include <sys/time.h>
11809 #include <time.h>
11810 #else
11811 #ifdef HAVE_SYS_TIME_H
11812 #include <sys/time.h>
11813 #else
11814 #include <time.h>
11815 #endif
11816 #endif
11817 main ()
11819 struct timeval time;
11820 struct timezone dummy;
11821 if (gettimeofday (&time, &dummy))
11822 exit (1);
11823 else
11824 exit (0);
11826 _ACEOF
11827 rm -f conftest$ac_exeext
11828 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11829 (eval $ac_link) 2>&5
11830 ac_status=$?
11831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11832 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11834 (eval $ac_try) 2>&5
11835 ac_status=$?
11836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11837 (exit $ac_status); }; }; then
11838 gfor_have_struct_timezone=yes
11839 else
11840 echo "$as_me: program exited with status $ac_status" >&5
11841 echo "$as_me: failed program was:" >&5
11842 sed 's/^/| /' conftest.$ac_ext >&5
11844 ( exit $ac_status )
11845 gfor_have_struct_timezone=no
11847 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11849 if test $gfor_have_struct_timezone = yes; then
11851 cat >>confdefs.h <<\_ACEOF
11852 #define HAVE_TIMEZONE 1
11853 _ACEOF
11858 echo "$as_me:$LINENO: checking whether gettimeofday can accept two arguments" >&5
11859 echo $ECHO_N "checking whether gettimeofday can accept two arguments... $ECHO_C" >&6
11860 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then
11861 echo $ECHO_N "(cached) $ECHO_C" >&6
11862 else
11863 if test x$gcc_no_link = xyes; then
11864 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11865 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11866 { (exit 1); exit 1; }; }
11868 cat >conftest.$ac_ext <<_ACEOF
11869 /* confdefs.h. */
11870 _ACEOF
11871 cat confdefs.h >>conftest.$ac_ext
11872 cat >>conftest.$ac_ext <<_ACEOF
11873 /* end confdefs.h. */
11875 #ifdef TIME_WITH_SYS_TIME
11876 #include <sys/time.h>
11877 #include <time.h>
11878 #else
11879 #ifdef HAVE_SYS_TIME_H
11880 #include <sys/time.h>
11881 #else
11882 #include <time.h>
11883 #endif
11884 #endif
11887 main ()
11890 struct timeval time;
11891 #ifdef HAVE_TIMEZONE
11892 struct timezone dummy;
11893 #define DUMMY &dummy
11894 #else
11895 #define DUMMY NULL
11896 #endif
11897 gettimeofday (&time, DUMMY);
11899 return 0;
11901 _ACEOF
11902 rm -f conftest.$ac_objext conftest$ac_exeext
11903 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11904 (eval $ac_link) 2>conftest.er1
11905 ac_status=$?
11906 grep -v '^ *+' conftest.er1 >conftest.err
11907 rm -f conftest.er1
11908 cat conftest.err >&5
11909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11910 (exit $ac_status); } &&
11911 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11913 (eval $ac_try) 2>&5
11914 ac_status=$?
11915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11916 (exit $ac_status); }; } &&
11917 { ac_try='test -s conftest$ac_exeext'
11918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11919 (eval $ac_try) 2>&5
11920 ac_status=$?
11921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11922 (exit $ac_status); }; }; then
11923 emacs_cv_gettimeofday_two_arguments=yes
11924 else
11925 echo "$as_me: failed program was:" >&5
11926 sed 's/^/| /' conftest.$ac_ext >&5
11928 emacs_cv_gettimeofday_two_arguments=no
11930 rm -f conftest.err conftest.$ac_objext \
11931 conftest$ac_exeext conftest.$ac_ext
11933 echo "$as_me:$LINENO: result: $emacs_cv_gettimeofday_two_arguments" >&5
11934 echo "${ECHO_T}$emacs_cv_gettimeofday_two_arguments" >&6
11935 if test $emacs_cv_gettimeofday_two_arguments = no; then
11937 cat >>confdefs.h <<\_ACEOF
11938 #define GETTIMEOFDAY_ONE_ARGUMENT 1
11939 _ACEOF
11944 # Attempt to assert that the target is of common type in case we don't
11945 # have C99 integer types at all.
11947 echo "$as_me:$LINENO: checking whether the target is ILP32" >&5
11948 echo $ECHO_N "checking whether the target is ILP32... $ECHO_C" >&6
11949 if test "${target_ilp32+set}" = set; then
11950 echo $ECHO_N "(cached) $ECHO_C" >&6
11951 else
11953 save_CFLAGS="$CFLAGS"
11954 CFLAGS="-O2"
11955 if test x$gcc_no_link = xyes; then
11956 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11957 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11958 { (exit 1); exit 1; }; }
11960 cat >conftest.$ac_ext <<_ACEOF
11961 /* confdefs.h. */
11962 _ACEOF
11963 cat confdefs.h >>conftest.$ac_ext
11964 cat >>conftest.$ac_ext <<_ACEOF
11965 /* end confdefs.h. */
11968 main ()
11971 if (sizeof(int) == 4 && sizeof(long) == 4 && sizeof(void *) == 4)
11973 else
11974 undefined_function ();
11977 return 0;
11979 _ACEOF
11980 rm -f conftest.$ac_objext conftest$ac_exeext
11981 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11982 (eval $ac_link) 2>conftest.er1
11983 ac_status=$?
11984 grep -v '^ *+' conftest.er1 >conftest.err
11985 rm -f conftest.er1
11986 cat conftest.err >&5
11987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11988 (exit $ac_status); } &&
11989 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11991 (eval $ac_try) 2>&5
11992 ac_status=$?
11993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11994 (exit $ac_status); }; } &&
11995 { ac_try='test -s conftest$ac_exeext'
11996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11997 (eval $ac_try) 2>&5
11998 ac_status=$?
11999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12000 (exit $ac_status); }; }; then
12001 target_ilp32=yes
12002 else
12003 echo "$as_me: failed program was:" >&5
12004 sed 's/^/| /' conftest.$ac_ext >&5
12006 target_ilp32=no
12008 rm -f conftest.err conftest.$ac_objext \
12009 conftest$ac_exeext conftest.$ac_ext
12010 CFLAGS="$save_CFLAGS"
12012 echo "$as_me:$LINENO: result: $target_ilp32" >&5
12013 echo "${ECHO_T}$target_ilp32" >&6
12014 if test $target_ilp32 = yes; then
12016 cat >>confdefs.h <<\_ACEOF
12017 #define TARGET_ILP32 1
12018 _ACEOF
12023 # Check out attribute support.
12025 echo "$as_me:$LINENO: checking whether the target supports hidden visibility" >&5
12026 echo $ECHO_N "checking whether the target supports hidden visibility... $ECHO_C" >&6
12027 if test "${have_attribute_visibility+set}" = set; then
12028 echo $ECHO_N "(cached) $ECHO_C" >&6
12029 else
12031 save_CFLAGS="$CFLAGS"
12032 CFLAGS="$CFLAGS -Werror"
12033 cat >conftest.$ac_ext <<_ACEOF
12034 /* confdefs.h. */
12035 _ACEOF
12036 cat confdefs.h >>conftest.$ac_ext
12037 cat >>conftest.$ac_ext <<_ACEOF
12038 /* end confdefs.h. */
12039 void __attribute__((visibility("hidden"))) foo(void) { }
12041 main ()
12045 return 0;
12047 _ACEOF
12048 rm -f conftest.$ac_objext
12049 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12050 (eval $ac_compile) 2>conftest.er1
12051 ac_status=$?
12052 grep -v '^ *+' conftest.er1 >conftest.err
12053 rm -f conftest.er1
12054 cat conftest.err >&5
12055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12056 (exit $ac_status); } &&
12057 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12059 (eval $ac_try) 2>&5
12060 ac_status=$?
12061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12062 (exit $ac_status); }; } &&
12063 { ac_try='test -s conftest.$ac_objext'
12064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12065 (eval $ac_try) 2>&5
12066 ac_status=$?
12067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12068 (exit $ac_status); }; }; then
12069 have_attribute_visibility=yes
12070 else
12071 echo "$as_me: failed program was:" >&5
12072 sed 's/^/| /' conftest.$ac_ext >&5
12074 have_attribute_visibility=no
12076 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12077 CFLAGS="$save_CFLAGS"
12079 echo "$as_me:$LINENO: result: $have_attribute_visibility" >&5
12080 echo "${ECHO_T}$have_attribute_visibility" >&6
12081 if test $have_attribute_visibility = yes; then
12083 cat >>confdefs.h <<\_ACEOF
12084 #define HAVE_ATTRIBUTE_VISIBILITY 1
12085 _ACEOF
12089 echo "$as_me:$LINENO: checking whether the target supports dllexport" >&5
12090 echo $ECHO_N "checking whether the target supports dllexport... $ECHO_C" >&6
12091 if test "${have_attribute_dllexport+set}" = set; then
12092 echo $ECHO_N "(cached) $ECHO_C" >&6
12093 else
12095 save_CFLAGS="$CFLAGS"
12096 CFLAGS="$CFLAGS -Werror"
12097 cat >conftest.$ac_ext <<_ACEOF
12098 /* confdefs.h. */
12099 _ACEOF
12100 cat confdefs.h >>conftest.$ac_ext
12101 cat >>conftest.$ac_ext <<_ACEOF
12102 /* end confdefs.h. */
12103 void __attribute__((dllexport)) foo(void) { }
12105 main ()
12109 return 0;
12111 _ACEOF
12112 rm -f conftest.$ac_objext
12113 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12114 (eval $ac_compile) 2>conftest.er1
12115 ac_status=$?
12116 grep -v '^ *+' conftest.er1 >conftest.err
12117 rm -f conftest.er1
12118 cat conftest.err >&5
12119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12120 (exit $ac_status); } &&
12121 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12123 (eval $ac_try) 2>&5
12124 ac_status=$?
12125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12126 (exit $ac_status); }; } &&
12127 { ac_try='test -s conftest.$ac_objext'
12128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12129 (eval $ac_try) 2>&5
12130 ac_status=$?
12131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12132 (exit $ac_status); }; }; then
12133 have_attribute_dllexport=yes
12134 else
12135 echo "$as_me: failed program was:" >&5
12136 sed 's/^/| /' conftest.$ac_ext >&5
12138 have_attribute_dllexport=no
12140 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12141 CFLAGS="$save_CFLAGS"
12143 echo "$as_me:$LINENO: result: $have_attribute_dllexport" >&5
12144 echo "${ECHO_T}$have_attribute_dllexport" >&6
12145 if test $have_attribute_dllexport = yes; then
12147 cat >>confdefs.h <<\_ACEOF
12148 #define HAVE_ATTRIBUTE_DLLEXPORT 1
12149 _ACEOF
12153 echo "$as_me:$LINENO: checking whether the target supports symbol aliases" >&5
12154 echo $ECHO_N "checking whether the target supports symbol aliases... $ECHO_C" >&6
12155 if test "${have_attribute_alias+set}" = set; then
12156 echo $ECHO_N "(cached) $ECHO_C" >&6
12157 else
12159 if test x$gcc_no_link = xyes; then
12160 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12161 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12162 { (exit 1); exit 1; }; }
12164 cat >conftest.$ac_ext <<_ACEOF
12165 /* confdefs.h. */
12166 _ACEOF
12167 cat confdefs.h >>conftest.$ac_ext
12168 cat >>conftest.$ac_ext <<_ACEOF
12169 /* end confdefs.h. */
12171 #define ULP STR1(__USER_LABEL_PREFIX__)
12172 #define STR1(x) STR2(x)
12173 #define STR2(x) #x
12174 void foo(void) { }
12175 extern void bar(void) __attribute__((alias(ULP "foo")));
12177 main ()
12179 bar();
12181 return 0;
12183 _ACEOF
12184 rm -f conftest.$ac_objext conftest$ac_exeext
12185 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12186 (eval $ac_link) 2>conftest.er1
12187 ac_status=$?
12188 grep -v '^ *+' conftest.er1 >conftest.err
12189 rm -f conftest.er1
12190 cat conftest.err >&5
12191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12192 (exit $ac_status); } &&
12193 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12195 (eval $ac_try) 2>&5
12196 ac_status=$?
12197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12198 (exit $ac_status); }; } &&
12199 { ac_try='test -s conftest$ac_exeext'
12200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12201 (eval $ac_try) 2>&5
12202 ac_status=$?
12203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12204 (exit $ac_status); }; }; then
12205 have_attribute_alias=yes
12206 else
12207 echo "$as_me: failed program was:" >&5
12208 sed 's/^/| /' conftest.$ac_ext >&5
12210 have_attribute_alias=no
12212 rm -f conftest.err conftest.$ac_objext \
12213 conftest$ac_exeext conftest.$ac_ext
12215 echo "$as_me:$LINENO: result: $have_attribute_alias" >&5
12216 echo "${ECHO_T}$have_attribute_alias" >&6
12217 if test $have_attribute_alias = yes; then
12219 cat >>confdefs.h <<\_ACEOF
12220 #define HAVE_ATTRIBUTE_ALIAS 1
12221 _ACEOF
12225 # Various other checks on target
12227 echo "$as_me:$LINENO: checking whether the target can unlink an open file" >&5
12228 echo $ECHO_N "checking whether the target can unlink an open file... $ECHO_C" >&6
12229 if test "${have_unlink_open_file+set}" = set; then
12230 echo $ECHO_N "(cached) $ECHO_C" >&6
12231 else
12233 if test "$cross_compiling" = yes; then
12235 case "${target}" in
12236 *mingw*) have_unlink_open_file=no ;;
12237 *) have_unlink_open_file=yes;;
12238 esac
12239 else
12240 cat >conftest.$ac_ext <<_ACEOF
12241 /* confdefs.h. */
12242 _ACEOF
12243 cat confdefs.h >>conftest.$ac_ext
12244 cat >>conftest.$ac_ext <<_ACEOF
12245 /* end confdefs.h. */
12247 #include <errno.h>
12248 #include <fcntl.h>
12249 #include <unistd.h>
12250 #include <sys/stat.h>
12252 int main ()
12254 int fd;
12256 fd = open ("testfile", O_RDWR | O_CREAT, S_IWRITE | S_IREAD);
12257 if (fd <= 0)
12258 return 0;
12259 if (unlink ("testfile") == -1)
12260 return 1;
12261 write (fd, "This is a test\n", 15);
12262 close (fd);
12264 if (open ("testfile", O_RDONLY, S_IWRITE | S_IREAD) == -1 && errno == ENOENT)
12265 return 0;
12266 else
12267 return 1;
12269 _ACEOF
12270 rm -f conftest$ac_exeext
12271 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12272 (eval $ac_link) 2>&5
12273 ac_status=$?
12274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12275 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12277 (eval $ac_try) 2>&5
12278 ac_status=$?
12279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12280 (exit $ac_status); }; }; then
12281 have_unlink_open_file=yes
12282 else
12283 echo "$as_me: program exited with status $ac_status" >&5
12284 echo "$as_me: failed program was:" >&5
12285 sed 's/^/| /' conftest.$ac_ext >&5
12287 ( exit $ac_status )
12288 have_unlink_open_file=no
12290 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12293 echo "$as_me:$LINENO: result: $have_unlink_open_file" >&5
12294 echo "${ECHO_T}$have_unlink_open_file" >&6
12295 if test x"$have_unlink_open_file" = xyes; then
12297 cat >>confdefs.h <<\_ACEOF
12298 #define HAVE_UNLINK_OPEN_FILE 1
12299 _ACEOF
12303 # Check whether line terminator is LF or CRLF
12305 echo "$as_me:$LINENO: checking whether the target has CRLF as line terminator" >&5
12306 echo $ECHO_N "checking whether the target has CRLF as line terminator... $ECHO_C" >&6
12307 if test "${have_crlf+set}" = set; then
12308 echo $ECHO_N "(cached) $ECHO_C" >&6
12309 else
12311 if test "$cross_compiling" = yes; then
12313 case "${target}" in
12314 *mingw*) have_crlf=yes ;;
12315 *) have_crlf=no;;
12316 esac
12317 else
12318 cat >conftest.$ac_ext <<_ACEOF
12319 /* confdefs.h. */
12320 _ACEOF
12321 cat confdefs.h >>conftest.$ac_ext
12322 cat >>conftest.$ac_ext <<_ACEOF
12323 /* end confdefs.h. */
12325 /* This test program should exit with status 0 if system uses a CRLF as
12326 line terminator, and status 1 otherwise.
12327 Since it is used to check for mingw systems, and should return 0 in any
12328 other case, in case of a failure we will not use CRLF. */
12329 #include <sys/stat.h>
12330 #include <stdlib.h>
12331 #include <fcntl.h>
12332 #include <stdio.h>
12334 int main ()
12336 #ifndef O_BINARY
12337 exit(1);
12338 #else
12339 int fd, bytes;
12340 char buff[5];
12342 fd = open ("foo", O_WRONLY | O_CREAT | O_TRUNC, S_IRWXU);
12343 if (fd < 0)
12344 exit(1);
12345 if (write (fd, "\n", 1) < 0)
12346 perror ("write");
12348 close (fd);
12350 if ((fd = open ("foo", O_RDONLY | O_BINARY, S_IRWXU)) < 0)
12351 exit(1);
12352 bytes = read (fd, buff, 5);
12353 if (bytes == 2 && buff[0] == '\r' && buff[1] == '\n')
12354 exit(0);
12355 else
12356 exit(1);
12357 #endif
12359 _ACEOF
12360 rm -f conftest$ac_exeext
12361 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12362 (eval $ac_link) 2>&5
12363 ac_status=$?
12364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12365 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12367 (eval $ac_try) 2>&5
12368 ac_status=$?
12369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12370 (exit $ac_status); }; }; then
12371 have_crlf=yes
12372 else
12373 echo "$as_me: program exited with status $ac_status" >&5
12374 echo "$as_me: failed program was:" >&5
12375 sed 's/^/| /' conftest.$ac_ext >&5
12377 ( exit $ac_status )
12378 have_crlf=no
12380 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12383 echo "$as_me:$LINENO: result: $have_crlf" >&5
12384 echo "${ECHO_T}$have_crlf" >&6
12385 if test x"$have_crlf" = xyes; then
12387 cat >>confdefs.h <<\_ACEOF
12388 #define HAVE_CRLF 1
12389 _ACEOF
12393 cat >confcache <<\_ACEOF
12394 # This file is a shell script that caches the results of configure
12395 # tests run on this system so they can be shared between configure
12396 # scripts and configure runs, see configure's option --config-cache.
12397 # It is not useful on other systems. If it contains results you don't
12398 # want to keep, you may remove or edit it.
12400 # config.status only pays attention to the cache file if you give it
12401 # the --recheck option to rerun configure.
12403 # `ac_cv_env_foo' variables (set or unset) will be overridden when
12404 # loading this file, other *unset* `ac_cv_foo' will be assigned the
12405 # following values.
12407 _ACEOF
12409 # The following way of writing the cache mishandles newlines in values,
12410 # but we know of no workaround that is simple, portable, and efficient.
12411 # So, don't put newlines in cache variables' values.
12412 # Ultrix sh set writes to stderr and can't be redirected directly,
12413 # and sets the high bit in the cache file unless we assign to the vars.
12415 (set) 2>&1 |
12416 case `(ac_space=' '; set | grep ac_space) 2>&1` in
12417 *ac_space=\ *)
12418 # `set' does not quote correctly, so add quotes (double-quote
12419 # substitution turns \\\\ into \\, and sed turns \\ into \).
12420 sed -n \
12421 "s/'/'\\\\''/g;
12422 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12425 # `set' quotes correctly as required by POSIX, so do not add quotes.
12426 sed -n \
12427 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
12429 esac;
12431 sed '
12432 t clear
12433 : clear
12434 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12435 t end
12436 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12437 : end' >>confcache
12438 if diff $cache_file confcache >/dev/null 2>&1; then :; else
12439 if test -w $cache_file; then
12440 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
12441 cat confcache >$cache_file
12442 else
12443 echo "not updating unwritable cache $cache_file"
12446 rm -f confcache
12448 if test ${multilib} = yes; then
12449 multilib_arg="--enable-multilib"
12450 else
12451 multilib_arg=
12454 # Write our Makefile.
12455 ac_config_files="$ac_config_files Makefile"
12457 cat >confcache <<\_ACEOF
12458 # This file is a shell script that caches the results of configure
12459 # tests run on this system so they can be shared between configure
12460 # scripts and configure runs, see configure's option --config-cache.
12461 # It is not useful on other systems. If it contains results you don't
12462 # want to keep, you may remove or edit it.
12464 # config.status only pays attention to the cache file if you give it
12465 # the --recheck option to rerun configure.
12467 # `ac_cv_env_foo' variables (set or unset) will be overridden when
12468 # loading this file, other *unset* `ac_cv_foo' will be assigned the
12469 # following values.
12471 _ACEOF
12473 # The following way of writing the cache mishandles newlines in values,
12474 # but we know of no workaround that is simple, portable, and efficient.
12475 # So, don't put newlines in cache variables' values.
12476 # Ultrix sh set writes to stderr and can't be redirected directly,
12477 # and sets the high bit in the cache file unless we assign to the vars.
12479 (set) 2>&1 |
12480 case `(ac_space=' '; set | grep ac_space) 2>&1` in
12481 *ac_space=\ *)
12482 # `set' does not quote correctly, so add quotes (double-quote
12483 # substitution turns \\\\ into \\, and sed turns \\ into \).
12484 sed -n \
12485 "s/'/'\\\\''/g;
12486 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12489 # `set' quotes correctly as required by POSIX, so do not add quotes.
12490 sed -n \
12491 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
12493 esac;
12495 sed '
12496 t clear
12497 : clear
12498 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12499 t end
12500 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12501 : end' >>confcache
12502 if diff $cache_file confcache >/dev/null 2>&1; then :; else
12503 if test -w $cache_file; then
12504 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
12505 cat confcache >$cache_file
12506 else
12507 echo "not updating unwritable cache $cache_file"
12510 rm -f confcache
12512 test "x$prefix" = xNONE && prefix=$ac_default_prefix
12513 # Let make expand exec_prefix.
12514 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12516 # VPATH may cause trouble with some makes, so we remove $(srcdir),
12517 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
12518 # trailing colons and then remove the whole line if VPATH becomes empty
12519 # (actually we leave an empty line to preserve line numbers).
12520 if test "x$srcdir" = x.; then
12521 ac_vpsub='/^[ ]*VPATH[ ]*=/{
12522 s/:*\$(srcdir):*/:/;
12523 s/:*\${srcdir}:*/:/;
12524 s/:*@srcdir@:*/:/;
12525 s/^\([^=]*=[ ]*\):*/\1/;
12526 s/:*$//;
12527 s/^[^=]*=[ ]*$//;
12531 DEFS=-DHAVE_CONFIG_H
12533 ac_libobjs=
12534 ac_ltlibobjs=
12535 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12536 # 1. Remove the extension, and $U if already installed.
12537 ac_i=`echo "$ac_i" |
12538 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
12539 # 2. Add them.
12540 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
12541 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
12542 done
12543 LIBOBJS=$ac_libobjs
12545 LTLIBOBJS=$ac_ltlibobjs
12548 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
12549 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
12550 Usually this means the macro was only invoked conditionally." >&5
12551 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
12552 Usually this means the macro was only invoked conditionally." >&2;}
12553 { (exit 1); exit 1; }; }
12556 : ${CONFIG_STATUS=./config.status}
12557 ac_clean_files_save=$ac_clean_files
12558 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12559 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
12560 echo "$as_me: creating $CONFIG_STATUS" >&6;}
12561 cat >$CONFIG_STATUS <<_ACEOF
12562 #! $SHELL
12563 # Generated by $as_me.
12564 # Run this file to recreate the current configuration.
12565 # Compiler output produced by configure, useful for debugging
12566 # configure, is in config.log if it exists.
12568 debug=false
12569 ac_cs_recheck=false
12570 ac_cs_silent=false
12571 SHELL=\${CONFIG_SHELL-$SHELL}
12572 _ACEOF
12574 cat >>$CONFIG_STATUS <<\_ACEOF
12575 ## --------------------- ##
12576 ## M4sh Initialization. ##
12577 ## --------------------- ##
12579 # Be Bourne compatible
12580 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
12581 emulate sh
12582 NULLCMD=:
12583 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
12584 # is contrary to our usage. Disable this feature.
12585 alias -g '${1+"$@"}'='"$@"'
12586 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
12587 set -o posix
12589 DUALCASE=1; export DUALCASE # for MKS sh
12591 # Support unset when possible.
12592 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
12593 as_unset=unset
12594 else
12595 as_unset=false
12599 # Work around bugs in pre-3.0 UWIN ksh.
12600 $as_unset ENV MAIL MAILPATH
12601 PS1='$ '
12602 PS2='> '
12603 PS4='+ '
12605 # NLS nuisances.
12606 for as_var in \
12607 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
12608 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
12609 LC_TELEPHONE LC_TIME
12611 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
12612 eval $as_var=C; export $as_var
12613 else
12614 $as_unset $as_var
12616 done
12618 # Required to use basename.
12619 if expr a : '\(a\)' >/dev/null 2>&1; then
12620 as_expr=expr
12621 else
12622 as_expr=false
12625 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
12626 as_basename=basename
12627 else
12628 as_basename=false
12632 # Name of the executable.
12633 as_me=`$as_basename "$0" ||
12634 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12635 X"$0" : 'X\(//\)$' \| \
12636 X"$0" : 'X\(/\)$' \| \
12637 . : '\(.\)' 2>/dev/null ||
12638 echo X/"$0" |
12639 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
12640 /^X\/\(\/\/\)$/{ s//\1/; q; }
12641 /^X\/\(\/\).*/{ s//\1/; q; }
12642 s/.*/./; q'`
12645 # PATH needs CR, and LINENO needs CR and PATH.
12646 # Avoid depending upon Character Ranges.
12647 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12648 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12649 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12650 as_cr_digits='0123456789'
12651 as_cr_alnum=$as_cr_Letters$as_cr_digits
12653 # The user is always right.
12654 if test "${PATH_SEPARATOR+set}" != set; then
12655 echo "#! /bin/sh" >conf$$.sh
12656 echo "exit 0" >>conf$$.sh
12657 chmod +x conf$$.sh
12658 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12659 PATH_SEPARATOR=';'
12660 else
12661 PATH_SEPARATOR=:
12663 rm -f conf$$.sh
12667 as_lineno_1=$LINENO
12668 as_lineno_2=$LINENO
12669 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
12670 test "x$as_lineno_1" != "x$as_lineno_2" &&
12671 test "x$as_lineno_3" = "x$as_lineno_2" || {
12672 # Find who we are. Look in the path if we contain no path at all
12673 # relative or not.
12674 case $0 in
12675 *[\\/]* ) as_myself=$0 ;;
12676 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12677 for as_dir in $PATH
12679 IFS=$as_save_IFS
12680 test -z "$as_dir" && as_dir=.
12681 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12682 done
12685 esac
12686 # We did not find ourselves, most probably we were run as `sh COMMAND'
12687 # in which case we are not to be found in the path.
12688 if test "x$as_myself" = x; then
12689 as_myself=$0
12691 if test ! -f "$as_myself"; then
12692 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
12693 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
12694 { (exit 1); exit 1; }; }
12696 case $CONFIG_SHELL in
12698 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12699 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
12701 IFS=$as_save_IFS
12702 test -z "$as_dir" && as_dir=.
12703 for as_base in sh bash ksh sh5; do
12704 case $as_dir in
12706 if ("$as_dir/$as_base" -c '
12707 as_lineno_1=$LINENO
12708 as_lineno_2=$LINENO
12709 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
12710 test "x$as_lineno_1" != "x$as_lineno_2" &&
12711 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
12712 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
12713 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
12714 CONFIG_SHELL=$as_dir/$as_base
12715 export CONFIG_SHELL
12716 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
12717 fi;;
12718 esac
12719 done
12720 done
12722 esac
12724 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
12725 # uniformly replaced by the line number. The first 'sed' inserts a
12726 # line-number line before each line; the second 'sed' does the real
12727 # work. The second script uses 'N' to pair each line-number line
12728 # with the numbered line, and appends trailing '-' during
12729 # substitution so that $LINENO is not a special case at line end.
12730 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
12731 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
12732 sed '=' <$as_myself |
12733 sed '
12735 s,$,-,
12736 : loop
12737 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
12738 t loop
12739 s,-$,,
12740 s,^['$as_cr_digits']*\n,,
12741 ' >$as_me.lineno &&
12742 chmod +x $as_me.lineno ||
12743 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
12744 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
12745 { (exit 1); exit 1; }; }
12747 # Don't try to exec as it changes $[0], causing all sort of problems
12748 # (the dirname of $[0] is not the place where we might find the
12749 # original and so on. Autoconf is especially sensible to this).
12750 . ./$as_me.lineno
12751 # Exit status is that of the last command.
12752 exit
12756 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
12757 *c*,-n*) ECHO_N= ECHO_C='
12758 ' ECHO_T=' ' ;;
12759 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
12760 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
12761 esac
12763 if expr a : '\(a\)' >/dev/null 2>&1; then
12764 as_expr=expr
12765 else
12766 as_expr=false
12769 rm -f conf$$ conf$$.exe conf$$.file
12770 echo >conf$$.file
12771 if ln -s conf$$.file conf$$ 2>/dev/null; then
12772 # We could just check for DJGPP; but this test a) works b) is more generic
12773 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
12774 if test -f conf$$.exe; then
12775 # Don't use ln at all; we don't have any links
12776 as_ln_s='cp -p'
12777 else
12778 as_ln_s='ln -s'
12780 elif ln conf$$.file conf$$ 2>/dev/null; then
12781 as_ln_s=ln
12782 else
12783 as_ln_s='cp -p'
12785 rm -f conf$$ conf$$.exe conf$$.file
12787 if mkdir -p . 2>/dev/null; then
12788 as_mkdir_p=:
12789 else
12790 test -d ./-p && rmdir ./-p
12791 as_mkdir_p=false
12794 as_executable_p="test -f"
12796 # Sed expression to map a string onto a valid CPP name.
12797 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12799 # Sed expression to map a string onto a valid variable name.
12800 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12803 # IFS
12804 # We need space, tab and new line, in precisely that order.
12805 as_nl='
12807 IFS=" $as_nl"
12809 # CDPATH.
12810 $as_unset CDPATH
12812 exec 6>&1
12814 # Open the log real soon, to keep \$[0] and so on meaningful, and to
12815 # report actual input values of CONFIG_FILES etc. instead of their
12816 # values after options handling. Logging --version etc. is OK.
12817 exec 5>>config.log
12819 echo
12820 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12821 ## Running $as_me. ##
12822 _ASBOX
12823 } >&5
12824 cat >&5 <<_CSEOF
12826 This file was extended by GNU Fortran Runtime Library $as_me 0.2, which was
12827 generated by GNU Autoconf 2.59. Invocation command line was
12829 CONFIG_FILES = $CONFIG_FILES
12830 CONFIG_HEADERS = $CONFIG_HEADERS
12831 CONFIG_LINKS = $CONFIG_LINKS
12832 CONFIG_COMMANDS = $CONFIG_COMMANDS
12833 $ $0 $@
12835 _CSEOF
12836 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
12837 echo >&5
12838 _ACEOF
12840 # Files that config.status was made for.
12841 if test -n "$ac_config_files"; then
12842 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
12845 if test -n "$ac_config_headers"; then
12846 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
12849 if test -n "$ac_config_links"; then
12850 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
12853 if test -n "$ac_config_commands"; then
12854 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
12857 cat >>$CONFIG_STATUS <<\_ACEOF
12859 ac_cs_usage="\
12860 \`$as_me' instantiates files from templates according to the
12861 current configuration.
12863 Usage: $0 [OPTIONS] [FILE]...
12865 -h, --help print this help, then exit
12866 -V, --version print version number, then exit
12867 -q, --quiet do not print progress messages
12868 -d, --debug don't remove temporary files
12869 --recheck update $as_me by reconfiguring in the same conditions
12870 --file=FILE[:TEMPLATE]
12871 instantiate the configuration file FILE
12872 --header=FILE[:TEMPLATE]
12873 instantiate the configuration header FILE
12875 Configuration files:
12876 $config_files
12878 Configuration headers:
12879 $config_headers
12881 Configuration commands:
12882 $config_commands
12884 Report bugs to <bug-autoconf@gnu.org>."
12885 _ACEOF
12887 cat >>$CONFIG_STATUS <<_ACEOF
12888 ac_cs_version="\\
12889 GNU Fortran Runtime Library config.status 0.2
12890 configured by $0, generated by GNU Autoconf 2.59,
12891 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
12893 Copyright (C) 2003 Free Software Foundation, Inc.
12894 This config.status script is free software; the Free Software Foundation
12895 gives unlimited permission to copy, distribute and modify it."
12896 srcdir=$srcdir
12897 INSTALL="$INSTALL"
12898 _ACEOF
12900 cat >>$CONFIG_STATUS <<\_ACEOF
12901 # If no file are specified by the user, then we need to provide default
12902 # value. By we need to know if files were specified by the user.
12903 ac_need_defaults=:
12904 while test $# != 0
12906 case $1 in
12907 --*=*)
12908 ac_option=`expr "x$1" : 'x\([^=]*\)='`
12909 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
12910 ac_shift=:
12913 ac_option=$1
12914 ac_optarg=$2
12915 ac_shift=shift
12917 *) # This is not an option, so the user has probably given explicit
12918 # arguments.
12919 ac_option=$1
12920 ac_need_defaults=false;;
12921 esac
12923 case $ac_option in
12924 # Handling of the options.
12925 _ACEOF
12926 cat >>$CONFIG_STATUS <<\_ACEOF
12927 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12928 ac_cs_recheck=: ;;
12929 --version | --vers* | -V )
12930 echo "$ac_cs_version"; exit 0 ;;
12931 --he | --h)
12932 # Conflict between --help and --header
12933 { { echo "$as_me:$LINENO: error: ambiguous option: $1
12934 Try \`$0 --help' for more information." >&5
12935 echo "$as_me: error: ambiguous option: $1
12936 Try \`$0 --help' for more information." >&2;}
12937 { (exit 1); exit 1; }; };;
12938 --help | --hel | -h )
12939 echo "$ac_cs_usage"; exit 0 ;;
12940 --debug | --d* | -d )
12941 debug=: ;;
12942 --file | --fil | --fi | --f )
12943 $ac_shift
12944 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
12945 ac_need_defaults=false;;
12946 --header | --heade | --head | --hea )
12947 $ac_shift
12948 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
12949 ac_need_defaults=false;;
12950 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12951 | -silent | --silent | --silen | --sile | --sil | --si | --s)
12952 ac_cs_silent=: ;;
12954 # This is an error.
12955 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
12956 Try \`$0 --help' for more information." >&5
12957 echo "$as_me: error: unrecognized option: $1
12958 Try \`$0 --help' for more information." >&2;}
12959 { (exit 1); exit 1; }; } ;;
12961 *) ac_config_targets="$ac_config_targets $1" ;;
12963 esac
12964 shift
12965 done
12967 ac_configure_extra_args=
12969 if $ac_cs_silent; then
12970 exec 6>/dev/null
12971 ac_configure_extra_args="$ac_configure_extra_args --silent"
12974 _ACEOF
12975 cat >>$CONFIG_STATUS <<_ACEOF
12976 if \$ac_cs_recheck; then
12977 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
12978 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12981 _ACEOF
12983 cat >>$CONFIG_STATUS <<_ACEOF
12985 # INIT-COMMANDS section.
12989 srcdir="$srcdir"
12990 host="$host"
12991 target="$target"
12992 with_multisubdir="$with_multisubdir"
12993 with_multisrctop="$with_multisrctop"
12994 with_target_subdir="$with_target_subdir"
12995 ac_configure_args="${multilib_arg} ${ac_configure_args}"
12996 multi_basedir="$multi_basedir"
12997 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
12998 CC="$CC"
13000 _ACEOF
13004 cat >>$CONFIG_STATUS <<\_ACEOF
13005 for ac_config_target in $ac_config_targets
13007 case "$ac_config_target" in
13008 # Handling of arguments.
13009 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13010 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
13011 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
13012 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
13013 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
13014 { (exit 1); exit 1; }; };;
13015 esac
13016 done
13018 # If the user did not use the arguments to specify the items to instantiate,
13019 # then the envvar interface is used. Set only those that are not.
13020 # We use the long form for the default assignment because of an extremely
13021 # bizarre bug on SunOS 4.1.3.
13022 if $ac_need_defaults; then
13023 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13024 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13025 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13028 # Have a temporary directory for convenience. Make it in the build tree
13029 # simply because there is no reason to put it here, and in addition,
13030 # creating and moving files from /tmp can sometimes cause problems.
13031 # Create a temporary directory, and hook for its removal unless debugging.
13032 $debug ||
13034 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
13035 trap '{ (exit 1); exit 1; }' 1 2 13 15
13038 # Create a (secure) tmp directory for tmp files.
13041 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
13042 test -n "$tmp" && test -d "$tmp"
13043 } ||
13045 tmp=./confstat$$-$RANDOM
13046 (umask 077 && mkdir $tmp)
13047 } ||
13049 echo "$me: cannot create a temporary directory in ." >&2
13050 { (exit 1); exit 1; }
13053 _ACEOF
13055 cat >>$CONFIG_STATUS <<_ACEOF
13058 # CONFIG_FILES section.
13061 # No need to generate the scripts if there are no CONFIG_FILES.
13062 # This happens for instance when ./config.status config.h
13063 if test -n "\$CONFIG_FILES"; then
13064 # Protect against being on the right side of a sed subst in config.status.
13065 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
13066 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
13067 s,@SHELL@,$SHELL,;t t
13068 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
13069 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
13070 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
13071 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
13072 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
13073 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
13074 s,@exec_prefix@,$exec_prefix,;t t
13075 s,@prefix@,$prefix,;t t
13076 s,@program_transform_name@,$program_transform_name,;t t
13077 s,@bindir@,$bindir,;t t
13078 s,@sbindir@,$sbindir,;t t
13079 s,@libexecdir@,$libexecdir,;t t
13080 s,@datadir@,$datadir,;t t
13081 s,@sysconfdir@,$sysconfdir,;t t
13082 s,@sharedstatedir@,$sharedstatedir,;t t
13083 s,@localstatedir@,$localstatedir,;t t
13084 s,@libdir@,$libdir,;t t
13085 s,@includedir@,$includedir,;t t
13086 s,@oldincludedir@,$oldincludedir,;t t
13087 s,@infodir@,$infodir,;t t
13088 s,@mandir@,$mandir,;t t
13089 s,@build_alias@,$build_alias,;t t
13090 s,@host_alias@,$host_alias,;t t
13091 s,@target_alias@,$target_alias,;t t
13092 s,@DEFS@,$DEFS,;t t
13093 s,@ECHO_C@,$ECHO_C,;t t
13094 s,@ECHO_N@,$ECHO_N,;t t
13095 s,@ECHO_T@,$ECHO_T,;t t
13096 s,@LIBS@,$LIBS,;t t
13097 s,@build@,$build,;t t
13098 s,@build_cpu@,$build_cpu,;t t
13099 s,@build_vendor@,$build_vendor,;t t
13100 s,@build_os@,$build_os,;t t
13101 s,@host@,$host,;t t
13102 s,@host_cpu@,$host_cpu,;t t
13103 s,@host_vendor@,$host_vendor,;t t
13104 s,@host_os@,$host_os,;t t
13105 s,@target@,$target,;t t
13106 s,@target_cpu@,$target_cpu,;t t
13107 s,@target_vendor@,$target_vendor,;t t
13108 s,@target_os@,$target_os,;t t
13109 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
13110 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
13111 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
13112 s,@CYGPATH_W@,$CYGPATH_W,;t t
13113 s,@PACKAGE@,$PACKAGE,;t t
13114 s,@VERSION@,$VERSION,;t t
13115 s,@ACLOCAL@,$ACLOCAL,;t t
13116 s,@AUTOCONF@,$AUTOCONF,;t t
13117 s,@AUTOMAKE@,$AUTOMAKE,;t t
13118 s,@AUTOHEADER@,$AUTOHEADER,;t t
13119 s,@MAKEINFO@,$MAKEINFO,;t t
13120 s,@install_sh@,$install_sh,;t t
13121 s,@STRIP@,$STRIP,;t t
13122 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
13123 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
13124 s,@mkdir_p@,$mkdir_p,;t t
13125 s,@AWK@,$AWK,;t t
13126 s,@SET_MAKE@,$SET_MAKE,;t t
13127 s,@am__leading_dot@,$am__leading_dot,;t t
13128 s,@AMTAR@,$AMTAR,;t t
13129 s,@am__tar@,$am__tar,;t t
13130 s,@am__untar@,$am__untar,;t t
13131 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
13132 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
13133 s,@MAINT@,$MAINT,;t t
13134 s,@multi_basedir@,$multi_basedir,;t t
13135 s,@toolexecdir@,$toolexecdir,;t t
13136 s,@toolexeclibdir@,$toolexeclibdir,;t t
13137 s,@CC@,$CC,;t t
13138 s,@ac_ct_CC@,$ac_ct_CC,;t t
13139 s,@EXEEXT@,$EXEEXT,;t t
13140 s,@OBJEXT@,$OBJEXT,;t t
13141 s,@AM_FCFLAGS@,$AM_FCFLAGS,;t t
13142 s,@AM_CFLAGS@,$AM_CFLAGS,;t t
13143 s,@AS@,$AS,;t t
13144 s,@ac_ct_AS@,$ac_ct_AS,;t t
13145 s,@AR@,$AR,;t t
13146 s,@ac_ct_AR@,$ac_ct_AR,;t t
13147 s,@RANLIB@,$RANLIB,;t t
13148 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
13149 s,@LN_S@,$LN_S,;t t
13150 s,@LIBTOOL@,$LIBTOOL,;t t
13151 s,@enable_shared@,$enable_shared,;t t
13152 s,@enable_static@,$enable_static,;t t
13153 s,@FC@,$FC,;t t
13154 s,@FCFLAGS@,$FCFLAGS,;t t
13155 s,@LDFLAGS@,$LDFLAGS,;t t
13156 s,@ac_ct_FC@,$ac_ct_FC,;t t
13157 s,@extra_ldflags_libgfortran@,$extra_ldflags_libgfortran,;t t
13158 s,@CPP@,$CPP,;t t
13159 s,@CPPFLAGS@,$CPPFLAGS,;t t
13160 s,@EGREP@,$EGREP,;t t
13161 s,@MATH_OBJ@,$MATH_OBJ,;t t
13162 s,@LIBOBJS@,$LIBOBJS,;t t
13163 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
13164 CEOF
13166 _ACEOF
13168 cat >>$CONFIG_STATUS <<\_ACEOF
13169 # Split the substitutions into bite-sized pieces for seds with
13170 # small command number limits, like on Digital OSF/1 and HP-UX.
13171 ac_max_sed_lines=48
13172 ac_sed_frag=1 # Number of current file.
13173 ac_beg=1 # First line for current file.
13174 ac_end=$ac_max_sed_lines # Line after last line for current file.
13175 ac_more_lines=:
13176 ac_sed_cmds=
13177 while $ac_more_lines; do
13178 if test $ac_beg -gt 1; then
13179 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
13180 else
13181 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
13183 if test ! -s $tmp/subs.frag; then
13184 ac_more_lines=false
13185 else
13186 # The purpose of the label and of the branching condition is to
13187 # speed up the sed processing (if there are no `@' at all, there
13188 # is no need to browse any of the substitutions).
13189 # These are the two extra sed commands mentioned above.
13190 (echo ':t
13191 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
13192 if test -z "$ac_sed_cmds"; then
13193 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
13194 else
13195 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
13197 ac_sed_frag=`expr $ac_sed_frag + 1`
13198 ac_beg=$ac_end
13199 ac_end=`expr $ac_end + $ac_max_sed_lines`
13201 done
13202 if test -z "$ac_sed_cmds"; then
13203 ac_sed_cmds=cat
13205 fi # test -n "$CONFIG_FILES"
13207 _ACEOF
13208 cat >>$CONFIG_STATUS <<\_ACEOF
13209 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
13210 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
13211 case $ac_file in
13212 - | *:- | *:-:* ) # input from stdin
13213 cat >$tmp/stdin
13214 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13215 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13216 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13217 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13218 * ) ac_file_in=$ac_file.in ;;
13219 esac
13221 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
13222 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
13223 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13224 X"$ac_file" : 'X\(//\)[^/]' \| \
13225 X"$ac_file" : 'X\(//\)$' \| \
13226 X"$ac_file" : 'X\(/\)' \| \
13227 . : '\(.\)' 2>/dev/null ||
13228 echo X"$ac_file" |
13229 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13230 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13231 /^X\(\/\/\)$/{ s//\1/; q; }
13232 /^X\(\/\).*/{ s//\1/; q; }
13233 s/.*/./; q'`
13234 { if $as_mkdir_p; then
13235 mkdir -p "$ac_dir"
13236 else
13237 as_dir="$ac_dir"
13238 as_dirs=
13239 while test ! -d "$as_dir"; do
13240 as_dirs="$as_dir $as_dirs"
13241 as_dir=`(dirname "$as_dir") 2>/dev/null ||
13242 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13243 X"$as_dir" : 'X\(//\)[^/]' \| \
13244 X"$as_dir" : 'X\(//\)$' \| \
13245 X"$as_dir" : 'X\(/\)' \| \
13246 . : '\(.\)' 2>/dev/null ||
13247 echo X"$as_dir" |
13248 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13249 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13250 /^X\(\/\/\)$/{ s//\1/; q; }
13251 /^X\(\/\).*/{ s//\1/; q; }
13252 s/.*/./; q'`
13253 done
13254 test ! -n "$as_dirs" || mkdir $as_dirs
13255 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
13256 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
13257 { (exit 1); exit 1; }; }; }
13259 ac_builddir=.
13261 if test "$ac_dir" != .; then
13262 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
13263 # A "../" for each directory in $ac_dir_suffix.
13264 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
13265 else
13266 ac_dir_suffix= ac_top_builddir=
13269 case $srcdir in
13270 .) # No --srcdir option. We are building in place.
13271 ac_srcdir=.
13272 if test -z "$ac_top_builddir"; then
13273 ac_top_srcdir=.
13274 else
13275 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
13276 fi ;;
13277 [\\/]* | ?:[\\/]* ) # Absolute path.
13278 ac_srcdir=$srcdir$ac_dir_suffix;
13279 ac_top_srcdir=$srcdir ;;
13280 *) # Relative path.
13281 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
13282 ac_top_srcdir=$ac_top_builddir$srcdir ;;
13283 esac
13285 # Do not use `cd foo && pwd` to compute absolute paths, because
13286 # the directories may not exist.
13287 case `pwd` in
13288 .) ac_abs_builddir="$ac_dir";;
13290 case "$ac_dir" in
13291 .) ac_abs_builddir=`pwd`;;
13292 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
13293 *) ac_abs_builddir=`pwd`/"$ac_dir";;
13294 esac;;
13295 esac
13296 case $ac_abs_builddir in
13297 .) ac_abs_top_builddir=${ac_top_builddir}.;;
13299 case ${ac_top_builddir}. in
13300 .) ac_abs_top_builddir=$ac_abs_builddir;;
13301 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
13302 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
13303 esac;;
13304 esac
13305 case $ac_abs_builddir in
13306 .) ac_abs_srcdir=$ac_srcdir;;
13308 case $ac_srcdir in
13309 .) ac_abs_srcdir=$ac_abs_builddir;;
13310 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
13311 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
13312 esac;;
13313 esac
13314 case $ac_abs_builddir in
13315 .) ac_abs_top_srcdir=$ac_top_srcdir;;
13317 case $ac_top_srcdir in
13318 .) ac_abs_top_srcdir=$ac_abs_builddir;;
13319 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
13320 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
13321 esac;;
13322 esac
13325 case $INSTALL in
13326 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13327 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
13328 esac
13330 # Let's still pretend it is `configure' which instantiates (i.e., don't
13331 # use $as_me), people would be surprised to read:
13332 # /* config.h. Generated by config.status. */
13333 if test x"$ac_file" = x-; then
13334 configure_input=
13335 else
13336 configure_input="$ac_file. "
13338 configure_input=$configure_input"Generated from `echo $ac_file_in |
13339 sed 's,.*/,,'` by configure."
13341 # First look for the input files in the build tree, otherwise in the
13342 # src tree.
13343 ac_file_inputs=`IFS=:
13344 for f in $ac_file_in; do
13345 case $f in
13346 -) echo $tmp/stdin ;;
13347 [\\/$]*)
13348 # Absolute (can't be DOS-style, as IFS=:)
13349 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13350 echo "$as_me: error: cannot find input file: $f" >&2;}
13351 { (exit 1); exit 1; }; }
13352 echo "$f";;
13353 *) # Relative
13354 if test -f "$f"; then
13355 # Build tree
13356 echo "$f"
13357 elif test -f "$srcdir/$f"; then
13358 # Source tree
13359 echo "$srcdir/$f"
13360 else
13361 # /dev/null tree
13362 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13363 echo "$as_me: error: cannot find input file: $f" >&2;}
13364 { (exit 1); exit 1; }; }
13365 fi;;
13366 esac
13367 done` || { (exit 1); exit 1; }
13369 if test x"$ac_file" != x-; then
13370 { echo "$as_me:$LINENO: creating $ac_file" >&5
13371 echo "$as_me: creating $ac_file" >&6;}
13372 rm -f "$ac_file"
13374 _ACEOF
13375 cat >>$CONFIG_STATUS <<_ACEOF
13376 sed "$ac_vpsub
13377 $extrasub
13378 _ACEOF
13379 cat >>$CONFIG_STATUS <<\_ACEOF
13381 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13382 s,@configure_input@,$configure_input,;t t
13383 s,@srcdir@,$ac_srcdir,;t t
13384 s,@abs_srcdir@,$ac_abs_srcdir,;t t
13385 s,@top_srcdir@,$ac_top_srcdir,;t t
13386 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
13387 s,@builddir@,$ac_builddir,;t t
13388 s,@abs_builddir@,$ac_abs_builddir,;t t
13389 s,@top_builddir@,$ac_top_builddir,;t t
13390 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
13391 s,@INSTALL@,$ac_INSTALL,;t t
13392 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
13393 rm -f $tmp/stdin
13394 if test x"$ac_file" != x-; then
13395 mv $tmp/out $ac_file
13396 else
13397 cat $tmp/out
13398 rm -f $tmp/out
13401 done
13402 _ACEOF
13403 cat >>$CONFIG_STATUS <<\_ACEOF
13406 # CONFIG_HEADER section.
13409 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
13410 # NAME is the cpp macro being defined and VALUE is the value it is being given.
13412 # ac_d sets the value in "#define NAME VALUE" lines.
13413 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
13414 ac_dB='[ ].*$,\1#\2'
13415 ac_dC=' '
13416 ac_dD=',;t'
13417 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
13418 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
13419 ac_uB='$,\1#\2define\3'
13420 ac_uC=' '
13421 ac_uD=',;t'
13423 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
13424 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
13425 case $ac_file in
13426 - | *:- | *:-:* ) # input from stdin
13427 cat >$tmp/stdin
13428 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13429 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13430 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13431 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13432 * ) ac_file_in=$ac_file.in ;;
13433 esac
13435 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
13436 echo "$as_me: creating $ac_file" >&6;}
13438 # First look for the input files in the build tree, otherwise in the
13439 # src tree.
13440 ac_file_inputs=`IFS=:
13441 for f in $ac_file_in; do
13442 case $f in
13443 -) echo $tmp/stdin ;;
13444 [\\/$]*)
13445 # Absolute (can't be DOS-style, as IFS=:)
13446 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13447 echo "$as_me: error: cannot find input file: $f" >&2;}
13448 { (exit 1); exit 1; }; }
13449 # Do quote $f, to prevent DOS paths from being IFS'd.
13450 echo "$f";;
13451 *) # Relative
13452 if test -f "$f"; then
13453 # Build tree
13454 echo "$f"
13455 elif test -f "$srcdir/$f"; then
13456 # Source tree
13457 echo "$srcdir/$f"
13458 else
13459 # /dev/null tree
13460 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13461 echo "$as_me: error: cannot find input file: $f" >&2;}
13462 { (exit 1); exit 1; }; }
13463 fi;;
13464 esac
13465 done` || { (exit 1); exit 1; }
13466 # Remove the trailing spaces.
13467 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
13469 _ACEOF
13471 # Transform confdefs.h into two sed scripts, `conftest.defines' and
13472 # `conftest.undefs', that substitutes the proper values into
13473 # config.h.in to produce config.h. The first handles `#define'
13474 # templates, and the second `#undef' templates.
13475 # And first: Protect against being on the right side of a sed subst in
13476 # config.status. Protect against being in an unquoted here document
13477 # in config.status.
13478 rm -f conftest.defines conftest.undefs
13479 # Using a here document instead of a string reduces the quoting nightmare.
13480 # Putting comments in sed scripts is not portable.
13482 # `end' is used to avoid that the second main sed command (meant for
13483 # 0-ary CPP macros) applies to n-ary macro definitions.
13484 # See the Autoconf documentation for `clear'.
13485 cat >confdef2sed.sed <<\_ACEOF
13486 s/[\\&,]/\\&/g
13487 s,[\\$`],\\&,g
13488 t clear
13489 : clear
13490 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
13491 t end
13492 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
13493 : end
13494 _ACEOF
13495 # If some macros were called several times there might be several times
13496 # the same #defines, which is useless. Nevertheless, we may not want to
13497 # sort them, since we want the *last* AC-DEFINE to be honored.
13498 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
13499 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
13500 rm -f confdef2sed.sed
13502 # This sed command replaces #undef with comments. This is necessary, for
13503 # example, in the case of _POSIX_SOURCE, which is predefined and required
13504 # on some systems where configure will not decide to define it.
13505 cat >>conftest.undefs <<\_ACEOF
13506 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
13507 _ACEOF
13509 # Break up conftest.defines because some shells have a limit on the size
13510 # of here documents, and old seds have small limits too (100 cmds).
13511 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
13512 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
13513 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
13514 echo ' :' >>$CONFIG_STATUS
13515 rm -f conftest.tail
13516 while grep . conftest.defines >/dev/null
13518 # Write a limited-size here document to $tmp/defines.sed.
13519 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
13520 # Speed up: don't consider the non `#define' lines.
13521 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
13522 # Work around the forget-to-reset-the-flag bug.
13523 echo 't clr' >>$CONFIG_STATUS
13524 echo ': clr' >>$CONFIG_STATUS
13525 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
13526 echo 'CEOF
13527 sed -f $tmp/defines.sed $tmp/in >$tmp/out
13528 rm -f $tmp/in
13529 mv $tmp/out $tmp/in
13530 ' >>$CONFIG_STATUS
13531 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
13532 rm -f conftest.defines
13533 mv conftest.tail conftest.defines
13534 done
13535 rm -f conftest.defines
13536 echo ' fi # grep' >>$CONFIG_STATUS
13537 echo >>$CONFIG_STATUS
13539 # Break up conftest.undefs because some shells have a limit on the size
13540 # of here documents, and old seds have small limits too (100 cmds).
13541 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
13542 rm -f conftest.tail
13543 while grep . conftest.undefs >/dev/null
13545 # Write a limited-size here document to $tmp/undefs.sed.
13546 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
13547 # Speed up: don't consider the non `#undef'
13548 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
13549 # Work around the forget-to-reset-the-flag bug.
13550 echo 't clr' >>$CONFIG_STATUS
13551 echo ': clr' >>$CONFIG_STATUS
13552 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
13553 echo 'CEOF
13554 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
13555 rm -f $tmp/in
13556 mv $tmp/out $tmp/in
13557 ' >>$CONFIG_STATUS
13558 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
13559 rm -f conftest.undefs
13560 mv conftest.tail conftest.undefs
13561 done
13562 rm -f conftest.undefs
13564 cat >>$CONFIG_STATUS <<\_ACEOF
13565 # Let's still pretend it is `configure' which instantiates (i.e., don't
13566 # use $as_me), people would be surprised to read:
13567 # /* config.h. Generated by config.status. */
13568 if test x"$ac_file" = x-; then
13569 echo "/* Generated by configure. */" >$tmp/config.h
13570 else
13571 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
13573 cat $tmp/in >>$tmp/config.h
13574 rm -f $tmp/in
13575 if test x"$ac_file" != x-; then
13576 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
13577 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
13578 echo "$as_me: $ac_file is unchanged" >&6;}
13579 else
13580 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
13581 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13582 X"$ac_file" : 'X\(//\)[^/]' \| \
13583 X"$ac_file" : 'X\(//\)$' \| \
13584 X"$ac_file" : 'X\(/\)' \| \
13585 . : '\(.\)' 2>/dev/null ||
13586 echo X"$ac_file" |
13587 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13588 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13589 /^X\(\/\/\)$/{ s//\1/; q; }
13590 /^X\(\/\).*/{ s//\1/; q; }
13591 s/.*/./; q'`
13592 { if $as_mkdir_p; then
13593 mkdir -p "$ac_dir"
13594 else
13595 as_dir="$ac_dir"
13596 as_dirs=
13597 while test ! -d "$as_dir"; do
13598 as_dirs="$as_dir $as_dirs"
13599 as_dir=`(dirname "$as_dir") 2>/dev/null ||
13600 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13601 X"$as_dir" : 'X\(//\)[^/]' \| \
13602 X"$as_dir" : 'X\(//\)$' \| \
13603 X"$as_dir" : 'X\(/\)' \| \
13604 . : '\(.\)' 2>/dev/null ||
13605 echo X"$as_dir" |
13606 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13607 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13608 /^X\(\/\/\)$/{ s//\1/; q; }
13609 /^X\(\/\).*/{ s//\1/; q; }
13610 s/.*/./; q'`
13611 done
13612 test ! -n "$as_dirs" || mkdir $as_dirs
13613 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
13614 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
13615 { (exit 1); exit 1; }; }; }
13617 rm -f $ac_file
13618 mv $tmp/config.h $ac_file
13620 else
13621 cat $tmp/config.h
13622 rm -f $tmp/config.h
13624 # Compute $ac_file's index in $config_headers.
13625 _am_stamp_count=1
13626 for _am_header in $config_headers :; do
13627 case $_am_header in
13628 $ac_file | $ac_file:* )
13629 break ;;
13631 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
13632 esac
13633 done
13634 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
13635 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13636 X$ac_file : 'X\(//\)[^/]' \| \
13637 X$ac_file : 'X\(//\)$' \| \
13638 X$ac_file : 'X\(/\)' \| \
13639 . : '\(.\)' 2>/dev/null ||
13640 echo X$ac_file |
13641 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13642 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13643 /^X\(\/\/\)$/{ s//\1/; q; }
13644 /^X\(\/\).*/{ s//\1/; q; }
13645 s/.*/./; q'`/stamp-h$_am_stamp_count
13646 done
13647 _ACEOF
13648 cat >>$CONFIG_STATUS <<\_ACEOF
13651 # CONFIG_COMMANDS section.
13653 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
13654 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
13655 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
13656 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
13657 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13658 X"$ac_dest" : 'X\(//\)[^/]' \| \
13659 X"$ac_dest" : 'X\(//\)$' \| \
13660 X"$ac_dest" : 'X\(/\)' \| \
13661 . : '\(.\)' 2>/dev/null ||
13662 echo X"$ac_dest" |
13663 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13664 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13665 /^X\(\/\/\)$/{ s//\1/; q; }
13666 /^X\(\/\).*/{ s//\1/; q; }
13667 s/.*/./; q'`
13668 { if $as_mkdir_p; then
13669 mkdir -p "$ac_dir"
13670 else
13671 as_dir="$ac_dir"
13672 as_dirs=
13673 while test ! -d "$as_dir"; do
13674 as_dirs="$as_dir $as_dirs"
13675 as_dir=`(dirname "$as_dir") 2>/dev/null ||
13676 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13677 X"$as_dir" : 'X\(//\)[^/]' \| \
13678 X"$as_dir" : 'X\(//\)$' \| \
13679 X"$as_dir" : 'X\(/\)' \| \
13680 . : '\(.\)' 2>/dev/null ||
13681 echo X"$as_dir" |
13682 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13683 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13684 /^X\(\/\/\)$/{ s//\1/; q; }
13685 /^X\(\/\).*/{ s//\1/; q; }
13686 s/.*/./; q'`
13687 done
13688 test ! -n "$as_dirs" || mkdir $as_dirs
13689 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
13690 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
13691 { (exit 1); exit 1; }; }; }
13693 ac_builddir=.
13695 if test "$ac_dir" != .; then
13696 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
13697 # A "../" for each directory in $ac_dir_suffix.
13698 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
13699 else
13700 ac_dir_suffix= ac_top_builddir=
13703 case $srcdir in
13704 .) # No --srcdir option. We are building in place.
13705 ac_srcdir=.
13706 if test -z "$ac_top_builddir"; then
13707 ac_top_srcdir=.
13708 else
13709 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
13710 fi ;;
13711 [\\/]* | ?:[\\/]* ) # Absolute path.
13712 ac_srcdir=$srcdir$ac_dir_suffix;
13713 ac_top_srcdir=$srcdir ;;
13714 *) # Relative path.
13715 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
13716 ac_top_srcdir=$ac_top_builddir$srcdir ;;
13717 esac
13719 # Do not use `cd foo && pwd` to compute absolute paths, because
13720 # the directories may not exist.
13721 case `pwd` in
13722 .) ac_abs_builddir="$ac_dir";;
13724 case "$ac_dir" in
13725 .) ac_abs_builddir=`pwd`;;
13726 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
13727 *) ac_abs_builddir=`pwd`/"$ac_dir";;
13728 esac;;
13729 esac
13730 case $ac_abs_builddir in
13731 .) ac_abs_top_builddir=${ac_top_builddir}.;;
13733 case ${ac_top_builddir}. in
13734 .) ac_abs_top_builddir=$ac_abs_builddir;;
13735 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
13736 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
13737 esac;;
13738 esac
13739 case $ac_abs_builddir in
13740 .) ac_abs_srcdir=$ac_srcdir;;
13742 case $ac_srcdir in
13743 .) ac_abs_srcdir=$ac_abs_builddir;;
13744 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
13745 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
13746 esac;;
13747 esac
13748 case $ac_abs_builddir in
13749 .) ac_abs_top_srcdir=$ac_top_srcdir;;
13751 case $ac_top_srcdir in
13752 .) ac_abs_top_srcdir=$ac_abs_builddir;;
13753 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
13754 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
13755 esac;;
13756 esac
13759 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
13760 echo "$as_me: executing $ac_dest commands" >&6;}
13761 case $ac_dest in
13762 default-1 )
13763 # Only add multilib support code if we just rebuilt the top-level
13764 # Makefile.
13765 case " $CONFIG_FILES " in
13766 *" Makefile "*)
13767 ac_file=Makefile . ${multi_basedir}/config-ml.in
13769 esac ;;
13770 esac
13771 done
13772 _ACEOF
13774 cat >>$CONFIG_STATUS <<\_ACEOF
13776 { (exit 0); exit 0; }
13777 _ACEOF
13778 chmod +x $CONFIG_STATUS
13779 ac_clean_files=$ac_clean_files_save
13782 # configure is writing to config.log, and then calls config.status.
13783 # config.status does its own redirection, appending to config.log.
13784 # Unfortunately, on DOS this fails, as config.log is still kept open
13785 # by configure, so config.status won't be able to write to it; its
13786 # output is simply discarded. So we exec the FD to /dev/null,
13787 # effectively closing config.log, so it can be properly (re)opened and
13788 # appended to by config.status. When coming back to configure, we
13789 # need to make the FD available again.
13790 if test "$no_create" != yes; then
13791 ac_cs_success=:
13792 ac_config_status_args=
13793 test "$silent" = yes &&
13794 ac_config_status_args="$ac_config_status_args --quiet"
13795 exec 5>/dev/null
13796 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13797 exec 5>>config.log
13798 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13799 # would make configure fail if this is the last instruction.
13800 $ac_cs_success || { (exit 1); exit 1; }